/* Apex Consulting site styles. One file, no framework, no external fonts.
   Palette (only): Obsidian #0c1117, Forest Slate #142721, Warm Ivory #f6f4ef, Steel-Teal #6fb7c2, plus tints/shades of these. */

:root {
  --obsidian: #0c1117;
  --obsidian-2: #111820;
  --obsidian-3: #18212a;
  --forest: #142721;
  --forest-2: #1b3a31;
  --ivory: #f6f4ef;
  --ivory-2: #e9e6de;
  --teal: #6fb7c2;
  --teal-soft: #a9d6dc;
  --teal-deep: #2f6670;
  --ink: var(--ivory);
  --ink-dim: rgba(246, 244, 239, 0.74);
  --ink-faint: rgba(246, 244, 239, 0.5);
  --line: rgba(246, 244, 239, 0.12);
  --line-strong: rgba(246, 244, 239, 0.24);
  --teal-a10: rgba(111, 183, 194, 0.1);
  --teal-a20: rgba(111, 183, 194, 0.2);
  --teal-a40: rgba(111, 183, 194, 0.4);

  --font-display: "Century Gothic", "Futura", "Avenir Next", "Avenir", "Montserrat", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-display: clamp(2.55rem, 1.2rem + 6.2vw, 7.25rem);
  --fs-h1: clamp(2.35rem, 1.25rem + 4.8vw, 5.75rem);
  --fs-h2: clamp(1.95rem, 1.2rem + 3.1vw, 4rem);
  --fs-h3: clamp(1.3rem, 1.05rem + 1vw, 1.95rem);
  --fs-lead: clamp(1.08rem, 0.98rem + 0.5vw, 1.4rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;

  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1320px;
  --radius: 24px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); color-scheme: dark; overflow-x: clip; }
body {
  margin: 0;
  background: var(--obsidian);
  color: var(--ink);
  font: 400 var(--fs-body)/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  min-height: 100vh;
}
img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.02; letter-spacing: -0.035em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--teal); color: var(--obsidian); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.section--ivory :focus-visible { outline-color: var(--obsidian); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip {
  position: fixed; left: 16px; top: 12px; z-index: 200;
  background: var(--ivory); color: var(--obsidian);
  padding: 12px 18px; border-radius: 999px; font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform 0.3s var(--ease);
}
.skip:focus { transform: none; }

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

/* Film grain (static texture; animated jitter only when motion is allowed) */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* Scroll progress (CSS scroll-driven, progressive enhancement) */
.progress { display: none; }
@supports (animation-timeline: scroll()) {
  .progress {
    display: block; position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 120;
    background: linear-gradient(90deg, var(--teal-deep), var(--teal), var(--teal-soft));
    transform-origin: 0 50%; transform: scaleX(0);
    animation: progress-grow linear both; animation-timeline: scroll(root);
  }
  @keyframes progress-grow { to { transform: scaleX(1); } }
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75em;
  font: 600 0.78rem/1.2 var(--font-display); letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.section--ivory .eyebrow { color: var(--teal-deep); }
.display { font-size: var(--fs-display); letter-spacing: -0.045em; line-height: 0.98; }
.h1 { font-size: var(--fs-h1); letter-spacing: -0.042em; }
.h2 { font-size: var(--fs-h2); letter-spacing: -0.038em; }
.h3 { font-size: var(--fs-h3); letter-spacing: -0.025em; line-height: 1.12; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-dim); max-width: 40ch; }
.section--ivory .lead { color: rgba(12, 17, 23, 0.74); }
.muted { color: var(--ink-dim); }
.accent { color: var(--teal); }
.note { font-size: var(--fs-small); color: var(--ink-faint); }
.section--ivory .note { color: rgba(12, 17, 23, 0.62); }
.stack > * + * { margin-top: var(--stack, 1.25rem); }
.inline-link { color: var(--teal); text-decoration: underline; text-decoration-color: var(--teal-a40); transition: text-decoration-color 0.3s; }
.inline-link:hover { text-decoration-color: currentColor; }
.section--ivory .inline-link { color: var(--teal-deep); }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent; --fg: var(--ink);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.65em;
  min-height: 54px; padding: 0 1.6em; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg);
  font: 600 1rem/1 var(--font-display); letter-spacing: 0.005em; text-decoration: none; white-space: nowrap;
  transition: color 0.35s var(--ease), border-color 0.35s, box-shadow 0.5s var(--ease), translate 0.5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--ivory); transform: translateY(102%); transition: transform 0.55s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn .ic { width: 18px; height: 18px; flex: none; transition: transform 0.45s var(--ease); }
.btn:hover .ic-arrow { transform: translateX(4px); }
.btn-primary { --bg: var(--teal); --fg: var(--obsidian); box-shadow: 0 10px 40px -12px rgba(111, 183, 194, 0.55); }
.btn-primary:hover { box-shadow: 0 16px 50px -12px rgba(111, 183, 194, 0.7); }
.btn-ghost { border-color: var(--line-strong); }
.btn-ghost::before { background: rgba(246, 244, 239, 0.1); }
.btn-ghost:hover { border-color: rgba(246, 244, 239, 0.5); }
.section--ivory .btn-ghost { --fg: var(--obsidian); border-color: rgba(12, 17, 23, 0.25); }
.section--ivory .btn-ghost::before { background: rgba(12, 17, 23, 0.06); }
.section--ivory .btn-primary { --bg: var(--obsidian); --fg: var(--ivory); box-shadow: none; }
.section--ivory .btn-primary::before { background: var(--forest-2); }
.btn-sm { min-height: 44px; padding: 0 1.15em; font-size: 0.9rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  view-transition-name: site-header;
  transition: background-color 0.5s var(--ease), border-color 0.5s; /* colour only: the header and logo never move */
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(12, 17, 23, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(18px); backdrop-filter: saturate(140%) blur(18px);
  border-bottom-color: var(--line);
}
.hdr-inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; flex: none; margin-right: auto; position: relative; z-index: 2; }
.brand img { width: auto; height: 40px; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav-list a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font: 500 0.95rem/1 var(--font-display); letter-spacing: 0.005em; text-decoration: none; color: var(--ink-dim);
  transition: color 0.3s;
}
.nav-list a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 9px; height: 1px; background: var(--teal);
  transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease);
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--ink); }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-home { display: none; }
.nav-foot { display: none; }
.hdr-cta { position: relative; z-index: 2; }
.menu-link {
  display: none; position: relative; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(12, 17, 23, 0.4); text-decoration: none;
}
.menu-btn {
  display: none; position: relative; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(12, 17, 23, 0.4);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.menu-lines, .menu-lines::before, .menu-lines::after {
  position: absolute; left: 50%; width: 18px; height: 1.5px; margin-left: -9px; background: var(--ink); border-radius: 2px;
  transition: transform 0.45s var(--ease), opacity 0.3s;
}
.menu-lines { top: 50%; margin-top: -0.75px; }
.menu-lines::before, .menu-lines::after { content: ""; left: 0; margin-left: 0; }
.menu-lines::before { transform: translateY(-6px); }
.menu-lines::after { transform: translateY(6px); }
.menu-open .menu-lines { background: transparent; }
.menu-open .menu-lines::before { transform: rotate(45deg); background: var(--ink); }
.menu-open .menu-lines::after { transform: rotate(-45deg); background: var(--ink); }

@media (max-width: 1079px) {
  .menu-btn { display: inline-block; }
  .nav {
    position: fixed; inset: 0; z-index: 1; height: 100vh; height: 100dvh;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: calc(var(--header-h) + 28px) var(--gutter) 32px;
    background: radial-gradient(120% 70% at 85% 0%, rgba(111, 183, 194, 0.16), transparent 60%), var(--obsidian);
    overflow-y: auto; overscroll-behavior: contain;
    visibility: hidden; opacity: 0; clip-path: circle(0% at calc(100% - 44px) 36px);
    transition: clip-path 0.8s var(--ease-io), opacity 0.4s, visibility 0s linear 0.8s;
  }
  .menu-open .nav { visibility: visible; opacity: 1; clip-path: circle(150% at calc(100% - 44px) 36px); transition: clip-path 0.8s var(--ease-io), opacity 0.2s, visibility 0s; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-home { display: block; }
  .nav-list li { border-bottom: 1px solid var(--line); overflow: hidden; }
  .nav-list a {
    width: 100%; min-height: 64px; padding: 0; font-size: clamp(1.6rem, 7vw, 2.4rem); letter-spacing: -0.03em; color: var(--ink);
    transform: translateY(100%); transition: transform 0.7s var(--ease), color 0.3s;
  }
  .nav-list a::after { left: 0; right: auto; width: 40px; bottom: 14px; }
  .menu-open .nav-list a { transform: none; }
  .menu-open .nav-list li:nth-child(1) a { transition-delay: 0.12s; }
  .menu-open .nav-list li:nth-child(2) a { transition-delay: 0.17s; }
  .menu-open .nav-list li:nth-child(3) a { transition-delay: 0.22s; }
  .menu-open .nav-list li:nth-child(4) a { transition-delay: 0.27s; }
  .menu-open .nav-list li:nth-child(5) a { transition-delay: 0.32s; }
  .menu-open .nav-list li:nth-child(6) a { transition-delay: 0.37s; }
  .menu-open .nav-list li:nth-child(7) a { transition-delay: 0.42s; }
  .nav-foot { display: grid; gap: 6px; margin-top: 32px; color: var(--ink-dim); font-size: var(--fs-small); }
  .nav-foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font: 600 1.15rem/1 var(--font-display); text-decoration: none; }
  .menu-open body { overflow: hidden; }
  .menu-open .site-header { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  /* Without JavaScript the menu button cannot open the overlay, so a plain link to the footer nav replaces it. */
  .no-js .menu-btn { display: none; }
  .no-js .menu-link { display: inline-flex; }
}
@media (max-width: 479px) {
  .brand img { height: 32px; }
  .hdr-cta { padding: 0 0.95em; }
  .hdr-cta .hdr-cta-long { display: none; }
}
@media (min-width: 480px) { .hdr-cta .hdr-cta-short { display: none; } }

/* ---------- Video / media blocks ---------- */
.vid { position: absolute; inset: 0; overflow: hidden; background: var(--obsidian-2); }
.vid img, .vid video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid video { opacity: 0; transition: opacity 1.4s var(--ease); }
.vid.is-playing video { opacity: 1; }
.vid--graded img, .vid--graded video { filter: saturate(0.72) contrast(1.06) brightness(0.9); }
.vid--graded::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(160deg, rgba(20, 39, 33, 0.55), rgba(12, 17, 23, 0.1) 45%, rgba(111, 183, 194, 0.16));
  mix-blend-mode: multiply;
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 48px) 0 clamp(56px, 9vh, 110px);
}
.hero-media { position: absolute; inset: -6% 0 -6% 0; z-index: -3; will-change: transform; }
.field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-shade {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(90% 60% at 18% 100%, rgba(12, 17, 23, 0.94), transparent 70%),
    linear-gradient(180deg, rgba(12, 17, 23, 0.55) 0%, rgba(12, 17, 23, 0.18) 34%, rgba(12, 17, 23, 0.72) 74%, var(--obsidian) 100%);
}
.hero-content { position: relative; will-change: transform, opacity; }
.hero-content .eyebrow { margin-bottom: clamp(18px, 2.5vw, 28px); }
.hero-content .display { max-width: 13ch; }
.hero-content .lead { margin-top: clamp(20px, 2.4vw, 30px); }
.hero-content .cta-row { margin-top: clamp(28px, 3.4vw, 40px); }
.hero-content .hero-note { margin-top: 18px; font-size: var(--fs-small); color: var(--ink-faint); }
.scroll-cue {
  position: absolute; right: var(--gutter); bottom: clamp(56px, 9vh, 110px); z-index: 2;
  display: none; align-items: center; justify-content: center; width: 56px; height: 88px;
  border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none;
}
.scroll-cue span { width: 2px; height: 18px; border-radius: 2px; background: var(--teal); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-14px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }
@media (min-width: 900px) { .scroll-cue { display: inline-flex; } }

/* Glass shards: echo the angled glass band of the mark. They drift; they never spin. */
.shard {
  position: absolute; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, rgba(169, 214, 220, 0.12), rgba(111, 183, 194, 0.02) 55%, rgba(169, 214, 220, 0.08));
  border: 0; opacity: 0.35;
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent); mask-image: radial-gradient(closest-side, #000 20%, transparent);
  animation: drift 14s var(--ease-io) infinite alternate;
}
.shard-1 { width: clamp(140px, 22vw, 360px); aspect-ratio: 3.4; right: 6%; top: 22%; }
.shard-2 { width: clamp(90px, 13vw, 210px); aspect-ratio: 3; right: 22%; top: 46%; animation-duration: 18s; animation-delay: -6s; opacity: 0.4; }
@keyframes drift { from { transform: translate3d(0, -12px, 0); } to { transform: translate3d(-18px, 16px, 0); } }
@media (max-width: 767px) { .shard { display: none; } }

/* Scroll-driven hero parallax (JS fallback when unsupported) */
@supports (animation-timeline: scroll()) {
  .hero-media, .page-hero .hero-media { animation: px-media linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  .hero-content { animation: px-content linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
  @keyframes px-media { to { transform: translate3d(0, 18%, 0) scale(1.06); } }
  @keyframes px-content { to { transform: translate3d(0, -14%, 0); opacity: 0.15; } }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 78vh; min-height: 78svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 64px) 0 clamp(48px, 7vw, 96px);
}
.page-hero .hero-media { position: absolute; inset: -6% 0; z-index: -3; }
.page-hero .hero-shade {
  background:
    radial-gradient(80% 70% at 10% 100%, rgba(12, 17, 23, 0.95), transparent 72%),
    linear-gradient(180deg, rgba(12, 17, 23, 0.7) 0%, rgba(12, 17, 23, 0.38) 40%, var(--obsidian) 100%);
}
.page-hero .h1 { max-width: 15ch; margin-top: 20px; }
.page-hero .lead { margin-top: 24px; max-width: 46ch; }
.page-hero .cta-row { margin-top: 32px; }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(80px, 11vw, 168px); isolation: isolate; }
.section--tight { padding-block: clamp(56px, 7vw, 104px); }
.section--ivory { background: var(--ivory); color: var(--obsidian); color-scheme: light; }
.section--forest { background: var(--forest); }
.section--deep { background: var(--obsidian-2); }
.section-head { display: grid; gap: 22px; max-width: 900px; }
.section-head .lead { max-width: 52ch; }
.section-head + * { margin-top: clamp(40px, 6vw, 80px); }
.split { display: grid; gap: clamp(36px, 6vw, 96px); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-left { grid-template-columns: 1.15fr 0.85fr; } }

/* Aurora: two soft drifting gradient fields */
.aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%); mask-image: linear-gradient(180deg, transparent, #000 30%); }
.aurora::before, .aurora::after {
  content: ""; position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(111, 183, 194, 0.16), transparent);
  top: -30vmax; left: -20vmax; animation: aurora 22s var(--ease-io) infinite alternate;
}
.aurora::after { background: radial-gradient(closest-side, rgba(27, 58, 49, 0.9), transparent); top: auto; bottom: -38vmax; left: auto; right: -24vmax; animation-duration: 28s; animation-delay: -9s; }
@keyframes aurora { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(14vmax, 8vmax, 0) scale(1.15); } }

/* Animated hairline field (SVG) */
.lines { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; opacity: 0.5; }
.lines path { fill: none; stroke: var(--teal); stroke-width: 1; stroke-dasharray: 6 14; vector-effect: non-scaling-stroke; animation: dash 18s linear infinite; }
.lines path:nth-child(2n) { stroke: var(--ivory); opacity: 0.35; animation-duration: 26s; animation-direction: reverse; }
@keyframes dash { to { stroke-dashoffset: -400; } }

/* ---------- Reveal system (only when JS is running) ---------- */
.js [data-reveal] {
  transform: translateY(6px);
  transition: transform 180ms var(--ease), clip-path 280ms var(--ease-io);
}
.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); }
.js [data-reveal="frame"] { opacity: 1; transform: none; clip-path: polygon(0 50%, 100% 50%, 100% 50%, 0 50%); }
.js [data-reveal].is-in { transform: none; }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal="frame"].is-in { clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%); }

/* Word-split headline reveal */
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.js [data-split] .w > span { display: inline-block; transform: translateY(0.06em); transition: transform 180ms var(--ease) calc(min(var(--i, 0), 3) * 15ms); }
.js [data-split].is-in .w > span { transform: none; }

/* Scroll-scrubbed statement (words light up as you read) */
.statement { font: 600 clamp(1.7rem, 1rem + 3.2vw, 3.7rem)/1.14 var(--font-display); letter-spacing: -0.035em; max-width: 24ch; text-wrap: balance; }
.js [data-scrub] .sw { opacity: 0.16; transition: opacity 0.4s linear, color 0.4s; }
.js [data-scrub] .sw.lit { opacity: 1; }
.js [data-scrub] .sw.hl.lit { color: var(--teal); }

/* ---------- Cards ---------- */
.card {
  --mx: 50%; --my: 0%;
  position: relative; isolation: isolate; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(246, 244, 239, 0.045), rgba(246, 244, 239, 0.012));
  padding: clamp(24px, 3vw, 40px);
  transition: border-color 0.5s var(--ease), translate 0.6s var(--ease), background-color 0.5s;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(460px circle at var(--mx) var(--my), rgba(111, 183, 194, 0.17), transparent 62%);
  transition: opacity 0.5s;
}
.card:hover { border-color: var(--teal-a40); translate: 0 -4px; }
.card:hover::before { opacity: 1; }
.section--ivory .card { background: rgba(251, 250, 247, 0.75); border-color: rgba(12, 17, 23, 0.1); }
.section--ivory .card::before { background: radial-gradient(460px circle at var(--mx) var(--my), rgba(111, 183, 194, 0.28), transparent 62%); }
.section--ivory .card:hover { border-color: rgba(47, 102, 112, 0.45); }
.card-num { font: 600 0.8rem/1 var(--font-display); letter-spacing: 0.2em; color: var(--teal); }
.section--ivory .card-num { color: var(--teal-deep); }
.card h3 { margin-top: 18px; }
.card p { margin-top: 14px; color: var(--ink-dim); }
.section--ivory .card p { color: rgba(12, 17, 23, 0.72); }
.grid-3 { display: grid; gap: 16px; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.grid-2 { display: grid; gap: 16px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 20px; } }

/* Card glyph: an angled hairline mark that draws in */
.glyph { width: 46px; height: 46px; }
.glyph path { fill: none; stroke: var(--teal); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 120; stroke-dashoffset: 120; transition: stroke-dashoffset 1.6s var(--ease) 0.3s; }
.section--ivory .glyph path { stroke: var(--teal-deep); }
.no-js .glyph path, .is-in .glyph path, .glyph.is-in path { stroke-dashoffset: 0; }

/* ---------- Counters ---------- */
.facts { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.fact { background: var(--obsidian); padding: clamp(28px, 4vw, 52px) var(--gutter); display: grid; gap: 10px; align-content: start; }
.fact-num { font: 600 clamp(3.4rem, 2rem + 6vw, 7rem)/0.9 var(--font-display); letter-spacing: -0.05em; color: var(--ivory); font-variant-numeric: tabular-nums; }
.fact-num .accent { color: var(--teal); }
.fact-label { color: var(--ink-dim); max-width: 22ch; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Media frames (angled, echo the mark) ---------- */
.frame {
  position: relative; overflow: hidden; aspect-ratio: 16 / 11; border-radius: 4px;
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
  background: var(--obsidian-2);
}
.frame .vid { inset: -8% 0; }
.frame-tag {
  position: absolute; left: 18px; bottom: 26px; z-index: 2;
  font: 600 0.72rem/1 var(--font-display); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ivory); padding: 9px 12px; border-radius: 999px;
  background: rgba(12, 17, 23, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--line);
}
@supports (animation-timeline: view()) {
  .frame .vid { animation: frame-drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  @keyframes frame-drift { from { transform: translate3d(0, -6%, 0) scale(1.04); } to { transform: translate3d(0, 6%, 0) scale(1.04); } }
  .tile .tile-img { animation: tile-zoom linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
  @keyframes tile-zoom { from { transform: scale(1.25); } to { transform: scale(1.02); } }
}

/* ---------- Service tiles (home) ---------- */
.tiles { display: grid; gap: 16px; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 360px; padding: 26px; border-radius: var(--radius); text-decoration: none; border: 1px solid var(--line);
}
.tile-img-wrap { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.tile-img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.7) brightness(0.75); transition: filter 0.7s var(--ease), transform 1.2s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12, 17, 23, 0.05) 20%, rgba(12, 17, 23, 0.92)); }
.tile:hover .tile-img { filter: saturate(0.9) brightness(0.9); }
.tile .card-num { margin-bottom: auto; }
.tile h3 { font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.7rem); }
.tile .tile-go { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font: 600 0.9rem/1 var(--font-display); }
.tile .tile-go .ic { width: 18px; height: 18px; transition: transform 0.45s var(--ease); }
.tile:hover .tile-go .ic { transform: translateX(5px); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding-block: 10px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee + .marquee { margin-top: 6px; }
.marquee-track { display: flex; width: max-content; animation: marquee var(--dur, 60s) linear infinite; }
.marquee--rev .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-list { display: flex; align-items: center; list-style: none; flex: none; }
.mq-item {
  display: inline-flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); padding-right: clamp(18px, 2.4vw, 36px);
  font: 600 clamp(1.9rem, 1rem + 3.6vw, 4.4rem)/1.15 var(--font-display); letter-spacing: -0.04em; white-space: nowrap;
}
.mq-item::after { content: ""; width: 0.42em; height: 0.2em; background: var(--teal); clip-path: polygon(0 30%, 100% 0, 100% 70%, 0 100%); opacity: 0.8; }
.marquee--rev .mq-item { color: var(--teal-soft); }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- Audio player ---------- */
.player {
  position: relative; isolation: isolate; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: 28px;
  background: linear-gradient(170deg, rgba(20, 39, 33, 0.82), rgba(12, 17, 23, 0.88));
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  padding: clamp(20px, 3vw, 36px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.player::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px; opacity: 0; transition: opacity 0.6s;
  background: conic-gradient(from var(--angle, 0deg), transparent 0 70%, var(--teal) 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.player.is-playing::before { opacity: 1; animation: spin-angle 4s linear infinite; }
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin-angle { to { --angle: 360deg; } }
.player-head { display: flex; align-items: center; gap: 18px; }
.player-title { display: grid; gap: 4px; min-width: 0; }
.player-title strong { font: 600 clamp(1.15rem, 1rem + 0.6vw, 1.45rem)/1.15 var(--font-display); letter-spacing: -0.02em; }
.player-title span { font-size: var(--fs-small); color: var(--ink-dim); }
.play-btn {
  position: relative; flex: none; width: 64px; height: 64px; border-radius: 50%; border: 0;
  background: var(--teal); color: var(--obsidian); display: grid; place-items: center;
  box-shadow: 0 0 0 0 rgba(111, 183, 194, 0.45); transition: transform 0.4s var(--ease), box-shadow 0.4s, translate 0.5s var(--ease);
}
.play-btn:hover { transform: scale(1.05); }
.play-btn svg { width: 24px; height: 24px; grid-area: 1 / 1; transition: opacity 0.25s, transform 0.4s var(--ease); }
.play-btn .i-pause { opacity: 0; transform: scale(0.6); }
.is-playing .play-btn .i-play { opacity: 0; transform: scale(0.6); }
.is-playing .play-btn .i-pause { opacity: 1; transform: none; }
.is-playing .play-btn { animation: ring 2s var(--ease) infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(111, 183, 194, 0.45); } 100% { box-shadow: 0 0 0 18px rgba(111, 183, 194, 0); } }
.viz { margin-left: auto; display: flex; align-items: center; gap: 3px; height: 40px; flex: none; }
.viz i { display: block; width: 3px; height: 100%; border-radius: 3px; background: var(--teal); transform: scaleY(0.12); transform-origin: 50% 50%; transition: transform 0.12s linear; opacity: 0.85; }
.player.viz-css.is-playing .viz i { animation: viz 0.9s ease-in-out infinite alternate; }
.player.viz-css.is-playing .viz i:nth-child(3n) { animation-duration: 0.7s; }
.player.viz-css.is-playing .viz i:nth-child(4n+1) { animation-duration: 1.1s; }
@keyframes viz { from { transform: scaleY(0.15); } to { transform: scaleY(0.9); } }
@media (max-width: 420px) { .viz { display: none; } }
.player-bar { margin-top: 22px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.player-bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--teal-deep), var(--teal)); transform-origin: 0 50%; transform: scaleX(0); }
.turns { list-style: none; margin-top: 18px; display: grid; gap: 8px; }
.turn {
  width: 100%; text-align: left; display: grid; gap: 6px; padding: 16px 18px 16px 22px; border-radius: 16px;
  border: 1px solid transparent; background: rgba(246, 244, 239, 0.03); position: relative; overflow: hidden;
  transition: background-color 0.4s, border-color 0.4s, opacity 0.4s;
}
.turn::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: var(--teal); transform: scaleY(0); transition: transform 0.5s var(--ease); }
.turn:hover { background: rgba(246, 244, 239, 0.06); }
.turn-who { font: 600 0.72rem/1.2 var(--font-display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); }
.turn--caller .turn-who { color: var(--ink-faint); }
.turn-text { display: block; color: var(--ink-dim); font-size: 0.98rem; line-height: 1.6; }
.player.is-live .turn { opacity: 0.5; }
.player.is-live .turn.is-done { opacity: 0.72; }
.turn.is-active, .player.is-live .turn.is-active { opacity: 1; background: var(--teal-a10); border-color: var(--teal-a40); }
.turn.is-active::before { transform: scaleY(1); }
.turn.is-active .turn-text { color: var(--ivory); }
.player-foot { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 0.85rem; color: var(--ink-faint); }
.demo-label { display: inline-flex; align-items: center; gap: 8px; }
.demo-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex: none; }

/* ---------- Voice studio (tabs) ---------- */
.studio { position: relative; isolation: isolate; }
.stage-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.stage-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); filter: saturate(0.65) brightness(0.55); transition: opacity 1.2s var(--ease), transform 8s linear; }
.stage-bg img.is-active { opacity: 1; transform: scale(1.0); }
.stage-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--obsidian) 0%, rgba(12, 17, 23, 0.55) 30%, rgba(12, 17, 23, 0.7) 70%, var(--obsidian) 100%); }
.tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 900px) { .tabs { grid-template-columns: repeat(4, 1fr); } }
.tab {
  position: relative; overflow: hidden; isolation: isolate; text-align: left;
  min-height: 96px; padding: 16px; border-radius: 18px; border: 1px solid var(--line);
  background: rgba(12, 17, 23, 0.5); display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  transition: border-color 0.4s, translate 0.5s var(--ease);
}
.tab img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; filter: saturate(0.6); transition: opacity 0.5s, transform 1s var(--ease); }
.tab::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent, rgba(12, 17, 23, 0.9)); }
.tab:hover img { opacity: 0.55; transform: scale(1.06); }
.tab strong { font: 600 1.08rem/1.15 var(--font-display); letter-spacing: -0.02em; }
.tab span { font-size: 0.82rem; color: var(--ink-dim); }
.tab { cursor: pointer; }
.studio-radio.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.studio:has(#studio-trades:checked) label[for="studio-trades"],
.studio:has(#studio-cafe:checked) label[for="studio-cafe"],
.studio:has(#studio-title:checked) label[for="studio-title"],
.studio:has(#studio-clinic:checked) label[for="studio-clinic"] { border-color: var(--teal); }
.studio:has(#studio-trades:checked) label[for="studio-trades"] img,
.studio:has(#studio-cafe:checked) label[for="studio-cafe"] img,
.studio:has(#studio-title:checked) label[for="studio-title"] img,
.studio:has(#studio-clinic:checked) label[for="studio-clinic"] img { opacity: 0.6; }
.studio:has(#studio-trades:checked) label[for="studio-trades"]::before,
.studio:has(#studio-cafe:checked) label[for="studio-cafe"]::before,
.studio:has(#studio-title:checked) label[for="studio-title"]::before,
.studio:has(#studio-clinic:checked) label[for="studio-clinic"]::before { content: ""; position: absolute; left: 16px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 6px var(--teal-a20); }
.studio:has(#studio-trades:focus-visible) label[for="studio-trades"],
.studio:has(#studio-cafe:focus-visible) label[for="studio-cafe"],
.studio:has(#studio-title:focus-visible) label[for="studio-title"],
.studio:has(#studio-clinic:focus-visible) label[for="studio-clinic"] { outline: 2px solid var(--teal); outline-offset: 3px; }
.panel { margin-top: 20px; }
/* Radios and panels are siblings; this hides inactive demos with JS off, without :has(). */
.studio .panel { display: none; }
#studio-trades:checked ~ #panel-trades,
#studio-cafe:checked ~ #panel-cafe,
#studio-title:checked ~ #panel-title,
#studio-clinic:checked ~ #panel-clinic { display: block; }
@supports selector(:has(*)) {
  .studio:has(#studio-trades:checked) .stage-bg img[data-scene="trades"],
  .studio:has(#studio-cafe:checked) .stage-bg img[data-scene="cafe"],
  .studio:has(#studio-title:checked) .stage-bg img[data-scene="title"],
  .studio:has(#studio-clinic:checked) .stage-bg img[data-scene="clinic"] { opacity: 1; transform: scale(1.0); }
  .studio:has(#studio-cafe:checked) .stage-bg img[data-scene="trades"],
  .studio:has(#studio-title:checked) .stage-bg img[data-scene="trades"],
  .studio:has(#studio-clinic:checked) .stage-bg img[data-scene="trades"] { opacity: 0; }
}
.js .panel { animation: panel-in 0.8s var(--ease) both; }
.transcript { margin-top: 18px; }
.transcript summary {
  cursor: pointer; list-style: revert;
  font: 600 0.9rem/1.2 var(--font-display); letter-spacing: 0.04em; color: var(--ivory);
  min-height: 44px; display: flex; align-items: center;
}
.turn-item { display: grid; gap: 8px; }
.turn-audio { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 0 4px 8px 22px; }
.turn-audio audio { width: min(100%, 420px); height: 40px; }
.mp3-link {
  font: 600 0.85rem/1.2 var(--font-display); letter-spacing: 0.02em; color: var(--teal);
  text-decoration: underline; text-underline-offset: 3px;
  min-height: 44px; display: inline-flex; align-items: center;
}
.mp3-link:hover, .mp3-link:focus-visible { color: var(--ivory); }
.no-js .play-btn, .no-js .player-bar, .no-js .viz, .no-js .js-only-hint { display: none; }
.js .turn[data-audio] { cursor: pointer; }
@keyframes panel-in { from { opacity: 0; transform: translateY(16px); } }
.phone-big {
  display: inline-flex; align-items: center; gap: 0.35em; text-decoration: none;
  font: 600 clamp(2.2rem, 1rem + 6.4vw, 6.4rem)/1 var(--font-display); letter-spacing: -0.05em;
  background: linear-gradient(90deg, var(--ivory) 0%, var(--teal-soft) 40%, var(--ivory) 80%); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 6s linear infinite; min-height: 44px;
}
@keyframes sheen { to { background-position: -200% 0; } }

/* ---------- Who we help ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent;
  font: 600 0.9rem/1 var(--font-display); transition: background-color 0.35s, color 0.35s, border-color 0.35s;
}
.chip:hover { border-color: var(--teal); }
.chip[aria-pressed="true"] { background: var(--teal); color: var(--obsidian); border-color: var(--teal); }
.biz-grid { list-style: none; display: grid; gap: 12px; margin-top: 28px; }
@media (min-width: 640px) { .biz-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .biz-grid { grid-template-columns: repeat(3, 1fr); } }
.biz { padding: 24px; display: grid; gap: 10px; align-content: start; min-height: 168px; }
.biz[hidden] { display: none; }
.biz-cat { font: 600 0.7rem/1 var(--font-display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal); }
.biz h3 { margin-top: 0; font-size: 1.3rem; letter-spacing: -0.02em; }
.biz p { margin-top: 0; font-size: 0.98rem; }
::view-transition-group(*) { animation-duration: 0.55s; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }

/* ---------- How it works ---------- */
.steps { --p: 0; position: relative; list-style: none; display: grid; gap: clamp(28px, 4vw, 56px); padding-left: 64px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 23px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; }
.steps::before { background: var(--line); }
.steps::after { background: linear-gradient(180deg, var(--teal-soft), var(--teal)); transform-origin: 50% 0; transform: scaleY(var(--p)); }
.step { position: relative; }
.step-dot {
  position: absolute; left: -64px; top: 0; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font: 600 1rem/1 var(--font-display);
  background: var(--obsidian); border: 1px solid var(--line-strong); color: var(--ink-dim);
  transition: background-color 0.5s, color 0.5s, border-color 0.5s, box-shadow 0.6s;
}
.step.is-in .step-dot { background: var(--teal); color: var(--obsidian); border-color: var(--teal); box-shadow: 0 0 0 8px var(--teal-a10); }
.step h3 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.6rem); letter-spacing: -0.035em; padding-top: 6px; }
.step p { margin-top: 12px; color: var(--ink-dim); max-width: 52ch; font-size: var(--fs-lead); line-height: 1.55; }
@media (min-width: 760px) { .steps { padding-left: 96px; } .steps::before, .steps::after { left: 31px; } .step-dot { left: -96px; width: 64px; height: 64px; font-size: 1.2rem; } }

.rules { display: grid; gap: 16px; }
@media (min-width: 860px) { .rules { grid-template-columns: 1fr 1fr; gap: 20px; } }
.rules-list { list-style: none; margin-top: 22px; display: grid; gap: 4px; }
.rules-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid rgba(12, 17, 23, 0.1); font-size: 1.06rem; }
.rules-list svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.rules-list svg path { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; transition: stroke-dashoffset 0.9s var(--ease); }
.rules-list .yes path { stroke: var(--teal-deep); }
.rules-list .no path { stroke: var(--obsidian); }
.no-js .rules-list svg path, .is-in .rules-list svg path { stroke-dashoffset: 0; }
.is-in .rules-list li:nth-child(2) path { transition-delay: 0.15s; }
.is-in .rules-list li:nth-child(3) path { transition-delay: 0.3s; }
.is-in .rules-list li:nth-child(4) path { transition-delay: 0.45s; }

/* ---------- Services ---------- */
.subnav { position: sticky; top: calc(var(--header-h) + 8px); z-index: 20; margin-top: -28px; }
.subnav-inner {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 6px; border-radius: 999px; width: max-content; max-width: 100%;
  background: rgba(12, 17, 23, 0.7); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; text-decoration: none; font: 600 0.88rem/1 var(--font-display); color: var(--ink-dim); transition: background-color 0.3s, color 0.3s; }
.subnav a:hover, .subnav a.is-current { background: var(--teal-a20); color: var(--ivory); }
.service { scroll-margin-top: calc(var(--header-h) + 80px); }
.service + .service { margin-top: clamp(80px, 11vw, 160px); }
.service-copy h2 { margin-top: 18px; }
.service-copy > p { margin-top: 20px; font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-dim); max-width: 46ch; }
.ticks { list-style: none; margin-top: 26px; display: grid; gap: 2px; }
.ticks li { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); }
.ticks li::before { content: ""; flex: none; width: 14px; height: 7px; background: var(--teal); clip-path: polygon(0 30%, 100% 0, 100% 70%, 0 100%); transform: translateY(-2px); }
.service-copy .cta-row { margin-top: 30px; }
@media (min-width: 960px) { .service--flip .frame { order: 2; } }

/* ---------- Contact ---------- */
.contact-cards { display: grid; gap: 16px; }
@media (min-width: 860px) { .contact-cards { grid-template-columns: 1fr 1fr; gap: 20px; } }
.contact-card { display: grid; gap: 14px; align-content: start; padding: clamp(28px, 4vw, 48px); }
.contact-card h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); letter-spacing: -0.03em; }
.big-link { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; font: 600 clamp(1.25rem, 0.9rem + 1.6vw, 2.2rem)/1.15 var(--font-display); letter-spacing: -0.03em; color: var(--ivory); text-decoration: none; overflow-wrap: anywhere; }
.big-link .ic { width: 26px; height: 26px; color: var(--teal); flex: none; transition: transform 0.45s var(--ease); }
.big-link:hover .ic { transform: translateX(5px); }
.big-link:hover { color: var(--teal-soft); }
.area-map { width: 100%; max-width: 560px; margin-inline: auto; overflow: visible; }
.area-map .river { fill: none; stroke: var(--teal); stroke-width: 2; opacity: 0.55; stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 2.6s var(--ease); }
.area-map .link { stroke: rgba(246, 244, 239, 0.22); stroke-width: 1; stroke-dasharray: 300; stroke-dashoffset: 300; transition: stroke-dashoffset 2s var(--ease) 0.5s; }
.area-map .node circle { fill: var(--obsidian); stroke: var(--teal); stroke-width: 1.5; }
.area-map .node text { fill: var(--ivory); font: 600 15px var(--font-display); letter-spacing: -0.01em; }
.area-map .node { opacity: 0; transition: opacity 0.8s var(--ease); }
.area-map .home circle.core { fill: var(--teal); stroke: none; }
.area-map .home .pulse { fill: none; stroke: var(--teal); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(2.6); opacity: 0; } }
.no-js .area-map .river, .no-js .area-map .link, .area-map.is-in .river, .area-map.is-in .link { stroke-dashoffset: 0; }
.no-js .area-map .node, .area-map.is-in .node { opacity: 1; }
.area-map.is-in .node:nth-of-type(2) { transition-delay: 0.2s; } .area-map.is-in .node:nth-of-type(3) { transition-delay: 0.3s; }
.area-map.is-in .node:nth-of-type(4) { transition-delay: 0.4s; } .area-map.is-in .node:nth-of-type(5) { transition-delay: 0.5s; }
.area-map.is-in .node:nth-of-type(6) { transition-delay: 0.6s; } .area-map.is-in .node:nth-of-type(7) { transition-delay: 0.7s; }
.area-map.is-in .node:nth-of-type(8) { transition-delay: 0.8s; } .area-map.is-in .node:nth-of-type(9) { transition-delay: 0.9s; }
.county-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.county-list li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font: 600 0.88rem/1.2 var(--font-display); }

/* ---------- Closing CTA ---------- */
.closer { position: relative; isolation: isolate; overflow: hidden; text-align: left; }
.closer .h2 { font-size: clamp(2.2rem, 1.2rem + 4.4vw, 5.4rem); max-width: 16ch; }
.closer .lead { margin-top: 22px; }
.closer .cta-row { margin-top: 34px; }
.closer-ring {
  position: absolute; z-index: -1; right: -18vmax; top: 50%; width: 62vmax; aspect-ratio: 1; border-radius: 50%; translate: 0 -50%; pointer-events: none;
  background: conic-gradient(from var(--angle), rgba(111, 183, 194, 0), rgba(111, 183, 194, 0.35), rgba(27, 58, 49, 0.2), rgba(111, 183, 194, 0));
  -webkit-mask: radial-gradient(circle, transparent 57%, #000 58%, #000 70%, transparent 71%); mask: radial-gradient(circle, transparent 57%, #000 58%, #000 70%, transparent 71%);
  animation: spin-angle 16s linear infinite;
}

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--obsidian); border-top: 1px solid var(--line); padding: clamp(56px, 8vw, 96px) 0 32px; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; top: -1px; left: 0; width: 40%; height: 1px; background: linear-gradient(90deg, transparent, var(--teal), transparent); animation: sweep 7s var(--ease-io) infinite; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand img { width: auto; height: 46px; }
.footer-brand p { margin-top: 18px; color: var(--ink-dim); max-width: 30ch; }
.footer-h { font: 600 0.74rem/1 var(--font-display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.footer-nav ul { list-style: none; display: grid; }
.footer-nav a, .footer-contact a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink-dim); transition: color 0.3s; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--ivory); }
.footer-contact a { color: var(--ivory); font: 600 1.05rem/1.2 var(--font-display); overflow-wrap: anywhere; }
.footer-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 0.88rem; color: var(--ink-faint); }

/* ---------- View transitions (cross-document) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.42s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in 0.75s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translate3d(0, -14px, 0); filter: blur(6px); } }
@keyframes vt-in { from { opacity: 0; transform: translate3d(0, 22px, 0); filter: blur(8px); } }

/* ---------- Reduced motion: posters only, no parallax, no marquee motion ---------- */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  body::after { display: none; }
  .progress { display: none !important; }
  .vid video, .field { display: none !important; }
  .js [data-reveal], .js [data-split] .w > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js [data-reveal="frame"] { clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%) !important; }
  .js [data-scrub] .sw { opacity: 1; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { width: auto; flex-wrap: wrap; }
  .marquee-list { flex-wrap: wrap; row-gap: 4px; }
  .marquee-list[aria-hidden="true"] { display: none; }
  .glyph path, .rules-list svg path, .area-map .river, .area-map .link { stroke-dashoffset: 0 !important; }
  .area-map .node { opacity: 1 !important; }
  .stage-bg img { transform: none; }
  .phone-big { color: var(--ivory); background: none; }
  .hero-media, .hero-content { transform: none !important; }
}

/* Section background video (non-hero) */
.bg-media { position: absolute; inset: 0; z-index: -2; opacity: 0.45; overflow: hidden; }
a[href^="tel:"] { white-space: nowrap; }

.biz-safety { font-size: 0.88rem; line-height: 1.55; color: var(--ink-dim); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px !important; }

/* ---------- ODL 4-Vertical OS Switcher ---------- */
.os-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 900px) { .os-tabs { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.os-tab { color: var(--ivory); }
.os-tab[aria-selected="true"] { border-color: var(--teal); }
.os-tab[aria-selected="true"] img { opacity: 0.6; }
.os-tab[aria-selected="true"]::before {
  content: ""; position: absolute; left: 16px; top: 16px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 6px var(--teal-a20);
}
.os-panels { margin-top: 22px; }
.os-panel[hidden] { display: none; }
.js .os-panel { animation: panel-in 0.55s var(--ease) both; }
.os-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 960px) { .os-grid { grid-template-columns: 1.05fr 0.95fr; gap: 24px; } }
.os-sim { display: grid; gap: 16px; }
.os-sim-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.os-sim-head .h3 { margin-top: 8px; }
.os-badge {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px;
  font: 600 0.76rem/1 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--teal-a20); color: var(--teal-soft); border: 1px solid var(--teal-a40);
}
.os-badge.is-warn { background: rgba(246, 244, 239, 0.14); color: var(--ivory); border-color: var(--line-strong); }
.os-badge.is-alert { background: rgba(217, 75, 75, 0.22); color: #ffd7d7; border-color: rgba(235, 110, 110, 0.55); }
.os-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.os-presets .chip { font-size: 0.84rem; padding: 0 14px; min-height: 44px; }
.os-ticket {
  display: grid; gap: 14px; padding: 18px; border-radius: 18px;
  background: rgba(12, 17, 23, 0.62); border: 1px solid var(--line);
}
.os-ticket--warn { border-color: var(--teal-a40); background: rgba(17, 24, 32, 0.84); }
.os-ticket--alert { border-color: rgba(235, 110, 110, 0.6); background: rgba(54, 18, 22, 0.55); }
.os-ticket-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.os-ticket-top strong { font: 600 1.02rem/1.25 var(--font-display); color: var(--ivory); }
.os-pill {
  font: 600 0.74rem/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--teal-soft);
}
.os-ticket-note { color: var(--ink-dim); font-size: 0.96rem; line-height: 1.55; margin-top: 0 !important; }
.os-brief-list { list-style: none; display: grid; gap: 8px; }
.os-brief-list li {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px;
  background: rgba(246, 244, 239, 0.04); border: 1px solid var(--line); font-size: 0.94rem;
}
.os-brief-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex: none; }
.os-guard {
  font-size: 0.86rem; line-height: 1.5; color: var(--teal-soft);
  padding-top: 10px; border-top: 1px solid var(--line); margin-top: 0 !important;
}
.os-meter { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.os-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal-deep), var(--teal)); transition: width 0.35s var(--ease); }
.os-checks { list-style: none; display: grid; gap: 8px; }
.os-check {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(246, 244, 239, 0.03);
  display: flex; align-items: center; gap: 12px; text-align: left;
  transition: border-color 0.25s, background-color 0.25s;
}
.os-check:hover { border-color: var(--teal-a40); background: rgba(246, 244, 239, 0.06); }
.os-check.is-done { border-color: var(--teal-a40); background: var(--teal-a10); }
.os-box {
  width: 18px; height: 18px; border-radius: 5px; flex: none;
  border: 1.5px solid var(--line-strong); position: relative;
}
.os-check.is-done .os-box { background: var(--teal); border-color: var(--teal); }
.os-check.is-done .os-box::after {
  content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px;
  border: solid var(--obsidian); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.os-tag {
  margin-left: auto; font-style: normal; font: 600 0.72rem/1 var(--font-display);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint);
}
.os-check.is-done .os-tag { color: var(--teal-soft); }

/* ---------- Owner ROI & SaaS-Rent Leak Calculator ---------- */
.roi-grid { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 960px) { .roi-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.roi-controls, .roi-results { display: grid; gap: 20px; align-content: start; }
.roi-field { display: grid; gap: 10px; }
.roi-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.roi-label-row label { font: 600 0.96rem/1.3 var(--font-display); color: var(--ivory); }
.roi-num {
  width: 108px; min-height: 44px; padding: 6px 12px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--obsidian-2); color: var(--ivory);
  font: 600 1rem/1 var(--font-display); text-align: right; font-variant-numeric: tabular-nums;
}
.roi-num:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.roi-range {
  width: 100%; height: 8px; border-radius: 999px; appearance: none; -webkit-appearance: none;
  background: var(--obsidian-3); border: 1px solid var(--line); cursor: pointer;
}
.roi-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal); border: 2px solid var(--obsidian); box-shadow: 0 0 0 3px var(--teal-a20);
}
.roi-range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal); border: 2px solid var(--obsidian); box-shadow: 0 0 0 3px var(--teal-a20);
}
.roi-rate-row { display: grid; gap: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.roi-kpis { display: grid; gap: 14px; }
@media (min-width: 560px) { .roi-kpis { grid-template-columns: 1fr 1fr; } }
.roi-kpi {
  display: grid; gap: 6px; padding: 16px; border-radius: 16px;
  background: rgba(12, 17, 23, 0.55); border: 1px solid var(--line);
}
.roi-kpi-label { font: 600 0.78rem/1.25 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); }
.roi-kpi-val { font: 600 clamp(1.8rem, 1.3rem + 1.5vw, 2.5rem)/1.05 var(--font-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--ivory); }
.roi-kpi-val.accent { color: var(--teal); }
.roi-compare { display: grid; gap: 16px; padding-top: 8px; border-top: 1px solid var(--line); }
.roi-bar-group { display: grid; gap: 8px; }
.roi-bar-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 0.94rem; }
.roi-bar-head strong { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.roi-track { height: 10px; border-radius: 999px; background: var(--obsidian); border: 1px solid var(--line); overflow: hidden; }
.roi-fill { display: block; height: 100%; border-radius: inherit; transition: width 0.35s var(--ease); }
.roi-fill--rent { background: linear-gradient(90deg, rgba(246, 244, 239, 0.4), rgba(246, 244, 239, 0.72)); }
.roi-fill--own { background: linear-gradient(90deg, var(--teal-deep), var(--teal)); }
.roi-total-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; border-radius: 16px; background: var(--teal-a10); border: 1px solid var(--teal-a40);
}
.roi-total-box span { font-size: 0.92rem; color: var(--ink-dim); }
.roi-total-box strong { font: 600 1.45rem/1 var(--font-display); color: var(--teal-soft); font-variant-numeric: tabular-nums; }

/* ---------- 3-Tier Sovereign Ownership Architecture ---------- */
.tiers-grid { align-items: stretch; }
.tier-card { display: flex; flex-direction: column; }
.tier-card--featured { border-color: var(--teal-deep) !important; box-shadow: 0 24px 60px -30px rgba(20, 39, 33, 0.35); }
.tier-sub { font: 600 0.95rem/1.3 var(--font-display); color: var(--teal-deep) !important; margin-top: 8px !important; }
.tier-list { list-style: none; margin-top: 22px; padding-top: 14px; border-top: 1px solid rgba(12, 17, 23, 0.12); display: grid; gap: 10px; }
.tier-list li {
  display: flex; align-items: baseline; gap: 10px; font-size: 0.96rem; line-height: 1.45; color: rgba(12, 17, 23, 0.86);
}
.tier-list li::before {
  content: ""; width: 10px; height: 5px; flex: none; background: var(--teal-deep);
  clip-path: polygon(0 30%, 100% 0, 100% 70%, 0 100%); transform: translateY(-2px);
}
.tiers-cta { margin-top: clamp(32px, 4vw, 48px); }

/* ---------- Live systems showcase page ---------- */
.showcase-card { display: flex; flex-direction: column; }
.showcase-card .frame { margin-bottom: 18px; }
.showcase-card h3 { margin-top: 0; }
.showcase-card .cta-row { margin-top: auto; padding-top: 20px; }
.showcase-reel .frame { aspect-ratio: 16 / 10; }
