/* =========================================================
   Release 1 pages (service, pricing, trust, team, cases,
   contact, privacy). Extends style.css with its own tokens.
   ========================================================= */

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--amber); color: oklch(0.18 0.02 60);
  padding: 0.6rem 1rem; border-radius: 0 0 6px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
main { display: block; }
.anchor { display: block; position: relative; top: -6rem; }
[id] { scroll-margin-top: 6rem; }
.btn:active { transform: translateY(1px); }

/* --- header ---------------------------------------------- */
.nav { gap: 1.1rem; }
.nav a { white-space: nowrap; }
.nav a[aria-current="page"] { color: var(--fg-0); }
.nav-group { position: relative; }
.nav-sub {
  position: absolute; top: calc(100% + 0.9rem); left: -0.9rem;
  min-width: 19rem; display: none; flex-direction: column; gap: 0.15rem;
  padding: 0.5rem; background: var(--ink-1);
  border: 1px solid var(--ink-2); border-radius: 8px;
}
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -1rem; height: 1rem; }
.nav-group:hover .nav-sub, .nav-group:focus-within .nav-sub { display: flex; }
.nav .nav-sub a {
  padding: 0.55rem 0.7rem; border-radius: 6px;
  font-family: var(--body); font-size: 0.9rem; letter-spacing: 0; color: var(--fg-1);
}
.nav .nav-sub a:hover { background: var(--ink-2); color: var(--fg-0); }
.nav-divider { width: 1px; height: 1.1rem; background: var(--ink-3); }
.nav a.btn-sm {
  padding: 0.55rem 0.95rem; font-family: var(--body);
  font-size: 0.82rem; letter-spacing: 0; color: oklch(0.18 0.02 60);
}
.nav a.btn-sm:hover { color: oklch(0.18 0.02 60); }

@media (max-width: 1320px) {
  .nav {
    display: none; flex-direction: column; align-items: flex-start;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink-0); border-bottom: 1px solid var(--ink-2);
    padding: 1.25rem var(--gutter); gap: 1rem;
    max-height: calc(100dvh - 4.5rem); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .menu-toggle { display: inline-flex; }
  .nav-sub { position: static; display: flex; background: none; border: 0; padding: 0.4rem 0 0 0.75rem; min-width: 0; }
  .nav-sub::before { display: none; }
  .nav-divider { width: 100%; height: 1px; }
}

/* --- page hero --------------------------------------------- */
.page-hero { padding-top: 8.5rem; padding-bottom: clamp(3rem, 6vw, 5rem); }
.page-hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.8rem);
  line-height: 1.04; letter-spacing: -0.03em;
  max-width: 22ch; margin: 1.4rem 0 1.5rem;
}
.home-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.7rem); max-width: 20ch; }
.story-hero h1 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); max-width: 26ch; }
.page-hero .lede {
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  color: var(--fg-2); max-width: 62ch; line-height: 1.6; text-wrap: pretty;
}
.page-hero .lede + .lede { margin-top: 1rem; }
.page-hero .lede.after { margin-top: 2rem; font-size: 1rem; }
.page-hero .cta-row { margin-top: 2.25rem; }
.back-link {
  display: inline-block; margin-bottom: 1.5rem;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--fg-2);
}
.back-link:hover { color: var(--fg-0); }

/* --- proof strip ------------------------------------------- */
.proof {
  list-style: none; margin-top: 3rem;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--ink-2);
}
.proof li {
  padding: 1.1rem 1.25rem; font-size: 0.92rem; line-height: 1.45;
  color: var(--fg-1); border-right: 1px solid var(--ink-2);
}
.proof li:first-child { padding-left: 0; }
.proof li:last-child { border-right: 0; }
.proof a { color: var(--fg-0); border-bottom: 1px solid var(--amber); }
.sectors {
  margin-top: 1.25rem; font-family: var(--mono); font-size: 0.76rem;
  letter-spacing: 0.03em; line-height: 1.6; color: var(--fg-2);
}
@media (max-width: 900px) {
  .proof { grid-template-columns: 1fr; }
  .proof li { padding: 0.9rem 0; border-right: 0; border-bottom: 1px solid var(--ink-2); }
  .proof li:last-child { border-bottom: 0; }
}

/* --- sections ---------------------------------------------- */
section.block.split, section.block.stack { padding-block: clamp(3rem, 6vw, 5.5rem); border-top: 1px solid var(--ink-2); }
.split-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: clamp(1.5rem, 5vw, 5rem);
}
.sec-head .idx { display: block; margin-bottom: 0.75rem; }
.sec-head h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.08;
  letter-spacing: -0.025em; color: var(--fg-0); text-wrap: balance;
}
.split .sec-head { position: sticky; top: 6.5rem; align-self: start; }
.stack .sec-head { margin-bottom: 2.5rem; max-width: 40ch; }
.stack .prose { max-width: none; }
.stack .prose > p { max-width: 68ch; }

.prose { max-width: 68ch; color: var(--fg-2); font-size: 1.02rem; line-height: 1.65; }
.prose > * + * { margin-top: 1.1rem; }
.prose p { text-wrap: pretty; }
.prose strong { color: var(--fg-0); font-weight: 600; }
.prose a:not(.btn) { color: var(--fg-0); border-bottom: 1px solid var(--amber); transition: color 0.2s ease; }
.prose a:not(.btn):hover { color: var(--amber-bright); }
.prose code { font-family: var(--mono); font-size: 0.88em; }
.prose ol.steps { list-style: none; counter-reset: step; display: grid; gap: 1rem; }
.prose ol.steps li { counter-increment: step; position: relative; padding-left: 2.6rem; }
.prose ol.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0.2rem;
  font-family: var(--mono); font-size: 0.75rem; color: var(--amber);
}
.prose ul.list { list-style: none; display: grid; gap: 0.6rem; }
.prose ul.list li { position: relative; padding-left: 1.4rem; }
.prose ul.list li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 0.55rem; height: 1px; background: var(--amber); }
.prose .cta-row { margin-top: 1.75rem; }
.prose .story-grid { margin-top: 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--ink-2); border-radius: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.prose th, .prose td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--ink-2); vertical-align: top; }
.prose thead th {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--fg-2); font-weight: 500;
}
.prose td { color: var(--fg-1); }
.prose tbody tr:last-child td, .prose tbody tr:last-child th { border-bottom: 0; }
.prose .kv th { color: var(--fg-0); font-weight: 500; width: 32%; }
.foot-note { font-size: 0.9rem; color: var(--fg-2); }

/* --- story cards ------------------------------------------- */
.story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.story-card { position: relative; }
.story-card h2, .story-card h3 {
  font-family: var(--display); font-weight: 600; font-size: 1.25rem;
  letter-spacing: -0.015em; color: var(--fg-0); line-height: 1.2; text-wrap: balance;
}
.story-card .case-link { color: var(--fg-0); border: 0; }
.story-card .case-link::after { content: ""; position: absolute; inset: 0; }
.story-card .case-link:focus-visible { outline: none; }
.story-card:focus-within { outline: 2px solid var(--amber); outline-offset: 3px; }
.story-card .footer-row { color: var(--amber); }
.story-card p { color: var(--fg-2); }
@media (max-width: 760px) { .story-grid { grid-template-columns: 1fr; } }

/* --- story article ----------------------------------------- */
section.block.story { padding-block: clamp(2.5rem, 5vw, 4.5rem); border-top: 1px solid var(--ink-2); }
.story-body { max-width: 72ch; }
.story-body .omitted {
  font-style: italic; color: var(--fg-2);
  border-top: 1px dashed var(--ink-3); padding-top: 1.25rem; margin-top: 2rem;
}
.story-body .services { font-size: 0.92rem; }

/* --- strip and closing ------------------------------------- */
.strip { background: var(--ink-1); border-block: 1px solid var(--ink-2); padding-block: clamp(2.5rem, 5vw, 4rem); }
.strip-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: clamp(1.5rem, 5vw, 5rem); align-items: center;
}
.strip h2 {
  font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  color: var(--fg-0); letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance;
}
.strip .prose { color: var(--fg-1); }
section.block.closing {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid var(--ink-2);
  background: radial-gradient(55% 90% at 100% 100%, var(--amber-soft), transparent 70%);
}
.closing h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.05;
  letter-spacing: -0.03em; color: var(--fg-0); max-width: 24ch; text-wrap: balance;
}
.closing .prose { margin-top: 1.25rem; }
.closing .prose .cta-row { margin-top: 1.5rem; }

/* --- footer ------------------------------------------------ */
.foot-grid.foot-5 { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); }
.foot-grid.foot-4 { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); }
.foot-grid li { color: var(--fg-2); font-size: 0.92rem; line-height: 1.45; }
.foot-bottom a { color: var(--fg-2); border-bottom: 1px solid var(--ink-3); padding-bottom: 1px; }
.foot-bottom a:hover { color: var(--fg-0); }

@media (max-width: 1024px) {
  .split-grid, .strip-inner { grid-template-columns: 1fr; }
  .split .sec-head { position: static; }
  .foot-grid.foot-5, .foot-grid.foot-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .foot-grid.foot-5, .foot-grid.foot-4 { grid-template-columns: 1fr; }
  .page-hero { padding-top: 7rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
