/* Aesthetix — site styles
   Palette: paper / ink / graphite, plus the logo's stripe colours (hero only). */

/* Helvetica Neue on Apple devices (as santalarch.com); Inter Tight elsewhere.
   The webfont only downloads on devices without Helvetica. */
@font-face {
  font-family: "Inter Tight";
  src: url("fonts/inter-tight-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f0f0ee;
  --ink: #000;
  --graphite: #5e5e5e;
  --mist: #a3a3a0;           /* secondary text on black */
  --rule-light: rgba(0, 0, 0, 0.14);
  --rule-dark: rgba(255, 255, 255, 0.16);
  --gridline: rgba(128, 128, 128, 0.11);

  --gutter: 16px;
  --inset: 12px;             /* text sits just right of each grid line */
  --cols: 2;

  --f: "Helvetica Neue", Helvetica, "Inter Tight", Arial, sans-serif;
  --t-small: 0.8125rem;      /* 13px */
  --t-body: 1.0625rem;       /* 17px */
  --t-lead: clamp(1.375rem, 1rem + 1.4vw, 2.25rem);
  --t-h2: clamp(2.25rem, 1.2rem + 3.6vw, 4.5rem);
  --t-h3: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem);

  --ease: cubic-bezier(0.2, 0.7, 0, 1);
  color-scheme: light;
}

@media (min-width: 900px) {
  :root { --gutter: 24px; --cols: 6; }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f);
  font-size: var(--t-body);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 400; letter-spacing: -0.025em; line-height: 1.05; text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 14px; font-size: var(--t-small);
}
.skip-link:focus { top: 12px; }

/* ---------- The grid: columns and the vertical lines behind everything ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  padding-inline: var(--gutter);
}
.grid > * { padding-left: var(--inset); padding-right: var(--inset); min-width: 0; }

.gridlines {
  position: fixed; inset: 0; z-index: 40; pointer-events: none;   /* above sections, below header */
}
.gridlines span { border-left: 1px solid var(--gridline); height: 100%; }
.gridlines span:nth-child(n + 3) { display: none; }
@media (min-width: 900px) { .gridlines span:nth-child(n + 3) { display: block; } }

main, .site-footer { position: relative; z-index: 1; }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: #fff; mix-blend-mode: difference;   /* reads black on paper, white on black */
  font-size: var(--t-small);
}
.site-header .grid { align-items: start; padding-top: 14px; }
.brand { display: inline-block; padding-top: 2px; }
.brand img { width: 96px; height: auto; }
.nav-list { display: none; }
.nav-list > li { padding-left: var(--inset); padding-right: var(--inset); }
.nav-link {
  display: block; position: relative; padding-top: 12px; text-decoration: none; min-height: 24px;
}
.nav-link::before {                         /* small tick that meets the grid line */
  content: ""; position: absolute; left: calc(var(--inset) * -1); top: 0; width: 1px; height: 8px; background: currentColor;
}
.nav-link:hover, .nav-link[aria-current="page"] { text-decoration: underline; }

.menu-button {
  grid-column: 2; justify-self: end; font: inherit; color: inherit; background: none; border: 0;
  padding: 2px 0 10px 16px; cursor: pointer; min-height: 44px; min-width: 44px; text-align: right;
}

@media (min-width: 900px) {
  .menu-button { display: none; }
  .nav-list { display: contents; }
}

/* Mobile menu (native popover) */
.menu {
  inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0;
  padding: 14px calc(var(--gutter) + var(--inset)); background: var(--ink); color: var(--paper);
}
.menu::backdrop { background: transparent; }
.menu-top { display: flex; justify-content: space-between; align-items: start; font-size: var(--t-small); }
.menu-top img { width: 96px; }
.menu-close { font: inherit; color: inherit; background: none; border: 0; padding: 2px 0 10px 16px; min-height: 44px; cursor: pointer; }
.menu-list { margin-top: 18vh; display: grid; gap: 6px; }
.menu-list a { font-size: 2.5rem; font-weight: 400; letter-spacing: -0.02em; text-decoration: none; line-height: 1.15; }
.menu-foot { position: absolute; bottom: 20px; font-size: var(--t-small); color: var(--mist); }

/* ---------- Sections ---------- */

.section { padding-block: clamp(80px, 12vw, 160px); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark .muted { color: var(--mist); }
.muted { color: var(--graphite); }
.small { font-size: var(--t-small); line-height: 1.5; }

.section-title { font-size: var(--t-h2); grid-column: 1 / -1; margin-bottom: 48px; }
@media (min-width: 900px) {
  .section-title { grid-column: 1 / span 2; margin-bottom: 0; }
}

.text-link { text-decoration: underline; }
.text-link:hover { text-decoration-thickness: 2px; }

/* ---------- Hero ---------- */

.hero { display: flex; flex-direction: column; padding-top: 104px; padding-bottom: 56px; row-gap: 72px; }
@media (min-width: 900px) { .hero { min-height: 100svh; padding-top: 120px; padding-bottom: 32px; } }

.hero-logo { grid-column: 1 / -1; max-width: 300px; }
@media (min-width: 900px) { .hero-logo { grid-column: 1 / span 2; max-width: none; } }
.lockup { position: relative; width: 100%; padding-top: 10.4%; }   /* room for the stripes above the wordmark */
.lockup .stripes { position: absolute; top: 0; left: 51.45%; width: 48.04%; height: auto; aspect-ratio: 748 / 145; }
.lockup .wordmark { width: 100%; }
.tagline-img { width: 100%; margin-top: 6%; }

.stripes rect { transform-box: fill-box; transform-origin: left center; }
@media (prefers-reduced-motion: no-preference) {
  .stripes rect { transform: scaleX(0); animation: draw 1100ms var(--ease) forwards; animation-delay: calc(var(--d) + 250ms); }
}
@keyframes draw { to { transform: scaleX(1); } }

.hero-intro { margin-top: auto; row-gap: 40px; align-items: end; }
.hero-intro .lead {
  grid-column: 1 / -1; font-size: clamp(2rem, 1rem + 3.3vw, 4.25rem); line-height: 1.06;
  letter-spacing: -0.03em; font-weight: 400; max-width: 19ch;
}
.hero-intro .meta { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .hero-intro .lead { grid-column: 3 / span 4; grid-row: 1; }
  .hero-intro .meta { grid-column: 1 / span 2; grid-row: 1; }
}

/* Header logo stays hidden on the homepage until the hero logo scrolls away */
.js .is-home .site-header .brand { opacity: 0; transition: opacity 300ms var(--ease); }
.js .is-home .site-header.show-brand .brand { opacity: 1; }

/* ---------- Full-bleed artwork ---------- */

.plate { position: relative; z-index: 1; background: var(--ink); }
.plate-art { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .plate-art { aspect-ratio: 3.2 / 1; } }

/* ---------- Recognition ---------- */

.recognition { row-gap: 40px; align-items: start; }
.recognition .badge { grid-column: 1 / -1; }
.recognition .badge img { width: 112px; }
.recognition .statement { grid-column: 1 / -1; }
.recognition .statement .statement-lead { font-size: var(--t-lead); line-height: 1.22; letter-spacing: -0.015em; font-weight: 400; max-width: 30ch; }
.recognition .statement .statement-lead ~ p { margin-top: 24px; max-width: 58ch; }
@media (min-width: 900px) {
  .recognition .badge { grid-column: 1 / span 2; }
  .recognition .statement { grid-column: 3 / span 4; }
}

/* ---------- Services accordion ---------- */

.services { align-items: start; }
.accordion { grid-column: 1 / -1; border-top: 1px solid var(--rule-dark); }
@media (min-width: 900px) { .accordion { grid-column: 3 / span 4; } }

.fold { border-bottom: 1px solid var(--rule-dark); }
.fold summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 22px 0; font-size: var(--t-h3); font-weight: 400; letter-spacing: -0.01em; line-height: 1.2;
}
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after {
  content: "+"; font-size: 1.25em; line-height: 1; font-weight: 400; transition: transform 300ms var(--ease);
}
.fold[open] summary::after { transform: rotate(45deg); }
.fold summary:hover { opacity: 0.75; }
.fold-body { display: grid; gap: 20px; padding-bottom: 32px; max-width: 62ch; }
.fold-body ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 24px; }
.fold-body li { font-size: var(--t-small); color: var(--mist); }

@media (prefers-reduced-motion: no-preference) {
  .fold::details-content { transition: height 400ms var(--ease), content-visibility 400ms allow-discrete; height: 0; overflow: clip; }
  .fold[open]::details-content { height: auto; }
}
:root { interpolate-size: allow-keywords; }

/* ---------- Work ---------- */

.grid > .work-list { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: clamp(56px, 8vw, 112px); margin-top: 8px; padding: 0; }
.work-item { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; row-gap: 16px; align-items: end; }
.work-item > * { padding: 0 var(--inset); }
.work-item > img { grid-column: 1 / -1; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; padding: 0; }
.work-item .caption { grid-column: 1 / -1; display: grid; gap: 6px; }
.work-item h3 { font-size: var(--t-h3); }
@media (min-width: 900px) {
  .grid > .work-list { margin-top: 72px; }
  .work-item > img { grid-column: 1 / span 4; aspect-ratio: 16 / 9; }
  .work-item .caption { grid-column: 5 / span 2; padding-left: var(--inset); }
  .work-item:nth-child(even) > img { grid-column: 3 / span 4; grid-row: 1; }
  .work-item:nth-child(even) .caption { grid-column: 1 / span 2; grid-row: 1; padding-left: var(--inset); }
}
.placeholder { color: var(--graphite); background: rgba(0,0,0,0.05); padding: 0 4px; }

/* ---------- Markets ---------- */

.markets { row-gap: 0; align-items: start; }
.markets .after { margin-top: 32px; }
.market-list { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.market-list li { display: grid; gap: 4px; align-content: start; padding: 14px 0 20px; border-top: 1px solid var(--rule-light); }
.market-list .who { font-size: var(--t-h3); font-weight: 400; letter-spacing: -0.01em; line-height: 1.2; }
.market-list .what { font-size: var(--t-small); color: var(--graphite); }
@media (max-width: 599px) { .market-list { grid-template-columns: 1fr; } }
.markets .after { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .market-list { grid-column: 3 / span 4; grid-template-columns: repeat(2, 1fr); gap: 0 var(--gutter); }
  .markets .after { grid-column: 3 / span 4; }
}

/* ---------- Process ---------- */

.process { row-gap: 0; }
.grid > .steps { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: 40px; margin-top: 8px; padding: 0; }
.steps > li { padding: 0 var(--inset); display: grid; align-content: start; gap: 10px; }
.steps .n { font-size: var(--t-small); color: var(--mist); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: var(--t-h3); }
.steps p { font-size: var(--t-small); color: var(--mist); max-width: 30ch; }
@media (min-width: 900px) { .grid > .steps { margin-top: 96px; } .steps > li { grid-column: span 1; } }

/* ---------- Contact ---------- */

.contact { row-gap: 40px; align-items: end; }
.contact .big { grid-column: 1 / -1; font-size: clamp(3rem, 1.5rem + 7vw, 9rem); font-weight: 400; letter-spacing: -0.035em; line-height: 0.95; }
.contact .big a { text-decoration-thickness: 2px; text-underline-offset: 0.08em; }
.contact .col { grid-column: span 1; display: grid; gap: 4px; align-content: start; }
.contact .col dt { color: var(--graphite); font-size: var(--t-small); }
.contact .col dd { font-size: var(--t-small); }
.grid > .cols { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: 32px; padding: 0; }
.contact .cols > * { padding: 0 var(--inset); }
@media (min-width: 900px) {
  .contact .big { grid-column: 1 / span 3; }
  .grid > .cols { grid-column: 4 / span 3; }
}

/* ---------- Footer ---------- */

.site-footer { padding-block: 40px 28px; font-size: var(--t-small); color: var(--graphite); }
.site-footer .grid { row-gap: 16px; align-items: end; }
.site-footer .foot-mark { grid-column: 1 / -1; }
.site-footer .foot-mark img { width: 100%; max-width: none; opacity: 1; }
.site-footer .legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
@media (min-width: 900px) {
  .site-footer .legal { grid-column: 1 / -1; }
}

/* ---------- Graphics: sector icons, services artwork, process signal path ---------- */

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.market-list li { grid-template-columns: 44px 1fr; column-gap: 16px; }
.market-list li > .who, .market-list li > .what { grid-column: 2; }
.sector-icon {
  grid-column: 1; grid-row: 1 / span 2; width: 44px; height: 44px; margin-top: 2px;
  fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round;
}
.sector-icon .fill { fill: currentColor; stroke: none; }
.sector-icon .dot { fill: var(--paper); }

/* Section heading and artwork share the left columns; artwork stays in view while the list is read */
.grid > .services-head { grid-column: 1 / -1; padding: 0; display: grid; grid-template-columns: subgrid; }
.services-head .section-title { grid-column: 1 / -1; padding: 0 var(--inset); }
.services-art { grid-column: 1 / -1; width: 100%; max-width: 360px; height: auto; margin: 0 0 40px; padding: 0 var(--inset); opacity: 0.9; }
@media (min-width: 900px) {
  .grid > .services-head { grid-column: 1 / span 2; grid-row: 1; position: sticky; top: 96px; align-self: start; display: block; padding: 0 var(--inset); }
  .services-head .section-title { padding: 0; }
  .services-art { max-width: none; margin: 56px 0 0; padding: 0; }
  .accordion { grid-row: 1; }
}

/* Process: a signal line with a node at each step */
.steps > li { position: relative; padding-top: 36px; }
.steps > li::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: var(--rule-dark); }
.steps > li::after {
  content: ""; position: absolute; left: calc(var(--inset) - 4px); top: 0; width: 9px; height: 9px;
  border-radius: 50%; background: var(--paper);
}
.steps > li:first-child::before { left: calc(var(--inset)); }
.steps > li:last-child::before { background: linear-gradient(90deg, var(--rule-dark), transparent); }

/* ---------- Motion (all of it switched off for reduced-motion visitors) ---------- */

.lead-wrap { grid-column: 1 / -1; display: grid; gap: 20px; }
.lead-detail { font-size: var(--t-body); line-height: 1.5; color: var(--graphite); max-width: 46ch; }
@media (min-width: 900px) { .lead-wrap { grid-column: 3 / span 4; grid-row: 1; } .lead-detail { font-size: 1.1875rem; } }
.hero-intro .lead-wrap .lead { grid-column: auto; max-width: 16ch; }

.services-art { aspect-ratio: 4 / 5; }

/* Process: a soft glow travels along the signal line */
.grid > .steps { position: relative; overflow: clip; }
@media (prefers-reduced-motion: no-preference) {
  .grid > .steps::before {
    content: ""; position: absolute; top: 4px; left: 0; width: 160px; height: 1px; z-index: 1;
    background: linear-gradient(90deg, transparent, var(--paper), transparent);
    animation: travel 7s linear infinite;
  }
  @keyframes travel { from { transform: translateX(-160px); } to { transform: translateX(calc(100vw)); } }

  /* Sector icons draw themselves in once */
  .draw-ready .sector-icon { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1600ms var(--ease); }
  .drawn .sector-icon { stroke-dashoffset: 0; }
  .drawn li:nth-child(2) .sector-icon { transition-delay: 80ms; }
  .drawn li:nth-child(3) .sector-icon { transition-delay: 160ms; }
  .drawn li:nth-child(4) .sector-icon { transition-delay: 240ms; }
  .drawn li:nth-child(5) .sector-icon { transition-delay: 320ms; }
  .drawn li:nth-child(6) .sector-icon { transition-delay: 400ms; }
  .drawn li:nth-child(7) .sector-icon { transition-delay: 480ms; }
  .drawn li:nth-child(8) .sector-icon { transition-delay: 560ms; }
  .drawn li:nth-child(9) .sector-icon { transition-delay: 640ms; }
  .drawn li:nth-child(10) .sector-icon { transition-delay: 720ms; }
  .drawn li:nth-child(11) .sector-icon { transition-delay: 800ms; }
  .drawn li:nth-child(12) .sector-icon { transition-delay: 880ms; }
}

/* =====================================================================
   Inner pages
   ===================================================================== */

.page-hero { padding-top: 120px; padding-bottom: clamp(48px, 7vw, 96px); }
.page-title {
  grid-column: 1 / -1; font-size: clamp(3.5rem, 1rem + 10.5vw, 11rem); line-height: 0.9;
  letter-spacing: -0.05em; font-weight: 400;
}
.page-lead {
  grid-column: 1 / -1; margin-top: clamp(32px, 5vw, 72px); font-size: var(--t-lead); line-height: 1.2;
  letter-spacing: -0.015em; max-width: 30ch;
}
@media (min-width: 900px) { .page-lead { grid-column: 3 / span 4; } }

.band { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; position: relative; z-index: 1; }
@media (min-width: 900px) { .band { aspect-ratio: 3.2 / 1; } }

/* Rows: heading on the left two columns, content on the right four */
.rows { padding-block: clamp(56px, 8vw, 120px); }
.row { padding-block: 40px 48px; border-top: 1px solid var(--rule-light); row-gap: 20px; align-items: start; }
.section--dark .row { border-top-color: var(--rule-dark); }
.row:last-child { border-bottom: 1px solid var(--rule-light); }
.section--dark .row:last-child { border-bottom-color: var(--rule-dark); }
.row-head { grid-column: 1 / -1; display: flex; gap: 16px; align-items: start; }
.row-head h2 { font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.5rem); line-height: 1.08; }
.row-head .sector-icon { flex: none; width: 52px; height: 52px; grid-row: auto; margin-top: 0; }
.row-body { grid-column: 1 / -1; display: grid; gap: 20px; max-width: 64ch; }
@media (min-width: 900px) {
  .row-head { grid-column: 1 / span 2; }
  .row-body { grid-column: 3 / span 4; }
}
.row-body > p:first-child { font-size: 1.1875rem; line-height: 1.45; }

.ticks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 28px; }
.ticks li { position: relative; padding-left: 18px; font-size: var(--t-small); color: var(--graphite); }
.section--dark .ticks li { color: var(--mist); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 1px; background: currentColor; }

.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.levels h3 { font-size: var(--t-body); font-weight: 500; letter-spacing: 0; margin-bottom: 6px; }
.levels p { font-size: var(--t-small); color: var(--graphite); }

.intro-block { padding-block: clamp(56px, 8vw, 112px) 0; }
.intro-block .section-title { margin-bottom: 32px; }
.intro-block .row-body { grid-column: 1 / -1; }
@media (min-width: 900px) { .intro-block .row-body { grid-column: 3 / span 4; } }

/* Work: small photographs, captions underneath */
.photo-grid { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: 48px; padding: 0; }
.photo-grid figure { grid-column: span 1; padding: 0 var(--inset); display: grid; gap: 12px; align-content: start; }
.photo-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.photo-grid figcaption { display: grid; gap: 2px; font-size: var(--t-small); }
.photo-grid figcaption strong { font-weight: 500; font-size: var(--t-body); }
@media (min-width: 900px) { .photo-grid figure { grid-column: span 2; } }

/* About: facts, team */
.facts { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: 32px; padding: 0; }
.facts div { padding: 0 var(--inset); border-left: 1px solid var(--rule-light); }
.facts dt { font-size: var(--t-small); color: var(--graphite); }
.facts dd { font-size: var(--t-h3); letter-spacing: -0.01em; }
@media (min-width: 900px) { .facts { grid-column: 3 / span 4; } }

.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px 28px; }
.team h3 { font-size: var(--t-body); font-weight: 500; letter-spacing: 0; }
.team .role { font-size: var(--t-small); color: var(--graphite); margin-bottom: 8px; }
.team p { font-size: var(--t-small); }

/* Contact form */
.form { display: grid; gap: 22px; max-width: 640px; }
.form .pair { display: grid; gap: 22px; }
@media (min-width: 600px) { .form .pair { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--t-small); color: var(--graphite); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid rgba(0,0,0,0.4);
  border-radius: 0; padding: 10px 0; min-height: 44px; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-bottom: 2px solid var(--ink); }
.field .hint { font-size: var(--t-small); color: var(--graphite); }
.field .error { font-size: var(--t-small); color: #b00020; }
.field [aria-invalid="true"] { border-bottom-color: #b00020; }
.button {
  justify-self: start; font: inherit; background: var(--ink); color: var(--paper); border: 0; padding: 14px 26px;
  min-height: 48px; cursor: pointer;
}
.button:hover { background: #333; }
.form-status { font-size: var(--t-small); }
.form-status:empty { display: none; }
.form-status { padding: 14px 16px; background: rgba(0,0,0,0.05); }

.details { display: grid; gap: 28px; align-content: start; }
.details dt { font-size: var(--t-small); color: var(--graphite); }
.details dd { font-size: var(--t-body); }

/* Plain text pages (privacy) */
.prose { max-width: 64ch; display: grid; gap: 18px; }
.prose h2 { font-size: var(--t-h3); margin-top: 24px; }
.prose ul { list-style: none; display: grid; gap: 6px; }
.prose li { padding-left: 18px; position: relative; }
.prose li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 8px; height: 1px; background: currentColor; }
.draft-note { font-size: var(--t-small); background: rgba(0,0,0,0.05); padding: 12px 14px; }

/* Footer links */
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

.contact-form { grid-column: 1 / -1; }
.contact-details { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .contact-form { grid-column: 1 / span 4; grid-row: 1; }
  .contact-details { grid-column: 5 / span 2; grid-row: 1; }
}

.market-list a.who { text-decoration: none; }
.market-list a.who:hover { text-decoration: underline; }

/* Service icons (same line style as the sector icons) */
.sum-label { display: inline-flex; align-items: center; gap: 18px; }
.fold .svc-icon { width: 40px; height: 40px; margin: 0; flex: none; }
.section--dark .sector-icon .dot { fill: var(--ink); }

/* ---------- Header: small logo with stripes; tone follows the section behind ---------- */
.site-header { mix-blend-mode: normal; color: var(--ink); transition: color 200ms var(--ease); }
.site-header.on-dark { color: var(--paper); }
.brand { width: 112px; }
.lockup--small { display: block; position: relative; width: 100%; padding-top: 10.4%; }
.lockup--small .stripes { position: absolute; top: 0; left: 51.45%; width: 48.04%; height: auto; aspect-ratio: 748 / 145; }
.lockup--small .stripes rect { animation: none; transform: none; }
.lockup--small .wordmark { display: block; width: 100%; transition: filter 200ms var(--ease); }
.site-header.on-dark .lockup--small .wordmark, .menu .lockup--small .wordmark { filter: invert(1); }
.menu-logo { display: block; width: 112px; }

/* Hero headline sits in the last three columns */
@media (min-width: 900px) {
  .lead-wrap { grid-column: 4 / span 3; }
  .hero-intro .lead-wrap .lead { font-size: clamp(2rem, 0.8rem + 3vw, 3.75rem); max-width: 14ch; }
}

/* Team portraits: black and white */
.person { display: grid; gap: 4px; align-content: start; }
.portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1); margin-bottom: 14px; background: #e2e2df; }
.portrait--empty { display: grid; place-items: center; }
.portrait--empty span { font-size: 2rem; letter-spacing: -0.02em; color: #9a9a96; }
.site-header .brand { width: calc(130px + 2 * var(--inset)); }
.menu-logo { width: 130px; }
.lockup--small .stripes { shape-rendering: crispEdges; }
.team { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
@media (max-width: 599px) { .team { grid-template-columns: 1fr 1fr; gap: 28px 16px; } }

/* ---------- Header bar: solid background so content never shows through ---------- */
.site-header {
  background: var(--paper);
  transition: color 200ms var(--ease), background-color 200ms var(--ease);
}
.site-header.on-dark { background: var(--ink); }
.site-header .grid { padding-bottom: 12px; }
/* On the homepage, the bar stays see-through only while the big hero logo is in view */
.js .is-home .site-header:not(.show-brand) { background: transparent; }

/* Menu links: same size, bold */
.nav-link { font-weight: 600; letter-spacing: 0.005em; }
.menu-button, .menu-close { font-weight: 600; }

/* Keep the fixed grid lines cheap to draw while scrolling */
.gridlines { contain: strict; will-change: transform; }

/* Lenis smooth scrolling */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.team-note { margin-top: 32px; font-size: 1.1875rem; line-height: 1.45; max-width: 46ch; }

/* ---------- Room guides ---------- */
.plan { width: 100%; max-width: 420px; height: auto; fill: none; stroke: var(--ink); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.plan .display, .plan-legend .display { stroke-width: 4; stroke-linecap: square; }
.plan .solid, .plan-legend .solid { fill: var(--ink); stroke: none; }
.plan .mic, .plan-legend .mic { stroke-dasharray: 2 2.5; }
.plan .door { stroke-opacity: 0.4; }
.plan-legend { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: var(--t-small); color: var(--graphite); margin-bottom: 8px; }
.plan-legend li { display: inline-flex; align-items: center; gap: 8px; }
.plan-legend svg { width: 24px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 1.25; }
.room-head { flex-direction: column; gap: 10px; }
.room-spec { font-size: var(--t-small); color: var(--graphite); }
.page-sub { grid-column: 1 / -1; margin-top: 20px; font-size: var(--t-small); }
@media (min-width: 900px) { .page-sub { grid-column: 3 / span 4; } }

/* ---------- About: pull quote and principles ---------- */
.pull-quote { grid-column: 1 / -1; margin: 0; }
.pull-quote p { font-size: clamp(2.25rem, 1rem + 4.6vw, 5.5rem); line-height: 1.02; letter-spacing: -0.035em; max-width: 18ch; text-wrap: balance; }
.pull-cite { grid-column: 1 / -1; margin-top: 32px; font-size: var(--t-small); color: var(--mist); }
@media (min-width: 900px) { .pull-quote, .pull-cite { grid-column: 2 / span 5; } }

.principles { row-gap: 32px; align-items: start; }
.principles-head { grid-column: 1 / -1; display: flex; gap: 16px; align-items: start; }
.principles-head .sector-icon { width: 52px; height: 52px; flex: none; grid-row: auto; margin-top: 6px; }
.principles-head .section-title { margin: 0; }
.principles-lead { grid-column: 1 / -1; font-size: var(--t-lead); line-height: 1.2; letter-spacing: -0.015em; max-width: 28ch; }
.grid > .principles-list { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: 40px; padding: 0; margin-top: 24px; }
.principles-list li { padding: 20px var(--inset) 0; border-top: 1px solid var(--rule-light); display: grid; gap: 10px; align-content: start; }
.principles-list .value-icon { width: 48px; height: 48px; grid-row: auto; margin: 0 0 6px; }
.principles-list h3 { font-size: var(--t-body); font-weight: 600; letter-spacing: 0; }
.principles-list p { font-size: var(--t-small); color: var(--graphite); }
@media (max-width: 899px) { .principles-list li { grid-column: span 1; } }
@media (min-width: 900px) {
  .principles-head { grid-column: 1 / span 2; }
  .principles-lead { grid-column: 3 / span 4; }
  .grid > .principles-list { grid-column: 2 / span 5; grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ---------- Homepage: big logo shrinks into the menu bar ---------- */
.logo-morph {
  position: fixed; top: 0; left: 0; z-index: 60; pointer-events: none;
  transform-origin: 0 0; will-change: transform;
}
.logo-morph .lockup .wordmark { transition: filter 200ms var(--ease); }
.logo-morph.on-dark .lockup .wordmark { filter: invert(1); }
.logo-morph .tagline-img { width: 100%; }
.logo-morph-on #hero-logo { visibility: hidden; }
.logo-morph-on .site-header .brand { opacity: 0 !important; }
/* The bar is solid from the start; the moving logo passes over it, so nothing ever shows through */
.js .is-home .site-header:not(.show-brand) { background: var(--paper); }

/* ---------- GCC page ---------- */
.market-list li.feature { grid-column: 1 / -1; }
.gcc-intro { grid-column: 1 / -1; max-width: 60ch; color: var(--graphite); }
.gcc-note { grid-column: 1 / -1; color: var(--graphite); margin-top: 8px; }
@media (min-width: 900px) {
  .gcc-intro { grid-column: 3 / span 4; }
  .gcc-note { grid-column: 2 / span 5; padding-inline: var(--inset); }
}

/* ---------- Top bar: six links on a six-column grid ----------
   Logo in column 1, Services to About on columns 2 to 6, each meeting a grid line.
   Contact shares column 6, set to the right edge with its tick on the right. */
@media (min-width: 900px) {
  .nav-list > li { grid-row: 1; }
  .nav-list > li:nth-child(1) { grid-column: 2; }
  .nav-list > li:nth-child(2) { grid-column: 3; }
  .nav-list > li:nth-child(3) { grid-column: 4; }
  .nav-list > li:nth-child(4) { grid-column: 5; }
  .nav-list > li:nth-child(5) { grid-column: 6; justify-self: start; }
  .nav-list > li:nth-child(6) { grid-column: 6; justify-self: end; text-align: right; }
  .nav-list > li:nth-child(6) .nav-link::before { left: auto; right: calc(var(--inset) * -1); }
}

/* ---------- Phones: bigger tap areas for small links ----------
   Padding enlarges the area a finger can hit to about 44px tall; the matching
   negative margin keeps the text exactly where it was. */
@media (max-width: 899px), (pointer: coarse) {
  .legal a, .text-link, a[href^="mailto:"], a[href^="tel:"] {
    display: inline-block; padding-block: 12px; margin-block: -12px;
  }
}
.photo-grid figcaption .client { color: var(--graphite); margin-top: 4px; }
/* Hidden field that only spam bots fill in */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
