/* ==========================================================================
   NorthPeak Agency Group INC. | site styles
   Paper + ink palette, Newsreader display, Hanken Grotesk text.
   ========================================================================== */

@view-transition { navigation: auto; }

:root {
  --paper: #F3F1EC;
  --paper-2: #EAE6DD;
  --paper-3: #DFDACF;
  --ink: #0E1620;
  --ink-2: #16212C;
  --ink-soft: #2B3743;
  --muted: #5B6570;
  --muted-on-ink: #9BA6B0;
  --line: rgba(14, 22, 32, .14);
  --line-strong: rgba(14, 22, 32, .32);
  --line-on-ink: rgba(243, 241, 236, .15);
  --accent: #A3522B;
  --accent-on-ink: #D98C5F;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);

  --gutter: clamp(20px, 4.4vw, 64px);
  --max: 1320px;
  --header-h: 76px;
  --gap: clamp(16px, 2.2vw, 32px);
  --section: clamp(96px, 12vw, 184px);
}

/* ---------- Reset / base ---------- */

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.lenis) { scroll-behavior: smooth; }
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

.skip {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; text-decoration: none;
  transform: translateY(-200%);
  transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

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

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}

/* ---------- Type ---------- */

.display, .h-xl, .h-lg, .h-md, .serif {
  font-family: var(--serif);
  font-optical-sizing: auto;
}
.display {
  font-weight: 300;
  font-size: clamp(3.1rem, 8.6vw, 8.75rem);
  line-height: .96;
  letter-spacing: -.032em;
}
.h-xl {
  font-weight: 300;
  font-size: clamp(2.75rem, 6.4vw, 6.25rem);
  line-height: .98;
  letter-spacing: -.028em;
}
.h-lg {
  font-weight: 300;
  font-size: clamp(2.2rem, 4.5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -.022em;
}
.h-md {
  font-weight: 400;
  font-size: clamp(1.45rem, 2.1vw, 1.95rem);
  line-height: 1.16;
  letter-spacing: -.012em;
}
.lead {
  font-size: clamp(1.125rem, 1.4vw, 1.3125rem);
  line-height: 1.55;
  color: var(--ink-soft);
}
.muted { color: var(--muted); }
.prose { max-width: 60ch; }
.prose p + p { margin-top: 1.1em; }

.label {
  display: flex; align-items: center; gap: 14px;
  font-size: .78rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.label::before {
  content: ""; width: 28px; height: 1px;
  background: currentColor; flex: none;
}

.num {
  font-family: var(--sans);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

/* ---------- Buttons & links ---------- */

.btn {
  --bg: var(--ink);
  --fg: var(--paper);
  --bd: var(--ink);
  --hover: #24313E;
  --hover-fg: var(--paper);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 54px;
  padding: 0 24px 0 26px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--bd);
  border-radius: 2px;
  font: 500 .9375rem/1 var(--sans);
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color .6s var(--ease), border-color .6s var(--ease);
}
.btn::before {
  content: "";
  position: absolute; inset: -1px;
  background: var(--hover);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform .7s var(--ease);
  z-index: -1;
}
.btn:hover { color: var(--hover-fg); }
.btn:hover::before { transform: scaleY(1); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; pointer-events: none; }

.btn--line { --bg: transparent; --fg: var(--ink); --bd: var(--line-strong); --hover: var(--ink); --hover-fg: var(--paper); }
.btn--light { --bg: var(--paper); --fg: var(--ink); --bd: var(--paper); --hover: #FFFFFF; --hover-fg: var(--ink); }
.btn--line-light { --bg: transparent; --fg: var(--paper); --bd: rgba(243, 241, 236, .35); --hover: var(--paper); --hover-fg: var(--ink); }
.btn--sm { min-height: 42px; padding: 0 18px 0 20px; font-size: .875rem; gap: 10px; }

.btn-roll {
  display: inline-grid;
  overflow: hidden;
  line-height: 1.25;
}
.btn-roll > span {
  grid-area: 1 / 1;
  transition: transform .7s var(--ease);
}
.btn-roll > span + span { transform: translateY(110%); }
.btn:hover .btn-roll > span:first-child { transform: translateY(-110%); }
.btn:hover .btn-roll > span + span { transform: none; }

.btn-arrow {
  width: 14px; height: 14px; flex: none;
  transition: transform .7s var(--ease);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

.link {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding-bottom: 5px;
  font-weight: 500;
  text-decoration: none;
}
.link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform-origin: 0 50%;
}
.link:hover::after { animation: line-swipe .9s var(--ease-io); }
.link svg { width: 14px; height: 14px; transition: transform .7s var(--ease); }
.link:hover svg { transform: translateX(4px); }

@keyframes line-swipe {
  0%   { transform: scaleX(1); transform-origin: 100% 50%; }
  50%  { transform: scaleX(0); transform-origin: 100% 50%; }
  50.1%{ transform: scaleX(0); transform-origin: 0 50%; }
  100% { transform: scaleX(1); transform-origin: 0 50%; }
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

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

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  view-transition-name: site-header;
  transition: transform .8s var(--ease), background-color .5s var(--ease), color .5s var(--ease);
}
.site-header::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(243, 241, 236, .82);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.site-header::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--line);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 1s var(--ease);
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-scrolled::after { transform: scaleX(1); }
.site-header.is-hidden { transform: translateY(-100%); }

.header-inner {
  position: relative;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  width: 34px; height: 30px; flex: none;
  fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round;
}
.brand-mark .peak-tip { stroke: var(--accent); }
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -.012em;
  line-height: 1;
}
.brand-sub {
  margin-top: 5px;
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}

.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.nav a {
  position: relative;
  padding-block: 6px;
  font-size: .9375rem;
  text-decoration: none;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform .6s var(--ease);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: 0 50%; }

.header-actions { display: flex; align-items: center; gap: 16px; }

.menu-toggle {
  display: none;
  align-items: center; gap: 12px;
  height: 42px;
  font-size: .875rem; font-weight: 500;
}
.menu-toggle-icon {
  position: relative;
  width: 22px; height: 10px;
}
.menu-toggle-icon::before,
.menu-toggle-icon::after {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 1.5px; background: currentColor;
  transition: transform .6s var(--ease), top .6s var(--ease);
}
.menu-toggle-icon::before { top: 0; }
.menu-toggle-icon::after { top: calc(100% - 1.5px); }
.menu-open .menu-toggle-icon::before { top: calc(50% - .75px); transform: rotate(45deg); }
.menu-open .menu-toggle-icon::after { top: calc(50% - .75px); transform: rotate(-45deg); }

.menu-open .site-header { color: var(--paper); }
.menu-open .site-header::before,
.menu-open .site-header::after { opacity: 0; }
.menu-open .brand-sub { color: var(--muted-on-ink); }
.menu-open .brand-mark .peak-tip { stroke: var(--accent-on-ink); }

.menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 5vh) var(--gutter) 32px;
  background: var(--ink);
  color: var(--paper);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .9s var(--ease-io), visibility 0s linear .9s;
}
.menu.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path .9s var(--ease-io), visibility 0s;
}
.menu-links a {
  display: block;
  overflow: hidden;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.3rem, 9vw, 3.75rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  text-decoration: none;
}
.menu-links a span {
  display: block;
  transform: translateY(105%);
  transition: transform .9s var(--ease);
}
.menu.is-open .menu-links a span {
  transform: none;
  transition-delay: calc(.25s + var(--i, 0) * .055s);
}
.menu-links a[aria-current="page"] span { color: var(--accent-on-ink); }
.menu-foot {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center;
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.menu.is-open .menu-foot { opacity: 1; transform: none; transition-delay: .6s; }
.menu-call {
  flex-basis: 100%;
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 20px;
}
.menu-call span {
  font-size: .75rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-on-ink);
}
.menu-call a {
  font-family: var(--serif);
  font-size: 1.6rem; font-weight: 300;
  line-height: 1.25;
  letter-spacing: -.01em;
  text-decoration: none;
}

@media (max-width: 1100px) {
  .nav, .header-actions .btn { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (min-width: 1101px) {
  .menu { display: none; }
}

/* ---------- Topographic motif ---------- */

.topo { width: 100%; height: 100%; color: var(--ink); }
.topo svg { width: 100%; height: 100%; overflow: visible; }
.topo path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-opacity: .3;
  stroke-dasharray: 1 2;
  stroke-dashoffset: 0;
}
.topo path.s { stroke: var(--accent); stroke-opacity: 1; stroke-width: 1.5; }
.js .topo path {
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 3.2s var(--ease-io);
  transition-delay: calc(var(--i, 0) * 90ms + var(--topo-delay, 0s));
}
.js .topo.is-drawn path { stroke-dashoffset: 0; }
/* Soft vignette so the map never ends on a hard edge */
.hero-topo, .page-head-topo, .closing-topo, .aud-topo {
  -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 40%, transparent 100%);
}
.hero::after, .page-head::after, .closing::after, .notfound::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 38%;
  background: linear-gradient(to bottom, transparent, var(--fade, var(--paper)));
  pointer-events: none;
}
.closing { --fade: var(--ink); }
.hero > .wrap, .page-head > .wrap, .closing > .wrap, .notfound > .wrap { z-index: 1; }
.topo--ink { color: var(--paper); }
.topo--ink path { stroke-opacity: .16; }
.topo--ink path.s { stroke: var(--accent-on-ink); stroke-opacity: .9; }

/* ---------- Reveal system ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity 1.1s var(--ease), transform 1.4s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js [data-split] { visibility: hidden; }
.js [data-split].is-split { visibility: visible; }
/* clip-path with negative insets masks each line without changing layout,
   so ascenders and descenders are never cut while the line slides in */
.line {
  display: block;
  clip-path: inset(-.3em -.6em -.32em -.6em);
}
.line-inner {
  display: block;
  transform: translate3d(0, calc(100% + .7em), 0);
  transition: transform 1.3s var(--ease);
  transition-delay: calc(var(--d, 0s) + var(--li, 0) * .09s);
}
.is-in .line-inner { transform: none; }

.js [data-rule] {
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1.6s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-rule].is-in { transform: none; }

.js [data-stagger] > * {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
  transition-delay: calc(var(--d, 0s) + var(--si, 0) * .08s);
}
.js [data-stagger].is-in > * { opacity: 1; transform: none; }

.rule { display: block; height: 1px; background: var(--line); border: 0; margin: 0; }

/* Scroll-scrubbed statement */
.statement {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -.016em;
}
.js .statement .sw { opacity: .16; transition: opacity .5s linear; }
.js .statement .sw.on { opacity: 1; }

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

.section { padding-block: var(--section); position: relative; }
.section--tint { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .muted, .section--ink .lead { color: var(--muted-on-ink); }
.section--ink .label { color: var(--muted-on-ink); }
.section--ink .num { color: var(--accent-on-ink); }
.section--flush-top { padding-top: 0; }

.col-aside { grid-column: 1 / span 3; }
.col-main { grid-column: 4 / -1; }
.col-main-narrow { grid-column: 4 / span 6; }

.head-row { align-items: start; row-gap: 24px; }
.head-row .label { padding-top: .9em; }

@media (max-width: 900px) {
  .col-aside, .col-main, .col-main-narrow { grid-column: 1 / -1; }
}

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--header-h) + 10vh);
  overflow: hidden;
}
.hero-topo {
  position: absolute;
  top: -12%; right: -16%;
  width: min(86vw, 1180px);
  aspect-ratio: 1;
  pointer-events: none;
}
.hero-inner, .hero-foot { position: relative; }
.hero-title { max-width: 13em; }
.br-d { display: none; }
@media (min-width: 900px) { .br-d { display: inline; } }

.hero-body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 32px;
  align-items: end;
  margin-top: clamp(36px, 5vw, 64px);
}
.hero-lead { grid-column: 1 / span 5; max-width: 34em; }
.hero-actions { grid-column: 8 / -1; justify-self: end; }

.hero-foot { position: relative; margin-top: clamp(56px, 9vh, 112px); }
.hero-foot .rule { position: absolute; left: var(--gutter); right: var(--gutter); top: 0; }
.hero-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--gap);
}
.hero-index a {
  display: flex; align-items: baseline; gap: 14px;
  padding: 22px 0 30px;
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 500;
  transition: color .4s var(--ease);
}
.hero-index a .arrow {
  margin-left: auto;
  width: 14px; height: 14px;
  opacity: 0; transform: translateX(-8px);
  transition: opacity .5s var(--ease), transform .7s var(--ease);
}
.hero-index a:hover .arrow { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 20vw); }
  .hero-topo { top: -4%; right: -55%; width: 135vw; }
  .hero-lead, .hero-actions { grid-column: 1 / -1; justify-self: start; }
  .hero-index { grid-template-columns: 1fr; }
  .hero-index li + li a { border-top: 1px solid var(--line); }
  .hero-index a { padding: 18px 0; }
  .hero-index a .arrow { opacity: 1; transform: none; }
}

/* ---------- Approach (home) ---------- */

.approach-title { max-width: 12em; }
.approach-statement { margin-top: clamp(56px, 7vw, 104px); }
.approach-foot { margin-top: clamp(32px, 4vw, 48px); }

.factors {
  margin-top: clamp(72px, 9vw, 128px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--gap);
}
.factors li {
  position: relative;
  padding-top: 22px;
  display: flex; flex-direction: column; gap: 28px;
}
.factors li::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 1px; background: var(--line-strong);
}
.factor-title {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.9vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.15;
}
@media (max-width: 900px) {
  .factors { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}

/* ---------- Audience split (home) ---------- */

.audiences {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.aud {
  position: relative;
  overflow: hidden;
  min-height: clamp(560px, 86vh, 820px);
  padding: clamp(40px, 5vw, 80px) var(--gutter);
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 64px;
}
.aud--ink { background: var(--ink); color: var(--paper); }
.aud--tint { background: var(--paper-2); }
.aud-topo {
  position: absolute;
  width: 140%; aspect-ratio: 1;
  top: -55%; left: -30%;
  pointer-events: none;
}
.aud-top {
  position: relative;
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
}
.aud--ink .num { color: var(--accent-on-ink); }
.aud-body { position: relative; max-width: 30rem; }
.aud-body h2 { margin-bottom: 28px; }
.aud-body p { margin-bottom: 36px; }
.aud--ink .aud-body p { color: var(--muted-on-ink); }
.aud--tint .aud-body p { color: var(--ink-soft); }
@media (min-width: 901px) {
  .aud--ink { padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2)); }
  .aud--tint { padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2)); }
}
@media (max-width: 900px) {
  .audiences { grid-template-columns: 1fr; }
  .aud { min-height: 0; padding-block: 72px; gap: 56px; }
}

/* ---------- Editorial rows ---------- */

.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  margin-bottom: clamp(48px, 6vw, 88px);
}

.rows { border-bottom: 1px solid var(--line-strong); }
.rows > li { position: relative; }
.rows > li::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 1px; background: var(--line-strong);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 1.6s var(--ease);
  transition-delay: calc(var(--si, 0) * .12s);
}
.rows.is-in > li::before, html:not(.js) .rows > li::before { transform: none; }
/* reveal uses the individual translate property so hover transforms still apply */
.js .rows > li > .row > * {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 1s var(--ease), translate 1.2s var(--ease), transform .8s var(--ease),
              background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
  transition-delay: calc(.15s + var(--si, 0) * .12s), calc(.15s + var(--si, 0) * .12s), 0s, 0s, 0s, 0s;
}
.js .rows.is-in > li > .row > * { opacity: 1; translate: none; }

.row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: baseline;
  padding: clamp(28px, 3.6vw, 48px) 0;
  text-decoration: none;
  isolation: isolate;
}
.row::before {
  content: "";
  position: absolute; inset: 0 calc(var(--gutter) * -1);
  background: var(--paper-2);
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform .8s var(--ease);
  z-index: -1;
}
.row:hover::before { transform: scaleY(1); }
.row-num { grid-column: 1 / span 1; }
.row-title {
  grid-column: 2 / span 5;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.9rem, 3.6vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  transition: transform .8s var(--ease);
}
.row:hover .row-title { transform: translateX(14px); }
.row-text { grid-column: 7 / span 4; color: var(--ink-soft); }
.row-arrow {
  grid-column: 12;
  justify-self: end; align-self: center;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.row-arrow svg { width: 14px; height: 14px; transition: transform .7s var(--ease); }
.row:hover .row-arrow { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.row:hover .row-arrow svg { transform: rotate(-45deg); }
@media (max-width: 900px) {
  .row { grid-template-columns: auto 1fr auto; row-gap: 12px; }
  .row-num { grid-column: 1; }
  .row-title { grid-column: 2; }
  .row-arrow { grid-column: 3; grid-row: 1; width: 38px; height: 38px; }
  .row-text { grid-column: 2 / -1; }
}

/* ---------- Closing CTA + footer (ink) ---------- */

.closing {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(112px, 14vw, 208px) clamp(88px, 10vw, 144px);
}
.closing-topo {
  position: absolute;
  width: min(110vw, 1300px); aspect-ratio: 1;
  right: -30%; top: -40%;
  pointer-events: none;
}
.closing-inner { position: relative; }
.closing--band { padding-block: clamp(104px, 12vw, 176px); }
.closing h2 { max-width: 11em; }
.closing-body {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 32px;
  align-items: end;
}
.closing-body p { grid-column: 1 / span 5; color: var(--muted-on-ink); }
.closing-body .actions { grid-column: 8 / -1; justify-self: end; align-items: center; column-gap: 32px; }
@media (max-width: 900px) {
  .closing-body p, .closing-body .actions { grid-column: 1 / -1; justify-self: start; }
  .closing-topo { right: -70%; top: -20%; width: 160vw; }
}

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-top: clamp(64px, 7vw, 96px);
}
.closing + .site-footer .footer-top { border-top: 1px solid var(--line-on-ink); padding-top: clamp(56px, 6vw, 88px); }
.site-footer .brand-sub { color: var(--muted-on-ink); }
.site-footer .brand-mark .peak-tip { stroke: var(--accent-on-ink); }
.footer-top {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 48px;
}
.footer-brand { grid-column: 1 / span 4; }
.footer-tag { margin-top: 24px; max-width: 22rem; color: var(--muted-on-ink); }
.footer-cols {
  grid-column: 6 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 40px;
}
.footer-h {
  font-size: .75rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-on-ink);
  margin-bottom: 20px;
}
.footer-cols li + li { margin-top: 10px; }
.footer-cols a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .6s var(--ease);
  padding-bottom: 2px;
}
.footer-cols a:hover { background-size: 100% 1px; }
.footer-base {
  margin-top: clamp(72px, 9vw, 128px);
  padding-block: 28px 32px;
  border-top: 1px solid var(--line-on-ink);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-size: .875rem;
  color: var(--muted-on-ink);
}
.footer-base a { color: var(--paper); }
.footer-legal { display: flex; align-items: center; gap: 28px; }
.footer-legal a:not(.link) {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .6s var(--ease);
  padding-bottom: 2px;
}
.footer-legal a:not(.link):hover { background-size: 100% 1px; }
@media (max-width: 900px) {
  .footer-brand, .footer-cols { grid-column: 1 / -1; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-cols > div:last-child { grid-column: 1 / -1; }
}


/* ---------- Interior page head ---------- */

.page-head {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(88px, 13vw, 184px)) 0 clamp(72px, 9vw, 128px);
}
.page-head-topo {
  position: absolute;
  width: min(80vw, 1040px); aspect-ratio: 1;
  right: -20%; top: -26%;
  pointer-events: none;
  transform: rotate(var(--rot, 0deg));
}
.page-head .wrap { position: relative; }
.page-head .label { margin-bottom: clamp(28px, 3vw, 40px); }
.page-head h1 { max-width: 12.5em; }
.page-head-body {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 24px;
}
.page-head-body > * { grid-column: 6 / span 6; }
.page-head-body .lead + p { color: var(--muted); }
.page-head-body .actions { margin-top: 16px; }
@media (max-width: 900px) {
  .page-head { padding-top: calc(var(--header-h) + 22vw); }
  .page-head-topo { right: -60%; top: -10%; width: 130vw; }
  .page-head-body > * { grid-column: 1 / -1; }
}

/* ---------- Two column text blocks ---------- */

.duo { align-items: start; row-gap: 32px; }
.duo-head { grid-column: 1 / span 5; }
.duo-body { grid-column: 7 / -1; }
.duo-body .actions { margin-top: 36px; }
.duo-body p + p { margin-top: 1.1em; }
@media (max-width: 900px) {
  .duo-head, .duo-body { grid-column: 1 / -1; }
}

/* Pull statement with a left rule */
.pull {
  position: relative;
  padding-left: clamp(24px, 3vw, 48px);
}
.pull::before {
  content: "";
  position: absolute; left: 0; top: .35em; bottom: .35em;
  width: 1px; background: var(--accent);
}
.pull-note { margin-top: 32px; max-width: 34rem; color: var(--muted); }

/* ---------- Principles (about) ---------- */

.principles-layout { row-gap: 48px; }
.principles-head { grid-column: 1 / span 4; }
.principles-head-inner { position: sticky; top: calc(var(--header-h) + 40px); }
.principles { grid-column: 6 / -1; }
.principle {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: 16px;
  padding: clamp(32px, 3.5vw, 48px) 0;
}
.principle::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 1px; background: var(--line-strong);
}
.principle:last-child { border-bottom: 1px solid var(--line-strong); }
.principle .num { padding-top: .55em; }
.principle h3 { margin-bottom: 14px; }
.principle p { color: var(--ink-soft); max-width: 38rem; }
@media (max-width: 900px) {
  .principles-head, .principles { grid-column: 1 / -1; }
  .principles-head-inner { position: static; }
  .principle { grid-template-columns: 44px 1fr; }
}

/* ---------- Services (sticky index + articles) ---------- */

.svc-layout { row-gap: 32px; }
.svc-index-col { grid-column: 1 / span 3; }
.svc-index {
  position: sticky; top: calc(var(--header-h) + 40px);
  display: flex; flex-direction: column; gap: 4px;
}
.svc-index a {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 0;
  text-decoration: none;
  color: var(--muted);
  font-size: .9375rem;
  transition: color .5s var(--ease);
}
.svc-index a::before {
  content: "";
  width: 18px; height: 1px;
  background: currentColor;
  transition: width .7s var(--ease);
}
.svc-index a:hover { color: var(--ink); }
.svc-index a.is-active { color: var(--ink); }
.svc-index a.is-active::before { width: 40px; background: var(--accent); }
.svc-list { grid-column: 4 / -1; }
.svc {
  position: relative;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  column-gap: var(--gap);
  padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 7vw, 104px);
}
.svc::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 1px; background: var(--line-strong);
}
.svc-num {
  grid-column: 1 / span 2;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  line-height: .9;
  letter-spacing: -.04em;
  color: var(--accent);
  font-variant-numeric: lining-nums;
}
.svc-body { grid-column: 3 / -1; }
.svc-body h2 { margin-bottom: 28px; }
.svc-body p { color: var(--ink-soft); max-width: 38rem; }
.svc-body p + p { margin-top: 1em; }
.svc-body .actions { margin-top: 40px; }
@media (max-width: 900px) {
  .svc-index-col { display: none; }
  .svc-list { grid-column: 1 / -1; }
  .svc-num, .svc-body { grid-column: 1 / -1; }
  .svc-num { margin-bottom: 24px; }
}

/* ---------- Process track (services) ---------- */

.track-wrap { position: relative; margin-top: clamp(64px, 8vw, 112px); }
.track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  column-gap: var(--gap);
}
.track-line {
  position: absolute; left: 0; right: 0; top: 7px;
  height: 1px; background: var(--line-strong);
}
.track li { position: relative; padding-top: 36px; }
.track li::before {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 15px; height: 15px;
  background: var(--paper-2);
  border: 1px solid var(--ink);
  transform: rotate(45deg) scale(.4);
  opacity: 0;
  transition: transform .8s var(--ease), opacity .5s var(--ease), background-color .5s var(--ease);
  transition-delay: calc(.2s + var(--si, 0) * .16s);
}
.track.is-in li::before, html:not(.js) .track li::before { transform: rotate(45deg) scale(.6); opacity: 1; }
.track li:last-child::before { background: var(--accent); border-color: var(--accent); }
.track .num { display: block; margin-bottom: 14px; }
.track-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -.01em;
}
@media (max-width: 1000px) {
  .track { grid-template-columns: 1fr; row-gap: 0; }
  .track-line { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; transform-origin: 50% 0 !important; }
  .js .track-line[data-rule] { transform: scaleY(0); }
  .js .track-line[data-rule].is-in { transform: none; }
  .track li { padding: 0 0 32px 44px; }
  .track li:last-child { padding-bottom: 0; }
  .track .num { margin-bottom: 6px; }
}

/* ---------- Sectors (services) ---------- */

.sectors {
  margin-top: clamp(56px, 7vw, 96px);
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.6vw, 4.5rem);
  line-height: 1.12;
  letter-spacing: -.024em;
}
.sectors li { display: inline-block; }
.sectors li:not(:last-child)::after {
  content: "/";
  color: var(--accent);
  margin-left: .22em;
}
.sectors-note { margin-top: clamp(40px, 5vw, 64px); }

/* ---------- Process steps (sticky aside + rail) ---------- */

.process { row-gap: 48px; }
.process-aside { grid-column: 1 / span 4; }
.process-aside-inner { position: sticky; top: calc(var(--header-h) + 40px); }
.process-aside p { margin-top: 24px; color: var(--muted); max-width: 26rem; }
.process-count {
  margin-top: clamp(40px, 5vw, 72px);
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--serif);
  font-weight: 300;
  color: var(--muted);
  font-size: 1.25rem;
}
.process-count-current {
  display: inline-grid;
  overflow: hidden;
  height: 1em;
  line-height: 1;
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  color: var(--ink);
  letter-spacing: -.04em;
}
.process-count-current span { grid-area: 1 / 1; display: block; transition: transform .8s var(--ease); }
.process-steps {
  grid-column: 6 / -1;
  position: relative;
  padding-left: clamp(36px, 4vw, 64px);
}
.process-rail {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 1px; background: var(--line);
}
.process-fill {
  position: absolute; inset: 0;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: 50% 0;
}
.step {
  position: relative;
  padding-block: clamp(28px, 4vw, 56px);
  transition: opacity .7s var(--ease);
}
.step:first-of-type { padding-top: 0; }
.js .step { opacity: .28; }
.js .step.is-active { opacity: 1; }
.step::before {
  content: "";
  position: absolute;
  left: calc(clamp(36px, 4vw, 64px) * -1 - 4px);
  top: calc(clamp(28px, 4vw, 56px) + .55em);
  width: 9px; height: 9px;
  background: var(--paper);
  border: 1px solid var(--ink);
  transform: rotate(45deg);
  transition: background-color .5s var(--ease);
}
.step:first-of-type::before { top: .55em; }
.step.is-active::before { background: var(--ink); }
.section--tint .step::before { background: var(--paper-2); }
.section--tint .step.is-active::before { background: var(--ink); }
.step .num { display: block; margin-bottom: 14px; }
.step h3 { margin-bottom: 14px; }
.step p { color: var(--ink-soft); max-width: 36rem; }
@media (max-width: 900px) {
  .process-aside, .process-steps { grid-column: 1 / -1; }
  .process-aside-inner { position: static; }
  .process-count { display: none; }
}

/* ---------- Hiring brief (employers) ---------- */

.brief-layout { align-items: start; row-gap: 48px; }
.brief-intro { grid-column: 1 / span 5; }
.brief-intro p { margin-top: 24px; color: var(--muted); max-width: 26rem; }
.brief {
  grid-column: 7 / -1;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(14, 22, 32, .04), 0 30px 60px -40px rgba(14, 22, 32, .35);
  padding: clamp(28px, 3.6vw, 52px);
}
.brief-top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--ink);
  font-size: .78rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.brief-top strong { color: var(--ink); font-weight: 500; }
.brief-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.brief-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.brief-list .num { padding-top: .2em; }
@media (max-width: 900px) {
  .brief-intro, .brief { grid-column: 1 / -1; }
}

/* ---------- Light CTA band ---------- */

.band { align-items: end; row-gap: 32px; }
.band-head { grid-column: 1 / span 6; }
.band-body { grid-column: 8 / -1; }
.band-body p { color: var(--ink-soft); }
.band-body .actions { margin-top: 32px; }
@media (max-width: 900px) {
  .band-head, .band-body { grid-column: 1 / -1; }
}

/* ---------- Forms ---------- */

.form-layout { align-items: start; row-gap: 56px; }
.form-intro { grid-column: 1 / span 4; }
.form-intro-inner { position: sticky; top: calc(var(--header-h) + 40px); }
.form-intro p { margin-top: 24px; color: var(--muted); }
.form-intro .pull { margin-top: 40px; }
.form-intro .pull p { margin-top: 0; font-size: .9375rem; }
.form-intro .pull h3 {
  font-family: var(--sans); font-size: 1rem; font-weight: 600;
  margin-bottom: 8px; color: var(--ink);
}
.form-col { grid-column: 6 / -1; }
@media (max-width: 900px) {
  .form-intro, .form-col { grid-column: 1 / -1; }
  .form-intro-inner { position: static; }
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--gap);
  row-gap: 30px;
}
.field { position: relative; display: flex; flex-direction: column; gap: 8px; grid-column: span 1; }
.field--full { grid-column: 1 / -1; }
.field label, .field .field-label {
  font-size: .8125rem; font-weight: 500;
  letter-spacing: .02em;
  color: var(--ink-soft);
}
.field label .opt { color: var(--muted); font-weight: 400; }
.field-hint { font-size: .8125rem; color: var(--muted); }
.control { position: relative; }
.control::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px; background: var(--ink);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .7s var(--ease);
  pointer-events: none;
}
.control:focus-within::after { transform: scaleX(1); }
.input, .select, .textarea {
  display: block; width: 100%;
  padding: 12px 0 13px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  font-size: 1.0625rem;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .4s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: rgba(14, 22, 32, .38); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink); }
.textarea { min-height: 132px; resize: vertical; line-height: 1.55; }
.select {
  padding-right: 32px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230E1620' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 12px 8px;
}
.input[type="date"] { min-height: 50px; }
.input:user-invalid, .select:user-invalid, .textarea:user-invalid { border-color: #B3261E; }

.file {
  position: relative;
  display: flex; align-items: center; gap: 18px;
  padding: 22px 24px;
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, .35);
  transition: border-color .4s var(--ease), background-color .4s var(--ease);
}
.file:hover, .file.is-over { border-color: var(--ink); background: rgba(255, 255, 255, .7); }
.file.has-file { border-style: solid; border-color: var(--ink); }
.file input {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
.file input:focus-visible + .file-icon { outline: 2px solid var(--accent); outline-offset: 3px; }
.file-icon {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}
.file-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.file-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.file-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { font-size: .8125rem; color: var(--muted); }

.form-foot {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px 32px;
  margin-top: 8px;
}
.form-note { font-size: .875rem; color: var(--muted); max-width: 30rem; }
.form-note a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.form-error { grid-column: 1 / -1; color: #B3261E; font-size: .9375rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form.is-sending .btn { opacity: .7; }

.form-wrap { position: relative; }
.form-wrap .form { transition: opacity .6s var(--ease), transform .8s var(--ease); }
.form-wrap.is-done .form { opacity: 0; transform: translateY(-12px); pointer-events: none; }
.form-success {
  padding: clamp(32px, 4vw, 56px) 0;
  border-top: 1px solid var(--ink);
}
.form-success[hidden] { display: none; }
.form-success h3 { margin-bottom: 18px; }
.form-success p { color: var(--ink-soft); max-width: 36rem; }
.form-success .tick {
  width: 52px; height: 52px; margin-bottom: 28px;
  fill: none; stroke: var(--accent); stroke-width: 1.4;
}
.form-success .tick circle, .form-success .tick path {
  stroke-dasharray: 1 2; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.2s var(--ease-io);
}
.form-success .tick path { transition-delay: .5s; }
.form-success.is-in .tick circle, .form-success.is-in .tick path { stroke-dashoffset: 0; }
.form-success.is-in > *:not(.tick) { animation: rise .9s var(--ease) both; }
.form-success.is-in > :nth-child(3) { animation-delay: .1s; }
.form-success.is-in > :nth-child(4) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

@media (max-width: 640px) {
  .form { grid-template-columns: 1fr; }
  .field { grid-column: 1 / -1; }
}

/* ---------- Tabs (contact) ---------- */

.tabs {
  position: relative;
  display: flex; gap: clamp(20px, 3vw, 40px);
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: clamp(40px, 5vw, 64px);
}
.tab {
  padding: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--muted);
  transition: color .5s var(--ease);
}
.tab:hover, .tab[aria-selected="true"] { color: var(--ink); }
.tabs-ink {
  position: absolute; left: 0; bottom: -1px;
  height: 2px; width: var(--ink-w, 0);
  background: var(--ink);
  transform: translateX(var(--ink-x, 0));
  transition: transform .8s var(--ease), width .8s var(--ease);
}
.tab-panel[hidden] { display: none; }
.tab-panel.is-in > * { animation: rise .9s var(--ease) both; }
.tab-panel.is-in > *:nth-child(2) { animation-delay: .08s; }
.tab-panel.is-in > *:nth-child(3) { animation-delay: .16s; }
.tab-panel.is-in > *:nth-child(4) { animation-delay: .24s; }
.panel-intro { max-width: 40rem; color: var(--ink-soft); margin-bottom: clamp(36px, 4vw, 52px); }
.panel-split { margin-block: 8px clamp(48px, 6vw, 72px); }
.panel-sub { margin-bottom: 28px; }

/* Contact details */
.details { display: flex; flex-direction: column; }
.details > div { padding: 20px 0; border-top: 1px solid var(--line); }
.details > div:last-child { border-bottom: 1px solid var(--line); }
.details dt {
  font-size: .75rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.details dd { font-size: 1.0625rem; }
.details dd + dd { margin-top: 4px; }
.details dd a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .6s var(--ease);
}
.details dd a:hover { background-size: 100% 1px; }

/* ---------- FAQ accordion ---------- */

.faq-group { row-gap: 32px; }
.faq-group + .faq-group { margin-top: clamp(80px, 10vw, 144px); }
.faq-head { grid-column: 1 / span 4; }
.faq-head-inner { position: sticky; top: calc(var(--header-h) + 40px); }
.faq-head p { margin-top: 16px; color: var(--muted); }
.accordion { grid-column: 6 / -1; border-bottom: 1px solid var(--line-strong); }
.acc-item { border-top: 1px solid var(--line-strong); }
.acc-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px 0;
  text-align: left;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -.01em;
  transition: color .4s var(--ease);
}
.acc-trigger:hover { color: var(--accent); }
.acc-icon {
  position: relative;
  flex: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color .5s var(--ease), border-color .5s var(--ease), transform .7s var(--ease);
}
.acc-icon::before, .acc-icon::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 12px; height: 1.4px;
  margin: -.7px 0 0 -6px;
  background: var(--ink);
  transition: transform .7s var(--ease), background-color .5s var(--ease);
}
.acc-icon::after { transform: rotate(90deg); }
.acc-item.is-open .acc-icon { background: var(--ink); border-color: var(--ink); transform: rotate(180deg); }
.acc-item.is-open .acc-icon::before, .acc-item.is-open .acc-icon::after { background: var(--paper); }
.acc-item.is-open .acc-icon::after { transform: rotate(0deg); }
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .8s var(--ease), visibility 0s linear .8s;
}
.acc-item.is-open .acc-panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows .8s var(--ease), visibility 0s;
}
.acc-inner { overflow: hidden; }
.acc-inner p {
  padding: 0 64px 32px 0;
  color: var(--ink-soft);
  max-width: 44rem;
  opacity: 0; transform: translateY(-8px);
  transition: opacity .5s var(--ease), transform .7s var(--ease);
}
.acc-item.is-open .acc-inner p { opacity: 1; transform: none; transition-delay: .12s; }
@media (max-width: 900px) {
  .faq-head, .accordion { grid-column: 1 / -1; }
  .faq-head-inner { position: static; }
  .acc-inner p { padding-right: 0; }
}

/* ---------- Jobs ---------- */

.jobs-head {
  display: grid;
  grid-template-columns: 5fr 3fr 2fr 1fr;
  gap: var(--gap);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink);
  font-size: .75rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.job {
  display: grid;
  grid-template-columns: 5fr 3fr 2fr 1fr;
  gap: var(--gap);
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-strong);
  text-decoration: none;
}
.job-title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 400;
  letter-spacing: -.012em;
  line-height: 1.15;
  transition: transform .7s var(--ease);
}
.job-meta { color: var(--ink-soft); }
.job-apply { justify-self: end; display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.job-apply svg { width: 14px; height: 14px; transition: transform .7s var(--ease); }
.job:hover .job-title { transform: translateX(10px); }
.job:hover .job-apply svg { transform: translateX(4px); }
.jobs-empty {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 28px;
  padding: clamp(48px, 6vw, 88px) 0;
  border-bottom: 1px solid var(--line-strong);
}
.jobs-empty > h3 { grid-column: 1 / span 6; max-width: 16em; }
.jobs-empty-body { grid-column: 8 / -1; }
.jobs-empty-body p { color: var(--ink-soft); }
.jobs-empty-body .actions { margin-top: 32px; }
@media (max-width: 900px) {
  .jobs-head { display: none; }
  .job { grid-template-columns: 1fr; gap: 6px; }
  .jobs-empty > h3, .jobs-empty-body { grid-column: 1 / -1; }
}

/* ---------- Privacy policy ---------- */

.legal-layout { row-gap: 40px; }
.legal-aside { grid-column: 1 / span 3; }
.legal-aside-inner { position: sticky; top: calc(var(--header-h) + 40px); }
.legal-date {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: -.01em;
}
.legal-help { margin-top: 20px; font-size: .9375rem; color: var(--muted); max-width: 16rem; }
.legal-help a { color: var(--ink); text-underline-offset: 3px; }
.legal { grid-column: 5 / -1; border-bottom: 1px solid var(--line-strong); }
.legal-sec {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 16px;
  padding: clamp(32px, 4vw, 48px) 0;
  border-top: 1px solid var(--line-strong);
}
.legal-sec .num { padding-top: .5em; }
.legal-sec h2 { margin-bottom: 18px; }
.legal-sec p, .legal-sec li { color: var(--ink-soft); max-width: 42rem; }
.legal-sec strong { color: var(--ink); font-weight: 600; }
.legal-sec a { color: var(--ink); text-underline-offset: 3px; }
.legal-sec > div > * + * { margin-top: 1em; }
.legal-sec li { position: relative; padding-left: 24px; }
.legal-sec li + li { margin-top: .6em; }
.legal-sec li::before {
  content: "";
  position: absolute; left: 0; top: .82em;
  width: 12px; height: 1px;
  background: var(--accent);
}
@media (max-width: 900px) {
  .legal-aside, .legal { grid-column: 1 / -1; }
  .legal-aside-inner { position: static; }
  .legal-sec { grid-template-columns: 40px 1fr; }
}

/* ---------- 404 ---------- */

.notfound {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  padding-block: calc(var(--header-h) + 48px) 80px;
}
.notfound .page-head-topo { top: -20%; }
.notfound .wrap { position: relative; }
.notfound p { margin: 32px 0 40px; max-width: 32rem; color: var(--ink-soft); }

/* ---------- Page transitions ---------- */

::view-transition-old(root) { animation: vt-out .5s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in .8s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal], .js [data-stagger] > *, .line-inner, .js [data-rule] { opacity: 1; transform: none; }
  .js .topo path { stroke-dashoffset: 0; }
  .js .statement .sw { opacity: 1; }
  .js .step { opacity: 1; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
