/* Algorimate — v2 visual system (Claude Design "Algorimate Site v2"). Deep green ink on warm grey paper. */
:root {
  --paper: #ECECEA;        /* page background */
  --paper-2: #F6F6F4;      /* cards, form */
  --paper-3: #E3E3E0;      /* hover rows, photo backdrop */
  --ink: #111318;          /* headings, primary buttons, dark panels */
  --ink-2: #2A2D33;        /* body text in long copy */
  --muted: #5F667A;        /* secondary text, eyebrows */
  --faint: #8A90A0;        /* footer labels, numbers */
  --line: #D2D2CE;         /* rules */
  --line-2: #E1E1DD;       /* card borders */
  --line-3: #C9C9C4;       /* form underlines */
  --dark-line: #33373F;    /* rules on dark panels */
  --on-dark: #ECECEA;
  --on-dark-2: #C9CBD1;
  --on-dark-3: #9DA2AF;
  --hero-text: #F4F4F1;
  --hero-sub: #DDDEE2;
  --hero-1: #2A2D33;
  --hero-2: #0B0D11;
  --intro-line: #D9D9D5;
  --intro-line-2: #DCDCD8;

  --font-head: "Manrope", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --container: 1280px;
  --gutter: 28px;
  --header-h: 76px;
  --radius-xl: clamp(24px, 3vw, 36px);
  --radius-card: 28px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); overflow-x: hidden; }
body.is-locked { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; }
h2, .h2 { font-weight: 800; font-size: clamp(30px, 4.4vw, 58px); letter-spacing: -0.035em; line-height: 1.02; }
h3 { font-weight: 700; font-size: 24px; letter-spacing: -0.025em; line-height: 1.15; }
p { margin: 0 0 16px; }
a { color: var(--ink); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 14px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted); }
.eyebrow-on-dark { color: var(--on-dark-3); }

/* Buttons: pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 30px; border-radius: 999px; border: 1px solid var(--ink);
  font-weight: 600; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn-solid { background: var(--ink); color: var(--on-dark); }
.btn-solid:hover { background: var(--muted); border-color: var(--muted); color: var(--on-dark); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--on-dark); }
.btn-light { background: var(--hero-text); border-color: var(--hero-text); color: var(--ink); }
.btn-light:hover { background: transparent; color: var(--hero-text); }
.btn-ghost { background: transparent; border-color: rgba(244, 244, 241, 0.6); color: var(--hero-text); }
.btn-ghost:hover { background: rgba(244, 244, 241, 0.12); border-color: var(--hero-text); color: var(--hero-text); }
.btn-sm { padding: 13px 22px; font-size: 12px; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }


/* Progress bar + header */
.progress { position: fixed; top: 0; left: 0; z-index: 70; height: 2px; width: 0; background: var(--ink); transition: width 90ms linear; }
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  background: rgba(236, 236, 234, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color 150ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-word { font-family: var(--font-head); font-weight: 800; font-size: 17px; letter-spacing: 0.2em; text-transform: uppercase; }
.brand-word-sm { font-size: 15px; }
.site-nav { display: flex; align-items: center; gap: 36px; }
.nav-list { display: flex; gap: 30px; }
.nav-list a { text-decoration: none; font-weight: 500; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.nav-list a:hover { color: var(--ink); }
.nav-cta { padding: 13px 22px; font-size: 12px; }
.nav-toggle {
  display: none; width: 46px; height: 46px; padding: 12px; background: none;
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle-bar { display: block; height: 1.5px; background: var(--ink); transition: transform 200ms ease, opacity 200ms ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Hero: a tall scroll stage; the visual stays pinned while the line folds into the A */
main { padding-top: var(--header-h); }
.hero { position: relative; height: 220svh; background: var(--ink); color: var(--hero-text); }
.hero-stage {
  position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h));
  display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden;
}
.hero-bg, .hero-gradient, .hero-thread, .hero-veil { position: absolute; inset: 0; }
.hero-thread { display: block; width: 100%; height: 100%; }
.hero-gradient { background: radial-gradient(120% 80% at 50% 110%, var(--hero-1) 0%, var(--ink) 55%, var(--hero-2) 100%); }
.hero-veil { background: linear-gradient(180deg, rgba(17, 19, 24, 0.35) 0%, rgba(17, 19, 24, 0.15) 45%, rgba(17, 19, 24, 0.6) 100%); pointer-events: none; }
.hero-inner { position: relative; will-change: opacity, transform; padding-block: clamp(72px, 10vw, 140px) clamp(88px, 10vw, 140px); display: flex; flex-direction: column; align-items: center; gap: clamp(24px, 3vw, 40px); }
.hero-title {
  font-weight: 700; font-size: clamp(48px, 9vw, 136px); letter-spacing: -0.045em; line-height: 0.92; max-width: 11ch;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 0.22em; color: var(--hero-text); text-wrap: balance;
}
.hero-title span { display: inline-block; animation: al-fade 800ms var(--ease-out) both; }
.hero-title span:nth-child(1) { animation-delay: 250ms; }
.hero-title span:nth-child(2) { animation-delay: 420ms; }
.hero-title span:nth-child(3) { animation-delay: 590ms; }
.hero-lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45; max-width: 54ch; margin: 0; color: var(--hero-sub); animation: al-fade 800ms ease-out 800ms both; }
.hero-cta { justify-content: center; animation: al-fade 800ms ease-out 950ms both; }
.hero-scroll {
  position: absolute; left: 0; right: 0; bottom: 24px; width: max-content; margin-inline: auto;   /* centred without a transform: al-fade ends on transform: none */
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none;
  color: var(--hero-text); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; animation: al-fade 800ms ease-out 1300ms both;
}
.hero-scroll > span:first-child { margin-right: -0.22em; }   /* the letter spacing after the last letter would push the word off the line */
.hero-scroll.is-gone { animation: none; opacity: 0; transition: opacity 300ms ease; }
.hero-scroll-line { display: block; width: 1px; height: 36px; background: linear-gradient(180deg, var(--hero-text), transparent); }

/* Clients / experience */
.clients { padding-block: clamp(48px, 6vw, 96px) 0; }
.clients-title { text-align: center; font-size: clamp(30px, 4.8vw, 64px); letter-spacing: -0.04em; line-height: 1; margin: 0 auto clamp(32px, 5vw, 64px); max-width: 18ch; }
.clients-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-left: 1px solid var(--line); }
.logo-cell { aspect-ratio: 5 / 3; border-right: 1px solid var(--line); padding: clamp(16px, 2.4vw, 32px); display: flex; align-items: center; justify-content: center; }
.logo-cell img { width: 100%; height: auto; max-height: 100%; object-fit: contain; transition: transform 200ms ease; }   /* client logos in their own colours */
.logo-cell > a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.logo-cell:hover img, .logo-cell > a:focus-visible img { transform: scale(1.04); }
.logo-cell > a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 6px; }
@media (max-width: 720px) { .logo-cell { padding: 4px; } }   /* three logos per row on phones: let them use the cell */

/* Sections */
.section { padding-block: clamp(64px, 8vw, 120px); }
.section-top { padding-top: clamp(20px, 2.5vw, 36px); }   /* first block of a page, right under the header */
.section-head { border-top: 1px solid var(--line); padding-top: 28px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { max-width: 24ch; }
.section-head-split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-hint { margin: 0; font-size: 14px; color: var(--muted); max-width: 34ch; }
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Service cards */
.card {
  background: var(--paper-2); border: 1px solid var(--line-2); border-radius: var(--radius-card); padding: 32px;
  display: flex; flex-direction: column; gap: 18px; min-height: 320px; color: var(--ink);
  transition: background 200ms ease, transform 200ms ease, border-color 200ms ease, color 200ms ease;
}
.card-service { cursor: pointer; }
.card-service:hover, .card-service:focus-visible { background: var(--ink); border-color: var(--ink); color: var(--on-dark); transform: translateY(-4px); }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.card-num { font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: 0.16em; opacity: 0.55; }
.card-icon { width: 26px; height: 26px; background: var(--paper); border-radius: 999px; padding: 6px; box-sizing: content-box; }
.rot-90 { transform: rotate(90deg); } .rot-180 { transform: rotate(180deg); } .rot-270 { transform: rotate(270deg); }
.card h3 { margin-top: auto; }
.card p { margin: 0; font-size: 15px; line-height: 1.55; opacity: 0.78; }

.pick { align-self: flex-start; background: none; border: 0; padding: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: inherit; opacity: 0.7; cursor: pointer; }
.pick:hover, .pick:focus-visible { opacity: 1; }
.pick-row { grid-column: 2 / -1; justify-self: start; opacity: 0; transition: opacity 200ms ease; }
.industry-row:hover .pick-row, .pick-row:focus-visible { opacity: 0.8; }

/* Industries */
.industry-list { border-top: 1px solid var(--line); }
.industry-row {
  display: grid; grid-template-columns: auto minmax(0, 26ch) minmax(0, 1fr); gap: 16px 32px; align-items: baseline;
  padding: 28px 8px; border-bottom: 1px solid var(--line); cursor: pointer; transition: padding-left 200ms ease, background 200ms ease;
}
.industry-row:hover, .industry-row:focus-visible { background: var(--paper-3); padding-left: 20px; }
.industry-num { font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: 0.16em; color: var(--faint); }
.industry-row h3 { font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.03em; line-height: 1.1; }
.industry-row p { margin: 0; font-size: 15px; color: var(--muted); max-width: 46ch; }

/* Method */
.method-panel { background: var(--ink); color: var(--on-dark); border-radius: clamp(28px, 3vw, 44px); padding: clamp(32px, 5vw, 72px); }
.method-panel h2 { margin-bottom: clamp(36px, 5vw, 64px); max-width: 22ch; }
.steps { display: grid; gap: clamp(28px, 3vw, 40px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { border-top: 1px solid var(--dark-line); padding-top: 24px; }
.step-num { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(52px, 6vw, 88px); line-height: 1; letter-spacing: -0.04em; color: var(--dark-line); margin-bottom: 20px; }
.step h3 { margin-bottom: 12px; }
.step p { margin: 0; font-size: 15px; color: var(--on-dark-2); max-width: 34ch; }

/* Film */
.film-frame { max-width: 1040px; margin: 0 auto; background: #e4dfd0; border-radius: var(--radius-xl); overflow: hidden; }
.film { display: block; width: 100%; height: auto; aspect-ratio: 2530 / 1440; background: #e4dfd0; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-xl); filter: grayscale(1); background: var(--paper-3); }
.about-copy { border-top: 1px solid var(--line); padding-top: 28px; }
.about-copy h2 { margin-bottom: 28px; max-width: 20ch; }
.about-copy p { max-width: 62ch; margin-bottom: 18px; color: var(--ink-2); }
.signature { margin: 32px 0 24px; font-size: 15px; color: var(--muted); }
.signature strong { color: var(--ink); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 3vw, 48px); align-items: stretch; }
.contact-form { display: grid; gap: 18px; align-content: start; background: var(--paper-2); border: 1px solid var(--line-2); border-radius: var(--radius-xl); padding: clamp(28px, 4vw, 44px); }
.field { display: grid; gap: 6px; }
.field label { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea { font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line-3); border-radius: 0; padding: 10px 2px; width: 100%; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--ink); outline: none; }
.field textarea { resize: vertical; min-height: 130px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { justify-self: start; }
.form-status { min-height: 1.6em; margin: 0; font-size: 14px; color: var(--muted); }
.form-status.is-error { color: var(--ink); }
.contact-aside { background: var(--ink); color: var(--on-dark); border-radius: var(--radius-xl); padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 20px; }
.contact-aside-title { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.03em; line-height: 1.15; }
.contact-aside .btn { align-self: flex-start; }
.contact-aside-foot { margin-top: auto; display: grid; gap: 8px; border-top: 1px solid var(--dark-line); padding-top: 20px; }
.contact-aside .copy-email { color: var(--on-dark); font-size: 16px; text-decoration: none; }
.contact-aside .copy-email:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-line { margin: 0; font-size: 14px; color: var(--on-dark-3); }

/* Footer */
.site-footer { padding: clamp(48px, 6vw, 80px) 0 40px; }
.footer-grid { border-top: 1px solid var(--line); padding-top: clamp(32px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px); }
.footer-brand .brand { margin-bottom: 20px; }
.footer-brand p { font-size: 14px; max-width: 32ch; margin: 0; }
.footer-brand .footer-address { margin-top: 6px; }
.footer-label { margin: 0 0 16px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); }
.footer-links { display: grid; gap: 10px; }
.footer-links a, .footer-mail a { font-size: 15px; text-decoration: none; color: var(--ink-2); }
.footer-links a:hover, .footer-mail a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer-mail { margin: 0 0 12px; }
.privacy { margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.privacy p { margin: 0; font-size: 12px; color: var(--muted); max-width: 78ch; }
.privacy strong { color: var(--ink); }
.privacy a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.privacy a:hover { color: var(--muted); }
.replay { background: none; border: 0; padding: 0; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.replay:hover { color: var(--ink); }

/* Toast */
.nav-veil { position: fixed; inset: 0; z-index: 160; background: var(--paper); opacity: 0; pointer-events: none; transition: opacity 260ms ease; }
.nav-veil.is-on { opacity: 1; }
html.nav-arriving { background: var(--paper); } html.nav-arriving body { visibility: hidden; }   /* until the jump lands (main.js) */
.toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 170; background: var(--ink); color: var(--on-dark); padding: 14px 24px; border-radius: 999px; font-size: 14px; letter-spacing: 0.04em; max-width: calc(100vw - 32px); }

/* Intro splash (once per session, skipped under reduced motion) */
.intro { position: fixed; inset: 0; z-index: 300; background: var(--paper); display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; animation: al-intro-out 2600ms cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.intro-shapes { position: absolute; inset: 0; }
.intro-shape { position: absolute; display: block; border: 1px solid var(--intro-line); }
.intro-shape.a { top: -30%; left: -14%; width: 62%; height: 78%; border-radius: 0 140px 140px 0; animation: al-shape-a 2400ms var(--ease-out) both; }
.intro-shape.b { top: -20%; right: -18%; width: 58%; height: 60%; border-color: var(--intro-line-2); border-radius: 140px 0 0 140px; animation: al-shape-b 2400ms var(--ease-out) both; }
.intro-shape.c { bottom: -34%; left: -8%; width: 40%; height: 66%; border-color: var(--intro-line-2); border-radius: 0 120px 0 120px; animation: al-shape-c 2600ms var(--ease-out) both; }
.intro-shape.d { bottom: -26%; right: -12%; width: 52%; height: 58%; border-radius: 120px 0 120px 0; animation: al-shape-d 2600ms var(--ease-out) both; }
.intro-lockup { position: relative; display: flex; align-items: center; gap: clamp(12px, 1.6vw, 22px); }
.intro-lockup img { width: clamp(40px, 5vw, 72px); height: auto; animation: al-mark-in 1100ms var(--ease-out) both; }
.intro-word { font-family: var(--font-head); font-weight: 800; font-size: clamp(26px, 4.4vw, 64px); letter-spacing: 0.04em; text-transform: uppercase; line-height: 1; animation: al-word-in 1500ms var(--ease-out) both; }

/* Reveal (IntersectionObserver adds .is-visible; visible without JS) */
[data-reveal] { opacity: 0; transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out), filter 700ms ease-out; }
[data-reveal="rise"] { transform: translateY(32px); }
[data-reveal="rise-sm"] { transform: translateY(16px); }
[data-reveal="zoom"] { transform: scale(1.05); }
[data-reveal="logo"] { transform: scale(0.96); filter: blur(6px); }
[data-reveal].is-visible { opacity: 1; transform: none; filter: none; }
.no-js [data-reveal] { opacity: 1; transform: none; filter: none; }

@keyframes al-fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes al-intro-out { 0%, 72% { opacity: 1; } 100% { opacity: 0; } }
@keyframes al-mark-in { 0% { opacity: 0; transform: scale(0.82); } 45%, 100% { opacity: 1; transform: scale(1); } }
@keyframes al-word-in { 0%, 14% { opacity: 0; clip-path: inset(0 100% 0 0); } 60%, 100% { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes al-shape-a { 0% { transform: translate(-7%, -9%) scale(1.08); } 100% { transform: none; } }
@keyframes al-shape-b { 0% { transform: translate(8%, -7%) scale(1.1); } 100% { transform: none; } }
@keyframes al-shape-c { 0% { transform: translate(-9%, 8%) scale(1.09); } 100% { transform: none; } }
@keyframes al-shape-d { 0% { transform: translate(7%, 10%) scale(1.07); } 100% { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-thread { display: none; }
  [data-reveal], .hero-title span, .hero-lead, .hero-cta, .hero-scroll { opacity: 1; transform: none; filter: none; transition: none; animation: none; }
  .intro { display: none !important; }
  .btn, .card, .industry-row, .nav-toggle-bar, .site-header, .progress, .logo-cell, .logo-cell img { transition: none; }
}

/* Responsive */
@media (max-width: 1180px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 380px; }
  .industry-row { grid-template-columns: auto 1fr; }
  .industry-row p { grid-column: 2; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}
@media (max-width: 900px) {   /* iPads in portrait (820, 834) too: the full menu wraps there */
  .nav-toggle { display: flex; }
  /* the header's backdrop blur makes it the containing block of this fixed panel, so its height is set, not inferred */
  .site-nav { display: none; position: fixed; top: var(--header-h); left: 0; right: 0; height: calc(100svh - var(--header-h)); z-index: 59; background: var(--paper); flex-direction: column; align-items: stretch; padding: 36px var(--gutter); gap: 28px; overflow-y: auto; }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { display: block; padding: 18px 0; font-family: var(--font-head); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; text-transform: none; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav-cta { align-self: flex-start; padding: 16px 28px; font-size: 13px; }
  body.nav-locked { overflow: hidden; }
}
@media (max-width: 640px) {
  .grid-4 { grid-template-columns: 1fr; }
  .card { min-height: 0; padding: 26px; }
}
@media (max-width: 480px) {
  :root { --gutter: 18px; }
  body { font-size: 16px; }
  .btn-row .btn { flex: 1 1 100%; }
  .hero-title { font-size: clamp(44px, 14vw, 64px); }
}

/* ---------- the Austin office (office.html): why on site, the address, two photos in black and white ---------- */
.office { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); gap: clamp(20px, 2.4vw, 32px); align-items: stretch; }
.office-copy { display: flex; flex-direction: column; gap: 14px; padding-block: 4px; }
.office-copy p { margin: 0; color: var(--ink-2); max-width: 40ch; }
.office-copy address { font-style: normal; font-weight: 600; color: var(--ink); line-height: 1.5; margin-top: auto; }
.office-map { color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; align-self: flex-start; }
.office-map:hover { color: var(--muted); }
.office-map:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.office-photo { margin: 0; border-radius: var(--radius-xl); overflow: hidden; background: var(--paper-3); min-height: 260px; }
.office-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .office { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .office-copy { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .office { grid-template-columns: minmax(0, 1fr); } }

.section-head h1 { font-weight: 800; font-size: clamp(30px, 4.4vw, 58px); letter-spacing: -0.035em; line-height: 1.02; }
/* on the home page: one line under the contact, and the address in the dark block, both lead to the office page */
.office-link { margin: clamp(24px, 3vw, 36px) 0 0; color: var(--ink-2); }
.office-link a, .contact-line a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.office-link a { color: var(--ink); font-weight: 600; }
.office-link a:hover { color: var(--muted); }

/* privacy page: one readable column of short sections */
.legal { max-width: 68ch; }
.legal h2 { margin: clamp(28px, 3vw, 40px) 0 10px; font-size: clamp(19px, 1.8vw, 22px); font-weight: 700; letter-spacing: -0.01em; }
.legal h2:first-child { margin-top: 0; }
.legal p { margin: 0; color: var(--ink-2); }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.legal a:hover { color: var(--muted); }
