:root {
  --bg: #efe7df;
  --paper: rgba(255, 251, 246, 0.9);
  --panel: #fcfaf6;
  --ink: #1e1f21;
  --muted: #6d665f;
  --line: rgba(30, 31, 33, 0.12);
  --shadow: 0 32px 90px rgba(44, 32, 22, 0.12);
  --radius-lg: 36px;
  --radius-md: 24px;
  --radius-sm: 18px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Avenir Next", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.68), transparent 34%),
    linear-gradient(180deg, #f5ede6 0%, var(--bg) 100%);
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 32px auto;
  padding: 28px 28px 44px;
  border: 1px solid rgba(30, 31, 33, 0.18);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
}

.brand-block h1,
.hero-copy h2,
.section-heading h3,
.project-copy h4,
.eyebrow,
.hero-kicker,
.section-index,
.section-heading p,
.topnav a,
.project-copy p {
  margin: 0;
}

.eyebrow,
.hero-kicker,
.section-index,
.topnav a {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow,
.hero-kicker,
.section-heading p,
.project-copy p,
.topnav a {
  color: var(--muted);
}

.brand-block h1 {
  margin-top: 10px;
  font-size: clamp(1.75rem, 2vw, 2.2rem);
}

.brand-intro {
  max-width: 68ch;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 24px;
  padding-top: 12px;
}

.topnav a {
  position: relative;
  font-size: 0.82rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-link .social-dot {
  fill: currentColor;
  stroke: none;
}

.topnav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.topnav a:hover::after,
.topnav a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  display: block;
  padding: 18px 0 56px;
}

.hero-copy h2 {
  font-size: clamp(4rem, 13vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.hero-kicker {
  margin-bottom: 18px;
  font-size: 0.8rem;
}

.portfolio-section {
  padding: 28px 0 0;
}

.portfolio-section + .portfolio-section {
  margin-top: 54px;
  border-top: 1px solid var(--line);
  padding-top: 42px;
}

.section-heading {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 26px;
}

.section-index {
  font-size: 0.8rem;
  padding-top: 8px;
}

.section-heading h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin-top: 10px;
  font-size: 1rem;
}

.project-grid {
  display: grid;
  gap: 24px;
}

.project-grid-digital {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.project-grid-digital .project-card:nth-child(-n+3) {
  grid-column: span 2;
}

.project-grid-digital .project-card:nth-child(n+4) {
  grid-column: span 3;
}

.project-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(30, 31, 33, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.project-link {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(44, 32, 22, 0.1);
  border-color: rgba(30, 31, 33, 0.16);
}

.project-card img {
  aspect-ratio: 16 / 11;
  object-fit: contain;
  background: #f6f1ea;
}

.project-copy {
  padding: 20px 20px 24px;
}

.project-copy h4 {
  font-size: 1.35rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.project-copy p {
  margin-top: 10px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.page-shell-case {
  max-width: 1180px;
}

.case-main {
  display: grid;
  gap: 40px;
}

.case-main-compact {
  gap: 34px;
}

.case-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 28px;
  align-items: stretch;
  padding: 12px 0 8px;
}

.case-hero-compact .case-hero-copy {
  min-height: 440px;
}

.case-hero-copy,
.case-hero-media,
.case-video-card,
.metric-card,
.case-panel {
  border: 1px solid rgba(30, 31, 33, 0.08);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 42px rgba(44, 32, 22, 0.06);
}

.case-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 520px;
  padding: 38px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top left, rgba(232, 224, 214, 0.86), transparent 36%),
    linear-gradient(180deg, rgba(255, 251, 246, 0.96), rgba(245, 238, 230, 0.96));
}

.case-hero-copy h2 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  max-width: 11ch;
  font-size: clamp(3.3rem, 5vw, 5rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.case-intro,
.case-richtext p,
.case-panel p,
.metric-label,
.case-source {
  color: var(--muted);
}

.case-intro {
  max-width: 58ch;
  margin: 18px 0 0;
  font-size: 1.05rem;
  line-height: 1.8;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.case-meta span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(30, 31, 33, 0.04);
  font-size: 0.88rem;
}

.case-hero-stack {
  display: grid;
  grid-template-rows: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 18px;
}

.case-video-card,
.case-hero-media {
  overflow: hidden;
  border-radius: 34px;
}

.case-video-card {
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 250, 245, 0.98), rgba(244, 235, 225, 0.95));
}

.case-video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 16 / 9;
  background: #111;
}

.case-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.case-video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.case-hero-media {
  min-height: 280px;
}

.case-hero-media-tall {
  min-height: 520px;
}

.case-hero-media img,
.case-panel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f6f1ea;
}

.metrics-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.metric-card {
  padding: 24px 22px;
  border-radius: 24px;
}

.metric-value,
.metric-label,
.case-panel h4,
.case-panel p,
.case-figure figcaption {
  margin: 0;
}

.metric-value {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}

.metric-label {
  margin-top: 10px;
  line-height: 1.6;
}

.case-section {
  display: grid;
  gap: 24px;
  padding-top: 10px;
}

.case-two-column {
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}

.case-two-column h3 {
  margin: 8px 0 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.case-richtext {
  max-width: 70ch;
}

.case-richtext p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.9;
}

.case-richtext p + p {
  margin-top: 16px;
}

.case-heading {
  margin-bottom: 0;
}

.case-grid {
  display: grid;
  gap: 22px;
}

.case-grid-feature {
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
}

.case-grid-three-panels {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-grid-side {
  grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.88fr);
  align-items: stretch;
}

.case-grid-side-reverse {
  grid-template-columns: minmax(260px, 0.88fr) minmax(0, 1.12fr);
}

.case-panel {
  border-radius: 28px;
  overflow: hidden;
}

.case-panel-text,
.case-grid-three-panels .case-panel,
.case-figure {
  padding: 28px;
}

.case-panel h4 {
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.case-panel p {
  margin-top: 12px;
  line-height: 1.8;
}

.case-figure {
  display: grid;
  gap: 18px;
}

.case-image-stack {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.case-image-stack-small {
  align-content: start;
}

.case-image-stack-small img {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  border: 1px solid rgba(30, 31, 33, 0.08);
}

.case-figure figcaption {
  font-size: 0.92rem;
  color: var(--muted);
}

.narrow {
  max-width: 60ch;
}

.case-source a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.case-inline-link {
  color: #1f5eff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.case-highlight {
  color: var(--ink);
  font-weight: 700;
}

.case-note {
  padding: 18px 22px;
  border: 1px solid rgba(30, 31, 33, 0.12);
  border-radius: 20px;
  background: rgba(30, 31, 33, 0.04);
}

.case-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.95rem;
}

.case-film-block {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.case-film-heading h3 {
  margin: 8px 0 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.case-video-card-large {
  padding: 18px;
  width: min(100%, 460px);
  margin-inline: auto;
}

.case-video-card-tall {
  width: min(100%, 420px);
}

.case-video-frame-vertical {
  aspect-ratio: 9 / 16;
  max-height: 78vh;
}

.case-film-heading {
  width: 100%;
  text-align: center;
}

.case-grid-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-grid-gallery .case-image-stack img {
  height: 90%;
  margin: 0 auto;
}

.creator-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.creator-meta {
  display: grid;
  grid-template-columns: minmax(180px, 56%) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.creator-meta img {
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  object-fit: contain;
  background: #f6f1ea;
  border: 1px solid rgba(30, 31, 33, 0.08);
}

.creator-copy {
  display: grid;
  gap: 4px;
  align-content: start;
  padding-top: 4px;
}

.creator-name,
.creator-role {
  margin: 0;
}

.creator-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.creator-role {
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.88rem;
}

.creator-followers {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.lookbook-intro {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 18px 0 8px;
  text-align: center;
}

.lookbook-intro h2,
.lookbook-heading p,
.lookbook-intro p {
  margin: 0;
}

.lookbook-intro h2 {
  max-width: 12ch;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.lookbook-intro > p:last-child {
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.8;
}

.lookbook-section {
  display: grid;
  gap: 16px;
  padding-top: 18px;
}

.lookbook-heading {
  display: grid;
}

.lookbook-heading p {
  color: var(--muted);
  line-height: 1.7;
}

.lookbook-row {
  display: grid;
  gap: 16px;
}

.lookbook-row-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lookbook-row-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lookbook-row-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.lookbook-card {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(30, 31, 33, 0.08);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 20px 42px rgba(44, 32, 22, 0.06);
}

.lookbook-card img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #f6f1ea;
}

@media (max-width: 960px) {
  .page-shell {
    padding: 22px 18px 32px;
  }

  .project-grid-digital,
  .project-grid-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-grid-digital .project-card,
  .project-grid-three .project-card {
    grid-column: span 1;
  }

  .case-hero,
  .case-grid-feature,
  .case-grid-three-panels,
  .case-grid-gallery,
  .case-grid-side,
  .case-grid-side-reverse,
  .metrics-band,
  .case-two-column,
  .lookbook-row-3,
  .lookbook-row-4,
  .lookbook-row-5 {
    grid-template-columns: 1fr;
  }

  .case-hero-copy,
  .case-hero-media {
    min-height: auto;
  }

  .case-hero-stack {
    grid-template-rows: auto;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 18px), var(--max-width));
    margin: 9px auto;
    border-radius: 24px;
  }

  .topbar,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topnav {
    justify-content: flex-start;
    gap: 18px;
    padding-top: 0;
  }

  .project-grid-digital,
  .project-grid-three {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .section-index {
    margin-bottom: 10px;
  }
}
