/* ───────────────────────── Tokens ───────────────────────── */
:root {
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
  --font-display: "Archivo Variable", "Helvetica Neue", sans-serif;
  --font-body: "Instrument Sans Variable", "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #080808;
  --bg-2: #0f0f0f;
  --surface: #121212;
  --fg: #f4f4f2;
  --fg-2: #c9c9c6;
  --muted: #8b8b88;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.28);
  --spot: rgba(255, 255, 255, 0.07);
  --grain-opacity: 0.05;
  --cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'%3E%3Cpath fill='%23f4f4f2' stroke='%23080808' stroke-width='0.75' stroke-linejoin='round' d='M5.5 3.21V20.8c0 .45.54.67.85.35l4.86-4.86a.5.5 0 0 1 .35-.15h6.87a.5.5 0 0 0 .35-.85L6.35 2.85a.5.5 0 0 0-.85.35Z'/%3E%3C/svg%3E") 7 4, auto;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f6f4;
  --bg-2: #eeeeeb;
  --surface: #ffffff;
  --fg: #0b0b0b;
  --fg-2: #2c2c2b;
  --muted: #6d6d6a;
  --line: rgba(0, 0, 0, 0.1);
  --line-strong: rgba(0, 0, 0, 0.3);
  --spot: rgba(0, 0, 0, 0.045);
  --grain-opacity: 0.035;
  --cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'%3E%3Cpath fill='%230b0b0b' stroke='%23f6f6f4' stroke-width='0.75' stroke-linejoin='round' d='M5.5 3.21V20.8c0 .45.54.67.85.35l4.86-4.86a.5.5 0 0 1 .35-.15h6.87a.5.5 0 0 0 .35-.85L6.35 2.85a.5.5 0 0 0-.85.35Z'/%3E%3C/svg%3E") 7 4, auto;
}

/* ───────────────────────── Base ───────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  /* Arrow cursor in the theme's ink; links and buttons keep the pointer, fields keep the text caret. */
  cursor: var(--cursor);
}
input:not([type="range"]),
textarea {
  cursor: text;
}
select {
  cursor: pointer;
}

html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}

/* Film grain keeps the flat black/white from feeling digital-dead. */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
}
::selection {
  background: var(--fg);
  color: var(--bg);
}
:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(var(--max), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

/* ───────────────────────── Type ───────────────────────── */
.label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.label-index {
  display: inline-flex;
  gap: 0.9em;
  align-items: center;
}
.label-index::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.display {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 112;
  font-weight: 500;
  font-size: clamp(3rem, 8.4vw, 9.4rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.h2 {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 110;
  font-weight: 500;
  font-size: clamp(2.2rem, 5.2vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.h3 {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 106;
  font-weight: 500;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.h4 {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 104;
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.lead {
  font-size: clamp(1.08rem, 1.4vw, 1.32rem);
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 58ch;
}
.muted {
  color: var(--muted);
}
.outline-text {
  color: transparent;
  -webkit-text-stroke: 1.2px var(--fg);
}
.split-line {
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}

/* ───────────────────────── Buttons ───────────────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.95rem;
  font-weight: 500;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--fg);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.55s var(--ease);
}
.btn:hover {
  color: var(--bg);
  border-color: var(--fg);
}
.btn:hover::before {
  transform: translateY(0);
}
.btn--solid {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.btn--solid::before {
  background: var(--bg);
}
.btn--solid:hover {
  color: var(--fg);
}
.btn--sm {
  height: 40px;
  padding: 0 18px;
  font-size: 0.86rem;
}
.btn .arrow {
  transition: transform 0.45s var(--ease);
}
.btn:hover .arrow {
  transform: translateX(4px) rotate(-45deg);
}

.link-underline {
  position: relative;
  display: inline-block;
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.link-underline:hover::after,
.link-underline[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ───────────────────────── Header ───────────────────────── */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: transform 0.6s var(--ease), background-color 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.header[data-scrolled="true"] {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--line);
}
.header[data-hidden="true"] {
  transform: translateY(-100%);
}
.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}
.brand img {
  height: 30px;
  width: auto;
}
.brand .brand-word {
  height: 17px;
}
.theme-img-light {
  display: none !important;
}
:root[data-theme="light"] .theme-img-light {
  display: block !important;
}
:root[data-theme="light"] .theme-img-dark {
  display: none !important;
}
.nav {
  display: flex;
  gap: 34px;
  font-size: 0.92rem;
}
.nav a {
  color: var(--fg-2);
  transition: color 0.3s;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--fg);
}
.nav-drop {
  position: relative;
}
.nav-chevron {
  width: 10px;
  height: 10px;
  margin-left: 5px;
  vertical-align: 1px;
  transition: transform 0.4s var(--ease);
}
.nav-drop:hover .nav-chevron,
.nav-drop:focus-within .nav-chevron {
  transform: rotate(180deg);
}
.nav-drop-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 540px;
  margin-top: 16px;
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease), visibility 0.3s;
}
/* Bridges the gap between the link and the panel so hover isn't lost on the way down. */
.nav-drop-panel::before {
  content: "";
  position: absolute;
  inset: -17px 0 auto;
  height: 17px;
}
.nav-drop:hover .nav-drop-panel,
.nav-drop:focus-within .nav-drop-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav .nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 12px;
  color: var(--fg);
  transition: background-color 0.3s;
}
.nav .nav-item:hover,
.nav .nav-item:focus-visible {
  background: var(--spot);
}
.nav-icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s;
}
.nav-icon svg {
  width: 19px;
  height: 19px;
}
.nav-item:hover .nav-icon,
.nav-item:focus-visible .nav-icon {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}
.nav-item-title {
  display: block;
  font-size: 0.9rem;
  line-height: 1.3;
}
.nav-item-blurb {
  display: block;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
}
.price-from .price-cur {
  font-family: var(--font-mono);
  font-size: 0.9em;
  letter-spacing: 0.04em;
  margin-right: 0.25em;
}
.nav-item-blurb .price-num {
  color: var(--fg-2);
}
.nav .nav-item--all {
  justify-content: space-between;
  padding-inline: 16px;
  border: 1px dashed var(--line);
}
.nav-item--all .arrow {
  transition: transform 0.4s var(--ease);
}
.nav-item--all:hover .arrow {
  transform: translateX(4px);
}
.header-tools {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.segmented {
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}
.segmented button {
  position: relative;
  z-index: 1;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.4s var(--ease);
}
.segmented button[aria-pressed="true"] {
  color: var(--bg);
}
.segmented-thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  border-radius: 999px;
  background: var(--fg);
  transition: transform 0.55s var(--ease);
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: border-color 0.3s, transform 0.5s var(--ease);
}
.icon-btn:hover {
  border-color: var(--line-strong);
}
.icon-btn svg {
  width: 18px;
  height: 18px;
}
.theme-icon {
  transition: transform 0.7s var(--ease);
}
:root[data-theme="light"] .theme-icon {
  transform: rotate(180deg);
}

.menu-btn {
  display: none;
}
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: var(--bg);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease);
}
.mobile-menu[data-open="true"] {
  clip-path: inset(0 0 0 0);
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
}
.mobile-menu nav a {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 112;
  font-size: clamp(2.4rem, 11vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
/* Services row expands into a grid of tiles. */
.mobile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu nav .mobile-row a {
  flex: 1;
  border-bottom: 0;
}
.mobile-expand svg {
  transition: transform 0.5s var(--ease);
}
.mobile-group[data-open="true"] .mobile-expand {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}
.mobile-group[data-open="true"] .mobile-expand svg {
  transform: rotate(135deg);
}
.mobile-sub {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.6s var(--ease), visibility 0.6s;
}
.mobile-group[data-open="true"] .mobile-sub {
  grid-template-rows: 1fr;
  visibility: visible;
}
.mobile-sub-grid {
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mobile-sub-grid::before,
.mobile-sub-grid::after {
  content: "";
  grid-column: 1 / -1;
  height: 4px;
}
.mobile-menu nav .mobile-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-family: var(--font-body);
  font-variation-settings: normal;
  font-size: 0.92rem;
  line-height: 1.3;
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), background-color 0.3s;
}
.mobile-group[data-open="true"] .mobile-tile {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.12s + var(--i) * 0.05s);
}
.mobile-menu nav .mobile-tile:active {
  background: var(--spot);
}
.mobile-tile-price {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--muted);
}
.mobile-tile .nav-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.mobile-menu nav .mobile-tile:last-child {
  grid-column: 1 / -1;
  min-height: 0;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

@media (max-width: 960px) {
  .nav,
  .header-tools .btn,
  .header-tools .segmented {
    display: none;
  }
  .menu-btn {
    display: grid;
  }
  .header-inner {
    grid-template-columns: 1fr auto;
  }
}

/* ───────────────────────── Sections ───────────────────────── */
main {
  position: relative;
}
.section {
  position: relative;
  padding-block: clamp(96px, 14vw, 200px);
}
.section--tight {
  padding-block: clamp(64px, 8vw, 120px);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 64px;
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 96px);
}
.section-head .label {
  grid-column: 1 / -1;
}
@media (max-width: 860px) {
  .section-head {
    grid-template-columns: 1fr;
  }
}
.rule {
  border: 0;
  height: 1px;
  background: var(--line);
}

/* Cards with a pointer-following spotlight (--mx/--my set in JS). */
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.4s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--spot), transparent 60%);
  transition: opacity 0.4s;
}
.card:hover {
  border-color: var(--line-strong);
}
.card:hover::before {
  opacity: 1;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 12px;
}
.check-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  color: var(--fg-2);
  font-size: 0.95rem;
  line-height: 1.5;
}
.check-list li::before {
  content: "";
  width: 10px;
  height: 1px;
  margin-top: 0.8em;
  background: var(--fg);
}

/* ───────────────────────── Hero ───────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-h) + 40px) 0 clamp(32px, 5vw, 64px);
  overflow: hidden;
}
/* Portrait screens keep a band above the headline for the 3D mark (scenes.js fits the mark into it). */
@media (max-aspect-ratio: 11/10) {
  .hero {
    padding-top: calc(var(--header-h) + 40px + clamp(150px, 42vw, 320px));
  }
}
.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.hero-content a,
.hero-content button {
  pointer-events: auto;
}
.hero-title {
  /* The floor shrinks on very narrow screens so "maintained." still fits on one line. */
  font-size: clamp(min(2.9rem, 12.4vw), 7.2vw, 8.4rem);
}
.hero-bottom {
  margin-top: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 32px;
  align-items: end;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-meta {
  position: absolute;
  top: calc(var(--header-h) + 28px);
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
}
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.scroll-cue i {
  width: 1px;
  height: 36px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--fg);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}
@media (max-width: 760px) {
  .hero-bottom {
    grid-template-columns: 1fr;
  }
  .hero-meta span:last-child {
    display: none;
  }
}

.scene-fill,
.scene-fill > div,
[data-scene] {
  width: 100%;
  height: 100%;
}

/* ───────────────────────── Marquee ───────────────────────── */
.marquee {
  display: flex;
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 22px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  flex-shrink: 0;
  gap: 56px;
  padding-right: 56px;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 56px;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 112;
  font-size: clamp(1.4rem, 2.6vw, 2.4rem);
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.marquee-item::after {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--fg);
  transform: rotate(45deg) skew(-12deg, -12deg);
}
@keyframes marquee {
  to { transform: translateX(-100%); }
}

/* ───────────────────────── Service chapters ───────────────────────── */
.chapter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 110px);
  border-top: 1px solid var(--line);
}
.chapter:nth-child(even) .chapter-scene {
  order: -1;
}
.chapter-num {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 125;
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
}
.chapter-scene {
  position: relative;
  aspect-ratio: 1 / 1;
  max-height: 640px;
  width: 100%;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 45%, var(--spot), transparent 65%),
    var(--bg-2);
  overflow: hidden;
}
.chapter-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 50%, transparent 30%, #000 90%);
  opacity: 0.5;
}
.scene-tag {
  position: absolute;
  z-index: 2;
  left: 18px;
  top: 16px;
}
.scene-tag--r {
  left: auto;
  right: 18px;
}
.chapter-points {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.84rem;
  color: var(--fg-2);
  transition: border-color 0.3s, color 0.3s;
}
.chip:hover {
  border-color: var(--line-strong);
  color: var(--fg);
}
@media (max-width: 900px) {
  .chapter {
    grid-template-columns: 1fr;
  }
  .chapter:nth-child(even) .chapter-scene {
    order: 0;
  }
}

/* ───────────────────────── Horizontal steps ───────────────────────── */
.steps-pin {
  position: relative;
  overflow: hidden;
}
.steps-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding-inline: var(--gutter);
}
.step {
  width: min(460px, 78vw);
  min-height: 380px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.step-n {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 125;
  font-size: 5.5rem;
  line-height: 0.8;
  letter-spacing: -0.06em;
}
.steps-progress {
  height: 1px;
  background: var(--line);
  margin-top: 40px;
}
.steps-progress i {
  display: block;
  height: 100%;
  background: var(--fg);
  transform-origin: left;
  transform: scaleX(0);
}
@media (max-width: 760px) {
  .steps-track {
    flex-direction: column;
    width: auto;
  }
  .step {
    width: 100%;
    min-height: 0;
    gap: 40px;
  }
}

/* ───────────────────────── Grids ───────────────────────── */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 16px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
.pad {
  padding: clamp(24px, 3vw, 36px);
}

/* ───────────────────────── Also-we-do (web + support) ───────────────────────── */
.browser-stack {
  position: relative;
  height: 320px;
  perspective: 1200px;
}
.browser {
  position: absolute;
  inset: 0 10% 10% 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  transform-style: preserve-3d;
  transition: transform 0.8s var(--ease);
  overflow: hidden;
}
.browser-bar {
  height: 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 6px;
  align-items: center;
  padding-left: 12px;
}
.browser-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}
.browser-body {
  padding: 16px;
  display: grid;
  gap: 10px;
}
.skeleton {
  height: 10px;
  border-radius: 4px;
  background: var(--line);
}
.terminal {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.9;
  height: 320px;
  padding: 20px;
  color: var(--fg-2);
  overflow: hidden;
}
.terminal .ok { color: var(--fg); }
.terminal .caret {
  display: inline-block;
  width: 8px;
  height: 1em;
  vertical-align: -2px;
  background: var(--fg);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ───────────────────────── Pricing ───────────────────────── */
.plan {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  min-height: 100%;
}
.plan--featured {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.plan--featured .muted,
.plan--featured .label {
  color: color-mix(in srgb, var(--bg) 60%, var(--fg));
}
.plan--featured .check-list li { color: inherit; }
.plan--featured .check-list li::before { background: var(--bg); }
.plan--featured .btn { border-color: var(--bg); color: var(--bg); }
.plan--featured .btn::before { background: var(--bg); }
.plan--featured .btn:hover { color: var(--fg); }
.plan-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.price {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 110;
  font-weight: 500;
  font-size: clamp(2.2rem, 3.4vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1;
}
.price-cur {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  font-weight: 500;
  align-self: flex-start;
  margin-top: 0.3em;
}
.price-suffix {
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0;
  opacity: 0.6;
  font-weight: 400;
}
.plan .btn {
  margin-top: auto;
  justify-content: center;
}

.pricing-nav {
  position: sticky;
  top: calc(var(--header-h) + 12px);
  z-index: 10;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  width: fit-content;
  margin-inline: auto;
}
.pricing-nav a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--fg-2);
  transition: background-color 0.3s, color 0.3s;
}
.pricing-nav a:hover,
.pricing-nav a[data-active="true"] {
  background: var(--fg);
  color: var(--bg);
}

.price-block {
  padding-block: clamp(72px, 9vw, 130px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 120px;
}
.price-block-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.estimator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 32px;
  align-items: center;
  padding: 24px 28px;
  margin-bottom: 16px;
}
.estimator input[type="range"] {
  width: 100%;
  appearance: none;
  height: 1px;
  background: var(--line-strong);
  outline-offset: 10px;
}
.estimator input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--fg);
  cursor: grab;
  box-shadow: 0 0 0 6px var(--spot);
}
.estimator input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: var(--fg);
}
@media (max-width: 680px) {
  .estimator { grid-template-columns: 1fr; }
}

/* Accounting is quoted, so its block pairs the starting price with a volume scale instead of plan cards. */
.quote-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}
.quote-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 22px;
}
.quote-card-body .price {
  font-size: clamp(3.4rem, 6vw, 5.6rem);
  gap: 0.16em;
}
.quote-card-body .muted {
  max-width: 44ch;
}
.quote-scene {
  aspect-ratio: auto;
  min-height: 420px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
}
@media (max-width: 860px) {
  .quote-card { grid-template-columns: 1fr; }
  .quote-scene { min-height: 300px; border-left: 0; border-top: 1px solid var(--line); order: -1; }
}

.slabs-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.slabs-head .muted {
  font-size: 0.9rem;
}
.slabs-scale {
  display: grid;
  gap: 8px;
}
.slab {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 18px 16px 16px;
  border-radius: 12px;
  transition: background-color 0.35s;
}
.slab:hover,
.slab:focus-visible {
  background: var(--spot);
}
.slab-range {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 106;
  font-weight: 500;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
/* The meter steps up with each slab, so the scale reads as rising volume. */
.slab-meter {
  height: 14px;
  display: flex;
  align-items: flex-end;
}
.slab-meter i {
  width: 100%;
  height: calc(3px + var(--i) * 3.5px);
  border-radius: 2px;
  background: var(--fg);
  opacity: calc(0.4 + var(--i) * 0.2);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1s var(--ease) calc(var(--i) * 0.18s), opacity 0.35s;
}
.slab:last-child .slab-meter i {
  -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent);
  mask-image: linear-gradient(90deg, #000 55%, transparent);
}
.slabs[data-in="true"] .slab-meter i {
  transform: none;
}
.slab:hover .slab-meter i {
  opacity: 1;
}
.slab-fit {
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--muted);
}
.slab-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s, transform 0.45s var(--ease);
}
.slab:hover .slab-cta,
.slab:focus-visible .slab-cta {
  opacity: 1;
  transform: none;
}
@media (hover: none), (max-width: 860px) {
  .slab-cta { opacity: 1; transform: none; }
}
@media (max-width: 860px) {
  .slabs-scale { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 520px) {
  .slabs-scale { grid-template-columns: 1fr !important; }
}
@media (prefers-reduced-motion: reduce) {
  .slab-meter i { transform: none; transition: none; }
}

/* ───────────────────────── Page hero ───────────────────────── */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(64px, 10vw, 150px)) 0 clamp(48px, 6vw, 96px);
  overflow: hidden;
}
.page-hero .display {
  /* Capped so the longest words still fit the title column on wide screens. */
  font-size: clamp(3rem, 9vw, 9rem);
}
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  margin-top: 40px;
}
@media (max-width: 860px) {
  .page-hero-grid { grid-template-columns: 1fr; }
}
.page-mark {
  position: absolute;
  right: -4vw;
  top: 12%;
  width: min(42vw, 560px);
  opacity: 0.06;
  pointer-events: none;
}

.service-block {
  scroll-margin-top: 100px;
}
.usecase {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
}
.usecase-n {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

/* ───────────────────────── About ───────────────────────── */
.equation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 40px);
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 112;
  font-size: clamp(2rem, 6vw, 5.4rem);
  letter-spacing: -0.045em;
  line-height: 1;
  text-align: center;
}
.equation .op {
  font-family: var(--font-mono);
  font-size: 0.5em;
  color: var(--muted);
}

/* ───────────────────────── Contact ───────────────────────── */
.field {
  display: grid;
  gap: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--fg);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 12px 0;
  font-size: 1.05rem;
  border-radius: 0;
  transition: border-color 0.3s;
}
.field select option {
  background: var(--bg);
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--fg);
}
.contact-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-variation-settings: "wdth" 108;
  font-size: clamp(1.3rem, 2.6vw, 2.3rem);
  letter-spacing: -0.03em;
}
.contact-line > span:first-child {
  transition: transform 0.5s var(--ease);
}
.contact-line:hover > span:first-child {
  transform: translateX(14px);
}
.contact-line .arrow {
  transition: transform 0.5s var(--ease);
}
.contact-line:hover .arrow {
  transform: rotate(-45deg);
}

/* ───────────────────────── CTA + Footer ───────────────────────── */
.cta {
  position: relative;
  text-align: center;
  padding-block: clamp(110px, 16vw, 240px);
  overflow: hidden;
}
.cta .display {
  font-size: clamp(3rem, 10vw, 11rem);
}
.footer {
  border-top: 1px solid var(--line);
  padding-top: clamp(56px, 7vw, 96px);
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}
.footer-grid ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 16px;
  color: var(--fg-2);
  font-size: 0.95rem;
}
.footer-word {
  margin-top: clamp(56px, 8vw, 110px);
  width: 100%;
  height: auto;
  opacity: 0.95;
}
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 0 28px;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* ───────────────────────── Motion preferences ───────────────────────── */
[data-reveal] {
  will-change: transform, opacity;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ───────────────────────── VarthAI (voice agent brand) ───────────────────────── */
.varthai-mark {
  height: clamp(38px, 5vw, 54px);
  width: auto;
}
.varthai-badge {
  display: flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 20px;
}
.varthai-badge--sm .varthai-mark {
  height: 32px;
}
.section-head .varthai-badge {
  grid-column: 1 / -1;
  margin-bottom: 0;
}
