:root {
  --ink: #f5f7f7;
  --black: #020814;
  --muted: rgba(245,247,247,.68);
  --line: rgba(245,247,247,.23);
  --cyan: #40c4ff;
  --ease: cubic-bezier(.19,1,.22,1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--black); }
body { margin: 0; background: var(--black); color: var(--ink); font-family: Manrope, Arial, sans-serif; font-size: 16px; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: white; color: black; padding: .8rem 1rem; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid #40c4ff; outline-offset: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.site-header { position: fixed; z-index: 50; top: 0; left: 0; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: .625rem 2rem; border-bottom: 0; background: linear-gradient(180deg, rgba(3,6,8,.46), transparent); }
.wordmark { display: inline-flex; align-items: center; gap: .65rem; justify-self: start; font-size: .78rem; font-weight: 600; letter-spacing: .12em; }
.mark-zero { opacity: .55; }
.mark { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; font-size: .78rem; font-weight: 500; letter-spacing: 0; }
nav { display: flex; gap: 2.5rem; font-family: Manrope, Arial, sans-serif; text-transform: uppercase; font-size: .75rem; letter-spacing: .05em; }
nav a, footer a { position: relative; }
nav a::after, footer > a:last-child::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.3rem; border-bottom: 1px solid currentColor; transition: right .5s var(--ease); }
nav a:hover::after, nav a:focus-visible::after, footer > a:last-child:hover::after { right: 0; }
.header-cta { justify-self: end; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; min-height: 44px; padding: .72rem 1.05rem; font-family: Manrope, Arial, sans-serif; font-size: .75rem; text-transform: uppercase; transition: background .35s, color .35s; }
.header-cta:hover { background: white; color: black; }

.scroll-story { height: 560vh; background: var(--black); }
.story-stage { position: sticky; top: 0; height: 100dvh; overflow: hidden; isolation: isolate; }
#product-canvas, .canvas-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#product-canvas { z-index: -3; }
.canvas-fallback { z-index: -4; }
.canvas-ready + .canvas-fallback { visibility: hidden; }
.media-scrim { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(2,8,20,.7) 0%, rgba(2,8,20,.08) 42%, rgba(2,8,20,.1) 70%, rgba(2,8,20,.55) 100%), linear-gradient(0deg, rgba(2,8,20,.8), transparent 50%); pointer-events: none; }
.media-scrim::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.14) .55px, transparent .55px); background-size: 4px 4px; opacity: .13; }
.story-topline { position: absolute; top: 5.5rem; left: 2rem; right: 2rem; display: grid; grid-template-columns: 1fr; font-family: Manrope, Arial, sans-serif; font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; color: #fff; text-shadow: 0 1px 5px rgba(0,0,0,.95); }
.story-topline span { justify-self: end; }
.story-topline span:last-child { justify-self: end; }
.chapter { position: absolute; left: 2rem; right: 2rem; bottom: 4.2rem; max-width: 70rem; opacity: 0; transform: translate3d(0, 42px, 0); pointer-events: none; will-change: opacity, transform; }
.chapter.is-active, .chapter.is-current { opacity: 1; transform: translate3d(0, 0, 0); }
.chapter.is-current { pointer-events: auto; }
.chapter-right { left: auto; right: 3.5rem; max-width: 44rem; text-align: right; }
.chapter-right .chapter-body { margin-left: auto; }
.eyebrow { margin: 0 0 1.2rem; font-family: Manrope, Arial, sans-serif; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.chapter h1, .chapter h2 { margin: 0; font-size: clamp(3.6rem, 7.6vw, 8.7rem); line-height: .88; font-weight: 300; letter-spacing: -.075em; text-wrap: balance; }
.chapter-body { width: min(31rem, 90%); margin: 1.8rem 0 0; color: rgba(255,255,255,.84); font-size: 1rem; line-height: 1.55; }
.feature-line { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; font-family: Manrope, Arial, sans-serif; font-size: .75rem; text-transform: uppercase; }
.feature-line span { display: flex; gap: .7rem; padding-top: .7rem; border-top: 1px solid rgba(255,255,255,.5); min-width: 12rem; }
.feature-line b { color: var(--cyan); font-weight: 400; }
.pill-button { display: inline-flex; align-items: center; gap: 2rem; min-height: 48px; margin-top: 2rem; padding: .75rem 1rem .75rem 1.25rem; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; font-family: Manrope, Arial, sans-serif; font-size: .75rem; text-transform: uppercase; backdrop-filter: blur(8px); transition: background .35s, color .35s; }
.pill-button:hover { background: white; color: black; }
.progress-rail { position: absolute; right: 2rem; top: 8.5rem; bottom: 4rem; width: 1px; background: rgba(255,255,255,.18); }
.progress-fill { display: block; width: 1px; height: 0; background: white; }
.scroll-cue { position: absolute; bottom: 1.25rem; right: 3.5rem; display: flex; align-items: center; gap: .8rem; font-family: Manrope, Arial, sans-serif; font-size: .75rem; text-transform: uppercase; }
.scroll-cue i { display: block; width: 5rem; height: 1px; background: rgba(255,255,255,.5); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: white; transform: translateX(-100%); animation: scan 2s ease-in-out infinite; }
@keyframes scan { 50%,100% { transform: translateX(100%); } }

.manifesto { background: #d9e4e8; color: #0b1114; min-height: 100dvh; padding: 7rem 2rem 5rem; display: grid; grid-template-columns: 1fr 4fr 1.3fr; gap: 3rem; align-items: start; }
.manifesto-index { font-family: Manrope, Arial, sans-serif; font-size: .75rem; line-height: 1.6; text-transform: uppercase; }
.manifesto h2 { margin: 12vh 0 0; font-size: clamp(4rem, 9vw, 10rem); line-height: .87; letter-spacing: -.075em; font-weight: 300; }
.manifesto h2 em { font-family: Georgia, serif; font-weight: 400; }
.manifesto-copy { align-self: end; padding-bottom: 2rem; font-size: .95rem; line-height: 1.6; }
.manifesto-copy p + p { margin-top: 1.5rem; }

.product-plaque { min-height: 100dvh; position: relative; isolation: isolate; display: flex; align-items: flex-end; padding: 7rem 2rem 3rem; overflow: hidden; }
.product-plaque > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.plaque-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(2,8,20,.92), rgba(2,8,20,.35) 55%, rgba(2,8,20,.2)), linear-gradient(90deg, rgba(2,8,20,.55), transparent 55%); z-index: -1; }
.plaque-header { position: absolute; top: 6rem; left: 2rem; right: 2rem; display: flex; justify-content: space-between; font-family: Manrope, Arial, sans-serif; font-size: .75rem; text-transform: uppercase; border-top: 1px solid rgba(255,255,255,.45); padding-top: .8rem; }
.plaque-content h2 { margin: 0; font-size: clamp(5rem, 15vw, 15rem); line-height: .78; letter-spacing: -.08em; font-weight: 300; }
.plaque-content > p:not(.eyebrow,.form-status,.form-note) { max-width: 34rem; font-size: 1rem; line-height: 1.55; color: rgba(255,255,255,.78); }
.plaque-content h2 { text-transform: uppercase; }
.waitlist { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.5rem; }
.waitlist input { min-height: 50px; width: min(22rem, 100%); padding: 0 1.25rem; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; background: rgba(2,8,20,.45); color: #fff; font: inherit; font-size: .95rem; backdrop-filter: blur(8px); }
.waitlist input::placeholder { color: rgba(255,255,255,.5); }
.waitlist input:focus { outline: none; border-color: var(--cyan); }
.waitlist .reserve-button { margin-top: 0; }
.reserve-button:disabled { cursor: default; transform: none; background: #bfe9ff; }
.reserve-button { min-height: 50px; margin-top: 1rem; border: 0; border-radius: 999px; background: white; color: black; padding: .8rem 1rem .8rem 1.25rem; display: inline-flex; gap: 3rem; align-items: center; cursor: pointer; font-family: Manrope, Arial, sans-serif; font-size: .75rem; text-transform: uppercase; transition: transform .3s var(--ease), background .3s; }
.reserve-button:hover { transform: translateY(-3px); background: #bfe9ff; }
.form-note { margin: .25rem 0 0; color: rgba(255,255,255,.7); text-transform: uppercase; }
.form-note a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.5); }
.form-note a:hover { color: var(--cyan); border-color: var(--cyan); }
.form-status { min-height: 1.4rem; font-family: Manrope, Arial, sans-serif; font-size: .75rem; }
footer { min-height: 28vh; padding: 2rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; border-top: 1px solid rgba(255,255,255,.12); font-family: Manrope, Arial, sans-serif; font-size: .75rem; text-transform: uppercase; }
footer p { margin: 0; justify-self: center; color: rgba(255,255,255,.5); }
footer > a:last-child { justify-self: end; }

/* Orbit Deck (HorizonX Orbit Deck, adapted for Reliquios Food).
   Without JavaScript or with reduced motion the cards are a static grid;
   app.js adds .is-live to turn them into the 3D carousel. */
.system { position: relative; padding: 7rem 2rem 5rem; background: var(--black); scroll-margin-top: 0; }
.system-header { display: flex; justify-content: space-between; gap: 1rem; max-width: 1280px; margin: 0 auto 2.5rem; padding-top: .8rem; border-top: 1px solid rgba(255,255,255,.45); font-family: Manrope, Arial, sans-serif; font-size: .75rem; text-transform: uppercase; }
.orbit-deck { --surface: #0b1324; --primary: #071a3d; --secondary: #0f6fff; --radius: 28; --u: 1px; --move: .9s; position: relative; max-width: 1280px; margin: 0 auto; color: #fff; outline: none; }
.orbit-deck:focus-visible { box-shadow: inset 0 0 0 2px var(--cyan); }
.od-track { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1rem; }
.od-card { position: relative; aspect-ratio: 440 / 580; overflow: hidden; isolation: isolate; border-radius: calc(var(--radius) * var(--u)); background: linear-gradient(160deg, #0f2a55, var(--surface) 70%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.09); }
.od-photo { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; }
/* Darkens the top (icon row) lightly and the lower half strongly, so white text stays readable on light photos. */
.od-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(2,8,20,.55) 0%, rgba(2,8,20,.08) 24%, rgba(2,8,20,.35) 42%, rgba(2,8,20,.88) 60%, rgba(2,8,20,.95) 100%); pointer-events: none; }
.od-glow { display: none; }
.od-content { position: absolute; inset: calc(40 * var(--u)) calc(36 * var(--u)) calc(40 * var(--u)); display: flex; flex-direction: column; justify-content: space-between; }
.od-top { display: flex; align-items: center; justify-content: space-between; }
.od-icon { display: grid; place-items: center; width: calc(64 * var(--u)); height: calc(64 * var(--u)); border-radius: 50%; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.od-icon svg { width: calc(28 * var(--u)); height: calc(28 * var(--u)); fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.od-index, .od-label, .od-chip { font-family: Manrope, Arial, sans-serif; text-transform: uppercase; }
.od-index { font-size: calc(13 * var(--u)); letter-spacing: .12em; color: rgba(255,255,255,.6); }
.od-label { margin: 0 0 calc(14 * var(--u)); font-size: calc(12 * var(--u)); letter-spacing: .12em; color: rgba(255,255,255,.72); }
.od-title { margin: 0 0 calc(18 * var(--u)); font-size: calc(46 * var(--u)); font-weight: 300; line-height: .95; letter-spacing: -.06em; }
.od-title span { display: block; }
.od-title-accent { color: #bfe9ff; }
.od-body { margin: 0 0 calc(24 * var(--u)); font-size: calc(16 * var(--u)); line-height: 1.55; color: rgba(255,255,255,.84); }
.od-chip { display: inline-flex; align-items: center; gap: calc(8 * var(--u)); padding: calc(8 * var(--u)) calc(14 * var(--u)); border-radius: 999px; background: rgba(2,8,20,.42); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); font-size: calc(11 * var(--u)); letter-spacing: .06em; }
.od-chip::before { content: ""; width: calc(6 * var(--u)); height: calc(6 * var(--u)); border-radius: 50%; background: var(--cyan); box-shadow: 0 0 calc(10 * var(--u)) var(--cyan); }
.od-dots { display: none; }

/* Live carousel: a 1280 × 800 stage scaled to its width (1 design px = --u). */
.orbit-deck.is-live { --radius: 70; --design-w: 1280; --u: calc(100cqw / var(--design-w)); width: min(100%, 1280px); aspect-ratio: 1280 / 800; container-type: inline-size; overflow: hidden; border-radius: 28px; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.is-live .od-deck { position: absolute; inset: 0; perspective: calc(1700 * var(--u)); perspective-origin: 50% 46%; cursor: grab; }
.is-live.is-dragging .od-deck { cursor: grabbing; }
/* The track sits in front of the side cards in 3D, so only the cards take clicks. */
.is-live .od-track { display: block; position: absolute; inset: 0; pointer-events: none; transform-style: preserve-3d; transform: translateX(var(--drag, 0px)); transition: transform .5s var(--ease); }
.is-live.is-dragging .od-track { transition: none; }
.is-live .od-card { --w: 440; --h: 580; position: absolute; left: calc(50% - var(--w) / 2 * var(--u)); top: calc(46% - var(--h) / 2 * var(--u)); width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u)); min-height: 0; margin: 0; pointer-events: auto; background: var(--surface); transform-origin: 50% 50%; backface-visibility: hidden; transition: transform var(--move) var(--ease), opacity var(--move) var(--ease), filter var(--move) var(--ease); will-change: transform; }
.is-live .od-content { inset: calc(48 * var(--u)) calc(44 * var(--u)) calc(50 * var(--u)); }
.is-live .od-card[data-slot="center"] { z-index: 3; transform: translate3d(0, 0, 0) rotateY(0deg); }
.is-live .od-card[data-slot="left"] { z-index: 2; transform: translate3d(calc(-470 * var(--u)), 0, calc(-300 * var(--u))) rotateY(38deg); filter: brightness(.72); cursor: pointer; }
.is-live .od-card[data-slot="right"] { z-index: 2; transform: translate3d(calc(470 * var(--u)), 0, calc(-300 * var(--u))) rotateY(-38deg); filter: brightness(.72); cursor: pointer; }
.is-live .od-card[data-slot="back"] { z-index: 1; transform: translate3d(0, 0, calc(-900 * var(--u))); opacity: 0; pointer-events: none; }
.is-live.is-intro .od-card { transform: translate3d(0, calc(40 * var(--u)), calc(-420 * var(--u))); opacity: 0; }
.is-live.is-intro .od-card[data-slot="center"] { transform: translate3d(0, calc(40 * var(--u)), calc(-120 * var(--u))); }
.is-live .od-glow { display: block; position: absolute; left: 50%; top: 50%; width: 190%; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 0deg, var(--secondary) 0deg, var(--cyan) 60deg, var(--primary) 140deg, var(--surface) 210deg, #1a4fd6 290deg, var(--secondary) 360deg); filter: blur(calc(48 * var(--u))); transform: translate(-50%, -50%) rotate(var(--spin, 0deg)); opacity: 0; mix-blend-mode: soft-light; z-index: -2; transition: opacity var(--move) var(--ease); }
.is-live .od-card[data-slot="center"] .od-glow { opacity: 1; }
.is-live .od-title { font-size: calc(44 * var(--u)); }
.is-live .od-dots { position: absolute; left: 50%; bottom: calc(52 * var(--u)); z-index: 5; display: flex; align-items: center; gap: calc(10 * var(--u)); padding: calc(11 * var(--u)) calc(14 * var(--u)); border-radius: 999px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); transform: translateX(-50%); }
.od-dot { position: relative; width: calc(10 * var(--u)); height: calc(10 * var(--u)); min-width: 6px; min-height: 6px; padding: 0; border: 0; border-radius: 999px; background: rgba(184,194,209,.45); cursor: pointer; transition: width .45s var(--ease), background-color .45s var(--ease); }
.od-dot::before { content: ""; position: absolute; inset: -8px -5px; }
.od-dot[aria-current="true"] { width: calc(28 * var(--u)); background: #fff; }

/* Typography: one font (Manrope) for the whole page, three styles.
   Labels, menu and buttons: 500, 12px, uppercase, 0.08em. Headings: 300, -0.075em.
   Body: 400, 16px, line-height 1.55. */
nav, .story-topline, .eyebrow, .header-cta, .pill-button, .reserve-button, .form-status, footer,
.system-header, .plaque-header, .scroll-cue, .form-note { font-family: Manrope, Arial, sans-serif; font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.od-label, .od-index, .od-chip { font-family: Manrope, Arial, sans-serif; font-size: calc(12 * var(--u)); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.chapter h1, .chapter h2, .od-title, .plaque-content h2 { font-family: Manrope, Arial, sans-serif; font-weight: 300; letter-spacing: -.075em; }
.chapter-body, .od-body, .plaque-content > p:not(.eyebrow, .form-status, .form-note) { font-family: Manrope, Arial, sans-serif; font-weight: 400; line-height: 1.55; }
.wordmark { font-family: Manrope, Arial, sans-serif; }

@media (max-width: 767px) {
  .site-header { grid-template-columns: 1fr auto; padding: .5rem 1rem; }
  nav { display: none; }
  .header-cta { padding: .7rem .85rem; }
  .story-topline { top: 5rem; left: 1rem; right: 1rem; }
  .chapter, .chapter-right { left: 1rem; right: 1rem; bottom: 5rem; text-align: left; }
  .chapter-right .chapter-body { margin-left: 0; }
  .chapter h1, .chapter h2 { font-size: clamp(3.2rem, 16vw, 5.4rem); }
  .chapter-body { width: 90%; }
  .feature-line { gap: .5rem; }
  .feature-line span { min-width: 46%; font-size: .75rem; }
  .progress-rail { right: 1rem; top: 7rem; bottom: 5rem; }
  .scroll-cue { right: 1rem; bottom: 1.1rem; }
  .manifesto { padding: 5rem 1rem 3rem; display: block; }
  .manifesto h2 { margin-top: 18vh; }
  .manifesto-copy { margin: 20vh 0 0 auto; max-width: 20rem; }
  .product-plaque { padding: 6rem 1rem 2rem; min-height: 100dvh; }
  .product-plaque > img { object-position: 52% center; }
  .plaque-header { left: 1rem; right: 1rem; top: 5rem; }
  .plaque-content h2 { font-size: 16.5vw; }
  .system { padding: 5rem 1rem 3rem; }
  .system-header span:last-child { display: none; }
  /* Phones: a narrower stage so the card text stays readable. */
  .orbit-deck.is-live { --design-w: 460; aspect-ratio: 460 / 700; border-radius: 20px; }
  .is-live .od-dots { bottom: calc(40 * var(--u)); }
  footer { min-height: 35vh; padding: 1.5rem 1rem; grid-template-columns: 1fr auto; }
  footer p { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .scroll-story { height: auto; }
  .story-stage { position: relative; min-height: 100dvh; }
  #product-canvas { display: none; }
  .canvas-fallback { visibility: visible !important; }
  /* Every chapter stays readable: stacked over the poster instead of scroll-driven. */
  .story-stage { display: flex; flex-direction: column; justify-content: flex-end; gap: 4rem; padding: 9rem 2rem 4rem; height: auto; }
  .chapter, .chapter-right { position: relative; left: auto; right: auto; bottom: auto; opacity: 1 !important; transform: none !important; pointer-events: auto; }
  .chapter-right { align-self: flex-end; }
  .progress-rail, .scroll-cue { display: none; }
}
