/* PeakServes site styles. Monochrome, Inter + Playfair Display italic accents,
   large rounded cards with soft shadows. Shared by every page. */

:root {
  --bg: #ffffff;
  --ink: #000000;
  --ink-2: #4b5563;
  --ink-3: #6b7280;
  --ink-faint: #c4c4c4;
  --line: #e5e7eb;
  --card: #f2f2f2;
  --dark: #111111;
  --accent: #3f88a5; /* the logo's peak blue, used sparingly */
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-soft: 0 20px 40px -18px rgba(0, 0, 0, 0.22);
  --gutter: 32px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  --deva: "Tiro Devanagari Hindi", "Noto Serif Devanagari", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }
.muted { color: var(--ink-2); }
.wrap { width: 100%; max-width: 1152px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { width: 100%; max-width: 768px; margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 22px; width: auto; transition: transform .5s ease; }
.brand:hover img { transform: scale(1.04); }
.nav { display: flex; gap: 32px; align-items: center; }
.nav a { text-decoration: none; font-size: 15px; color: var(--ink-2); transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .pill { color: #fff; }
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; margin-right: -8px; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s, opacity .25s; }

/* ---------- Buttons ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff; text-decoration: none;
  border: 0; border-radius: 999px; padding: 14px 28px;
  font: 500 16px/1 var(--sans); cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}
.pill:hover { transform: translateY(-1px); opacity: .9; }
.pill.sm { padding: 10px 18px; font-size: 14px; }
.pill.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.arrow { width: 18px; height: 18px; flex: none; }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100svh - 72px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 64px var(--gutter);
}
.hero .eyebrow { font-size: 15px; color: var(--ink-3); margin: 0 0 24px; letter-spacing: .02em; }
.hero h1 {
  font-weight: 500; font-size: clamp(32px, 5.2vw, 64px); line-height: 1.12;
  letter-spacing: -0.02em; margin: 0 auto; max-width: 15ch;
}
.hero .lede { max-width: 560px; margin: 28px auto 40px; font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero.compact { min-height: auto; padding: 120px var(--gutter) 64px; }

/* ---------- Dark stage card (blurred light, stands in for the reference's video) ---------- */
.stage {
  position: relative; overflow: hidden;
  max-width: 1080px; margin: 0 auto;
  aspect-ratio: 16 / 9; border-radius: var(--radius-lg);
  background: var(--dark); box-shadow: var(--shadow); color: #9ca3af;
}
.stage .glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.stage .g1 { width: 46%; height: 70%; left: 8%; top: 12%; background: #3f88a5; animation: drift 14s ease-in-out infinite alternate; }
.stage .g2 { width: 36%; height: 56%; right: 10%; top: 26%; background: #f08a3c; animation: drift 18s ease-in-out infinite alternate-reverse; }
.stage .g3 { width: 30%; height: 44%; left: 40%; bottom: -8%; background: #6d5bd0; animation: drift 22s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(6%, -8%) scale(1.15); } }
.stage .rail {
  position: absolute; left: 6%; right: 6%; top: 50%;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 14px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
}
.stage .rail img { height: 26px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
@media (prefers-reduced-motion: reduce) { .stage .glow { animation: none; } }

/* ---------- Word + manifesto ---------- */
.word { padding: 160px var(--gutter) 40px; text-align: center; }
.word .big { font-family: var(--deva); font-size: clamp(88px, 16vw, 176px); line-height: 1.1; color: var(--ink-faint); margin: 0; }
.word .gloss { font-size: clamp(20px, 2.6vw, 30px); color: var(--ink-faint); margin: 24px 0 0; }
.manifesto { max-width: 760px; margin: 0 auto; padding: 48px var(--gutter) 160px; text-align: center; }
.manifesto p { font-size: clamp(20px, 2.4vw, 30px); line-height: 1.35; margin: 0 0 56px; }
.reveal { transition: color .9s ease; }
.js .reveal { color: var(--ink-faint); }
.js .reveal.seen { color: var(--ink); }
.js .word .reveal.seen { color: #a3a3a3; }

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section.tight { padding: 72px 0; }
.section-title { font-weight: 500; font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.02em; text-align: center; margin: 0 0 16px; }
.section-sub { text-align: center; color: var(--ink-2); font-size: 18px; margin: 0 auto 64px; max-width: 620px; }

/* ---------- Product tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.tile { text-decoration: none; color: inherit; display: block; }
.tile .art {
  position: relative; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); margin-bottom: 20px;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.tile:hover .art { transform: scale(1.03); }
.tile .art img { width: 100%; height: 100%; object-fit: cover; }
.tile .art.footprints { background: #0b94fc; }
/* the icon PNG has its own transparent rounded corners; scale past them */
.tile .art.footprints img { transform: scale(1.12); }
.tile .art.brightstage {
  background: radial-gradient(120% 90% at 50% -10%, #ffe9b8 0%, #f6b25a 18%, #b2477a 48%, #2a1a4a 78%, #120c22 100%);
  display: flex; align-items: center; justify-content: center;
}
.tile .art.brightstage span { font-family: var(--serif); font-style: italic; font-size: clamp(40px, 6vw, 64px); color: #fff; text-shadow: 0 6px 30px rgba(0, 0, 0, .35); }
.tile h3 { display: flex; justify-content: space-between; align-items: center; margin: 0 0 8px; font-size: 20px; font-weight: 600; transition: opacity .2s; }
.tile:hover h3 { opacity: .7; }
.tile p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.tile .tag { display: inline-block; margin-top: 12px; font-size: 12px; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Text cards (services, pillars) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--card); border-radius: var(--radius-lg); padding: 32px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.card .num { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--ink-3); margin-bottom: 20px; }
.card h3 { margin: 0 0 10px; font-size: 19px; font-weight: 600; line-height: 1.35; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- Chips (industries) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 860px; margin: 0 auto; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px; font-size: 15px; color: var(--ink-2); background: #fff; }

/* ---------- Split block (about / intro) ---------- */
.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.split h2 { font-weight: 500; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
.split p { margin: 0 0 20px; color: var(--ink-2); font-size: 18px; }
.split ul { margin: 0 0 20px; padding-left: 20px; color: var(--ink-2); font-size: 17px; }
.split li { margin: 6px 0; }

/* ---------- Entity card ---------- */
.entity { background: var(--card); border-radius: var(--radius-lg); padding: 48px; text-align: center; }
.entity h2 { font-weight: 600; font-size: clamp(20px, 2.4vw, 26px); letter-spacing: .02em; margin: 0 0 16px; }
.entity p { max-width: 720px; margin: 0 auto; color: var(--ink-2); font-size: 17px; }

/* ---------- Contact ---------- */
.touch {
  display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: center;
  background: var(--card); border-radius: var(--radius-lg); padding: 56px 64px;
  box-shadow: var(--shadow); max-width: 820px; margin: 0 auto;
}
.touch .mark { width: 150px; margin: 0 auto; }
.touch h2 { font-weight: 500; font-size: 30px; margin: 0 0 16px; }
.touch p { color: var(--ink-2); font-size: 18px; margin: 0 0 28px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; margin-top: 96px; }
.contact-grid h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin: 0 0 12px; }
.contact-grid .block { margin-bottom: 32px; }
.contact-grid .block p { margin: 0 0 6px; color: var(--ink-2); }
.contact-grid a { text-decoration: none; }
.contact-grid a:hover { text-decoration: underline; }
.socials { display: flex; gap: 16px; }
.socials a { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center; border: 1px solid var(--line); color: var(--ink-2); }
.socials a:hover { color: var(--ink); border-color: var(--ink); text-decoration: none; }
.socials svg { width: 18px; height: 18px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea {
  width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 12px;
  padding: 14px 16px; font: 400 16px/1.4 var(--sans); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0, 0, 0, .06); }

/* ---------- Footer ---------- */
.site-footer { padding: 96px 0 48px; text-align: center; }
.wordmark { font-size: clamp(40px, 7vw, 76px); line-height: 1; letter-spacing: .01em; margin: 0; }
.wordmark .serif { margin-right: .18em; }
.wordmark b { font-weight: 700; letter-spacing: .02em; }
.clock { color: var(--ink-3); font-size: 18px; margin: 24px 0 64px; font-variant-numeric: tabular-nums; }
.clock .dot { display: inline-block; margin: 0 14px; }
.legal { border-top: 1px solid var(--line); padding-top: 32px; color: var(--ink-3); font-size: 13px; line-height: 1.8; }
.legal strong { color: var(--ink); font-weight: 600; letter-spacing: .04em; }
.legal a { text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.legal .links { margin-top: 12px; }
.legal .links a { margin: 0 8px; }

/* ---------- Legal documents ---------- */
.doc { max-width: 820px; margin: 0 auto; padding: 64px var(--gutter) 40px; line-height: 1.75; }
.doc .subnav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 40px; font-size: 14px; }
.doc .subnav a { color: var(--ink-3); text-decoration: none; }
.doc .subnav a:hover { color: var(--ink); }
.doc h1 { font-weight: 500; font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 12px; }
.doc h2 { font-weight: 600; font-size: 21px; margin: 48px 0 12px; }
.doc h3 { font-weight: 600; font-size: 17px; margin: 28px 0 8px; }
.doc p, .doc li { color: #262626; font-size: 16px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc a { color: var(--ink); text-underline-offset: 3px; }
.doc .meta { color: var(--ink-3); font-size: 14px; margin-bottom: 40px; }
.doc .inshort { background: var(--card); border-radius: var(--radius-md); padding: 16px 20px; margin: 16px 0 20px; color: var(--ink-2); font-style: normal; }
.doc .ph { background: #fff3cd; color: #7a5b00; padding: 0 4px; border-radius: 4px; font-weight: 600; }
.doc .table-wrap { overflow-x: auto; margin: 16px 0 20px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { border-bottom: 1px solid var(--line); padding: 12px 12px 12px 0; vertical-align: top; text-align: left; }
.doc th { font-weight: 600; }

/* ---------- Thank-you ---------- */
.thanks { min-height: calc(100svh - 72px - 260px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 96px var(--gutter); }
.thanks h1 { font-weight: 500; font-size: clamp(36px, 5vw, 56px); margin: 0 0 16px; letter-spacing: -0.02em; }
.thanks p { color: var(--ink-2); font-size: 18px; margin: 0 0 36px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .tiles { gap: 40px 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards, .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 17px; width: 100%; }
  .nav .pill { width: auto; margin-top: 8px; padding: 12px 22px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .section { padding: 80px 0; }
  .stage { aspect-ratio: 4 / 5; border-radius: 20px; }
  .stage .rail { flex-direction: column; gap: 14px; top: 44%; }
  .word { padding-top: 112px; }
  .manifesto { padding-bottom: 96px; }
  .manifesto p { margin-bottom: 40px; }
  .tiles { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
  .cards, .cards.four { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .touch { grid-template-columns: 1fr; text-align: center; padding: 40px 24px; }
  .touch .mark { width: 96px; }
  .form { grid-template-columns: 1fr; }
  .entity { padding: 32px 20px; }
  .clock .dot { margin: 0 8px; }
}

/* ======================================================================
   Motion and mobile layer
   ====================================================================== */

/* Hero entrance (CSS only, so it runs even before site.js loads). */
.rise { animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* Scroll reveal: only hidden once site.js has armed the observer (.fx-ready). */
.fx-ready .fx { opacity: 0; transform: translateY(28px); }
.fx-ready .fx.in {
  opacity: 1; transform: none;
  transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--delay, 0ms);
}
.fx-ready .tile.fx.in .art { animation: pop .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--delay, 0ms); }
@keyframes pop { from { transform: scale(.92); } to { transform: none; } }

/* Stage card grows into place as it scrolls in (site.js sets --s). */
.stage { transform: scale(var(--s, 1)); transition: transform .1s linear; will-change: transform; }

/* Scroll hint under the hero. */
.scroll-hint { display: inline-flex; margin-top: 56px; width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 14px; justify-content: center; padding-top: 8px; }
.scroll-hint span { width: 4px; height: 8px; border-radius: 2px; background: var(--ink-3); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-2px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* Check-mark lists. */
.checks { list-style: none; padding-left: 0 !important; }
.checks li { position: relative; padding-left: 32px; margin: 12px 0; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.more { margin-top: 40px; }
.gap { height: 72px; }

/* Stats with count-up. */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stat { background: var(--card); border-radius: var(--radius-lg); padding: 32px 24px; text-align: center; }
.stat .n { font-size: clamp(40px, 5vw, 60px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .l { margin-top: 12px; color: var(--ink-2); font-size: 15px; }

/* Segmented tabs with a sliding ink. */
.tabs { position: relative; display: inline-flex; background: var(--card); border-radius: 999px; padding: 4px; margin: 0 auto 64px; left: 50%; transform: translateX(-50%); }
.fx-ready .tabs.fx { transform: translate(-50%, 28px); }
.fx-ready .tabs.fx.in { transform: translateX(-50%); }
.tabs button { position: relative; z-index: 1; border: 0; background: none; padding: 12px 24px; border-radius: 999px; font: 500 15px/1 var(--sans); color: var(--ink-2); cursor: pointer; transition: color .3s; min-height: 44px; }
.tabs button[aria-selected="true"] { color: #fff; }
.tabs-ink { position: absolute; top: 4px; bottom: 4px; left: 4px; width: 0; border-radius: 999px; background: var(--ink); transition: transform .45s cubic-bezier(.2, .8, .2, 1), width .45s cubic-bezier(.2, .8, .2, 1); }
.panel { animation: fadein .5s ease both; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Tool logos. */
.logos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.logo { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px; display: flex; align-items: center; justify-content: center; aspect-ratio: 2.4; transition: transform .3s, box-shadow .3s; }
.logo:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.logo img { max-height: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.logo:hover img { filter: none; opacity: 1; }

.form h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin: 0 0 4px; }
.follow a { margin-right: 16px; }

/* Floating contact button (phones). */
.float-cta {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60;
  display: none; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; text-decoration: none; border-radius: 999px;
  padding: 14px 20px; font: 500 15px/1 var(--sans); box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .45);
  transform: translateY(140%); transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.float-cta.show { transform: none; }

/* Header gets a hairline once the page scrolls. */
.site-header { transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 1px 0 var(--line); }

@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .site-header .bar { height: 64px; }
  .hero { min-height: calc(100svh - 64px); padding-top: 32px; padding-bottom: 32px; }
  .hero.compact { padding: 72px var(--gutter) 40px; }
  .hero .actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; margin: 0 auto; }
  .hero .actions .pill { justify-content: center; }
  .scroll-hint { margin-top: 40px; }

  /* Full-screen menu with staggered links. */
  .nav {
    position: fixed; inset: 64px 0 0 0; display: flex; flex-direction: column; align-items: stretch;
    padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom)); background: #fff; border: 0;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
  }
  .nav.open { display: flex; opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .3s ease; }
  .nav a { font-size: 28px; font-weight: 500; color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s; }
  .nav.open a { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 60ms + 80ms); }
  .nav .pill { border-bottom: 0; margin-top: 24px; font-size: 17px; justify-content: center; padding: 16px; }
  body.menu-open { overflow: hidden; }

  /* Swipeable rows instead of long stacks. */
  .scroller {
    display: flex !important; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--gutter)); padding: 8px var(--gutter) 28px; max-width: none !important;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .scroller::-webkit-scrollbar { display: none; }
  .scroller > * { flex: 0 0 82%; scroll-snap-align: center; }
  .tiles.scroller > * { flex-basis: 76%; }
  .cards.scroller .card { display: flex; flex-direction: column; }
  .swipe-hint { display: flex; justify-content: center; gap: 6px; margin-top: -8px; }
  .swipe-hint i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: width .3s, background .3s; }
  .swipe-hint i.on { width: 18px; background: var(--ink); }

  .section-sub { margin-bottom: 40px; font-size: 16px; }
  .split h2 { font-size: 28px; }
  .split p { font-size: 16px; }
  .stats { gap: 12px; }
  .stat { padding: 24px 12px; }
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .logo { padding: 10px; }
  .tabs { margin-bottom: 40px; }
  .tabs button { padding: 12px 18px; font-size: 14px; }
  .gap { height: 48px; }
  .float-cta { display: inline-flex; }
  .site-footer { padding-bottom: 96px; }
  .legal { text-align: left; }
  .legal .links a { margin: 0 12px 0 0; }
  .contact-grid { margin-top: 56px; }
  .touch h2 { font-size: 26px; }
  .doc { padding-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .rise, .panel, .fx-ready .tile.fx.in .art { animation: none; }
  .fx-ready .fx { opacity: 1; transform: none; }
  .fx-ready .tabs.fx { transform: translateX(-50%); }
  .stage { transform: none; }
  .scroll-hint span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ======================================================================
   Peak mark (the logo triangle) and its animations
   ====================================================================== */
.mark-svg { display: block; fill: var(--accent); }
.mark-svg use { stroke: currentColor; }

/* Header mark: draws its outline, then fills. */
.brand-mark { width: 34px; height: 29px; color: var(--accent); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); }
.draw {
  stroke-width: 3; stroke-dasharray: 1 1;
  animation: draw 1.4s cubic-bezier(.6, 0, .2, 1) .1s both, fillin .6s ease 1.1s both;
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fillin { from { fill-opacity: 0; } to { fill-opacity: 1; } }

/* Hero: a huge faint outline of the mark drawn behind the headline. */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-mark {
  position: absolute; z-index: -1; left: 50%; top: 50%; width: min(78vw, 760px); height: auto; aspect-ratio: 143 / 123;
  transform: translate(-50%, -54%); fill: none; color: #e9eef1; stroke-width: .5; stroke-dasharray: 1 1;
  animation: draw 3.2s cubic-bezier(.5, 0, .2, 1) .3s both, hover 12s ease-in-out 3.5s infinite;
}
@keyframes hover { 50% { transform: translate(-50%, -57%) rotate(-1.5deg); } }

/* Stage: the mark draws itself in white, fills, then floats with a breathing glow. */
.stage-mark {
  position: absolute; left: 50%; top: 44%; width: 26%; height: auto; aspect-ratio: 143 / 123;
  transform: translate(-50%, -50%); fill: #fff; color: #fff; stroke-width: 1;
  stroke-dasharray: 1 1; stroke-dashoffset: 1; fill-opacity: 0;
}
.stage.in .stage-mark {
  animation: draw 1.8s cubic-bezier(.6, 0, .2, 1) .2s both, fillin .8s ease 1.6s both,
             float 6s ease-in-out 2.4s infinite, glow 6s ease-in-out 2.4s infinite;
}
@keyframes float { 50% { transform: translate(-50%, -56%); } }
@keyframes glow { 0%, 100% { filter: drop-shadow(0 0 18px rgba(63, 136, 165, .55)); } 50% { filter: drop-shadow(0 0 42px rgba(240, 138, 60, .55)); } }
.stage .rail { top: auto; bottom: 9%; }

/* Contact card mark: gentle bob. */
.touch-mark { width: 150px; height: auto; aspect-ratio: 143 / 123; margin: 0 auto; color: var(--accent); }
.touch.in .touch-mark { animation: bob 4.5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-2deg); } }

/* Mobile menu: the header's backdrop blur would trap the fixed overlay, so drop it while open. */
body.menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }

@media (max-width: 720px) {
  .stage-mark { width: 44%; top: 42%; }
  .stage .rail { bottom: 7%; flex-direction: row; gap: 8px; font-size: 9px; }
  .touch-mark { width: 96px; }
  .hero-mark { width: 120vw; stroke-width: .7; }
}

@media (prefers-reduced-motion: reduce) {
  .draw, .hero-mark, .stage.in .stage-mark, .touch.in .touch-mark { animation: none; }
  .stage-mark { stroke-dashoffset: 0; fill-opacity: 1; }
}

/* Footer company details: a grid instead of a centred block. */
.legal { text-align: left; padding-top: 40px; }
.legal-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px 40px; }
.legal h4 { margin: 0 0 12px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.legal p { margin: 0 0 6px; color: var(--ink-2); font-size: 14px; line-height: 1.65; }
.legal-co p:last-child { max-width: 380px; }
.legal-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }
.legal-bottom .links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; }
.legal-bottom .links a { margin: 0; }
@media (max-width: 960px) { .legal-grid { grid-template-columns: 1fr 1fr; } .legal-co { grid-column: 1 / -1; } }
@media (max-width: 480px) { .legal-grid { grid-template-columns: 1fr; gap: 24px; } .legal-bottom { flex-direction: column; } }
.legal .nowrap { white-space: nowrap; }
.legal-grid { grid-template-columns: 1.5fr 1.2fr 1.2fr 1fr; }
@media (max-width: 960px) { .legal-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .legal-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .stage .rail { flex-direction: column; align-items: center; text-align: center; gap: 6px; font-size: 10px; }
}

/* Header wordmark next to the mark (same treatment as the footer wordmark). */
.brand { gap: 10px; }
.brand-word { font-size: 21px; line-height: 1; letter-spacing: .01em; color: var(--ink); white-space: nowrap; animation: rise .8s cubic-bezier(.2, .8, .2, 1) .5s both; }
.brand-word .serif { margin-right: .16em; }
.brand-word b { font-weight: 700; letter-spacing: .02em; }
@media (max-width: 720px) { .brand-word { font-size: 19px; } }
