/* Azulé Taqueria website concept · Brandcore deck · source v1 (not yet browser-verified) */

@font-face { font-family: "Geist"; src: url("assets/fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; 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: #071b2b;
  --ink-2: #0c2a40;
  --sea: #6eb0c7;
  --sea-2: #a7d8e8;
  --foam: #f3eee3;
  --sand: #e9dfcc;
  --chile: #e0643e;
  --deep: #1f5a78;

  --mast-h: 60px;
  --chrome-h: 64px;
  --pad-x: clamp(20px, 3.4vw, 64px);

  --fs-body: clamp(16px, 0.6rem + 0.55vw, 24px);
  --fs-label: clamp(13px, 0.72rem + 0.2vw, 16px);
  --fs-h2: clamp(36px, 2.2rem + 1.9vw, 68px);
  --fs-card: clamp(22px, 1.1rem + 0.6vw, 32px);
  --fs-cover: clamp(48px, 2.6rem + 3.6vw, 112px);
  --fs-site: clamp(16px, 0.7rem + 0.4vw, 19px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: #eef6f9;
  background: var(--ink);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
em { font-style: normal; }
:focus-visible { outline: 3px solid var(--sea-2); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 40; background: var(--sea); color: var(--ink); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }

/* ---------- Masthead, progress, chrome ---------- */
.masthead {
  position: fixed; top: 0; left: 0; right: 0; height: var(--mast-h); z-index: 20;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 0 var(--pad-x); background: var(--ink); border-bottom: 1px solid rgba(110, 176, 199, 0.22);
}
.co-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.co-brand__bc { height: 22px; width: auto; }
.co-brand__az { height: 30px; width: auto; }
.co-brand__x { font-family: "Instrument Serif", serif; font-style: italic; font-size: 26px; line-height: 1; color: var(--sea-2); }
.masthead__label {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label);
  letter-spacing: 0.08em; text-transform: uppercase; color: #bfd0d9; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.masthead__tools { display: flex; align-items: center; gap: 14px; justify-self: end; }
.counter { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label); color: #eef6f9; white-space: nowrap; }

.progress { position: fixed; top: var(--mast-h); left: 0; right: 0; height: 2px; z-index: 19; background: rgba(110, 176, 199, 0.18); }
.progress span { display: block; height: 100%; width: 100%; background: var(--sea); transform-origin: 0 50%; transform: scaleX(0.111); transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }

.chrome {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  height: calc(var(--chrome-h) + env(safe-area-inset-bottom, 0px));
  padding: 0 var(--pad-x) env(safe-area-inset-bottom, 0px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--ink); border-top: 1px solid rgba(110, 176, 199, 0.22);
}
.chrome__note { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label); color: #bfd0d9; letter-spacing: 0.02em; }
.chrome__nav { display: flex; gap: 12px; margin-left: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(167, 216, 232, 0.55); background: transparent; color: #eef6f9;
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em; text-decoration: none;
}
.btn svg { flex: none; }
.btn:disabled { opacity: 0.4; cursor: default; }
.btn--primary { background: var(--sea); color: var(--ink); border-color: var(--sea); }
.btn--ghost { border-color: transparent; padding-left: 10px; padding-right: 10px; }
.btn--wide { width: 100%; }
.btn:not(:disabled):hover { filter: brightness(1.08); }

.rail {
  position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 15;
  display: flex; flex-direction: column; gap: 12px;
}
.rail button { width: 14px; height: 14px; padding: 0; border-radius: 50%; cursor: pointer; border: 1px solid #a7d8e8; background: transparent; }
.rail button[aria-current="true"] { background: var(--sea-2); }

/* ---------- Slide frame ---------- */
.deck { position: fixed; top: var(--mast-h); bottom: var(--chrome-h); left: 0; right: 0; overflow: hidden; background: var(--ink); }
.slide {
  position: absolute; inset: 0; background: var(--bg, var(--ink));
  color: var(--txt, #eef6f9); opacity: 0; visibility: hidden; overflow: hidden;
}
.slide.is-active, .slide.is-leaving { opacity: 1; visibility: visible; }
.slide--ink { --bg: var(--ink); --txt: #eef6f9; --muted: #bfd0d9; --rule: rgba(110, 176, 199, 0.3); --accent: #8fc8dc; --card: #0c2a40; }
.slide--paper { --bg: var(--foam); --txt: #0c2a40; --muted: #3b5264; --rule: rgba(12, 42, 64, 0.2); --accent: var(--deep); --card: #fffcf5; }
.slide--paper .h2 em, .slide--ink .h2 em { color: var(--accent); }
.slide-scroll { position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.wrap {
  width: min(1360px, 100%); margin: 0 auto; min-height: 100%;
  padding: clamp(20px, 3.2vh, 44px) var(--pad-x);
  display: flex; flex-direction: column; justify-content: center; gap: clamp(16px, 2.6vh, 30px);
  position: relative; z-index: 1;
}
.wrap--split { display: grid; grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.4fr); align-items: center; gap: clamp(20px, 3vw, 52px); }
.wrap--close { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.9fr); align-items: center; gap: clamp(20px, 3vw, 52px); }

.kicker {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent, var(--sea-2));
}
.kicker--inline { margin-right: 6px; }
.h2 { font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -0.035em; font-weight: 600; text-wrap: balance; }
.h2 em, .payoff, .cover-title em { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.body { font-size: var(--fs-body); color: var(--muted, #bfd0d9); max-width: 60ch; }
.payoff { font-size: calc(var(--fs-body) * 1.2); color: var(--accent, var(--sea-2)); }
.card-h { font-size: var(--fs-card); line-height: 1.12; letter-spacing: -0.02em; font-weight: 600; }
.site-note { font-size: var(--fs-label); color: var(--muted, #bfd0d9); line-height: 1.45; }
.slide-head { display: flex; flex-direction: column; gap: 12px; }
.slide-head--split { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 32px; }
.slide-head--split > div { max-width: 62ch; display: flex; flex-direction: column; gap: 12px; }

.photo { position: relative; margin: 0; overflow: hidden; border-radius: 14px; background: var(--ink-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { position: absolute; left: 12px; bottom: 10px; right: 12px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; color: #eef6f9; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.photo--audit, .photo--system, .photo--proof { aspect-ratio: 4 / 3; }
.photo--gap { min-height: 100%; }
.photo--engage { width: min(360px, 100%); aspect-ratio: 3 / 2; flex: none; }

/* ---------- Cover ---------- */
.slide--cover { --bg: var(--ink); }
.cover-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; opacity: 0.6; }
.scrim { position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(7, 27, 43, 0.97) 0%, rgba(7, 27, 43, 0.84) 44%, rgba(7, 27, 43, 0.42) 100%), linear-gradient(0deg, rgba(7, 27, 43, 0.92), rgba(7, 27, 43, 0) 36%); }
.scrim--close { background: linear-gradient(180deg, rgba(7, 27, 43, 0.9), rgba(7, 27, 43, 0.97)); }
.wrap--cover { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(16px, 3vw, 56px); }
.cover-copy { display: flex; flex-direction: column; gap: clamp(12px, 2vh, 22px); }
.cover-title { font-size: var(--fs-cover); line-height: 0.94; letter-spacing: -0.05em; font-weight: 600; }
.cover-title em { display: inline-block; margin-top: 0.06em; letter-spacing: -0.02em; color: var(--sea-2); }
.lead { font-size: var(--fs-body); color: #cfe0e8; max-width: 44ch; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; }
.facts li { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label); padding: 8px 12px; border: 1px solid rgba(167, 216, 232, 0.4); border-radius: 999px; color: #eef6f9; }
.covered { font-size: var(--fs-label); color: #cfe0e8; }
.prepared { font-size: var(--fs-label); color: #bfd0d9; }
.cover-stage { position: relative; min-height: min(62vh, 560px); width: 100%; }
.cover-stage::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: min(92%, 640px); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(167, 216, 232, 0.22), rgba(167, 216, 232, 0) 62%); pointer-events: none;
}
.plaque-fallback { display: none; position: absolute; inset: 0; place-items: center; }
.plaque-fallback__tile {
  width: min(88%, 620px); aspect-ratio: 4.2 / 1.8; border-radius: 16px; display: grid; place-items: center;
  background: var(--ink-2); border: 10px solid var(--foam); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  padding: 4%;
}
.plaque-fallback__tile img { width: 100%; height: auto; }
.no-webgl .plaque-fallback { display: grid; }

/* ---------- Audit ---------- */
.working { font-size: var(--fs-label); color: var(--txt); padding-top: 12px; border-top: 1px solid var(--rule); }
.findings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 16px); }
.finding {
  display: flex; flex-direction: column; gap: 10px; padding: clamp(16px, 1.6vw, 24px);
  background: var(--card); border: 1px solid var(--rule); border-radius: 14px;
}
.finding p { font-size: var(--fs-label); line-height: 1.5; color: var(--muted); }
.finding p:not(.source) { font-size: calc(var(--fs-label) + 1px); }
.source { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label); letter-spacing: 0.02em; color: var(--accent); margin-top: auto; }
.tag { align-self: flex-start; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; line-height: 1; }
.tag--critical { background: var(--chile); color: #1a0d07; }
.tag--high { background: var(--sea); color: var(--ink); }
.tag--medium { border: 1px solid currentColor; color: var(--accent); background: transparent; }
.tag--low { background: #d9d2c2; color: #1d2b36; }
.finding .card-h { font-size: clamp(22px, 1.1rem + 0.5vw, 28px); }

/* ---------- Gap ---------- */
.gap-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(220px, 0.62fr); gap: clamp(12px, 1.6vw, 22px); align-items: stretch; }
.track { display: flex; flex-direction: column; gap: 12px; padding: clamp(16px, 1.6vw, 26px); border-radius: 14px; border: 1px solid var(--rule); background: var(--card); }
.track--today { border-color: rgba(224, 100, 62, 0.6); }
.track ol { counter-reset: step; display: flex; flex-direction: column; gap: 10px; }
.track li { counter-increment: step; position: relative; padding-left: 40px; font-size: var(--fs-label); color: #eef6f9; line-height: 1.45; }
.track li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; background: rgba(167, 216, 232, 0.16); color: var(--sea-2); }
.track--today li::before { background: rgba(224, 100, 62, 0.2); color: #f4a58a; }
.track--concept li { font-size: calc(var(--fs-label) + 1px); }
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.numbers div { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-top: 2px solid var(--sea); }
.numbers dt { font-size: clamp(30px, 1.6rem + 1.4vw, 52px); line-height: 1; font-weight: 600; letter-spacing: -0.03em; color: var(--sea-2); }
.numbers dd { font-size: var(--fs-label); color: #cfe0e8; line-height: 1.4; }

/* ---------- Flagship mockup ---------- */
.slide--flagship .wrap { gap: clamp(12px, 2vh, 22px); }
.flagship { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(16px, 2vw, 28px); align-items: start; min-height: 0; }
.browser { min-width: 0; border-radius: 14px; overflow: hidden; background: #0b1f2f; border: 1px solid rgba(12, 42, 64, 0.35); box-shadow: 0 24px 48px rgba(7, 27, 43, 0.3); display: flex; flex-direction: column; height: clamp(440px, 60vh, 560px); }
.browser__bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: #123552; }
.browser__dots { display: inline-flex; gap: 6px; }
.browser__dots i { width: 10px; height: 10px; border-radius: 50%; background: #3f6b86; display: block; }
.browser__url { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; color: #cfe0e8; }
.site-tabs { display: flex; gap: 6px; padding: 8px 12px 0; background: #0b1f2f; }
.site-tab { min-height: 40px; padding: 8px 16px; border: 0; border-radius: 10px 10px 0 0; background: #123552; color: #cfe0e8; font-size: 15px; font-weight: 600; cursor: pointer; }
.site-tab[aria-selected="true"] { background: var(--foam); color: #0c2a40; }
.site { flex: 1; min-height: 0; overflow-y: auto; background: var(--foam); color: #0c2a40; overscroll-behavior: contain; }
.site-panel { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.site-panel[hidden] { display: none; }
.site-hero { position: relative; border-radius: 12px; overflow: hidden; min-height: 210px; background: #0c2a40; }
.site-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.site-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 27, 43, 0.9), rgba(7, 27, 43, 0.35)); }
.site-hero__copy { position: relative; z-index: 1; padding: 22px; display: flex; flex-direction: column; gap: 10px; max-width: 80%; color: #eef6f9; height: 100%; justify-content: center; }
.site-hero__title { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: clamp(26px, 1.6rem + 0.6vw, 34px); line-height: 1.05; }
.site-hero__sub { font-size: var(--fs-site); line-height: 1.4; color: #e3eef3; }
.site-hero__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.site-btn { min-height: 42px; padding: 8px 14px; border-radius: 999px; border: 1px solid #0c2a40; background: transparent; color: #0c2a40; font-size: 15px; font-weight: 600; cursor: pointer; }
.site-hero .site-btn { border-color: #eef6f9; color: #eef6f9; }
.site-btn--primary { background: #6eb0c7; border-color: #6eb0c7; color: #071b2b; }
.site-hero .site-btn--primary { background: #6eb0c7; color: #071b2b; border-color: #6eb0c7; }
.site-h { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #1f5a78; }
.week { display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-site); line-height: 1.4; }
.week li { display: flex; gap: 10px; padding: 10px 12px; background: #fffcf5; border-radius: 10px; }
.week span { flex: none; min-width: 64px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 14px; font-weight: 600; color: #1f5a78; }
.site .site-note { color: #3b5264; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid #0c2a40; background: transparent; font-size: 15px; cursor: pointer; }
.chip[aria-pressed="true"] { background: #0c2a40; color: #eef6f9; }
.menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.menu-item { position: relative; min-height: 98px; padding: 12px; border-radius: 12px; border: 1px solid rgba(12, 42, 64, 0.25); background: #fffcf5; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; text-align: left; cursor: pointer; overflow: hidden; }
.menu-item[hidden] { display: none; }
.menu-item__name { font-size: var(--fs-site); font-weight: 600; line-height: 1.25; }
.menu-item__meta { font-size: 14px; color: #3b5264; }
.menu-item__add { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; color: #1f5a78; }
.menu-item[aria-pressed="true"] { background: #0c2a40; color: #eef6f9; border-color: #0c2a40; }
.menu-item[aria-pressed="true"] .menu-item__meta, .menu-item[aria-pressed="true"] .menu-item__add { color: #cfe0e8; }
.menu-item--photo { padding: 0; }
.menu-item--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.menu-item--photo .menu-item__add { position: absolute; left: 8px; bottom: 8px; background: #fffcf5; padding: 4px 8px; border-radius: 999px; }
.basket { font-size: var(--fs-site); font-weight: 600; color: #0c2a40; }
.cater { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
.cater__photo { border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; }
.cater__photo img { width: 100%; height: 100%; object-fit: cover; }
.cater__body { display: flex; flex-direction: column; gap: 12px; }
.pack-set { border: 0; display: flex; flex-direction: column; gap: 8px; padding: 0; min-width: 0; }
.pack-set legend { margin-bottom: 4px; }
.pack { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-site); line-height: 1.4; padding: 10px 12px; border-radius: 10px; background: #fffcf5; cursor: pointer; }
.pack input { margin-top: 5px; width: 18px; height: 18px; flex: none; accent-color: #1f5a78; }
.size-label, .field { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-label); font-weight: 600; }
select { min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid #0c2a40; background: #fffcf5; color: #0c2a40; font-size: 16px; }
.estimate { font-size: var(--fs-site); font-weight: 600; padding: 12px; border-radius: 10px; background: #0c2a40; color: #eef6f9; }
.visit { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 16px; align-items: start; }
.visit__photo { border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; }
.visit__photo img { width: 100%; height: 100%; object-fit: cover; }
.visit__body { display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-site); line-height: 1.45; }
.visit__phone { font-weight: 600; }

/* Phone mockup */
.phone { width: 260px; height: clamp(440px, 60vh, 540px); border-radius: 38px; padding: 12px; background: #071b2b; box-shadow: 0 24px 48px rgba(7, 27, 43, 0.35); }
.phone__screen { height: 100%; border-radius: 28px; background: var(--foam); color: #0c2a40; padding: 22px 18px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.phone__brand { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: #1f5a78; }
.phone__title { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: 30px; line-height: 1.05; }
.phone__cta { align-self: flex-start; padding: 10px 16px; border-radius: 999px; background: #6eb0c7; color: #071b2b; font-size: 16px; font-weight: 600; }
.phone__line { font-size: 16px; line-height: 1.4; padding-top: 10px; border-top: 1px solid rgba(12, 42, 64, 0.18); }
.detail-list { display: none; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.55; }
.detail-list p { color: var(--txt, #0c2a40); }

/* ---------- System ---------- */
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 16px); }
.pillar { display: flex; flex-direction: column; gap: 10px; padding: clamp(16px, 1.5vw, 24px); border-radius: 14px; background: var(--card); border: 1px solid var(--rule); }
.pillar p { font-size: var(--fs-label); line-height: 1.5; color: var(--muted); }
.pillar__n { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 14px; color: var(--sea-2); }
.pillar__on { font-size: var(--fs-label); color: #eef6f9 !important; padding-top: 10px; border-top: 1px solid var(--rule); margin-top: auto; }
.pillar__on strong { color: var(--sea-2); font-weight: 600; }

/* ---------- Proof ---------- */
.quote { display: flex; flex-direction: column; gap: 8px; padding: 14px 18px; border-left: 3px solid var(--deep); background: #fffcf5; border-radius: 0 12px 12px 0; }
.quote p { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: clamp(20px, 1.1rem + 0.5vw, 26px); line-height: 1.25; color: #0c2a40; }
.quote cite { font-style: normal; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label); color: var(--deep); }
.proof-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.compare { position: relative; width: 100%; min-height: 360px; border-radius: 14px; overflow: hidden; background: #0c2a40; color: #eef6f9; --pos: 50%; cursor: ew-resize; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.compare__after, .compare__before { position: absolute; inset: 0; padding: clamp(18px, 2vw, 28px); display: flex; flex-direction: column; gap: 14px; pointer-events: none; }
.compare__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); background: #123552; }
.compare__after { background: #0c2a40; }
.compare__head { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--sea-2); }
.compare__list { display: flex; flex-direction: column; gap: 10px; font-size: var(--fs-site); line-height: 1.4; }
.compare__list li { display: grid; grid-template-columns: minmax(64px, auto) 1fr; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid rgba(167, 216, 232, 0.2); }
.compare__list span { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 14px; color: var(--sea-2); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: #eef6f9; pointer-events: auto; cursor: ew-resize; z-index: 5; }
.compare__handle span { position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; background: var(--sea-2); color: #071b2b; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4); cursor: grab; transition: transform 0.15s ease, background 0.15s ease; }
.compare:active .compare__handle span, .compare.is-dragging .compare__handle span { cursor: grabbing; transform: scale(1.12); background: #bfe5f3; }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0.0001; cursor: ew-resize; z-index: 1; }
.compare__range:focus-visible ~ .compare__handle span { outline: 3px solid #eef6f9; }

/* ---------- Roadmap ---------- */
.phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.phase { display: flex; flex-direction: column; gap: 12px; padding: clamp(18px, 1.8vw, 28px); border-radius: 14px; background: #0c2a40; border: 1px solid var(--rule); }
.phase ul { display: flex; flex-direction: column; gap: 10px; }
.phase li { position: relative; padding-left: 20px; font-size: var(--fs-label); line-height: 1.45; color: #eef6f9; }
.phase li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--sea); }
.phase__owner, .phase__need { font-size: var(--fs-label); line-height: 1.45; color: #cfe0e8; padding-top: 10px; border-top: 1px solid var(--rule); }
.phase__owner { margin-top: auto; }
.phase__owner strong, .phase__need strong { color: var(--sea-2); font-weight: 600; }
.launch-note { font-size: var(--fs-label); color: #cfe0e8; padding: 14px 18px; border-left: 3px solid var(--sea); background: rgba(110, 176, 199, 0.08); border-radius: 0 10px 10px 0; }
.launch-note strong { color: var(--sea-2); }

/* ---------- Engagement ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.tier { position: relative; display: flex; flex-direction: column; gap: 12px; padding: clamp(18px, 1.8vw, 28px); border-radius: 14px; background: var(--card); border: 1px solid var(--rule); }
.tier--rec { border: 2px solid var(--deep); }
.tier--rec .tag { margin-bottom: 4px; }
.tier p { font-size: var(--fs-label); line-height: 1.5; color: var(--muted); }
.tier p:not(.tier__quote) { font-size: calc(var(--fs-label) + 1px); color: var(--txt); }
.tier ul { display: flex; flex-direction: column; gap: 8px; }
.tier li { position: relative; padding-left: 20px; font-size: var(--fs-label); line-height: 1.45; color: var(--txt); }
.tier li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--deep); }
.tier__quote { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--rule); font-weight: 600; color: var(--accent) !important; }

/* ---------- Close ---------- */
.close-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.close-copy { display: flex; flex-direction: column; gap: 16px; }
.reps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 4px 0 8px; }
.rep { display: flex; flex-direction: row; align-items: flex-start; gap: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(12, 42, 64, 0.55); border: 1px solid rgba(167, 216, 232, 0.15); }
.rep__avatar { width: 56px; height: 56px; min-width: 56px; border-radius: 50%; overflow: hidden; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }
.rep__portrait { width: 100%; height: 100%; object-fit: cover; display: block; }
.rep__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rep__name { font-size: 1.1rem; font-weight: 700; line-height: 1.2; color: #fff; margin: 0; }
.rep__role { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label); color: var(--sea-2); }
.rep__msg { font-size: var(--fs-label); line-height: 1.4; color: #d8e6ed; }
.rep__lines { font-size: var(--fs-label); line-height: 1.5; margin-top: 4px; }
.rep__lines a, .office a { font-weight: 600; color: #eef6f9; text-decoration: underline; text-underline-offset: 2px; }
.rep__lines a:hover, .office a:hover { color: var(--sea-2); }
.office { font-size: var(--fs-label); color: #cfe0e8; }
.sched { display: flex; flex-direction: column; gap: 12px; padding: clamp(18px, 1.8vw, 26px); border-radius: 16px; background: rgba(7, 27, 43, 0.92); border: 1px solid var(--rule); }
.rep-pick { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; min-width: 0; }
.rep-pick label { display: flex; gap: 10px; align-items: center; min-height: 40px; font-size: var(--fs-label); cursor: pointer; }
.rep-pick input { width: 18px; height: 18px; accent-color: #6eb0c7; }
.field { color: #eef6f9; }
.draft-out { font-size: var(--fs-label); color: #eef6f9; min-height: 2.8em; }
.draft-link a { font-size: var(--fs-label); font-weight: 600; color: var(--sea-2); }
.signoff { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--rule); }
.signoff p { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; color: #cfe0e8; }
.final-line { position: relative; z-index: 1; width: min(1360px, 100%); margin: 0 auto; padding: 0 var(--pad-x) clamp(20px, 3vh, 40px); font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: clamp(22px, 1.2rem + 0.6vw, 32px); color: var(--sea-2); }

/* ---------- Index overlay ---------- */
.index { position: fixed; inset: 0; z-index: 30; background: rgba(7, 27, 43, 0.97); overflow-y: auto; }
.index[hidden] { display: none; }
.index__inner { width: min(1200px, 100%); margin: 0 auto; padding: clamp(20px, 4vh, 48px) var(--pad-x); display: flex; flex-direction: column; gap: 22px; min-height: 100%; }
.index__head { display: flex; justify-content: space-between; align-items: center; }
.index__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.index__card { display: flex; flex-direction: column; gap: 8px; min-height: 130px; padding: 18px; text-align: left; border-radius: 14px; border: 1px solid rgba(167, 216, 232, 0.35); background: #0c2a40; cursor: pointer; color: #eef6f9; }
.index__card[aria-current="true"] { border-color: var(--sea-2); }
.index__n { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label); color: var(--sea-2); }
.index__t { font-size: var(--fs-card); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
.index__k { font-size: var(--fs-label); color: #cfe0e8; }

/* ---------- Transition layers ---------- */
.fx { position: fixed; inset: 0; pointer-events: none; }
.fx--wave { z-index: 7; transform: translateX(-105%); background: linear-gradient(90deg, rgba(7, 27, 43, 0) 0%, #0c2a40 22%, #123a57 72%, #3f8aa6 100%); }
.fx__crest { position: absolute; top: 0; bottom: 0; right: -6px; width: 12px; background: linear-gradient(180deg, #eaf8fc, #6eb0c7 50%, #eaf8fc); box-shadow: 0 0 40px 12px rgba(167, 216, 232, 0.35); }
.fx--wave.is-reverse .fx__crest { right: auto; left: -6px; }
.fx--wave.is-reverse { background: linear-gradient(270deg, rgba(7, 27, 43, 0) 0%, #0c2a40 22%, #123a57 72%, #3f8aa6 100%); }
.fx--flash { z-index: 8; opacity: 0; background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.95), rgba(167, 216, 232, 0.5) 35%, rgba(7, 27, 43, 0) 70%); }
.gl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 5; pointer-events: none; display: none; }
.no-webgl .gl { display: none !important; }

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  .progress span { transition: none; }
  .cover-stage::before { display: none; }
}

/* ---------- Tablet and below ---------- */
@media (max-width: 1100px) {
  .gap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo--gap { grid-column: 1 / -1; aspect-ratio: 16 / 7; min-height: 0; }
  .flagship { grid-template-columns: minmax(0, 1fr) 220px; }
  .phone { width: 220px; }
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --mast-h: 56px; --chrome-h: 60px; }
  .rail { display: none; }
  .masthead { grid-template-columns: auto 1fr auto; gap: 10px; }
  .masthead__tools { grid-column: 3; }
  .masthead__label { display: none; }
  .co-brand__az { height: 26px; }
  .co-brand__bc { height: 18px; width: auto; }
  .co-brand__x { font-size: 22px; }
  .chrome__note { display: none; }
  .chrome__nav { width: 100%; justify-content: space-between; }
  .chrome__nav .btn { flex: 1; }

  .wrap--cover, .wrap--split, .wrap--close, .visit, .cater, .phases, .tiers, .flagship, .numbers, .pillars, .findings, .reps, .slide-head--split { grid-template-columns: minmax(0, 1fr); }
  .wrap--cover { display: flex; flex-direction: column; justify-content: flex-start; }
  .cover-stage { order: -1; min-height: 40vh; }
  .wrap--split .split-copy { order: 0; }
  .slide-head--split { flex-direction: column; align-items: flex-start; }
  .photo--engage { width: 100%; }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .findings, .pillars { grid-template-columns: minmax(0, 1fr); }
  .gap-grid { grid-template-columns: minmax(0, 1fr); }
  .photo--gap { aspect-ratio: 4 / 3; }
  .browser, .phone { display: none; }
  .detail-list { display: flex; }
  .flagship .detail-list { padding: 4px 0; }
  .compare { min-height: 420px; }
  .index__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .co-brand { gap: 8px; }
  .co-brand__bc { height: 16px; }
  .co-brand__az { height: 22px; }
  .co-brand__x { font-size: 20px; }
  .btn { padding: 10px 14px; }
  .btn span { white-space: nowrap; }
  .numbers { grid-template-columns: minmax(0, 1fr); }
  .index__grid { grid-template-columns: minmax(0, 1fr); }
  .menu-grid { grid-template-columns: minmax(0, 1fr); }
  /* .rep__portrait avatar fixed size */
  .quote p { font-size: 20px; }
}
