/* ==========================================================================
   Kairo, Night Shift edition (2026-11-10). See BRIEF.md.
   Ink and paper grounds with hard cuts, one cobalt ground for the price.
   Motion is transform and opacity only, driven by the engine's --sc-p.
   Every var(--sc-p, 1) falls back to the finished state, so the page reads
   complete with no JavaScript.
   ========================================================================== */

@font-face { font-family: 'Schibsted Grotesk'; src: url('/fonts/schibsted-grotesk-var.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('/fonts/instrument-serif-400i.woff2') format('woff2'); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/geist-mono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --ink: #0B0B0D;
  --ink-2: #141418;
  --ink-3: #1D1D22;
  --fg: #F4F3EF;
  --dim: #A3A3AB;
  --line: rgba(244, 243, 239, 0.12);
  --paper: #EEEDE8;
  --paper-2: #E4E3DD;
  --paper-dim: #55555D;
  --paper-line: rgba(11, 11, 13, 0.14);
  --cobalt: #3D4BFF;
  --cobalt-hi: #8A94FF;
  --cobalt-pale: #E3E6FF;

  /* film grain for every ink surface: white specks, tiled, no blend modes */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .4 0 0 0 -.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-size: 240px;
  --glow: rgba(61, 75, 255, 0.16);

  --sans: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1380px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* engine palette, so its own pieces match */
  --sc-canvas: var(--ink);
  --sc-ink: var(--fg);
  --sc-hairline: var(--line);
}

/* Phones: the same grain read as sand. A smaller tile makes each speck finer
   and a lower alpha keeps it a texture, not static. */
@media (max-width: 860px) {
  :root {
    --grain-size: 140px;
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .26 0 0 0 -.11'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); color: var(--fg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  background: var(--ink);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--cobalt-hi); outline-offset: 3px; border-radius: 4px; }
.paper :focus-visible { outline-color: var(--cobalt); }
::selection { background: var(--cobalt); color: #fff; }

/* Fail open: if the engine never arrives, nothing stays hidden. */
html:not(.sc-js) [data-sc-in],
html:not(.sc-js) [data-sc-stagger] > * { opacity: 1; transform: none; }

.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--fg); color: var(--ink); padding: 12px 16px; border-radius: 8px; }
.skip:focus { top: 16px; }

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

/* ------------------------------------------------------------------ type -- */
.display {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.92;
  text-wrap: balance;
}
.display em, .say__turn em, .next__h em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-size: 1.08em;
  line-height: 0.8;
  color: var(--cobalt-hi);
}
.paper .display em { color: var(--cobalt); }
.display--hero { font-size: clamp(46px, 9.2vw, 158px); }
.display--xxl { font-size: clamp(56px, 11.5vw, 196px); }
.display--xl { font-size: clamp(46px, 8vw, 132px); }
.display--lg { font-size: clamp(40px, 5.8vw, 96px); }
.display--md { font-size: clamp(30px, 3.4vw, 50px); line-height: 1; letter-spacing: -0.035em; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--cobalt); flex: none; }
.eyebrow--cobalt { color: var(--cobalt-hi); }
.eyebrow--light { color: #fff; }
.eyebrow--light::before { background: #fff; }

.lede { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.4; color: var(--dim); max-width: 34ch; letter-spacing: -0.01em; }
.paper .lede { color: var(--paper-dim); }
.fine { font-size: 15px; color: var(--dim); max-width: 62ch; margin-top: 32px; }
.fine a, .fine--ink a { text-decoration-color: currentColor; text-underline-offset: 3px; }
.paper .fine, .fine--ink { color: var(--paper-dim); }

/* -------------------------------------------------------------- controls -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px;
  border-radius: 999px;
  background: var(--cobalt); color: #fff;
  font-size: 16px; font-weight: 600; letter-spacing: -0.005em;
  text-decoration: none;
  transition: transform 300ms var(--ease), background-color 200ms;
}
.btn:hover { background: #5462FF; transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--cobalt-pale); }

.link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 16px; font-weight: 600; text-decoration: none; color: var(--fg);
}
.link::after { content: '→'; transition: transform 300ms var(--ease); }
.link:hover::after { transform: translateX(4px); }
.link--ink, .paper .link { color: var(--ink); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 28px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
  color: var(--fg);
}
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #46D07A; }
.chip--quiet::before { background: var(--dim); }
.chip--testing { border-color: var(--cobalt-hi); color: var(--cobalt-hi); }
.chip--testing::before { background: var(--cobalt-hi); }
.paper .chip { border-color: var(--paper-line); color: var(--ink); }
.paper .chip--ready::before { background: #1E9E52; }
.paper .chip--testing { border-color: var(--cobalt); color: var(--cobalt); }
.paper .chip--testing::before { background: var(--cobalt); }

/* ------------------------------------------------------------------ mast -- */
.mast { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding-inline: var(--gutter); pointer-events: none; }
.mast__pill {
  pointer-events: auto;
  max-width: calc(var(--max) - 2 * 24px); margin-inline: auto;
  display: flex; align-items: center; gap: 28px;
  height: 60px; padding: 0 8px 0 24px;
  border-radius: 999px;
  background: rgba(16, 16, 19, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--line);
  position: relative;
}
.mast__brand { font-weight: 800; font-size: 22px; letter-spacing: -0.05em; text-decoration: none; margin-right: auto; }
.mast__nav { display: flex; gap: 6px; }
.mast__nav a { font-size: 15px; color: var(--dim); text-decoration: none; padding: 10px 14px; border-radius: 999px; transition: color 200ms, background-color 200ms; }
.mast__nav a:hover, .mast__nav a[aria-current] { color: var(--fg); background: rgba(255, 255, 255, 0.06); }
.mast__book { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--cobalt); color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; }
.mast__book:hover { background: #5462FF; }
.mast__menu { display: none; }

@media (max-width: 860px) {
  .mast { top: 10px; }
  .mast__pill { height: 56px; gap: 8px; padding: 0 6px 0 18px; }
  .mast__nav { display: none; }
  .mast__book { height: 44px; padding: 0 16px; font-size: 14px; }
  .mast__menu { display: block; }
  .mast__menu summary {
    list-style: none; cursor: pointer;
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-content: center; gap: 5px;
    background: rgba(255, 255, 255, 0.08);
  }
  .mast__menu summary::-webkit-details-marker { display: none; }
  .mast__menu summary span { display: block; width: 16px; height: 1.5px; background: var(--fg); transition: transform 300ms var(--ease); }
  .mast__menu[open] summary span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .mast__menu[open] summary span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .mast__sheet {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px);
    display: grid; padding: 10px;
    border-radius: 24px; background: #101013;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    border: 1px solid var(--line);
  }
  .mast__sheet a { padding: 14px 14px; font-size: 20px; font-weight: 600; text-decoration: none; border-radius: 12px; }
  .mast__sheet a:last-child { font-size: 15px; font-weight: 400; color: var(--dim); }
}

/* ------------------------------------------------------------------ hero -- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: clip; isolation: isolate; }
.wall { position: absolute; inset: 0; z-index: -2; perspective: 2200px; }
.wall__plane {
  position: absolute; top: -18%; left: 40%;
  width: 1240px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  transform: rotateX(32deg) rotateZ(-22deg);
  transform-origin: 30% 30%;
}
.wall__col { display: flex; flex-direction: column; gap: 24px; }
.wall__col:nth-child(2) { margin-top: 180px; }
.wall__col:nth-child(3) { margin-top: 60px; }
.wall__col:nth-child(4) { margin-top: 260px; }
.tile { border-radius: 14px; overflow: hidden; background: var(--ink-3); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8); }
.tile img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tile--desk { aspect-ratio: 1200 / 760; }
.tile--phone { aspect-ratio: 9 / 16; border-radius: 22px; }
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(11, 11, 13, 0.94) 30%, rgba(11, 11, 13, 0.4) 58%, rgba(11, 11, 13, 0.1) 80%),
    linear-gradient(0deg, var(--ink) 0%, rgba(11, 11, 13, 0.6) 26%, transparent 50%);
}
.hero__copy {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 140px; padding-bottom: clamp(48px, 10vh, 120px);
}
.hero h1 { max-width: 9.5ch; }
.hero__line { margin-top: 32px; }
.hero__act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 40px; }

@media (max-width: 860px) {
  .wall__plane { top: -6%; left: -30%; width: 900px; gap: 16px; transform: rotateX(30deg) rotateZ(-20deg); }
  .wall__col { gap: 16px; }
  .hero__veil {
    background: linear-gradient(0deg, var(--ink) 0%, var(--ink) 38%, rgba(11, 11, 13, 0.7) 58%, rgba(11, 11, 13, 0.25) 80%, rgba(11, 11, 13, 0.4) 100%);
  }
  .hero__copy { padding-bottom: 40px; }
  .hero__line { margin-top: 20px; }
  .hero__act { margin-top: 28px; }
}

/* ------------------------------------------------------------- statement -- */
.say__stage { display: grid; place-items: center; background: var(--ink); }
.say__h {
  font-weight: 700;
  font-size: clamp(34px, 5.4vw, 88px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  max-width: 17ch;
  text-wrap: balance;
}
.say__h .w {
  opacity: calc(0.16 + 0.84 * clamp(0, (var(--sc-p, 1) * 1.6 - var(--i)) * 9, 1));
}
.say__turn {
  margin-top: 0.6em;
  font-weight: 700;
  font-size: clamp(34px, 5.4vw, 88px);
  letter-spacing: -0.04em;
  line-height: 1;
  opacity: clamp(0, (var(--sc-p, 1) - 0.74) * 8, 1);
  transform: translateY(calc((1 - clamp(0, (var(--sc-p, 1) - 0.74) * 8, 1)) * 24px));
}

/* ------------------------------------------------------------------ work -- */
.work__stage { display: flex; flex-direction: column; background: var(--ink); }
.work__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: 112px; padding-bottom: clamp(20px, 3vh, 36px); }
/* One approved Pulse line, filled in by functions/_middleware.ts; hidden until Maj approves one. */
.work__proof { margin-top: calc(-1 * clamp(8px, 1.5vh, 20px)); padding-bottom: clamp(16px, 2.5vh, 28px); font-size: 15px; line-height: 1.45; color: var(--dim); }
.work__proof[hidden] { display: none; }
.work__rail {
  flex: 1; min-height: 0;
  display: flex; align-items: flex-start; gap: clamp(28px, 5vw, 80px);
  padding-inline: var(--gutter);
  padding-bottom: 32px;
  width: max-content;
}
.slide { --w: min(64vw, 940px, calc((100svh - 290px) * 1.6)); width: var(--w); flex: none; }
.slide__media { position: relative; margin-bottom: 44px; }
.browser { border-radius: 14px; overflow: hidden; background: var(--ink-3); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.9); }
.browser__bar { height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #1A1A1F; }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #34343B; flex: none; }
.browser__bar span { margin-left: 12px; font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: 0.02em; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser__view { aspect-ratio: 16 / 10; overflow: hidden; }
.browser__view img, .handset__view img { width: 100%; transform: translateY(calc(var(--sc-p, 0) * -16%)); will-change: transform; }
.handset {
  position: absolute; right: -4%; bottom: -44px;
  width: 21%; aspect-ratio: 9 / 19;
  border-radius: 28px; border: 6px solid #232328; background: #232328;
  overflow: hidden;
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.9);
}
.handset__view { height: 100%; overflow: hidden; border-radius: 22px; }
.handset__view img { transform: translateY(calc(var(--sc-p, 0) * -12%)); }
.handset { box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.14); }
.handset::after { content: ''; position: absolute; z-index: 2; top: 2.2%; left: 50%; translate: -50% 0; width: 32%; height: 3.4%; border-radius: 99px; background: #000; }
.slide__cap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-right: 24%; }
.slide__name { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.slide__kind { color: var(--dim); font-size: 16px; }
.slide__media--next {
  aspect-ratio: 16 / 10.6; margin-bottom: 0;
  border-radius: 14px; background: var(--cobalt);
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  padding: clamp(28px, 4vw, 56px);
}
.next__h { font-size: clamp(32px, 4.4vw, 72px); font-weight: 800; letter-spacing: -0.045em; line-height: 0.95; max-width: 12ch; color: #fff; }
.next__h em { color: #fff; }

@media (max-width: 860px) {
  /* Phones: the pan sits in the middle of the screen, not stuck to the top
     with half the screen empty below it. */
  .work__stage { justify-content: center; }
  .work__top { padding-top: 64px; padding-bottom: 24px; }
  .work__top > * { white-space: nowrap; }
  .work__rail { flex: none; padding-bottom: 0; }
  .slide { --w: 84vw; }
  .slide__name { font-size: 20px; }
  .handset { width: 30%; right: -2%; border-width: 4px; border-radius: 20px; }
  .handset__view { border-radius: 16px; }
  .slide__cap { padding-right: 32%; }
  .slide__media--next { aspect-ratio: 4 / 5; }
}

/* --------------------------------------------------------- the stopwatch -- */
.minute__stage { background: var(--ink); display: flex; align-items: center; }
.minute__grid { display: grid; grid-template-columns: 5fr 7fr; align-items: center; gap: 40px; padding-top: 64px; }
.minute__copy .lede { margin-top: 28px; }
.minute__note { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; font-size: 15px; color: var(--dim); max-width: 40ch; }
.minute__device {
  --D: min(calc(100svh - 230px), 660px);
  --sec: calc(min(var(--sc-p, 1) / 0.42, 1) * 41);
  position: relative; width: var(--D); height: var(--D); justify-self: center;
  display: grid; place-items: center;
}
.dial { position: absolute; inset: 0; }
.tick {
  position: absolute; left: 50%; top: 50%;
  width: 2px; height: calc(var(--D) * 0.022); margin-left: -1px;
  background: var(--cobalt-hi); border-radius: 2px;
  transform: rotate(calc(var(--t) * 6deg)) translateY(calc(var(--D) * -0.49));
  opacity: calc(0.16 + 0.84 * clamp(0, var(--sec) - var(--t), 1));
}
.tick--five { width: 3px; margin-left: -1.5px; height: calc(var(--D) * 0.045); }
.dial__hand {
  position: absolute; left: calc(50% - 1px); top: calc(50% - var(--D) * 0.46);
  width: 2px; height: calc(var(--D) * 0.46);
  background: linear-gradient(to top, transparent 40%, var(--fg) 40%);
  transform-origin: 50% 100%;
  transform: rotate(calc(var(--sec) * 6deg));
}
.dial__hand::before { content: ''; position: absolute; top: -5px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--cobalt-hi); }
/* The phone: a real handset. Titanium frame, black bezel, the island running
   a live stopwatch, iMessage bubbles with tails. Everything is sized in em off
   the phone's font size, so one number scales the whole device. */
.phone {
  position: relative; z-index: 1;
  width: calc(var(--D) * 0.37); aspect-ratio: 9 / 19.5;
  padding: 0.52em;
  border-radius: 3.7em;
  background: linear-gradient(150deg, #74747C 0%, #2C2C32 20%, #17171B 50%, #2C2C32 80%, #66666E 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    inset 0 0 0 0.34em #050506,
    0 80px 120px -40px rgba(0, 0, 0, 0.95),
    0 30px 80px -30px rgba(61, 75, 255, 0.45);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', var(--sans);
  font-size: max(11px, calc(var(--D) * 0.0185));
  line-height: 1.3; letter-spacing: -0.01em;
  color: #0B0B0D;
}
.phone__key { position: absolute; width: 0.24em; border-radius: 0.2em; background: linear-gradient(90deg, #2A2A30, #6A6A72); }
.phone__key--act, .phone__key--up, .phone__key--down { left: -0.2em; }
.phone__key--act { top: 17%; height: 5%; }
.phone__key--up { top: 25%; height: 9%; }
.phone__key--down { top: 36%; height: 9%; }
.phone__key--side { right: -0.2em; top: 28%; height: 14%; background: linear-gradient(90deg, #6A6A72, #2A2A30); }
/* clip-path, not just overflow: Safari lets the blurred input bar and the
   glare layer paint past a rounded overflow box, which squared the corners */
.phone__screen { position: relative; height: 100%; border-radius: 3.2em; overflow: hidden; clip-path: inset(0 round 3.2em); background: #fff; isolation: isolate; }
.phone__screen::after { content: ''; position: absolute; inset: 0; z-index: 9; pointer-events: none; background: linear-gradient(122deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 34%); mix-blend-mode: soft-light; }

.phone__status {
  position: absolute; z-index: 4; top: 0; left: 0; right: 0; height: 4em;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.25em 1em 0 2.35em;
  font-weight: 600;
}
.phone__time { font-size: 1.08em; font-variant-numeric: tabular-nums; }
.phone__island {
  position: absolute; left: 50%; top: 0.9em; translate: -50% 0;
  width: 6.6em; height: 2.3em; border-radius: 2em; background: #000;
  display: flex; align-items: center; justify-content: space-between; padding: 0 0.95em 0 0.85em;
}
.phone__rec { width: 0.62em; height: 0.62em; border-radius: 50%; background: var(--cobalt-hi); color: var(--cobalt-hi); animation: ping 1.8s var(--ease) infinite; }
.phone__timer { font-family: var(--mono); font-size: 0.86em; font-weight: 500; color: var(--cobalt-hi); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.phone__icons { display: flex; align-items: center; gap: 0.32em; }
.phone__sig { display: flex; align-items: flex-end; gap: 0.12em; height: 0.78em; }
.phone__sig i { width: 0.2em; border-radius: 0.06em; background: currentColor; }
.phone__sig i:nth-child(1) { height: 35%; } .phone__sig i:nth-child(2) { height: 55%; } .phone__sig i:nth-child(3) { height: 78%; } .phone__sig i:nth-child(4) { height: 100%; }
.phone__wifi { width: 1.05em; height: 0.8em; overflow: visible; }
.phone__batt { position: relative; width: 1.7em; height: 0.82em; border-radius: 0.26em; border: 1px solid rgba(11, 11, 13, 0.4); padding: 1px; }
.phone__batt::before { content: ''; display: block; width: 78%; height: 100%; border-radius: 0.14em; background: currentColor; }
.phone__batt::after { content: ''; position: absolute; right: -0.2em; top: 30%; width: 0.12em; height: 40%; border-radius: 0 0.1em 0.1em 0; background: rgba(11, 11, 13, 0.4); }

.phone__head {
  position: absolute; z-index: 3; top: 0; left: 0; right: 0;
  padding: 4.2em 1em 0.6em;
  display: flex; flex-direction: column; align-items: center; gap: 0.3em;
  background: rgba(247, 247, 249, 0.84);
  -webkit-backdrop-filter: blur(14px) saturate(1.8); backdrop-filter: blur(14px) saturate(1.8);
  border-bottom: 1px solid rgba(11, 11, 13, 0.08);
}
.phone__back { position: absolute; left: 1.15em; top: 5.25em; width: 0.7em; height: 0.7em; border-left: 0.16em solid var(--cobalt); border-bottom: 0.16em solid var(--cobalt); rotate: 45deg; }
.phone__avatar { width: 3.1em; height: 3.1em; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #A9AEB9, #80858F); color: #fff; font-weight: 600; font-size: 1.05em; }
.phone__who { font-size: 0.8em; display: inline-flex; align-items: center; gap: 0.2em; }
.phone__who::after { content: '\203A'; color: #A1A1A6; font-size: 1.2em; line-height: 1; }

.thread {
  position: absolute; inset: 0; z-index: 1;
  margin: 0; list-style: none;
  padding: 10em 0.55em 5.2em;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
}
/* each message grows in from nothing, so the chat climbs like a real one */
.msg {
  --on: clamp(0, (var(--sc-p, 1) - var(--at)) * 14, 1);
  flex: none; display: flex;
  max-height: calc(var(--on) * 12em);
  margin-top: calc(var(--on) * 0.42em);
  padding-inline: 0.75em;
  opacity: var(--on);
  overflow: hidden;
}
.bub { position: relative; display: block; max-width: 78%; padding: 0.5em 0.78em; border-radius: 1.15em; transform-origin: bottom left; scale: calc(0.86 + 0.14 * var(--on)); }
.msg--out { justify-content: flex-end; }
.msg--out .bub { background: var(--cobalt); color: #fff; transform-origin: bottom right; }
.msg--out .bub b { display: block; font-size: 0.78em; font-weight: 600; opacity: 0.75; margin-bottom: 0.15em; }
.msg--in .bub, .msg--typing .bub { background: #E9E9EB; }
.msg--out .bub::before, .msg--in .bub::before, .msg--typing .bub::before { content: ''; position: absolute; bottom: 0; width: 1.25em; height: 1.25em; }
.msg--out .bub::after, .msg--in .bub::after, .msg--typing .bub::after { content: ''; position: absolute; bottom: 0; width: 0.62em; height: 1.25em; background: #fff; }
.msg--out .bub::before { right: -0.5em; background: var(--cobalt); border-bottom-left-radius: 0.95em; }
.msg--out .bub::after { right: -0.62em; border-bottom-left-radius: 0.62em; }
.msg--in .bub::before, .msg--typing .bub::before { left: -0.5em; background: #E9E9EB; border-bottom-right-radius: 0.95em; }
.msg--in .bub::after, .msg--typing .bub::after { left: -0.62em; border-bottom-right-radius: 0.62em; }
.msg--lead { justify-content: center; }
.msg--lead .bub { max-width: none; width: 100%; padding: 0.7em 0.85em; border-radius: 1em; background: #F2F2F6; color: #6C6C72; font-size: 0.9em; text-align: center; }
.msg--lead b { display: block; color: #0B0B0D; font-weight: 600; }
.msg--day { justify-content: center; padding-top: 0.5em; font-size: 0.72em; color: #8E8E93; }
.msg--day b { font-weight: 600; }
/* Dana typing: shows just before her reply lands, then gives way to it */
.msg--typing { --on: calc(clamp(0, (var(--sc-p, 1) - 0.7) * 30, 1) * clamp(0, (0.8 - var(--sc-p, 1)) * 30, 1)); }
.msg--typing .bub { display: flex; gap: 0.26em; padding: 0.72em 0.85em; }
.msg--typing .bub i { width: 0.5em; height: 0.5em; border-radius: 50%; background: #8E8E93; animation: typing 1.2s ease-in-out infinite; }
.msg--typing .bub i:nth-child(2) { animation-delay: 0.15s; }
.msg--typing .bub i:nth-child(3) { animation-delay: 0.3s; }
.msg--booked { justify-content: center; padding-top: 0.2em; }
.msg--booked .bub { max-width: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.45em; padding: 0.42em 0.9em; border-radius: 999px; background: var(--cobalt-pale); color: var(--cobalt); font-weight: 600; font-size: 0.8em; transform-origin: center; }
.msg--booked .bub::before { content: ''; width: 0.48em; height: 0.85em; margin-top: -0.2em; border-right: 0.16em solid currentColor; border-bottom: 0.16em solid currentColor; rotate: 45deg; }

.phone__input {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  padding: 0.55em 0.9em 2.15em;
  display: flex; align-items: center; gap: 0.55em;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.phone__plus { position: relative; flex: none; width: 2.15em; height: 2.15em; border-radius: 50%; background: #EDEDF0; }
.phone__plus::before, .phone__plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 0.9em; height: 0.13em; margin: -0.065em 0 0 -0.45em; border-radius: 1em; background: #7C7C82; }
.phone__plus::after { rotate: 90deg; }
.phone__field { flex: 1; height: 2.3em; display: flex; align-items: center; padding: 0 0.9em; border: 1px solid #D5D5DA; border-radius: 1.2em; color: #A8A8AD; font-size: 0.94em; }
.phone__bar { position: absolute; z-index: 4; left: 33%; right: 33%; bottom: 0.55em; height: 0.34em; border-radius: 1em; background: #0B0B0D; }

@keyframes ping {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent); }
  70%, 100% { box-shadow: 0 0 0 0.5em transparent; }
}
@keyframes typing {
  0%, 60%, 100% { opacity: 0.4; translate: 0 0; }
  30% { opacity: 1; translate: 0 -0.18em; }
}
.minute__eg { margin-top: 14px; font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: 0.02em; max-width: 44ch; }

@media (max-width: 860px) {
  /* Phones: the copy takes what it needs and the handset gets exactly the
     room left on the screen, so the whole phone is always in view. The
     device is a size container; the dial and the handset measure off it. */
  .minute__stage { align-items: stretch; }
  .minute__grid {
    display: flex; flex-direction: column; gap: 14px;
    width: 100%; height: 100%;
    padding-top: 84px; padding-bottom: max(14px, env(safe-area-inset-bottom));
  }
  .minute__copy { flex: none; }
  .minute__copy h2 { font-size: clamp(32px, 9vw, 50px); }
  .minute__copy .eyebrow { margin-bottom: 12px; }
  .minute__copy .lede { margin-top: 10px; font-size: 16px; }
  .minute__note { margin-top: 10px; font-size: 13px; }
  .minute__eg { margin-top: 6px; font-size: 11px; }
  .minute__device {
    flex: 1 1 0; min-height: 0; width: 100%; height: auto;
    container-type: size;
    --D: min(100cqw, 100cqh);
  }
  /* no stopwatch on phones: next to a small handset the ring and hand read
     as clutter poking out from behind it. A soft glow carries the handset. */
  .dial { display: none; }
  .minute__device::before {
    content: ''; position: absolute; left: 50%; top: 50%; width: 100%; aspect-ratio: 1;
    translate: -50% -50%; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(61, 75, 255, 0.32), transparent 70%);
    pointer-events: none;
  }
  .phone {
    --pw: min(calc(100cqh * 9 / 18.6), 66cqw, 250px);
    width: var(--pw); aspect-ratio: 9 / 18.6;
    font-size: calc(var(--pw) * 0.054);
  }
  .bub { max-width: 84%; }
  /* the island sits between the clock and the icons, never over them */
  .phone__status { padding: 0.25em 1em 0 1.85em; }
  .phone__island { width: 6.1em; height: 2.1em; padding: 0 0.65em 0 0.6em; }
  .phone__icons { gap: 0.24em; }
  .phone__sig { gap: 0.1em; }
  .phone__batt { width: 1.55em; }
}

/* -------------------------------------------------------------- package -- */
.paper { background: var(--paper); color: var(--ink); }
.pkg { padding-block: clamp(96px, 14vh, 160px); }
.pkg__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(40px, 6vh, 72px); }
.parts { border-top: 1px solid var(--ink); }
.part {
  display: grid; grid-template-columns: 5fr 6fr auto; gap: 12px 40px; align-items: baseline;
  padding: clamp(22px, 3vh, 34px) 0;
  border-bottom: 1px solid var(--paper-line);
}
.part__name { font-size: clamp(26px, 2.8vw, 42px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.part__body { color: var(--paper-dim); font-size: 18px; max-width: 46ch; }
.part .chip { justify-self: end; }
.part__status { grid-column: 2; font-size: 15px; color: var(--cobalt); max-width: 46ch; }
@media (max-width: 860px) {
  .part { grid-template-columns: 1fr auto; }
  .part__name { grid-column: 1; }
  .part .chip { grid-column: 2; grid-row: 1; align-self: center; }
  .part__body, .part__status { grid-column: 1 / -1; font-size: 16px; }
}

/* ----------------------------------------------------------------- price -- */
.cobalt { background: var(--cobalt); color: #fff; }
.price { padding-block: clamp(96px, 16vh, 180px); overflow: clip; }
.price__n {
  font-size: clamp(104px, 24vw, 380px);
  font-weight: 800; letter-spacing: -0.065em; line-height: 0.82;
  margin-left: -0.04em;
}
.price__line { color: #fff; margin-top: 36px; font-size: clamp(22px, 2.2vw, 32px); max-width: 26ch; }
.price__small { color: var(--cobalt-pale); font-size: 16px; max-width: 48ch; margin: 16px 0 40px; }

/* ----------------------------------------------------------------- close -- */
.close { padding-block: clamp(120px, 20vh, 220px) clamp(96px, 14vh, 160px); background: var(--ink); }
.close__h { max-width: 9ch; margin-bottom: 32px; }
.close__act { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 40px; }
.close__or { color: var(--dim); font-size: 16px; }
.close__or a { color: var(--fg); text-underline-offset: 3px; }

/* ------------------------------------------------------------------ foot -- */
.foot { background: var(--ink); border-top: 1px solid var(--line); padding: 72px 0 40px; overflow: clip; }
.foot__mark { font-size: clamp(110px, 27vw, 430px); font-weight: 800; letter-spacing: -0.07em; line-height: 0.75; color: rgba(244, 243, 239, 0.07); margin: 0 0 56px -0.04em; user-select: none; }
.foot__cols { display: grid; grid-template-columns: 2fr 1fr 1.2fr 1fr; gap: 32px; }
.foot__about { color: var(--dim); max-width: 32ch; font-size: 16px; }
.foot__list { display: grid; gap: 4px; align-content: start; }
.foot__list a, .foot__stats { display: inline-flex; min-height: 36px; align-items: center; color: var(--fg); text-decoration: none; font-size: 15px; }
.foot__list a:hover { color: var(--cobalt-hi); }
.foot__stats { background: none; border: 0; padding: 0; font: inherit; font-size: 15px; color: var(--dim); cursor: pointer; text-align: left; }
.foot__line { margin-top: 56px; color: var(--dim); font-size: 13px; font-family: var(--mono); letter-spacing: 0.04em; }
@media (max-width: 860px) { .foot__cols { grid-template-columns: 1fr 1fr; } .foot__about { grid-column: 1 / -1; } }

/* ============================================================ inner pages == */
.head { padding: clamp(150px, 24vh, 240px) 0 clamp(72px, 12vh, 120px); }
.head__h { max-width: 13ch; }
.head__line { margin-top: 32px; }

.steps { padding-bottom: clamp(80px, 12vh, 140px); }
.steps__list { border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 4fr 3fr 6fr; gap: 12px 40px; padding: 40px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.step__t { font-size: clamp(30px, 3.4vw, 50px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.step__k { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cobalt-hi); }
.step__b { color: var(--dim); max-width: 52ch; }
@media (max-width: 860px) { .step { grid-template-columns: 1fr; } }

.report { padding-block: clamp(96px, 14vh, 160px); }
.report__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.report .lede { margin-top: 24px; }
.sheet { border-top: 1px solid var(--ink); }
.sheet > div { display: grid; grid-template-columns: 1fr 2fr; gap: 8px 24px; padding: 20px 0; border-bottom: 1px solid var(--paper-line); }
.sheet dt { font-weight: 700; }
.sheet dd { color: var(--paper-dim); }
.sheet--big dt { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.03em; }
@media (max-width: 860px) { .report__grid { grid-template-columns: 1fr; } .sheet > div { grid-template-columns: 1fr; } }

.ledger-sec { padding-bottom: clamp(80px, 12vh, 140px); }
.ledger { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ledger > div { padding: 32px; border-radius: 20px; background: var(--ink-2); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.ledger > div:first-child { background: var(--cobalt); border-color: var(--cobalt); }
.ledger > div:first-child dd { color: var(--cobalt-pale); }
.ledger > div:first-child dd.ledger__n { color: #fff; }
.ledger dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.ledger__n { font-size: clamp(48px, 5vw, 76px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--fg); margin: 12px 0 4px; }
.ledger__n small { font-size: max(13px, 0.3em); letter-spacing: 0; font-weight: 600; }
.ledger dd { color: var(--dim); font-size: 16px; }
@media (max-width: 860px) { .ledger { grid-template-columns: 1fr; } }

.care { padding-block: clamp(96px, 14vh, 160px); }
.care__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.care__will { margin-top: 64px; }
.ticks { margin-top: 32px; border-top: 1px solid var(--line); }
.ticks li { padding: 16px 0 16px 32px; border-bottom: 1px solid var(--line); position: relative; }
.ticks li::before { content: ''; position: absolute; left: 4px; top: 25px; width: 10px; height: 10px; border-radius: 50%; background: var(--cobalt-hi); }
.ticks--no li { color: var(--dim); }
.ticks--no li::before { background: transparent; border: 1.5px solid var(--dim); }
@media (max-width: 860px) { .care__grid { grid-template-columns: 1fr; gap: 72px; } }

.faq-sec { padding-bottom: clamp(80px, 12vh, 140px); }
.faq { border-top: 1px solid var(--line); max-width: 980px; }
.faq__q { border-bottom: 1px solid var(--line); }
.faq__q summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; min-height: 44px; }
.faq__q summary::-webkit-details-marker { display: none; }
.faq__q h2 { font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.faq__x { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); }
.faq__x::before, .faq__x::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px; background: var(--fg); transition: transform 300ms var(--ease); }
.faq__x::after { transform: rotate(90deg); }
.faq__q[open] .faq__x::after { transform: rotate(0deg); }
.faq__q p { color: var(--dim); max-width: 62ch; padding-bottom: 32px; font-size: 19px; }

.case { padding-block: clamp(80px, 12vh, 140px); }
.case__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.paper.case .case__grid { grid-template-columns: 5fr 7fr; }
.paper.case .case__media { order: 2; }
.browser__still img { width: 100%; }
.case__text { display: grid; gap: 16px; justify-items: start; }
.case__kind { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: var(--dim); }
.paper .case__kind, .paper .case__body { color: var(--paper-dim); }
.case__body { color: var(--dim); max-width: 44ch; }
@media (max-width: 860px) {
  .case__grid, .paper.case .case__grid { grid-template-columns: 1fr; }
  .paper.case .case__media { order: 0; }
}

.docs-sec { padding-bottom: clamp(96px, 14vh, 160px); }
.docs { border-top: 1px solid var(--line); }
.docs a { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 40px; padding: 32px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.docs a:hover .docs__t { color: var(--cobalt-hi); }
.docs__t { font-size: clamp(24px, 2.6vw, 38px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; transition: color 200ms; }
.docs__d { color: var(--dim); }
@media (max-width: 860px) { .docs a { grid-template-columns: 1fr; } }

.doc { padding-block: clamp(72px, 10vh, 120px); }
.doc__grid { display: grid; grid-template-columns: 1fr 3fr; gap: 48px; }
.doc__back { align-self: start; position: sticky; top: 100px; }
@media (max-width: 860px) { .doc__grid { grid-template-columns: 1fr; gap: 16px; } .doc__back { position: static; } }
.prose { max-width: 68ch; font-size: 17px; line-height: 1.65; color: #2A2A30; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin-top: 2.2em; color: var(--ink); }
.prose h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; margin-top: 1.8em; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--cobalt); text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--paper-line); vertical-align: top; }
.prose hr { border: 0; height: 1px; background: var(--paper-line); margin: 2.4em 0; }
.prose blockquote { margin-left: 0; padding-left: 1em; border-left: 2px solid var(--cobalt); }
.prose code { font-family: var(--mono); font-size: 0.9em; }

/* -------------------------------------------------------- reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  .btn, .link::after { transition: none; }
  .browser__view img, .handset__view img { transform: none; }
  .bub { scale: none; }
  .say__turn { transform: none; }
}

/* ============================================================== texture ==
   Ink is never flat: a fine film grain everywhere it shows, and one soft
   cobalt light per scene, placed where the eye should land. */
body { background-image: var(--grain); background-size: var(--grain-size); }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    var(--grain) 0 0 / var(--grain-size),
    radial-gradient(45% 40% at 12% 68%, var(--glow), transparent 70%);
}
.say__stage {
  background:
    var(--grain) 0 0 / var(--grain-size),
    radial-gradient(50% 45% at 50% 52%, var(--glow), transparent 72%),
    var(--ink);
}
.work__stage {
  background:
    var(--grain) 0 0 / var(--grain-size),
    radial-gradient(70% 40% at 50% 100%, rgba(61, 75, 255, 0.12), transparent 70%),
    var(--ink);
}
.minute__stage {
  background:
    var(--grain) 0 0 / var(--grain-size),
    radial-gradient(38% 55% at 70% 52%, rgba(61, 75, 255, 0.2), transparent 72%),
    var(--ink);
}
.close {
  background:
    var(--grain) 0 0 / var(--grain-size),
    radial-gradient(55% 60% at 0% 0%, var(--glow), transparent 70%),
    var(--ink);
}
.foot {
  background:
    var(--grain) 0 0 / var(--grain-size),
    radial-gradient(60% 50% at 100% 100%, rgba(61, 75, 255, 0.1), transparent 70%),
    var(--ink);
}
.head { background: radial-gradient(50% 70% at 100% 0%, var(--glow), transparent 70%); }
@media (max-width: 860px) {
  .minute__stage {
    background:
      var(--grain) 0 0 / var(--grain-size),
      radial-gradient(80% 32% at 50% 72%, rgba(61, 75, 255, 0.2), transparent 72%),
      var(--ink);
  }
  .head { background: radial-gradient(90% 50% at 100% 0%, var(--glow), transparent 70%); }
}

/* ================================================================ motion ==
   The small things. Page changes fade and lift instead of blinking, the bar
   steps aside while you read, buttons answer the finger, live dots breathe.
   All of it switches off under reduced motion at the end of this block. */

/* page to page: the old page sinks away, the new one rises in; the bar stays put */
@view-transition { navigation: auto; }
.mast { view-transition-name: mast; }
::view-transition-old(root) { animation: page-out 180ms cubic-bezier(0.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: page-fade 240ms ease-out 170ms both; }
::view-transition-group(mast) { animation-duration: 0s; }
@keyframes page-out { to { opacity: 0; transform: translateY(-14px) scale(0.99); } }
@keyframes page-fade { from { opacity: 0; } }
html { background: var(--ink); }

/* the bar: tucks away on the way down, comes back on the way up */
.mast { transition: translate 500ms var(--ease); }
.mast--away { translate: 0 calc(-100% - 24px); }
.mast__pill { transition: background-color 400ms, box-shadow 400ms; }
.mast--solid .mast__pill { background: rgba(16, 16, 19, 0.88); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8); }
.mast__brand { transition: letter-spacing 400ms var(--ease); }
.mast__brand:hover { letter-spacing: -0.02em; }
.mast__book { transition: background-color 200ms, scale 200ms var(--ease); }
.mast__book:active { scale: 0.96; }
.mast__menu[open] .mast__sheet { animation: sheet-in 380ms var(--ease) both; }
.mast__menu[open] .mast__sheet a { animation: sheet-in 420ms var(--ease) both; }
.mast__menu[open] .mast__sheet a:nth-child(2) { animation-delay: 30ms; }
.mast__menu[open] .mast__sheet a:nth-child(3) { animation-delay: 60ms; }
.mast__menu[open] .mast__sheet a:nth-child(4) { animation-delay: 90ms; }
.mast__menu[open] .mast__sheet a:nth-child(5) { animation-delay: 120ms; }
.mast__menu[open] .mast__sheet a:nth-child(6) { animation-delay: 150ms; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-8px) scale(0.98); } }

/* buttons: a light sweep on hover, a press you can feel */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  translate: -110% 0; transition: translate 800ms var(--ease);
}
.btn:hover::after { translate: 110% 0; }
.btn:active { transform: translateY(0) scale(0.97); transition-duration: 90ms; }

/* text links: the line draws itself under the words */
.link {
  background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(100% - 9px) / 0 1px;
  transition: background-size 450ms var(--ease);
}
.link:hover { background-size: calc(100% - 22px) 1px; }
.foot__list a {
  background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(100% - 6px) / 0 1px;
  transition: color 200ms, background-size 450ms var(--ease);
}
.foot__list a:hover { background-size: 100% 1px; }

/* live dots breathe: anything in testing or ready, and the hero's first line */
.chip--testing::before, .chip--ready::before { color: inherit; animation: ping 2.4s var(--ease) infinite; }
.chip--ready::before { color: #46D07A; }
.paper .chip--ready::before { color: #1E9E52; }
.hero .eyebrow::before { color: var(--cobalt); animation: ping 2.4s var(--ease) infinite; }

/* the wall of sites drifts, slowly, so the first screen is never still */
.wall__plane { animation: drift 38s ease-in-out infinite alternate; }
@keyframes drift { from { translate: 0 0; } to { translate: -48px -72px; } }

/* the stopwatch hand carries a little light */
.dial__hand::before { box-shadow: 0 0 0 4px rgba(138, 148, 255, 0.18), 0 0 16px rgba(138, 148, 255, 0.7); }

/* questions open smoothly instead of snapping */
:root { interpolate-size: allow-keywords; }
.faq__q::details-content { height: 0; overflow: clip; transition: height 450ms var(--ease), content-visibility 450ms allow-discrete; }
.faq__q[open]::details-content { height: auto; }
.faq__q p { opacity: 0; translate: 0 -6px; transition: opacity 400ms var(--ease) 60ms, translate 400ms var(--ease) 60ms; }
.faq__q[open] p { opacity: 1; translate: 0 0; }
.faq__q summary h2 { transition: translate 350ms var(--ease); }
.faq__q summary:hover h2 { translate: 6px 0; }
.faq__x { transition: background-color 250ms, border-color 250ms; }
.faq__x::before, .faq__x::after { transition: transform 350ms var(--ease); }
.faq__q summary:hover .faq__x { border-color: var(--cobalt-hi); }

/* the work: the device lifts a touch when you point at it */
.browser, .handset { transition: translate 500ms var(--ease); }
.slide__media:hover .browser { translate: 0 -6px; }
.slide__media:hover .handset { translate: 0 -12px; }


/* every page opens with its first screen arriving piece by piece, each piece
   in its own way: the sites settle, the label wipes in, the headline rises,
   the italic word slides after it, the words under it and the buttons follow.
   Short and light on purpose: opacity and movement only, no blur or
   background tricks, so nothing flashes while the page swaps. */
/* the wall waits, hidden, until its pictures are ready (a small script under it
   adds wall--ready), so it never shows empty grey cards */
.sc-js .wall { opacity: 0; }
.sc-js .wall.wall--ready { opacity: 1; animation: in-settle 1100ms var(--ease) both; }
.hero .eyebrow, .head .eyebrow { animation: in-wipe 600ms var(--ease) 40ms both; }
.display--hero, .head__h { animation: in-rise 700ms var(--ease) 80ms both; }
.display--hero em, .head__h em { display: inline-block; animation: in-slide 700ms var(--ease) 240ms both; }
.hero__line, .head__line { animation: in-up 650ms var(--ease) 220ms both; }
.hero__act > * { animation: in-pop 550ms var(--ease) both; }
.hero__act > :nth-child(1) { animation-delay: 320ms; }
.hero__act > :nth-child(2) { animation-delay: 380ms; }
.head .wrap > :nth-child(n+4) { animation: in-up 650ms var(--ease) 320ms both; }
.head + * { animation: in-up 700ms var(--ease) 360ms backwards; }
@keyframes in-settle { from { opacity: 0; scale: 1.04; } }
@keyframes in-wipe { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes in-rise { from { opacity: 0; translate: 0 0.25em; } }
@keyframes in-slide { from { opacity: 0; translate: 0.3em 0; } }
@keyframes in-up { from { opacity: 0; translate: 0 16px; } }
@keyframes in-pop { from { opacity: 0; scale: 0.94; } }

/* "keep scrolling": shows while a section holds still under your scroll, and
   on the first screen; the ring fills as the section plays through */
.cue {
  position: fixed; z-index: 40; left: 50%; bottom: max(20px, calc(env(safe-area-inset-bottom) + 12px));
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 18px 6px 6px; border-radius: 999px;
  background: rgba(16, 16, 19, 0.8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.8);
  color: var(--fg); font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  opacity: 0; translate: -50% 16px; pointer-events: none;
  transition: opacity 400ms var(--ease), translate 500ms var(--ease);
}
.cue--on { opacity: 1; translate: -50% 0; }
.cue__ring { position: relative; width: 34px; height: 34px; display: grid; place-items: center; }
.cue__ring svg:first-child { position: absolute; inset: 0; rotate: -90deg; }
.cue__track, .cue__fill { fill: none; stroke-width: 2; }
.cue__track { stroke: rgba(255, 255, 255, 0.16); }
.cue__fill { stroke: var(--cobalt-hi); stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; transition: stroke-dashoffset 120ms linear; }
.cue__arrow { width: 15px; height: 15px; color: var(--cobalt-hi); animation: cue-bob 1.6s var(--ease) infinite; }
@keyframes cue-bob { 0%, 100% { translate: 0 -2px; } 50% { translate: 0 3px; } }
/* phones: the bottom of the screen holds the example phone and the buttons, so
   the hint sits up top, where the bar was before it stepped aside */
@media (max-width: 860px) {
  .cue { bottom: auto; top: max(14px, calc(env(safe-area-inset-top) + 8px)); translate: -50% -16px; font-size: 14px; }
  .cue--on { translate: -50% 0; }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .mast, .mast--away { transition: none; translate: none; }
  .wall__plane, .phone__rec, .msg--typing .bub i, .chip::before, .hero .eyebrow::before,
  .mast__menu[open] .mast__sheet, .mast__menu[open] .mast__sheet a { animation: none; }
  .wall, .hero .eyebrow, .head .eyebrow, .display--hero, .head__h, .display--hero em, .head__h em,
  .hero__line, .head__line, .hero__act > *, .head .wrap > *, .head, .head + *, .cue__arrow { animation: none; }
  .cue { transition: opacity 200ms; translate: -50% 0; }
  .btn::after { display: none; }
  .link, .foot__list a, .faq__q::details-content, .faq__q p, .faq__q summary h2, .browser, .handset { transition: none; }
  .faq__q p { opacity: 1; translate: none; }
  .faq__q summary:hover h2, .slide__media:hover .browser, .slide__media:hover .handset { translate: none; }
}

/* Phones: every footer link and the logo get a full thumb-sized target. */
@media (max-width: 860px) {
  .foot__list a, .foot__stats { min-height: 44px; }
  .mast__brand { min-height: 44px; display: inline-flex; align-items: center; }
}

/* portfolio: the "other businesses" divider */
.case-group { padding-top: clamp(96px, 14vh, 160px); }
.case-group .eyebrow { margin-bottom: 14px; }
.case-group + .case { padding-top: clamp(40px, 6vh, 72px); }

/* Trade pages and guides (2026-11-12) */
.faq__q h3 { font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; transition: translate 350ms var(--ease); }
.faq__q summary:hover h3 { translate: 6px 0; }
.faq-sec > .wrap > .display + .faq { margin-top: 40px; }
.faq-sec .fine a, .docs-sec .fine { color: var(--dim); }
.docs-sec .fine { margin-top: 32px; }
.paper .ticks { border-top-color: var(--ink); }
.paper .ticks li { border-bottom-color: var(--paper-line); }
.paper .ticks li::before { background: var(--cobalt); }
.ledger-sec .care__will { margin-top: 72px; }
@media (prefers-reduced-motion: reduce) { .faq__q h3 { transition: none; } .faq__q summary:hover h3 { translate: none; } }

/* Phones: pinned stages fill the tall screen (Safari bar hidden), so nothing
   scrolls past in a strip below them once the bar shrinks. */
@media (max-width: 860px) {
  html .sc-stage { height: 100vh; height: 100lvh; }
}
