/* Travia LLC — site styles
   Ported from Templates/: warm paper / sand surfaces, charcoal ink, sun-yellow accents.
   Newsreader for display, Geist for UI and body, Geist Mono for small section labels.

   Contents
   01. Tokens & base
   02. Type, buttons, links
   03. Announcement, header, navigation, drawer
   04. Homepage (hero, capability row, why, how, industries, numbers, services, FAQ)
   05. Shared closing CTA, sculpted layers
   06. Interior pages (page hero, sections, cards, lists, accordions, forms)
   07. Footer
   08. Responsive & motion */

/* 01. Tokens & base ======================================================= */

:root {
  --paper: #f8f6f1;
  --paper-2: #fbfaf7;
  --sand: #ede7dc;
  --sand-deep: #e2d9ca;
  --line: #dcd3c4;
  --line-strong: #c9bead;
  --ink: #2c2a27;
  --ink-2: #4a4640;
  --muted: #736d64;
  --taupe: #b3a796;
  --sun: #ffbf2f;
  --sun-deep: #f2a900;
  --cobalt: #0b5ca6;
  --cobalt-2: #2b73b8;
  --sky: #d6e8f7;
  --on-ink: rgba(248, 246, 241, .76);
  --ink-line: rgba(248, 246, 241, .14);

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
  --header-h: 72px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
/* Zero specificity so the flow-spacing rules in section 06 can apply. */
:where(h1, h2, h3, h4, p) { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { flex: none; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
.on-navy :focus-visible, .section--ink :focus-visible, .footer :focus-visible { outline-color: var(--sun); }
::selection { background: var(--sun); color: var(--ink); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(820px + 2 * var(--gutter)); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; }
.skip-link:focus { top: 12px; }

/* 02. Type, buttons, links ================================================ */

h1, h2 { font-weight: 400; text-wrap: balance; }
h2 {
  font: 400 clamp(2.05rem, 1.25rem + 2.5vw, 3.5rem)/1.08 var(--serif);
  letter-spacing: -0.018em;
}
h3, h4 { font-weight: 500; text-wrap: balance; }
b, strong { font-weight: 600; }
.eyebrow {
  display: block;
  margin-bottom: 18px;
  font: 500 12px/1.2 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.aside { margin-top: 12px; font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); color: var(--ink-2); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font: 500 15px/1 var(--sans);
  white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: #46423c; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn__plus { color: var(--sun); font-size: 1.15em; line-height: .8; transition: transform .25s var(--ease); }
.btn:hover .btn__plus { transform: rotate(90deg); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--sun:hover { background: #ffcd59; }
.btn--sun .btn__plus { color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost:hover { background: var(--sand); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--ghost .btn__plus { color: var(--sun-deep); }

.link-dot { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; }
.link-dot__i {
  display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--sun); color: var(--ink);
  transition: transform .25s var(--ease);
}
.link-dot__i svg { width: 14px; height: 14px; }
.link-dot:hover .link-dot__i { transform: translateX(3px); }

.tile-ico {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 6px;
  background: var(--taupe); color: #fff;
}
.tile-ico svg { width: 17px; height: 17px; }

/* 03. Announcement, header, navigation, drawer ============================ */


.header { position: sticky; top: 0; z-index: 50; background: rgba(248, 246, 241, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.header__inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); position: relative; }
.header__inner::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; border-bottom: 1px solid var(--line); }

.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); flex: none; }
.brand__logo { width: 24px; height: 24px; }
.brand__mark { font: 400 21px/1 var(--sans); letter-spacing: -.02em; }
.brand__mark b { font-weight: 600; margin-right: 3px; }
.brand--light { color: var(--paper); }

.nav { margin-inline: auto; }
.nav__list { display: flex; gap: 2px; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 4px; padding: 9px 9px; font-size: 14px; color: var(--ink-2); border-radius: 999px; white-space: nowrap; transition: background-color .2s; }
.nav__link:hover, .nav__item:focus-within > .nav__link, .nav__item.is-open > .nav__link { background: var(--sand); color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--sun-deep); border-radius: 999px 999px 4px 4px; }
.nav__plus { color: var(--muted); transition: transform .2s var(--ease); }
.nav__item--has-panel:hover .nav__plus, .nav__item--has-panel:focus-within .nav__plus, .nav__item.is-open .nav__plus { transform: rotate(45deg); }

.nav__panel {
  position: absolute; top: calc(100% + 10px); left: 50%;
  width: 360px;
  display: grid; gap: 2px;
  padding: 10px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 48px -20px rgba(60, 45, 25, .28);
  opacity: 0; visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav__panel::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav__panel--wide { width: 620px; grid-template-columns: 1fr 1fr; }
.nav__item--has-panel:hover .nav__panel,
.nav__item--has-panel:focus-within .nav__panel,
.nav__item--has-panel.is-open .nav__panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__panel a { display: block; padding: 10px 12px; border-radius: var(--r-sm); }
.nav__panel a:hover, .nav__panel a[aria-current="page"] { background: var(--sand); }
.nav__panel strong { display: block; font-weight: 500; font-size: 14.5px; }
.nav__panel span { display: block; font-size: 13px; line-height: 1.45; color: var(--muted); margin-top: 2px; }

.header__cta { flex: none; }

.burger { display: none; width: 44px; height: 44px; margin-left: auto; border-radius: 50%; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .25s var(--ease), top .25s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

.drawer { display: none; }

@media (max-width: 1024px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .drawer {
    display: block;
    position: absolute; left: 0; right: 0; top: 100%;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
    padding: 8px var(--gutter) 28px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .drawer.is-open { visibility: visible; opacity: 1; transform: none; }
  .drawer > ul > li { border-bottom: 1px solid var(--line); }
  .drawer > ul > li > a, .drawer__toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 16px 0; font-size: 17px; text-align: left; }
  .drawer a[aria-current="page"] { font-weight: 500; }
  .drawer__toggle svg { width: 18px; height: 18px; transition: transform .2s; }
  .drawer__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .drawer__sub { display: none; padding: 0 0 14px 12px; }
  .drawer__sub.is-open { display: block; }
  .drawer__sub a { display: block; padding: 8px 0; color: var(--ink-2); }
  .drawer > .btn { margin-top: 24px; }
}

/* 04. Homepage ============================================================ */

/* Hero: full-bleed background video. 16:9 on laptops so the whole frame shows;
   taller on narrow screens so the copy fits, where the video crops to fill. */
.hero {
  position: relative;
  display: grid; place-items: center;
  height: clamp(560px, 56.25vw, calc(100svh - var(--header-h)));
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(20, 18, 16, .62), rgba(20, 18, 16, .38) 70%, rgba(20, 18, 16, .5));
}
.hero .wrap { position: relative; width: 100%; padding-block: 48px; }
.hero__copy { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 760px; margin-inline: auto; }
.pill-badge {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--sky);
  border: 1px solid #b3d2ee;
  font: 500 12px/1 var(--sans);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #1f3e5c;
}
.hero__title {
  margin-top: 28px;
  font: 400 clamp(2.8rem, 1.5rem + 4.6vw, 5.1rem)/1.02 var(--serif);
  letter-spacing: -0.025em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}
.hero__aside { margin-top: 18px; font-size: clamp(1.1rem, 1rem + .5vw, 1.45rem); color: #fff; }
.hero__lede { margin-top: 18px; max-width: 34em; color: rgba(255, 255, 255, .86); font-size: 17px; }
.hero__copy .btn { margin-top: 30px; }

.hero__controls { position: absolute; right: var(--gutter); bottom: 20px; display: flex; gap: 8px; }
.hero__ctl {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(20, 18, 16, .5);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color .2s var(--ease);
}
.hero__ctl:hover { background: rgba(20, 18, 16, .75); }
.hero__ctl:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }
.hero__ctl svg { width: 18px; height: 18px; }
.hero__ctl .i-play, .hero__ctl .i-muted,
.hero__controls.is-paused .i-pause, .hero__controls.is-muted .i-sound { display: none; }
.hero__controls.is-paused .i-play, .hero__controls.is-muted .i-muted { display: block; }

/* Scroll cue, shown only while the scroll-driven reveal is waiting */
.hero__cue { display: none; }
.hero.is-scrubbed .hero__cue {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .85);
}
.hero.is-scrubbed .hero__cue::after { content: ""; width: 1px; height: 34px; background: linear-gradient(#fff, transparent); animation: cue 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Scroll-driven reveal (added by travia-motion.js): the hero sticks under the header
   while the spacer below it scrolls past. svh keeps the distance steady as mobile toolbars move. */
.hero-track .hero { position: sticky; top: var(--header-h); }
.hero-track::after { content: ""; display: block; height: 110vh; height: 110svh; }

@media (max-width: 760px) {
  .hero { height: max(560px, calc(100svh - var(--header-h))); }
  .hero__controls { bottom: 16px; }
  .hero.is-scrubbed .hero__cue { bottom: 20px; }
}

/* Capability row (logo row in the reference) */
.caprow { padding-top: clamp(72px, 9vw, 112px); text-align: center; }
.caprow__title { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.15rem); line-height: 1.18; }
.caprow__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 44px; margin-top: 40px; }
.caprow__row a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 17px; font-weight: 500; color: #8a8378; transition: color .2s; }
.caprow__row a:hover { color: var(--ink); }
.caprow__row svg { width: 24px; height: 24px; }
.caprow__foot { margin-top: 44px; padding: 22px 0; border-top: 1px solid var(--line); }

/* Sections */
.section { padding-block: var(--section); position: relative; }
.section--sand, .section--mist { background: var(--sand); }
.section--ink, .section--navy { background: var(--ink); color: var(--paper); }
/* Back-to-back sections on the same ground read as one band. */
.section--mist + .section--mist, .section:not([class*="section--"]) + .section:not([class*="section--"]) { padding-top: 0; }
.section--ink .eyebrow, .on-navy .eyebrow { color: rgba(248, 246, 241, .8); }

/* Why */
.why { padding-bottom: calc(var(--section) + 70px); overflow: clip; }
.why__grid { display: grid; grid-template-columns: 1.05fr .95fr 1fr; gap: clamp(24px, 3vw, 44px); align-items: start; }
.why__copy h2 { font-size: clamp(2rem, 1.3rem + 2vw, 3rem); }
.why__copy p { margin-top: 24px; color: var(--ink-2); max-width: 30em; }

.diagram {
  position: relative;
  aspect-ratio: 25 / 26;
  border-radius: var(--r-md);
  overflow: hidden;
  background:
    radial-gradient(circle, var(--line-strong) 1px, transparent 1.4px) 0 0 / 18px 18px,
    var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -26px rgba(60, 45, 25, .35);
}
.diagram__wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.diagram__wires path { fill: none; stroke: var(--taupe); stroke-width: 1.4; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.node, .hub, .joint { position: absolute; transform: translate(-50%, -50%); }
.node {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--paper-2); color: var(--ink);
  border: 1px solid var(--line-strong);
  font-size: clamp(11px, .55rem + .35vw, 13.5px);
  white-space: nowrap;
  box-shadow: 0 6px 14px -10px rgba(60, 45, 25, .45);
}
.node--top { left: 50%; top: 14.6%; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.node--l { left: 20.8%; top: 39.2%; }
.node--r { left: 79.2%; top: 39.2%; }
.node--bl { left: 20.8%; top: 80.8%; }
.node--br { left: 79.2%; top: 80.8%; }
.hub {
  left: 50%; top: 52%;
  display: grid; place-items: center;
  width: 27%; aspect-ratio: 1;
  border-radius: 14px;
  background: var(--ink); color: var(--sun);
  box-shadow: 0 0 0 6px var(--paper-2), 0 0 0 7px var(--line-strong), 0 18px 30px -14px rgba(44, 42, 39, .55);
}
.hub svg { width: 52%; height: 52%; }
.joint {
  left: var(--x); top: var(--y);
  display: grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--sun); color: var(--ink);
  box-shadow: 0 0 0 2px var(--paper-2);
}
.joint svg { width: 11px; height: 11px; }

.why__list li { border-bottom: 1px solid var(--line-strong); position: relative; }
.why__list li::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: var(--ink); transition: width .5s var(--ease);
}
.why__list li.is-open::after { width: 33%; }
.why__list button {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 18px 0;
  text-align: left;
  font-size: 17px; color: var(--muted);
  transition: color .2s;
}
.why__list li.is-open button, .why__list button:hover { color: var(--ink); }
.why__list li.is-open .tile-ico { background: var(--ink); }
.why__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.why__body > p { overflow: hidden; padding-left: 44px; color: var(--ink-2); font-size: 15px; }
.why__list li.is-open .why__body { grid-template-rows: 1fr; }
.why__list li.is-open .why__body > p { padding-bottom: 20px; }

/* Stepped edge into the next section */
.stepedge { position: absolute; left: 0; right: 0; bottom: 0; height: 92px; pointer-events: none; }
.stepedge i { position: absolute; bottom: 0; background: var(--paper); }
.stepedge i:nth-child(1) { left: 0; width: 33%; height: 16px; border-top-right-radius: 6px; }
.stepedge i:nth-child(2) { left: 32%; width: 40%; height: 66px; border-radius: 8px 8px 0 0; }
.stepedge i:nth-child(3) { left: 32%; width: 40%; height: 14px; bottom: 6px; background: var(--sand-deep); border-radius: 6px; }
.stepedge i:nth-child(4) { left: 71.5%; right: 0; width: auto; height: 92px; border-top-left-radius: 8px; }
.stepedge i:nth-child(5) { left: 71.5%; right: 0; width: auto; height: 38px; bottom: 26px; background: var(--sand-deep); border-radius: 6px 0 0 6px; }

/* How it works */
.head-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px 64px; align-items: end; }
.head-split h2 { max-width: 13em; }
.head-split__lede { color: var(--ink-2); max-width: 30em; justify-self: end; }

.board {
  --gap: 28px;
  display: grid; grid-template-columns: 190px minmax(0, 1fr) 190px; gap: var(--gap);
  margin-top: 56px;
  padding: clamp(18px, 2.5vw, 30px);
  border-radius: var(--r-lg);
  background: var(--sand);
}
.board__label { font-size: 14px; font-weight: 500; margin: 12px 0 18px; }
.board__label small { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.board__src, .board__dst { display: grid; gap: 10px; }
.board__src button, .board__dst li {
  position: relative;
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-size: 14px; text-align: left;
  transition: background-color .2s, color .2s, border-color .2s;
}
.board__src button svg, .board__dst svg { width: 18px; height: 18px; color: var(--muted); }
.board__src button:hover { border-color: var(--line-strong); }
.board__src button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.board__src button[aria-selected="true"] svg { color: var(--ink); background: var(--sun); border-radius: 4px; padding: 2px; }
.board__src button::after, .board__dst li::before {
  content: ""; position: absolute; top: 50%; width: var(--gap);
  border-top: 1px dashed var(--line-strong);
}
.board__src button::after { left: 100%; }
.board__dst li::before { right: 100%; }
.board__src button[aria-selected="true"]::after { border-top-color: var(--ink); border-top-style: solid; }

.board__core {
  padding: clamp(14px, 2vw, 22px);
  border-radius: var(--r-md);
  background: var(--paper-2);
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -26px rgba(60, 45, 25, .35);
}
.board__head { display: flex; align-items: center; gap: 12px; }
.board__logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--ink); color: #fff; }
.board__logo svg { width: 19px; height: 19px; }
.board__head b { display: block; font-weight: 500; font-size: 16px; }
.board__head small { display: block; font-size: 12.5px; color: var(--muted); }

.status {
  display: flex; align-items: center; gap: 14px;
  margin: 18px 0 22px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--sand);
  border: 1px solid var(--line);
}
.status img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 3px solid var(--sun); transition: opacity .25s; }
.status p { flex: 1; min-width: 0; }
.status b { display: block; font-weight: 500; font-size: 16px; line-height: 1.35; }
.status small { display: block; font-size: 12.5px; color: var(--muted); }
.status__steps { display: flex; gap: 4px; align-self: flex-start; margin-top: 8px; }
.status__steps i { width: 16px; height: 4px; border-radius: 2px; background: var(--line); transition: background-color .3s; }
.status__steps i.on { background: var(--sun-deep); }

.board__group { padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--line); font: 500 11.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.fn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fn a {
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 82px;
  padding: 12px 34px 12px 12px;
  border-radius: var(--r-sm);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14px; line-height: 1.25;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.fn a > svg { width: 18px; height: 18px; color: var(--ink-2); }
.fn a:hover { border-color: var(--line-strong); }
.fn a i {
  position: absolute; top: 10px; right: 10px;
  display: grid; place-items: center;
  width: 16px; height: 16px; border-radius: 3px;
  background: var(--sand); border: 1px solid var(--line);
  color: transparent;
}
.fn a i svg { width: 11px; height: 11px; }
.fn a.is-on { background: var(--sun); border-color: var(--sun-deep); }
.fn a.is-on i { background: var(--ink); border-color: var(--ink); color: var(--sun); }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 44px; }
.features li { display: flex; gap: 14px; }
.features svg { width: 24px; height: 24px; margin-top: 1px; }
.features h3 { font: 500 17px/1.35 var(--sans); }
.features p { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); max-width: 30em; }

/* Industries */
.ind { overflow: clip; }
.ind__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.ind__copy p { margin: 22px 0 30px; color: var(--ink-2); max-width: 26em; }

.ind__show { min-width: 0; }
.ind-card {
  display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: clamp(18px, 2.4vw, 28px);
  padding: 12px;
  border-radius: var(--r-lg);
  background: var(--sand-deep);
  border: 1px solid var(--line-strong);
}
.js .ind-card[hidden] { display: none; }
.ind-card img { width: 100%; height: 100%; max-height: 340px; object-fit: cover; border-radius: var(--r-md); }
.ind-card > div { display: flex; flex-direction: column; padding: 12px 12px 12px 0; }
.ind-card h3 { font: 400 1.5rem/1.2 var(--serif); letter-spacing: -.01em; }
.ind-card p { margin-top: 14px; color: var(--ink-2); font-size: 15px; }
.ind-card ul { margin: 18px 0 24px; display: grid; gap: 6px; font-size: 14.5px; }
.ind-card li { display: flex; gap: 10px; align-items: baseline; }
.ind-card li::before { content: ""; width: 10px; height: 2px; background: var(--sun-deep); flex: none; transform: translateY(-3px); }
.ind-card .link-dot { margin-top: auto; }
.js .ind-card:not([hidden]) { animation: rise .45s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.ind__tabs {
  display: flex; gap: 4px;
  margin-top: 24px;
  border-top: 1px solid var(--line-strong);
  overflow-x: auto; scrollbar-width: none;
}
.ind__tabs::-webkit-scrollbar { display: none; }
.ind__tabs button {
  position: relative; flex: none;
  padding: 16px 10px 6px;
  font-size: 14px; color: var(--muted);
  transition: color .2s;
}
.ind__tabs button::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: transparent; transition: background-color .25s; }
.ind__tabs button:hover { color: var(--ink); }
.ind__tabs button[aria-selected="true"] { color: var(--ink); font-weight: 500; }
.ind__tabs button[aria-selected="true"]::before { background: linear-gradient(90deg, var(--sun) 0 64%, var(--ink) 64%); }

/* Numbers (dark) */
.nums__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.nums__copy h2 { color: var(--paper); }
.nums__eq { margin: 18px 0 28px; color: rgba(248, 246, 241, .72); max-width: 30em; }

.compare { position: relative; margin: 0; aspect-ratio: 1.06; border-radius: var(--r-md); overflow: hidden; --pos: 50%; }
.compare > img, .compare__before img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
/* The filter sits on the wrapper: the image's load-in "develop" animation animates filter on the img itself and would wipe it out. */
.compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); filter: grayscale(1) contrast(1.05) brightness(.95); }
.compare__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.compare__line span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  background: #fff; color: var(--ink);
  font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
}
.compare__line span::before, .compare__line span::after { content: ""; width: 6px; height: 9px; background: var(--ink); }
.compare__line span::before { clip-path: polygon(100% 0, 0 50%, 100% 100%); }
.compare__line span::after { clip-path: polygon(0 0, 100% 50%, 0 100%); }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare:has(.compare__range:focus-visible) .compare__line span { outline: 2px solid var(--sun); outline-offset: 3px; }

.glass {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  border-radius: var(--r-md);
  background: rgba(70, 64, 56, .58);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.compare .glass { position: absolute; top: 20%; right: 8%; pointer-events: none; }
.glass__dots {
  width: 62px; height: 40px;
  background: radial-gradient(circle, var(--sun) 3.2px, transparent 3.6px) 0 0 / 15.5px 13.3px;
}
.glass b { display: block; font: 400 clamp(2rem, 1.5rem + 1.5vw, 2.75rem)/1 var(--serif); color: var(--sun); }
.glass small { display: block; margin-top: 4px; font-size: 12.5px; color: rgba(255, 255, 255, .82); }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 32px; margin-top: 56px; }
.stats li { padding-left: 16px; border-left: 2px solid var(--sun); }
.stats b { display: block; font: 400 clamp(2.5rem, 1.9rem + 1.8vw, 3.4rem)/1 var(--serif); letter-spacing: -.02em; }
.stats span { display: block; margin-top: 10px; font-size: 14.5px; color: rgba(248, 246, 241, .78); max-width: 16em; }

/* Services tabs */
.svcs { background: linear-gradient(180deg, var(--paper) 0%, var(--sand) 100%); }
.center-head { text-align: center; }
.center-head .eyebrow { margin-bottom: 14px; }
.svc__tabs {
  display: flex; gap: 4px;
  margin: 48px auto 0;
  padding: 5px;
  border-radius: var(--r-md);
  background: var(--paper-2);
  border: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.svc__tabs::-webkit-scrollbar { display: none; }
.svc__tabs button {
  flex: 1 0 auto;
  padding: 11px 18px;
  border-radius: var(--r-sm);
  font-size: 14.5px; color: var(--ink-2);
  transition: background-color .2s, color .2s;
}
.svc__tabs button:hover { background: var(--sand); }
.svc__tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }

.svc__panels { margin-top: 32px; }
.svc-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.js .svc-panel[hidden] { display: none; }
.js .svc-panel:not([hidden]) { animation: rise .45s var(--ease); }
.svc-panel__copy { display: flex; flex-direction: column; padding-top: 20px; }
.svc-panel__copy h3 { font: 400 clamp(1.5rem, 1.2rem + .9vw, 2rem)/1.2 var(--serif); letter-spacing: -.01em; max-width: 18em; }
.svc-panel__copy > p { margin-top: 14px; color: var(--ink-2); max-width: 30em; }
.mini { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0; }
.mini li { padding: 18px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: rgba(251, 250, 247, .5); }
.mini h4 { margin-top: 16px; font: 500 15.5px/1.3 var(--sans); }
.mini p { margin-top: 6px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.svc-panel__copy .link-dot { margin-top: auto; }
.svc-panel__img { position: relative; margin: 0; min-height: 420px; border-radius: var(--r-md); overflow: hidden; }
.svc-panel__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-panel__img .glass { position: absolute; left: 16%; right: 16%; bottom: 7%; }
.svc-panel__img .glass > svg { width: 40px; height: 40px; padding: 8px; border-radius: 50%; border: 2px solid #fff; }
.svc-panel__img .glass b { font-size: clamp(1.4rem, 1.1rem + .9vw, 1.9rem); color: #fff; }
.center-cta { display: flex; justify-content: center; margin-top: 48px; }

/* FAQ */
.faq__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px clamp(40px, 8vw, 120px); align-items: start; }
.faq__grid .btn { margin-top: 32px; }
.faq__list details { border-bottom: 1px solid var(--line-strong); }
.faq__list summary {
  display: flex; align-items: baseline; gap: 18px;
  padding: 18px 0;
  list-style: none; cursor: pointer;
  font-size: 16px;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__n { font: 400 12px/1 var(--mono); color: var(--muted); }
.faq__list summary i { position: relative; margin-left: auto; width: 12px; height: 12px; flex: none; align-self: center; }
.faq__list summary i::before, .faq__list summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: var(--ink-2); transition: transform .25s var(--ease); }
.faq__list summary i::after { transform: rotate(90deg); }
.faq__list details[open] summary i::after { transform: rotate(0); }
.faq__list details p { padding: 0 32px 22px 34px; color: var(--ink-2); font-size: 15px; max-width: 36em; }
.faq__list details[open] p { animation: rise .3s var(--ease); }

/* 05. Closing CTA, sculpted layers ======================================== */

/* Sculpted stacked layers (the Travia mark, rendered as foam) */
.sculpt { position: relative; }
.sculpt i {
  position: absolute; height: 35%;
  border-radius: 22px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .17 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #f1e6d3 0%, #e0cdae 40%, #c9ad85 78%, #a98a62 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .7),
    inset 0 -8px 14px rgba(110, 80, 40, .35),
    inset 10px 0 16px -10px rgba(255, 255, 255, .55),
    0 22px 30px -14px rgba(70, 50, 25, .5);
}
.sculpt i:nth-child(1) { top: 0; left: 34%; width: 66%; }
.sculpt i:nth-child(2) { top: 32.5%; left: 0; width: 74%; z-index: 1; }
.sculpt i:nth-child(3) { top: 65%; left: 18%; width: 82%; }

.sculpt--side { width: 300px; height: 170px; margin: 56px 0 0 calc(-1 * var(--gutter) - 60px); }

.cta-band { background: var(--ink); padding-top: clamp(48px, 6vw, 80px); }
.cta-card {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  min-height: 300px;
  border-radius: var(--r-lg);
  background: var(--sand);
  overflow: hidden;
}
.cta-card__copy { position: relative; z-index: 1; padding: clamp(28px, 4vw, 52px); }
.cta-card h2 { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); }
.cta-card p { margin: 16px 0 28px; color: var(--ink-2); max-width: 28em; }
.cta-card .btn-row { margin-top: 0; }
.sculpt--cta { align-self: stretch; margin: 26px -40px -30px 0; max-width: 520px; justify-self: end; width: 100%; }

/* 06. Interior pages ====================================================== */

/* Spacing between flowing elements. :where() keeps it at zero specificity so any component rule wins. */
:where(h1, h2) + :where(p, .lede) { margin-top: 20px; }
:where(h3) + :where(p, ul) { margin-top: 10px; }
:where(p) + :where(p) { margin-top: 1em; }
:where(.prose) > :where(* + *) { margin-top: 1em; }

.lede { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 34em; }
.on-navy { color: var(--on-ink); }
.on-navy h1, .on-navy h2, .on-navy h3, .on-navy h4 { color: var(--paper); }
.on-navy .lede, .on-navy p,
.on-navy :is(.svc, .sol, .rail, .steps, .defs, .path, .acc__panel, .prose) p,
.on-navy .prose ul, .on-navy .statement__by { color: var(--on-ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.on-navy .btn { background: var(--sun); color: var(--ink); }
.on-navy .btn:hover { background: #ffcd59; }
.on-navy .btn .btn__plus { color: var(--ink); }
.on-navy .btn--ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1px rgba(248, 246, 241, .35); }
.on-navy .btn--ghost:hover { background: rgba(248, 246, 241, .08); box-shadow: inset 0 0 0 1px var(--paper); }
.on-navy .btn--ghost .btn__plus { color: var(--sun); }
.on-navy .link-dot { color: var(--paper); }

/* Page hero: the homepage hero's centred opening, without the video */
.phero { padding-block: clamp(36px, 5vw, 64px) clamp(64px, 8vw, 112px); text-align: center; }
.phero .wrap > div { display: flex; flex-direction: column; align-items: center; }
.phero .eyebrow {
  display: inline-block;
  margin: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--sky);
  border: 1px solid #b3d2ee;
  font: 500 12px/1 var(--sans);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #1f3e5c;
}
.phero h1 {
  margin-top: 26px;
  max-width: 15em;
  font: 400 clamp(2.5rem, 1.5rem + 3.6vw, 4.5rem)/1.04 var(--serif);
  letter-spacing: -0.025em;
}
.phero .lede { max-width: 36em; margin-inline: auto; }
.phero .btn-row { justify-content: center; margin-top: 30px; }
/* A light section straight after the page hero shares its ground, so it does not need the full top padding. */
.phero + .section:not(.section--mist, .section--navy, .section--ink) { padding-top: clamp(16px, 2vw, 32px); }

.crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: clamp(28px, 4vw, 44px); font-size: 13.5px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--ink); }

/* Section heads */
.sec-head { display: grid; gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 4vw, 56px); }
.sec-head--split { grid-template-columns: 1.2fr 1fr; }
.sec-head h2 { max-width: 14em; }
.sec-head__aside { justify-self: end; max-width: 30em; }
.sec-head__aside .lede { font-size: 16px; }
.sec-head__aside .btn { margin-top: 22px; }

/* Split layouts */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
.split__sticky { position: sticky; top: calc(var(--header-h) + 32px); }
.split__sticky h2 { font-size: clamp(2rem, 1.3rem + 2vw, 3rem); }
.prose h2 { font-size: clamp(2rem, 1.3rem + 2vw, 3rem); }
.prose h3 { font: 500 17px/1.35 var(--sans); margin-top: 32px; }
.prose p { color: var(--ink-2); max-width: 34em; }
.prose ul { list-style: disc; padding-left: 1.25em; color: var(--ink-2); }
.prose a:not(.btn):not(.link-dot) { text-decoration: underline; text-decoration-color: var(--sun-deep); text-underline-offset: 3px; }

.media-img { width: 100%; border-radius: var(--r-md); object-fit: cover; background: var(--sand-deep); }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--3x2 { aspect-ratio: 3 / 2; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }

/* Grids */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--7 { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
/* Seven cards as 4 + 3, second row centred */
.grid--4-3 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.grid--4-3 > * { grid-column: span 2; }
.grid--4-3 > :nth-child(5) { grid-column: 2 / span 2; }
/* Subgrid lines up image, title, summary and list across each row of cards */
.grid--4-3 > .svc { grid-row: span 4; display: grid; grid-template-rows: subgrid; row-gap: 0; }
.grid--4-3 > .svc .caps { align-content: start; }
.grid > div > h3 { font: 400 1.5rem/1.2 var(--serif); letter-spacing: -.01em; }

/* Service card */
.svc {
  display: flex; flex-direction: column;
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.section--mist .svc { border-color: var(--line-strong); }
.svc .media-img { aspect-ratio: 3 / 2; margin: -10px -10px 22px; width: calc(100% + 20px); max-width: none; }
.svc > svg { box-sizing: content-box; width: 18px; height: 18px; padding: 6px; margin-bottom: 18px; border-radius: 6px; background: var(--taupe); color: #fff; }
.svc h3 { font: 400 1.5rem/1.2 var(--serif); letter-spacing: -.01em; }
.svc p { margin: 10px 0 24px; font-size: 15px; color: var(--ink-2); }
.svc .link-dot { margin-top: auto; }
.on-navy .svc { background: rgba(248, 246, 241, .04); border-color: var(--ink-line); }
.on-navy .svc > svg { background: var(--sun); color: var(--ink); }

/* Solution tile: the homepage function tiles, linked */
.sol {
  display: flex; flex-direction: column;
  padding: 18px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.sol:hover { border-color: var(--sun-deep); }
.sol svg { box-sizing: content-box; width: 18px; height: 18px; padding: 6px; border-radius: 6px; background: var(--taupe); color: #fff; transition: background-color .2s var(--ease); }
.sol:hover svg { background: var(--ink); }
.sol h3 { margin-top: 18px; font: 500 17px/1.35 var(--sans); }
.sol svg + h3 { margin-top: 18px; }
.sol > h3:first-child { margin-top: 0; }
.sol p { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); }
.section--mist .sol { background: var(--paper-2); }
.on-navy .sol { background: rgba(248, 246, 241, .04); border-color: var(--ink-line); }
.on-navy .sol:hover { border-color: var(--sun); }

/* Industry tile: tall photo with a glass caption */
.tile { position: relative; display: block; border-radius: var(--r-md); overflow: hidden; background: var(--sand-deep); }
.tile .media-img { aspect-ratio: 3 / 5; height: 100%; border-radius: 0; transition: transform .5s var(--ease); }
.tile:hover .media-img { transform: scale(1.03); }
.tile__cap {
  position: absolute; left: 8px; right: 8px; bottom: 8px;
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px;
  border-radius: var(--r-sm);
  background: rgba(44, 42, 39, .62);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.tile__cap svg { width: 20px; height: 20px; color: var(--sun); }
.tile__cap h3 { font: 500 14px/1.3 var(--sans); color: #fff; -webkit-hyphens: manual; hyphens: manual; overflow-wrap: break-word; }

/* Checked capability list */
.caps { display: grid; }
.caps--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.caps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; }
.caps li { display: flex; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink); }
.caps li::before { content: ""; width: 10px; height: 2px; background: var(--sun-deep); flex: none; transform: translateY(-4px); }
.section--mist .caps li { border-bottom-color: var(--line-strong); }
.on-navy .caps li { border-bottom-color: var(--ink-line); color: rgba(248, 246, 241, .9); }
.on-navy .caps li::before { background: var(--sun); }

/* Rail: the homepage "why" list, open */
.rail li { padding: 20px 0; border-bottom: 1px solid var(--line-strong); }
.rail li:first-child { padding-top: 0; }
.rail h3 { font: 500 17px/1.35 var(--sans); }
.rail p { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.on-navy .rail li { border-bottom-color: var(--ink-line); }

/* Accordion */
.acc { border-top: 1px solid var(--line-strong); }
.acc__item { border-bottom: 1px solid var(--line-strong); }
.acc__item > h3 { font: inherit; }
.acc__btn { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; padding: 18px 0; text-align: left; font-size: 16.5px; line-height: 1.4; color: var(--ink); }
.acc__sign { position: relative; width: 12px; height: 12px; flex: none; }
.acc__sign::before, .acc__sign::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: var(--ink-2); transition: transform .25s var(--ease); }
.acc__sign::after { transform: rotate(90deg); }
.acc__item.is-open .acc__sign::after { transform: rotate(0); }
.acc__panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .35s var(--ease), visibility 0s .35s; }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.acc__panel > div { overflow: hidden; min-height: 0; }
.acc__panel > div > :last-child { margin-bottom: 22px; }
.acc__panel p { padding-right: 32px; color: var(--ink-2); font-size: 15px; max-width: 36em; }
.on-navy .acc, .on-navy .acc__item { border-color: var(--ink-line); }
.on-navy .acc__btn { color: var(--paper); }
.on-navy .acc__sign::before, .on-navy .acc__sign::after { background: var(--paper); }

/* Engagement sequence: numbered because it is one */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps li { padding: 22px; border-radius: var(--r-md); background: var(--paper-2); border: 1px solid var(--line); }
.steps b { display: inline-block; padding-bottom: 8px; margin-bottom: 32px; border-bottom: 2px solid var(--sun); font: 500 12px/1 var(--mono); color: var(--ink-2); }
.steps h3 { font: 400 1.5rem/1.2 var(--serif); letter-spacing: -.01em; }
.steps p { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }
.on-navy .steps li { background: rgba(248, 246, 241, .04); border-color: var(--ink-line); }
.on-navy .steps b { color: rgba(248, 246, 241, .8); }

/* Two-audience split */
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.path { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); background: var(--paper-2); border: 1px solid var(--line); }
.path:nth-child(2) { background: var(--sand-deep); border-color: var(--line-strong); }
.path h3 { font: 400 clamp(1.5rem, 1.2rem + .9vw, 2rem)/1.2 var(--serif); letter-spacing: -.01em; }
.path p { color: var(--ink-2); }
.path .btn-row { margin-top: auto; padding-top: 24px; }

/* Callout */
.note { padding: 16px 20px; border-radius: var(--r-md); background: var(--sky); border: 1px solid #b3d2ee; color: #1f3e5c; font-size: 15px; }
.on-navy .note { background: rgba(214, 232, 247, .08); border-color: rgba(214, 232, 247, .25); color: var(--sky); }

/* Pull statement */
.statement { font: 400 clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem)/1.18 var(--serif); letter-spacing: -.015em; color: var(--ink); max-width: 22em; }
.on-navy .statement { color: var(--paper); }
.statement + .statement__by { margin-top: 18px; font-size: 15px; color: var(--muted); }

/* Advisor profile: portrait, bio, numbers and track record */
.advisor__fig { position: relative; margin: 0; }
.advisor__fig .media-img { object-position: 50% 20%; }
.advisor__fig .glass { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 12px 16px; }
.advisor__fig .glass svg { width: 24px; height: 24px; color: var(--sun); }
.advisor__fig .glass b { font: 500 14.5px/1.3 var(--sans); color: #fff; }
.advisor__name { font: 400 clamp(2rem, 1.4rem + 1.8vw, 2.75rem)/1.1 var(--serif); letter-spacing: -.015em; }
.on-navy .advisor__role { margin-top: 12px; font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--sun); }
.advisor__bio { margin-top: 28px; }
.advisor__bio p { max-width: 38em; }
.advisor .stats { margin-top: 48px; }
.on-navy .advisor__sub { margin: 64px 0 22px; font: 500 12px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: rgba(248, 246, 241, .8); }
.advisor .rail h4 { font: 500 17px/1.35 var(--sans); }
.advisor .rail h4 small { display: block; margin-top: 4px; font: 400 13px/1.4 var(--sans); color: rgba(248, 246, 241, .6); }
.advisor .btn-row { margin-top: 36px; }
.advisor__connect { margin-top: clamp(56px, 7vw, 96px); padding-top: 32px; border-top: 1px solid var(--ink-line); }
.advisor__connect h3 { margin-bottom: 8px; font: 400 1.5rem/1.2 var(--serif); letter-spacing: -.01em; }

/* Career tracks */
.tracks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.track { padding: 18px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: rgba(251, 250, 247, .5); }
.track svg { box-sizing: content-box; width: 18px; height: 18px; padding: 6px; border-radius: 6px; background: var(--taupe); color: #fff; }
.track h3 { margin-top: 16px; font: 500 15.5px/1.3 var(--sans); }
.track p { margin-top: 6px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }

/* Definition rows: the industry tab rule, reused */
.defs { display: grid; gap: 32px; }
.defs > div { position: relative; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.defs > div::before { content: ""; position: absolute; left: 0; top: -2px; width: 96px; height: 3px; background: linear-gradient(90deg, var(--sun) 0 64%, var(--ink) 64%); }
.defs :is(h2, h3) { font: 400 1.5rem/1.2 var(--serif); letter-spacing: -.01em; margin-bottom: 12px; }
.defs p { color: var(--ink-2); }
/* Longer entries (legal pages) stack several paragraphs and lists. */
.defs > div > :is(h2, h3) + * { margin-top: 0; }
.defs > div > :is(p, ul) + :is(p, ul) { margin-top: 1em; }
.defs ul { list-style: disc; padding-left: 1.25em; color: var(--ink-2); }
.defs li + li { margin-top: .4em; }
.defs strong { font-weight: 500; color: var(--ink); }
.defs a { text-decoration: underline; text-decoration-color: var(--sun-deep); text-underline-offset: 3px; }

/* In-page contents for long pages */
.toc { padding: 20px 24px; border-radius: var(--r-md); background: var(--paper-2); border: 1px solid var(--line); }
.toc h2 { font: 500 12px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin-top: 14px; padding-left: 1.4em; list-style: decimal; columns: 2 220px; column-gap: 32px; font-size: 15px; color: var(--muted); }
.toc li { break-inside: avoid; padding: 3px 0; }
.toc a { color: var(--ink-2); transition: color .2s; }
.toc a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--sun-deep); text-underline-offset: 3px; }
.on-navy .defs > div { border-top-color: var(--ink-line); }
.on-navy .defs > div::before { background: var(--sun); }

/* Equation band */
.equation-panel { padding: clamp(24px, 3vw, 40px); margin-bottom: 56px; border-radius: var(--r-lg); background: rgba(248, 246, 241, .04); border: 1px solid var(--ink-line); text-align: center; }
.equation { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font: 400 clamp(1.4rem, 1rem + 1.6vw, 2.25rem)/1.2 var(--serif); color: var(--paper); }
.equation i { font-style: normal; color: var(--sun); }
.equation em { font-style: normal; color: var(--sun); }

/* Forms */
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; align-content: start; gap: 7px; }
.field > label { font-size: 14px; font-weight: 500; color: var(--ink); }
.field .req { color: var(--sun-deep); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font: 400 15px/1.4 var(--sans);
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a4640' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(11, 92, 166, .18); }
.field .hint { font-size: 13px; font-weight: 400; color: var(--muted); }
.field .err { font-size: 13px; color: #a3261b; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #a3261b; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 12px; }
.field--check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); }
.field--check label { font-weight: 400; font-size: 14.5px; color: var(--ink-2); }
.field--check label a { text-decoration: underline; text-underline-offset: 3px; }
.field--check .err { grid-column: 1 / -1; }
.form__status { padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--paper-2); font-size: 15px; }
.form__status[hidden] { display: none; }
.form__status.is-ok { border-color: #3d7a4a; background: #eef6ef; color: #23502d; }
.form__status.is-err { border-color: #a3261b; background: #fbefec; color: #7d1d14; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form[hidden], .form-success[hidden] { display: none; }
.form-success { display: grid; gap: 16px; justify-items: start; padding: clamp(8px, 2vw, 24px) 0; }
.form-success__mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #eef6ef; color: #23502d; box-shadow: inset 0 0 0 1px #3d7a4a; }
.form-success__title { font: 400 clamp(1.6rem, 1.1rem + 1.6vw, 2.3rem)/1.12 var(--serif); color: var(--ink); outline: none; }
.form-success p { font-size: 16px; max-width: 46ch; }
.form-success strong { font-weight: 600; overflow-wrap: anywhere; }
.form-success__note { font-size: 14px !important; opacity: .8; }
.form-success__note a { text-decoration: underline; text-underline-offset: 2px; }
.form-success .btn { margin-top: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .form-success:not([hidden]) { animation: form-success-in .45s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes form-success-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
.form-panel { padding: clamp(22px, 3vw, 40px); border-radius: var(--r-lg); background: var(--paper-2); border: 1px solid var(--line-strong); }

.panel-navy { margin-top: 32px; padding: clamp(22px, 3vw, 36px); border-radius: var(--r-lg); background: var(--ink); }
.contact-detail { display: grid; gap: 22px; }
.contact-detail h3, .contact-detail dt { margin-bottom: 6px; font: 500 12px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--sun); }
.contact-detail p, .contact-detail a { font-size: 15px; color: rgba(248, 246, 241, .86); }
.contact-detail a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }

/* 07. Footer ============================================================== */

.footer { background: var(--ink); color: var(--paper); padding: clamp(64px, 8vw, 104px) 0 48px; }
.footer__top { display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: 40px 28px; }
.footer__top .brand { align-self: start; }
.footer h3 { font: 500 16px/1.3 var(--sans); margin-bottom: 14px; }
.footer li + li { margin-top: 9px; }
.footer li a { font-size: 14px; color: #b7afa3; transition: color .2s; overflow-wrap: anywhere; }
.footer li a:hover { color: var(--paper); }
.footer__bottom { margin-top: 72px; padding-top: 28px; border-top: 1px solid rgba(248, 246, 241, .12); font-size: 13px; color: #b7afa3; }
.footer__bottom p:first-child { color: var(--paper); }
.footer__fine { margin-top: 8px; max-width: 70em; }


/* Motion support ========================================================== */

/* Lenis smooth scrolling */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Above-the-fold content waits for its entrance. A failsafe in <head> drops .anim after 3s. */
.anim .phero .wrap, .anim .hero .wrap { opacity: 0; }

/* Headings split into masked words; padding keeps descenders inside the mask.
   vertical-align: top, because a clipped inline-block takes its baseline from its bottom edge. */
.sw { display: inline-block; vertical-align: top; overflow: hidden; padding: .08em 0 .16em; margin: -.08em 0 -.16em; }
.sw__i { display: inline-block; }

.header { transition: box-shadow .3s var(--ease); }
.header.is-stuck { box-shadow: 0 14px 32px -26px rgba(60, 45, 25, .55); }

/* Images shimmer until they arrive, then develop into focus. */
.js img:not(.is-loaded) {
  background: linear-gradient(100deg, var(--sand-deep) 30%, #efe8dc 50%, var(--sand-deep) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.4s linear infinite;
}
img.is-fresh { animation: develop .9s var(--ease) both; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -150% 0; } }
@keyframes develop { from { filter: blur(14px) saturate(.4); } to { filter: blur(0) saturate(1); } }

/* 08. Responsive & motion ================================================= */

@media (max-width: 1180px) {
  .grid--7 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid--4, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tracks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .grid--4-3 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid--4-3 > :nth-child(5) { grid-column: span 2; }
  .grid--4-3 > :nth-child(7) { grid-column: 2 / span 2; }
  .why__grid { grid-template-columns: 1fr 1fr; }
  .why__copy { grid-column: 1 / -1; }
  .why__copy p { max-width: 40em; }
  .board { grid-template-columns: 1fr; }
  .board__src { display: flex; flex-wrap: wrap; gap: 8px; }
  .board__src li { flex: 1 1 auto; }
  .board__src button::after, .board__dst li::before { display: none; }
  .board__dst { display: flex; flex-wrap: wrap; gap: 8px; }
  .board__dst li { flex: 1 1 auto; }
  .board__core { order: -1; }
  .board > .board__col:first-child { order: -2; }
  .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__top .brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .head-split, .ind__grid, .nums__grid, .svc-panel, .faq__grid { grid-template-columns: 1fr; }
  .head-split__lede { justify-self: start; }
  .sculpt--side { display: none; }
  .features { grid-template-columns: 1fr; gap: 24px; }
  .svc-panel__img { min-height: 320px; order: -1; }
  .cta-card { grid-template-columns: 1fr; }
  .sculpt--cta { height: 180px; margin: 0 -30px -24px 20%; width: auto; }
  .split, .split--even, .sec-head--split, .paths { grid-template-columns: 1fr; }
  .split__sticky { position: static; }
  .sec-head__aside { justify-self: start; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--7 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .caps--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .advisor__fig { max-width: 420px; }
}

@media (max-width: 640px) {
  .why__grid { grid-template-columns: 1fr; }
  .diagram { max-width: 360px; }
  .fn { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .status__steps { display: none; }
  .ind-card { grid-template-columns: 1fr; }
  .ind-card img { aspect-ratio: 4 / 3; height: auto; max-height: 260px; object-position: 50% 30%; }
  .ind-card > div { padding: 4px 6px 10px; }
  .mini { grid-template-columns: 1fr; }
  .stats { gap: 28px 20px; }
  .compare .glass { top: auto; bottom: 6%; right: 6%; left: 6%; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .caprow__row { gap: 6px 28px; }
  .caprow__row a { font-size: 15.5px; }
  .stepedge { height: 56px; }
  .stepedge i:nth-child(2) { height: 40px; }
  .stepedge i:nth-child(4) { height: 56px; }
  .stepedge i:nth-child(5) { height: 22px; bottom: 16px; }
  .why { padding-bottom: calc(var(--section) + 40px); }
  .grid--2, .grid--3, .grid--4, .steps, .tracks, .form__row, .caps--2, .caps--3 { grid-template-columns: 1fr; }
  .grid--7 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4-3 { grid-template-columns: 1fr; }
  .grid--4-3 > :nth-child(n) { grid-column: 1; }
  .btn-row .btn { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .header, .cta-band, .burger, .hero__controls, .hero__cue { display: none !important; }
  body { background: #fff; }
  main *, .footer * { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
