/* Nolabel Immersive landing prototype, v4. Identity: BLACK AND WHITE (Amit, 1 Nov 2026; Ember dropped).
   Type: Fraunces, self-hosted (OFL). The header and the sound control are styled in chrome.css. */

@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/Fraunces-VF.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/Fraunces-Italic-VF.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --teal: #10C790;
  --orange: #FF8A3D;
  --pink: #FF4D6D;
  --blue: #3B82F6;
  --font: 'Fraunces', Georgia, 'Times New Roman', serif;
  --header-h: 64px;
  --progress-h: 28px;
}
:root[data-theme="dark"] {
  --ground: #000000;
  --surface: #0B0B0B;
  --text: #FFFFFF;
  --muted: #9A9A9A;
  --line: #7A7A7A;
  --hairline: rgba(255, 255, 255, .16);
  --chip: rgba(255, 255, 255, .06);
  --tint-strength: 9%;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --ground: #FFFFFF;
  --surface: #F4F4F4;
  --text: #000000;
  --muted: #6B6B6B;
  --line: #8A8A8A;
  --hairline: rgba(0, 0, 0, .14);
  --chip: rgba(0, 0, 0, .04);
  --tint-strength: 6%;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--ground); color: var(--text); font-family: var(--font); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body { min-height: 100svh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 4px; }
img { display: block; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:root:not(.is-ready) .caption { opacity: 0; }

/* ── Hero: copy left, the space right; stacked on phones ─────────────────
   The background is black or white; while a part is in focus it takes a
   tinge of that part's colour (--tint, set by the presentation), then returns. */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(300px, 38%) 1fr;
  grid-template-rows: 1fr var(--progress-h);
  grid-template-areas: "copy stage" "progress progress";
  padding-top: var(--header-h);
  --tint: var(--ground); --tint-pct: 0%;
  background: color-mix(in srgb, var(--tint) var(--tint-pct), var(--ground));
  transition: background 1.6s ease;
}
.hero-copy { grid-area: copy; align-self: center; padding: 24px 32px 48px 40px; }
.hero-label { margin: 0 0 14px; font-size: 12px; letter-spacing: .06em; color: var(--muted); font-variation-settings: "opsz" 12; }
.hero-line {
  margin: 0 0 16px;
  font-size: clamp(34px, 3.5vw, 54px);
  line-height: 1.02;
  font-weight: 340;
  letter-spacing: -.012em;
  font-variation-settings: "opsz" 144, "SOFT" 20;
}
.hero-para { margin: 0; max-width: 34ch; font-size: 16px; line-height: 1.55; color: var(--muted); font-variation-settings: "opsz" 16; }
.hero-stage { grid-area: stage; position: relative; min-height: 0; display: flex; flex-direction: column; }
.globe { position: relative; flex: 1 1 auto; min-height: 320px; }

/* Captions: below the space's own 10% clearance band, never under a label. */
.caption {
  flex: 0 0 auto;
  min-height: 92px;
  padding: 6px 24px 10px;
  text-align: center;
  opacity: 0; transform: translateY(6px);
  transition: opacity .9s ease, transform .9s ease;
}
.caption.is-in { opacity: 1; transform: none; }
.caption-line { margin: 0; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.3; font-variation-settings: "opsz" 36; }
.caption-sub { margin: 4px 0 0; font-size: 13px; color: var(--muted); font-variation-settings: "opsz" 14; }
.scroll-cue {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px; font-size: 13px; color: var(--muted);
  opacity: 0; transform: translateY(-4px); transition: opacity .8s ease, transform .8s ease;
  pointer-events: none;
}
.scroll-cue.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.scroll-cue svg { animation: cue-bob 2.4s ease-in-out infinite; }
@keyframes cue-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
.scroll-cue:hover { color: var(--text); }

/* The ambient pre-roll (v3): only the hero text, the space and the Play button; the caption and the walk's line wait. */
.hero.is-ambient .caption, .hero.is-ambient .progress { opacity: 0; pointer-events: none; }
.hero.is-ambient .progress { transition: opacity .6s ease; }

/* ── The walk: a thin draggable line ─────────────────────────────────────── */
.progress { grid-area: progress; position: relative; align-self: end; height: var(--progress-h); cursor: ew-resize; touch-action: none; }
.progress::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--hairline); }
.progress::after {
  content: ""; position: absolute; left: 0; top: calc(50% - .5px); height: 2px;
  width: calc(var(--p, 0) * 100%); background: var(--text); opacity: .7;
}
.progress .tick { position: absolute; top: calc(50% - 2px); left: calc(var(--at) * 100%); width: 1px; height: 5px; background: var(--line); opacity: .5; }
.progress .knob { position: absolute; top: 50%; left: calc(var(--p, 0) * 100%); width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--text); opacity: 0; transition: opacity .2s; }
.progress:hover .knob, .progress.is-scrubbing .knob, .progress:focus-visible .knob { opacity: 1; }

/* ── Below the fold: the Open Studio stub ─────────────────────────────── */
.stub { min-height: 60vh; padding: 96px 40px; background: var(--surface); }
.kicker { margin: 0 0 14px; font-size: 13px; letter-spacing: .04em; color: var(--muted); font-variation-settings: "opsz" 12; }
.stub h2 { margin: 0; max-width: 20ch; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.08; font-weight: 340; font-variation-settings: "opsz" 96, "SOFT" 20; }

/* ── Phones and narrow screens: stack ─────────────────────────────────── */
@media (max-width: 900px) {
  :root { --header-h: 56px; }
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(440px, 1fr) var(--progress-h);
    grid-template-areas: "copy" "stage" "progress";
  }
  .hero-copy { padding: 18px 16px 4px; align-self: start; }
  .hero-label { margin-bottom: 12px; font-size: 12px; }
  .hero-line { font-size: clamp(30px, 8.6vw, 40px); margin-bottom: 10px; }
  .hero-para { font-size: 15px; max-width: none; }
  .globe { min-height: 320px; }
  .caption { min-height: 84px; padding: 4px 16px 6px; }
  .caption-line { font-size: 16px; }
  .stub { padding: 64px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .caption, .scroll-cue, .hero { transition: none; }
  .scroll-cue svg { animation: none; }
}


/* The chrome: the header (mirroring taleor.net's structure, set in Fraunces in black and white) and the
   sound control on the animation. Kept apart from styles.css so either can be swapped on its own. */

/* ── Header: logo left; WhatsApp, language, menu right ─────────────────────── */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 28px;
}
/* The full logo keeps its exact proportions (500 x 110): height fixed, width auto, never shrunk by the row. */
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.logo { height: 24px; width: auto; flex: 0 0 auto; }
:root[data-theme="dark"] .logo--on-light { display: none; }
:root[data-theme="light"] .logo--on-dark { display: none; }
.hnav { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

/* WhatsApp (v4, replaces Ask): the official glyph in WhatsApp green and the word, free text at the size of
   the "EN" picker (no box); on phones the glyph alone. Screen readers hear "Connect on WhatsApp" (aria-label). */
.header-wa {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 6px;
  font-size: 13px; letter-spacing: .04em; font-variation-settings: "opsz" 14; white-space: nowrap;
  color: var(--text); border-radius: 6px;
}
.header-wa .wa { flex: 0 0 auto; display: block; width: 16px; height: 16px; color: #25D366; }
.header-wa:hover .header-wa-text, .header-wa:focus-visible .header-wa-text { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* language picker and the small menu: <details> popovers, as taleor's */
.pop-host { position: relative; }
.pop-host summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; height: 36px; border: 1px solid var(--hairline); border-radius: 8px; color: var(--text); background: var(--chip); }
.pop-host summary::-webkit-details-marker { display: none; }
.pop-host[open] summary { border-color: var(--line); }
.pop { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; display: grid; min-width: 200px; margin: 0; background: var(--surface); border: 1px solid var(--hairline); border-radius: 8px; padding: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); list-style: none; }
.pop a { display: block; padding: 9px 12px; border-radius: 6px; font-size: 14px; color: var(--text); }
.pop a:hover, .pop a:focus-visible { background: var(--chip); }
.pop .lang-item, .pop .lang-soon { display: flex; align-items: center; gap: 6px; width: 100%; padding: 9px 12px; border-radius: 6px; font-size: 14px; color: var(--muted); text-align: left; }
.pop .lang-item[aria-current] { color: var(--text); }
.pop .lang-soon { font: inherit; font-size: 14px; }
.pop .lang-soon:hover, .pop .lang-soon:focus-visible { background: var(--chip); color: var(--text); }
.pop .soon { margin-left: auto; padding-left: 12px; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lang .pop { min-width: 230px; }
.lang-note-row { display: contents; }
.lang-note { font-size: 12px; line-height: 1.45; color: var(--muted); padding: 8px 12px 6px; margin: 4px 0 0; border-top: 1px solid var(--hairline); }
.lang-note:empty { display: none; }
.lang summary { gap: 6px; padding: 0 10px; font-size: 13px; letter-spacing: .04em; font-variation-settings: "opsz" 14; }
.lang .chev { stroke: var(--muted); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lang .code { display: inline-block; min-width: 22px; font-size: 12px; letter-spacing: .04em; }
.menu summary { width: 36px; }
.menu .burger { stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; }

/* ── The Play control (v3): a round teal button at the centre-bottom of the animation, "Play" under it,
   pulsing to invite; during the show the same button is a pause button (teal outline), a mute toggle beside it ── */
.play-host { position: absolute; left: 50%; bottom: 104px; transform: translateX(-50%); z-index: 3; }
.play-ctl { --play-accent: var(--teal); position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.play-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--teal); color: #fff; border: 1.5px solid var(--teal);
  box-shadow: 0 0 0 0 rgba(16, 199, 144, .45);
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, transform .25s ease;
}
.play-ctl.is-ambient .play-btn { animation: play-pulse 2.6s ease-out infinite; }
.play-btn:hover { transform: scale(1.05); }
.play-btn { transition: background-color .3s ease, border-color .3s ease, color .3s ease, transform .25s ease; }
.play-btn .play-ico--play { margin-left: 2px; }
.play-btn .play-ico--stop { display: none; margin-left: 0; }
/* v4: during the show the button is STOP, pink #FF4D6D (taleor's player states: teal play, pink stop, orange sound) */
.play-ctl.is-show .play-btn .play-ico--play { display: none; }
.play-ctl.is-show .play-btn .play-ico--stop { display: block; }
.play-ctl.is-show .play-btn { background: #FF4D6D; color: #fff; border-color: #FF4D6D; animation: none; box-shadow: none; }
.play-label { font-size: 13px; letter-spacing: .04em; color: var(--text); font-variation-settings: "opsz" 14; }
.play-label[hidden] { display: none; }
.mute-btn {
  --sound: #FF8A3D;
  position: absolute; left: calc(100% + 12px); top: 12px;
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--sound); background: color-mix(in srgb, var(--ground) 72%, transparent); color: var(--sound); backdrop-filter: blur(6px);
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
/* on white the orange icon is darkened for contrast (3:1 and more); the ring keeps #FF8A3D */
:root[data-theme="light"] .mute-btn { color: #B4500F; }
.mute-btn[hidden] { display: none; }
.mute-btn:hover { background: color-mix(in srgb, #FF8A3D 16%, var(--ground)); }
.mute-btn .mute-slash { display: none; }
.mute-btn.is-off .mute-wave { display: none; }
.mute-btn.is-off .mute-slash { display: block; }
.mute-btn.is-off { opacity: .85; }
@keyframes play-pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 199, 144, .45); }
  70% { box-shadow: 0 0 0 16px rgba(16, 199, 144, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 199, 144, 0); }
}

@media (max-width: 900px) {
  .site-header { padding: 0 16px; gap: 8px; }
  .logo { height: 20px; }
  .header-wa-text { display: none; }
  .header-wa { padding: 0; width: 32px; justify-content: center; gap: 0; }
  .header-wa .wa { width: 18px; height: 18px; }
  .hnav { gap: 8px; }
  .play-host { bottom: 96px; }
}
@media (max-width: 400px) {
  .logo { height: 18px; }
  .lang summary { padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .header-wa, .play-btn, .mute-btn { transition: none; }
  .play-ctl.is-ambient .play-btn { animation: none; }
}
