/* EnVision Optometry preview. Brandcore sales deck, web delivery only. */

@font-face { font-family: "Geist"; src: url("assets/fonts/geist-latin.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("assets/fonts/instrument-serif-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("assets/fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/jetbrains-mono-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --ink: #0b1217;
  --ink-2: #101c23;
  --ink-3: #172831;
  --paper: #f3f0e8;
  --paper-2: #e7e2d5;
  --lens: #6fd3cf;
  --lens-deep: #17605f;
  --rust: #b4532f;
  --mute-d: #b4ab9b;
  --text-p: #14191d;
  --text-m: #4b545a;
  --line-d: rgba(243, 240, 232, 0.16);
  --line-p: rgba(20, 25, 29, 0.16);

  --chrome-top: 74px;
  --chrome-bottom: 56px;
  --gutter: clamp(20px, 3.6vw, 64px);

  /* Fluid type tokens. Body 18-22px at 1600, 20-24px near 2100, 16px+ at 1366. */
  --fs-body: clamp(17px, 0.6rem + 0.55vw, 24px);
  --fs-lede: clamp(18px, 0.8rem + 0.6vw, 26px);
  --fs-label: clamp(14px, 0.7rem + 0.2vw, 16px);
  --fs-card-h: clamp(24px, 0.9rem + 0.9vw, 34px);
  --fs-section: clamp(40px, 2.4rem + 2.2vw, 84px);
  --fs-display: clamp(52px, 2.6rem + 4.6vw, 148px);
  --fs-small: clamp(14px, 0.7rem + 0.15vw, 15px);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--fs-body);
  line-height: 1.5;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ol, ul, dl, dd, dt, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--lens); outline-offset: 3px; }

.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 80;
  background: var(--lens); color: var(--ink); padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Deck frame ---------- */

.deck {
  position: fixed; inset: 0; z-index: 2; outline: none;
}
.slide {
  position: absolute; left: 0; right: 0;
  top: var(--chrome-top); bottom: var(--chrome-bottom);
  overflow: hidden;
  visibility: hidden; opacity: 0; z-index: 1;
}
.slide.is-active { visibility: visible; opacity: 1; z-index: 2; }
.slide.is-leaving { visibility: visible; opacity: 1; z-index: 3; animation: out-fwd 420ms cubic-bezier(0.5, 0, 0.75, 0) both; }
.slide.is-entering { visibility: visible; opacity: 1; z-index: 4; animation: in-fwd 520ms cubic-bezier(0.16, 0.84, 0.3, 1) both; }
.slide.is-leaving.back { animation-name: out-back; }
.slide.is-entering.back { animation-name: in-back; }
.slide.is-leaving.boom { animation: out-boom 300ms ease-in both; }
.slide.is-entering.boom { animation: in-boom 820ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }

.slide.dark { background: var(--ink); color: var(--paper); }
.slide.paper { background: var(--paper); color: var(--text-p); }
.slide.cover { background: transparent; }
.slide.flagship { background: radial-gradient(120% 90% at 70% 40%, #14262e 0%, var(--ink) 62%); }

.slide-scroll {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  overflow-x: hidden; overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: clamp(22px, 3.6vh, 48px) var(--gutter) clamp(28px, 4.4vh, 60px);
}
/* Centre content vertically when it fits; scroll when it does not. */
.slide-scroll::before,
.slide-scroll::after { content: ""; flex: 1 0 0; min-height: 0; }
.slide-scroll > * { width: 100%; max-width: 1480px; margin-left: auto; margin-right: auto; }

/* ---------- Chrome ---------- */

.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 35; background: rgba(243, 240, 232, 0.08); }
.progress span { display: block; height: 100%; width: 0; background: var(--lens); transition: width 420ms ease; }

.chrome {
  position: fixed; left: 0; right: 0; z-index: 30;
  background: var(--ink);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
}
.chrome-top { top: 0; height: var(--chrome-top); border-bottom: 1px solid var(--line-d); display: grid; grid-template-columns: 1fr auto 1fr; }
.chrome-bottom { bottom: 0; height: var(--chrome-bottom); border-top: 1px solid var(--line-d); padding-bottom: env(safe-area-inset-bottom); }

.lockup { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lockup-brand { height: 22px; width: auto; }
.lockup-x { width: 18px; height: 18px; color: var(--mute-d); flex: none; }
.lockup-client {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label);
  letter-spacing: 0.08em; white-space: nowrap; color: var(--paper);
}
.lockup-client .short { display: none; }

.chrome-label {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute-d);
  white-space: nowrap; text-align: center;
}
.chrome-right { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.counter {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label);
  letter-spacing: 0.06em; color: var(--mute-d); white-space: nowrap;
}
.chrome-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  background: transparent; border: 1px solid var(--line-d); border-radius: 999px;
  color: var(--paper); font-size: var(--fs-label); cursor: pointer;
}
.chrome-btn:hover { border-color: var(--lens); }

.prepared, .private {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label);
  letter-spacing: 0.04em; color: var(--mute-d); margin: 0;
}
.private { color: var(--mute-d); }

.pager { display: flex; gap: 10px; }
.pager-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px;
  background: transparent; border: 1px solid var(--line-d); border-radius: 999px;
  color: var(--paper); font-size: 16px; font-weight: 500; cursor: pointer;
}
.pager-btn.primary { background: var(--lens); color: var(--ink); border-color: var(--lens); font-weight: 600; }
.pager-btn:disabled { opacity: 0.4; cursor: default; }

.rail {
  position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 31;
  display: flex; flex-direction: column; gap: 6px; padding: 10px 6px;
  background: rgba(11, 18, 23, 0.72); border: 1px solid var(--line-d); border-radius: 999px;
}
.rail button {
  width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--mute-d);
  background: transparent; cursor: pointer; padding: 0;
}
.rail button[aria-current="true"] { background: var(--lens); border-color: var(--lens); }
.rail button:focus-visible { outline-offset: 2px; }

/* Index overlay */
.index-panel {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(7, 11, 14, 0.96);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.index-inner { width: min(640px, 100%); max-height: 100%; overflow-y: auto; }
.index-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.index-head h2 { font-size: var(--fs-card-h); font-weight: 600; letter-spacing: -0.03em; }
.index-list { display: grid; gap: 8px; }
.index-list button {
  width: 100%; min-height: 56px; display: flex; align-items: center; gap: 18px; text-align: left;
  padding: 0 18px; background: var(--ink-2); border: 1px solid var(--line-d); border-radius: 12px;
  color: var(--paper); font-size: 18px; cursor: pointer;
}
.index-list button:hover, .index-list button:focus-visible { border-color: var(--lens); }
.index-list span { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label); color: var(--lens); }

/* Light sweep for ordinary Next and Previous moves */
.sweep {
  position: fixed; top: 0; bottom: 0; left: 0; width: 36vw; z-index: 25; pointer-events: none;
  opacity: 0; transform: translate3d(-120%, 0, 0); mix-blend-mode: screen;
  background: linear-gradient(90deg, rgba(111, 211, 207, 0) 0%, rgba(111, 211, 207, 0.12) 30%, rgba(255, 255, 255, 0.55) 50%, rgba(111, 211, 207, 0.12) 70%, rgba(111, 211, 207, 0) 100%);
}
.sweep.run-fwd { animation: sweep-fwd 760ms ease-in-out both; }
.sweep.run-back { animation: sweep-back 760ms ease-in-out both; }

/* ---------- Lens canvas ---------- */

#lens-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none; display: block;
}
html.boom #lens-canvas { z-index: 40; }

/* Static medallion: shown unless WebGL is running; also the reduced-motion and no-WebGL fallback. */
.cover-medallion { display: grid; place-items: center; }
html.webgl-on .cover-medallion { display: none; }
.cover-medallion {
  position: absolute; right: 7%; top: 50%; transform: translateY(-50%);
  width: min(40vh, 34vw); aspect-ratio: 1; z-index: 2;
}
.medallion-ring {
  width: 100%; height: 100%; border-radius: 50%;
  display: grid; place-items: center; align-content: center; text-align: center;
  background: radial-gradient(circle at 36% 30%, #1f4a54 0%, #0e2a31 52%, #060e12 100%);
  box-shadow: inset 0 0 0 1px rgba(111, 211, 207, 0.4), 0 0 0 12px rgba(111, 211, 207, 0.05), 0 40px 90px rgba(0, 0, 0, 0.55);
}
.medallion-name { display: block; font-size: clamp(38px, 4.6vw, 84px); font-weight: 600; letter-spacing: -0.03em; color: var(--paper); line-height: 1; }
.medallion-sub { display: block; margin-top: 0.4em; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: clamp(12px, 1vw, 18px); letter-spacing: 0.3em; color: var(--lens); }

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

.kicker {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--lens); margin-bottom: 1.1rem;
}
.paper .kicker { color: var(--lens-deep); }

.display {
  font-size: var(--fs-display); font-weight: 600; letter-spacing: -0.055em; line-height: 0.92;
}
.section-title {
  font-size: var(--fs-section); font-weight: 600; letter-spacing: -0.045em; line-height: 1.02;
  max-width: 24ch; margin-bottom: 0.9rem; text-wrap: balance;
}
.support {
  font-size: var(--fs-lede); line-height: 1.5; color: var(--mute-d); max-width: 62ch;
  margin-bottom: clamp(18px, 3vh, 34px);
}
.paper .support { color: var(--text-m); }
.source {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-small);
  letter-spacing: 0.03em; line-height: 1.5; color: var(--mute-d); margin-top: 0.7rem;
}
.paper .source { color: var(--text-m); }

em {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--lens);
}
.paper em { color: var(--lens-deep); }

.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; font-size: 16px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--lens); color: var(--ink); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-ghost { background: transparent; border-color: var(--line-d); color: var(--paper); }

/* ---------- 1. Cover ---------- */

.cover .slide-scroll { padding: 24px var(--gutter); }
.cover .slide-scroll::before { flex: 1 0 0; }
.cover-copy { position: relative; z-index: 3; width: min(52%, 700px); max-width: none; margin: 0; }
.cover .kicker { color: var(--lens); }
.cover .display { color: var(--paper); margin-bottom: clamp(18px, 3vh, 30px); }
.cover .display em { color: var(--lens); }
.lede { font-size: var(--fs-lede); color: var(--mute-d); max-width: 46ch; margin-bottom: clamp(18px, 3vh, 30px); }
.ticker {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(16px, 2.6vh, 26px);
}
.ticker li {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label);
  padding: 8px 12px; border: 1px solid var(--line-d); border-radius: 999px; color: var(--paper);
}
.cover-foot { font-size: var(--fs-small); color: var(--mute-d); margin-bottom: 16px; }
.cue {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  font-size: 16px; font-weight: 600; color: var(--lens); text-decoration: none;
}
.cue svg { width: 20px; height: 20px; }
.note {
  margin-top: 22px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-small);
  color: var(--mute-d); max-width: 62ch; line-height: 1.55;
}

/* ---------- 2. Audit ---------- */

.findings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px) clamp(24px, 3vw, 48px); }
.findings li {
  border-top: 2px solid var(--text-p); padding-top: 14px;
}
.findings h3 { font-size: var(--fs-card-h); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin: 10px 0 8px; }
.findings p { font-size: var(--fs-body); line-height: 1.5; color: var(--text-p); }
.sev {
  display: inline-block; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-small);
  letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px;
}
.sev.high { background: var(--rust); color: #fbf7ef; }
.sev.med { background: var(--paper-2); color: var(--text-p); border: 1px solid var(--text-m); }
.sev.low { background: transparent; color: var(--text-m); border: 1px solid var(--text-m); }

/* ---------- 3. Gap ---------- */

.gap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 36px); }
.path {
  padding: clamp(20px, 2.4vw, 34px); border: 1px solid var(--line-d); border-radius: 16px; background: var(--ink-2);
}
.path h3 { font-size: var(--fs-card-h); font-weight: 600; letter-spacing: -0.03em; margin-bottom: 14px; }
.path ol { counter-reset: step; display: grid; gap: 10px; }
.path li {
  counter-increment: step; position: relative; padding-left: 44px;
  font-size: clamp(16px, 0.7rem + 0.4vw, 20px); line-height: 1.45; color: var(--paper);
}
.path li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-small);
  border: 1px solid var(--mute-d); color: var(--mute-d);
}
.path-now li::before { color: #f2b49b; border-color: #f2b49b; }
.path-next { border-color: var(--lens); background: #0f2a2c; }
.path-next li::before { color: var(--lens); border-color: var(--lens); }
.concept-tag { margin-top: 16px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-small); color: var(--lens); }
.gap-number {
  margin-top: clamp(20px, 3vh, 34px); display: grid; grid-template-columns: auto 1fr; gap: 4px 28px; align-items: center;
  padding-top: 20px; border-top: 1px solid var(--line-d);
}
.big { font-size: clamp(54px, 4.6vw, 96px); font-weight: 600; letter-spacing: -0.05em; line-height: 0.95; color: var(--lens); grid-row: span 2; }
.gap-number-text { font-size: var(--fs-body); color: var(--paper); max-width: 60ch; }
.gap-number .source { grid-column: 2; margin-top: 0; }

/* ---------- 4. Flagship ---------- */

.flag-layout {
  display: grid; grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 56px); align-items: center; min-height: 100%;
}
.flag-copy h2 { font-size: var(--fs-section); }
.flag-copy .support { margin-bottom: 18px; }
.flag-facts { display: grid; gap: 10px; font-size: var(--fs-body); color: var(--paper); }
.flag-facts li { padding-left: 18px; position: relative; }
.flag-facts li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 7px; height: 7px; border-radius: 50%; background: var(--lens); }

.flag-stage { display: grid; grid-template-columns: minmax(0, 1fr) clamp(190px, 16vw, 236px); gap: 22px; align-items: center; min-width: 0; }
.browser {
  background: var(--ink-3); border-radius: 14px; overflow: hidden; min-width: 0;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(243, 240, 232, 0.08);
}
.browser-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #0c161c; }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #3a4a52; }
.browser-bar em {
  margin-left: 14px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-small);
  color: var(--mute-d); font-style: normal; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tabs { display: flex; gap: 4px; padding: 8px 10px; background: #f7f5ee; border-bottom: 1px solid #d9d4c6; }
.tabs button {
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 8px; background: transparent;
  color: var(--text-m); font-size: 16px; font-weight: 600; cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--lens-deep); color: #fbf7ef; }
.tabpanel { background: #fbf9f4; color: var(--text-p); min-height: 0; }
.hero { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 0; }
.hero-photo { width: 100%; height: 100%; min-height: 240px; object-fit: cover; object-position: 50% 50%; }
.hero-text { padding: clamp(20px, 2.4vw, 32px); display: grid; gap: 10px; align-content: center; }
.hero-quote { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: clamp(22px, 1.6vw, 30px); line-height: 1.2; color: var(--lens-deep); }
.hero-src { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-small); color: var(--text-m); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.hero-ctas .btn-primary { background: var(--lens-deep); color: #fbf7ef; min-height: 44px; font-size: 16px; }
.hero-ctas .btn-ghost { color: var(--lens-deep); border-color: var(--lens-deep); min-height: 44px; font-size: 16px; }
.hero-phone { font-size: 16px; color: var(--text-m); }
.hero-phone span { font-weight: 600; color: var(--text-p); }
.strip { padding: 16px clamp(20px, 2.4vw, 32px); border-top: 1px solid #d9d4c6; }
.strip-title { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-small); color: var(--lens-deep); margin-bottom: 8px; }
.strip ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.strip li { font-size: 16px; color: var(--text-p); padding: 10px 12px; background: #f1ede2; border-radius: 10px; }
.strip b { display: block; font-size: 16px; font-weight: 600; }

.svc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: clamp(18px, 2.4vw, 30px); }
.svc-list article { padding: 18px; background: #f1ede2; border-radius: 12px; }
.svc-list h4 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 6px; color: var(--lens-deep); }
.svc-list p { font-size: 16px; line-height: 1.5; color: var(--text-p); }

.book { padding: clamp(16px, 2vw, 24px); display: grid; gap: 14px; }
.book-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid #b9b3a2; background: #fff;
  color: var(--text-p); font-size: 15px; font-weight: 500; cursor: pointer;
}
.chip.is-on { background: var(--lens-deep); border-color: var(--lens-deep); color: #fbf7ef; }
.month { font-size: 18px; font-weight: 600; color: var(--text-p); }
.cal-wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.cal .dow { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; color: var(--text-m); text-align: center; padding: 4px 0; }
.cal button {
  min-height: 44px; border-radius: 8px; border: 1px solid #d5cfbf; background: #fff; color: var(--text-p);
  font-size: 15px; font-weight: 500; cursor: pointer; padding: 0;
}
.cal button:disabled { background: repeating-linear-gradient(135deg, #ece8dc 0 6px, #f7f4ec 6px 12px); color: var(--text-m); border-color: #e0dacb; cursor: not-allowed; }
.cal button.closed-hol { color: var(--rust); }
.cal button[aria-pressed="true"] { background: var(--lens-deep); border-color: var(--lens-deep); color: #fbf7ef; }
.cal .blank { min-height: 44px; }
.slot-panel { background: #fff; border: 1px solid #d5cfbf; border-radius: 12px; padding: 16px; display: grid; gap: 10px; align-content: start; }
.slot-day { font-size: 18px; font-weight: 600; color: var(--text-p); }
.slot-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.slot-list button {
  min-height: 44px; border-radius: 8px; border: 1px solid #b9b3a2; background: #fbf9f4; color: var(--text-p);
  font-size: 15px; font-weight: 500; cursor: pointer;
}
.slot-list button[aria-pressed="true"] { background: var(--lens-deep); color: #fbf7ef; border-color: var(--lens-deep); }
.slot-detail { font-size: 15px; color: var(--text-m); line-height: 1.45; min-height: 2.9em; }
#request-btn { background: var(--lens-deep); color: #fbf7ef; }
#request-btn:disabled { background: #cfc9b8; color: #4b4f52; }
.slot-status { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; color: var(--text-m); }

.phone {
  justify-self: center; width: clamp(190px, 16vw, 236px); aspect-ratio: 9 / 18.5; padding: 12px;
  border-radius: 34px; background: #05090c; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), inset 0 0 0 2px #22333c;
}
.phone-screen { height: 100%; border-radius: 24px; background: #fbf9f4; color: var(--text-p); padding: 16px 14px; display: grid; gap: 12px; align-content: start; overflow: hidden; }
.ph-brand { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; letter-spacing: 0.06em; color: var(--lens-deep); }
.ph-hero { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: 26px; line-height: 1.15; color: var(--text-p); }
.ph-cta { min-height: 46px; display: grid; place-items: center; border-radius: 999px; background: var(--lens-deep); color: #fbf7ef; font-size: 16px; font-weight: 600; }
.ph-list { display: grid; gap: 8px; }
.ph-list li { font-size: 16px; padding: 10px 12px; border-radius: 10px; background: #f1ede2; }
.ph-note { font-size: 13px; color: var(--text-m); line-height: 1.4; }

.flag-detail { display: none; }

/* ---------- 5. System ---------- */

.services { display: grid; gap: 0; border-top: 2px solid var(--text-p); }
.services li {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(170px, 0.34fr); gap: clamp(14px, 2vw, 30px);
  align-items: start; padding: clamp(14px, 2vh, 22px) 0; border-bottom: 1px solid var(--line-p);
}
.num { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label); color: var(--lens-deep); padding-top: 6px; }
.services h3 { font-size: var(--fs-card-h); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 6px; }
.services p { font-size: var(--fs-body); line-height: 1.5; color: var(--text-p); max-width: 62ch; }
.fixes { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-small); color: var(--text-m); padding-top: 8px; line-height: 1.45; }

/* ---------- 6. Proof ---------- */

.compare {
  position: relative; min-height: clamp(360px, 52vh, 500px); border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line-d); background: var(--ink-2);
  --split: 50%;
}
.cmp-before, .cmp-after { position: absolute; inset: 0; padding: clamp(24px, 3vw, 44px) clamp(24px, 3vw, 44px) 92px; }
.cmp-before { background: #121d24; color: var(--paper); display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.cmp-after {
  background: #fbf9f4; color: var(--text-p); clip-path: inset(0 0 0 var(--split));
  display: flex; flex-direction: column; gap: 16px; justify-content: center;
}
.tag { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-small); letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute-d); }
.cmp-after .tag { color: var(--lens-deep); }
.quote { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: clamp(22px, 2vw, 32px); line-height: 1.3; color: var(--paper); max-width: 42ch; }
.quote.small { font-size: clamp(18px, 1.5vw, 24px); color: var(--mute-d); }
.cmp-after .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.facts li { background: #f1ede2; border-radius: 12px; padding: 14px 16px; display: grid; gap: 4px; }
.facts b { font-size: clamp(18px, 1.5vw, 24px); font-weight: 600; letter-spacing: -0.02em; color: var(--text-p); }
.facts span { font-size: var(--fs-small); color: var(--text-m); }
.cmp-cta .btn-primary { background: var(--lens-deep); color: #fbf7ef; }
.compare::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px;
  background: var(--lens); pointer-events: none; z-index: 2; transform: translateX(-1px);
}
.cmp-range {
  position: absolute; left: 20px; right: 20px; bottom: 22px; width: calc(100% - 40px); height: 44px;
  z-index: 3; margin: 0; accent-color: var(--lens); cursor: ew-resize;
}

/* ---------- 7. Roadmap ---------- */

.phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 36px); }
.phase { border-top: 3px solid var(--text-p); padding-top: 16px; display: grid; gap: 12px; align-content: start; }
.phase-day { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--lens-deep); }
.phase h3 { font-size: var(--fs-card-h); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.phase dl { display: grid; gap: 10px; }
.phase dt { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-m); }
.phase dd { font-size: var(--fs-body); line-height: 1.45; color: var(--text-p); margin: 0 0 6px; }

/* ---------- 8. Engagement ---------- */

.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: stretch; }
.level {
  position: relative; border: 1px solid var(--line-d); border-radius: 18px; padding: clamp(22px, 2.6vw, 36px);
  background: var(--ink-2); display: grid; gap: 14px; align-content: start;
}
.level h3 { font-size: var(--fs-card-h); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.level p { font-size: var(--fs-body); line-height: 1.5; color: var(--paper); }
.covers { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-small); color: var(--mute-d) !important; margin-top: auto; }
.recommended { border-color: var(--lens); background: #0f2b2d; box-shadow: 0 0 0 1px var(--lens) inset; }
.rec-badge {
  justify-self: start; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-small);
  letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--lens); color: var(--ink);
}
.pricing { margin-top: clamp(20px, 3vh, 34px); font-size: var(--fs-lede); color: var(--mute-d); }

/* ---------- 9. Close ---------- */

.close-layout {
  display: grid; grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 72px); align-items: center;
}
.rep { display: grid; gap: 8px; justify-items: start; }
.rep-portrait { width: clamp(220px, 27vw, 380px); height: auto; margin-bottom: 8px; }
.rep-name { font-size: clamp(30px, 2.4vw, 44px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.rep-role { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label); letter-spacing: 0.04em; color: var(--lens-deep); }
.rep-lines { display: grid; gap: 6px; margin-top: 8px; }
.rep-lines li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; font-size: clamp(17px, 1.2vw, 20px); align-items: baseline; }
.rep-lines span { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-small); color: var(--text-m); text-transform: uppercase; letter-spacing: 0.05em; }
.rep-lines a { text-decoration: none; font-weight: 600; color: var(--text-p); overflow-wrap: anywhere; }
.rep-lines a:hover { text-decoration: underline; }
.signoff { margin-top: 14px; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 12px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.signoff img { height: 20px; width: auto; }
.signoff p { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-small); letter-spacing: 0.02em; }
.talk .section-title { max-width: 18ch; }
.schedule { display: grid; gap: 14px; margin-top: 4px; }
.schedule fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.schedule legend { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-small); color: var(--text-m); margin-bottom: 8px; letter-spacing: 0.04em; }
.day-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.day-grid button {
  min-height: 56px; border-radius: 12px; border: 1px solid #b9b3a2; background: #fbf9f4; color: var(--text-p);
  font-size: 16px; font-weight: 500; cursor: pointer; padding: 6px 4px; line-height: 1.2;
}
.day-grid button small { display: block; font-size: 13px; color: var(--text-m); font-weight: 400; }
.day-grid button[aria-checked="true"] { background: var(--text-p); color: var(--paper); border-color: var(--text-p); }
.day-grid button[aria-checked="true"] small { color: var(--mute-d); }
.time-label { display: grid; gap: 8px; max-width: 320px; }
.time-label span { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-small); color: var(--text-m); letter-spacing: 0.04em; }
.time-label select {
  min-height: 52px; padding: 0 14px; border-radius: 12px; border: 1px solid #b9b3a2; background: #fff; color: var(--text-p); font-size: 17px;
}
#draft-btn { justify-self: start; background: var(--text-p); color: var(--paper); }
.form-status { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-small); color: var(--text-m); min-height: 2.6em; }
.form-status.is-error { color: var(--rust); }
.closing { margin-top: 18px; font-size: var(--fs-body); color: var(--text-p); max-width: 58ch; }

/* ---------- Transitions ---------- */

@keyframes out-fwd { to { opacity: 0; transform: translate3d(-9%, 0, 0) scale(1.04); } }
@keyframes in-fwd { from { opacity: 0; transform: translate3d(7%, 0, 0) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes out-back { to { opacity: 0; transform: translate3d(9%, 0, 0) scale(1.04); } }
@keyframes in-back { from { opacity: 0; transform: translate3d(-7%, 0, 0) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes out-boom { to { opacity: 0; transform: scale(1.1); } }
@keyframes in-boom {
  0% { opacity: 0; transform: scale(0.93); filter: blur(16px) brightness(1.7); }
  55% { opacity: 1; }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes sweep-fwd { 0% { opacity: 0; transform: translate3d(-120%, 0, 0); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translate3d(300%, 0, 0); } }
@keyframes sweep-back { 0% { opacity: 0; transform: translate3d(300%, 0, 0); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translate3d(-120%, 0, 0); } }

/* ---------- Breakpoints ---------- */

/* Laptop and below: tighter flagship and cards. */
@media (max-width: 1279px) {
  .levels { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr; }
  .phase { border-top-width: 2px; }
  .cover-copy { width: min(56%, 640px); }
}

@media (max-width: 1179px) {
  .rail { display: none; }
  .flag-layout { grid-template-columns: 1fr; }
  .flag-stage { grid-template-columns: minmax(0, 1fr); }
  .phone { display: none; }
  .flag-detail {
    display: grid; gap: 8px; padding: 18px 20px; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--line-d);
  }
  .flag-detail h3 { font-size: 20px; font-weight: 600; color: var(--lens); margin-top: 6px; }
  .flag-detail p { font-size: var(--fs-body); }
  .lockup-client .long { display: inline; }
}

/* Portrait tablets: lens at top centre, copy below it, matching the portrait lens layout in lens-scene.js. */
@media (max-width: 1023px) and (orientation: portrait) {
  .cover .slide-scroll { padding: 0 var(--gutter) 22px; }
  .cover .slide-scroll::before { flex: 1 0 46vh; }
  .cover-copy { width: 100%; max-width: 640px; }
  .cover-medallion { top: 9%; right: auto; left: 50%; transform: translate(-50%, 0); width: min(44vh, 60vw); }
}

@media (max-width: 1023px) {
  .findings { grid-template-columns: 1fr; }
  .services li { grid-template-columns: 52px minmax(0, 1fr); }
  .fixes { grid-column: 2; padding-top: 0; }
  .close-layout { grid-template-columns: 1fr; }
  .rep-portrait { width: clamp(200px, 34vw, 300px); }
  .cal-wrap { grid-template-columns: 1fr; }
  .strip ul { grid-template-columns: 1fr; }
  .cmp-after .facts { grid-template-columns: 1fr; }
}

/* Tablet and phone: opaque chrome, safe insets, stacked content. */
@media (max-width: 759px) {
  :root {
    --chrome-top: 58px;
    --chrome-bottom: 68px;
    --gutter: 18px;
  }
  .chrome-top { grid-template-columns: minmax(0, 1fr) auto; }
  .chrome-label { display: none; }
  .lockup-brand { height: 18px; }
  .lockup-client .long { display: none; }
  .lockup-client .short { display: inline; }
  .lockup-client { font-size: 14px; }
  .lockup-x { width: 14px; height: 14px; }
  .lockup { gap: 8px; }
  .chrome-btn span { display: none; }
  .chrome-btn { min-width: 44px; justify-content: center; padding: 0 10px; }
  .chrome-right { gap: 10px; }
  .counter { font-size: 14px; }
  .chrome-bottom { padding: 0 14px env(safe-area-inset-bottom); }
  .prepared, .private { display: none; }
  .pager { width: 100%; justify-content: space-between; }
  .pager-btn { flex: 1 1 0; justify-content: center; min-height: 48px; font-size: 16px; }

  .slide-scroll { padding: 22px 18px 28px; }
  .section-title { font-size: clamp(32px, 9.2vw, 44px); letter-spacing: -0.035em; }
  .display { font-size: clamp(44px, 13vw, 60px); letter-spacing: -0.045em; }
  .cover .slide-scroll { padding: 0 18px 22px; }
  .cover .slide-scroll::before { flex: 1 0 44vh; }
  .cover-copy { width: 100%; }
  .ticker { display: none; }
  .cue { min-height: 48px; }
  .cover-medallion { top: 9%; right: auto; left: 50%; transform: translate(-50%, 0); width: min(60vw, 40vh); }
  .lede { font-size: 17px; }

  .findings li { padding-top: 12px; }
  .findings h3 { font-size: 22px; }
  .findings p { font-size: 16px; }
  .gap-grid { grid-template-columns: 1fr; }
  .path li { font-size: 16px; }
  .gap-number { grid-template-columns: 1fr; }
  .gap-number .source { grid-column: 1; }
  .big { grid-row: auto; }

  .flag-copy .support { font-size: 17px; }
  .flag-copy h2 { font-size: clamp(32px, 9vw, 40px); }
  .browser-bar em { font-size: 13px; }
  .hero { grid-template-columns: 1fr; }
  .hero-photo { min-height: 200px; max-height: 240px; }
  .svc-list { grid-template-columns: 1fr; padding: 16px; }
  .cal { gap: 3px; }
  .cal button { min-height: 44px; font-size: 14px; }
  .cal-wrap { gap: 12px; }
  .slot-list { grid-template-columns: 1fr 1fr; }

  .services li { grid-template-columns: 1fr; gap: 6px; }
  .num { padding-top: 0; }
  .fixes { grid-column: auto; }
  .services h3 { font-size: 24px; }
  .services p { font-size: 17px; }
  .compare { min-height: 520px; }
  .cmp-before, .cmp-after { padding: 22px 20px 96px; }
  .quote { font-size: 20px; }

  .phase dd { font-size: 17px; }
  .phase h3 { font-size: 24px; }
  .level h3 { font-size: 24px; }
  .level p { font-size: 17px; }

  .close-layout { gap: 22px; }
  .rep { justify-items: center; text-align: center; }
  .rep-portrait { width: min(56vw, 210px); }
  .rep-lines li { grid-template-columns: 1fr; gap: 0; justify-items: center; }
  .rep-name { font-size: 32px; }
  .signoff { justify-content: center; }
  .day-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .time-label { max-width: none; }
  #draft-btn { width: 100%; justify-self: stretch; }
}

@media (max-width: 380px) {
  .lockup-client .short { font-size: 13px; }
  .pager-btn { font-size: 15px; padding: 0 10px; }
}

/* Short laptop screens: keep everything reachable through the slide scroller. */
@media (min-width: 760px) and (max-height: 820px) {
  :root { --fs-section: clamp(38px, 2.2rem + 1.6vw, 64px); --fs-display: clamp(50px, 2.2rem + 3.8vw, 116px); }
  .section-title { margin-bottom: 0.6rem; }
  .support { margin-bottom: 14px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .slide, .slide.is-leaving, .slide.is-entering { animation: none !important; transition: none !important; }
  .sweep { display: none; }
  .progress span { transition: none; }
}
html.reduced-motion .slide,
html.reduced-motion .slide.is-leaving,
html.reduced-motion .slide.is-entering { animation: none !important; transition: none !important; }
html.reduced-motion .sweep { display: none; }
html.reduced-motion #lens-canvas { display: none; }
html.reduced-motion .cover-medallion { display: grid; }
