/* The Frequency. Tokens per the operating standard, screen column. */

@font-face { font-family: "Agrandir Text"; src: url("/fonts/AgrandirText-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Agrandir Text"; src: url("/fonts/AgrandirText-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Agrandir Text"; src: url("/fonts/AgrandirText-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Agrandir Narrow"; src: url("/fonts/AgrandirNarrow-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ink: #363636;
  --grey: #757679;
  --hair: #D9DADB;
  --accent: #B8586E;
  --volt: #ECFF3B; /* interaction accent, draft 4; never text on white */
  --page: #FFFFFF;
  --text: "Agrandir Text", "Helvetica Neue", Arial, sans-serif;
  --narrow: "Agrandir Narrow", "Arial Narrow", "Helvetica Neue", sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  --measure: 620px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--volt); color: var(--ink); }
p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

/* Furniture: Narrow Bold, sentence case in source, caps by CSS */
.label {
  font-family: var(--narrow);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  line-height: 1;
}

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--hair);
}
.wordmark { display: block; width: clamp(150px, 22vw, 260px); }
.wordmark svg { width: 100%; height: auto; display: block; }
.wordmark { color: var(--ink); }
.menu-trigger {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--narrow); font-weight: 700; font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
  background: transparent; border: 0; padding: 6px 0; margin: 0; cursor: pointer;
}
.menu-glyph { display: inline-flex; flex-direction: column; gap: 5px; width: 22px; }
.menu-glyph span { display: block; height: 2px; background: var(--ink); transition: transform 300ms var(--ease), background 300ms var(--ease); }
.menu-trigger:hover .menu-glyph span:first-child, .menu-trigger:focus-visible .menu-glyph span:first-child { background: var(--ink); transform: translateY(-1px); }
.menu-trigger:hover .menu-glyph span:last-child, .menu-trigger:focus-visible .menu-glyph span:last-child { transform: translateY(1px); }
.menu-trigger:focus-visible { outline: none; box-shadow: 0 3px 0 0 var(--volt); }

/* Panel navigation. White sheet over a dimmed page; the pointed link holds ink, siblings recede. */
html.panel-open { overflow: hidden; }
.scrim { position: fixed; inset: 0; z-index: 30; background: rgba(54,54,54,0.45); opacity: 0; transition: opacity 450ms var(--ease); }
.scrim.open { opacity: 1; }
.panel {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 40;
  width: min(440px, 92vw); background: var(--page);
  padding: 24px var(--gutter) 32px 28px;
  display: flex; flex-direction: column;
  transform: translateX(-102%); transition: transform 450ms var(--ease);
  border-right: 1px solid var(--hair);
}
.panel.open { transform: translateX(0); }
.panel-close {
  background: transparent; border: 0; padding: 12px; margin: 0 0 30px -12px; color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; gap: 12px; min-width: 48px; min-height: 48px;
  font-family: var(--narrow); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
}
.panel-close { align-self: flex-start; }
.panel-close:hover { color: var(--grey); }
.panel-close:hover, .panel-close:focus-visible { background: transparent; outline: none; }
.panel-close:focus-visible { box-shadow: 0 3px 0 0 var(--volt); }
.panel-nav { display: flex; flex-direction: column; gap: 6px; }
.panel-nav a {
  font-family: var(--text); font-size: clamp(32px, 4.4vh, 44px); line-height: 1.3;
  color: var(--ink); width: max-content; position: relative; padding-left: 0;
  transition: color 400ms var(--ease), padding-left 400ms var(--ease);
}
.panel-nav a::before {
  content: ""; position: absolute; left: 0; top: 50%; margin-top: -6px;
  width: 12px; height: 12px; background: var(--volt); opacity: 0; transition: opacity 300ms var(--ease);
}
.panel-nav a.current { padding-left: 24px; }
.panel-nav a.current::before { opacity: 1; }
.panel-nav:hover a, .panel-nav:focus-within a { color: #C6C7C9; }
.panel-nav a:hover, .panel-nav a:focus-visible { color: var(--ink); outline: none; }
.panel-foot { margin-top: auto; display: grid; gap: 6px; font-size: 14px; color: var(--grey); }
.panel-foot a { color: var(--ink); width: max-content; border-bottom: 1px solid var(--hair); }
.panel-foot a:hover { border-color: var(--ink); }
.panel-foot p { margin: 0; }
.panel-line { font-family: var(--narrow); font-weight: 700; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 14px; }

/* Partners */
.partners { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); }
.partner-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: clamp(28px, 5vw, 72px) clamp(32px, 4.5vw, 64px); }
.partner-row img { width: var(--w, 110px); height: auto; opacity: 0.75; filter: grayscale(1); transition: opacity 300ms var(--ease); }
.partner-row li:hover img { opacity: 1; }

/* Clients. One ink, tiered by weight; --h carries each mark's display height. */
.client-wall { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: clamp(36px, 5vw, 60px) clamp(40px, 5.5vw, 84px); max-width: 1240px; }
.client-wall li { display: flex; align-items: center; }
.client-wall img { height: var(--h, 28px); width: auto; opacity: 0.82; transition: opacity 300ms var(--ease); }
.client-wall li:hover img { opacity: 1; }
@media (max-width: 560px) {
  .client-wall { gap: 28px 36px; }
  .client-wall img { height: calc(var(--h, 28px) * 0.75); }
}

/* Loader. Counts to 100 with a hairline progress rule; removed when done. */
html.is-loading { overflow: hidden; }
html.is-loading body > main, html.is-loading body > footer { visibility: hidden; }
.loader { position: fixed; inset: 0; z-index: 50; background: var(--page); transition: opacity 600ms var(--ease); }
.loader.is-done { opacity: 0; pointer-events: none; }
.loader-rule { position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.loader-count { position: absolute; left: var(--gutter); bottom: 28px; font-family: var(--text); font-size: clamp(48px, 7vw, 96px); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Hero */
.hero-wrap { position: relative; border-bottom: 3px solid var(--volt); }
.hero { overflow: hidden; height: min(88vh, 1000px); min-height: 480px; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; transform: scale(1.04); transition: transform 2400ms var(--ease); }
.hero.is-ready img { transform: scale(1); }
/* Ink band. The one dark moment on the page; tokens invert, accent budget unchanged. */
.band { background: var(--ink); color: #FFFFFF; border-top: 0; padding-top: clamp(72px, 11vw, 160px); padding-bottom: clamp(72px, 11vw, 160px); }
.band .label { color: rgba(255,255,255,0.55); }
.manifesto {
  margin: 0; max-width: 24ch;
  font-size: clamp(30px, 4.6vw, 64px); line-height: 1.12; letter-spacing: -0.012em;
  text-wrap: balance;
}
.manifesto .w { opacity: 0.18; transition: opacity 350ms var(--ease); }
.manifesto .w.on { opacity: 1; }
.manifesto .w-volt.on { color: var(--volt); }
.manifesto.done .w { opacity: 1; }

/* Sections */
.section { padding: clamp(56px, 9vw, 128px) var(--gutter); border-top: 1px solid var(--hair); }
.section > .label { margin-bottom: 28px; }
.statement {
  font-size: clamp(28px, 4.2vw, 60px); line-height: 1.14; letter-spacing: -0.01em;
  max-width: 22ch; margin: 0;
}
.statement em { font-style: italic; }
.kv { display: grid; grid-template-columns: minmax(220px, 1fr) 2.4fr; gap: clamp(32px, 6vw, 110px); align-items: start; }
.lede { font-size: clamp(23px, 2.9vw, 42px); line-height: 1.3; letter-spacing: -0.008em; font-weight: 400; margin: 0; max-width: 36ch; }
.lede em { font-style: italic; }
.facts { margin: 6px 0 0; }
.facts div { display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 0 0 18px; }
.facts dt { font-family: var(--narrow); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); padding-top: 3px; }
.facts dd { margin: 0; font-size: 15px; line-height: 1.45; }
.facts a { border-bottom: 1px solid var(--hair); transition: border-color 300ms var(--ease); }
.facts a:hover { border-color: var(--ink); }
.num { font-family: var(--narrow); font-weight: 700; color: var(--ink); background: var(--volt); display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 22px; }

/* Services list */
.services { list-style: none; margin: 0; padding: 0; max-width: 880px; }
.services li {
  display: grid; grid-template-columns: 56px 1fr; gap: 0 24px;
  padding: 22px 0; border-top: 1px solid var(--hair);
}
.services li:last-child { border-bottom: 1px solid var(--hair); }
.services .num { font-size: 12px; letter-spacing: 0.08em; margin-top: 4px; }
.services h3 { font-family: var(--narrow); font-weight: 700; font-size: 20px; letter-spacing: 0.01em; margin: 0 0 4px; }
.services p { color: var(--ink); font-size: 16px; max-width: 56ch; }

/* Image furniture */
.plate { padding: 0; border-top: 0; }
.plate img { width: 100%; height: auto; }
.diptych { display: grid; grid-template-columns: 1fr 2fr; gap: 2px; }
.diptych img { width: 100%; height: 100%; object-fit: cover; }
.diptych img:first-child { aspect-ratio: 3 / 4; }
.diptych img:last-child { aspect-ratio: 3 / 2; }
.triptych { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.triptych img { width: 100%; height: 100%; object-fit: cover; }
.triptych .tall { aspect-ratio: 3 / 4; }
.stack { display: grid; grid-template-rows: 1fr 1fr; gap: 2px; }
.stack img { aspect-ratio: 3 / 2; }
figure { margin: 0; }
figcaption { padding: 12px var(--gutter); color: var(--grey); font-size: 13px; }

/* Approach: label left, argument right, hairline rows */
.approach { max-width: 1100px; }
.approach .row { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: clamp(24px, 5vw, 80px); padding: 26px 0; border-top: 1px solid var(--hair); }
.approach .row:last-child { border-bottom: 1px solid var(--hair); }
.approach h3 { font-family: var(--narrow); font-weight: 700; font-size: 18px; margin: 0; }
.approach p { font-size: 17px; max-width: 52ch; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
form { max-width: 520px; }
.field { display: grid; gap: 8px; padding: 18px 0; border-top: 1px solid var(--hair); }
.field:last-of-type { border-bottom: 1px solid var(--hair); }
.field label { font-family: var(--narrow); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: transparent; border: 0; padding: 0; width: 100%;
  outline: none;
}
.field textarea { min-height: 120px; resize: vertical; }
.field:focus-within label { color: var(--ink); background: var(--volt); padding: 2px 6px; margin-left: -6px; width: max-content; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button {
  margin-top: 24px; font-family: var(--narrow); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  background: transparent; color: var(--ink); border: 1px solid var(--ink); padding: 14px 28px; cursor: pointer;
  transition: color 300ms var(--ease), border-color 300ms var(--ease);
}
button:hover, button:focus-visible { background: var(--volt); border-color: var(--ink); color: var(--ink); outline: none; }
.form-note { margin-top: 16px; font-size: 14px; color: var(--grey); min-height: 1.5em; }
.form-note[data-state="sent"] { color: var(--ink); }
.form-note[data-state="error"] { color: var(--accent); }

/* Footer */
.site-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px;
  padding: 40px var(--gutter) 32px; border-top: 1px solid var(--hair);
  color: var(--grey); font-size: 13px;
}
.site-foot .mono { width: 150px; color: var(--ink); height: auto; }
.site-foot address { font-style: normal; }
.site-foot a:hover { color: var(--ink); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
  .panel, .scrim { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .manifesto .w { opacity: 1; transition: none; }
  .hero img { transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 860px) {
  .intro, .contact { grid-template-columns: 1fr; }
  .approach .row { grid-template-columns: 1fr; gap: 8px; }
  .kv { grid-template-columns: 1fr; }
  .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .facts div { min-width: 0; grid-template-columns: 1fr; gap: 6px; }
  .facts dd { min-width: 0; overflow-wrap: break-word; }
  .triptych { grid-template-columns: 1fr; }
  .triptych .tall { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wordmark { width: 124px; }
  .site-nav { gap: 14px; }

  .diptych { grid-template-columns: 1fr; }
  .diptych img:first-child, .diptych img:last-child { aspect-ratio: 4 / 3; }
  .services li { grid-template-columns: 40px 1fr; gap: 0 14px; }
}
