/* =============================================================================
   Dheemi Studio · design system
   Built from Brand guidelines v1.2 (December 2026). The rules, in one place:
     colour   Salt 60 · Dusk 25 · Stone 10 · Reed 5. Reed once per page, never
              on Salt or Stone, never behind client work. No gradients, tints or
              transparencies of brand colours. No pure black type.
     type     Mona Sans Expanded Medium for headlines, Mona Sans for labels,
              Hedvig Letters Serif for sentences. Sentence case, left aligned,
              400/500/600 only, no italics, no underlines, lines under 70ch.
     shape    one squircle for everything. Tiles 64 to 72, images 14% of the
              short side (40 to 64), small tiles 36 to 48, pills fully round.
     layout   margins 5.5% of the width, heading left and content right,
              gaps of 20 to 24 between tiles, one idea per screen.
   ========================================================================== */

/* ------------------------------- tokens ---------------------------------- */
:root {
  --dusk:  #2A1B33;
  --lift:  #3B2A46;
  --haze:  #645A6D;
  --mist:  #BDB4C4;
  --stone: #E3E2DB;
  --salt:  #F3F3EF;
  --reed:  #EFE2A0;
  --white: #FFFFFF;           /* logo backing tiles only */

  /* surface roles, swapped wholesale by .inverse */
  --bg: var(--salt);
  --fg: var(--dusk);
  --tile: var(--stone);
  --cap: var(--haze);
  --rule: var(--stone);

  --sans: "Mona Sans", Arial, sans-serif;
  --serif: "Hedvig Letters Serif", Georgia, serif;

  /* type scale, ratio 1.333, from the 1600px reference page down to phones */
  --t-display: clamp(44px, 5.75vw, 92px);
  --t-heading: clamp(23px, 2.44vw, 39px);
  --t-lead:    clamp(20px, 2vw, 32px);
  --t-body:    17px;
  --t-cap:     13px;

  /* layout */
  --m: clamp(20px, 5.5vw, 140px);        /* page margin */
  --gap: clamp(16px, 1.5vw, 24px);        /* between tiles */
  --maxw: 1920px;
  --nav-h: 72px;

  /* shape */
  --r-tile: clamp(28px, 4.25vw, 68px);
  --r-img:  clamp(22px, 4vw, 64px);
  --r-sm:   clamp(18px, 2.75vw, 44px);
  --r-xs:   clamp(12px, 1.5vw, 20px);

  /* motion */
  --ease: cubic-bezier(.22, .9, .24, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  color-scheme: light;
}

/* ------------------------------- reset ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
/* clip, not hidden: hidden makes a scroll container and kills position: sticky */
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; }
body {
  background: var(--salt);
  color: var(--dusk);
  font-family: var(--sans);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
::selection { background: var(--dusk); color: var(--salt); }
.inverse ::selection { background: var(--salt); color: var(--dusk); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 6px; }
/* filled buttons and chips: currentColor is their own text colour, which can
   match the page around them, so ring them in the surface's foreground */
.btn:focus-visible, .chip:focus-visible, .reel-dots button:focus-visible { outline-color: var(--fg); }
[tabindex="-1"]:focus { outline: none; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

/* cross-document view transitions: the header persists, covers morph */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .38s; animation-timing-function: var(--ease); }
::view-transition-group(*) { animation-duration: .6s; animation-timing-function: var(--ease); }
.nav { view-transition-name: site-nav; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--dusk); color: var(--salt); padding: 10px 16px; border-radius: 999px; transition: top .2s; }
.skip:focus { top: 12px; }

/* ------------------------------- surfaces -------------------------------- */
.inverse {
  --bg: var(--dusk);
  --fg: var(--salt);
  --tile: var(--lift);
  --cap: var(--mist);
  --rule: var(--lift);
  background: var(--bg);
  color: var(--fg);
}
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--m); }

/* ------------------------------- type ------------------------------------ */
.t-display, .t-heading, .wordmark {
  font-family: var(--sans);
  font-stretch: 125%;
  font-weight: 500;
  text-wrap: balance;
}
.t-display { font-size: var(--t-display); line-height: 1.02; letter-spacing: -0.02em; }
.t-heading { font-size: var(--t-heading); line-height: 1.12; letter-spacing: -0.015em; }
.t-lead { font-family: var(--serif); font-size: var(--t-lead); line-height: 1.32; font-weight: 400; letter-spacing: -0.005em; text-wrap: pretty; max-width: 34ch; }
.t-body { font-size: var(--t-body); line-height: 1.55; max-width: 62ch; text-wrap: pretty; }
.t-serif { font-family: var(--serif); font-size: var(--t-body); line-height: 1.5; max-width: 62ch; }
.t-cap { font-size: var(--t-cap); line-height: 1.45; color: var(--cap); letter-spacing: 0.005em; }
.t-label { font-size: 17px; font-weight: 500; line-height: 1.3; }
.muted { color: var(--cap); }

/* the wordmark: dheemi in 600, studio in 400, both Expanded */
.wordmark { font-weight: 600; letter-spacing: -0.025em; white-space: nowrap; line-height: 1; }
.wordmark span { font-weight: 400; }

/* ------------------------------- grid ------------------------------------ */
/* heading on the left, content on the right */
.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: clamp(28px, 4vw, 56px);
}
.split > .split-head { grid-column: 1 / span 4; }
.split > .split-body { grid-column: 5 / -1; }
@media (max-width: 899px) {
  .split > .split-head, .split > .split-body { grid-column: 1 / -1; }
}

.section { padding-block: clamp(96px, 13vw, 200px); }
.section-tight { padding-block: clamp(72px, 9vw, 140px); }

/* ------------------------------- shape ----------------------------------- */
/* One container shape. The squircle needs a non-zero radius to do anything;
   browsers without corner-shape fall back to plain rounded corners. */
.sq { border-radius: var(--r-tile); }
.sq-img { border-radius: var(--r-img); }
.sq-sm { border-radius: var(--r-sm); }
.sq-xs { border-radius: var(--r-xs); }
@supports (corner-shape: squircle) {
  .sq, .sq-img, .sq-sm, .sq-xs { corner-shape: squircle; }
  /* a squircle reads tighter than a circle arc of the same radius */
  .sq { border-radius: calc(var(--r-tile) * 1.35); }
  .sq-img { border-radius: calc(var(--r-img) * 1.35); }
  .sq-sm { border-radius: calc(var(--r-sm) * 1.35); }
  .sq-xs { border-radius: calc(var(--r-xs) * 1.35); }
}
.pill { border-radius: 999px; }

.tile { background: var(--tile); }
.tile-white { background: var(--white); }

/* ------------------------------- the stroke ------------------------------ */
/* A single vowel stroke lifted from the mark. It replaces bullets and nothing
   else. It takes the colour of the text beside it, at about 60% of its size. */
.strokes { list-style: none; display: grid; gap: .55em; }
.strokes li { position: relative; padding-left: 1.35em; }
.strokes li::before {
  content: "";
  position: absolute; left: 0; top: .42em;
  width: .72em; height: .62em;
  background: currentColor;
  -webkit-mask: url("/assets/brand/stroke.svg") center / contain no-repeat;
          mask: url("/assets/brand/stroke.svg") center / contain no-repeat;
}

/* ------------------------------- buttons --------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  height: 52px; padding: 0 26px;
  border-radius: 999px;
  font-family: var(--sans); font-size: 17px; font-weight: 500; line-height: 1;
  background: var(--fg); color: var(--bg);
  transition: background-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--lift); color: var(--salt); }
.inverse .btn:hover { background: var(--stone); color: var(--dusk); }
.btn .arr { width: 16px; height: 16px; transition: transform .45s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--fg); padding: 0 6px; }
.btn-ghost:hover { background: transparent; color: var(--cap); }
.inverse .btn-ghost:hover { background: transparent; color: var(--mist); }
.btn-reed { background: var(--reed); color: var(--dusk); }
.btn-reed:hover { background: var(--salt); color: var(--dusk); }
.inverse .btn-reed:hover { background: var(--salt); color: var(--dusk); }
.btn[disabled] { opacity: 1; cursor: progress; }

.link { display: inline-flex; align-items: center; gap: .45em; transition: color .3s var(--ease); }
.link:hover { color: var(--cap); }
.link .arr { width: 14px; height: 14px; transition: transform .4s var(--ease); }
.link:hover .arr { transform: translate(2px, -2px); }

/* ------------------------------- nav ------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  background: var(--salt);
  color: var(--dusk);
  transition: transform .55s var(--ease), box-shadow .3s;
}
.nav.is-hidden { transform: translateY(-100%); }
.nav.is-hidden:has(:focus-visible) { transform: none; }
.nav.is-scrolled { box-shadow: 0 1px 0 var(--stone); }
.nav-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.lockup { display: inline-flex; align-items: center; gap: 11px; color: var(--dusk); }
.lockup .mark { height: 32px; width: auto; }
.lockup .wordmark { font-size: 15px; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav-links a { font-size: 17px; font-weight: 500; color: var(--dusk); transition: color .3s var(--ease); }
.nav-links a:hover { color: var(--haze); }
.nav .btn, .nav-links a.btn { height: 42px; padding: 0 20px; font-size: 17px; color: var(--salt); background: var(--dusk); }
.nav-links a.btn:hover { background: var(--lift); color: var(--salt); }
.nav-menu-btn { display: none; height: 42px; padding: 0 18px; border-radius: 999px; background: var(--stone); font-size: 17px; font-weight: 500; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: inline-flex; align-items: center; }
}

/* the menu sheet on small screens */
.sheet {
  position: fixed; inset: 0; z-index: 49;
  background: var(--salt);
  padding: calc(var(--nav-h) + 32px) var(--m) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  visibility: hidden; opacity: 0;
  transition: opacity .4s var(--ease), visibility 0s linear .4s;
}
.sheet.is-open { visibility: visible; opacity: 1; transition: opacity .4s var(--ease), visibility 0s; }
.sheet-links { display: grid; gap: 6px; }
.sheet-links a { font-family: var(--sans); font-stretch: 125%; font-weight: 500; font-size: clamp(36px, 10vw, 56px); letter-spacing: -0.02em; line-height: 1.12; }
.sheet-links a span { display: inline-block; transform: translateY(24px); opacity: 0; transition: transform .6s var(--ease), opacity .6s var(--ease); }
.sheet.is-open .sheet-links a span { transform: none; opacity: 1; }
.sheet.is-open .sheet-links a:nth-child(2) span { transition-delay: .04s; }
.sheet.is-open .sheet-links a:nth-child(3) span { transition-delay: .08s; }
.sheet.is-open .sheet-links a:nth-child(4) span { transition-delay: .12s; }
.sheet-foot { display: grid; gap: 6px; }

/* ------------------------------- intro ----------------------------------- */
/* The mark writes itself, right to left as Thaana is written. Once per tab. */
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  cursor: pointer;
}
.intro-bg { position: absolute; inset: 0; background: var(--salt); }
.intro svg { position: relative; }
html.intro-on, html.menu-open { overflow: clip; }
.intro svg { width: clamp(120px, 16vw, 220px); height: auto; color: var(--dusk); overflow: visible; }
.intro.is-done { pointer-events: none; }

/* ------------------------------- hero ------------------------------------ */
.hero { padding-top: calc(var(--nav-h) + clamp(72px, 15vh, 180px)); padding-bottom: clamp(48px, 6vw, 88px); }
.hero h1 { max-width: 15ch; }
.hero-row { margin-top: clamp(32px, 4.5vw, 64px); align-items: end; }
.hero-row .t-lead { max-width: 30ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; flex: none; }
@media (min-width: 900px) {
  .hero-row .split-body { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
}
@media (max-width: 899px) {
  .hero-row .hero-actions { margin-top: 28px; }
}

/* word-level masked reveal for display headlines */
.w { display: inline-block; overflow: clip; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; will-change: transform; }

/* ------------------------------- reel ------------------------------------ */
.reel { padding-bottom: clamp(96px, 12vw, 180px); }
.reel-frame {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--stone);
  transform-origin: 50% 0%;
  will-change: transform;
}
.reel-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  opacity: 0;
  transition: opacity 1.1s var(--ease-io);
}
.reel-frame img.is-on { opacity: 1; }
.reel-cap { margin-top: 18px; display: flex; gap: 10px 28px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.reel-titles { display: grid; flex: 1 1 260px; min-width: 0; }
.reel-title { grid-area: 1 / 1; display: flex; flex-wrap: wrap; gap: 4px 28px; align-items: baseline; visibility: hidden; opacity: 0; transition: opacity .5s var(--ease), visibility 0s linear .5s; }
.reel-title.is-on { visibility: visible; opacity: 1; transition-delay: 0s; }
.reel-title a { font-weight: 500; }
.reel-ctrl { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.reel-play { font-size: 13px; color: var(--cap); padding: 4px 2px; }
.reel-play:hover { color: var(--fg); }
.reel-dots { display: flex; gap: 6px; align-items: center; }
.reel-dots button { width: 22px; height: 22px; display: grid; place-items: center; }
.reel-dots button::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--haze); transition: background-color .4s, width .5s var(--ease); }
.reel-dots button.is-on::before { width: 18px; background: var(--dusk); }

/* ------------------------------- work ------------------------------------ */
.work-head { margin-bottom: clamp(48px, 7vw, 104px); }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(56px, 7vw, 112px) var(--gap); }
.card { grid-column: span 1; display: block; }
.card.is-wide { grid-column: 1 / -1; }
.card.is-wide .card-media { aspect-ratio: 16 / 9; }
.card-media {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--stone);
  isolation: isolate;
}
/* GSAP scrubs this image's scale on scroll: no CSS transition on transform */
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.card-cap { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px var(--gap); align-items: baseline; }
.card-cap .t-heading { display: inline-flex; align-items: baseline; gap: .4em; }
.card-cap .arr { width: .62em; height: .62em; flex: none; opacity: 0; transform: translate(-6px, 6px); transition: opacity .45s var(--ease), transform .45s var(--ease); align-self: center; }
.card:hover .card-cap .arr, .card:focus-visible .card-cap .arr { opacity: 1; transform: none; }
.card-meta { display: grid; gap: 2px; }
.card-meta .t-label { font-weight: 400; color: var(--cap); }
.card:not(.is-wide) .card-cap { grid-template-columns: 1fr; }
.card:not(.is-wide) .card-cap .t-heading { font-size: clamp(22px, 2vw, 32px); }
@media (max-width: 760px) {
  .work-grid { grid-template-columns: 1fr; }
  .card, .card.is-wide { grid-column: 1 / -1; }
.card.is-wide .card-media { aspect-ratio: 16 / 9; }
  .card-cap, .card.is-wide .card-cap { grid-template-columns: 1fr; }
}

/* ------------------------------- statement ------------------------------- */
.statement { padding-block: clamp(110px, 16vw, 260px); }
.statement > .t-display { max-width: 20ch; }
.statement .inline-img {
  display: inline-block;
  vertical-align: -0.12em;
  height: .86em;
  width: 2.1em;
  margin: 0 .26em 0 0;
  overflow: hidden;
  position: relative;
  background: var(--stone);
  border-radius: .22em;
}
@supports (corner-shape: squircle) { .statement .inline-img { corner-shape: squircle; border-radius: .3em; } }
.statement .inline-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transition: opacity .8s var(--ease-io); }
.statement .inline-img img.is-on { opacity: 1; }
.statement-sub { margin-top: clamp(28px, 4vw, 48px); }

/* ------------------------------- services -------------------------------- */
.services .split-head .t-display { max-width: 8ch; }
.svc-list { border-top: 1px solid var(--rule); }
.svc { border-bottom: 1px solid var(--rule); }
.svc-btn {
  width: 100%; text-align: left;
  display: grid; grid-template-columns: 3.2em minmax(0, 1fr) 28px; align-items: center; gap: var(--gap);
  padding: clamp(22px, 2.6vw, 36px) 0;
  color: var(--fg);
}
.svc-n { font-size: 13px; color: var(--cap); font-variant-numeric: tabular-nums; }
.svc-plus { width: 28px; height: 28px; position: relative; }
.svc-plus::before, .svc-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .5s var(--ease); }
.svc-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.svc.is-open .svc-plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.svc-btn:hover .t-heading { color: var(--mist); }
.svc-btn .t-heading { transition: color .3s var(--ease); }
.svc-panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .6s var(--ease), visibility 0s linear .6s; }
.svc.is-open .svc-panel { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.svc-panel > div { overflow: hidden; }
.svc-inner {
  display: grid; grid-template-columns: 3.2em minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap);
  padding-bottom: clamp(28px, 3vw, 44px);
}
.svc-inner .t-serif { font-size: clamp(17px, 1.35vw, 21px); grid-column: 2; }
.svc-inner .strokes { grid-column: 3; color: var(--fg); font-size: 17px; }
.svc-shot { grid-column: 2 / -1; margin-top: 8px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--gap); align-items: end; }
.svc-shot .frame { aspect-ratio: 16 / 9; overflow: hidden; background: var(--lift); max-width: 640px; }
.svc-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
@media (max-width: 760px) {
  .svc-btn { grid-template-columns: 2.4em minmax(0, 1fr) 28px; }
  .svc-inner { grid-template-columns: 1fr; }
  .svc-inner .t-serif, .svc-inner .strokes, .svc-shot { grid-column: 1; }
  .svc-shot { grid-template-columns: 1fr; }
}

/* ------------------------------- clients --------------------------------- */
/* every logo gets the same box and is contained inside it, so marks of any
   shape (wide wordmarks, round seals, tall stacked lockups) sit on one line */
.logos {
  --cols: 5;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  padding: clamp(32px, 4.5vw, 72px) clamp(24px, 4vw, 64px);
  gap: clamp(36px, 4.5vw, 64px) clamp(20px, 3vw, 48px);
}
.logos .logo { flex: 0 0 calc((100% - (var(--cols) - 1) * clamp(20px, 3vw, 48px)) / var(--cols)); min-width: 0; }
@media (max-width: 1180px) { .logos { --cols: 3; } }
.logos { --logo-h: clamp(52px, 5.2vw, 84px); }
.logos .logo { display: flex; align-items: center; justify-content: center; height: var(--logo-h); }
.logos .logo > a, .logos .logo > span { display: flex; align-items: center; justify-content: center; height: 100%; max-width: 100%; }
.logos .logo img { display: block; width: auto; max-width: min(100%, 190px); object-fit: contain; transition: opacity .3s var(--ease); }
.logos .logo a:hover img { opacity: .72; }
.logos .logo .t-label { color: var(--dusk); text-align: center; }
@media (max-width: 760px) { .logos { --cols: 2; } }

/* ------------------------------- studio ---------------------------------- */
.studio-body { display: grid; gap: clamp(32px, 4vw, 56px); }
.studio-body .t-lead { max-width: 30ch; }
/* four plain points under a hairline each. No tiles: the page has enough boxes */
.studio-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(28px, 4vw, 64px); }
.studio-point { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 1px solid var(--rule); }
.studio-point .t-label { font-size: 17px; }
.studio-point .t-serif { max-width: 34ch; }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--gap); }
.team figure { display: grid; gap: 10px; }
.team .ph { aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone); }
.team .ph img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 560px) { .studio-points { grid-template-columns: 1fr; } }

/* ------------------------------- contact --------------------------------- */
.contact { padding-top: clamp(104px, 13vw, 200px); padding-bottom: clamp(72px, 8vw, 120px); }
.contact .split-head .t-display { max-width: 7ch; }
.contact .split-head .t-cap { margin-top: 20px; max-width: 30ch; }

/* The sentence form. You fill in a letter rather than a grid of boxes. */
.letter {
  font-family: var(--serif);
  font-size: clamp(22px, 2.3vw, 34px);
  line-height: 1.9;
  letter-spacing: -0.005em;
  max-width: 30em;
  color: var(--salt);
}
.letter .field {
  display: inline-block;
  vertical-align: baseline;
  position: relative;
}
.letter input, .letter textarea {
  font-family: var(--sans);
  font-size: .62em;
  font-weight: 500;
  line-height: 1;
  height: 2.05em;
  padding: 0 .95em;
  border: 0;
  border-radius: 999px;
  background: var(--lift);
  color: var(--salt);
  vertical-align: .18em;
  min-width: 7em;
  max-width: 100%;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
  outline: none;
  field-sizing: content;
}
.letter input::placeholder, .letter textarea::placeholder { color: var(--mist); opacity: 1; }
.letter input:focus, .letter textarea:focus { background: var(--salt); color: var(--dusk); }
.letter input:focus::placeholder { color: var(--haze); }
.letter .field.is-bad input { box-shadow: inset 0 0 0 1.5px var(--mist); }
.letter .chips { display: inline; }
.chip {
  display: inline-flex; align-items: center;
  font-family: var(--sans);
  font-size: .62em;
  font-weight: 500;
  height: 2.05em;
  padding: 0 .95em;
  margin: 0 .18em .24em 0;
  vertical-align: .18em;
  border-radius: 999px;
  background: var(--lift);
  color: var(--salt);
  line-height: 1;
  transition: background-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.chip:hover { background: var(--haze); }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--salt); color: var(--dusk); }
.chip:active { transform: scale(.97); }
.letter .about { display: block; margin-top: .35em; }
.letter .about textarea {
  display: block; width: 100%;
  height: auto; min-height: 2.05em;
  padding: .62em .95em;
  line-height: 1.4;
  border-radius: calc(var(--r-xs) * .9);
  resize: none;
  font-family: var(--serif);
  font-weight: 400;
  font-size: .7em;
  vertical-align: 0;
}
@supports (corner-shape: squircle) { .letter .about textarea { corner-shape: squircle; border-radius: calc(var(--r-xs) * 1.2); } }
.letter-foot { font-family: var(--sans); margin-top: clamp(28px, 3.5vw, 44px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.letter-foot .t-cap { max-width: 34ch; }
.letter-foot .err { color: var(--salt); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sent { font-family: var(--serif); font-size: var(--t-lead); line-height: 1.32; max-width: 26ch; }
.sent + .t-cap { margin-top: 18px; }

/* ------------------------------- footer ---------------------------------- */
.footer { padding-top: clamp(64px, 8vw, 120px); padding-bottom: 28px; }
.footer-top { border-top: 1px solid var(--rule); padding-top: clamp(32px, 4vw, 56px); }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.footer-cols h3 { font-size: var(--t-cap); font-weight: 400; color: var(--cap); margin-bottom: 14px; }
.footer-cols ul { list-style: none; display: grid; gap: 8px; }
.footer-cols a { transition: color .3s var(--ease); }
.footer-cols a:hover { color: var(--mist); }
.footer-mail { font-size: var(--t-heading); font-stretch: 125%; font-weight: 500; letter-spacing: -0.015em; }
/* the wordmark spans the column exactly: its measured width is 6.86em */
.footer-word { margin-top: clamp(56px, 9vw, 140px); overflow: hidden; container-type: inline-size; }
.footer-word .wordmark { display: block; font-size: calc(100cqi / 6.9); line-height: .86; letter-spacing: -0.04em; color: var(--salt); padding-bottom: .06em; }
.footer-base { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 899px) { .footer-cols { grid-template-columns: 1fr 1fr; } .footer-cols > :first-child { grid-column: 1 / -1; } }

/* ------------------------------- project page ---------------------------- */
.p-open-wrap { padding-top: calc(var(--nav-h) + 16px); }
.p-open {
  padding: clamp(32px, 5.5vw, 88px);
  min-height: min(78vh, 820px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 40px;
  align-content: space-between;
}
.p-open-head { grid-column: 1 / span 6; display: grid; gap: 16px; align-content: start; }
.p-open-head .t-display { font-size: clamp(40px, 5.75vw, 92px); max-width: 11ch; }
.p-open-logo { --logo-h: clamp(60px, 6.4vw, 104px); grid-column: 10 / -1; justify-self: end; align-self: start; width: clamp(150px, 16vw, 250px); aspect-ratio: 5 / 4; display: flex; align-items: center; justify-content: center; padding: 12%; }
.p-open-logo img { display: block; width: auto; max-width: 100%; object-fit: contain; }
.p-open-body { grid-column: 5 / -1; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: end; }
.p-open-body .t-lead { max-width: 34ch; font-size: clamp(19px, 1.6vw, 25px); line-height: 1.38; }
.p-facts { display: grid; gap: 22px; align-content: end; min-width: 0; }
.p-facts dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 20px; font-size: 17px; }
.p-facts dd { min-width: 0; overflow-wrap: anywhere; }
.p-facts dd .link { display: inline; }
.p-facts dt { color: var(--cap); }
.p-facts .strokes { font-size: 17px; }
@media (max-width: 899px) {
  .p-open { min-height: 0; }
  .p-open-head { grid-column: 1 / -1; order: 2; }
  .p-open-logo { grid-column: 1 / -1; justify-self: start; order: 1; width: clamp(120px, 26vw, 180px); --logo-h: clamp(44px, 9vw, 72px); }
  .p-open-body { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); order: 3; }
}
.p-tagline { color: var(--cap); max-width: 34ch; }

.p-cover { margin-top: var(--gap); }
.p-cover .frame { aspect-ratio: 16 / 10; overflow: hidden; background: var(--stone); }
.p-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.p-work { padding-block: clamp(96px, 12vw, 180px); }
.p-work-head { margin-bottom: clamp(36px, 5vw, 72px); display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.gallery { display: grid; gap: clamp(40px, 5vw, 72px); }
.g-row { display: flex; gap: var(--gap); align-items: flex-start; }
.g-item { flex: none; display: grid; gap: 14px; }
.g-item .frame { overflow: hidden; background: var(--stone); }
.g-item img { width: 100%; height: 100%; object-fit: cover; }
.g-item.is-logo .frame { background: var(--white); display: grid; place-items: center; }
.g-item.is-logo img { width: 56%; height: 56%; object-fit: contain; }
@media (max-width: 640px) {
  .g-row { flex-direction: column; }
  .g-row.is-pair { flex-direction: row; }
}

.p-visit { margin-top: clamp(40px, 5vw, 72px); }

.p-next { padding-bottom: clamp(96px, 12vw, 180px); }
.p-next a { display: grid; gap: 20px; }
.p-next .frame { aspect-ratio: 16 / 7; overflow: hidden; background: var(--stone); }
.p-next img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.p-next .row { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.p-missing { min-height: 70vh; display: grid; align-content: center; gap: 24px; padding-top: var(--nav-h); }

/* ------------------------------- motion failsafe ------------------------- */
/* html.anim-ready is only set when GSAP exists and motion is allowed, so a
   script failure can never leave the page blank. GSAP owns the from-states. */
html.anim-ready [data-r] { opacity: 0; }
/* never a percentage transform here: GSAP would read it back as px and the
   words would stay below their mask forever. Hide, and let GSAP set from-states. */
html.anim-ready [data-split] { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html.anim-ready [data-r] { opacity: 1; }
  html.anim-ready [data-split] { opacity: 1; }
}
