/* Next Horizon - editorial light theme
   Layout rhythm: white canvas, soft-gray bands, one full-bleed accent band,
   a black showcase band and a black footer. One typeface (Inter Tight 500). */

:root {
  --bg: #ffffff;
  --bg-2: #f5f5f5;
  --ink: #111111;
  --ink-2: #2b2b2b;
  --mute: #5c5c5c;
  --mute-2: #8a8a8a;
  --line: rgba(17, 17, 17, 0.12);
  --line-2: rgba(17, 17, 17, 0.22);
  --ghost: #949494;

  --black: #0a0a0a;
  --dark: #111111;
  --dark-2: #1c1c1c;
  --dark-text: #ffffff;
  --dark-mute: rgba(255, 255, 255, 0.62);
  --dark-line: rgba(255, 255, 255, 0.14);

  /* Accent: Next Horizon cyan (matches quote.nexthorizon.my). */
  --accent: #06b6d4;
  --on-accent: #0b0b0b;
  --pill-off: #e4e4e4;
  --on-accent-mute: rgba(11, 11, 11, 0.72);
  --accent-ink: #0e7490;

  --pad: clamp(20px, 3vw, 48px);
  --radius: clamp(14px, 1.2vw, 20px);
  --ease: cubic-bezier(0.22, 0.8, 0.22, 1);

  --font: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: clamp(15px, 1.15vw, 19px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.solutions :focus-visible,
.quote :focus-visible,
.float-quote.on-accent :focus-visible {
  outline-color: var(--on-accent);
}

.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-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 200ms var(--ease);
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: 100%;
  padding-inline: var(--pad);
}

/* ---------- type scale ---------- */
.t-display {
  font-size: clamp(46px, 8vw, 150px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}

.t-h2 {
  font-size: clamp(30px, 3.6vw, 66px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

.t-h3 {
  font-size: clamp(28px, 3.4vw, 60px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0;
}

.t-lede {
  font-size: clamp(17px, 1.45vw, 24px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  margin: 0;
  text-wrap: pretty;
}

.t-small {
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.45;
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(13px, 0.95vw, 15px);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--mute);
  margin: 0;
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 500 clamp(15px, 1.05vw, 17px)/1 var(--font);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 260ms var(--ease), background-color 220ms, color 220ms, border-color 220ms;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  transition: transform 260ms var(--ease);
}

.btn:hover svg {
  transform: translate(2px, -2px);
}

.btn-accent {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-ink {
  background: var(--ink);
  color: #fff;
}

.btn-ink:hover {
  background: #2a2a2a;
}

.btn-outline {
  border-color: var(--line-2);
  color: var(--ink);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--ink);
}

.btn-white {
  background: #fff;
  color: var(--ink);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-outline-light:hover {
  border-color: #fff;
}

.btn-on-accent {
  background: var(--on-accent);
  color: var(--accent);
}

.btn-outline-on-accent {
  border-color: color-mix(in srgb, var(--on-accent) 40%, transparent);
  color: var(--on-accent);
}

.btn-outline-on-accent:hover {
  border-color: var(--on-accent);
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  isolation: isolate;
  transition: transform 420ms var(--ease), background-color 300ms, box-shadow 300ms;
}

/* The frosted blur lives on a pseudo-element: backdrop-filter on the header
   itself would make it the containing block of the fixed .mobile-menu and
   collapse the open menu to the header's height. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms;
}

.site-header.is-solid::before {
  opacity: 1;
}

.site-header.is-solid {
  box-shadow: 0 1px 0 var(--line);
}

.site-header.is-hidden {
  transform: translateY(-110%);
}

.site-header:focus-within {
  transform: none;
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  height: clamp(64px, 6vw, 88px);
  padding-inline: var(--pad);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-logo {
  width: auto;
  height: 1.25em;
  filter: brightness(0);
}

.header-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 12px;
}

.header-nav a {
  position: relative;
  padding: 8px 2px;
  font-size: clamp(15px, 1.3vw, 21px);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.header-nav a::after {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 4px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 320ms var(--ease);
}

.header-nav a:hover::after,
.header-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  min-height: 44px;
  padding: 12px 18px;
}

.menu-btn {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: transform 160ms var(--ease);
}

.menu-btn:active {
  transform: scale(0.95);
  transition-duration: 100ms;
}

.menu-btn span {
  position: absolute;
  left: 13px;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform 260ms var(--ease), top 260ms var(--ease);
}

.menu-btn span:first-child {
  top: 17px;
}

.menu-btn span:last-child {
  top: 24px;
}

.site-header.is-open .menu-btn span:first-child {
  top: 21px;
  transform: rotate(45deg);
}

.site-header.is-open .menu-btn span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

.mobile-menu {
  display: none;
}

@media (max-width: 1023px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
  }

  .header-nav {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  /* Never transformed while the menu is open, not even mid-transition: a
     transform would make the header the fixed menu's containing block. */
  .site-header.is-open {
    background: #fff;
    transform: none;
    transition: background-color 300ms, box-shadow 300ms;
  }

  .mobile-menu {
    position: fixed;
    inset: clamp(64px, 6vw, 88px) 0 0 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    padding: 24px var(--pad) calc(28px + env(safe-area-inset-bottom));
    background: #fff;
    overflow-y: auto;
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: opacity 240ms var(--ease), transform 240ms var(--ease), visibility 0s;
  }

  /* Keep the closed menu rendered so it can fade out; visibility drops it
     from the focus order and accessibility tree once the fade ends. */
  .mobile-menu[hidden] {
    display: flex;
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 0s linear 180ms;
  }

  @media (prefers-reduced-motion: reduce) {
    .mobile-menu,
    .mobile-menu[hidden] {
      transform: none !important;
    }

    .mobile-menu {
      transition: opacity 150ms linear, visibility 0s !important;
    }

    .mobile-menu[hidden] {
      transition: opacity 150ms linear, visibility 0s linear 150ms !important;
    }
  }

  .mobile-menu nav {
    display: grid;
  }

  .mobile-menu nav a {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: clamp(30px, 9vw, 56px);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-decoration: none;
    color: var(--ink);
  }

  .mobile-menu .menu-actions {
    display: grid;
    gap: 10px;
  }

  body.menu-open {
    overflow: hidden;
  }
}

.cta-short {
  display: none;
}

@media (max-width: 519px) {
  .cta-long {
    display: none;
  }

  .cta-short {
    display: inline;
  }

  .header-cta {
    padding-inline: 14px;
  }
}

@media (max-width: 359px) {
  .header-cta {
    display: none;
  }
}

/* ---------- hero (pinned horizontal headline) ---------- */
.hero {
  position: relative;
  height: 260vh;
  background: var(--bg);
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-stage {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 0;
}

.hero-title {
  margin: 0;
  font-size: clamp(76px, 15vw, 290px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.hero-track {
  display: inline-flex;
  align-items: center;
  gap: 0.22em;
  padding-inline: var(--pad);
  white-space: nowrap;
  will-change: transform;
}

.hw {
  display: inline-block;
  color: var(--ghost);
  transition: color 500ms var(--ease);
}

.hw.is-on {
  color: var(--ink);
}

.hero-pill {
  --travel: 1.13em;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  width: 1.75em;
  height: 0.62em;
  padding-inline: 0.06em;
  border-radius: 999px;
  background: var(--pill-off);
  color: var(--on-accent);
  vertical-align: middle;
}

/* Switch with a rolling knob: the accent fill follows the knob from "idea" (off) to "reality" (on).
   While the last ray draws in, the fill also closes the gap around the knob, so "fully on" shows no grey. */
.hero-pill::before,
.cta-pill::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(0.37em + var(--roll, 1) * var(--travel) + clamp(0, calc((var(--roll, 1) - 0.8) / 0.18), 1) * (100% - 0.37em - var(--travel)));
  border-radius: inherit;
  background: var(--accent);
}

.hero-pill svg,
.cta-pill svg {
  position: relative;
  width: 0.5em;
  height: 0.5em;
  transform: translateX(calc(var(--roll, 1) * var(--travel)));
}

/* Rising-sun knob: no rays at first; the sun clears the horizon, then rays 1, 2 and 3 draw in as --roll grows. */
.sun-knob {
  --k: var(--roll, 1);
  --s: clamp(0, calc(var(--k) / 0.4), 1);
  --r1: clamp(0, calc((var(--k) - 0.4) / 0.18), 1);
  --r2: clamp(0, calc((var(--k) - 0.6) / 0.18), 1);
  --r3: clamp(0, calc((var(--k) - 0.8) / 0.18), 1);
}

.sun-disc {
  transform: translateY(calc((1 - var(--s)) * 3.2px));
}

.sun-ray {
  stroke-dasharray: 1 1;
}

.sun-ray-1 {
  stroke-dashoffset: calc(1 - var(--r1));
  opacity: clamp(0, calc(var(--r1) * 8), 1);
}

.sun-ray-2 {
  stroke-dashoffset: calc(1 - var(--r2));
  opacity: clamp(0, calc(var(--r2) * 8), 1);
}

.sun-ray-3 {
  stroke-dashoffset: calc(1 - var(--r3));
  opacity: clamp(0, calc(var(--r3) * 8), 1);
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 0 var(--pad) clamp(24px, 4vh, 48px);
}

.hero-tagline {
  max-width: 24em;
  font-size: clamp(16px, 1.45vw, 24px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink-2);
  margin: 0;
  text-align: right;
}

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

@media (max-width: 767px) {
  .hero {
    height: 240vh;
  }

  .hero-bottom {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .hero-tagline {
    text-align: left;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }
}

/* ---------- statement (gray -> accent wipe) ---------- */
.statement {
  position: relative;
  height: 280vh;
}

.statement-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--bg-2);
}

.statement-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: var(--pad);
}

.statement-layer--accent {
  z-index: 1;
  background: var(--accent);
  color: var(--on-accent);
  pointer-events: none;
  clip-path: inset(calc((1 - var(--wipe, 0)) * 100%) 0 0 0);
}

.statement-text {
  max-width: 13.5em;
  margin: 0;
  font-size: clamp(42px, 8vw, 150px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-align: center;
  text-wrap: balance;
}

.st-imgs {
  display: inline-flex;
  vertical-align: middle;
  margin: -0.1em 0.06em 0;
}

.st-imgs img {
  width: 0.68em;
  height: 0.68em;
  border-radius: 0.1em;
  object-fit: cover;
  border: 0.03em solid var(--bg-2);
  transform: rotate(var(--r, 0deg));
}

.st-imgs img + img {
  margin-left: -0.12em;
}

.st-arrow {
  display: inline-flex;
  vertical-align: middle;
  margin: -0.1em 0.04em 0;
  color: var(--accent-ink);
}

.st-arrow svg {
  width: 0.62em;
  height: 0.62em;
}

.st-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  vertical-align: middle;
  margin: -0.12em 0.06em 0;
  padding: 0.6em 1.05em;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: clamp(14px, 1.5vw, 26px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 260ms var(--ease);
}

/* The accent layer's duplicate pill sits over the real link after the wipe
   (pointer-events: none), so it mirrors the real link's hover and press. */
@media (hover: hover) and (pointer: fine) {
  .st-pill:hover,
  .statement-sticky:has(.st-pill:hover) .statement-layer--accent .st-pill {
    transform: scale(1.05);
  }
}

.st-pill:active,
.statement-sticky:has(.st-pill:active) .statement-layer--accent .st-pill {
  transform: scale(0.97);
  transition-duration: 120ms;
}

@media (prefers-reduced-motion: reduce) {
  .st-pill:hover,
  .st-pill:active {
    transform: none !important;
  }

  .st-pill {
    transition: opacity 120ms linear !important;
  }

  .st-pill:active {
    opacity: 0.85;
  }
}

.st-pill:focus-visible {
  z-index: 3;
}

.st-pill svg {
  width: 0.85em;
  height: 0.85em;
}

.statement-layer--accent .st-imgs img {
  border-color: var(--accent);
}

.statement-layer--accent .st-arrow {
  color: var(--on-accent);
}

.statement-layer--accent .st-pill {
  background: var(--on-accent);
  color: var(--accent);
}

/* ---------- solutions (accent band, cycling card stack) ---------- */
.solutions {
  position: relative;
  height: calc(100vh + var(--n, 7) * 62vh);
  background: var(--accent);
  color: var(--on-accent);
}

.solutions-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--pad);
  padding: clamp(84px, 9vh, 120px) var(--pad) clamp(28px, 5vh, 56px);
}

.solutions-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}

.solutions-lead {
  max-width: 13em;
  margin: 0;
  font-size: clamp(30px, 4.3vw, 78px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.solutions-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.solutions-foot p {
  max-width: 22em;
  margin: 0;
  font-size: clamp(15px, 1.2vw, 20px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--on-accent-mute);
}

.solutions-count {
  font-size: clamp(15px, 1.2vw, 20px);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.card-stack {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  align-self: end;
  justify-self: end;
  width: min(100%, clamp(300px, 42vw, 680px));
  height: min(100%, clamp(400px, 48vw, 760px));
}

.svc-card {
  --dx: clamp(14px, 2.1vw, 34px);
  --dy: clamp(-48px, -3.1vw, -20px);
  position: absolute;
  inset: auto 0 0 auto;
  width: calc(100% - 3 * var(--dx));
  height: calc(100% + 3 * var(--dy));
  display: flex;
  flex-direction: column;
  padding: clamp(14px, 1.2vw, 20px);
  border-radius: var(--radius);
  background: #f4f4f4;
  color: var(--ink);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.16);
  transform: translate(calc((var(--d) - 3) * var(--dx)), calc(var(--d) * var(--dy)));
  z-index: calc(10 - var(--d));
  transition: transform 700ms var(--ease), opacity 500ms ease;
}

.svc-card.is-gone {
  opacity: 0;
  transform: translate(calc(-3 * var(--dx) - 8%), 115%) rotate(-6deg);
}

.svc-num {
  font-size: clamp(15px, 1.25vw, 21px);
  font-weight: 500;
  line-height: 1;
}

.svc-body {
  display: grid;
  gap: 10px;
  padding: clamp(16px, 2vw, 36px) 0 clamp(14px, 1.4vw, 22px);
}

.svc-title {
  margin: 0;
  font-size: clamp(28px, 3.3vw, 58px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.svc-desc {
  margin: 0;
  max-width: 32em;
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.45;
  color: var(--mute);
}

.svc-art {
  flex: 1;
  min-height: 0;
  border-radius: calc(var(--radius) * 0.6);
  overflow: hidden;
  background: #0f1012;
}

.svc-art svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 899px) {
  .solutions {
    height: calc(100vh + var(--n, 7) * 70vh);
  }

  .solutions-sticky {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 20px;
    padding-top: 84px;
  }

  .solutions-copy {
    gap: 14px;
  }

  .solutions-lead {
    font-size: clamp(26px, 6.4vw, 44px);
  }

  .card-stack {
    justify-self: center;
    align-self: center;
    width: min(100%, 600px);
    height: min(100%, 720px);
  }
}

@media (max-width: 899px) and (max-height: 700px) {
  .solutions-foot p {
    display: none;
  }
}

/* ---------- work (black showcase) ---------- */
.work {
  background: var(--black);
  color: var(--dark-text);
  padding: clamp(72px, 10vw, 140px) 0 clamp(60px, 8vw, 120px);
}

.work-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-inline: var(--pad);
  margin-bottom: clamp(32px, 5vw, 72px);
}

.work-head p {
  margin: 0;
  font-size: clamp(15px, 1.3vw, 21px);
  font-weight: 500;
}

.work-item + .work-item {
  margin-top: clamp(48px, 7vw, 110px);
}

.work-media {
  position: relative;
  height: clamp(320px, 82vh, 900px);
  overflow: hidden;
  background: #050505;
}

.work-media-inner {
  position: absolute;
  inset: -8% 0;
  transform: translate3d(0, var(--par, 0px), 0);
  will-change: transform;
}

.work-media-inner > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-media-inner > img {
  opacity: 0.55;
  filter: saturate(1.1);
}

.work-media-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 40%, transparent 30%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

/* Featured real product: soft accent glow on a faint grid instead of a photo. */
.work-media--feature .work-media-inner {
  background:
    radial-gradient(52% 58% at 50% 56%, color-mix(in srgb, var(--accent) 42%, transparent), transparent 72%),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 64px 64px,
    #050505;
}

.work-shot {
  --u: clamp(5.4px, 0.78vw, 12px);
  width: min(100%, 1000px);
  margin: 0;
  border-radius: calc(var(--u) * 1.4);
  overflow: hidden;
  background: #fff;
  color: #141414;
  font-size: calc(var(--u) * 1.15);
  line-height: 1.25;
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: scale(var(--sc, 0.96));
  transition: transform 900ms var(--ease);
}

.work-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.work-caption a {
  color: inherit;
  text-underline-offset: 4px;
}

.work-caption a:hover {
  color: var(--dark-text);
}

.work-screen-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6% var(--pad);
}

.work-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 24px;
  flex-wrap: wrap;
  padding: 18px var(--pad) 0;
}

.work-caption h3 {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 40px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.work-caption p {
  margin: 0;
  font-size: clamp(14px, 1.1vw, 18px);
  font-weight: 500;
  color: var(--dark-mute);
}

.work-note {
  margin: clamp(40px, 5vw, 72px) var(--pad) 0;
  font-size: 14px;
  color: var(--dark-mute);
}

/* browser chrome for the real quote-app screenshot */
.mock-top {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 0.6);
  padding: calc(var(--u) * 0.9) calc(var(--u) * 1.3);
  border-bottom: 1px solid #ececec;
  background: #fff;
  font-weight: 600;
}

.mock-dot {
  width: calc(var(--u) * 0.8);
  height: calc(var(--u) * 0.8);
  border-radius: 50%;
  background: #e2e2e2;
}

.mock-top .mock-title {
  margin-left: calc(var(--u) * 0.8);
}

/* ---------- example-build sample screens (drawn in HTML, sized by --u) ---------- */
.ws {
  --ws-line: #ececec;
  --ws-mute: #6b6b6b;
  --ws-ok: #15803d;
  --ws-warn: #d97706;
  --ws-bad: #dc2626;
}

.ws-inner b {
  font-weight: 600;
}

.ws-chip {
  margin-left: auto;
  padding: calc(var(--u) * 0.3) calc(var(--u) * 0.9);
  border-radius: 999px;
  background: #f2f2f2;
  font-size: 0.8em;
  font-weight: 500;
}

.ws-body {
  display: grid;
  grid-template-columns: calc(var(--u) * 12) minmax(0, 1fr);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f8f8f8;
  text-align: left;
}

.ws-body--portal {
  grid-template-columns: minmax(0, 1fr);
}

.ws-side {
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 0.9);
  padding: calc(var(--u) * 1.4);
  border-right: 1px solid var(--ws-line);
  background: #fff;
}

.ws-logo {
  width: calc(var(--u) * 2.4);
  height: calc(var(--u) * 2.4);
  margin-bottom: calc(var(--u) * 0.8);
  border-radius: calc(var(--u) * 0.6);
  background: #141414;
}

.ws-nav {
  height: calc(var(--u) * 1.1);
  border-radius: 999px;
  background: #ededed;
}

.ws-nav:nth-child(odd) {
  width: 80%;
}

.ws-nav.is-on {
  background: var(--accent);
}

.ws-main {
  display: grid;
  align-content: stretch;
  gap: calc(var(--u) * 1.1);
  min-width: 0;
  min-height: 0;
  padding: calc(var(--u) * 1.6);
}

.ws-card {
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 0.8);
  min-width: 0;
  min-height: 0;
  padding: calc(var(--u) * 1.2);
  border: 1px solid var(--ws-line);
  border-radius: calc(var(--u) * 0.9);
  background: #fff;
}

.ws-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--u);
}

.ws-card-head span {
  color: var(--ws-mute);
  font-size: 0.8em;
}

.ws-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--u);
}

.ws-kpis--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ws-kpi {
  display: grid;
  gap: calc(var(--u) * 0.3);
  padding: calc(var(--u) * 1.1) calc(var(--u) * 1.2);
  border: 1px solid var(--ws-line);
  border-radius: calc(var(--u) * 0.9);
  background: #fff;
}

.ws-kpi small {
  color: var(--ws-mute);
  font-size: 0.8em;
}

.ws-kpi b {
  font-size: 2em;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.ws-kpi i {
  font-size: 0.72em;
  font-style: normal;
  color: var(--ws-mute);
}

.ws-kpi i.ok { color: var(--ws-ok); }
.ws-kpi i.bad { color: var(--ws-bad); }

.ws-kpi--accent {
  border-color: transparent;
  background: var(--accent);
}

.ws-kpi--accent small,
.ws-kpi--accent i {
  color: rgba(0, 0, 0, 0.78);
}

.ws-badge {
  padding: calc(var(--u) * 0.2) calc(var(--u) * 0.65);
  border-radius: 999px;
  font-size: 0.72em;
  font-style: normal;
  font-weight: 600;
  white-space: nowrap;
}

.ws-badge.ok { background: #e7f7ed; color: #15803d; }
.ws-badge.warn { background: #fdf1d6; color: #a15c07; }
.ws-badge.bad { background: #fde8e8; color: #b91c1c; }

.ws-meter {
  display: block;
  height: calc(var(--u) * 0.5);
  border-radius: 999px;
  background: #f0f0f0;
  overflow: hidden;
}

.ws-meter > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.ws-meter > .ok { background: #22c55e; }
.ws-meter > .warn { background: #f59e0b; }
.ws-meter > .bad { background: #ef4444; }

.ws-btn {
  padding: calc(var(--u) * 0.35) calc(var(--u) * 0.85);
  border-radius: 999px;
  background: var(--accent);
  color: #0b0b0b;
  font-size: 0.72em;
  font-weight: 600;
  white-space: nowrap;
}

/* Dashboard */
.ws-dash {
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
}

.ws-dash .ws-kpis {
  grid-column: 1 / -1;
}

.ws-bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: calc(var(--u) * 0.6);
  min-height: 0;
  border-bottom: 1px solid var(--ws-line);
  background: repeating-linear-gradient(to top, #f1f1f1 0 1px, transparent 1px 25%);
}

.ws-bars span {
  flex: 1;
  border-radius: calc(var(--u) * 0.35) calc(var(--u) * 0.35) 0 0;
  background: #e2e2e2;
}

.ws-bars span.is-peak {
  background: #141414;
}

.ws-axis {
  display: flex;
  justify-content: space-between;
  color: var(--ws-mute);
  font-size: 0.72em;
}

.ws-branch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: calc(var(--u) * 0.45) var(--u);
  padding-top: calc(var(--u) * 0.75);
  border-top: 1px solid #f2f2f2;
}

.ws-branch .ws-meter {
  grid-column: 1 / -1;
}

/* Internal system: order pipeline */
.ws-orders {
  grid-template-rows: auto minmax(0, 1fr);
}

.ws-stages {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: calc(var(--u) * 0.5);
}

.ws-stage {
  position: relative;
  overflow: hidden;
  padding: calc(var(--u) * 0.8) var(--u) calc(var(--u) * 1.1);
  border: 1px solid var(--ws-line);
  border-radius: calc(var(--u) * 0.8);
  background: #fff;
}

.ws-stage::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: calc(var(--u) * 0.3);
  background: var(--accent);
}

.ws-stage b {
  display: block;
  font-size: 1.6em;
  letter-spacing: -0.03em;
}

.ws-stage small {
  color: var(--ws-mute);
  font-size: 0.75em;
}

.ws-stage.is-done {
  border-color: #141414;
  background: #141414;
  color: #fff;
}

.ws-stage.is-done small {
  color: rgba(255, 255, 255, 0.7);
}

.ws-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: calc(var(--u) * 0.8);
  min-height: 0;
}

.ws-col {
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 0.7);
  min-width: 0;
  padding: calc(var(--u) * 0.8);
  border-radius: calc(var(--u) * 0.9);
  background: #efefef;
}

.ws-col-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: calc(var(--u) * 0.5);
  font-size: 0.85em;
}

.ws-col-head span {
  padding: 0 calc(var(--u) * 0.55);
  border-radius: 999px;
  background: #fff;
  color: var(--ws-mute);
}

.ws-ticket {
  display: grid;
  gap: calc(var(--u) * 0.45);
  padding: calc(var(--u) * 0.8) calc(var(--u) * 0.9);
  border-radius: calc(var(--u) * 0.7);
  background: #fff;
  box-shadow: 0 0 0 1px var(--ws-line), 0 calc(var(--u) * 0.2) calc(var(--u) * 0.6) rgba(0, 0, 0, 0.04);
}

.ws-ticket-top,
.ws-ticket-act {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: calc(var(--u) * 0.5);
}

.ws-ticket small {
  color: var(--ws-mute);
  font-size: 0.78em;
}

.ws-ticket-act .ws-meter {
  flex: 1;
}

.ws-ava {
  flex: 0 0 auto;
  width: calc(var(--u) * 1.5);
  height: calc(var(--u) * 1.5);
  border-radius: 50%;
  background: linear-gradient(135deg, #d4dae3, #9aa6b8);
}

/* Customer portal: booking */
.ws-book {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.05fr);
  grid-template-rows: auto minmax(0, 1fr);
  padding: calc(var(--u) * 1.8);
}

.ws-steps {
  grid-column: 1 / -1;
  display: flex;
  gap: calc(var(--u) * 0.6);
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ws-mute);
  font-size: 0.82em;
}

.ws-steps li {
  flex: 1;
  padding-top: calc(var(--u) * 0.7);
  border-top: calc(var(--u) * 0.3) solid #e2e2e2;
}

.ws-steps li.is-done {
  border-color: #141414;
  color: #141414;
}

.ws-steps li.is-on {
  border-color: var(--accent);
  color: #141414;
  font-weight: 600;
}

.ws-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: calc(var(--u) * 0.35) 0;
  text-align: center;
}

.ws-cal-grid small {
  color: var(--ws-mute);
  font-size: 0.72em;
}

.ws-cal-grid span {
  display: grid;
  place-items: center;
  width: calc(var(--u) * 2.4);
  height: calc(var(--u) * 2.4);
  margin-inline: auto;
  border-radius: 50%;
  font-size: 0.85em;
}

.ws-cal-grid span.is-on {
  background: var(--accent);
  font-weight: 700;
}

.ws-cal-grid span.is-today {
  box-shadow: inset 0 0 0 1px #141414;
}

.ws-stack {
  display: flex;
  flex-direction: column;
  gap: var(--u);
  min-height: 0;
}

.ws-slot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(var(--u) * 0.6);
}

.ws-slot-grid span {
  padding: calc(var(--u) * 0.75) 0;
  border: 1px solid #e2e2e2;
  border-radius: calc(var(--u) * 0.6);
  font-size: 0.85em;
  font-weight: 600;
  text-align: center;
}

.ws-slot-grid span.taken {
  border-color: transparent;
  background: #f4f4f4;
  color: #6b6b6b;
  text-decoration: line-through;
}

.ws-slot-grid span.is-on {
  border-color: #141414;
  background: #141414;
  color: #fff;
}

.ws-toast {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 0.8);
  margin-top: auto;
  padding: calc(var(--u) * 0.9) calc(var(--u) * 1.1);
  border-radius: var(--u);
  background: #141414;
  color: #fff;
  box-shadow: 0 var(--u) calc(var(--u) * 2.4) rgba(0, 0, 0, 0.22);
}

.ws-toast b,
.ws-toast small {
  display: block;
}

.ws-toast b {
  font-size: 0.85em;
}

.ws-toast small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72em;
}

.ws-bell {
  flex: 0 0 auto;
  width: calc(var(--u) * 1.8);
  height: calc(var(--u) * 1.8);
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0 32%, color-mix(in srgb, var(--accent) 30%, transparent) 34% 100%);
}

.ws-summary dl {
  display: grid;
  gap: calc(var(--u) * 0.7);
  margin: 0;
}

.ws-summary dl > div {
  display: flex;
  justify-content: space-between;
  gap: var(--u);
  padding-bottom: calc(var(--u) * 0.6);
  border-bottom: 1px dashed #e6e6e6;
  font-size: 0.85em;
}

.ws-summary dt {
  color: var(--ws-mute);
}

.ws-summary dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.ws-fine {
  color: var(--ws-mute);
  font-size: 0.72em;
}

.ws-pay {
  margin-top: auto;
  padding: calc(var(--u) * 0.9);
  border-radius: 999px;
  background: var(--accent);
  font-weight: 700;
  text-align: center;
}

.ws-methods {
  display: flex;
  justify-content: center;
  gap: calc(var(--u) * 0.4);
}

.ws-methods span {
  padding: calc(var(--u) * 0.2) calc(var(--u) * 0.55);
  border: 1px solid #e2e2e2;
  border-radius: calc(var(--u) * 0.4);
  color: #555;
  font-size: 0.7em;
}

/* Inventory */
.ws-inv {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.ws-alert {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 0.7);
  padding: calc(var(--u) * 0.8) calc(var(--u) * 1.1);
  border: 1px solid #f6d48f;
  border-radius: calc(var(--u) * 0.8);
  background: #fff6e6;
  font-size: 0.88em;
}

.ws-alert > span:not(.ws-btn):not(.ws-alert-dot) {
  color: #7a5414;
}

.ws-alert .ws-btn {
  margin-left: auto;
}

.ws-alert-dot {
  flex: 0 0 auto;
  width: calc(var(--u) * 0.8);
  height: calc(var(--u) * 0.8);
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 calc(var(--u) * 0.3) rgba(245, 158, 11, 0.22);
}

.ws-table {
  gap: 0;
  overflow: hidden;
  padding-block: calc(var(--u) * 0.4);
}

.ws-tr {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--u);
  padding: calc(var(--u) * 0.75) 0;
  border-top: 1px solid #f2f2f2;
  font-size: 0.88em;
}

.ws-tr > span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ws-th {
  border-top: 0;
  color: var(--ws-mute);
  font-size: 0.72em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ws-mono {
  color: #666;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
}

@media (max-width: 767px) {
  .work-media {
    height: clamp(300px, 62vh, 560px);
  }

  .work-shot {
    --u: clamp(4px, 1.25vw, 7px);
    transform: rotateX(6deg) rotateZ(-2deg) scale(1);
  }

  .work-screen-wrap {
    padding-inline: 14px;
  }
}

/* ---------- why us (sticky heading + cards) ---------- */
.why {
  background: var(--bg-2);
  padding: clamp(80px, 10vw, 160px) 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--pad);
  padding-inline: var(--pad);
  align-items: start;
}

.split-head {
  position: sticky;
  top: clamp(96px, 30vh, 280px);
}

.split-head .t-lede {
  margin-top: clamp(20px, 2vw, 32px);
  max-width: 24em;
}

.why-cards {
  display: grid;
  gap: clamp(14px, 1.6vw, 24px);
}

.why-card {
  padding: clamp(24px, 2.6vw, 40px);
  border-radius: var(--radius);
  background: #fff;
}

.why-card--dark {
  background: var(--ink);
  color: #fff;
}

.why-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.why-stat {
  font-size: clamp(56px, 6.4vw, 112px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.why-stat small {
  font-size: 0.42em;
  letter-spacing: -0.02em;
  margin-left: 0.12em;
}

.why-card > p {
  margin: clamp(16px, 2vw, 32px) 0 0;
  max-width: 26em;
  font-size: clamp(15px, 1.2vw, 20px);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink-2);
}

.why-card--dark > p {
  color: rgba(255, 255, 255, 0.78);
}

.why-card--dark .why-stat small {
  color: var(--accent);
}

.why-bar {
  flex: 0 1 260px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--mute);
}

.why-bar span {
  position: relative;
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: var(--bg-2);
  overflow: hidden;
}

.why-bar span::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent);
  transform: scaleX(var(--fill, 0));
  transform-origin: left;
  transition: transform 1400ms var(--ease) 200ms;
}

.reveal.in .why-bar span::after,
.why-card.in .why-bar span::after {
  --fill: 1;
}

.why-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 300px;
  justify-content: flex-end;
}

.why-chips span {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--bg-2);
  font-size: 13px;
  font-weight: 500;
}

.why-faces {
  display: flex;
  padding: 6px;
  border-radius: 999px;
  background: var(--bg-2);
}

.why-faces span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid var(--bg-2);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.why-faces span + span {
  margin-left: -12px;
}

.why-faces span:nth-child(2) {
  background: var(--accent);
  color: var(--on-accent);
}

.why-faces span:nth-child(3) {
  background: #8a8a8a;
}

@media (max-width: 899px) {
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split-head {
    position: static;
    text-align: left;
  }
}

/* ---------- process (stacking cards) ---------- */
.process {
  padding: clamp(80px, 10vw, 160px) 0 clamp(60px, 8vw, 120px);
}

.process-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--pad);
  align-items: end;
  padding-inline: var(--pad);
  margin-bottom: clamp(40px, 6vw, 96px);
}

.process-list {
  margin: 0;
  padding: 0 var(--pad);
  list-style: none;
}

.step {
  position: sticky;
  top: calc(clamp(80px, 12vh, 120px) + var(--i) * clamp(14px, 1.6vw, 26px));
  margin-bottom: clamp(16px, 3vw, 40px);
}

.step-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
  min-height: clamp(360px, 62vh, 620px);
  padding: clamp(20px, 2.4vw, 36px);
  border-radius: var(--radius);
  background: var(--bg-2);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.6), 0 -20px 50px rgba(0, 0, 0, 0.05);
}

.step:nth-child(even) .step-card {
  background: #ececec;
}

.step-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.step-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: clamp(15px, 1.2vw, 20px);
  font-weight: 500;
}

.step-meta span:last-child {
  color: var(--mute);
}

.step-copy p {
  margin: 16px 0 0;
  max-width: 30em;
  color: var(--ink-2);
  font-size: clamp(15px, 1.2vw, 20px);
  line-height: 1.45;
}

.step-img {
  border-radius: calc(var(--radius) * 0.75);
  overflow: hidden;
  background: #000;
  min-height: 220px;
}

.step-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  .process-head {
    grid-template-columns: 1fr;
  }

  .step-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .step-img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

/* ---------- quote band ---------- */
.quote {
  background: var(--accent);
  color: var(--on-accent);
  padding: clamp(80px, 10vw, 160px) 0;
  overflow: hidden;
}

.quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  padding-inline: var(--pad);
}

.quote .eyebrow {
  color: var(--on-accent);
}

.quote .eyebrow::before {
  background: var(--on-accent);
}

.quote-title {
  margin: 24px 0 0;
}

/* "5 minutes": a dark marker sweeps in behind the words once the heading is revealed. */
.quote-hl {
  position: relative;
  z-index: 0;
  display: inline-block;
  padding: 0 0.12em 0.04em;
  margin-inline: -0.04em;
  color: var(--on-accent);
  white-space: nowrap;
  transition: color 500ms var(--ease) 700ms;
}

.quote-hl::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0.1em 0 0;
  border-radius: 0.14em;
  background: var(--on-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 800ms var(--ease) 450ms;
}

.reveal.in .quote-hl {
  color: var(--accent);
}

.reveal.in .quote-hl::before {
  transform: scaleX(1);
}

.quote-lede {
  margin: clamp(20px, 2vw, 32px) 0 0;
  max-width: 30em;
  font-size: clamp(17px, 1.45vw, 24px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--on-accent-mute);
}

.quote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(28px, 3vw, 44px);
}

.quote-fine {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--on-accent-mute);
}

.quote-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: clamp(36px, 4vw, 56px) 0 0;
  padding: 0;
  list-style: none;
}

.quote-steps li {
  padding-top: 12px;
  border-top: 2px solid color-mix(in srgb, var(--on-accent) 30%, transparent);
  font-size: 13px;
  line-height: 1.35;
  color: var(--on-accent-mute);
}

.quote-steps b {
  display: block;
  font-size: clamp(14px, 1.05vw, 17px);
  font-weight: 600;
  color: var(--on-accent);
}

.quote-doc-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100%;
}

.quote-doc {
  position: relative;
  width: min(100%, 460px);
  padding: clamp(22px, 2.4vw, 36px);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.22);
  transform: rotate(-3deg);
  translate: 0 calc((1 - var(--q, 1)) * 48px);
  font-size: 14px;
}

/* Each part of the sample quotation slides in, line by line, as the section scrolls (--q 0..1). */
.qd-step {
  --s: clamp(0, calc(var(--q, 1) * var(--n, 8) - var(--k, 0)), 1);
  opacity: var(--s);
  translate: 0 calc((1 - var(--s)) * 14px);
}

.doc-stamp.qd-step {
  opacity: var(--s);
  translate: none;
  scale: var(--s);
}

.quote-doc--back {
  position: absolute;
  inset: auto;
  transform: rotate(4deg) translate(8%, -6%);
  translate: 0 calc((1 - var(--q, 1)) * 96px);
  opacity: 0.7;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.14);
}

.quote-doc header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.quote-doc--front header {
  padding-right: clamp(48px, 5vw, 72px);
}

.quote-doc header b {
  display: block;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.quote-doc header span {
  font-size: 12px;
  color: var(--mute);
}

.quote-doc .doc-tag {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-2);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.doc-lines {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.doc-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  font-size: 13px;
}

.doc-line span:first-child {
  color: var(--ink-2);
}

.doc-line span:last-child {
  color: var(--mute);
  font-variant-numeric: tabular-nums;
}

.doc-bar {
  --s: clamp(0, calc(var(--q, 1) * 6 - var(--k, 0) - 1), 1);
  height: 8px;
  border-radius: 4px;
  background: var(--bg-2);
  transform: scaleX(var(--s));
  transform-origin: left center;
}

.doc-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-weight: 600;
}

.doc-total b {
  font-size: 26px;
  letter-spacing: -0.03em;
}

.doc-stamp {
  position: absolute;
  z-index: 2;
  right: -18px;
  top: -18px;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.1;
  transform: rotate(10deg);
}

.doc-stamp b {
  display: block;
  font-size: 30px;
  letter-spacing: -0.04em;
}

@media (max-width: 899px) {
  .quote-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .quote-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 18px;
  }

  .quote-doc-wrap {
    padding: 20px 10px 10px;
  }
}

/* ---------- testimonials (3D cards on scroll) ---------- */
.voices {
  position: relative;
  height: calc(100vh + var(--n, 3) * 90vh);
}

.voices-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  perspective: 1400px;
}

.voices-title {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding-inline: var(--pad);
  text-align: center;
  font-size: clamp(30px, 3vw, 56px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  opacity: calc(1 - var(--t, 0));
  transform: translateY(calc(var(--t, 0) * -40px));
}

/* Profile-centred card: soft panel, avatar in the middle, name chip, badge chip and
   quote card floating at different depths so the 3D swing reads clearly. */
.voice {
  position: absolute;
  width: clamp(250px, 25vw, 400px);
  aspect-ratio: 3 / 4.1;
  transform-style: preserve-3d;
  opacity: var(--o, 0);
  transform: rotateY(var(--ry, 90deg));
}

.voice-panel {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.04);
}

.voice-avatar {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 40%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: var(--av-bg, var(--accent));
  box-shadow: 0 0 0 6px #fff, 0 22px 50px rgba(0, 0, 0, 0.18);
  transform: translate(-50%, -50%) translateZ(40px);
}

.voice-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.voice-name,
.voice-badge,
.voice-quote {
  position: absolute;
  margin: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
}

.voice-name {
  left: -34%;
  top: 16%;
  padding: 12px 16px;
  transform: translateZ(70px);
}

.voice-name b {
  display: block;
  font-size: clamp(16px, 1.7vw, 26px);
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.voice-name span {
  font-size: 13px;
  color: var(--mute);
}

.voice-badge {
  left: 76%;
  top: 38%;
  padding: 12px 18px;
  transform: translateZ(90px);
  font-size: clamp(18px, 2.3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.voice-badge small {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--accent-ink);
}

.voice-badge small::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.voice-quote {
  left: -40%;
  bottom: -10%;
  width: 100%;
  padding: clamp(16px, 1.4vw, 22px);
  transform: translateZ(60px);
}

.voice-quote p {
  margin: 0;
  font-size: clamp(15px, 1.45vw, 22px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

@media (max-width: 767px) {
  .voice {
    width: min(64vw, 270px);
  }

  .voice-name {
    left: -10%;
    top: -5%;
  }

  .voice-name b {
    font-size: 16px;
  }

  .voice-badge {
    left: auto;
    right: -10%;
    top: 59%;
    font-size: 17px;
  }

  .voice-quote {
    left: -10%;
    width: 96%;
    bottom: -12%;
  }

  .voice-quote p {
    font-size: 15px;
  }
}

@media (max-width: 379px) {
  .voice {
    width: 70vw;
    aspect-ratio: 3 / 4.8;
  }

  .voice-avatar {
    top: 38%;
  }

  .voice-badge {
    top: 52%;
  }

  .voice-quote {
    bottom: -10%;
  }
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--bg-2);
  padding: clamp(80px, 10vw, 160px) 0;
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-item {
  border-radius: calc(var(--radius) * 0.8);
  background: #fff;
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
  min-height: 64px;
  padding: clamp(16px, 1.6vw, 24px) clamp(18px, 1.8vw, 28px);
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  text-align: left;
  font-size: clamp(17px, 1.35vw, 22px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  cursor: pointer;
}

.faq-icon {
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-2);
  transition: transform 420ms var(--ease), scale 120ms var(--ease), background-color 220ms;
}

.faq-q:active .faq-icon {
  scale: 0.9;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: var(--accent);
  color: var(--on-accent);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 480ms var(--ease);
}

.faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
}

.faq-a > div {
  overflow: hidden;
}

.faq-a p {
  margin: 0;
  padding: 0 clamp(18px, 1.8vw, 28px) clamp(18px, 1.8vw, 26px);
  max-width: 44em;
  color: var(--mute);
  line-height: 1.55;
}

.faq .t-lede a {
  color: var(--ink);
  text-underline-offset: 4px;
}

/* ---------- final CTA (scroll-linked rise + horizon arc) ---------- */
.cta {
  --e: 1;
  --rise: clamp(56px, 11vw, 170px);
  --sun: min(170vw, 1700px);
  --gap: clamp(90px, 13vw, 220px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(110px, 16vw, 240px) var(--pad) calc(clamp(110px, 16vw, 240px) + 20px);
  text-align: center;
}

.cta-title {
  max-width: 11em;
  margin-inline: auto;
}

.cta-line {
  display: inline;
}

.cta-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
  margin-right: 0.24em;
}

.cta-word > span {
  --w: clamp(0, calc(var(--e) * 2.2 - var(--i) * 0.2), 1);
  display: inline-block;
  opacity: var(--w);
  transform: translate3d(0, calc((1 - var(--w)) * 105%), 0);
}

.cta-pill {
  --travel: 0.88em;
  --roll: clamp(0, calc(var(--e) * 2 - 0.7), 1);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 1.5em;
  height: 0.62em;
  margin-right: 0.24em;
  padding-inline: 0.06em;
  border-radius: 999px;
  background: var(--pill-off);
  color: var(--on-accent);
  vertical-align: middle;
  transform: scale(clamp(0, calc(var(--e) * 2.4 - 0.5), 1));
}

.cta-rise {
  opacity: clamp(0, calc(var(--e) * 2.4 - 1.1 - var(--i, 0) * 0.2), 1);
  transform: translate3d(0, calc((1 - clamp(0, calc(var(--e) * 2.4 - 1.1 - var(--i, 0) * 0.2), 1)) * 28px), 0);
}

.cta-horizon {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.cta-sun,
.cta-ring {
  position: absolute;
  left: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
}

.cta-sun {
  width: var(--sun);
  top: calc(100% - var(--e) * var(--rise));
  background: var(--accent);
  box-shadow: 0 0 140px 30px color-mix(in srgb, var(--accent) 35%, transparent);
  transform: translateX(-50%);
}

.cta-ring {
  width: calc(var(--sun) + var(--k) * var(--gap) * 2);
  top: calc(100% - var(--e) * var(--rise) - var(--k) * var(--gap));
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  opacity: clamp(0, calc(var(--e) * 2 - var(--k) * 0.35), 1);
  transform: translateX(-50%);
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(32px, 4vw, 56px);
}

.cta-mail {
  margin: 20px 0 0;
  color: var(--mute);
  font-size: 15px;
}

@media (max-width: 767px) {
  .cta {
    --rise: 48px;
    --gap: 44px;
    padding-bottom: calc(110px + var(--rise) + var(--gap) * 2);
  }
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--dark);
  color: var(--dark-text);
  padding: clamp(64px, 8vw, 120px) 0 0;
  overflow: hidden;
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  padding-inline: var(--pad);
}

.foot-brand p {
  max-width: 24em;
  margin: 16px 0 0;
  color: var(--dark-mute);
  font-size: 15px;
  line-height: 1.5;
}

.foot-brand .brand {
  color: #fff;
}

.foot-brand .brand-logo {
  filter: none;
}

.foot-col h2 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--dark-mute);
}

.foot-col ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-col a,
.foot-col span {
  display: inline-block;
  padding: 4px 0;
  color: #fff;
  text-decoration: none;
  font-size: clamp(15px, 1.2vw, 19px);
}

.foot-col a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.foot-word {
  margin: clamp(48px, 7vw, 110px) 0 0;
  padding-inline: var(--pad);
  font-size: clamp(56px, 15.2vw, 300px);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.06em;
  white-space: nowrap;
  text-align: center;
  color: #fff;
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: clamp(20px, 2.4vw, 32px) var(--pad);
  margin-top: clamp(20px, 2.4vw, 32px);
  border-top: 1px solid var(--dark-line);
  font-size: 13px;
  color: var(--dark-mute);
}

.foot-bottom a {
  color: inherit;
}

@media (max-width: 899px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .foot-brand {
    grid-column: 1 / -1;
  }
}

/* ---------- floating quote button ---------- */
.float-quote {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 300ms, transform 400ms var(--ease), visibility 0s linear 400ms;
}

.float-quote.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 300ms, transform 400ms var(--ease), visibility 0s;
}

.float-quote .btn {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.float-quote.on-accent .btn {
  background: var(--ink);
  color: #fff;
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.r-d-1 {
  transition-delay: 80ms;
}

.r-d-2 {
  transition-delay: 160ms;
}

.r-d-3 {
  transition-delay: 240ms;
}

/* ---------- reduced motion: unpin scenes, show everything ---------- */
html.reduce-motion .hero,
html.reduce-motion .statement,
html.reduce-motion .solutions,
html.reduce-motion .voices {
  height: auto;
}

html.reduce-motion .hero-sticky,
html.reduce-motion .statement-sticky,
html.reduce-motion .solutions-sticky,
html.reduce-motion .voices-sticky {
  position: relative;
  height: auto;
  overflow: visible;
}

html.reduce-motion .hero-sticky {
  min-height: 100vh;
  padding-top: 96px;
}

html.reduce-motion .hero-track {
  white-space: normal;
  flex-wrap: wrap;
  transform: none !important;
}

html.reduce-motion .hero-title {
  font-size: clamp(54px, 10vw, 180px);
}

html.reduce-motion .hw {
  color: var(--ink);
}

html.reduce-motion .statement-layer {
  position: relative;
  padding-block: 120px;
}

html.reduce-motion .statement-layer--accent {
  display: none;
}

html.reduce-motion .solutions-sticky {
  padding-block: 96px;
}

html.reduce-motion .card-stack {
  display: grid;
  gap: 16px;
  width: 100%;
  height: auto;
  max-height: none;
}

html.reduce-motion .svc-card {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 420px;
  transform: none !important;
  opacity: 1 !important;
}

html.reduce-motion .voices-sticky {
  display: grid;
  gap: 120px;
  padding: 120px var(--pad) 160px;
  justify-items: center;
}

html.reduce-motion .voices-title {
  position: relative;
  inset: auto;
  opacity: 1;
  transform: none;
}

html.reduce-motion .voice {
  position: relative;
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

html.reduce-motion .quote-hl,
html.reduce-motion .quote-hl::before {
  transition: none;
}

html.reduce-motion .quote-hl {
  color: var(--accent);
}

html.reduce-motion .quote-hl::before {
  transform: none;
}

/* ---------- privacy notice (privacy.html) ---------- */
.legal-page {
  min-height: 100vh;
  padding: 28px 0 72px;
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0 52px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.legal-brand .nav-logo {
  width: auto;
  height: 24px;
  filter: brightness(0);
}

.legal-back {
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.legal-back:hover,
.legal-back:focus-visible,
.legal-content a:hover,
.legal-content a:focus-visible {
  color: var(--accent-ink);
}

.legal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.5fr);
  gap: 48px;
  align-items: end;
  padding: 48px 0 72px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tag {
  font-size: 13px;
  font-weight: 500;
  color: var(--mute);
}

.legal-title {
  max-width: 860px;
  margin: 18px 0 0;
  font-size: clamp(52px, 8.5vw, 140px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.legal-meta {
  margin: 0;
  color: var(--mute);
  font-size: 14px;
  line-height: 1.55;
}

.legal-content {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 72px 0 40px;
}

.legal-intro {
  margin: 0 0 64px;
  color: var(--ink);
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.legal-section {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0;
  color: var(--mute);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-section > div {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.65;
}

.legal-section p {
  margin: 0 0 16px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  margin: 0;
  padding-left: 20px;
}

.legal-section li + li {
  margin-top: 8px;
}

.legal-content a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.legal-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 13px;
}

@media (max-width: 720px) {
  .legal-page {
    padding-top: 16px;
  }

  .legal-nav {
    padding-bottom: 34px;
  }

  .legal-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 0 48px;
  }

  .legal-content {
    padding-top: 48px;
  }

  .legal-intro {
    margin-bottom: 44px;
  }

  .legal-section {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 26px 0;
  }

  .legal-footer {
    flex-direction: column;
  }
}
