/*
  Tessera landing page, version 8: "A day on the record".
  Layout: a held left column (hero and the index of the day) beside seven time-stamped scenes.
  The sky behind them runs from morning blue to evening amber, then the page settles into night.
  Visual language: matte black canvas, frosted panels, pill controls, weight-500 display type,
  hairlines instead of heavy shadows, and one violet glow used as a wash.
*/

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DMSans-Variable.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* Surfaces */
  --void: #0a0a0a;
  --graphite: #161616;
  --panel: #141414;
  --glass: rgba(212, 212, 212, 0.06);
  --glass-dark: rgba(12, 14, 30, 0.32);
  --white: #ffffff;

  /* Text */
  --bone: #ededed;
  --ash: #c2c2c2;
  --smoke: #b2b2b2;
  --slate: #8e8e8e;
  --ink: #161616;
  --ink-soft: #5e5e5e;

  /* Lines */
  --hair: rgba(229, 229, 229, 0.1);
  --hair-mid: rgba(229, 229, 229, 0.18);
  --hair-strong: rgba(229, 229, 229, 0.38);
  --sky-line: rgba(255, 255, 255, 0.3);

  /* The one chromatic accent, only ever as a wash or glow */
  --violet: rgba(107, 98, 242, 0.565);
  --violet-glow: rgba(107, 98, 242, 0.42);

  /* Brand, used inside product views */
  --brand-blue: #0b4fc4;
  --brand-blue-tint: #eef3ff;

  /* The sky, from 08:00 to night */
  --sky: linear-gradient(180deg,
    #163f9c 0%, #2556b3 12%, #3a64ad 28%, #4b6797 44%, #5d6684 58%,
    #76667a 70%, #8c6160 80%, #93573c 88%, #4d2617 95%, #0a0a0a 100%);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  /* Type */
  --font-sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Geist", "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Shape */
  --r-icon: 4px;
  --r-ui: 10px;
  --r-nav: 19px;
  --r-card: 24px;
  --r-large: 40px;
  --r-panel: 42px;
  --r-pill: 9999px;

  /* Layout */
  --gutter: clamp(20px, 4vw, 40px);
  --side-w: clamp(380px, 35vw, 520px);
  --scene-pl: clamp(28px, 4vw, 64px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font: 400 16px/1.55 var(--font-sans);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(255, 255, 255, 0.85); color: var(--ink); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.icon-fill { fill: currentColor; stroke: none; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--white); color: var(--ink); font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.wrap {
  width: 100%;
  max-width: calc(1200px + 2 * 40px);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ---------- Pills ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border-radius: var(--r-pill); border: 1px solid transparent;
  font: 500 15px/1 var(--font-sans); letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.pill .icon { width: 16px; height: 16px; }
.pill-white { background: var(--white); color: var(--ink); }
.pill-white:hover { background: #e9e9e9; }
.pill-ghost { color: rgba(255, 255, 255, 0.94); border-color: rgba(255, 255, 255, 0.42); background: rgba(255, 255, 255, 0.05); }
.pill-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.12); }
.pill-sm { min-height: 36px; padding: 0 15px; font-size: 14px; }
.pill:active { transform: translateY(1px); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions-center { justify-content: center; }

/* ---------- Status markers (built today vs coming next) ---------- */
.status {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  padding: 5px 12px; border-radius: var(--r-pill);
  border: 1px solid var(--hair-strong);
  font: 500 12.5px/1.2 var(--font-sans); letter-spacing: 0.03em; color: var(--bone);
  white-space: nowrap;
}
.status-next { border-style: dashed; color: var(--ash); }
.marker { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; }
.marker-solid { background: var(--white); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.16); }
.marker-ring { border: 1.5px solid rgba(255, 255, 255, 0.6); background: transparent; width: 10px; height: 10px; }

/* ---------- Dock (floating navigation) ---------- */
.dock {
  position: fixed; z-index: 50;
  left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px;
  max-width: calc(100vw - 24px);
  padding: 6px 6px 6px 16px;
  border-radius: var(--r-nav);
  background: rgba(22, 22, 22, 0.74);
  border: 1px solid rgba(229, 229, 229, 0.14);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: rgba(255, 255, 255, 0.02) 0 3px 4.5px, rgba(0, 0, 0, 0.18) 0 10px 24px, rgba(0, 0, 0, 0.1) 0 4px 3px;
}
.dock-brand { display: flex; flex: none; align-items: center; padding: 4px 6px 4px 0; border-radius: 8px; }
.dock-brand img { height: 22px; width: auto; max-width: none; }
.dock-sep { width: 1px; height: 22px; margin: 0 10px 0 6px; background: rgba(255, 255, 255, 0.16); }
.dock-links { display: flex; align-items: center; gap: 2px; }
.dock-links a {
  display: block; padding: 9px 12px; border-radius: var(--r-pill);
  font: 500 14px/1 var(--font-sans); color: rgba(255, 255, 255, 0.85); text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.dock-links a:hover { background: rgba(255, 255, 255, 0.08); color: var(--white); }
.dock-menu-contact { display: none; }
.dock-contact {
  margin-left: 6px; padding: 9px 13px; border-radius: var(--r-pill);
  border: 1px solid rgba(229, 229, 229, 0.3);
  font: 500 14px/1 var(--font-sans); color: rgba(255, 255, 255, 0.88); text-decoration: none; white-space: nowrap;
}
.dock-contact:hover { border-color: var(--white); }
.dock .pill-white { margin-left: 8px; }
.dock-toggle {
  display: none; align-items: center; gap: 8px;
  padding: 9px 12px; border: 0; border-radius: var(--r-pill);
  background: transparent; color: rgba(255, 255, 255, 0.9); font: 500 14px/1 var(--font-sans); cursor: pointer;
}
.dock-toggle .icon-close { display: none; }
.dock-toggle[aria-expanded="true"] .icon-open { display: none; }
.dock-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 860px) {
  .dock { padding-left: 14px; }
  .dock-sep, .dock-contact { display: none; }
  .dock-toggle { display: inline-flex; margin-left: auto; }
  .dock-links {
    display: none;
    position: absolute; left: 0; right: 0; bottom: calc(100% + 10px);
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 8px; border-radius: var(--r-nav);
    background: rgba(22, 22, 22, 0.94);
    border: 1px solid rgba(229, 229, 229, 0.14);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  }
  .dock-links.is-open { display: flex; }
  .dock-links a { padding: 14px 14px; font-size: 16px; border-radius: 12px; }
  .dock-menu-contact { display: block; }
}
@media (max-width: 400px) {
  .dock .pill-white { padding: 0 12px; margin-left: 4px; }
  .dock-toggle span { display: none; }
}

/* ==========================================================
   THE DAY
   ========================================================== */
.day {
  position: relative;
  isolation: isolate;
  color: var(--white);
  background:
    radial-gradient(42% 4% at 18% 1%, rgba(150, 190, 255, 0.35), transparent 70%),
    radial-gradient(55% 5% at 74% 87%, rgba(255, 168, 98, 0.42), transparent 70%),
    var(--sky);
}
.day::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); background-size: 180px 180px;
  opacity: 0.16; mix-blend-mode: overlay;
}

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

/* Left column: hero and the index */
.day-side {
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: clamp(40px, 8vw, 56px) max(var(--gutter), env(safe-area-inset-right, 0px)) 32px max(var(--gutter), env(safe-area-inset-left, 0px));
}
.day-intro { display: grid; gap: 20px; max-width: 34rem; }
.eyebrow { font: 500 14px/1.3 var(--font-sans); letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.9); }
.day h1, .day .day-title {
  font: 500 clamp(40px, 3.6vw, 52px)/1 var(--font-sans);
  letter-spacing: -0.035em;
  color: var(--white);
  text-wrap: balance;
}
.lead { font-size: 16.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.94); max-width: 31em; }
.highlights { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: rgba(255, 255, 255, 0.92); }
.highlights li { display: inline-flex; align-items: center; gap: 7px; }
.highlights .icon { width: 15px; height: 15px; stroke-width: 2; }

.day-index { display: none; }
.day-index-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.day-index h2 { font: 600 17px/1.3 var(--font-head); letter-spacing: -0.01em; color: var(--white); }
.day-index .status { border-color: rgba(255, 255, 255, 0.36); color: var(--white); }
.day-list { display: grid; gap: 2px; }
.day-list a {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 7px 14px 7px 18px; border-radius: var(--r-ui);
  font: 500 15.5px/1.35 var(--font-sans); color: rgba(255, 255, 255, 0.8); text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.day-list a:hover { color: var(--white); background: rgba(255, 255, 255, 0.07); }
.day-list a::before {
  content: ""; position: absolute; left: 7px; top: 50%; width: 3px; height: 0; border-radius: 2px;
  background: var(--white); transform: translateY(-50%); transition: height 0.25s ease;
}
.day-list a[aria-current] {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.day-list a[aria-current]::before { height: 16px; }
.day-num { font-variant-numeric: tabular-nums; font-size: 14px; color: rgba(255, 255, 255, 0.72); }

/* Right side: the rail and the scenes */
.day-scenes {
  position: relative; min-width: 0;
  margin-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  border-left: 1px solid var(--sky-line);
}
.day-scenes::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 12px; pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.34) 0 1px, transparent 1px 16px) left top / 6px 100% no-repeat,
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.55) 0 1px, transparent 1px 80px) left top / 12px 100% no-repeat;
}
.day-top {
  position: relative;
  padding: 18px max(var(--gutter), env(safe-area-inset-right, 0px)) 18px var(--scene-pl);
  border-bottom: 1px solid var(--sky-line);
}
.day-top::before {
  content: ""; position: absolute; left: -3.5px; bottom: -3.5px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--white);
}
.banner {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  padding: 7px 14px 7px 12px; border-radius: var(--r-pill);
  background: rgba(10, 14, 40, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 13.5px; line-height: 1.3; color: rgba(255, 255, 255, 0.9); text-decoration: none;
  transition: background-color 0.2s ease;
}
.banner strong { font-weight: 500; color: var(--white); }
.banner .icon { width: 14px; height: 14px; }
.banner:hover { background: rgba(10, 14, 40, 0.45); }

.day-scenes-title {
  padding: 40px max(var(--gutter), env(safe-area-inset-right, 0px)) 0 var(--scene-pl);
  font: 600 17px/1.3 var(--font-head); color: var(--white);
}

.scene {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 48px max(var(--gutter), env(safe-area-inset-right, 0px)) 64px var(--scene-pl);
  scroll-margin-top: 24px;
}
.scene-last { padding-bottom: clamp(120px, 20vh, 220px); }

.stamp {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  margin-bottom: 20px;
  font: 500 13px/1.3 var(--font-sans); letter-spacing: 0.03em; color: rgba(255, 255, 255, 0.92);
}
.stamp time, .stamp-label {
  padding: 5px 11px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--white); font-variant-numeric: tabular-nums; letter-spacing: 0.04em;
}
/* The time sits on the rail: a dot on the line and a short tick out to the stamp */
.stamp::before {
  content: ""; position: absolute; top: 13px;
  left: calc(-1 * var(--scene-pl) - 5px);
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--white); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}
.stamp::after {
  content: ""; position: absolute; top: 17px;
  left: calc(-1 * var(--scene-pl) + 6px);
  width: calc(var(--scene-pl) - 10px); height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

.scene > h3 {
  font: 500 clamp(30px, 3vw, 44px)/1.08 var(--font-head);
  letter-spacing: -0.03em; color: var(--white);
  margin-bottom: 14px; text-wrap: balance;
}
.scene-copy { font-size: 17.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.94); max-width: 34em; margin-bottom: clamp(28px, 5vh, 44px); }
.scene-visual { position: relative; width: 100%; max-width: 660px; display: grid; gap: 14px; }
.scene-visual-wide { max-width: 780px; }

/* Shared product-view pieces */
.card-white {
  background: var(--white); color: var(--ink);
  border-radius: 20px; padding: 18px;
  box-shadow: 0 30px 60px -28px rgba(6, 10, 40, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.4);
}
.card-glass {
  background: var(--glass-dark);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-radius: 22px; padding: 20px; color: var(--white);
}
.res-btn {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 6px 12px; border-radius: var(--r-pill);
  border: 1px solid #dedede; background: var(--white);
  font: 500 12.5px/1.2 var(--font-sans); color: #333;
}
.res-btn .icon { width: 14px; height: 14px; }
.res-btn-dark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.tag {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  padding: 3px 9px; border-radius: var(--r-pill);
  font: 500 11.5px/1.3 var(--font-sans);
}
.tag .icon { width: 11px; height: 11px; }
.tag-ai { background: var(--brand-blue-tint); color: var(--brand-blue); }
.tag-draft { background: #fff3dd; color: #7a4a00; }
.tag-ai-glass { background: rgba(255, 255, 255, 0.18); color: var(--white); }
.caret { display: inline-block; width: 1.5px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: var(--white); }
.caret-dark { background: var(--ink); }
.msg { padding: 10px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; }
.msg-who { display: flex; align-items: center; gap: 5px; margin-bottom: 3px; font-size: 11.5px; font-weight: 600; color: var(--ink); }
.msg-who .icon { width: 12px; height: 12px; color: var(--brand-blue); }
.msg-who-dark { margin-bottom: 4px; }

/* 08:30 flags and the ticker */
.flags { display: grid; gap: 10px; width: 100%; }
.flags li {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 12px 12px 12px 12px; border-radius: 18px;
  background: var(--glass-dark); border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.flag-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-ui); background: rgba(255, 255, 255, 0.14); }
.flag-text { display: grid; min-width: 0; }
.flag-text b { font-weight: 500; font-size: 15px; color: var(--white); }
.flag-text small { font-size: 13.5px; color: rgba(255, 255, 255, 0.84); }
.chip-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: var(--r-pill);
  background: var(--white); color: var(--ink); font: 500 13px/1 var(--font-sans);
}
.chip-btn .icon { width: 14px; height: 14px; }

.ticker {
  display: flex; align-items: center; gap: 14px; width: fit-content; max-width: 100%;
  margin-top: 6px; padding: 9px 20px 9px 12px; border-radius: var(--r-pill);
  background: rgba(12, 14, 30, 0.42); border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.ticker-brand { display: flex; align-items: center; gap: 8px; padding-right: 14px; border-right: 1px solid rgba(255, 255, 255, 0.2); font: 500 15px/1 var(--font-sans); }
.ticker-brand img { width: 15px; height: auto; }
.ticker-window {
  position: relative; height: 22px; overflow: hidden; min-width: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}
.ticker-reel { display: grid; }
.ticker-reel span { height: 22px; line-height: 22px; font-size: 14.5px; color: rgba(255, 255, 255, 0.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker-reel span::after { content: "\2026"; }
@keyframes reel {
  0%, 27% { transform: translateY(0); }
  33%, 60% { transform: translateY(-22px); }
  66%, 94% { transform: translateY(-44px); }
  100% { transform: translateY(-66px); }
}
@keyframes spin { to { transform: rotate(360deg); } }

.motion-toggle {
  display: none; align-items: center; gap: 8px;
  margin-top: 18px; padding: 7px 13px; border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.3); background: transparent;
  font: 500 13px/1 var(--font-sans); color: rgba(255, 255, 255, 0.9); cursor: pointer;
}
.motion-toggle:hover { border-color: var(--white); }
.motion-toggle .icon { width: 14px; height: 14px; }
.motion-toggle .icon-resume { display: none; }
.motion-toggle[aria-pressed="true"] .icon-pause { display: none; }
.motion-toggle[aria-pressed="true"] .icon-resume { display: block; }

@media (prefers-reduced-motion: no-preference) {
  .js .ticker-reel { animation: reel 8s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
  .js .spinner { animation: spin 1s linear infinite; }
  .js .motion-toggle { display: inline-flex; }
  html.motion-paused .ticker-reel,
  html.motion-paused .spinner { animation-play-state: paused; }
}

/* 09:10 registry search */
.search-card { width: 100%; }
.search-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px 10px 12px; border-radius: 12px;
  background: #f4f4f4; border: 1px solid #e6e6e6; font-size: 15px;
}
.search-bar > .icon { color: #666; }
.search-q { flex: 1; min-width: 0; font-weight: 500; }
.src-tag {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 4px 10px; border-radius: var(--r-pill); background: var(--white); border: 1px solid #e3e3e3;
  font-size: 12px; font-weight: 500; color: #3b3b3b;
}
.src-tag .icon { width: 13px; height: 13px; }
.results { margin-top: 6px; }
.results li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 12px;
  padding: 13px 4px; border-bottom: 1px solid #eeeeee;
}
.results li:last-child { border-bottom: 0; padding-bottom: 4px; }
.res-name { display: grid; }
.res-name b { font-size: 14.5px; font-weight: 500; }
.res-name small { font-size: 12.5px; color: var(--ink-soft); }
.res-parts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.res-parts > span {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--r-pill); background: #f1f3f7;
  font-size: 12px; font-weight: 500; color: #2a2a2a;
}
.res-parts .icon { width: 12px; height: 12px; stroke-width: 2; }
.res-parts .is-pending { color: var(--ink-soft); background: transparent; box-shadow: inset 0 0 0 1px #e3e3e3; }
.spinner { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #c9c9c9; border-top-color: var(--ink); }
.aside-chip {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  padding: 8px 14px; border-radius: var(--r-ui);
  border: 1px solid rgba(255, 255, 255, 0.38);
  font-size: 13.5px; font-weight: 500; color: rgba(255, 255, 255, 0.94);
}
.aside-chip .icon { width: 16px; height: 16px; }

/* 09:42 device frame and app */
.device {
  padding: 10px 10px 0;
  border-radius: 28px 28px 0 0;
  background: #0d0f16;
  border: 1px solid rgba(255, 255, 255, 0.18); border-bottom: 0;
  box-shadow: 0 50px 90px -40px rgba(4, 8, 40, 0.7);
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, #000 78%, transparent);
}
.device-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px; border-radius: 19px 19px 0 0;
  background: #f4f4f4; border-bottom: 1px solid #e7e7e7;
}
.device-dots { display: flex; gap: 6px; }
.device-dots i { width: 9px; height: 9px; border-radius: 50%; background: #d3d3d3; }
.device-crumb { font-size: 12.5px; color: #6a6a6a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device-crumb span { color: #b5b5b5; margin: 0 4px; }
.app {
  display: grid; grid-template-columns: 148px minmax(0, 1fr) minmax(0, 1.08fr);
  min-height: 340px; background: var(--white); color: var(--ink);
}
.app-nav { display: flex; flex-direction: column; gap: 2px; padding: 16px 10px; border-right: 1px solid #eeeeee; font-size: 13px; color: #555; }
.app-nav img { width: 20px; height: 20px; margin: 0 0 12px 8px; }
.app-nav span { padding: 7px 10px; border-radius: 8px; white-space: nowrap; }
.app-nav .is-active { background: #f0f0f0; color: var(--ink); font-weight: 500; }
.app-nav b { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: var(--r-pill); background: var(--ink); color: var(--white); font-size: 10.5px; font-weight: 600; }
.app-chat { display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; border-right: 1px solid #eeeeee; }
.app-chat .msg { max-width: 94%; }
.app-chat .msg-user { align-self: flex-end; background: var(--ink); color: var(--white); border-bottom-right-radius: 5px; }
.app-chat .msg-ai { background: #f3f3f3; color: #1f1f1f; border-bottom-left-radius: 5px; }
.app-input { margin-top: auto; padding: 9px 12px; border-radius: 12px; border: 1px solid #e3e3e3; font-size: 13px; color: #6f6f6f; }
.app-form { display: flex; flex-direction: column; gap: 12px; padding: 18px 16px; }
.form-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.form-head b { font-size: 15px; font-weight: 600; }
.fields div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid #f0f0f0; }
.fields dt { font-size: 12px; color: var(--ink-soft); }
.fields dd { font-size: 13.5px; font-weight: 500; }
.form-foot { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-soft); }

/* 10:15 approval */
.approve-card { display: grid; gap: 16px; width: 100%; padding: 20px; }
.diff { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 14px 16px; border-radius: 12px; background: #f5f5f5; }
.diff-label { font-size: 12.5px; color: var(--ink-soft); margin-right: 4px; }
.diff-old { font-size: 22px; font-weight: 500; color: #8a8a8a; text-decoration: line-through; }
.diff-new { font-size: 22px; font-weight: 600; }
.diff .icon { width: 16px; height: 16px; color: #8a8a8a; }
.diff-note { flex-basis: 100%; font-size: 13px; color: #3b3b3b; }
.approve-actions { display: flex; justify-content: flex-end; gap: 8px; }
.approve-actions .res-btn { padding: 8px 16px; font-size: 13.5px; }
.is-pressed { box-shadow: 0 0 0 4px rgba(22, 22, 22, 0.14); }
.toast {
  display: flex; align-items: center; gap: 12px; width: fit-content; max-width: 100%;
  margin-left: clamp(0px, 4vw, 32px);
  padding: 12px 18px 12px 12px; border-radius: 16px;
  background: rgba(12, 14, 30, 0.44); border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.toast-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--white); color: var(--ink); }
.toast-icon .icon { width: 16px; height: 16px; stroke-width: 2; }
.toast b { display: block; font-size: 14.5px; font-weight: 500; }
.toast small { display: block; font-size: 13px; color: rgba(255, 255, 255, 0.86); }

/* 11:30 obligations */
.oblig { width: 100%; }
.oblig-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.oblig-head b { font-size: 16px; font-weight: 500; }
.oblig-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.oblig-meta span { padding: 3px 10px; border-radius: var(--r-pill); border: 1px solid rgba(255, 255, 255, 0.28); font-size: 12px; color: rgba(255, 255, 255, 0.92); }
.oblig-list li {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 8px 12px;
  padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.oblig-list li:last-child { border-bottom: 0; padding-bottom: 2px; }
.code {
  padding: 4px 0; border-radius: 6px; text-align: center;
  background: rgba(255, 255, 255, 0.14);
  font: 600 11.5px/1.2 var(--font-sans); letter-spacing: 0.06em; font-variant-numeric: tabular-nums;
}
.oblig-name { font-size: 14.5px; }
.oblig-due { font-size: 13px; color: rgba(255, 255, 255, 0.88); font-variant-numeric: tabular-nums; white-space: nowrap; }
.oblig-bar { grid-column: 2 / -1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.oblig-bar i { display: block; width: var(--fill); height: 100%; border-radius: 2px; background: var(--white); }

/* 14:00 answers */
.ask { display: grid; gap: 12px; width: 100%; }
.msg-glass {
  justify-self: end; max-width: 82%;
  padding: 12px 16px; border-radius: 18px 18px 6px 18px;
  background: rgba(12, 14, 30, 0.44); border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 15px; color: var(--white);
}
.answer { padding: 18px 18px 16px; }
.answer-lead { margin-bottom: 10px; font-size: 15px; font-weight: 500; }
.answer-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.answer-table th { text-align: left; padding: 6px 8px; border-bottom: 1px solid #ebebeb; font-size: 11.5px; font-weight: 500; color: var(--ink-soft); }
.answer-table td { padding: 9px 8px; border-bottom: 1px solid #f2f2f2; vertical-align: top; }
.answer-table th:last-child, .answer-table td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.answer-table tr:first-child td:last-child { font-weight: 600; }
.answer-foot { display: flex; justify-content: flex-end; margin-top: 14px; }

/* 17:30 audit trail */
.trail {
  width: 100%; padding: 8px 10px; border-radius: 22px;
  background: var(--glass-dark); border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.trail li {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 11px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.trail li:last-child { border-bottom: 0; }
.trail time { font-size: 13px; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.86); }
.trail span { font-size: 14.5px; }
.trail small { font-size: 12.5px; color: rgba(255, 255, 255, 0.86); text-align: right; }
.trail .is-ai { background: rgba(255, 255, 255, 0.07); border-radius: 12px; }

/* ---------- The day, split layout on wide screens ---------- */
@media (min-width: 1000px) {
  .day-grid { grid-template-columns: var(--side-w) minmax(0, 1fr); }
  .day-side {
    position: sticky; top: var(--side-top, 0px); align-self: start;
    min-height: 100vh; min-height: 100svh;
    gap: 28px;
    padding: 28px clamp(24px, 2.6vw, 40px) 88px max(clamp(24px, 3vw, 44px), env(safe-area-inset-left, 0px));
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  }
  .day-index { display: block; }
  .day-scenes { margin-left: 0; }
  .day-scenes-title { display: none; }
  .scene { min-height: 100vh; min-height: 100svh; padding-top: clamp(56px, 10vh, 112px); }
  .scene:first-of-type { min-height: calc(100svh - 70px); padding-top: clamp(40px, 7vh, 80px); }
}
@media (max-width: 999px) {
  .stamp { margin-bottom: 16px; }
}
@media (max-width: 720px) {
  .app { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .app-nav { display: none; }
  .app-chat { border-right: 0; border-bottom: 1px solid #eeeeee; }
  .app-input { margin-top: 4px; }
  .flags li { grid-template-columns: auto minmax(0, 1fr); }
  .flags .chip-btn { grid-column: 2; justify-self: start; }
  .trail li { grid-template-columns: 48px minmax(0, 1fr); }
  .trail small { grid-column: 2; text-align: left; margin-top: -8px; }
  .scene-copy { font-size: 16.5px; }
}

/* ==========================================================
   NIGHT: the dark sections
   ========================================================== */
.section { padding-top: clamp(88px, 11vw, 140px); }
.section-head { display: grid; justify-items: start; gap: 14px; max-width: 48rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head-center { margin-inline: auto; justify-items: center; text-align: center; }
.section .eyebrow { color: var(--ash); }
.section h2 {
  font: 500 clamp(32px, 4.2vw, 54px)/1.04 var(--font-head);
  letter-spacing: -0.035em; color: var(--bone); text-wrap: balance;
}
.section-lead { font-size: 18px; line-height: 1.55; color: var(--ash); max-width: 36em; }
.glyph {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 12px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--hair-mid);
  color: var(--white);
}
.glyph .icon { width: 20px; height: 20px; }

/* Demo */
.demo { overflow-x: clip; }
.video-stage { position: relative; isolation: isolate; max-width: 1060px; margin-inline: auto; }
.video-stage::before {
  content: ""; position: absolute; z-index: -1; inset: -12% -8% -18%; pointer-events: none;
  background: radial-gradient(48% 52% at 50% 56%, var(--violet-glow), rgba(107, 98, 242, 0) 72%);
  filter: blur(10px);
}
.video-stage::after {
  content: ""; position: absolute; left: -4%; right: -4%; top: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, transparent 30%, var(--violet) 50%, transparent 70%, transparent);
}
.video-frame {
  position: relative; overflow: hidden; aspect-ratio: 16 / 9; max-width: 100%;
  border-radius: var(--r-card); background: #0f0f12;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.video-pending {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: 18px;
  padding: 24px; text-align: center;
  background: radial-gradient(90% 70% at 50% 0%, rgba(107, 98, 242, 0.2), rgba(107, 98, 242, 0) 60%), #111114;
}
.video-pending img { width: 36px; height: auto; opacity: 0.9; }
.video-pending p { max-width: 30ch; color: var(--ash); font-size: 16px; }

/* Bento tiles */
.bento { display: grid; gap: 16px; }
.tile {
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
  padding: 24px 24px 28px; border-radius: var(--r-card);
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--hair);
}
.tile h3 { font: 500 22px/1.25 var(--font-head); letter-spacing: -0.02em; color: var(--bone); }
.tile p { color: var(--ash); }
.tile-art {
  position: relative; overflow: hidden; height: 172px; margin-bottom: 14px;
  border-radius: 16px; background: rgba(255, 255, 255, 0.025); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
@media (min-width: 760px) { .bento-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .bento-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Problem art */
.scatter .label {
  position: absolute; left: var(--x); top: var(--y); transform: rotate(var(--r));
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 8px 12px; border-radius: var(--r-ui);
  border: 1px solid rgba(229, 229, 229, 0.28); background: #121212;
  font: 500 14px/1 var(--font-sans); color: var(--smoke);
}
.scatter .label .icon { width: 16px; height: 16px; color: var(--bone); }
.untraced { display: grid; align-content: center; gap: 12px; padding: 20px; }
.untraced-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--r-ui); background: var(--graphite); box-shadow: inset 0 0 0 1px var(--hair-mid); }
.untraced-row span { font-size: 13px; color: var(--slate); }
.untraced-row b { font-size: 14.5px; font-weight: 500; color: var(--bone); }
.untraced-q { display: flex; flex-wrap: wrap; gap: 8px; }
.untraced-q span { padding: 5px 11px; border-radius: var(--r-pill); border: 1px dashed rgba(255, 255, 255, 0.3); font-size: 12.5px; color: var(--ash); }

/* Three ideas */
.ideas {
  position: relative; display: grid; overflow: hidden;
  border-radius: var(--r-large); background: var(--glass); box-shadow: inset 0 0 0 1px var(--hair);
}
.ideas::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, transparent 35%, var(--violet) 50%, transparent 65%, transparent);
}
.ideas li { display: grid; align-content: start; gap: 12px; padding: clamp(28px, 3.4vw, 44px); }
.ideas li + li { border-top: 1px solid var(--hair); }
.ideas .glyph { margin-bottom: 18px; }
.ideas h3 { font: 500 clamp(22px, 2vw, 26px)/1.2 var(--font-head); letter-spacing: -0.02em; color: var(--bone); }
.ideas p { color: var(--ash); max-width: 30em; }
@media (min-width: 900px) {
  .ideas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ideas li + li { border-top: 0; border-left: 1px solid var(--hair); }
}

/* Capability art */
.doc { display: flex; align-items: flex-end; justify-content: center; }
.doc-page {
  display: grid; gap: 8px; width: min(72%, 280px); padding: 16px 18px 26px; margin-bottom: -10px;
  border-radius: 10px 10px 0 0; background: var(--white); color: var(--ink);
}
.doc-page b { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.doc-line { height: 6px; border-radius: 3px; background: #e8e8e8; }
.doc-line-short { width: 62%; }
.doc-field { width: fit-content; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 3px 7px; border-radius: var(--r-icon); background: var(--brand-blue-tint); color: var(--brand-blue); font-size: 11.5px; font-weight: 500; }

.org { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; justify-items: center; align-content: center; padding: 16px 20px; }
.org-node {
  display: grid; text-align: center; padding: 8px 12px; border-radius: var(--r-ui);
  background: var(--graphite); box-shadow: inset 0 0 0 1px var(--hair-mid);
  font-size: 13px; font-weight: 500; color: var(--bone);
}
.org-node small { font-size: 11.5px; font-weight: 400; color: var(--slate); }
.org-top { grid-column: 1 / -1; background: var(--white); color: var(--ink); box-shadow: none; }
.org-lines {
  position: relative; grid-column: 1 / -1; width: calc(50% + 6px); height: 22px; margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28); border-bottom: 0; border-radius: 8px 8px 0 0;
}
.org-lines::before { content: ""; position: absolute; left: 50%; top: -13px; width: 1px; height: 12px; background: rgba(255, 255, 255, 0.28); }
.org-row { display: contents; }

.source { display: grid; align-content: center; justify-items: start; gap: 12px; padding: 24px; }
.source-value { display: grid; padding: 12px 16px; border-radius: var(--r-ui); background: var(--graphite); box-shadow: inset 0 0 0 1px var(--hair-mid); }
.source-value small { font-size: 12px; color: var(--slate); }
.source-value b { font-size: 15px; font-weight: 500; color: var(--bone); }
.source-tip {
  position: relative; display: inline-flex; align-items: center; gap: 8px; margin-left: 22px;
  padding: 8px 12px; border-radius: var(--r-ui); background: var(--white); color: var(--ink);
  font-size: 12.5px; font-weight: 500;
}
.source-tip::before { content: ""; position: absolute; left: 18px; top: -5px; width: 10px; height: 10px; background: var(--white); transform: rotate(45deg); border-radius: 2px; }
.source-tip .icon { width: 14px; height: 14px; }

.model { display: grid; align-content: center; gap: 8px; padding: 20px 24px; }
.model-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 14px; border-radius: var(--r-ui); background: var(--graphite); box-shadow: inset 0 0 0 1px var(--hair-mid);
  font-size: 13.5px; color: var(--bone);
}
.model-row small { padding: 2px 8px; border-radius: var(--r-pill); border: 1px solid var(--hair-mid); font-size: 11.5px; color: var(--ash); }
.model-add { justify-content: flex-start; gap: 8px; background: transparent; box-shadow: none; border: 1px dashed rgba(255, 255, 255, 0.3); color: var(--ash); }
.model-add .icon { width: 15px; height: 15px; }

/* Trust */
.trust { display: grid; gap: 48px; }
.trust-lead { display: grid; align-content: start; }
.path-card {
  display: grid; gap: 18px; padding: 24px; border-radius: var(--r-card);
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--hair);
}
.path-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.path-task { display: grid; }
.path-task small { font-size: 12.5px; color: var(--slate); }
.path-task b { font-size: 16.5px; font-weight: 500; color: var(--bone); }
.switch {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px 6px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--hair-strong); background: transparent; cursor: pointer;
  font: 500 14px/1 var(--font-sans); color: var(--bone);
}
.switch:hover { border-color: var(--white); }
.switch-track { position: relative; width: 38px; height: 22px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.18); transition: background-color 0.25s ease; }
.switch-thumb { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); transition: transform 0.25s ease, background-color 0.25s ease; }
.switch[aria-checked="true"] .switch-track { background: var(--bone); }
.switch[aria-checked="true"] .switch-thumb { transform: translateX(16px); background: var(--ink); }
.switch-state { min-width: 2.2em; font-size: 13px; color: var(--ash); }
.path-steps { display: grid; gap: 8px; }
.path-steps li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--hair);
  font-size: 15px; color: var(--bone);
}
.path-n { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1px solid var(--hair-strong); font-size: 12px; font-variant-numeric: tabular-nums; }
.path-steps .path-end { background: var(--white); color: var(--ink); box-shadow: none; }
.path-steps .path-end .path-n { border-color: rgba(22, 22, 22, 0.4); }
.path-note { font-size: 14px; color: var(--ash); }
.trust-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--hair); }
.trust-list li:first-child { padding-top: 4px; }
.trust-list li:last-child { border-bottom: 0; }
.trust-list h3 { font: 500 20px/1.3 var(--font-head); letter-spacing: -0.015em; color: var(--bone); margin-bottom: 4px; }
.trust-list p { color: var(--ash); }
@media (min-width: 960px) {
  .trust { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 96px); align-items: start; }
  .trust-lead { position: sticky; top: 40px; }
}

/* Coming next */
.roadmap-list { display: grid; gap: 14px; }
.roadmap-list li {
  display: flex; gap: 14px; padding: 22px 22px 24px; border-radius: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
}
.roadmap-list .marker-ring { margin-top: 7px; border-color: rgba(255, 255, 255, 0.5); }
.roadmap-list p { color: var(--smoke); }
.roadmap-list strong { font-weight: 500; color: var(--bone); }
@media (min-width: 700px) { .roadmap-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .roadmap-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Who it's for */
.audience { display: grid; gap: 14px; }
.audience li {
  display: grid; align-content: space-between; gap: 32px; min-height: 172px;
  padding: 22px; border-radius: 20px; border: 1px solid var(--hair-mid);
}
.audience .icon { width: 24px; height: 24px; color: var(--white); }
.audience h3 { font: 500 19px/1.3 var(--font-head); letter-spacing: -0.015em; color: var(--bone); }
@media (min-width: 600px) { .audience { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .audience { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* FAQ */
.faq-layout { display: grid; gap: 8px; }
.faq-list { display: grid; gap: 10px; }
.faq { border-radius: 18px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--hair); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; border-radius: 18px; cursor: pointer; list-style: none;
  font: 500 17px/1.4 var(--font-sans); color: var(--bone);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--ash); transition: transform 0.25s ease; }
.faq[open] summary .icon { transform: rotate(180deg); }
.faq-answer p { padding: 0 22px 22px; color: var(--ash); max-width: 40em; }
.faq-answer a { color: var(--white); text-underline-offset: 3px; }
@media (min-width: 960px) {
  .faq-layout { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
}

/* Closing: the next morning */
.closing-section { padding-bottom: clamp(56px, 8vw, 96px); }
.closing {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; justify-items: center; gap: 18px; text-align: center;
  padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 64px) clamp(56px, 8vw, 104px);
  border-radius: var(--r-panel);
  background:
    radial-gradient(60% 45% at 50% 108%, rgba(255, 168, 98, 0.5), transparent 70%),
    linear-gradient(180deg, #163f9c 0%, #2f5db1 34%, #5d6684 66%, #8c6160 90%, #93573c 100%);
}
.closing::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); background-size: 180px 180px; opacity: 0.16; mix-blend-mode: overlay;
}
.closing-sail { width: 72px; height: auto; margin-bottom: 10px; }
.closing h2 {
  font: 500 clamp(40px, 6.2vw, 80px)/1 var(--font-sans);
  letter-spacing: -0.035em; color: var(--white); max-width: 12em;
}
.closing p { font-size: 18px; color: rgba(255, 255, 255, 0.94); }
.closing .actions { margin-top: 10px; }
.closing .pill-ghost { background: rgba(10, 12, 30, 0.22); }

/* Footer */
.footer { padding-block: 56px calc(112px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--hair); }
.footer-inner { display: grid; gap: 32px; }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand img { width: 114px; height: auto; }
.footer-brand p { font-size: 14px; color: var(--ash); }
.footer-title { margin-bottom: 12px; font-size: 13px; font-weight: 500; color: var(--slate); }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 15px; color: var(--bone); text-decoration: none; }
.footer-col a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { font-size: 13px; color: var(--slate); padding-top: 24px; border-top: 1px solid var(--hair); }
@media (min-width: 760px) {
  .footer-inner { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); }
  .footer-legal { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ==========================================================
   BEFORE THE DAY: the idea, trust and audience as scenes
   ========================================================== */
.scene-intro > h3 { margin-bottom: clamp(24px, 4vh, 36px); }
.glass-list { display: grid; gap: 10px; width: 100%; }
.glass-list li {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 14px;
  padding: 16px; border-radius: 18px;
  background: var(--glass-dark); border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.glass-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-ui); background: rgba(255, 255, 255, 0.14); }
.glass-icon .icon { width: 18px; height: 18px; }
.glass-list h4 { margin: 0 0 3px; font: 500 17px/1.3 var(--font-head); letter-spacing: -0.01em; color: var(--white); }
.glass-list p { font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.88); }
@media (min-width: 760px) { .glass-list-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.glass-tiles { display: grid; gap: 10px; width: 100%; }
.glass-tiles li {
  display: grid; align-content: space-between; gap: 28px; min-height: 140px;
  padding: 20px; border-radius: 20px;
  background: var(--glass-dark); border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.glass-tiles .icon { width: 24px; height: 24px; color: var(--white); }
.glass-tiles h4 { margin: 0; font: 500 18px/1.3 var(--font-head); letter-spacing: -0.015em; color: var(--white); }
@media (min-width: 560px) { .glass-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* The AI switch card, re-dressed for the sky */
.scene .path-card {
  background: var(--glass-dark); box-shadow: none; border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.scene .path-task small, .scene .switch-state, .scene .path-note { color: rgba(255, 255, 255, 0.86); }
.scene .path-task b, .scene .switch { color: var(--white); }
.scene .switch { border-color: rgba(255, 255, 255, 0.4); }
.scene .path-steps li { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); color: var(--white); }
.scene .path-n { border-color: rgba(255, 255, 255, 0.45); }
.scene .path-steps .path-end { background: var(--white); color: var(--ink); box-shadow: none; }
.scene .path-steps .path-end .path-n { border-color: rgba(22, 22, 22, 0.4); }

/* Before the day: the statement and the demo video */
.statement {
  max-width: 21em;
  font: 500 clamp(30px, 3.1vw, 48px)/1.16 var(--font-sans);
  letter-spacing: -0.03em; color: var(--white); text-wrap: pretty;
}
.scene .video-frame { width: 100%; }

/* Hero eyebrow with the Tessera logo */
.eyebrow-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.eyebrow-brand img { height: 26px; width: auto; }
.eyebrow-brand span { padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, 0.35); }

/* ==========================================================
   THE GRAPH AT THE CORE
   ========================================================== */
.graph-grid { display: grid; gap: 48px; }
.graph-list { margin-top: -8px; }
.graph-card {
  display: grid; gap: 18px; align-content: start; overflow: hidden;
  padding: clamp(18px, 2.4vw, 28px); border-radius: var(--r-card);
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--hair);
}
.graph-stage { display: grid; place-items: center; }
.graph-svg { width: 100%; max-width: 480px; height: auto; overflow: visible; }
.graph-svg text { font: 500 13.5px/1 var(--font-sans); fill: var(--bone); }
.gn rect { fill: #161618; stroke: var(--hair-strong); stroke-width: 1; }
.gn-focal rect { fill: var(--white); stroke: none; }
.gn-focal text { fill: var(--ink); font-weight: 600; }
.gn-person rect { fill: #121214; stroke: var(--hair-mid); }
.gn-dot { fill: rgba(255, 255, 255, 0.22); }
.gn-duty rect { fill: transparent; stroke: rgba(229, 229, 229, 0.5); stroke-dasharray: 4 4; }
.gn-duty .gn-dot { fill: #f2b56b; }
.gn-duty text { fill: var(--ash); }
.ge line { stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.25; }
.ge-appt line { stroke-dasharray: 5 5; stroke: rgba(255, 255, 255, 0.45); }
.ge-duty line { stroke-dasharray: 1.5 4; stroke-linecap: round; stroke: rgba(255, 255, 255, 0.45); }
.ge-tag { fill: #0d0d0f; stroke: var(--hair-mid); }
.ge text { font-size: 12px; fill: var(--ash); font-variant-numeric: tabular-nums; }
.graph-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 13px; color: var(--ash); }
.graph-legend span { display: inline-flex; align-items: center; gap: 8px; }
.graph-legend svg { width: 28px; height: 6px; }
.graph-legend line { stroke: rgba(255, 255, 255, 0.6); stroke-width: 1.5; }
.lg-appt { stroke-dasharray: 5 4; }
.lg-duty { stroke-dasharray: 1.5 4; stroke-linecap: round; }
@media (min-width: 960px) {
  .graph-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 96px); align-items: start; }
  .graph-card { position: sticky; top: 40px; }
}
/* The picture builds once, node by node, when it comes into view */
@media (prefers-reduced-motion: no-preference) {
  .js [data-graph] [data-step] { opacity: 0; transition: opacity 0.5s ease; }
  .js [data-graph].is-in [data-step] { opacity: 1; }
  .js [data-graph].is-in [data-step="1"] { transition-delay: 0.15s; }
  .js [data-graph].is-in [data-step="2"] { transition-delay: 0.35s; }
  .js [data-graph].is-in [data-step="3"] { transition-delay: 0.55s; }
  .js [data-graph].is-in [data-step="4"] { transition-delay: 0.75s; }
  .js [data-graph].is-in [data-step="5"] { transition-delay: 0.95s; }
}

/* ==========================================================
   FIT AND SCALE (20 Nov 2026)
   Desktop: the left column always fits the screen, so it never scrolls.
   Large screens: both sides scale up together.
   ========================================================== */

/* Desktop has no dock: the left column already carries the logo, the platform link and every slide.
   Phones and tablets keep it, as their only menu. */
@media (min-width: 1000px) {
  .day-side { padding-bottom: 28px; }
  .dock { display: none; }
}

/* Shorter laptop screens: tighten the left column step by step */
@media (min-width: 1000px) and (max-height: 900px) {
  .day-side { gap: 18px; padding-top: 22px; padding-bottom: 24px; }
  .day-intro { gap: 14px; }
  .day h1, .day .day-title { font-size: clamp(34px, 5.4vh, 48px); }
  .day-index-head { margin-bottom: 8px; }
  .day-list a { padding-top: 5px; padding-bottom: 5px; font-size: 15px; }
}
@media (min-width: 1000px) and (max-height: 780px) {
  .day-side { gap: 14px; padding-top: 16px; padding-bottom: 18px; }
  .day-intro { gap: 10px; }
  .eyebrow-brand img { height: 22px; }
  .day h1, .day .day-title { font-size: clamp(30px, 5vh, 38px); }
  .day-side .pill { min-height: 38px; padding: 0 16px; font-size: 14px; }
  .day-side .actions { gap: 8px; }
  .day-index h2 { font-size: 15.5px; }
  .day-list { gap: 1px; }
  .day-list a { padding-top: 4px; padding-bottom: 4px; font-size: 14.5px; }
}
@media (min-width: 1000px) and (max-height: 680px) {
  .day-side { gap: 10px; padding-top: 12px; padding-bottom: 12px; }
  .day h1, .day .day-title { font-size: 28px; }
  .day-side .pill { min-height: 34px; padding: 0 14px; font-size: 13.5px; }
  .day-index-head { margin-bottom: 4px; }
  .day-list a { padding-top: 3px; padding-bottom: 3px; font-size: 14px; line-height: 1.3; }
}

/* Large screens: scale the slides (and the left column when it has the height) */
@media (min-width: 1700px) {
  :root { --z: 1.15; }
}
@media (min-width: 2100px) {
  :root { --z: 1.3; }
}
@media (min-width: 2400px) {
  :root { --z: 1.45; }
}
@media (min-width: 1700px) {
  :root { --side-w: calc(520px * var(--z)); --scene-pl: calc(64px * var(--z)); }
  .scene > h3, .scene > .scene-copy, .scene > .scene-visual, .scene > .statement, .scene > .motion-toggle,
  .day-top .banner { zoom: var(--z); }
  .scene-visual { max-width: 700px; }
  .scene-visual-wide { max-width: 820px; }
  /* The topic tag scales too; its dot and tick stay on the rail */
  .stamp { zoom: var(--z); }
  .stamp::before { left: calc(-1 * var(--scene-pl) / var(--z) - 5px); }
  .stamp::after { left: calc(-1 * var(--scene-pl) / var(--z) + 6px); width: calc(var(--scene-pl) / var(--z) - 10px); }
}
/* The left column scales only when the screen is tall enough to keep it whole */
@media (min-width: 1700px) and (min-height: 1000px) {
  .day-intro, .day-index { zoom: var(--z); }
  .day-intro { max-width: none; }
}
@media (min-width: 1700px) and (max-height: 999px) {
  :root { --side-w: 560px; }
}

/* ==========================================================
   TECHNOLOGY: architecture picture, integrations, deployment
   ========================================================== */
.arch { display: grid; gap: 0; }
.arch-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 14px; border-radius: 12px;
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--hair-mid);
  font-size: 14.5px; line-height: 1.3; color: var(--bone);
}
.arch-chip .icon { width: 17px; height: 17px; flex: none; color: var(--white); }
.arch-users { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.arch-users .arch-chip { position: relative; justify-content: center; }
/* each user reaches down into the API */
.arch-users .arch-chip::after {
  content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 28px;
  background: linear-gradient(to bottom, var(--hair-strong), rgba(229, 229, 229, 0.12));
}
.arch-main { display: grid; gap: 28px; margin-top: 28px; }
.arch-zone {
  position: relative; display: grid; gap: 14px;
  padding: 30px clamp(16px, 2.4vw, 28px) clamp(16px, 2.4vw, 28px);
  border: 1px dashed var(--hair-strong); border-radius: var(--r-card);
  background: radial-gradient(70% 60% at 50% 100%, rgba(107, 98, 242, 0.14), rgba(107, 98, 242, 0) 70%);
}
.arch-zone-tag, .arch-sources-tag {
  font-size: 12.5px; letter-spacing: 0.02em; color: var(--ash);
}
.arch-zone-tag {
  position: absolute; top: -10px; left: 20px; padding: 0 10px; background: var(--void);
}
.arch-api-row { display: grid; gap: 10px; }
.arch-api {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  padding: 12px 16px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--hair-mid); color: var(--bone);
}
.arch-api b { font: 600 15px/1.2 var(--font-head); letter-spacing: -0.01em; }
.arch-api span { font-size: 14px; color: var(--ash); }
.arch-ai { justify-content: flex-start; }
.arch-core { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.arch-core span {
  padding: 11px 13px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px var(--hair);
  font-size: 14px; line-height: 1.3; color: var(--bone);
}
.arch-store {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
  padding: 14px 18px; border-radius: 14px;
  background: rgba(107, 98, 242, 0.16); box-shadow: inset 0 0 0 1px rgba(150, 142, 255, 0.4);
}
.arch-store .icon { width: 20px; height: 20px; color: var(--white); }
.arch-store b { font: 600 17px/1.2 var(--font-head); letter-spacing: -0.01em; color: var(--white); }
.arch-store span { font-size: 14px; color: var(--ash); }
.arch-sources { display: grid; gap: 10px; align-content: start; }
.arch-src { position: relative; }
@media (min-width: 900px) {
  .arch-users { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-right: calc(240px + 28px); }
  .arch-main { grid-template-columns: minmax(0, 1fr) 240px; align-items: start; }
  .arch-api-row { grid-template-columns: minmax(0, 1fr) auto; }
  .arch-core { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .arch-sources { padding-top: 24px; }
  /* each source reaches left into the API */
  .arch-src::before {
    content: ""; position: absolute; right: 100%; top: 50%; width: 28px; height: 1px;
    background: linear-gradient(to left, var(--hair-strong), rgba(229, 229, 229, 0.12));
  }
}
@media (max-width: 899px) {
  .arch-users .arch-chip::after { display: none; }
}

.tech-list { display: grid; }
@media (min-width: 900px) {
  .tech-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); }
  .tech-list li:nth-last-child(2) { border-bottom: 0; }
  .tech-list li:nth-child(2) { padding-top: 4px; }
}
.deploy-list .tile { gap: 12px; }
.deploy-list .glyph { margin-bottom: 10px; }


/* Links switched off in config.js (an empty CONTACT_URL) stay hidden, whatever their display rule */
[hidden] { display: none !important; }

/* Slide 01: the shift, from what firms have today to the foundation Tessera gives them */
.scene-statement .statement { margin-bottom: clamp(24px, 4vh, 40px); max-width: 16em; }
.from-to { display: grid; gap: 10px; }
.from-to li { display: grid; gap: 8px; }
.ft-from {
  display: grid; gap: 2px; align-content: center;
  font-size: 15px; line-height: 1.35; color: rgba(255, 255, 255, 0.72);
}
.ft-from small, .ft-to small {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.ft-from small { color: rgba(255, 255, 255, 0.55); }
.ft-arrow { display: none; }
.ft-to {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 14px;
  padding: 14px 16px; border-radius: 16px;
  background: var(--glass-dark); border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.ft-to > span:last-child { display: grid; gap: 2px; }
.ft-to small { color: rgba(255, 255, 255, 0.6); }
.ft-to b { font: 500 18px/1.25 var(--font-head); letter-spacing: -0.01em; color: var(--white); }
.ft-copy { font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, 0.84); }
.ft-icon {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 11px; background: var(--white); color: var(--brand-blue);
}
.ft-icon .icon { width: 20px; height: 20px; }
@media (min-width: 760px) {
  .from-to { gap: 12px; }
  .from-to li { grid-template-columns: minmax(0, 0.8fr) 40px minmax(0, 1.6fr); align-items: center; gap: 12px; }
  .ft-arrow { display: grid; place-items: center; color: rgba(255, 255, 255, 0.7); }
  .ft-arrow .icon { width: 20px; height: 20px; }
}

/* Modules: the core on top, the modules that extend it below */
.mod-core {
  position: relative; display: grid; gap: 14px;
  padding: 20px clamp(18px, 2.4vw, 26px); border-radius: var(--r-card);
  background: rgba(107, 98, 242, 0.16); box-shadow: inset 0 0 0 1px rgba(150, 142, 255, 0.4);
}
/* the core plugs into the modules below */
.mod-core::after {
  content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 28px;
  background: linear-gradient(to bottom, rgba(150, 142, 255, 0.6), rgba(150, 142, 255, 0.15));
}
.mod-core-head { display: flex; align-items: center; gap: 10px; }
.mod-core-head .icon { width: 20px; height: 20px; color: var(--white); }
.mod-core-head b { font: 600 18px/1.2 var(--font-head); letter-spacing: -0.01em; color: var(--white); }
.mod-core-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mod-core-chips span {
  padding: 7px 12px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px var(--hair-mid);
  font-size: 14px; color: var(--bone);
}
.mod-zone {
  position: relative; margin-top: 28px;
  padding: 30px clamp(14px, 2vw, 22px) clamp(14px, 2vw, 22px);
  border: 1px dashed var(--hair-strong); border-radius: var(--r-card);
}
.mod-zone-tag {
  position: absolute; top: -10px; left: 20px; padding: 0 10px; background: var(--void);
  font-size: 12.5px; letter-spacing: 0.02em; color: var(--ash);
}
.mod-grid { display: grid; gap: 12px; }
.mod-grid li {
  display: grid; align-content: start; gap: 8px;
  padding: 20px 20px 22px; border-radius: 18px;
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--hair);
}
.mod-grid .glyph { margin-bottom: 8px; }
.mod-grid h3 { font: 500 19px/1.3 var(--font-head); letter-spacing: -0.015em; color: var(--bone); }
.mod-grid p { font-size: 15px; line-height: 1.5; color: var(--ash); }
@media (min-width: 640px) { .mod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .mod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* the sixth slot is a ghost: any module can plug in here */
.mod-grid .mod-ghost { background: transparent; box-shadow: none; border: 1px dashed var(--hair-strong); }
.mod-grid .mod-ghost .glyph { background: transparent; box-shadow: inset 0 0 0 1px var(--hair-strong); border-radius: 50%; }
.mod-grid .mod-ghost h3 { color: var(--ash); }
.mod-grid .mod-ghost p { color: var(--slate); }

/* Closing panel: one line and the two buttons, in a shorter box */
.closing { gap: 14px; padding: clamp(40px, 5vw, 64px) clamp(20px, 5vw, 64px) clamp(36px, 4.5vw, 56px); }
.closing-sail { width: 52px; margin-bottom: 4px; }
.closing h2 { font-size: clamp(34px, 4.6vw, 60px); }
.closing .actions { margin-top: 6px; }

/* ==========================================================
   TECHNOLOGY as a second "day": the same layout on the night canvas
   ========================================================== */
.day-tech {
  background:
    radial-gradient(50% 30% at 70% 8%, rgba(107, 98, 242, 0.16), transparent 70%),
    radial-gradient(40% 25% at 20% 85%, rgba(107, 98, 242, 0.1), transparent 70%),
    var(--void);
}
.day-tech .day-side { background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)); }
.day-tech .eyebrow { color: var(--ash); }
.day-tech .scene-copy { color: var(--ash); }
.day-tech .scene:first-of-type { padding-top: clamp(48px, 9vh, 96px); }
.tech-visual { max-width: 980px; }
/* the architecture picture inside a slide: sources sit in a row under the account */
.tech-scene .arch-users { margin-right: 0; }
.tech-scene .arch-main { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.tech-scene .arch-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 0; }
.tech-scene .arch-src::before { display: none; }
/* the graph slide: list and picture side by side when there is room */
.tech-graph { gap: 32px; }
@media (min-width: 1240px) {
  .tech-graph { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
@media (min-width: 960px) and (max-width: 1239px) {
  .tech-graph { grid-template-columns: minmax(0, 1fr); }
  .tech-graph .graph-card { position: static; }
}
/* modules and deployment fit the slide width */
@media (min-width: 1000px) and (max-width: 1239px) {
  .tech-scene .mod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech-scene .deploy-list { grid-template-columns: minmax(0, 1fr); }
}

/* Between the halves: a call-to-action band */
.mid-cta-section { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.mid-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  padding: clamp(28px, 3.4vw, 44px) clamp(24px, 4vw, 52px); border-radius: var(--r-card);
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(107, 98, 242, 0.28), transparent 60%),
    linear-gradient(120deg, #163f9c, #2556b3 55%, #3a64ad);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.mid-cta h2 { font: 500 clamp(28px, 3.2vw, 42px)/1.1 var(--font-sans); letter-spacing: -0.03em; color: var(--white); }
.mid-cta .pill-ghost { background: rgba(10, 12, 30, 0.22); }

/* Both calls to action run full width, as bands between the parts */
.mid-cta-section, .closing-section { padding-top: 0; padding-bottom: 0; }
.mid-cta-section .wrap, .closing-section .wrap { max-width: none; padding-left: 0; padding-right: 0; }
.mid-cta { border-radius: 0; box-shadow: none; padding-left: max(var(--gutter), calc((100% - 1200px) / 2)); padding-right: max(var(--gutter), calc((100% - 1200px) / 2)); padding-top: clamp(36px, 4.5vw, 56px); padding-bottom: clamp(36px, 4.5vw, 56px); }
.closing { border-radius: 0; }

/* Architecture: the modules and the core as two labelled layers, matching the Modules slide */
.arch-layer { display: grid; gap: 8px; }
.arch-layer-tag { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
.arch-core-base span { background: rgba(255, 255, 255, 0.06); }
@media (min-width: 1000px) {
  .tech-scene .arch-core { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Real product screens on the slides */
.shot { margin: 0; border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 24px 60px -24px rgba(10, 20, 60, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.35); }
.shot img { display: block; width: 100%; height: auto; }
.shot-narrow { max-width: 460px; }
.scene > .scene-visual.shot { max-width: none; }
.scene > .scene-visual.shot-narrow { max-width: 460px; }

/* Proposed slides: two screens side by side */
.scene > .scene-visual.shot-pair { max-width: none; }
.shot-pair { display: grid; gap: 16px; align-items: start; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) {
  .shot-pair { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.5fr); }
  .shot-pair-panels { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
/* The comparison section: same sky, marked as the current version */
.day-compare .eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; }

/* ==========================================================
   Proposed slides: a concept first, the screen as proof
   ========================================================== */
.scene > .scene-visual.cx { max-width: none; }
.cx { display: grid; gap: 22px; align-items: center; }
@media (min-width: 1000px) { .cx { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.8fr); gap: 32px; } }
.cx-main { display: grid; gap: 12px; }
.cx-proof { display: grid; gap: 8px; justify-items: start; }
.cx-proof .shot { max-width: 400px; width: 100%; box-shadow: 0 18px 44px -22px rgba(10, 20, 60, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.3); }
.cx-cap { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.82); }
.cx-cap .icon { width: 13px; height: 13px; }

.cx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cx-chips > li, .cx-chips > span {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2);
  font: 500 14px/1.2 var(--font-sans); color: var(--white); white-space: nowrap;
}
.cx-chips .icon { width: 14px; height: 14px; }
.cx-arrow { display: inline-grid; place-items: center; color: rgba(255, 255, 255, 0.7); }
.cx-arrow .icon { width: 18px; height: 18px; }
.cx-down .icon { transform: rotate(90deg); }

/* a short numbered flow */
.cx-flow { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cx-step {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px;
  border-radius: 18px; background: var(--glass-dark); border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.cx-step > div { display: grid; gap: 8px; min-width: 0; }
.cx-step small { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78); }
.cx-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); font: 600 14px/1 var(--font-sans); }
.cx-bubble { justify-self: start; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--white); color: var(--ink); font-size: 15px; line-height: 1.4; }
.cx-states { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cx-state {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.24); font: 500 14px/1.2 var(--font-sans);
}
.cx-state .icon { width: 14px; height: 14px; }
.cx-state-ok { background: #e9f7ef; border-color: #e9f7ef; color: #11683b; }

/* severity tiers */
.cx-tiers { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cx-tier {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 16px;
  border-radius: 16px; background: var(--glass-dark); border: 1px solid rgba(255, 255, 255, 0.14); border-left-width: 4px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.cx-tier b { font: 600 13px/1.2 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; }
.cx-critical { border-left-color: #ff7a7a; } .cx-critical b { color: #ffb3b3; }
.cx-warning { border-left-color: #ffc46b; } .cx-warning b { color: #ffd89c; }
.cx-insight { border-left-color: #8fb8ff; } .cx-insight b { color: #c4d9ff; }
.cx-chips-row > span { font-size: 13.5px; padding: 6px 11px; }

/* inputs, engine, outputs */
.cx-engine, .cx-chain { display: grid; gap: 10px; justify-items: start; }
.cx-node {
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 16px; border-radius: 14px;
  background: var(--white); color: var(--ink); font: 500 16px/1.2 var(--font-head);
  box-shadow: 0 14px 30px -18px rgba(10, 20, 60, 0.6);
}
.cx-node .icon { width: 18px; height: 18px; color: var(--brand-blue); }
.cx-down { padding-left: 18px; }
.cx-dues { display: grid; gap: 8px; width: 100%; max-width: 420px; margin: 0; padding: 0; list-style: none; }
.cx-dues li {
  display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); font-size: 15px;
}
.cx-dues time { font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.9); }
.cx-note, .cx-result { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, 0.9); }
.cx-note .icon, .cx-result .icon { width: 15px; height: 15px; }

/* the ownership chain */
.cx-person { background: #fff8e6; }
.cx-edge {
  position: relative; margin-left: 26px; padding: 6px 0 6px 18px; font: 600 14px/1 var(--font-sans); color: var(--white);
  border-left: 2px solid rgba(255, 255, 255, 0.5);
}
.cx-result { margin-top: 6px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); }

/* scale: a number and a path */
.cx-scale { display: grid; gap: 18px; }
.cx-stat { display: grid; gap: 4px; }
.cx-stat b { font: 500 clamp(56px, 6vw, 84px)/0.95 var(--font-sans); letter-spacing: -0.04em; color: var(--white); }
.cx-stat span { font-size: 16px; color: rgba(255, 255, 255, 0.88); }
.cx-path { display: grid; gap: 10px; justify-items: start; }
.cx-sources { flex-direction: column; align-items: flex-start; gap: 6px; }
.cx-sources > li { font-size: 13.5px; padding: 6px 11px; }

/* "One pager" before the PDF is in place */
[data-one-pager][aria-disabled="true"] { opacity: 0.6; cursor: default; }
/* Hero: three buttons on one row from laptop width */
@media (min-width: 1000px) {
  .day-side .actions { flex-wrap: nowrap; gap: 8px; }
  .day-side .actions .pill { padding: 0 15px; font-size: 14.5px; gap: 7px; }
}
