@font-face { font-family: "Inter Tight"; src: url(fonts/inter-tight-var.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-serif-italic.woff2) format("woff2"); font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/jetbrains-mono-var.woff2) format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --amber: #ffb347;
  --amber-deep: #4a2c05;
  --ink: #f3f5f7;
  --dim: rgba(243, 245, 247, 0.62);
  --faint: rgba(243, 245, 247, 0.16);
  --bg: #040506;
  --glass: rgba(10, 12, 14, 0.5);
  --sans: "Inter Tight", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(20px, 2.6vw, 44px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; }

/* The film: one fixed canvas the scroll scrubs through. */
.stage { position: fixed; inset: 0; z-index: 0; }
#film { width: 100%; height: 100%; display: block; }
.shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent 38%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 18%);
}
#track { position: relative; z-index: 1; }

/* Top bar */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 22px var(--pad); }
.brand { display: flex; align-items: baseline; gap: 14px; }
.mark { font-weight: 800; letter-spacing: 0.32em; font-size: 15px; }
.tag { font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: 0.02em; }
.links { display: flex; gap: 30px; font-size: 14px; color: var(--dim); }
.links a:hover { color: var(--ink); }
.cta {
  border: 0; cursor: pointer; background: var(--amber); color: #1c1100; font-weight: 650; font-size: 14px;
  padding: 11px 20px; border-radius: 999px; box-shadow: 0 0 0 1px rgba(255, 179, 71, 0.35), 0 8px 30px rgba(255, 179, 71, 0.18);
}
.cta:hover { filter: brightness(1.08); }

/* Glass chip with live context */
.chip {
  position: fixed; z-index: 15; top: 86px; left: var(--pad);
  display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  font-family: var(--mono); font-size: 12px; color: var(--dim);
}
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.chip b { font-weight: 500; color: var(--ink); }

/* Chapter copy: huge, two beats, bottom-left or bottom-right */
.copy { position: fixed; z-index: 10; bottom: 15vh; max-width: min(46vw, 760px); pointer-events: none; opacity: 0; }
.copy.left { left: var(--pad); }
.copy.right { right: calc(var(--pad) + 160px); text-align: right; }
.copy .beat { display: block; white-space: nowrap; }
.copy .n { font-family: var(--mono); font-size: 12px; color: var(--amber); letter-spacing: 0.04em; margin-bottom: 18px; display: block; }
.copy h2 { font-size: clamp(54px, 7.2vw, 132px); line-height: 0.9; font-weight: 800; letter-spacing: -0.045em; }
.copy h2, .outro h2, .sheet h3 { font-family: "Archivo", var(--sans); font-stretch: 125%; font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; }
.copy h2 { font-size: clamp(46px, 6vw, 112px); line-height: 0.88; }
.copy h2 em, .outro h2 em { font-family: inherit; font-style: normal; font-weight: 900; color: transparent; -webkit-text-stroke: 2px var(--amber); text-shadow: 0 0 30px rgba(255, 179, 71, 0.25); }
.copy h2 .w { display: inline-block; will-change: transform, opacity; }
.copy p { margin-top: 22px; font-size: clamp(16px, 1.25vw, 21px); line-height: 1.45; color: var(--dim); max-width: 30em; }
.copy.right p { margin-left: auto; }
.copy.top { bottom: auto; top: 19vh; max-width: min(30vw, 520px); }
.copy.top h2 { font-size: clamp(44px, 5vw, 92px); }

/* Progress rail */
.rail { position: fixed; z-index: 15; right: var(--pad); top: 50%; transform: translateY(-50%); list-style: none; display: grid; gap: 18px; }
.rail li { display: flex; align-items: center; justify-content: flex-end; gap: 12px; font-family: var(--mono); font-size: 11px; color: rgba(243, 245, 247, 0.34); transition: color 0.3s; }
.rail li::after { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: width 0.3s; }
.rail li.on { color: var(--ink); }
.rail li.on::after { width: 34px; background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.rail li.done { color: rgba(243, 245, 247, 0.55); }

/* Booking bar */
.book {
  position: fixed; z-index: 15; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; align-items: stretch; gap: 4px; padding: 6px; border-radius: 999px;
  background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
}
.book label { display: grid; padding: 8px 22px 8px 20px; border-right: 1px solid var(--faint); }
.book label span { font-family: var(--mono); font-size: 10px; color: var(--dim); }
.book select { appearance: none; background: none; border: 0; font-size: 14px; font-weight: 550; cursor: pointer; padding-right: 4px; }
.book select option { background: #111; }
.book button { border: 0; cursor: pointer; margin-left: 4px; padding: 0 24px; border-radius: 999px; background: var(--amber); color: #1c1100; font-weight: 650; font-size: 14px; }
.book button span { margin-left: 6px; }

.hint { position: fixed; z-index: 15; left: 50%; bottom: 112px; transform: translateX(-50%); font-family: var(--mono); font-size: 12px; color: var(--dim); display: flex; gap: 10px; align-items: center; }
.hint span { color: var(--amber); }

/* Ending */
.outro { position: relative; z-index: 30; min-height: 100vh; background: var(--bg); display: grid; place-content: center; justify-items: center; gap: 34px; text-align: center; padding: 12vh var(--pad); border-top: 1px solid var(--faint); }
.outro .kicker { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.outro h2 { font-size: clamp(48px, 6.4vw, 118px); line-height: 0.92; font-weight: 800; letter-spacing: -0.045em; max-width: 14ch; }
.outro h2 em { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; color: var(--amber); }
.outro h2 .beat { display: block; white-space: nowrap; }
.outro h2 { max-width: none; }
.cta.big { font-size: 17px; padding: 17px 34px; }
.concept { font-size: 13px; color: var(--dim); max-width: 46ch; line-height: 1.6; }

/* Booking panel (looks-only concept) */
.sheet {
  position: fixed; z-index: 35; top: 12px; right: 12px; bottom: 12px; width: min(440px, calc(100vw - 24px));
  display: flex; flex-direction: column; padding: 26px 26px 22px; border-radius: 22px; overflow: hidden;
  background: rgba(8, 10, 12, 0.8); border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(26px) saturate(1.5); -webkit-backdrop-filter: blur(26px) saturate(1.5);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  transform: translateX(calc(100% + 24px)); transition: transform 0.55s cubic-bezier(0.2, 0.9, 0.2, 1);
}
.sheet.open { transform: none; }
.sheet-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.sheet .kicker { font-family: var(--mono); font-size: 11px; color: var(--dim); margin-bottom: 6px; }
.sheet h3 { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.sheet .x { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--faint); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 13px; color: var(--dim); }
.form { display: grid; gap: 18px; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px; margin: -2px; transition: opacity 0.3s; }
.sheet { visibility: hidden; transition: transform 0.55s cubic-bezier(0.2, 0.9, 0.2, 1), visibility 0s linear 0.55s; }
.sheet.open { visibility: visible; transition-delay: 0s; }
.cta.hover { filter: brightness(1.08); }
.cta.press { filter: brightness(0.86); }
.confirm.hover { filter: brightness(1.06); }
@media (max-height: 720px) { .sheet h3 { font-size: 24px; } .svc span { display: none; } .form { gap: 12px; } }
.sheet h4 { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--dim); margin-bottom: 10px; }
.sheet h4 b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; color: #1c1100; background: var(--amber); }
.opt { cursor: pointer; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px; color: var(--ink); transition: border-color 0.2s, background 0.2s, box-shadow 0.2s; }
.opt:hover, .opt.hover { border-color: rgba(255, 179, 71, 0.45); background: rgba(255, 179, 71, 0.06); }
.opt.on { border-color: var(--amber); background: rgba(255, 179, 71, 0.12); box-shadow: 0 0 0 1px var(--amber), 0 0 26px rgba(255, 179, 71, 0.22); }
.cars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.car { display: grid; justify-items: center; gap: 4px; padding: 10px 4px 9px; font-size: 12px; font-weight: 600; }
.car svg { width: 54px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: 0.85; }
.car.on svg { stroke: var(--amber); opacity: 1; }
.services { display: grid; gap: 8px; }
.svc { position: relative; display: grid; gap: 3px; text-align: left; padding: 12px 44px 12px 14px; }
.svc strong { font-size: 15px; }
.svc span { font-size: 12.5px; color: var(--dim); }
.svc i { position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.3); }
.svc.on i { border-color: var(--amber); background: var(--amber); box-shadow: inset 0 0 0 4px #2e1d05; }
.days, .slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slots { margin-top: 8px; }
.day, .slot { padding: 10px 0; font-size: 13.5px; font-weight: 600; text-align: center; }
.slot:disabled { opacity: 0.32; text-decoration: line-through; cursor: not-allowed; }
.confirm { margin-top: 4px; border: 0; border-radius: 14px; padding: 15px; font-size: 15px; font-weight: 700; cursor: pointer; background: var(--amber); color: #1c1100; box-shadow: 0 10px 30px rgba(255, 179, 71, 0.25); transition: opacity 0.2s, filter 0.2s; }
.confirm:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; }
.confirm.press, .opt.press { filter: brightness(0.86); }
.sheet .fine { font-size: 12px; color: var(--dim); text-align: center; }
.done { position: absolute; inset: 88px 26px 26px; display: grid; align-content: center; justify-items: center; gap: 12px; text-align: center; opacity: 0; pointer-events: none; transition: opacity 0.35s; }
.sheet.is-done .form { opacity: 0; pointer-events: none; }
.sheet.is-done .done { opacity: 1; pointer-events: auto; }
.done h3 { font-size: 40px; }
.done .summary { font-size: 17px; font-weight: 600; color: var(--amber); }
.done .cta { margin-top: 10px; }
.tick { width: 92px; height: 92px; fill: none; stroke: var(--amber); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 14px rgba(255, 179, 71, 0.5)); }
.tick circle { stroke-dasharray: 183; stroke-dashoffset: var(--ring, 183); }
.tick path { stroke-dasharray: 40; stroke-dashoffset: var(--mark, 40); }
.sheet.is-done:not(.scripted) .tick circle { --ring: 0; transition: stroke-dashoffset 0.6s ease-out 0.1s; }
.sheet.is-done:not(.scripted) .tick path { --mark: 0; transition: stroke-dashoffset 0.4s ease-out 0.55s; }

/* Instant text-back, phone-notification style */
.note {
  position: fixed; z-index: 45; top: 14px; left: 50%; width: min(380px, calc(100vw - 24px));
  display: flex; gap: 12px; padding: 13px 15px; border-radius: 20px;
  background: rgba(28, 30, 33, 0.78); border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -140%); opacity: 0; transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.3s;
}
.note.on { transform: translate(-50%, 0); opacity: 1; }
.note .app { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--amber); color: #1c1100; font-weight: 800; font-size: 18px; }
.note .body { flex: 1; min-width: 0; }
.note .top { display: flex; justify-content: space-between; font-size: 13px; }
.note .top span { color: var(--dim); font-size: 12px; }
.note .msg { font-size: 14px; line-height: 1.4; margin-top: 2px; color: rgba(243, 245, 247, 0.92); }
.note .typing { display: none; gap: 4px; margin-top: 7px; }
.note.is-typing .typing { display: flex; }
.note.is-typing .msg { display: none; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: rgba(243, 245, 247, 0.6); }
.note:not(.scripted) .typing i { animation: dot 1s infinite; }
.note:not(.scripted) .typing i:nth-child(2) { animation-delay: 0.15s; }
.note:not(.scripted) .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 60%, 100% { opacity: 0.35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

/* Scripted cursor (filming mode only) */
.cursor { position: fixed; z-index: 60; left: 0; top: 0; width: 26px; height: 30px; pointer-events: none; opacity: 0; will-change: transform; }
.cursor svg { position: absolute; inset: 0; width: 26px; height: 30px; fill: #fff; stroke: #0a0a0a; stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45)); transform-origin: 3px 3px; transform: scale(var(--press, 1)); }
.cursor .ring { position: absolute; left: 3px; top: 3px; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 2px solid var(--amber); opacity: 0; transform: scale(0.3); }

/* Scripted mode: the film clock drives every animation, so nothing may run on its own timer. */
.scripted, .scripted * { transition: none !important; }

.loader { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: grid; place-content: center; justify-items: center; gap: 22px; transition: opacity 0.6s; }
.loader .bar { width: 160px; height: 1px; background: var(--faint); overflow: hidden; }
.loader .bar i { display: block; height: 100%; width: 0; background: var(--amber); transition: width 0.2s; }
.loader.gone { opacity: 0; pointer-events: none; }

/* Play the film: glass pill, bottom left, with a progress line along its bottom edge */
.play {
  position: fixed; z-index: 16; left: var(--pad); bottom: 26px; min-width: 158px;
  display: flex; align-items: center; gap: 12px; padding: 12px 20px 12px 14px; border-radius: 999px; cursor: pointer;
  background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.14); color: var(--ink); font-size: 14px; font-weight: 600;
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); overflow: hidden;
}
.play:hover { border-color: rgba(255, 179, 71, 0.55); }
.play:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.play .ico { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 18px rgba(255, 179, 71, 0.45); flex: none; }
.play .ico::before, .play .ico::after { content: ""; position: absolute; background: #1c1100; }
/* play: a triangle */
.play[data-state="idle"] .ico::before, .play[data-state="paused"] .ico::before { left: 11px; top: 9px; width: 11px; height: 12px; clip-path: polygon(0 0, 100% 50%, 0 100%); }
/* pause: two bars */
.play[data-state="playing"] .ico::before { left: 10px; top: 9px; width: 3.5px; height: 12px; border-radius: 1px; }
.play[data-state="playing"] .ico::after { left: 16.5px; top: 9px; width: 3.5px; height: 12px; border-radius: 1px; }
/* replay: a ring with a gap and an arrowhead */
.play[data-state="ended"] .ico::before { left: 8px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: none; border: 2.5px solid #1c1100; border-top-color: transparent; box-sizing: border-box; }
.play[data-state="ended"] .ico::after { left: 15px; top: 6px; width: 6px; height: 6px; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.play .prog { position: absolute; left: 22px; right: 22px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--amber); transform-origin: left; transform: scaleX(0); opacity: 0.85; }

/* Filming mode: nothing on screen that isn't the site itself. */
.demo, .demo * { cursor: none !important; }
.demo * { pointer-events: none !important; } /* the hidden real mouse must not hover anything during a take */
.note { pointer-events: none; }
.demo .hint, .demo .play { display: none; }

@media (max-width: 860px) {
  .links, .rail, .tag { display: none; }
  .copy, .copy.right { left: var(--pad); right: var(--pad); max-width: none; text-align: left; bottom: 20vh; }
  .copy.right p { margin-left: 0; }
  .book label { display: none; }
  .book button { padding: 14px 26px; }
  .play { bottom: 92px; }
  .hint { bottom: 160px; }
  .copy, .copy.right { bottom: max(20vh, 172px); }
}
