/* New8 Systems. Colours, type and spacing live in :root, so change them here. */
:root {
  --amber: #FFB547;        /* the brand orange: buttons, the 8, highlights on dark */
  --amber-deep: #B25006;   /* orange for text on the light background (readable) */
  --paper: #F6F4EE;
  --paper-2: #EEEBE3;
  --card: #FCFBF8;
  --ink: #141414;
  --ink-2: #1D1D1D;
  --ink-3: #2A2A2A;
  --muted: #5F5E5A;
  --muted-ink: #A9A7A0;
  --line: rgba(20, 20, 20, 0.12);
  --line-ink: rgba(246, 244, 238, 0.14);
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-std: cubic-bezier(0.4, 0, 0.2, 1);
  --wrap: 1280px;
  --gut: clamp(20px, 5vw, 56px);
  --nav-h: 56px;
  interpolate-size: allow-keywords;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--amber);
  color: var(--ink);
}

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

.ink :focus-visible,
.foot :focus-visible,
.card.ai :focus-visible,
.calc-out :focus-visible,
.cx-quote :focus-visible {
  outline-color: var(--paper);
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gut) * 2);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  left: 16px;
  top: -72px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.mono {
  font-family: var(--mono);
}

.ico {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Type ---------- */

.kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.ink .kicker,
.card.ai .kicker,
.calc-out .kicker {
  color: var(--muted-ink);
}

em {
  font-style: normal;
  color: var(--amber-deep);
}

.ink em,
.card.ai em,
.tile-log em {
  color: var(--amber);
}

.display {
  margin-top: 22px;
  font-size: clamp(3rem, 7vw, 6.1rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.display .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.display .line > span {
  display: inline-block;
}

.h2 {
  margin-top: 16px;
  max-width: 15ch;
  font-size: clamp(2.4rem, 5.4vw, 4.75rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.sub,
.lead {
  max-width: 44ch;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--muted);
  text-wrap: pretty;
}

.lead {
  max-width: 38ch;
  margin-top: 26px;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
}

.ink .sub {
  color: var(--muted-ink);
}

/* ---------- Buttons and links ---------- */

.pill {
  --bg: var(--amber);
  --fg: var(--ink);
  --bg-h: var(--ink);
  --fg-h: var(--paper);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.35s var(--ease), transform 0.2s var(--ease-std);
}

.pill::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--bg-h);
  transform: translateY(102%);
  transition: transform 0.45s var(--ease);
}

.pill .ico {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}

.pill:active {
  transform: scale(0.98);
}

.pill-sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.pill-ink {
  --bg: var(--ink);
  --fg: var(--paper);
  --bg-h: var(--paper);
  --fg-h: var(--ink);
}

.ink .pill,
.card.ai .pill,
.calc-out .pill {
  --bg-h: var(--paper);
  --fg-h: var(--ink);
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
  cursor: pointer;
}

.textlink::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

.round {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  cursor: pointer;
  transition: border-color 0.15s var(--ease-std), background 0.15s var(--ease-std);
}

.round .ico {
  width: 18px;
  height: 18px;
}

@media (hover: hover) and (pointer: fine) {
  .pill:hover {
    color: var(--fg-h);
  }

  .pill:hover::before {
    transform: none;
  }

  .pill:hover .ico {
    transform: translateX(3px);
  }

  .textlink:hover::after {
    transform: translateX(4px);
  }

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

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--ink);
  background: rgba(246, 244, 238, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-std), background 0.3s var(--ease-std), color 0.3s var(--ease-std);
}

.nav.is-stuck {
  border-bottom-color: var(--line);
}

.nav.on-dark {
  border-bottom-color: var(--line-ink);
  background: rgba(20, 20, 20, 0.72);
  color: var(--paper);
}

.nav.on-dark .lockup {
  color: var(--paper);
}

.nav.on-dark .lockup span {
  color: var(--muted-ink);
}

.nav.on-dark :focus-visible {
  outline-color: var(--paper);
}

.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
}

.lockup {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--ink);
  text-decoration: none;
}

.lockup b {
  font-family: 'Unbounded', var(--font);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.lockup span {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.78;
  transition: opacity 0.15s var(--ease-std);
}

.nav-links a:hover {
  opacity: 1;
}

.nav-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
}

.nav-progress i {
  display: block;
  height: 100%;
  background: var(--amber);
  transform-origin: left;
  transform: scaleX(0);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: clip;
  padding-top: calc(var(--nav-h) + clamp(24px, 5vh, 64px));
  padding-bottom: clamp(48px, 8vh, 96px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  min-height: min(calc(100svh - var(--nav-h) - 96px), 820px);
}

.live {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-dot {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber-deep);
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--amber);
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 34px;
}

.assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  max-width: 640px;
  margin-top: 44px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}

.assurances b {
  margin-right: 4px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.hero-stage {
  position: relative;
  height: clamp(380px, 68vh, 680px);
}

.eight-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.eight-flat {
  height: 76%;
  width: auto;
  fill: none;
  stroke: var(--amber);
  stroke-width: 64;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 0.8s var(--ease);
}

.eight-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}

.eight-stage.is-3d .eight-canvas {
  opacity: 1;
}

.eight-stage.is-3d .eight-flat {
  opacity: 0;
}

.eight-floor {
  position: absolute;
  left: 50%;
  bottom: 3%;
  width: 52%;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(20, 20, 20, 0.2), rgba(20, 20, 20, 0));
  transform: translateX(-50%);
}

/* ---------- Sections ---------- */

.sec {
  padding-block: clamp(96px, 12vw, 168px);
}

.ink {
  background: var(--ink);
  color: var(--paper);
}

.head {
  display: grid;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.head-split {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: end;
  gap: 24px 56px;
}

.head-side {
  display: grid;
  justify-items: start;
  gap: 24px;
}

.ticks {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.ticks li::before {
  content: "";
  flex: none;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--amber-deep);
  border-bottom: 2px solid var(--amber-deep);
  transform: translateY(-3px) rotate(-45deg);
}

.ink .ticks li::before {
  border-color: var(--amber);
}

/* ---------- 01 Proof ---------- */

.proof {
  padding-bottom: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.stats li {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 36px 32px 36px 0;
  border-top: 1px solid var(--line);
}

.stats li:nth-child(even) {
  padding-left: clamp(20px, 4vw, 56px);
  border-left: 1px solid var(--line);
}

.stats b {
  font-size: clamp(2.6rem, 5.6vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.stats li > span {
  font-size: 17px;
  font-weight: 600;
}

.stats small {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.marquee {
  margin-top: clamp(72px, 9vw, 128px);
  padding-top: 28px;
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.marquee .kicker {
  margin-bottom: 14px;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 0 0.45em;
  width: max-content;
  padding-bottom: 0.1em;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  animation: marquee 48s linear infinite;
}

.marquee-track span {
  color: var(--paper);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
}

.marquee-track i {
  font-size: 0.45em;
  font-style: normal;
  color: var(--amber-deep);
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- 02 The system ---------- */

.sys-stage {
  padding-block: clamp(8px, 2vw, 24px);
}

.sys-grid {
  display: grid;
  gap: 40px;
}

.sys-num {
  display: none;
}

.sys-loop {
  position: relative;
  width: 100%;
  max-width: 760px;
  aspect-ratio: 1000 / 420;
  margin-inline: auto;
}

.sys-loop svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sys-loop .track {
  fill: none;
  stroke: var(--line-ink);
  stroke-width: 3;
}

.sys-loop .flow {
  fill: none;
  stroke: var(--amber);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 0;
}

.node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid var(--muted-ink);
  border-radius: 50%;
  background: var(--ink);
  transition: background 0.3s var(--ease-std), border-color 0.3s var(--ease-std), transform 0.4s var(--ease);
}

.node b {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted-ink);
  transition: color 0.3s var(--ease-std);
}

.node[data-s="brand"] b,
.node[data-s="automation"] b {
  top: auto;
  bottom: calc(100% + 10px);
}

/* the side points sit on the curve's outer edge, so their labels go beside them */
.node[data-s="reporting"] b,
.node[data-s="content"] b {
  top: 50%;
  transform: translateY(-50%);
}

.node[data-s="reporting"] b {
  left: auto;
  right: calc(100% + 12px);
}

.node[data-s="content"] b {
  left: calc(100% + 12px);
}

.sys-loop[data-active="brand"] [data-s="brand"],
.sys-loop[data-active="content"] [data-s="content"],
.sys-loop[data-active="email"] [data-s="email"],
.sys-loop[data-active="automation"] [data-s="automation"],
.sys-loop[data-active="reporting"] [data-s="reporting"] {
  border-color: var(--amber);
  background: var(--amber);
  transform: scale(1.4);
}

.sys-loop[data-active="brand"] [data-s="brand"] b,
.sys-loop[data-active="content"] [data-s="content"] b,
.sys-loop[data-active="email"] [data-s="email"] b,
.sys-loop[data-active="automation"] [data-s="automation"] b,
.sys-loop[data-active="reporting"] [data-s="reporting"] b {
  color: var(--paper);
}

.hub {
  position: absolute;
  left: 50%;
  top: 50%;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.sys-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sys-panel {
  display: grid;
  justify-items: start;
  gap: 14px;
  max-width: 560px;
  padding: 32px 0;
  border-top: 1px solid var(--line-ink);
}

.sys-panel h3 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.sys-panel > p:not(.kicker):not(.sys-proof) {
  color: var(--muted-ink);
}

.sys-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 181, 71, 0.28);
  border-radius: 14px;
  background: rgba(255, 181, 71, 0.08);
  font-size: 15px;
}

.sys-proof b {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--amber);
}

.sys.is-pinned .sys-stage {
  display: grid;
  align-items: center;
  height: 100vh;
  padding: var(--nav-h) 0 0;
}

.sys.is-pinned .sys-grid {
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.5fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
}

.sys.is-pinned .sys-num {
  display: grid;
  align-content: center;
  gap: 10px;
}

.sys-num b {
  font-size: clamp(7rem, 12vw, 11.5rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--amber);
}

.sys-num span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted-ink);
}

.sys-bar {
  display: block;
  width: 120px;
  height: 2px;
  margin-top: 14px;
  background: var(--line-ink);
}

.sys-bar i {
  display: block;
  height: 100%;
  background: var(--amber);
  transform-origin: left;
  transform: scaleX(0.2);
}

.sys.is-pinned .sys-loop {
  max-width: none;
}

.sys.is-pinned .sys-panel {
  grid-area: 1 / 1;
  align-self: center;
  align-content: start;
  padding: 0;
  border-top: 0;
}

.sys-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: clamp(48px, 6vw, 80px);
  padding: 28px 32px;
  border: 1px solid var(--line-ink);
  border-radius: 24px;
}

.sys-cta p {
  max-width: 54ch;
  color: var(--muted-ink);
}

.sys-cta b {
  color: var(--paper);
}

/* ---------- 03 Working with Rafi (tiles) ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tile {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
}

.tile h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.tile p:not(.tile-num):not(.kicker) {
  font-size: 15.5px;
  color: var(--muted);
}

.tile-num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--amber-deep);
}

.tile-feed {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  align-content: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.tile-log {
  grid-column: 3 / 5;
  gap: 10px;
  border-color: transparent;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
}

.log-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  color: var(--muted-ink);
}

.log-head .sp {
  flex: 1;
}

.log-line span {
  margin-right: 14px;
  color: var(--muted-ink);
}

.log-line.ok {
  color: var(--amber);
}

.tile-one {
  grid-column: 3 / 5;
  align-content: end;
  background: var(--paper-2);
}

.tile-one h3 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.feed-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.feed-brand {
  font-family: 'Unbounded', var(--font);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.feed-title {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.feed-tag {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.feed-list {
  display: grid;
  align-content: center;
  gap: 4px;
  margin: 0;
  padding: 12px;
  list-style: none;
}

.feed-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 16px 14px;
  border-radius: 18px;
}

.feed-row:first-child {
  background: rgba(255, 181, 71, 0.14);
}

.feed-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--amber);
}

.feed-ico .ico {
  width: 18px;
  height: 18px;
}

.feed-txt b {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
}

.feed-txt span {
  display: block;
  overflow: hidden;
  font-size: 13.5px;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.feed-chip {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 181, 71, 0.2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}

.feed-time {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

/* ---------- 04 The work ---------- */

.rail-ctrls {
  display: flex;
  gap: 10px;
}

.rail {
  --rail-pad: max(var(--gut), calc((100vw - var(--wrap)) / 2));
  display: flex;
  gap: 20px;
  padding: 8px var(--rail-pad) 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--rail-pad);
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
}

.rail::-webkit-scrollbar {
  display: none;
}

.rail:focus-visible {
  outline-offset: -4px;
}

.rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.rail img {
  -webkit-user-drag: none;
  user-select: none;
}

.card {
  display: flex;
  flex: 0 0 clamp(290px, 30vw, 400px);
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  scroll-snap-align: start;
}

.card h3 {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.card.ai {
  border-color: transparent;
  background: var(--ink);
  color: var(--paper);
}

.card.ai .big {
  margin-top: auto;
}

.card.ai .card-foot {
  margin-top: 0;
}

.card-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-ink);
}

.tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-deep);
}

.card.ai .tag {
  color: var(--amber);
}

.big {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  border-block: 1px solid var(--line-ink);
}

.big b {
  font-size: clamp(2.2rem, 3vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--amber);
}

.big span {
  font-size: 14px;
  color: var(--muted-ink);
}

.minis {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
  color: var(--muted-ink);
}

.minis b {
  margin-right: 4px;
  font-weight: 600;
  color: var(--paper);
}

.tools {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted-ink);
}

.card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-ink);
  font-size: 12.5px;
  color: var(--muted-ink);
}

.shot-card figure {
  overflow: hidden;
  margin: -12px -12px 6px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #FFFFFF;
}

.shot-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 16px;
  object-fit: contain;
}

.shot-card p:not(.tag):not(.metric) {
  font-size: 15px;
  color: var(--muted);
}

.metric {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.metric b {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--amber-deep);
}

.metric span {
  font-size: 13px;
  color: var(--muted);
}

.principles {
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.principles ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: p;
}

.principles li {
  display: grid;
  align-content: start;
  gap: 8px;
  font-size: 15px;
  color: var(--muted);
  counter-increment: p;
}

.principles li::before {
  content: counter(p, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--amber-deep);
}

.principles b {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- 05 Voices ---------- */

.voices {
  background: var(--paper-2);
}

.voice {
  display: grid;
  gap: 40px;
}

.voice-body {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr);
  grid-template-areas: "q r" "c r";
  align-items: end;
  gap: 32px 64px;
}

.voice-body[hidden] {
  display: none;
}

.voice-body.is-in {
  animation: fadeUp 0.5s var(--ease);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.voice-body blockquote {
  grid-area: q;
  font-size: clamp(1.45rem, 2.5vw, 2.3rem);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}

.voice-body figcaption {
  grid-area: c;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--muted);
}

.voice-body figcaption b {
  display: block;
  font-size: 16px;
  color: var(--ink);
}

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--amber);
  font-size: 14px;
  font-weight: 700;
}

.voice-result {
  grid-area: r;
  align-self: end;
  display: grid;
  gap: 6px;
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.voice-result b {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--amber-deep);
}

.voice-result span {
  font-size: 14px;
  color: var(--muted);
}

.voice-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.voice-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.voice-tab,
.cx-tab {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--ease-std), color 0.2s var(--ease-std), border-color 0.2s var(--ease-std);
}

.voice-tab[aria-pressed="true"],
.cx-tab[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.voice-arrows {
  display: flex;
  align-items: center;
  gap: 10px;
}

.voice-count {
  margin-right: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- 06 Email designs ---------- */

.phones {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 36px);
  max-width: calc(var(--wrap) + var(--gut) * 2);
  margin-inline: auto;
  padding-inline: var(--gut);
  perspective: 1800px;
}

.ed-card {
  display: grid;
  align-content: start;
  gap: 18px;
}

.phone {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 19;
  padding: 10px;
  border: 0;
  border-radius: 46px;
  background: var(--ink);
  box-shadow: inset 0 0 0 1.5px #3A3A3A, 0 40px 80px -40px rgba(20, 20, 20, 0.5);
  cursor: pointer;
  transform-origin: 50% 100%;
}

.phone::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  z-index: 2;
  width: 30%;
  height: 22px;
  border-radius: 999px;
  background: #0B0B0B;
  transform: translateX(-50%);
}

.screen {
  position: relative;
  display: block;
  height: 100%;
  padding-top: 46px;   /* a status-bar strip, so the notch never covers the email */
  overflow: hidden;
  border-radius: 36px;
  background: #FFFFFF;
  container-type: size;
}

.screen img {
  width: 100%;
  transition: transform var(--ed-time, 6s) cubic-bezier(0.45, 0, 0.55, 1);
}

.phone:focus-visible .screen img {
  transform: translateY(calc(-100% + 100cqh));
}

.phone-hint {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 2;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.84);
  color: var(--paper);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transform: translateX(-50%);
}

@media (hover: hover) and (pointer: fine) {
  .phone:hover .screen img {
    transform: translateY(calc(-100% + 100cqh));
  }
}

.ed-meta h3 {
  margin-top: 6px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.ed-meta p:last-child {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- 07 Process ---------- */

.proc {
  padding-block: 0;
}

.proc-stage {
  padding-block: clamp(96px, 12vw, 168px);
}

.proc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(40px, 6vw, 96px);
}

.proc-head .sub {
  margin-top: 24px;
}

.proc-steps {
  position: relative;
  padding-left: 48px;
}

.rail-line {
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line-ink);
}

.rail-line i {
  display: block;
  height: 100%;
  background: var(--amber);
  transform-origin: top;
}

.proc-steps ol {
  display: grid;
  gap: clamp(20px, 3.2vh, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  display: grid;
  gap: 6px;
}

.step::before {
  content: "";
  position: absolute;
  left: -43px;
  top: 4px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--amber);
  border-radius: 50%;
  background: var(--ink);
}

.step-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--amber);
}

.step h3 {
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.step > p:not(.step-num) {
  max-width: 46ch;
  font-size: 16px;
  color: var(--muted-ink);
}

.ticks-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 14px;
}

.proc.is-pinned .proc-stage {
  display: grid;
  align-items: center;
  min-height: 100vh;
  padding-block: calc(var(--nav-h) + 24px) 24px;
}

.proc.is-pinned .proc-grid {
  align-items: center;
}

/* ---------- 08 Calculator ---------- */

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 16px;
}

.calc-in,
.calc-out {
  display: grid;
  align-content: start;
  border-radius: 28px;
  padding: clamp(24px, 3vw, 40px);
}

.calc-in {
  gap: 30px;
  border: 1px solid var(--line);
  background: var(--card);
}

.cur-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cur-row .kicker {
  margin-right: 8px;
}

.cur {
  min-width: 44px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.cur[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.field {
  display: grid;
  gap: 10px;
}

.field-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.field label {
  font-weight: 600;
}

.field output {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.range {
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(var(--amber), var(--amber)) 0 / var(--fill, 50%) 100% no-repeat, var(--paper-2);
}

.range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: var(--paper-2);
}

.range::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--amber);
}

.range::-webkit-slider-thumb {
  width: 28px;
  height: 28px;
  margin-top: -11px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(20, 20, 20, 0.18);
  -webkit-appearance: none;
}

.range::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(20, 20, 20, 0.18);
}

.range:focus-visible {
  outline-offset: 4px;
}

.calc-note {
  font-size: 14.5px;
  color: var(--muted);
}

.calc-out {
  gap: 22px;
  background: var(--ink);
  color: var(--paper);
}

.out-big {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
}

.out-big span {
  font-size: clamp(4rem, 9vw, 7.5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}

.out-big small {
  font-size: 18px;
  font-weight: 500;
  color: var(--muted-ink);
}

.formula {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted-ink);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tiles div {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
  background: var(--ink-3);
}

.tiles small {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-ink);
}

.tiles b {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.tiles .is-hi {
  background: var(--amber);
  color: var(--ink);
}

.tiles .is-hi small {
  color: rgba(20, 20, 20, 0.72);
}

.bars {
  display: grid;
  gap: 8px;
}

.bar-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-ink);
}

.bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--ink-3);
}

.bar + .bar-top {
  margin-top: 8px;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--muted-ink);
  transform-origin: left;
  transform: scaleX(var(--w, 1));
  transition: transform 0.4s var(--ease);
}

.bar.is-amber i {
  background: var(--amber);
}

.calc-out .pill {
  justify-self: start;
}

.fine {
  font-size: 13.5px;
  color: var(--muted-ink);
}

.calc-out .textlink {
  font-family: var(--font);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}

/* ---------- 09 About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(32px, 6vw, 96px);
}

.photo {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 32px;
  background: var(--paper-2);
}

.photo svg {
  height: 62%;
  width: auto;
  fill: none;
  stroke-width: 64;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.photo .pm-base {
  stroke: rgba(20, 20, 20, 0.07);
}

.photo .pm-draw {
  stroke: var(--amber);
  stroke-dasharray: 1000;
  stroke-dashoffset: 0;
}

.photo.has-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}

.about-copy {
  display: grid;
  justify-items: start;
  gap: 24px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  margin: 0;
  border-top: 1px solid var(--line);
}

.facts div {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.facts div:nth-child(even) {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.facts dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts dd {
  margin-top: 4px;
  font-weight: 600;
}

.note {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
}

.note blockquote {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
}

.note figcaption {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 10 FAQ ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(32px, 6vw, 96px);
}

.faq-grid .head {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  margin: 0;
}

.faq {
  border-top: 1px solid var(--line);
}

.faq:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker,
.cx-more summary::-webkit-details-marker {
  display: none;
}

.faq .plus {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform 0.35s var(--ease), background 0.2s var(--ease-std), border-color 0.2s var(--ease-std);
}

.faq .plus::before,
.faq .plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.8px;
  margin: -0.9px 0 0 -6px;
  border-radius: 2px;
  background: currentColor;
}

.faq .plus::after {
  transform: rotate(90deg);
}

.faq[open] .plus {
  border-color: var(--amber);
  background: var(--amber);
  transform: rotate(45deg);
}

.faq p {
  max-width: 62ch;
  padding-bottom: 26px;
  color: var(--muted);
}

.faq::details-content {
  height: 0;
  overflow: clip;
  transition: height 0.4s var(--ease), content-visibility 0.4s allow-discrete;
}

.faq[open]::details-content {
  height: auto;
}

/* ---------- Close ---------- */

.close {
  padding-block: clamp(110px, 14vw, 200px);
  background: var(--amber);
  color: var(--ink);
}

.close .kicker {
  color: rgba(20, 20, 20, 0.74);
}

.close-title {
  max-width: 11ch;
  margin-top: 20px;
  font-size: clamp(3.2rem, 9.4vw, 9rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.hollow {
  color: var(--amber);
  -webkit-text-stroke: calc(2px + 0.03em) var(--ink);   /* half is hidden under the fill */
  paint-order: stroke fill;
}

@supports not (-webkit-text-stroke: 1px) {
  .hollow {
    color: var(--ink);
  }
}

.close-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 48px;
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: 28px;
  border-top: 1px solid rgba(20, 20, 20, 0.2);
}

.close-row > p {
  max-width: 40ch;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 500;
}

.close .actions {
  margin: 0;
}

.close .textlink {
  text-decoration-color: var(--ink);
  text-transform: none;
  letter-spacing: 0.02em;
}

.close-chips {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.close-chips li {
  padding: 8px 12px;
  border: 1px solid rgba(20, 20, 20, 0.25);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Footer ---------- */

.foot {
  padding-block: 72px 32px;
  background: var(--ink);
  color: var(--paper);
}

.foot .lockup {
  color: var(--paper);
}

.foot .lockup span,
.foot .kicker {
  color: var(--muted-ink);
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}

.foot-brand p {
  max-width: 36ch;
  margin-top: 16px;
  font-size: 15px;
  color: var(--muted-ink);
}

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

.foot ul a {
  display: inline-block;
  padding: 6px 0;
  font-size: 15px;
  text-decoration: none;
  opacity: 0.85;
}

.foot ul a:hover {
  opacity: 1;
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-underline-offset: 5px;
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line-ink);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-ink);
}

/* ---------- Dialogs ---------- */

dialog {
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 120px rgba(20, 20, 20, 0.35);
}

dialog::backdrop {
  background: rgba(20, 20, 20, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

dialog[open] {
  animation: dlgIn 0.45s var(--ease);
}

@keyframes dlgIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
}

.cx-panel {
  width: min(880px, calc(100vw - 32px));
  height: min(92vh, 1000px);
  border-radius: 28px;
}

.cx-shell,
.ev-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
}

.cx-head {
  display: grid;
  gap: 14px;
  padding: 18px 24px 16px;
  border-bottom: 1px solid var(--line);
}

.cx-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cx-top h2 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.cx-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  cursor: pointer;
}

.cx-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cx-scroll {
  padding: clamp(24px, 4vw, 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.cx-case {
  display: grid;
  gap: 22px;
  max-width: 680px;
  margin-inline: auto;
}

.cx-case[hidden] {
  display: none;
}

.cx-case.is-in {
  animation: fadeUp 0.45s var(--ease);
}

.cx-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cx-meta li {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.cx-client {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-deep);
}

.cx-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.cx-lede {
  font-size: 18px;
  color: var(--muted);
}

.cx-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cx-stat {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
  background: var(--ink);
  color: var(--paper);
}

.cx-stat b {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--amber);
}

.cx-stat span {
  font-size: 13px;
  color: var(--muted-ink);
}

.tool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tool-chips span {
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: 11.5px;
}

.cx-section {
  display: grid;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.cx-section h4 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.checks {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 22px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber-deep);
}

.cx-built {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cx-built li {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.cx-built p {
  font-size: 14.5px;
  color: var(--muted);
}

.cx-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.cx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.cx-table th,
.cx-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.cx-table th {
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.cx-table td:last-child {
  font-weight: 700;
  color: var(--amber-deep);
}

.cx-table tr:last-child td {
  border-bottom: 0;
}

.cx-note {
  font-size: 14.5px;
  color: var(--muted);
}

.cx-quote {
  padding: 24px;
  border-radius: 22px;
  background: var(--ink);
  color: var(--paper);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.45;
}

.cx-quote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}

.cx-more {
  border-top: 1px solid var(--line);
}

.cx-more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 17px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.cx-more svg.plus {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  transition: transform 0.3s var(--ease);
}

.cx-more[open] svg.plus {
  transform: rotate(45deg);
}

.cx-more-body {
  display: grid;
  gap: 12px;
  padding-bottom: 18px;
  color: var(--muted);
}

.cx-foot,
.ev-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
}

.cx-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 600;
  cursor: pointer;
}

.cx-next .ico {
  width: 18px;
  height: 18px;
}

.ev {
  width: min(760px, calc(100vw - 24px));
  height: min(94vh, 1100px);
  border-radius: 28px;
}

.ev-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.ev-info h2 {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ev-ctrls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ev-count {
  margin-right: 4px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.ev-scroll {
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper-2);
}

.ev-paper {
  max-width: 600px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 20px 50px -30px rgba(20, 20, 20, 0.4);
}

.ev-paper.is-in {
  animation: fadeUp 0.4s var(--ease);
}

.ev-paper img {
  width: 100%;
}

.ev-foot p {
  font-weight: 600;
}

/* ---------- Smaller screens ---------- */

@media (max-width: 1100px) {
  .principles ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .hero-stage {
    height: clamp(280px, 44vh, 380px);
  }

  .head-split {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .stats li,
  .stats li:nth-child(even) {
    padding: 28px 0;
    border-left: 0;
  }

  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tile-feed,
  .tile-log,
  .tile-one {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .principles ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .voice-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "q" "c" "r";
  }

  .voice-result {
    padding: 20px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .phones {
    display: flex;
    gap: 16px;
    padding-bottom: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gut);
    scrollbar-width: none;
    perspective: none;
  }

  .phones::-webkit-scrollbar {
    display: none;
  }

  .ed-card {
    flex: 0 0 min(68%, 300px);
    scroll-snap-align: start;
  }

  .proc-grid,
  .calc,
  .about-grid,
  .faq-grid,
  .close-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .photo {
    position: relative;
    top: 0;
    width: 100%;
    max-width: 340px;
    aspect-ratio: 1;
  }

  .faq-grid .head {
    position: static;
  }

  .foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .cx-stats,
  .cx-built {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .bento,
  .principles ol {
    grid-template-columns: minmax(0, 1fr);
  }

  .tile {
    min-height: 0;
  }

  .feed-time,
  .feed-tag {
    display: none;
  }

  .feed-row {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px 10px;
  }

  .feed-ico {
    width: 36px;
    height: 36px;
  }

  .card {
    flex-basis: 84%;
    padding: 24px;
  }

  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tiles .is-hi {
    grid-column: 1 / -1;
  }

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

  .facts div:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .cx-panel,
  .ev {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }

  .ev-head {
    flex-wrap: wrap;
  }
}

/* ---------- Reduced motion: everything still works, nothing moves ---------- */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .marquee-track {
    flex-wrap: wrap;
    width: auto;
    padding-inline: var(--gut);
    white-space: normal;
    animation: none;
  }

  .marquee-track span:nth-of-type(n + 7),
  .marquee-track i:nth-of-type(n + 6) {
    display: none;
  }

  .live-dot::after {
    display: none;
  }
}
