/* Hallmark · v2.0.0 · redesign: full · built: the project · genre: editorial · theme: brand (Bridge logo sheet, sampled) · deal: manual · hero: Poster · nav: edge-aligned bar · footer: mast */
/* critique: a website, not a slideshow. One orchestrated moment (the chain completes on load), then calm paper sections with one magenta accent, hairlines and big type. */
/* waive 38iii: the hero's second line is set in the brand magenta because it is the missing link, the one moment the accent earns. */

/* ---------- tokens ---------- */
:root {
  /* brand, sampled from the Bridge logo sheet */
  --navy: #1C1F43;           /* logo ink */
  --night: #13142B;          /* reverse logo field */
  --magenta: #B43AD2;        /* the missing link bar */
  --logo-cyan: #2EE6F2;      /* logo gradient (new mark): cyan, blue, magenta */
  --logo-blue: #4A6BFF;
  --logo-magenta: #F45BE6;
  --paper: #F3F4F8;          /* the sheet's own paper */

  /* derived */
  --surface: #FBFBFD;
  --band: #E9E8F2;
  --ink: var(--navy);
  --ink-soft: #4A4E70;
  --line: #D9DAE6;
  --line-strong: #B4B6CC;
  --accent: var(--magenta);
  --accent-hover: #9A2BB6;
  --accent-ink: #962AB0;      /* magenta text on paper, 6:1 */
  --accent-light: #D98BEA;    /* magenta text on night, 7:1 */
  --accent-wash: #F1E6F7;
  --night-line: #2E3159;
  --on-night: #EEEFF6;
  --on-night-soft: #B0B3CC;
  --on-accent: #FFFFFF;
  --scrim-night: rgba(19, 20, 43, .78);
  --scrim-paper: rgba(243, 244, 248, .86);
  --shadow: rgba(19, 20, 43, .14);
  --error: #B42318;

  /* tones for picture slots, from navy to magenta */
  --tone-1-bg: #DDE1F4; --tone-1-ink: #3A47A3;
  --tone-2-bg: #E7E0F5; --tone-2-ink: #6A43B4;
  --tone-3-bg: #F2E0F3; --tone-3-ink: var(--magenta);

  /* type */
  --font-body: Manrope, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-brand: Michroma, "Arial Black", ui-sans-serif, sans-serif;
  --text-display: clamp(2.6rem, 1.3rem + 4.4vw, 5.25rem);
  --text-statement: clamp(2rem, 1.25rem + 2.6vw, 3.5rem);
  --text-section: clamp(2rem, 1.35rem + 2.1vw, 3.25rem);
  --text-title: clamp(1.375rem, 1.2rem + .5vw, 1.625rem);
  --text-lead: clamp(1.0625rem, 1rem + .3vw, 1.3125rem);
  --text-md: 1rem;
  --text-sm: .875rem;

  /* space */
  --container: 1200px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gap: 32px;
  --space-sm: 8px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px;
  --section: clamp(88px, 7vw + 40px, 144px);
  --r-md: 16px; --r-lg: 28px;
  --header-h: 72px;

  --ease-out: cubic-bezier(.22, .9, .3, 1);
  --dur: .8s;
  color-scheme: light;
}
@media (min-width: 60rem) { :root { --gutter: max(40px, env(safe-area-inset-left, 0px)); } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; overflow-x: clip;
  background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: var(--text-md); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
h2 { font-size: var(--text-section); }
h3 { font-size: var(--text-title); letter-spacing: -0.02em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.lead { font-size: var(--text-lead); line-height: 1.5; color: var(--ink-soft); }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section, .band { padding-block: var(--section); }
.head-block { display: grid; gap: var(--space-md); max-width: 40rem; margin-bottom: var(--space-2xl); }
.head-split { max-width: none; }
@media (min-width: 60rem) {
  .head-split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: end; }
}

.skip-link {
  position: fixed; left: 16px; top: 16px; z-index: 100; padding: 8px 14px; border-radius: 999px;
  background: var(--surface); color: var(--ink); font-weight: 600; transform: translateY(-200%); transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm);
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
  font-size: 1rem; line-height: 1.25; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .25s var(--ease-out), border-color .25s var(--ease-out), color .25s var(--ease-out), transform .25s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: var(--text-sm); }
.btn-block { width: 100%; }
@media (pointer: coarse) { .btn-sm { min-height: 44px; } }

/* placeholder chips for details still to be verified */
.ph {
  position: relative; display: inline-block; padding: 0 .35em; border-radius: 6px;
  border: 1px dashed var(--line-strong); color: var(--ink-soft); cursor: help;
}
.ph::after {
  content: "Placeholder: add the verified detail"; position: absolute; left: 0; top: calc(100% + 6px); z-index: 5;
  padding: 4px 8px; border-radius: 6px; background: var(--ink); color: var(--on-night);
  font-size: .75rem; line-height: 1.3; font-weight: 600; letter-spacing: 0; white-space: nowrap;
  opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .2s, transform .2s;
}
.ph:hover::after, .ph:focus-visible::after { opacity: 1; transform: none; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top, 0px);
  color: var(--on-night); border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out), opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.site-header[data-tone="paper"] {
  background: var(--scrim-paper); color: var(--ink); border-bottom-color: var(--line);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.header-inner { display: flex; align-items: center; gap: var(--space-lg); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.brand-mark { width: 48px; height: 24px; flex: none; }
/* the wordmark follows the logo: wide geometric capitals */
.brand-name { font-family: var(--font-brand); font-size: .9375rem; line-height: 1; letter-spacing: .06em; text-transform: uppercase; }
.nav { margin-left: auto; display: none; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 999px; font-size: var(--text-sm); font-weight: 500; text-decoration: none;
  opacity: .8; transition: opacity .2s;
}
.nav-links a:hover, .nav-links a.is-current { opacity: 1; }
.nav-links a.is-current { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.header-cta { display: none; }
.burger {
  margin-left: auto; position: relative; width: 44px; height: 44px; border-radius: 999px; flex: none;
  border: 1px solid currentColor; background: transparent; cursor: pointer;
}
.burger span { position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; margin: -1px 0 0 -8px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease-out); }
.burger span:nth-child(1) { transform: translateY(-3px); }
.burger span:nth-child(2) { transform: translateY(3px); }
.menu-open .burger span:nth-child(1) { transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: rotate(-45deg); }
.menu-open .site-header { color: var(--ink); background: var(--paper); }
@media (min-width: 60rem) {
  .nav, .header-cta { display: flex; }
  .burger { display: none; }
}
.menu {
  position: fixed; inset: 0; z-index: 40; padding: calc(var(--header-h) + 40px) var(--gutter) 40px;
  background: var(--paper); color: var(--ink);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease-out), visibility .35s;
}
.menu-open .menu { opacity: 1; visibility: visible; }
.menu ul { display: grid; gap: 8px; }
.menu a { display: block; padding: 8px 0; font-size: 2rem; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; border-bottom: 1px solid var(--line); }
.menu .menu-cta { color: var(--accent-ink); border-bottom: 0; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: max(640px, 100svh); background: var(--night); color: var(--on-night);
  display: flex;
}
#chain-canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
#chain-canvas.is-dragging { cursor: grabbing; }
.hero::after { /* keeps the text legible where it meets the chain */
  content: ""; position: absolute; inset: auto 0 0; height: 58%; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, var(--night) 22%, transparent);
}
.hero-fallback { position: absolute; inset: 0 0 45%; z-index: 0; display: grid; place-items: center; }
.hero-fallback svg { width: min(56vw, 360px); }
.js .hero-fallback { display: none; }
.js .hero-fallback.is-on { display: grid; }
.hero-inner {
  position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-xl);
  padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(40px, 7vh, 88px); pointer-events: none;
}
.hero-inner a { pointer-events: auto; }
.hero-title { font-size: var(--text-display); line-height: 1.02; letter-spacing: -0.04em; max-width: 24ch; }
.hero-title .ln { display: block; }
.hero-title .ln-accent { color: var(--accent-light); }
@supports (background-clip: text) or (-webkit-background-clip: text) {
  /* "Linked." takes the logo's cyan-to-magenta gradient */
  .hero-title .ln-accent { background: linear-gradient(90deg, var(--logo-cyan), var(--logo-blue) 45%, var(--logo-magenta)); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .hero-title .ln-accent { width: fit-content; }
}
.hero-cta { display: grid; gap: 12px; }
.hero-cta-line { font-size: 1.0625rem; font-weight: 600; color: var(--on-night); }
.hero-foot { display: grid; gap: var(--space-xl); }
.hero-lead { color: var(--on-night-soft); max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-ghost { color: var(--on-night); border-color: var(--night-line); background: var(--scrim-night); }
.hero .btn-ghost:hover { border-color: var(--on-night-soft); }
@media (min-width: 60rem) {
  .hero-foot { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--space-2xl); }
}
.cursor-chip {
  position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none;
  padding: 4px 10px; border-radius: 999px; background: var(--scrim-night); border: 1px solid var(--night-line);
  font-size: .75rem; font-weight: 600; color: var(--on-night); white-space: nowrap; opacity: 0; transition: opacity .2s;
}
.cursor-chip.is-on { opacity: 1; }
.cursor-chip.is-key { color: var(--accent-light); }

/* load sequence (only with scripting and motion): the header and copy arrive with the chain */
.js:not(.static) .site-header:not(.is-ready) { opacity: 0; transform: translateY(-12px); }
.js:not(.static) .hero .ln, .js:not(.static) .hero-foot { transition: clip-path 1.1s var(--ease-out), opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.hero .ln { clip-path: inset(0 0 0 0); padding-bottom: .14em; margin-bottom: -.14em; } /* room for descenders inside the wipe */
.js:not(.static) .hero:not(.s1) .ln:first-child { clip-path: inset(0 100% 0 0); }
.js:not(.static) .hero:not(.s2) .hero-foot { opacity: 0; transform: translateY(16px); }
.js:not(.static) .hero:not(.s3) .ln-accent { clip-path: inset(0 100% 0 0); }

/* ---------- intro ---------- */
.intro-grid { display: grid; gap: var(--space-2xl); }
.statement { font-size: var(--text-statement); line-height: 1.1; letter-spacing: -0.035em; }
.intro-side { display: grid; gap: var(--space-xl); align-content: start; }
.facts { margin: 0; display: grid; }
.facts > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: var(--space-md); align-items: baseline; padding-block: 18px; border-top: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-size: 2.25rem; line-height: 1; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.facts dt .ph { font-size: 1.25rem; line-height: 1.6; }
.facts dd { margin: 0; color: var(--ink-soft); }
@media (min-width: 60rem) { .intro-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 96px; } }
.clients { margin-top: var(--section); display: grid; gap: var(--space-xl); padding-top: var(--space-xl); border-top: 1px solid var(--line); }
.clients-label { font-size: var(--text-sm); color: var(--ink-soft); }
/* client logos sit in greyscale and take their own colour on hover */
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 42vw), 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logo-wall li { display: grid; place-items: center; height: 104px; padding: 20px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color .3s var(--ease-out); }
.logo-wall img { max-width: 100%; max-height: 52px; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.1); opacity: .62; transition: filter .35s var(--ease-out), opacity .35s var(--ease-out), transform .35s var(--ease-out); }
.logo-wall li:hover { background: var(--surface); }
.logo-wall li:hover img { filter: none; opacity: 1; transform: scale(1.04); }
.logo-wall .logo-text { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; text-align: center; line-height: 1.2; color: var(--ink-soft); transition: color .35s var(--ease-out); }
.logo-wall li:hover .logo-text { color: var(--accent-ink); }
.logo-wall .is-crest img { max-height: 68px; }
@media (min-width: 48rem) { .logo-wall { grid-template-columns: repeat(5, minmax(0, 1fr)); } .logo-wall li { height: 120px; padding: 22px 30px; } .logo-wall img { max-height: 56px; } .logo-wall .is-crest img { max-height: 76px; } }
@media (max-width: 39.99rem) { .logo-wall li { height: 84px; padding: 14px 16px; } .logo-wall img { max-height: 40px; } .logo-wall .is-crest img { max-height: 56px; } }

/* ---------- services ---------- */
.services { padding-top: 0; }
.services-grid { display: grid; }
@media (min-width: 60rem) {
  .services-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 64px; align-items: start; }
  .services .head-block { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
}
.service { border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service-link {
  display: grid; gap: var(--space-md); padding: 28px 16px; margin-inline: -16px; border-radius: var(--r-md);
  text-decoration: none; transition: background-color .25s var(--ease-out);
}
.service-link:hover { background: var(--accent-wash); }
.service-quote { font-size: var(--text-title); line-height: 1.3; font-weight: 500; letter-spacing: -0.015em; }
.service-body { display: grid; gap: 4px; }
.service-name { font-weight: 700; color: var(--accent-ink); }
.service-desc { color: var(--ink-soft); }
.service-go { justify-self: start; font-weight: 600; font-size: var(--text-sm); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
@media (min-width: 60rem) {
  .service-link { grid-template-columns: minmax(0, 6fr) minmax(0, 4fr) auto; align-items: center; gap: var(--gap); padding: 36px 24px; margin-inline: -24px; }
}

/* ---------- strengths ---------- */
.strengths { background: var(--band); }
.strength-chain { display: none; height: 90px; margin-bottom: var(--space-xl); }
.strength-chain svg { width: 100%; height: 100%; overflow: visible; }
.sc { fill: none; stroke: var(--line-strong); stroke-width: 10; vector-effect: non-scaling-stroke; transition: stroke .35s var(--ease-out); }
.sc-bar { stroke-width: 14; stroke-linecap: round; } /* the middle link, seen side on, passing through the other two like the Bridge mark */
.strength-grid { display: grid; gap: var(--space-xl); }
.strength { display: grid; gap: 10px; align-content: start; padding-top: var(--space-lg); border-top: 1px solid var(--line-strong); }
.strength h3 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); }
.strength-lead { font-size: 1.125rem; font-weight: 600; }
.strength p:last-child { color: var(--ink-soft); }
@media (min-width: 60rem) {
  .strength-chain { display: block; }
  .strength-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
  .strength { border-top: 0; padding-top: 0; }
  .strengths.lit-1 .sc-1, .strengths.lit-2 .sc-2, .strengths.lit-3 .sc-3,
  .strengths:has(.strength[data-i="1"]:hover) .sc-1,
  .strengths:has(.strength[data-i="2"]:hover) .sc-2,
  .strengths:has(.strength[data-i="3"]:hover) .sc-3 { stroke: var(--accent); }
}

/* ---------- work ---------- */
.work { position: relative; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: var(--text-sm); color: var(--ink-soft); }
.tone-1 { --tone-bg: var(--tone-1-bg); --tone-ink: var(--tone-1-ink); }
.tone-2 { --tone-bg: var(--tone-2-bg); --tone-ink: var(--tone-2-ink); }
.tone-3 { --tone-bg: var(--tone-3-bg); --tone-ink: var(--tone-3-ink); }
.work-next {
  margin-top: var(--space-2xl); display: grid; gap: var(--space-md); padding: clamp(28px, 4vw, 48px); border-radius: var(--r-lg);
  background: var(--night); color: var(--on-night); text-decoration: none; transition: transform .3s var(--ease-out);
}
.work-next:hover { transform: translateY(-3px); }
.work-next-title { font-size: var(--text-section); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; }
.work-next-line { color: var(--on-night-soft); max-width: 48ch; }
.work-next .btn { justify-self: start; }
@media (min-width: 60rem) {
  .work-next { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; column-gap: var(--gap); }
  .work-next-title { grid-row: span 2; }
}

/* ---------- showcase ---------- */
.showcase { display: grid; gap: var(--gap); }
@media (min-width: 48rem) {
  .showcase { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .case-film { grid-column: 1 / -1; }
}
.case { display: grid; gap: 14px; align-content: start; }
.case-media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--case-bg, var(--band)); }
.case-film .case-media { aspect-ratio: 16 / 9; background: var(--night); }
.case-media img, .case-video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.case-contain .case-media img { object-fit: contain; padding: 4%; }
.case:hover .case-media img { transform: scale(1.03); }
.case-body { display: grid; gap: 2px; }
.case-client { font-size: var(--text-sm); font-weight: 700; color: var(--accent-ink); }
.case-title { font-size: var(--text-title); }
.case-kind { color: var(--ink-soft); }
@media (min-width: 48rem) {
  .case-film { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: end; column-gap: var(--gap); }
  .case-film .case-title { font-size: var(--text-section); line-height: 1.08; }
}

/* ---------- approach ---------- */
.approach { background: var(--surface); border-block: 1px solid var(--line); }
.steps { position: relative; display: grid; gap: var(--space-xl); }
.steps::before, .steps::after { /* the line the steps hang on, and the accent that draws along it */
  content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: var(--line);
}
.steps::after { background: var(--accent); transform-origin: top; transform: scaleY(var(--fill, 1)); transition: transform 1.6s var(--ease-out); }
.step { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: var(--space-lg); row-gap: 6px; align-content: start; }
.step-num {
  grid-row: span 2; position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent); color: var(--accent-ink); font-weight: 700; font-variant-numeric: tabular-nums;
  transition: background-color .4s var(--ease-out), color .4s var(--ease-out);
}
.step h3 { padding-top: 8px; }
.step p { color: var(--ink-soft); }
.step:hover .step-num { background: var(--accent); color: var(--on-accent); }
@media (min-width: 60rem) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
  .steps::before, .steps::after { left: 24px; right: 24px; top: 23px; bottom: auto; width: auto; height: 2px; }
  .steps::after { transform-origin: left; transform: scaleX(var(--fill, 1)); }
  .step { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
  .step-num { grid-row: auto; }
  .step h3 { padding-top: 14px; }
}
.js:not(.static) .steps:not(.is-seen) { --fill: 0; }

/* ---------- team ---------- */
.team-grid { display: grid; gap: var(--space-xl); }
@media (min-width: 40rem) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); } }
@media (min-width: 60rem) { .team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.person { display: grid; gap: 6px; align-content: start; }
.portrait { aspect-ratio: 4 / 5; border-radius: var(--r-md); margin-bottom: 14px; background: var(--tone-bg); display: grid; place-items: center; overflow: hidden; }
.portrait span { font-size: clamp(3rem, 2rem + 3vw, 4.5rem); font-weight: 600; letter-spacing: -0.04em; color: var(--tone-ink); transition: transform .6s var(--ease-out); }
.person:hover .portrait span { transform: scale(1.08); }
.portrait.has-photo { background: var(--night); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform .6s var(--ease-out); }
.person:hover .portrait img { transform: scale(1.04); }
.person-name { font-size: 1.25rem; }
.person-role { color: var(--ink-soft); margin-bottom: 8px; }

/* ---------- questions ---------- */
.faq-grid { display: grid; }
@media (min-width: 60rem) {
  .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 64px; align-items: start; }
  .faq .head-block { margin-bottom: 0; }
}
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--space-md);
  padding: 22px 0; border: 0; background: none; text-align: left; cursor: pointer;
  font-size: 1.125rem; line-height: 1.4; font-weight: 600; transition: color .2s;
}
.q:hover { color: var(--accent-ink); }
.q::after {
  content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .35s var(--ease-out);
}
.q[aria-expanded="true"]::after { transform: rotate(225deg); }
.a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.a > div { overflow: hidden; min-height: 0; }
.a p { padding-bottom: 22px; color: var(--ink-soft); max-width: 60ch; }
.qa.is-open .a, html:not(.js) .a { grid-template-rows: 1fr; }

/* ---------- diagnostic ---------- */
.diagnostic { background: var(--night); color: var(--on-night); }
.diagnostic .lead { color: var(--on-night-soft); }
.diag-grid { display: grid; gap: var(--space-2xl); }
@media (min-width: 60rem) { .diag-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: 96px; align-items: start; } }
.diag-copy { display: grid; gap: var(--space-lg); align-content: start; }
.diag-copy h2 { max-width: 14ch; }
.diag-list { display: grid; gap: 10px; }
.diag-list li { position: relative; padding-left: 26px; }
.diag-list li::before { content: ""; position: absolute; left: 0; top: .8em; width: 12px; height: 2px; background: var(--accent-light); }
.builder { margin-top: var(--space-md); }
.builder svg { width: 160px; height: 80px; overflow: visible; }
.builder path { fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.builder .ghosts path { stroke: var(--night-line); }
.builder .ghosts path, .builder .b-left, .builder .b-right { stroke-width: 9.5; stroke-linecap: butt; }
.builder .ghost-s path, .builder .b-bar path { stroke-width: 2.3; }
.builder .b-left { stroke: url(#mlg-l); }
.builder .b-right { stroke: url(#mlg-r); }
.builder .b-left, .builder .b-right { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease-out); }
.builder .b-bar { stroke: url(#mlg-s); stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .7s var(--ease-out); }
.builder.has-left .b-left, .builder.has-right .b-right, .builder.has-bar .b-bar { stroke-dashoffset: 0; }
.builder.has-gap .ghost-s path { stroke: var(--accent-light); }
.builder-status { margin-top: 8px; font-size: var(--text-sm); color: var(--on-night-soft); }
.builder.has-bar .builder-status { color: var(--accent-light); }
html:not(.js) .builder path { stroke-dashoffset: 0; }
html:not(.js) .builder-status { display: none; }
.diag-form { display: grid; gap: var(--space-md); padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--text-sm); font-weight: 600; color: var(--ink-soft); }
.field input, .field select {
  min-height: 52px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink); font: inherit; transition: border-color .2s, box-shadow .2s;
}
.field input:hover, .field select:hover { border-color: var(--ink-soft); }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.field.has-error input { border-color: var(--error); }
.field-error { font-size: var(--text-sm); color: var(--error); }
.field-error:empty { display: none; }
.form-note { font-size: var(--text-sm); color: var(--ink-soft); text-align: center; }
.form-success { padding: 12px 14px; border-radius: 12px; background: var(--accent-wash); font-size: var(--text-sm); }

/* ---------- footer ---------- */
.footer { background: var(--night); color: var(--on-night-soft); padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
.footer .container { display: grid; gap: var(--space-xl); padding-top: var(--space-2xl); border-top: 1px solid var(--night-line); }
.footer-mast { display: block; font-size: clamp(2.25rem, 1.2rem + 4.2vw, 5rem); line-height: 1.02; font-weight: 600; letter-spacing: -0.045em; color: var(--on-night); max-width: 18ch; text-decoration: none; }
.footer-mast span { color: var(--accent-light); transition: color .25s var(--ease-out); }
.footer-mast:hover span { color: var(--on-night); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-lg); align-items: center; }
.footer .brand { color: var(--on-night); }
.footer .ph { color: var(--on-night-soft); border-color: var(--night-line); }
.footer-legal { font-size: var(--text-sm); }

/* ---------- phones: tighter rhythm, compact cards, finger-sized targets ---------- */
@media (max-width: 39.99rem) {
  :root { --section: 72px; --space-2xl: 48px; --space-xl: 32px; --header-h: 64px; }
  .hero-inner { padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); gap: var(--space-lg); }
  .hero-actions .btn { flex: 1 1 100%; }
  .service-link { padding-block: 22px; }
  .work-next .btn { justify-self: stretch; }
  .team-grid { gap: 0; border-top: 1px solid var(--line); }
  .person { grid-template-columns: 76px minmax(0, 1fr); column-gap: var(--space-md); row-gap: 2px; padding-block: 18px; border-bottom: 1px solid var(--line); }
  .portrait { grid-row: span 3; align-self: start; aspect-ratio: 1; margin-bottom: 0; border-radius: 14px; }
  .portrait span { font-size: 1.5rem; }
  .person-role { margin-bottom: 6px; }
  .q { padding-block: 18px; font-size: 1.0625rem; }
  .diag-form { padding: 20px; }
  .diag-form .btn { width: 100%; }
}
@media (pointer: coarse) {
  .brand { min-height: 44px; }
  .form-note a { display: inline-block; padding-block: 12px; margin-block: -12px; }
  .service-go { padding-block: 10px; margin-block: -10px; }
}

/* ---------- reveal (once, from a visible default) ---------- */
.js:not(.static) [data-reveal]:not(.is-seen) { opacity: 0; transform: translateY(20px); }
.js:not(.static) [data-reveal] { transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); transition-delay: var(--d, 0s); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
