/* ==========================================================================
   Capacity Engineering Limited — site styles
   Concept: a structural drawing set. Paper, ink, one red. Grid lines,
   dimension strings, section bubbles and a title block.
   ========================================================================== */

:root {
  --paper: #f3f1ec;
  --paper-2: #e9e6df;
  --paper-3: #dedad1;
  --ink: #141414;
  --ink-2: #2b2b29;
  --ink-3: #55544f;
  --muted: #6f6d67;
  --line: rgba(20, 20, 20, 0.14);
  --line-2: rgba(20, 20, 20, 0.28);
  --red: #ea2317;
  --red-ink: #b8160e;
  --night: #111111;
  --night-2: #1a1a19;
  --night-line: rgba(243, 241, 236, 0.12);
  --night-text: #c9c6bf;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --wrap: 1360px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 76px;
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01", "kern";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--red); color: #fff; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------------------------------------------------------------- type */
.display, h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.02; margin: 0; }
.display { font-size: clamp(44px, 7.6vw, 118px); font-variation-settings: "wdth" 112; font-weight: 700; letter-spacing: -0.035em; line-height: 0.94; }
.h1 { font-size: clamp(40px, 5.6vw, 84px); font-variation-settings: "wdth" 108; font-weight: 650; letter-spacing: -0.03em; line-height: 0.98; }
.h2 { font-size: clamp(32px, 3.8vw, 56px); font-variation-settings: "wdth" 104; letter-spacing: -0.025em; line-height: 1.02; }
.h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.015em; line-height: 1.12; }
.h4 { font-size: 19px; letter-spacing: -0.01em; line-height: 1.2; }
.lede { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; color: var(--ink-2); max-width: 46ch; }
.muted { color: var(--muted); }
.mono, .label { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; }
.label { color: var(--muted); }
.red { color: var(--red); }
.em-red { color: var(--red); font-style: normal; }
p { margin: 0 0 1em; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--bg); color: var(--fg);
  font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500;
  padding: 16px 20px 16px 22px; border-radius: var(--radius);
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:hover { --bg: var(--red); --fg: #fff; }
.btn--red { --bg: var(--red); --fg: #fff; }
.btn--red:hover { --bg: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--paper); box-shadow: none; }
.on-dark .btn--ghost { --fg: var(--paper); box-shadow: inset 0 0 0 1px rgba(243,241,236,.35); }
.on-dark .btn--ghost:hover { --bg: var(--paper); --fg: var(--ink); }
.on-dark .btn:not(.btn--ghost):not(.btn--red) { --bg: var(--paper); --fg: var(--ink); }
.on-dark .btn:not(.btn--ghost):not(.btn--red):hover { --bg: var(--red); --fg: #fff; }

.link {
  font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 3px;
  transition: background-size .35s var(--ease), color .2s;
}
.link:hover { background-size: 100% 1px; color: var(--red); }
.link svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- utility bar + header */
.utility { background: var(--night); color: var(--night-text); font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.04em; }
.utility .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 36px; }
.utility a:hover { color: #fff; }
.utility__live { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.utility__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(234,35,23,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(234,35,23,.55); } 70% { box-shadow: 0 0 0 9px rgba(234,35,23,0); } 100% { box-shadow: 0 0 0 0 rgba(234,35,23,0); } }
.utility__right { display: flex; gap: 28px; }
.utility a, .utility span { white-space: nowrap; }
@media (max-width: 760px) { .utility__right > :not(:first-child) { display: none; } .utility__live span.long { display: none; } .utility .wrap { gap: 12px; } }

.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand__logo { height: 42px; width: auto; }
.footer .brand__logo { height: 48px; }
@media (max-width: 520px) { .brand__logo { height: 36px; } }
.brand__mark { width: 40px; height: 40px; }
.brand__word { font-family: "Montserrat", var(--f-display); font-weight: 500; font-size: 14.5px; line-height: 1.02; letter-spacing: 0.06em; text-transform: uppercase; }
.brand__word small { display: block; font-size: 1em; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a, .nav__trigger {
  font-size: 15px; font-weight: 500; padding: 10px 14px; border-radius: var(--radius);
  display: inline-flex; align-items: center; gap: 6px; position: relative;
}
.nav > a::after, .nav__trigger::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav > a:hover::after, .nav > a[aria-current="page"]::after, .nav__item:hover .nav__trigger::after, .nav__trigger[aria-current="page"]::after, .nav__item.is-open .nav__trigger::after { transform: scaleX(1); }
.nav__trigger svg { width: 12px; height: 12px; transition: transform .25s; }
.nav__item { position: relative; }
.nav__item.is-open .nav__trigger svg, .nav__item:hover .nav__trigger svg { transform: rotate(180deg); }
.header__cta { margin-left: 12px; }
.header__cta .btn { padding: 12px 16px 12px 18px; }

/* mega menu */
.mega {
  position: fixed; left: 0; right: 0; top: calc(var(--top-offset, 112px));
  background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
}
.nav__item:hover .mega, .nav__item.is-open .mega, .nav__item:focus-within .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega .wrap { display: grid; grid-template-columns: 1.1fr repeat(4, 1fr); gap: 32px; padding-block: 36px 40px; height: auto; align-items: start; }
.mega__intro p { color: var(--ink-3); font-size: 15px; margin: 12px 0 20px; max-width: 30ch; }
.mega__col h3 { display: flex; align-items: center; gap: 10px; font-size: 13px; font-family: var(--f-mono); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.mega__col a { display: block; padding: 7px 0; font-size: 15px; font-weight: 500; transition: color .2s, transform .2s; }
.mega__col a:hover { color: var(--red); transform: translateX(3px); }

.burger { display: none; margin-left: auto; width: 44px; height: 44px; align-items: center; justify-content: center; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: background .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span::before { top: -7px; } .burger span::after { top: 7px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { top: 0; transform: rotate(45deg); }
.nav-open .burger span::after { top: 0; transform: rotate(-45deg); }

.drawer { display: none; }

@media (max-width: 1080px) {
  .nav, .header__cta { display: none; }
  .burger { display: inline-flex; }
  .drawer {
    display: block; position: fixed; inset: var(--top-offset, 112px) 0 0 0; z-index: 49; background: var(--paper);
    overflow-y: auto; padding: 24px var(--gutter) 48px;
    transform: translateX(100%); transition: transform .4s var(--ease);
  }
  .nav-open .drawer { transform: none; }
  .nav-open { overflow: hidden; }
  .drawer > a:not(.btn), .drawer summary { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-display); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; list-style: none; }
  .drawer summary::-webkit-details-marker { display: none; }
  .drawer details[open] summary svg { transform: rotate(180deg); }
  .drawer summary svg { width: 18px; height: 18px; transition: transform .25s; }
  .drawer details div { padding: 8px 0 16px; columns: 2 220px; }
  .drawer details div a { display: block; padding: 7px 0; font-size: 16px; break-inside: avoid; }
  .drawer .btn { margin-top: 28px; width: 100%; justify-content: space-between; }
  .drawer__contact { margin-top: 28px; font-family: var(--f-mono); font-size: 13px; line-height: 2; color: var(--ink-3); }
}

/* crack-gauge scroll progress */
.gauge { position: absolute; left: 0; right: 0; bottom: -1px; height: 8px; pointer-events: none; overflow: hidden; }
.gauge__ticks { position: absolute; inset: auto 0 0 0; height: 6px; background-image: repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 10px); -webkit-mask: linear-gradient(#000, #000); opacity: .6; }
.gauge__ticks::after { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, var(--ink-3) 0 1px, transparent 1px 50px); height: 8px; top: -2px; opacity: .5; }
.gauge__bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--red); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---------------------------------------------------------------- section furniture */
.section { padding-block: clamp(72px, 10vw, 140px); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section--alt { background: var(--paper-2); }
.section--dark, .on-dark { background: var(--night); color: var(--paper); }
.section--dark .label, .on-dark .label { color: #8d8a83; }
.section--dark .lede, .on-dark .lede { color: var(--night-text); }

.gridlines { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.gridlines::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 96px 96px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
  opacity: .7;
}
.on-dark .gridlines::before, .section--dark .gridlines::before { background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px); }

/* section heading: grid bubble + label + rule */
.sechead { display: grid; grid-template-columns: auto 1fr; gap: 14px 18px; align-items: center; margin-bottom: clamp(36px, 5vw, 64px); }
.bubble {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center;
  font-family: var(--f-mono); font-weight: 500; font-size: 14px; flex: none; position: relative;
}
.bubble--red { border-color: var(--red); color: var(--red); }
.sechead__rule { display: flex; align-items: center; gap: 16px; }
.sechead__rule::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.on-dark .sechead__rule::after, .section--dark .sechead__rule::after { background: var(--night-line); }
.sechead__body { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-top: 18px; }
.sechead__body .lede { margin: 0; }
.sechead__body .lede .link { display: flex; width: max-content; margin-top: 18px; }
@media (max-width: 860px) { .sechead__body { grid-template-columns: 1fr; } }

/* dimension string */
.dim { display: flex; align-items: center; gap: 12px; color: var(--muted); font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.dim::before, .dim::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .5; }
.dim span { position: relative; padding-inline: 4px; }

/* corner crop marks for framed media */
.frame { position: relative; }
.frame::before, .frame::after { content: ""; position: absolute; width: 18px; height: 18px; border: 1.5px solid var(--red); z-index: 2; pointer-events: none; }
.frame::before { top: -9px; left: -9px; border-right: 0; border-bottom: 0; }
.frame::after { bottom: -9px; right: -9px; border-left: 0; border-top: 0; }

.tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-3); white-space: nowrap; }
.on-dark .tag { border-color: rgba(243,241,236,.25); color: var(--night-text); }

/* ---------------------------------------------------------------- home hero */
.hero { position: relative; background: var(--night); color: var(--paper); overflow: hidden; isolation: isolate; }
.hero .gridlines::before { background-size: 80px 80px; -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.4) 60%, transparent 100%); mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.4) 60%, transparent 100%); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); min-height: min(820px, calc(100svh - 112px)); }
.hero__copy { padding: clamp(56px, 8vw, 120px) clamp(0px, 3vw, 48px) clamp(48px, 6vw, 88px) 0; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; position: relative; z-index: 2; }
.hero__kicker { display: flex; align-items: center; gap: 14px; color: var(--night-text); }
.hero__kicker .bubble { color: var(--red); border-color: var(--red); width: 34px; height: 34px; font-size: 12px; }
.hero h1 { margin-top: 28px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .08s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .16s; }
@keyframes rise { to { transform: none; } }
.hero__sub { font-size: clamp(18px, 1.5vw, 21px); color: var(--night-text); max-width: 44ch; margin: 28px 0 0; opacity: 0; animation: fade .9s .45s var(--ease) forwards; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; opacity: 0; animation: fade .9s .6s var(--ease) forwards; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero__tagline { display: flex; gap: 18px; align-items: center; font-family: var(--f-mono); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: #8d8a83; }
.hero__tagline i { width: 5px; height: 5px; background: var(--red); border-radius: 50%; }

.hero__media { position: relative; margin-right: calc(-1 * var(--gutter)); }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25) contrast(1.05); transform: scale(1.06); animation: settle 2.2s var(--ease) forwards; }
@keyframes settle { to { transform: scale(1); } }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--night) 0%, rgba(17,17,17,.35) 28%, rgba(17,17,17,0) 60%), linear-gradient(0deg, rgba(17,17,17,.6), transparent 40%); }
.hero__mark { position: absolute; right: clamp(16px, 4vw, 56px); top: clamp(24px, 5vw, 64px); width: clamp(120px, 14vw, 200px); z-index: 2; opacity: .95; }
.hero__mark .draw { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 2.4s .3s var(--ease) forwards; }
.hero__mark .fill { opacity: 0; animation: fade 1s 1.6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero__note { position: absolute; left: 32px; bottom: 32px; z-index: 2; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(243,241,236,.75); display: grid; gap: 4px; }
.hero__note b { color: #fff; font-weight: 500; }

.hero__stats { position: relative; z-index: 2; border-top: 1px solid var(--night-line); }
.hero__stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 24px 28px 0; border-right: 1px solid var(--night-line); }
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.stat__n { font-family: var(--f-display); font-size: clamp(30px, 3vw, 44px); font-weight: 600; font-variation-settings: "wdth" 110; letter-spacing: -0.02em; line-height: 1; }
.stat__l { margin-top: 8px; color: #8d8a83; }

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; min-height: 0; }
  .hero__copy { padding-right: 0; }
  .hero__media { order: -1; height: 46vw; min-height: 240px; margin-inline: calc(-1 * var(--gutter)); }
  .hero__media::after { background: linear-gradient(0deg, var(--night) 0%, rgba(17,17,17,0) 55%); }
  .hero__note { display: none; }
  .hero__stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat { padding-left: 0 !important; padding-right: 16px; }
  .stat:nth-child(2) { border-right: 0; padding-left: 20px !important; }
  .stat:nth-child(4) { padding-left: 20px !important; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--night-line); }
}

/* ---------------------------------------------------------------- service index (home + services) */
.svc-groups { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.svc-group { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2.4fr); gap: 32px; padding-block: 36px; border-bottom: 1px solid var(--line-2); }
.svc-group__head { display: flex; gap: 16px; align-items: flex-start; }
.svc-group__head h3 { font-size: 22px; }
.svc-group__head p { font-size: 15px; color: var(--ink-3); margin: 8px 0 0; max-width: 28ch; }
.svc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.svc-row {
  display: grid; grid-template-columns: 48px 1fr 22px; gap: 12px; align-items: baseline;
  padding: 15px 0; border-top: 1px solid var(--line); position: relative;
}
.svc-row:nth-child(-n+2) { border-top: 0; }
.svc-row__code { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.svc-row__name { font-family: var(--f-display); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; transition: color .2s; }
.svc-row__desc { grid-column: 2; font-size: 14.5px; color: var(--ink-3); margin-top: 2px; line-height: 1.45; }
.svc-row svg { width: 18px; height: 18px; align-self: center; grid-row: 1; grid-column: 3; color: var(--muted); transition: transform .3s var(--ease), color .2s; }
.svc-row:hover .svc-row__name, .svc-row:hover svg { color: var(--red); }
.svc-row:hover svg { transform: translateX(4px); }
@media (max-width: 900px) { .svc-group { grid-template-columns: 1fr; gap: 16px; } .svc-list { grid-template-columns: 1fr; } .svc-row:nth-child(2) { border-top: 1px solid var(--line); } }

/* hover preview image following cursor (desktop) */
.peek { position: fixed; z-index: 40; width: 280px; aspect-ratio: 4/3; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.92); transition: opacity .25s, transform .35s var(--ease); background: var(--ink) center/cover; box-shadow: 0 30px 60px -20px rgba(0,0,0,.4); }
.peek.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (hover: none), (max-width: 900px) { .peek { display: none; } }

/* ---------------------------------------------------------------- audience router */
.router { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); border: 1px solid var(--night-line); }
.router__tabs { display: flex; flex-direction: column; border-right: 1px solid var(--night-line); }
.router__tab { text-align: left; padding: 22px 28px; border-bottom: 1px solid var(--night-line); display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; transition: background .25s, color .25s; color: var(--night-text); }
.router__tab:last-child { border-bottom: 0; }
.router__tab .mono { color: #6f6d67; }
.router__tab b { font-family: var(--f-display); font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; color: var(--paper); letter-spacing: -0.01em; }
.router__tab svg { width: 18px; height: 18px; opacity: 0; transform: translateX(-6px); transition: .3s var(--ease); }
.router__tab[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.router__tab[aria-selected="true"] b { color: var(--ink); }
.router__tab[aria-selected="true"] .mono { color: var(--red); }
.router__tab[aria-selected="true"] svg { opacity: 1; transform: none; color: var(--red); }
.router__tab:hover:not([aria-selected="true"]) { background: var(--night-2); }
.router__panel { padding: clamp(28px, 4vw, 56px); display: none; }
.router__panel.is-active { display: block; animation: fade .5s var(--ease); }
.router__panel h3 { font-size: clamp(26px, 2.6vw, 38px); font-variation-settings: "wdth" 106; margin-bottom: 10px; }
.router__panel > p { color: var(--night-text); margin-bottom: 28px; }
.router__links { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--night-line); border: 1px solid var(--night-line); }
.router__links a { background: var(--night); padding: 20px; display: flex; flex-direction: column; gap: 22px; justify-content: space-between; min-height: 132px; transition: background .25s; }
.router__links a:hover { background: var(--red); }
.router__links a span:first-child { font-family: var(--f-display); font-weight: 600; font-size: 18px; line-height: 1.15; }
.router__links a svg { width: 20px; height: 20px; align-self: flex-end; }
@media (max-width: 900px) {
  .router { grid-template-columns: 1fr; }
  .router__tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--night-line); scrollbar-width: none; }
  .router__tab { flex: none; border-bottom: 0; border-right: 1px solid var(--night-line); grid-template-columns: auto; padding: 14px 18px; }
  .router__tab .mono, .router__tab svg { display: none; }
  .router__tab b { font-size: 16px; white-space: nowrap; }
  .router__links { grid-template-columns: 1fr; }
  .router__links a { min-height: 0; flex-direction: row; align-items: center; }
}

/* ---------------------------------------------------------------- projects */
.proj-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px 28px; }
.proj { grid-column: span 4; display: flex; flex-direction: column; gap: 16px; }
.proj--wide { grid-column: span 8; }
.proj--half { grid-column: span 6; }
.proj__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-3); }
.proj--wide .proj__media { aspect-ratio: 16 / 10; }
.proj__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; filter: saturate(.9); }
.proj:hover .proj__media img { transform: scale(1.04); filter: saturate(1.05); }
.proj__media .tag { position: absolute; left: 14px; top: 14px; background: var(--paper); border-color: transparent; color: var(--ink); }
.proj__media--empty { display: grid; place-items: center; }
.proj__media--empty svg { width: 30%; opacity: .25; }
.proj__meta { display: flex; justify-content: space-between; gap: 12px; }
.proj h3 { font-size: clamp(20px, 1.7vw, 24px); transition: color .2s; }
.proj:hover h3 { color: var(--red); }
.proj p { font-size: 15px; color: var(--ink-3); margin: 0; }
@media (max-width: 1000px) { .proj, .proj--wide, .proj--half { grid-column: span 6; } }
@media (max-width: 640px) { .proj, .proj--wide, .proj--half { grid-column: 1 / -1; } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 999px; transition: .2s; }
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter sup { font-size: 10px; margin-left: 4px; opacity: .6; }
.proj[hidden] { display: none; }

/* ---------------------------------------------------------------- credentials */
.creds { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
.cred { padding: 28px 28px 32px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 14px; position: relative; transition: background .3s; }
.cred:hover { background: var(--paper); }
.cred__k { font-family: var(--f-display); font-size: 24px; font-weight: 650; font-variation-settings: "wdth" 110; letter-spacing: -0.01em; }
.cred__k::before { content: ""; display: block; width: 18px; height: 2px; background: var(--red); margin-bottom: 18px; }
.cred p { margin: 0; color: var(--ink-3); font-size: 15.5px; }
@media (max-width: 900px) { .creds { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .creds { grid-template-columns: 1fr; } }

.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 56px; }
.logos li { background: var(--paper-2); aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 18px 22px; list-style: none; }
.logos img { max-height: 54px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; opacity: .72; transition: .3s; }
.logos li:hover img { filter: none; opacity: 1; }
.logos { padding: 0; }
@media (max-width: 900px) { .logos { grid-template-columns: repeat(3, 1fr); } }

/* ---------------------------------------------------------------- crack gauge feature */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.card-gauge { position: relative; aspect-ratio: 1.75; background: var(--paper); color: var(--ink); border-radius: 6px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), 0 2px 0 rgba(255,255,255,.04) inset; transform: rotate(-4deg); transition: transform .8s var(--ease); overflow: hidden; }
.feature:hover .card-gauge { transform: rotate(-1deg) translateY(-6px); }
.card-gauge svg { width: 100%; height: 100%; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .card-gauge { max-width: 520px; } }

/* ---------------------------------------------------------------- posts */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post { display: flex; flex-direction: column; gap: 14px; padding-top: 18px; border-top: 1px solid var(--ink); }
.post__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-3); order: -1; margin-bottom: 4px; }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post:hover .post__img img { transform: scale(1.04); }
.post__meta { display: flex; gap: 14px; flex-wrap: wrap; }
.post h3 { font-size: 22px; line-height: 1.15; transition: color .2s; }
.post:hover h3 { color: var(--red); }
.post p { font-size: 15px; color: var(--ink-3); margin: 0; }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }

.post-list { border-top: 1px solid var(--line-2); }
.post-row { display: grid; grid-template-columns: 140px 1fr 200px 32px; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); transition: background .2s; }
.post-row h3 { font-size: 20px; line-height: 1.2; transition: color .2s; }
.post-row:hover h3, .post-row:hover svg { color: var(--red); }
.post-row svg { width: 18px; height: 18px; color: var(--muted); transition: transform .3s var(--ease); }
.post-row:hover svg { transform: translateX(4px); }
@media (max-width: 760px) { .post-row { grid-template-columns: 1fr 24px; gap: 6px 12px; } .post-row > .mono:first-child { grid-column: 1 / -1; order: -1; } .post-row .post-row__topic { display: none; } }

/* ---------------------------------------------------------------- CTA band */
.cta { background: var(--red); color: #fff; position: relative; overflow: hidden; }
.cta .gridlines::before { background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: end; padding-block: clamp(64px, 8vw, 112px); position: relative; }
.cta h2 { font-size: clamp(36px, 5vw, 76px); font-variation-settings: "wdth" 110; letter-spacing: -0.03em; line-height: .98; }
.cta p { font-size: 19px; max-width: 40ch; margin: 24px 0 0; color: rgba(255,255,255,.88); }
.cta__actions { display: grid; gap: 12px; }
.cta__phone { font-family: var(--f-display); font-size: clamp(28px, 3vw, 44px); font-weight: 600; letter-spacing: -0.02em; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.35); border-bottom: 1px solid rgba(255,255,255,.35); }
.cta__phone svg { width: 28px; height: 28px; transition: transform .3s var(--ease); }
.cta__phone:hover svg { transform: rotate(-12deg) scale(1.1); }
.cta .btn { --bg: var(--ink); --fg: #fff; justify-content: space-between; }
.cta .btn:hover { --bg: #fff; --fg: var(--ink); }
.cta .mono { color: rgba(255,255,255,.75); }
@media (max-width: 860px) { .cta .wrap { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- footer / title block */
.footer { background: var(--night); color: var(--night-text); font-size: 15px; }
.footer a:hover { color: #fff; }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px; padding-block: 80px 64px; }
.footer__brand p { margin: 20px 0 0; max-width: 32ch; color: #8d8a83; }
.footer .brand__word { color: var(--paper); }
.footer h3 { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #6f6d67; margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.titleblock { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; border-top: 1px solid var(--night-line); border-left: 1px solid var(--night-line); margin-bottom: 40px; }
.titleblock > div { border-right: 1px solid var(--night-line); border-bottom: 1px solid var(--night-line); padding: 14px 18px; display: grid; gap: 4px; }
.titleblock .label { color: #6f6d67; font-size: 10.5px; }
.titleblock b { font-weight: 500; color: var(--paper); font-size: 14px; }
.footer__legal { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 40px; font-family: var(--f-mono); font-size: 12px; color: #6f6d67; flex-wrap: wrap; }
@media (max-width: 960px) { .footer__top { grid-template-columns: 1fr 1fr; } .titleblock { grid-template-columns: 1fr 1fr; } .titleblock > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- inner page hero */
.phero { position: relative; padding-block: clamp(56px, 8vw, 120px) clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); overflow: hidden; }
.phero .gridlines::before { -webkit-mask-image: radial-gradient(ellipse at 90% 0%, #000 0%, transparent 60%); mask-image: radial-gradient(ellipse at 90% 0%, #000 0%, transparent 60%); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 36px; }
.crumbs a:hover { color: var(--red); }
.crumbs span[aria-hidden] { color: var(--line-2); }
.phero__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px 72px; align-items: end; position: relative; }
.phero .lede { margin: 0; }
.phero__code { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
@media (max-width: 900px) { .phero__grid { grid-template-columns: 1fr; } }

.phero--media { padding-bottom: 0; border-bottom: 0; }
.phero__img { margin-top: clamp(40px, 5vw, 72px); aspect-ratio: 21 / 9; overflow: hidden; background: var(--paper-3); }
.phero__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .phero__img { aspect-ratio: 4 / 3; } }

/* ---------------------------------------------------------------- service detail */
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(40px, 6vw, 96px); align-items: start; }
.svc-aside { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 20px; }
.aside-card { border: 1px solid var(--line-2); padding: 24px; background: var(--paper); }
.aside-card h3 { font-size: 20px; margin-bottom: 8px; }
.aside-card p { font-size: 15px; color: var(--ink-3); }
.aside-card .btn { width: 100%; justify-content: space-between; }
.aside-card--dark { background: var(--night); color: var(--paper); border-color: var(--night); }
.aside-card--dark p { color: var(--night-text); }
.aside-list { list-style: none; padding: 0; margin: 0; }
.aside-list li { border-top: 1px solid var(--line); }
.aside-list a { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; font-size: 15px; font-weight: 500; }
.aside-list a:hover { color: var(--red); }
.aside-list svg { width: 15px; height: 15px; }
@media (max-width: 1000px) { .svc-layout { grid-template-columns: 1fr; } .svc-aside { position: static; } }

.block { margin-bottom: clamp(56px, 7vw, 88px); }
.block > .label { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.block > .label::before { content: ""; width: 18px; height: 2px; background: var(--red); }
.block > h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 28px; font-variation-settings: "wdth" 104; }
.prose-lg p { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 64ch; }

.offer { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; border-top: 1px solid var(--line-2); }
.offer > div { padding: 22px 0 24px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 34px 1fr; gap: 4px 12px; }
.offer .mono { color: var(--red); padding-top: 4px; }
.offer h3 { font-size: 19px; line-height: 1.25; }
.offer p { grid-column: 2; margin: 4px 0 0; font-size: 15.5px; color: var(--ink-3); }
@media (max-width: 700px) { .offer { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 14px; background: var(--paper-2); font-size: 14.5px; font-weight: 500; border-radius: 999px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 20px; height: 1px; background: var(--line-2); }
.step { padding-right: 24px; position: relative; }
.step .bubble { background: var(--paper); margin-bottom: 20px; }
.step:first-child .bubble { border-color: var(--red); color: var(--red); }
.step h3 { font-size: 18px; line-height: 1.25; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--ink-3); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 32px 0; } .steps::before { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.std { display: grid; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.std > div { background: var(--paper); padding: 22px 24px; display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: baseline; }
.std b { font-family: var(--f-display); font-size: 22px; font-weight: 650; font-variation-settings: "wdth" 110; }
.std span { color: var(--ink-3); }
@media (max-width: 600px) { .std > div { grid-template-columns: 1fr; gap: 6px; } }

.douce { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--night-line); border: 1px solid var(--night-line); }
.douce > div { background: var(--night); padding: 24px 20px 28px; }
.douce b { display: block; font-family: var(--f-display); font-size: 64px; line-height: 1; font-weight: 700; color: var(--red); font-variation-settings: "wdth" 120; }
.douce strong { display: block; color: var(--paper); font-family: var(--f-display); font-size: 18px; margin: 14px 0 6px; }
.douce span { font-size: 14px; color: var(--night-text); }
@media (max-width: 800px) { .douce { grid-template-columns: 1fr 1fr; } .douce > div:last-child { grid-column: 1 / -1; } }

.refs { list-style: none; padding: 0; margin: 0; columns: 2 280px; column-gap: 32px; }
.refs li { break-inside: avoid; padding: 12px 0; border-top: 1px solid var(--line); display: flex; gap: 12px; font-weight: 500; }
.refs li::before { content: "◦"; color: var(--red); }

.callout { border-left: 3px solid var(--red); padding: 4px 0 4px 22px; font-family: var(--f-display); font-size: clamp(20px, 2vw, 26px); line-height: 1.3; letter-spacing: -0.01em; font-weight: 500; max-width: 40ch; }

/* ---------------------------------------------------------------- prose (posts, projects, legal) */
.prose { max-width: 72ch; font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.prose h2, .prose h3 { font-family: var(--f-display); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -0.015em; margin: 2em 0 .6em; color: var(--ink); }
.prose > :first-child { margin-top: 0; }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 1.4em; }
.prose li { padding-left: 26px; position: relative; margin-bottom: .5em; }
.prose li::before { content: ""; position: absolute; left: 0; top: .78em; width: 12px; height: 1.5px; background: var(--red); }
.prose figure { margin: 2.2em 0; }
.prose figure img { width: 100%; }
.prose a { color: var(--red-ink); text-decoration: underline; text-underline-offset: 3px; }

.article-head { max-width: 980px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.article-meta div { display: grid; gap: 2px; }
.article-meta b { font-weight: 500; }
.article-cover { margin-top: 48px; background: var(--paper-2); display: grid; place-items: center; padding: clamp(0px, 2vw, 24px); }
.article-cover img { max-height: 72vh; width: auto; max-width: 100%; object-fit: contain; }

.spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); margin-top: 40px; }
.spec > div { padding: 16px 18px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); display: grid; gap: 4px; }
.spec b { font-weight: 500; font-size: 15.5px; line-height: 1.35; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 56px; }
.gallery a { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery a:hover img { transform: scale(1.04); }
.gallery a:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr 1fr; } }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(10,10,10,.94); display: none; place-items: center; padding: 4vw; }
.lightbox.is-open { display: grid; }
.lightbox img { max-height: 90vh; width: auto; }
.lightbox button { position: absolute; top: 20px; right: 24px; color: #fff; font-family: var(--f-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; padding: 10px; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); margin-top: 80px; }
.pager a { background: var(--paper); padding: 28px; display: grid; gap: 8px; transition: background .2s; }
.pager a:hover { background: var(--paper-2); }
.pager a:hover b { color: var(--red); }
.pager a:last-child { text-align: right; }
.pager b { font-family: var(--f-display); font-size: 20px; font-weight: 600; line-height: 1.2; }
@media (max-width: 640px) { .pager { grid-template-columns: 1fr; } .pager a:last-child { text-align: left; } }

/* ---------------------------------------------------------------- about / team */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--night-line); }
.value { padding: 28px 28px 8px 0; border-right: 1px solid var(--night-line); }
.value + .value { padding-left: 28px; }
.value:last-child { border-right: 0; }
.value .mono { color: var(--red); }
.value h3 { font-size: 26px; margin: 18px 0 10px; font-variation-settings: "wdth" 108; }
.value p { color: var(--night-text); font-size: 15.5px; }
@media (max-width: 900px) { .values { grid-template-columns: 1fr 1fr; } .value { padding-left: 0 !important; padding-right: 20px; border-right: 0; } }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); }
.timeline li { position: relative; padding: 0 0 32px 32px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); }
.timeline li:last-child::before { background: var(--red); border-color: var(--red); }
.timeline b { font-family: var(--f-display); font-size: 22px; display: block; font-weight: 650; }
.timeline p { margin: 4px 0 0; color: var(--ink-3); font-size: 15.5px; }

.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 24px; }
.person { display: flex; flex-direction: column; gap: 12px; }
.person__img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-3); position: relative; }
.person__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .6s, transform 1s var(--ease); }
.person:hover .person__img img { filter: none; transform: scale(1.03); }
.person__img::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.person:hover .person__img::after { transform: scaleX(1); }
.person h3 { font-size: 20px; }
.person h3 small { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .04em; color: var(--muted); margin-left: 4px; }
.person p { margin: 0; font-size: 14.5px; color: var(--ink-3); line-height: 1.4; }
.person .link { margin-top: 2px; font-size: 11.5px; }
.team--lead { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .team { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .team, .team--lead { grid-template-columns: 1fr 1fr; gap: 28px 14px; } }

.bio { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.bio__img { position: sticky; top: calc(var(--header-h) + 32px); }
.bio__img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.bio__facts { display: grid; gap: 32px; margin-top: 48px; }
.bio__facts h3 { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
@media (max-width: 860px) { .bio { grid-template-columns: 1fr; } .bio__img { position: static; max-width: 360px; } }

.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.office { background: var(--paper); padding: 28px; display: grid; gap: 18px; }
.office h3 { font-size: 28px; font-variation-settings: "wdth" 110; }
.office address { font-style: normal; line-height: 1.55; }
@media (max-width: 640px) { .offices { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- jobs */
.jobs { border-top: 1px solid var(--line-2); }
.job { border-bottom: 1px solid var(--line-2); }
.job summary { list-style: none; display: grid; grid-template-columns: 1fr auto auto 28px; gap: 24px; align-items: center; padding: 26px 0; cursor: pointer; }
.job summary::-webkit-details-marker { display: none; }
.job summary h3 { font-size: clamp(20px, 2vw, 26px); }
.job summary svg { width: 20px; height: 20px; transition: transform .3s; }
.job[open] summary svg { transform: rotate(45deg); color: var(--red); }
.job__body { padding: 0 0 36px; max-width: 76ch; }
@media (max-width: 760px) { .job summary { grid-template-columns: 1fr 24px; } .job summary .mono { display: none; } }

/* ---------------------------------------------------------------- contact */
.contact { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 17px; color: var(--ink); background: transparent; border: 0; border-bottom: 1.5px solid var(--line-2);
  padding: 10px 0 12px; border-radius: 0; transition: border-color .2s; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; border: 1.5px solid var(--line-2); padding: 14px; }
.field select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23141414' stroke-width='1.6'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E") right 4px center no-repeat; padding-right: 24px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.field input:user-invalid { border-color: var(--red); }
.field fieldset { border: 0; padding: 0; margin: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pills label { position: relative; text-transform: none; letter-spacing: 0; font-family: var(--f-body); font-size: 15px; color: var(--ink); }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: inline-block; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; transition: .2s; }
.pills input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pills input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 12px; }
.form__note { font-size: 14px; color: var(--muted); max-width: 44ch; margin: 0; }
.form__status { grid-column: 1 / -1; padding: 16px 18px; border-left: 3px solid var(--red); background: var(--paper-2); display: none; }
.form__status.is-shown { display: block; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

.contact-card { background: var(--night); color: var(--paper); padding: clamp(28px, 3vw, 40px); display: grid; gap: 28px; }
.contact-card a.big { font-family: var(--f-display); font-size: clamp(24px, 2.3vw, 32px); font-weight: 600; letter-spacing: -0.015em; display: block; }
.contact-card a.big:hover { color: var(--red); }
.contact-card .label { color: #8d8a83; display: block; margin-bottom: 6px; }
.contact-card hr { border: 0; border-top: 1px solid var(--night-line); margin: 0; }

/* ---------------------------------------------------------------- 404 */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.nf .display { font-size: clamp(120px, 22vw, 320px); color: var(--red); }

/* ---------------------------------------------------------------- reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .hero h1 .line > span { transform: none; }
}

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media print {
  .utility, .header, .drawer, .cta, .footer, .svc-aside { display: none !important; }
  body { background: #fff; }
}
