/* ruvara.ai homepage — "Midnight Sapphire".
   An advocate's desk after dark: deep navy ground, cool white type, one
   sapphire blue as THE brand colour, and a soft gold kept for the moments
   that should feel good (a finished step, a tick, the line under the bar).
   Green means done, amber means "due soon". Red is never a brand colour.
   (The --tape names are kept so the markup does not change; the colour is
   sapphire.)
   Type (restored 9 Oct 2026, "law-chamber" pairing): Instrument Serif for the
   big headlines and section titles, its italic for the accent words;
   Schibsted Grotesk for body and UI; IBM Plex Mono only for the small
   eyebrow labels; Newsreader capitals for the RUVARA wordmark (the Oct 2026
   picture logos were dropped on 9 Oct 2026; their files are still in /brand/,
   unused). Instrument Serif has one weight (400), so serif text is never
   set bold. */

/* Metric-matched stand-ins, used only for the moment before the web fonts
   arrive (display=swap), so the lines barely move when they swap in. */
@font-face { font-family: 'Instrument Serif Fallback'; src: local('Times New Roman'), local('TimesNewRomanPSMT'), local('Times'); size-adjust: 83%; ascent-override: 119%; descent-override: 37%; line-gap-override: 0%; }
@font-face { font-family: 'Instrument Serif Fallback'; font-style: italic; src: local('Times New Roman Italic'), local('TimesNewRomanPS-ItalicMT'), local('Times-Italic'); size-adjust: 87%; ascent-override: 114%; descent-override: 36%; line-gap-override: 0%; }
@font-face { font-family: 'Schibsted Grotesk Fallback'; src: local('Arial'), local('ArialMT'), local('Helvetica'); size-adjust: 103.5%; ascent-override: 94.5%; descent-override: 25%; line-gap-override: 0%; }
@font-face { font-family: 'IBM Plex Mono Fallback'; src: local('Courier New'), local('CourierNewPSMT'); size-adjust: 100%; ascent-override: 103%; descent-override: 28%; line-gap-override: 0%; }

:root {
  --ink: #0b1220;        /* the page: deep navy */
  --ink-2: #121b2e;      /* panels */
  --ink-3: #18233a;      /* raised panels */
  --paper: #eef2fa;      /* main text */
  --paper-2: #b8c3d9;    /* secondary text (AA on every panel) */
  --muted: #8d9ab5;      /* small print (still AA on navy) */
  --line: rgba(238, 242, 250, 0.12);
  --tape: #2f6bff;       /* sapphire: lines, glows, fills */
  --tape-2: #7fa4ff;     /* lighter sapphire: text and hover on navy */
  --tape-fill: #275fef;  /* sapphire behind white words (keeps AA contrast) */
  --blue: #7fa4ff;
  --gold: #e2b857;       /* highlight: important / positive moments */
  --ok: #2bb673;
  --warn: #f2994a;
  --sans: 'Schibsted Grotesk', 'Schibsted Grotesk Fallback', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --serif: 'Instrument Serif', 'Instrument Serif Fallback', 'Iowan Old Style', Georgia, serif; /* headlines */
  --mono: 'IBM Plex Mono', 'IBM Plex Mono Fallback', ui-monospace, Consolas, monospace;         /* eyebrow labels only */
  --wordmark: 'Newsreader', 'Iowan Old Style', Georgia, serif; /* the RUVARA logo only */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
/* Anchor links stop below the fixed bar instead of under it. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 17px/1.6 var(--sans);
  /* Not tabular figures here: in this typeface they also widen commas and
     full stops ("chamber , on any device ."). Only the clock times in the
     history screen use them, where columns must line up. */
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--tape-2); outline-offset: 3px; border-radius: 6px; }
/* Small finishing touches: selected text and the scrollbar wear the palette. */
::selection { background: rgba(47, 107, 255, 0.45); color: #fff; }
html { scrollbar-color: #2a3a5e var(--ink); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 10px; z-index: 100; font-weight: 600; }
.skip:focus { left: 16px; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
@media (min-width: 720px) { .wrap { width: min(1200px, 100% - 64px); } }

/* ------------------------------------------------------------------ type */
.eyebrow {
  font: 500 12.5px/1.2 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-2);
  display: flex; align-items: center; gap: 10px;
}
/* A small gold light beside the opening line. */
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--gold); box-shadow: 0 0 0 4px rgba(226, 184, 87, 0.16), 0 0 14px rgba(226, 184, 87, 0.55); }
/* Serif display: one weight only, so never let the browser fake a bold;
   tracking eases from slightly tight (huge sizes) to neutral (phones). */
h1, h2, .say, .pname { font-synthesis: none; font-kerning: normal; font-optical-sizing: auto; }
h1 {
  font: 400 clamp(46px, 7.4vw, 104px)/0.98 var(--serif);
  letter-spacing: -0.015em;
}
h2 {
  font: 400 clamp(35px, 4.6vw, 64px)/1.04 var(--serif);
  letter-spacing: -0.01em;
}
/* The emphasised words are in the serif's italic, and coloured. A little
   room on the right keeps the slanted last letter inside the gradient. */
h1 em, h2 em, .say em { font-style: italic; color: #a9c1ff; padding-right: 0.08em; margin-right: -0.04em; }
/* The two big promises (the opening and the close) run sapphire into gold. */
h1 em, .close h2 em, .say em {
  background: linear-gradient(100deg, #9db8ff 0%, #7fa4ff 38%, #e2b857 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* The opening's gradient is twice as wide so its gold can sweep across once. */
h1 em {
  background-image: linear-gradient(100deg, #9db8ff 0%, #7fa4ff 19%, #e2b857 50%, #f6dc9a 56%, #7fa4ff 82%, #9db8ff 100%);
  background-size: 200% 100%; background-position: 0 0;
}
h3 { font: 600 19px/1.3 var(--sans); letter-spacing: -0.01em; }
.sub { color: var(--paper-2); max-width: 46ch; margin-top: 18px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 14px;
  font: 600 15.5px/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.3s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.3s;
}
.btn:hover { transform: translateY(-2px); }
/* The main action: sapphire, with white words. */
.btn-tape {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #2f6bff, #2153d6); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 12px 30px -12px rgba(47, 107, 255, 0.9);
}
.btn-tape:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 0 0 4px rgba(47, 107, 255, 0.22), 0 14px 34px -12px rgba(47, 107, 255, 1); }
/* A band of light crosses the main button when the pointer arrives. */
.btn-tape::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.32) 48%, rgba(246, 220, 154, 0.28) 54%, transparent 70%);
  transform: translateX(-110%); transition: transform 0.9s var(--ease);
}
.btn-tape:hover::after { transform: translateX(110%); }
.btn-line { border-color: rgba(238, 242, 250, 0.3); color: var(--paper); background: rgba(238, 242, 250, 0.04); }
.btn-line:hover { border-color: var(--tape-2); background: rgba(47, 107, 255, 0.12); box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.12); }
/* The bar's button: pearl white with navy words (the old "paper" button). */
.btn-paper {
  background: linear-gradient(180deg, #ffffff, #e2e8f4); color: var(--ink);
  min-height: 44px; padding: 0 18px;
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(11, 18, 32, 0.08), 0 8px 20px -10px rgba(0, 0, 0, 0.7);
}
.btn-paper:hover { box-shadow: inset 0 1px 0 #fff, 0 0 0 4px rgba(47, 107, 255, 0.28), 0 10px 24px -10px rgba(47, 107, 255, 0.7); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ----------------------------------------------------------------- header
   Two states, with no waiting either way.
   At the very top of the page the bar is quiet: the Ruvara mark and name,
   and one button, sitting straight on the page. (The mark draws its gold
   band once as the page opens.)
   After the first scroll the bar gathers in from the sides into a floating
   sapphire "dock": a frosted sapphire surface opens from the centre, a fine
   gold hairline draws along its top edge, the menu words rise in one after
   another, and the Sign in button turns sapphire. Along the lower edge a
   line fills as you read down the page and ends in a small gold arrow, like
   the cut end of the tape on the logo.
   Keyboard users get the full bar as soon as they tab in. On phones and
   tablets the menu lives behind a "Menu" button and opens as a full-height
   sheet that grows out of that button. */
.top { position: fixed; inset: 0 0 auto; z-index: 50; padding: 14px 16px 0; pointer-events: none; }
.capsule {
  pointer-events: auto; position: relative; isolation: isolate;
  width: min(1248px, 100%); margin-inline: auto; height: 66px;
  display: flex; align-items: center; gap: 20px; padding: 0 10px 0 16px;
  transition: width 0.6s var(--ease), height 0.45s var(--ease);
}
.top.scrolled .capsule, .top:focus-within .capsule { width: min(1060px, 100%); height: 62px; }
/* The surface: frosted sapphire over navy, dense enough to read over the
   papers, the pictures or the 3D scene. */
.capsule::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 20px; pointer-events: none;
  background:
    radial-gradient(120% 160% at 50% -60%, rgba(47, 107, 255, 0.34), transparent 62%),
    linear-gradient(180deg, rgba(24, 39, 78, 0.9), rgba(12, 20, 40, 0.92));
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 0 1px rgba(127, 164, 255, 0.18),
    0 24px 50px -22px rgba(2, 6, 18, 0.95);
  opacity: 0; clip-path: inset(0 calc(50% - 90px) round 20px);
  transition: opacity 0.28s ease, clip-path 0.55s var(--ease);
}
/* The gold accent: a hairline along the top edge, brightest in the middle. */
.capsule::after {
  content: ''; position: absolute; left: 14%; right: 14%; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(226, 184, 87, 0), rgba(226, 184, 87, 0.9) 35%, #f6dc9a 50%, rgba(226, 184, 87, 0.9) 65%, rgba(226, 184, 87, 0));
  box-shadow: 0 0 12px rgba(226, 184, 87, 0.45);
  opacity: 0; transform: scaleX(0);
  transition: opacity 0.3s ease, transform 0.7s var(--ease) 0.08s;
}
.top.scrolled .capsule::before, .top:focus-within .capsule::before { opacity: 1; clip-path: inset(0 0 round 20px); }
.top.scrolled .capsule::after, .top:focus-within .capsule::after { opacity: 1; transform: none; }
/* How far down the page you are: sapphire into gold, ending in a gold arrow. */
.progress { position: absolute; left: 20px; right: 20px; bottom: 0; height: 2px; pointer-events: none; opacity: 0; transition: opacity 0.4s; }
.progress::before {
  content: ''; position: absolute; inset: 0; border-radius: 2px;
  background: linear-gradient(90deg, rgba(47, 107, 255, 0.4), var(--tape-2) 70%, var(--gold));
  transform-origin: left; transform: scaleX(var(--read, 0));
}
.progress::after {
  content: ''; position: absolute; top: -3px; left: calc(var(--read, 0) * 100%); width: 9px; height: 8px; margin-left: -2px;
  background: var(--gold); clip-path: polygon(0 0, 50% 0, 100% 50%, 50% 100%, 0 100%);
  filter: drop-shadow(0 0 5px rgba(226, 184, 87, 0.9));
}
.top.scrolled .progress { opacity: 1; }

.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 20px/1 var(--sans); letter-spacing: -0.02em; text-decoration: none; color: var(--paper); flex: none; min-height: 44px; }
/* The RUVARA wordmark: the original face (Newsreader), in capitals, light on the navy bar. */
.logo-classic { font: 600 22px/1 var(--wordmark); letter-spacing: 0.1em; text-transform: uppercase; }
.top .logo { text-shadow: 0 1px 10px rgba(3, 7, 18, 0.6); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.nav { position: relative; display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav a:not(.btn) {
  --d: 0s;
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 9px;
  min-height: 44px; padding: 0 15px; border-radius: 12px;
  font: 500 15.5px/1 var(--sans); color: var(--paper-2); text-decoration: none;
  transition: color 0.2s, opacity 0.3s ease var(--d), transform 0.5s var(--ease) var(--d);
}
.nav a:nth-of-type(2) { --d: 0.05s; }
.nav a:nth-of-type(3) { --d: 0.1s; }
.nav a:nth-of-type(4) { --d: 0.15s; }
.nav a:not(.btn):hover, .nav a.active { color: var(--paper); }
/* Icons are for the phone menu; the desktop bar shows words only. */
.nav-ico { display: none; }
.nav-ico svg { width: 22px; height: 22px; }
.nav-foot { display: none; }
/* The reading pill: a sapphire glass drop that slides to the section in view. */
.nav-pill {
  position: absolute; z-index: 0; top: 50%; left: 0; height: 40px; width: 0; border-radius: 12px;
  background: linear-gradient(180deg, rgba(47, 107, 255, 0.3), rgba(47, 107, 255, 0.12));
  box-shadow: inset 0 0 0 1px rgba(127, 164, 255, 0.3), inset 0 1px 0 rgba(238, 242, 250, 0.16);
  transform: translate(var(--pill-x, 0), -50%); width: var(--pill-w, 0); opacity: var(--pill-o, 0);
  transition: transform 0.45s var(--ease), width 0.45s var(--ease), opacity 0.25s;
}
/* The bar's one button. Pearl at the top of the page; once the dock forms
   it fills with sapphire (white words, AA contrast) from the inside out. */
.nav-cta { flex: none; gap: 8px; position: relative; overflow: hidden; isolation: isolate; }
.nav-cta::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(180deg, #2f6bff, #2153d6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  opacity: 0; transform: scale(0.6); transition: opacity 0.3s ease, transform 0.5s var(--ease);
}
.top.scrolled .nav-cta { color: #fff; border-color: #2f6bff; box-shadow: 0 10px 24px -12px rgba(47, 107, 255, 0.95); }
.top.scrolled .nav-cta::before { opacity: 1; transform: none; }
.nav-cta .arrow { display: inline-block; transition: transform 0.35s var(--ease); }
.nav-cta:hover .arrow { transform: translateX(3px); }
.nav-cta-mobile, .nav-toggle { display: none; }

/* Desktop, at the top of the page: the menu words wait out of sight (still
   there for screen readers, and shown the moment a keyboard reaches them). */
@media (min-width: 901px) {
  .top:not(.scrolled):not(:focus-within) .nav { pointer-events: none; }
  .top:not(.scrolled):not(:focus-within) .nav a:not(.btn) { opacity: 0; transform: translateY(10px); transition-delay: 0s; }
  .top:not(.scrolled):not(:focus-within) .nav-pill { opacity: 0; }
  /* A small gold light under the section being read. */
  .nav a:not(.btn)::after {
    content: ''; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
    background: var(--gold); box-shadow: 0 0 8px rgba(226, 184, 87, 0.9);
    transform: scale(0); transition: transform 0.4s var(--spring, var(--ease));
  }
  .nav a.active::after { transform: scale(1); }
}

/* Phones and tablets: a compact bar, the "Menu" button, and a full-height sheet. */
@media (max-width: 900px) {
  .top { padding: 8px 8px 0; }
  .capsule, .top.scrolled .capsule, .top:focus-within .capsule { width: 100%; height: 58px; gap: 10px; padding: 0 7px 0 12px; }
  .capsule::before { border-radius: 18px; }
  .capsule::after { left: 22%; right: 22%; }
  .logo-classic { font-size: 20px; }
  .nav-cta { margin-left: auto; padding: 0 16px; }
  .nav-pill { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; flex: none;
    min-height: 44px; padding: 0 14px 0 12px; border-radius: 13px; cursor: pointer;
    border: 1px solid rgba(127, 164, 255, 0.28);
    background: rgba(18, 27, 46, 0.6);
    color: var(--paper); font: 600 15px/1 var(--sans);
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.25s, border-color 0.25s;
  }
  .nav-toggle .bars { position: relative; display: block; width: 18px; height: 12px; }
  .nav-toggle .bars span { position: absolute; left: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.35s var(--ease), top 0.35s var(--ease), width 0.35s var(--ease); }
  .nav-toggle .bars span:first-child { top: 1px; width: 18px; }
  /* The second bar is a short gold one, like the tape on the mark. */
  .nav-toggle .bars span:last-child { top: 9px; width: 12px; background: var(--gold); }
  .nav-open .nav-toggle { border-color: rgba(226, 184, 87, 0.5); background: rgba(47, 107, 255, 0.2); }
  .nav-open .nav-toggle .bars span:first-child { top: 5px; transform: rotate(45deg); }
  .nav-open .nav-toggle .bars span:last-child { top: 5px; width: 18px; transform: rotate(-45deg); }

  /* The sheet: full height, solid navy, one large row per place. It grows
     out of the Menu button as a circle (about half a second). */
  .nav {
    position: fixed; inset: 0; z-index: -1; margin: 0;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: calc(100px + env(safe-area-inset-top)) 20px calc(28px + env(safe-area-inset-bottom));
    overflow-y: auto; overscroll-behavior: contain;
    background:
      radial-gradient(120% 55% at 50% -8%, rgba(47, 107, 255, 0.3), transparent 62%),
      radial-gradient(90% 45% at 100% 105%, rgba(226, 184, 87, 0.12), transparent 70%),
      var(--ink);
    visibility: hidden; clip-path: circle(0 at calc(100% - 56px) 37px);
    transition: clip-path 0.45s var(--ease), visibility 0s linear 0.45s;
  }
  .nav-open .nav { visibility: visible; clip-path: circle(160% at calc(100% - 56px) 37px); transition: clip-path 0.6s var(--ease); }
  .nav a:not(.btn) {
    width: 100%; max-width: 560px; margin-inline: auto;
    min-height: 72px; padding: 0 6px 0 0; gap: 16px; border-radius: 0;
    border-bottom: 1px solid rgba(238, 242, 250, 0.1);
    font: 600 23px/1.2 var(--sans); letter-spacing: -0.015em; color: var(--paper);
    opacity: 0; transform: translateY(16px);
    transition: opacity 0.35s ease var(--d), transform 0.55s var(--ease) var(--d), color 0.2s;
  }
  .nav a:not(.btn):first-of-type { border-top: 1px solid rgba(238, 242, 250, 0.1); }
  .nav a:nth-of-type(1) { --d: 0.12s; }
  .nav a:nth-of-type(2) { --d: 0.17s; }
  .nav a:nth-of-type(3) { --d: 0.22s; }
  .nav a:nth-of-type(4) { --d: 0.27s; }
  .nav a:not(.btn)::after { content: '\2192'; margin-left: auto; font-size: 22px; line-height: 1; color: var(--muted); transition: transform 0.35s var(--ease), color 0.2s; }
  .nav a:not(.btn):hover::after, .nav a:not(.btn):active::after { transform: translateX(4px); color: var(--gold); }
  .nav-open .nav a:not(.btn) { opacity: 1; transform: none; }
  .nav-ico {
    display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px;
    background: linear-gradient(180deg, rgba(47, 107, 255, 0.24), rgba(47, 107, 255, 0.1)); color: #a9c1ff;
    box-shadow: inset 0 0 0 1px rgba(127, 164, 255, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  .nav a.active .nav-ico { background: rgba(226, 184, 87, 0.16); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(226, 184, 87, 0.45); }
  .nav-cta-mobile {
    --d: 0.32s;
    display: flex; width: 100%; max-width: 560px; margin: 28px auto 0; min-height: 60px; font-size: 18px; border-radius: 16px;
    background: linear-gradient(180deg, #2f6bff, #2153d6); color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 16px 36px -14px rgba(47, 107, 255, 0.95);
    opacity: 0; transform: translateY(16px);
    transition: opacity 0.35s ease var(--d), transform 0.55s var(--ease) var(--d);
  }
  .nav-open .nav-cta-mobile { opacity: 1; transform: none; }
  /* The sheet's foot: the company line under a short gold rule. */
  .nav-foot {
    display: block; width: 100%; max-width: 560px; margin: auto auto 0; padding-top: 36px;
    font: 500 14px/1.5 var(--sans); color: var(--muted);
    opacity: 0; transition: opacity 0.4s ease 0.38s;
  }
  .nav-foot::before { content: ''; display: block; width: 36px; height: 2px; border-radius: 2px; margin-bottom: 14px; background: linear-gradient(90deg, var(--gold), rgba(226, 184, 87, 0)); }
  .nav-open .nav-foot { opacity: 1; }
  .nav-open { overflow: hidden; }
  /* With the sheet open, the bar's own surface and lines step back. */
  /* (Written with .top.top so it outweighs the "scrolled" rules above.) */
  .nav-open .top.top .capsule::before, .nav-open .top.top .capsule::after, .nav-open .top.top .progress { opacity: 0; }
  .nav-open .nav-cta { opacity: 0; pointer-events: none; }
}
/* Small phones: the mark, the name and the Menu button only. */
@media (max-width: 559px) { .nav-cta { display: none; } .nav-toggle { margin-left: auto; } }

/* ------------------------------------------------------------ the opening */
.story { position: relative; height: 290vh; height: 290svh; }
.stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background:
    radial-gradient(80% 60% at 50% 80%, rgba(47, 107, 255, 0.16), transparent 70%),
    radial-gradient(55% 45% at 82% 18%, rgba(226, 184, 87, 0.07), transparent 70%),
    var(--ink);
}
/* The 3D scene loads just after the words (see js/home.js) and fades in,
   so the page is readable at once and nothing jumps. */
#paper { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.has-webgl #paper { opacity: 1; }
/* A soft navy pool sits behind the words so the headline keeps its
   contrast wherever the papers drift (they still show at the edges). */
.vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(48% 52% at 24% 64%, rgba(11, 18, 32, 0.66), rgba(11, 18, 32, 0.3) 60%, transparent 80%), linear-gradient(90deg, rgba(11, 18, 32, 0.9) 0%, rgba(11, 18, 32, 0.38) 45%, transparent 70%), linear-gradient(0deg, var(--ink) 0%, transparent 22%), linear-gradient(180deg, rgba(11, 18, 32, 0.55) 0%, transparent 14%); }
@media (max-width: 760px) { .vignette { background: linear-gradient(0deg, rgba(11, 18, 32, 0.95) 0%, rgba(11, 18, 32, 0.6) 55%, rgba(11, 18, 32, 0.12) 80%), linear-gradient(180deg, rgba(11, 18, 32, 0.6) 0%, transparent 16%); } }
.labels { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
/* Each file's number appears once its pile is tied: a small reward, in gold. */
.pile-label {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  font: 600 11px/1 var(--sans); letter-spacing: 0.04em; color: var(--paper);
  padding: 6px 9px 6px 8px; border-radius: 8px; background: rgba(11, 18, 32, 0.84);
  border: 1px solid rgba(226, 184, 87, 0.5); box-shadow: 0 0 16px rgba(226, 184, 87, 0.2);
}
.pile-label::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; vertical-align: 1px; background: var(--gold); box-shadow: 0 0 6px rgba(226, 184, 87, 0.9); }
@media (max-width: 760px) { .pile-label { font-size: 10px; padding: 4px 6px; } }

.copy { position: relative; height: 100%; }
.step {
  position: absolute; left: 0; right: 0; bottom: max(88px, 12vh); max-width: 760px;
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
}
.step-1, .step-2 { opacity: 0; transform: translateY(24px); pointer-events: none; }
.stage[data-step='1'] .step-0, .stage[data-step='2'] .step-0 { opacity: 0; transform: translateY(-24px); pointer-events: none; }
.stage[data-step='1'] .step-1, .stage[data-step='2'] .step-2 { opacity: 1; transform: none; }
.step-0 h1 { margin-top: 22px; }
/* A stronger, softly feathered navy shade sits right behind the opening
   words (inside the step, so it fades with them), and the small line above
   the headline is brighter and a little larger: both stay at 4.5:1 or better
   wherever the papers drift underneath. */
.step-0 { isolation: isolate; }
.step-0::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  inset: -40px -60px -32px -52px; border-radius: 48px;
  background: rgba(11, 18, 32, 0.8); filter: blur(28px);
}
.step-0 .eyebrow { font-size: 13.5px; color: #eef2fa; text-shadow: 0 1px 2px rgba(11, 18, 32, 0.9), 0 0 14px rgba(11, 18, 32, 0.85); }
.step-0 .lede { color: #c9d3e6; text-shadow: 0 1px 2px rgba(11, 18, 32, 0.85), 0 0 16px rgba(11, 18, 32, 0.75); }
/* The opening arrives in one quick, calm sweep (under a second, starting at
   once): the line, the promise, then the buttons. Readable from the first
   frame for anyone who asks for less motion. */
@media (prefers-reduced-motion: no-preference) {
  .step-0 > * { animation: intro 0.9s var(--ease) both; }
  .step-0 > .lede { animation-delay: 0.1s; }
  .step-0 > .cta { animation-delay: 0.18s; }
  .step-0 > .note { animation-delay: 0.26s; }
  .step-0 > h1 em { animation: shimmer 1.6s ease 0.35s both; }
}
@keyframes intro { from { opacity: 0; transform: translateY(22px); } }
/* "case register." catches the light once, sapphire running into gold. */
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.lede { margin-top: 24px; color: var(--paper-2); max-width: 54ch; font-size: clamp(17px, 1.3vw, 19px); }
.note { margin-top: 22px; font: 500 13px/1.5 var(--sans); letter-spacing: 0.04em; color: var(--muted); }
.kicker { font: 500 12.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--tape-2); }
.say { margin-top: 18px; font: 400 clamp(35px, 4.6vw, 62px)/1.06 var(--serif); letter-spacing: -0.01em; max-width: 17ch; }
.specimen { margin-top: 22px; font: 500 13.5px/1.5 var(--mono); letter-spacing: 0.02em; color: var(--paper-2); }
.scroll-cue {
  position: absolute; right: 32px; bottom: 32px; display: flex; align-items: center; gap: 10px;
  font: 500 11.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  transition: opacity 0.4s;
}
.scroll-cue span { width: 1px; height: 44px; background: linear-gradient(var(--gold), transparent); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
.stage:not([data-step='0']) .scroll-cue { opacity: 0; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 760px) {
  .step { bottom: 76px; }
  .scroll-cue { display: none; }
  .note { display: none; }
}
/* Without WebGL the opening is a short, still hero rather than a long scroll. */
.no-webgl .story { height: auto; }
.no-webgl .stage { position: relative; height: auto; min-height: 88vh; padding: 140px 0 80px; }
.no-webgl .step { position: relative; bottom: auto; }
.no-webgl .step-1, .no-webgl .step-2, .no-webgl .scroll-cue { display: none; }

/* ------------------------------------------------------------- sections */
section:not(.story) { padding: clamp(96px, 13vw, 176px) 0; position: relative; }
.narrow { max-width: 780px; }
.sec-head h2 { margin-top: 18px; }
.sec-head .eyebrow::before, .inside-copy .eyebrow::before {
  content: ''; width: 28px; height: 2px; border-radius: 2px; flex: none;
  background: linear-gradient(90deg, var(--gold), rgba(226, 184, 87, 0.15));
}
.sec-head.narrow .eyebrow, .close .eyebrow { justify-content: flex-start; }
.sec-head .sub { font-size: clamp(17px, 1.3vw, 19px); }
.link-arrow { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--paper); border-bottom: 1px solid rgba(127, 164, 255, 0.4); padding-bottom: 2px; transition: border-color 0.3s, gap 0.4s var(--ease); }
.link-arrow:hover { border-color: var(--gold); gap: 12px; }
.sec-more { margin-top: 40px; }

/* Headings arrive once, uncovered from below. They are fully readable
   before this runs; only headings still below the fold are held back. */
.reveal.pending { clip-path: inset(0 0 100% 0); transform: translateY(0.35em); }
.reveal.pending.in { clip-path: inset(-12% -4% -18% -4%); transform: none; transition: clip-path 0.9s var(--ease), transform 0.9s var(--ease); }

/* --------------------------------------------------------------- the tour */
.tour-grid { display: grid; gap: 56px; margin-top: 64px; }
@media (min-width: 960px) {
  .tour-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: start; }
  .tour-stage { position: sticky; top: calc(50vh - 250px); }
}
.tour-steps { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.tour-steps li { position: relative; padding: 30px 0 30px 28px; border-left: 1px solid var(--line); }
.tour-steps li::before { content: ''; position: absolute; left: -1px; top: 30px; width: 2px; height: 0; background: linear-gradient(var(--tape), var(--gold)); transition: height 0.7s var(--ease); }
.tour-steps h3 { margin-top: 14px; font-size: 22px; }
.tour-steps p { color: var(--paper-2); margin-top: 8px; max-width: 42ch; }
.tag { display: inline-block; font: 600 11.5px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper); padding: 7px 10px; border: 1px solid rgba(127, 164, 255, 0.3); background: rgba(47, 107, 255, 0.1); border-radius: 8px; white-space: nowrap; }
@media (min-width: 960px) {
  .tour-steps li { min-height: 46vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
  .tour-js .tour-steps li { opacity: 0.66; transition: opacity 0.5s var(--ease); } /* 0.66 keeps the dimmed steps at 4.5:1 or better on navy */
  .tour-js .tour-steps li.on { opacity: 1; }
  .tour-steps li.on::before { height: calc(100% - 60px); }
}
@media (min-width: 960px) { .tour-steps .win { display: none; } }
@media (max-width: 959px) {
  .tour-stage { display: none; }
  .tour-steps li { padding: 0 0 56px; border: 0; }
  .tour-steps li::before { display: none; }
  .tour-steps .win { margin-top: 22px; }
}

/* The app window, drawn in the app's own Midnight Sapphire look. */
.win {
  --app: #0f1729; --app-2: #121b2e; --app-3: #16213a; --app-ink: #eef2fa; --app-mute: #9aa7c2; --app-line: rgba(238, 242, 250, 0.08);
  border-radius: 16px; overflow: hidden; background: #0a101d;
  box-shadow:
    0 60px 120px -40px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(238, 242, 250, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 90px -30px rgba(47, 107, 255, 0.45);
}
.win-bar { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(238, 242, 250, 0.16); }
.win-url { margin: 0 auto; transform: translateX(-20px); font: 500 11.5px/1 var(--sans); color: var(--paper-2); padding: 6px 14px; border-radius: 8px; background: rgba(238, 242, 250, 0.06); }
.win-body {
  display: grid; grid-template-columns: 132px 1fr; height: 440px; color: var(--app-ink);
  background:
    radial-gradient(70% 60% at 0% 0%, rgba(47, 107, 255, 0.14), transparent 62%),
    radial-gradient(50% 50% at 100% 100%, rgba(226, 184, 87, 0.05), transparent 60%),
    var(--app);
}
.win-side { background: rgba(238, 242, 250, 0.02); border-right: 1px solid var(--app-line); padding: 16px 10px; display: flex; flex-direction: column; gap: 4px; }
.ws-logo { width: 22px; height: 18px; border-radius: 3px; margin: 0 0 14px 6px; background: linear-gradient(#eef2fa 0 36%, var(--tape) 36% 56%, #eef2fa 56%); }
.ws-i { position: relative; font: 500 12.5px/1 var(--sans); color: var(--app-mute); padding: 9px 10px; border-radius: 8px; transition: background 0.4s, color 0.4s; }
.ws-i.on { background: linear-gradient(90deg, rgba(47, 107, 255, 0.22), rgba(47, 107, 255, 0.06)); color: var(--app-ink); box-shadow: inset 0 0 0 1px rgba(127, 164, 255, 0.18); }
.ws-i.on::before { content: ''; position: absolute; left: 0; top: 7px; bottom: 7px; width: 2.5px; border-radius: 0 2px 2px 0; background: var(--tape-2); box-shadow: 0 0 8px rgba(127, 164, 255, 0.8); }
.screens { position: relative; overflow: hidden; }
.scr { position: absolute; inset: 0; padding: 22px 24px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.45s var(--ease), transform 0.6s var(--ease), visibility 0s 0.45s; }
.scr.on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.5s var(--ease) 0.08s, transform 0.7s var(--ease) 0.08s, visibility 0s; }
@media (max-width: 959px) { .win-body { grid-template-columns: 1fr; height: 360px; } .win-side { display: none; } .scr { padding: 18px; } }
/* Each screen plays once when it comes up. */
@keyframes up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.win.live .scr.on > * { animation: up 0.6s var(--ease) both; }
.win.live .scr.on > *:nth-child(2) { animation-delay: 0.08s; }
.win.live .scr.on > *:nth-child(3) { animation-delay: 0.16s; }
.win.live .scr.on > *:nth-child(4) { animation-delay: 0.24s; }
.win.live .scr.on > *:nth-child(5) { animation-delay: 0.32s; }
.win.live .scr.on > *:nth-child(6) { animation-delay: 0.4s; }

/* 0 · read — the scanned page stays paper-white. */
.scr-read { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; }
.sheet { position: relative; background: #fbfaf6; border-radius: 4px; padding: 22px 20px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 12px 28px -12px rgba(0, 0, 0, 0.6); overflow: hidden; font-family: var(--sans); color: #14213d; }
.sh-court { font: 600 9.5px/1.4 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; text-align: center; }
.sh-no { margin-top: 10px; text-align: center; font-size: 14px; font-weight: 600; line-height: 1.5; }
.sh-btw { margin-top: 10px; font: 600 8.5px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: #5b6478; }
.sh-party { margin-top: 5px; font-size: 13px; }
.sh-lines { margin-top: 14px; display: grid; gap: 7px; }
.sh-lines b { display: block; height: 4px; border-radius: 2px; background: rgba(20, 33, 61, 0.1); }
.hl { border-radius: 3px; padding: 0 2px; box-shadow: 0 0 0 1px rgba(47, 107, 255, 0.6); background: rgba(47, 107, 255, 0.12); }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 36px; background: linear-gradient(180deg, transparent, rgba(47, 107, 255, 0.16)); border-bottom: 1.5px solid rgba(47, 107, 255, 0.75); opacity: 0; }
@keyframes scan { 0% { transform: translateY(-40px); opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(330px); opacity: 0; } }
@keyframes hl { from { box-shadow: 0 0 0 1px rgba(47, 107, 255, 0); background: transparent; } }
.win.live .scr-read.on .scan { animation: scan 1.8s cubic-bezier(0.45, 0, 0.55, 1) 0.3s both; }
.win.live .scr-read.on .hl { animation: hl 0.5s var(--ease) both; }
.win.live .scr-read.on .hl-1 { animation-delay: 0.7s; }
.win.live .scr-read.on .hl-2 { animation-delay: 0.85s; }
.win.live .scr-read.on .hl-3 { animation-delay: 1.1s; }
.found { align-self: start; background: var(--app-3); border: 1px solid var(--app-line); border-radius: 12px; padding: 16px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.f-h { font: 600 10.5px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.f-r { display: grid; gap: 3px; padding: 10px 0; border-bottom: 1px solid var(--app-line); font-size: 11.5px; color: var(--app-mute); }
.f-r strong { font: 600 13px/1.2 var(--sans); color: var(--app-ink); }
.win.live .scr-read.on .f-r { animation: up 0.5s var(--ease) both; }
.win.live .scr-read.on .f-r:nth-of-type(2) { animation-delay: 0.9s; }
.win.live .scr-read.on .f-r:nth-of-type(3) { animation-delay: 1.05s; }
.win.live .scr-read.on .f-r:nth-of-type(4) { animation-delay: 1.3s; }
.f-bar { margin-top: 14px; height: 4px; border-radius: 2px; background: rgba(238, 242, 250, 0.08); overflow: hidden; }
.f-bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--ok), #5fd39a); transform-origin: left; }
@keyframes fill { from { transform: scaleX(0.04); } }
.win.live .scr-read.on .f-bar span { animation: fill 2.2s var(--ease) 0.4s both; }
.f-foot { margin-top: 8px; font: 500 10.5px/1 var(--sans); color: var(--app-mute); }
@media (max-width: 559px) { .scr-read { grid-template-columns: 1fr; } .found { display: none; } }

/* 1 · codes */
.c-court { font: 600 11px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--app-mute); }
.c-no { margin-top: 12px; font: 700 40px/1 var(--sans); letter-spacing: -0.03em; }
.c-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.c-chips span { font: 600 11.5px/1 var(--sans); padding: 7px 10px; border-radius: 8px; background: rgba(238, 242, 250, 0.07); }
.c-chips .t { background: var(--tape-fill); color: #fff; }
.c-dl { margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--app-line); border: 1px solid var(--app-line); border-radius: 12px; overflow: hidden; }
.c-dl div { background: var(--app-3); padding: 12px 14px; }
.c-dl dt { font: 600 10px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--app-mute); }
.c-dl dd { margin: 6px 0 0; font: 500 13px/1.3 var(--sans); }

/* 2 · sort */
.s-h, .k-h, .p-h, .l-h { font: 600 20px/1 var(--sans); letter-spacing: -0.015em; display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.s-h span { font: 600 11px/1 var(--sans); background: var(--tape-fill); color: #fff; padding: 4px 8px; border-radius: 99px; }
.s-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 12px 14px; margin-bottom: 8px; background: var(--app-3); border: 1px solid var(--app-line); border-radius: 12px; font-size: 12.5px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.s-f { font: 500 12px/1 var(--sans); color: var(--app-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-to { font: 600 12px/1 var(--sans); padding: 6px 8px; border-radius: 8px; background: rgba(47, 107, 255, 0.16); color: #a9c1ff; }
.s-to::before { content: '→ '; color: var(--app-mute); }
.s-ok { font: 600 11.5px/1 var(--sans); padding: 7px 10px; border-radius: 8px; background: var(--app-ink); color: var(--ink); }
/* Filed: the button turns green, with a brief gold glow — a small reward. */
@keyframes filed { to { background: var(--ok); color: var(--ink); box-shadow: 0 0 0 3px rgba(226, 184, 87, 0.35), 0 0 18px rgba(226, 184, 87, 0.45); } }
.win.live .scr-sort.on .s-row:nth-of-type(2) .s-ok { animation: filed 0.4s var(--ease) 1.4s both; }
.s-note { margin-top: 14px; font-size: 12.5px; color: var(--app-mute); max-width: 44ch; }
@media (max-width: 559px) { .s-f { display: none; } .s-row { grid-template-columns: 1fr auto; } }

/* 3 · cause list */
.k-h span { font: 500 12px/1 var(--sans); color: var(--app-mute); letter-spacing: 0; }
.k-row { display: grid; grid-template-columns: 52px 60px 1fr auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--app-line); font-size: 12.5px; }
.k-hall { font: 600 11px/1 var(--sans); padding: 6px 0; text-align: center; border-radius: 8px; background: rgba(238, 242, 250, 0.07); }
.k-item { font: 500 11.5px/1 var(--sans); color: var(--app-mute); }
.k-no { font: 600 13px/1 var(--sans); }
.k-tag { font: 500 11px/1 var(--sans); color: var(--app-mute); }
.k-due { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: rgba(242, 153, 74, 0.1); border: 1px solid rgba(242, 153, 74, 0.38); display: grid; gap: 4px; }
.k-due strong { font: 600 13px/1.2 var(--sans); color: var(--warn); }
.k-due span { font: 500 11.5px/1.3 var(--sans); color: var(--paper-2); }

/* 4 · people */
.p-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--app-line); }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 600 11px/1 var(--sans); background: rgba(47, 107, 255, 0.2); color: #a9c1ff; }
.p-n { font: 600 13px/1.2 var(--sans); display: grid; gap: 2px; }
.p-n em { font: 400 11.5px/1 var(--sans); font-style: normal; color: var(--app-mute); }
.p-a { font: 600 11px/1 var(--sans); padding: 6px 9px; border-radius: 99px; background: rgba(238, 242, 250, 0.07); color: var(--app-mute); }
.p-a.all { background: var(--gold); color: var(--ink); }

/* 5 · history */
.l-r { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--app-line); font-size: 12.5px; color: var(--app-mute); }
.l-r time { font: 500 11.5px/1.5 var(--sans); font-variant-numeric: tabular-nums; }
.l-r b { color: var(--app-ink); font-weight: 600; }

/* ----------------------------------------------------- inside a case file */
.inside { background: linear-gradient(180deg, transparent, rgba(238, 242, 250, 0.03) 45%, transparent); overflow: hidden; }
.inside-grid { display: grid; gap: 64px; align-items: center; }
@media (min-width: 960px) { .inside-grid { grid-template-columns: 5fr 7fr; gap: 88px; } }
.inside h2 { margin-top: 18px; }
/* Gold ticks: the good things a case file gives you. */
.ticks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.ticks li { display: flex; align-items: center; gap: 14px; color: var(--paper); font-weight: 500; }
.ticks li::before {
  content: ''; width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%23E2B857' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat, rgba(226, 184, 87, 0.12);
  box-shadow: inset 0 0 0 1.5px rgba(226, 184, 87, 0.6), 0 0 16px rgba(226, 184, 87, 0.22);
}
.devices { position: relative; padding: 0 148px 70px 0; }
@media (max-width: 559px) { .devices { padding: 0 0 330px 0; } }
/* The case file is paper: warm white with navy ink. */
.file {
  --gx: 30%; --gy: 20%;
  position: relative; border-radius: 18px; padding: 30px; color: #14213d;
  background:
    radial-gradient(90% 70% at var(--gx) var(--gy), rgba(255, 255, 255, 0.7), transparent 60%),
    linear-gradient(#fbfaf6, #efede6);
  box-shadow: 0 50px 90px -34px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 80px -30px rgba(47, 107, 255, 0.35);
  transition: transform 0.6s var(--ease);
  overflow: hidden; isolation: isolate;
}
.file::before { content: ''; position: absolute; left: 22px; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--tape), rgba(47, 107, 255, 0.35)); }
.file > * { position: relative; z-index: 1; padding-left: 18px; }
.file-court { font: 600 11px/1.4 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: #5b6478; }
.file-no { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.file-no strong { font: 700 32px/1 var(--sans); letter-spacing: -0.03em; }
.chip { font: 600 11.5px/1 var(--sans); padding: 6px 9px; border-radius: 7px; background: rgba(20, 33, 61, 0.07); color: #2b3a5c; }
.chip-ok { background: var(--ok); color: var(--ink); }
.file-sub { margin-top: 8px; color: #4a5470; font-size: 14px; }
.parties { margin: 22px 0 18px; font: 600 20px/1.3 var(--sans); letter-spacing: -0.015em; }
.parties .v { font: 600 11px/2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: #5b6478; }
.file-rows { border-top: 1px solid rgba(20, 33, 61, 0.14); }
.file-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 11px 0 11px 18px; margin-left: -18px; border-bottom: 1px solid rgba(20, 33, 61, 0.1); font-size: 14.5px; }
.file-row em { font: 500 12.5px/1 var(--sans); font-style: normal; color: #5b6478; white-space: nowrap; }
.phone {
  position: absolute; z-index: 2; right: 0; bottom: 0; width: 176px; height: 356px; border-radius: 30px; padding: 30px 12px 12px;
  background: #fafaf7; color: #14213d;
  box-shadow: 0 0 0 7px #0a101d, 0 0 0 8px rgba(238, 242, 250, 0.16), 0 50px 80px -30px rgba(0, 0, 0, 0.9);
  transform: translateY(var(--py, 0px)); will-change: transform;
}
@media (max-width: 559px) { .phone { width: 150px; height: 300px; right: 12px; } .phone .ph-card:nth-of-type(n+4) { display: none; } }
.ph-notch { position: absolute; top: 9px; left: 50%; width: 54px; height: 14px; margin-left: -27px; border-radius: 99px; background: #0a101d; }
.ph-top { font: 700 16px/1 var(--sans); margin: 0 4px 12px; }
.ph-card { display: grid; gap: 4px; padding: 10px; margin-bottom: 7px; border-radius: 10px; background: #fff; border: 1px solid rgba(20, 33, 61, 0.08); }
.ph-card strong { font: 600 11.5px/1 var(--sans); }
.ph-card span { font-size: 10.5px; color: #5b6478; }
.ph-card.on { box-shadow: inset 3px 0 0 var(--tape); }
.ph-tabs { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-around; padding: 10px 0; border-top: 1px solid rgba(20, 33, 61, 0.08); }
.ph-tabs i { width: 16px; height: 16px; border-radius: 5px; background: rgba(20, 33, 61, 0.14); }
.ph-tabs i.on { background: var(--tape); }

/* --------------------------------------------------------------- security */
.security { background: var(--ink-2); border-block: 1px solid var(--line); }
.bento { display: grid; gap: 14px; margin-top: 60px; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .bento { grid-template-columns: repeat(3, 1fr); } .t-wide { grid-column: span 2; } }
.t-full { grid-column: 1 / -1; }
@media (min-width: 860px) {
  .t-full { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto auto; column-gap: 40px; min-height: 240px; }
  .t-full .art { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
  .t-full h3 { grid-row: 2; }
  .t-full p { grid-row: 3; }
}
.tile {
  --mx: 50%; --my: 0%;
  position: relative; overflow: hidden; border-radius: 22px; padding: 28px; min-height: 290px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  background: linear-gradient(180deg, rgba(238, 242, 250, 0.05), rgba(238, 242, 250, 0.015));
  border: 1px solid var(--line);
  transition: border-color 0.4s;
}
.tile::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(127, 164, 255, 0.1), transparent 60%); }
.tile:hover { border-color: rgba(127, 164, 255, 0.3); }
.tile:hover::before { opacity: 1; }
.tile h3 { font-size: 19px; }
.tile p { color: var(--paper-2); font-size: 16px; max-width: 46ch; }
.art { flex: 1; min-height: 120px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }

.art-wall { gap: 20px; }
.firm { display: grid; gap: 7px; padding: 16px; width: min(190px, 38%); border-radius: 14px; background: rgba(238, 242, 250, 0.06); border: 1px solid var(--line); font: 600 11.5px/1 var(--sans); letter-spacing: 0.04em; color: var(--paper); }
.firm i { display: block; height: 5px; border-radius: 3px; background: rgba(127, 164, 255, 0.3); }
.firm i:nth-child(2) { width: 80%; } .firm i:nth-child(3) { width: 60%; }
.firm.other { color: var(--muted); opacity: 0.6; }
.firm.other i { background: rgba(238, 242, 250, 0.16); }
.wall { width: 3px; height: 110px; border-radius: 2px; background: linear-gradient(var(--tape-2), var(--tape)); box-shadow: 0 0 24px rgba(47, 107, 255, 0.75); transform-origin: bottom; }
.tile.pending .wall { transform: scaleY(0); }
.tile.pending.in .wall { transform: none; transition: transform 1s var(--ease) 0.3s; }

.art-code { gap: 6px; }
.art-code span { width: 34px; height: 44px; border-radius: 10px; display: grid; place-items: center; font: 600 20px/1 var(--sans); background: rgba(238, 242, 250, 0.06); border: 1px solid var(--line); overflow: hidden; }
.art-code .gap { width: 8px; background: none; border: 0; }
.art-code span:not(.gap) { padding-top: 8px; font-size: 22px; }
.tile.pending .art-code span:not(.gap) { color: transparent; }
.tile.pending.in .art-code span:not(.gap) { color: var(--paper); transition: color 0.3s; }
.tile.pending.in .art-code span:nth-child(2) { transition-delay: 0.08s; } .tile.pending.in .art-code span:nth-child(3) { transition-delay: 0.16s; }
.tile.pending.in .art-code span:nth-child(5) { transition-delay: 0.24s; } .tile.pending.in .art-code span:nth-child(6) { transition-delay: 0.32s; } .tile.pending.in .art-code span:nth-child(7) { transition-delay: 0.4s; }

/* Hosted in India: a gold pin. */
.art-region { flex-direction: column; gap: 8px; }
.pin { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px rgba(226, 184, 87, 0.7); margin-bottom: 8px; }
.pin::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(226, 184, 87, 0.6); animation: ping 2.8s var(--ease) infinite; }
@keyframes ping { from { transform: scale(0.4); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.rg { font: 600 14px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper); }
.city { font: 500 12px/1 var(--sans); color: var(--muted); }

.url { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: rgba(238, 242, 250, 0.06); border: 1px solid var(--line); font: 500 14px/1 var(--sans); color: var(--paper); }
.url i { position: relative; width: 11px; height: 9px; border-radius: 2px; background: var(--ok); margin-top: 4px; }
.url i::before { content: ''; position: absolute; left: 1.5px; right: 1.5px; bottom: 7px; height: 6px; border: 1.6px solid var(--ok); border-bottom: 0; border-radius: 5px 5px 0 0; transition: transform 0.5s var(--ease) 0.4s; }
.tile.pending .url i::before { transform: translateY(-3px); }
.tile.pending.in .url i::before { transform: none; }

.art-nights { display: grid; grid-template-columns: repeat(7, 18px); gap: 7px; align-content: center; }
.art-nights i { width: 18px; height: 18px; border-radius: 5px; background: rgba(43, 182, 115, 0.55); }
.art-nights i:last-child { background: var(--ok); box-shadow: 0 0 14px rgba(43, 182, 115, 0.6); }
.tile.pending .art-nights i { background: rgba(238, 242, 250, 0.07); box-shadow: none; }
.tile.pending.in .art-nights i { background: rgba(43, 182, 115, 0.55); transition: background 0.3s; }
.tile.pending.in .art-nights i:last-child { background: var(--ok); box-shadow: 0 0 14px rgba(43, 182, 115, 0.6); }
.tile.pending.in .art-nights i:nth-child(1) { transition-delay: 0.05s; } .tile.pending.in .art-nights i:nth-child(2) { transition-delay: 0.1s; }
.tile.pending.in .art-nights i:nth-child(3) { transition-delay: 0.15s; } .tile.pending.in .art-nights i:nth-child(4) { transition-delay: 0.2s; }
.tile.pending.in .art-nights i:nth-child(5) { transition-delay: 0.25s; } .tile.pending.in .art-nights i:nth-child(6) { transition-delay: 0.3s; }
.tile.pending.in .art-nights i:nth-child(7) { transition-delay: 0.35s; } .tile.pending.in .art-nights i:nth-child(8) { transition-delay: 0.4s; }
.tile.pending.in .art-nights i:nth-child(9) { transition-delay: 0.45s; } .tile.pending.in .art-nights i:nth-child(10) { transition-delay: 0.5s; }
.tile.pending.in .art-nights i:nth-child(11) { transition-delay: 0.55s; } .tile.pending.in .art-nights i:nth-child(12) { transition-delay: 0.6s; }
.tile.pending.in .art-nights i:nth-child(13) { transition-delay: 0.65s; } .tile.pending.in .art-nights i:nth-child(14) { transition-delay: 0.7s; }

.art-tries { position: relative; align-items: flex-end; gap: 12px; height: 120px; padding-bottom: 22px; }
.art-tries i { width: 22px; height: var(--h); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--tape-2), rgba(47, 107, 255, 0.35)); transform-origin: bottom; }
.art-tries span { position: absolute; bottom: 0; font: 500 11px/1 var(--sans); color: var(--muted); }
.tile.pending .art-tries i { transform: scaleY(0.05); }
.tile.pending.in .art-tries i { transform: none; transition: transform 0.9s var(--ease); }
.tile.pending.in .art-tries i:nth-child(2) { transition-delay: 0.1s; } .tile.pending.in .art-tries i:nth-child(3) { transition-delay: 0.2s; }
.tile.pending.in .art-tries i:nth-child(4) { transition-delay: 0.3s; } .tile.pending.in .art-tries i:nth-child(5) { transition-delay: 0.4s; }

/* ------------------------------------------------------------------ steps */
.steps { --p: 1; list-style: none; margin: 64px 0 0; padding: 0; display: grid; gap: 44px; position: relative; }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; padding-top: 44px; }
  .steps::before, .steps::after { content: ''; position: absolute; left: 0; right: 0; top: 17px; height: 2px; border-radius: 2px; background: var(--line); }
  .steps::after { background: linear-gradient(90deg, var(--tape), var(--tape-2) 70%, var(--gold)); transform-origin: left; transform: scaleX(var(--p)); }
}
@media (max-width: 859px) {
  .steps { padding-left: 52px; }
  .steps::before, .steps::after { content: ''; position: absolute; left: 17px; top: 0; bottom: 0; width: 1px; background: var(--line); }
  .steps::after { background: linear-gradient(var(--tape), var(--gold)); transform-origin: top; transform: scaleY(var(--p)); }
}
.steps li { position: relative; }
.n {
  position: absolute; z-index: 1; display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%;
  font: 600 14px/1 var(--sans); color: var(--paper-2); background: var(--ink); border: 1px solid rgba(238, 242, 250, 0.22);
  transition: background 0.4s, color 0.4s, border-color 0.4s, box-shadow 0.4s;
}
@media (min-width: 860px) { .n { top: -44px; left: 0; } .steps li { padding-top: 12px; } }
@media (max-width: 859px) { .n { left: -52px; top: -6px; } }
.steps li.lit .n { background: var(--tape-fill); border-color: var(--tape); color: #fff; box-shadow: 0 0 0 6px rgba(47, 107, 255, 0.16); }
/* The last step, once the line reaches it, turns gold with a soft glow. */
.steps li:last-child.lit .n { background: var(--gold); border-color: var(--gold); color: var(--ink); box-shadow: 0 0 0 6px rgba(226, 184, 87, 0.18), 0 0 24px rgba(226, 184, 87, 0.55); }
.steps h3 { font-size: 22px; }
.steps p { color: var(--paper-2); margin-top: 10px; max-width: 36ch; }

/* --------------------------------------------------------------- products */
@property --a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.prod-grid { display: grid; gap: 16px; margin-top: 60px; }
@media (min-width: 860px) { .prod-grid { grid-template-columns: 3fr 2fr; } }
.product {
  position: relative; display: grid; gap: 14px; align-content: start; padding: 36px; border-radius: 22px; text-decoration: none; min-height: 300px;
  border: 1px solid transparent;
  background:
    linear-gradient(160deg, var(--ink-3), var(--ink-2)) padding-box,
    conic-gradient(from var(--a), rgba(238, 242, 250, 0.1) 0 50%, rgba(47, 107, 255, 0.95) 64%, rgba(226, 184, 87, 0.95) 72%, rgba(238, 242, 250, 0.1) 86%) border-box;
  animation: orbit 9s linear infinite;
  transition: transform 0.5s var(--ease);
}
@keyframes orbit { to { --a: 360deg; } }
.product:hover { transform: translateY(-4px); }
.product.next { background: linear-gradient(160deg, var(--ink-2), var(--ink)) padding-box, linear-gradient(var(--line), var(--line)) border-box; animation: none; }
.status { justify-self: start; font: 600 11.5px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: #7fe0b0; padding: 7px 10px; border-radius: 8px; background: rgba(43, 182, 115, 0.16); box-shadow: inset 0 0 0 1px rgba(43, 182, 115, 0.35); }
.status.soon { color: var(--paper-2); background: rgba(238, 242, 250, 0.08); box-shadow: none; }
.pname { font: 400 clamp(34px, 3.6vw, 50px)/1.05 var(--serif); letter-spacing: -0.01em; margin-top: 18px; }
.pdesc { color: var(--paper-2); max-width: 44ch; }
.go { font-weight: 600; color: var(--paper); margin-top: auto; padding-top: 18px; }
.product .go span { display: inline-block; transition: transform 0.35s var(--ease); }
.product:hover .go span { transform: translateX(4px); }

/* ------------------------------------------------------------------ close */
.close { text-align: center; overflow: hidden; background: radial-gradient(60% 70% at 50% 100%, rgba(47, 107, 255, 0.22), transparent 70%), radial-gradient(40% 40% at 50% 100%, rgba(226, 184, 87, 0.08), transparent 70%); }
.close h2 { font-size: clamp(42px, 6.4vw, 92px); font-weight: 400; line-height: 1; letter-spacing: -0.015em; max-width: 15ch; margin-inline: auto; }
.close p { color: var(--paper-2); margin: 24px auto 0; max-width: 48ch; }
.close .cta { justify-content: center; margin-top: 36px; }
.contact-line { font: 500 15px/1.6 var(--sans); margin-top: 26px !important; }
.contact-line a { color: var(--paper); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }

/* footer */
/* A fine gold-to-sapphire rule opens the footer. */
.foot { position: relative; padding: 64px 0 calc(40px + env(safe-area-inset-bottom)); color: var(--paper-2); font-size: 15.5px; }
.foot::before {
  content: ''; position: absolute; top: 0; left: 50%; width: min(1200px, 100% - 32px); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(226, 184, 87, 0), rgba(226, 184, 87, 0.6) 30%, rgba(127, 164, 255, 0.45) 70%, rgba(127, 164, 255, 0));
}
.cols { display: grid; gap: 36px; }
@media (min-width: 720px) { .cols { grid-template-columns: 2fr 1fr 1fr; } }
.foot p { margin-top: 12px; }
.foot .small { font-size: 13.5px; color: var(--muted); }
.foot h4 { margin: 0 0 12px; font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.foot ul a { display: inline-flex; align-items: center; min-height: 44px; }
.foot a { text-decoration: none; transition: color 0.2s; }
.foot ul a { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 6px; transition: color 0.2s, text-decoration-color 0.3s; }
.foot a:hover { color: var(--paper); }
.foot ul a:hover { text-decoration-color: var(--gold); }

/* Arrival: whatever is still below the fold when the page loads settles
   into place as it scrolls in: it fades up a little, rippling across a row
   (--i is its place in the row, set by js/home.js). Nothing already on
   screen ever waits, and the page is complete if the script never runs. */
.rise.pending {
  opacity: 0; transform: translateY(30px) scale(0.985);
  transition: opacity 0.6s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.rise.pending.in { opacity: 1; transform: none; }

/* ----------------------------------------------------------- big screens
   On a large monitor or a TV the page would otherwise sit small in the
   middle. Here the bar, the opening words and every section are drawn
   larger in step (the 3D scene already fills the screen). Lengths in
   screen-height units are divided back, because zoom multiplies them. */
@media (min-width: 2200px) {
  .top, .copy, main > section:not(.story), .foot { zoom: 1.25; }
  .step { bottom: max(88px, calc(12vh / 1.25)); }
  .tour-stage { top: calc(50vh / 1.25 - 250px); }
  .tour-steps li { min-height: calc(46vh / 1.25); }
}
@media (min-width: 2900px) {
  .top, .copy, main > section:not(.story), .foot { zoom: 1.6; }
  .step { bottom: max(88px, calc(12vh / 1.6)); }
  .tour-stage { top: calc(50vh / 1.6 - 250px); }
  .tour-steps li { min-height: calc(46vh / 1.6); }
}
@media (min-width: 3400px) {
  .top, .copy, main > section:not(.story), .foot { zoom: 1.9; }
  .step { bottom: max(88px, calc(12vh / 1.9)); }
  .tour-stage { top: calc(50vh / 1.9 - 250px); }
  .tour-steps li { min-height: calc(46vh / 1.9); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation: none !important; }
}


/* ---------------------------------------------------------------- pricing
   The cards are filled in by /js/pricing.js from the server's price list; nothing here knows a price. */
.price-grid { display: grid; gap: 16px; margin-top: 56px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.pc { position: relative; display: grid; gap: 10px; align-content: start; padding: 28px 26px 26px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--ink-3), var(--ink-2)); }
.pc h3 { font: 400 clamp(28px, 2.6vw, 36px)/1.05 var(--serif); letter-spacing: -0.01em; }
.pc-who { color: var(--paper-2); font-size: 15.5px; min-height: 3.2em; }
.pc-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 10px; }
.pc-now { font: 600 clamp(28px, 2.4vw, 34px)/1.1 var(--sans); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pc-wasbox { display: inline-flex; flex-direction: column; line-height: 1.15; }
.pc-wasl { color: var(--muted); font: 500 11.5px/1.2 var(--sans); letter-spacing: 0.04em; text-transform: uppercase; }
.pc-was { color: var(--muted); font-size: 18px; text-decoration: line-through; text-decoration-thickness: 1.5px; font-variant-numeric: tabular-nums; }
.pc-from { color: var(--paper-2); font-size: 15px; }
.pc-per { flex-basis: 100%; color: var(--paper-2); font-size: 14.5px; }
.pc-gst { color: var(--muted); font: 500 12.5px/1.2 var(--mono); letter-spacing: 0.04em; }
.pc-limits { list-style: none; margin: 4px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; color: var(--paper-2); font-size: 14.5px; }
.price-extras { margin-top: 18px; color: var(--paper-2); font-size: 15px; max-width: 70ch; }
.pc .btn { margin-top: 14px; justify-self: start; }
.pc-offer { border-color: rgba(226, 184, 87, 0.45); box-shadow: 0 0 0 1px rgba(226, 184, 87, 0.12) inset; }
.pc-tag { justify-self: start; font: 600 11.5px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); padding: 6px 9px; border-radius: 8px; background: rgba(226, 184, 87, 0.12); }
.price-wait { color: var(--paper-2); grid-column: 1 / -1; }
.price-offer { margin-top: 28px; color: var(--gold); font-weight: 600; }
.price-note { margin-top: 14px; color: var(--muted); font-size: 14.5px; }
.price-promise { margin-top: 28px; color: var(--paper); font-size: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
