/* Cinematic opening prototype (cinematic.html). Only the opening is styled here; everything else on the page is the
   homepage, styled by styles.css unchanged. Type, buttons and the concept badge are the homepage's own classes.
   Colours are the brand's tokens; terracotta (#C67A52, from the art direction brief) is used once, as a quiet accent
   on the chapter numbers, and lives only in this file. */

.op {
  --op-edge: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  --op-terracotta: #c67a52;
  position: relative;
  background: var(--sand);
}

/* ---------- Static (reduced motion, no JS, or the scene failed): a hero and the set, no camera ---------- */

.op-stage {
  position: relative;
  height: calc(100svh - var(--header-h));
  overflow: hidden;
  background: var(--sand);
}
.op-poster,
.op-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.op-poster {
  object-fit: cover;
  object-position: 50% 50%; /* the camera's opening framing */
}
.op-canvas {
  visibility: hidden; /* shown from its first drawn frame, so the poster is never covered by a blank canvas */
}
.op-canvas[data-live] {
  visibility: visible;
}
.op-beat {
  position: absolute;
  z-index: 2;
}
.op-beat:not(.op-hero) {
  display: none;
}
.op-static-set {
  padding-block: clamp(40px, 6vw, 80px);
}
.op-static-set ul {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.op-static-set img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 50% 50% 0 0 / 40% 40% 0 0;
}
.op-static-set .media-badge {
  position: static;
  display: inline-block;
  margin-top: 12px;
}

/* ---------- With the camera: a pinned stage, its length fixed here (motion.js measures the page below it) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .anim:not(.op-static) .op {
    height: calc((100svh - var(--header-h)) * 3);
  }
  .anim:not(.op-static) .op-stage {
    position: sticky;
    top: var(--header-h);
  }
  .anim:not(.op-static) .op-static-set {
    display: none;
  }
  .anim:not(.op-static) .op-beat:not(.op-hero) {
    display: block;
    opacity: 0;
    visibility: hidden;
  }
}

/* ---------- Hero: on the open stone wall, left of the arch ---------- */

.op-hero {
  left: var(--op-edge);
  top: 0;
  bottom: 0;
  width: min(34%, 30rem);
  height: fit-content;
  margin-block: auto;
  color: var(--forest);
}
.op-hero .display {
  font-size: clamp(2.8rem, 5.4vw, 5.2rem);
  color: var(--forest);
}
.op-hero .display em {
  color: var(--gold-text);
}
.op-lede {
  max-width: 24rem;
  margin-top: 1rem;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  color: var(--ink);
}
.op-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 28px;
}
.op-skip {
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-underline-offset: 5px;
}

/* ---------- Chapter notes over the image ---------- */

/* A navy veil comes and goes with each note, so it reads over bright sky. */
.op-note {
  left: 0;
  right: 0;
  bottom: 0;
  padding: 120px var(--op-edge) clamp(32px, 9vh, 88px);
  background: linear-gradient(0deg, rgba(15, 34, 56, 0.6) 0%, rgba(15, 34, 56, 0.32) 50%, rgba(15, 34, 56, 0) 100%);
}
.op-note > * {
  max-width: 26rem;
}
.op-note,
.op-note .journey-title,
.op-note .journey-num {
  color: var(--ivory);
  text-shadow: 0 1px 14px rgba(15, 34, 56, 0.55);
}
.op .journey-num span:first-child {
  color: var(--op-terracotta);
}
.op-note .journey-num span:first-child {
  color: #f0c3a8;
}

/* ---------- The set: on the sand ground the product world continues on ---------- */

.op-set {
  left: 0;
  right: 0;
  top: clamp(16px, 5vh, 56px);
}
.op-set .container > * {
  max-width: 28rem;
}
.op-set .heading {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  margin-bottom: 0.3em;
}
.op-set p:last-child {
  color: var(--ink);
  opacity: 0.8;
}

/* The single concept label: present on every frame of the opening. */
.op-chip {
  top: auto;
  left: auto;
  right: var(--op-edge);
  bottom: 16px;
  z-index: 3;
  letter-spacing: 0.06em;
  text-transform: none;
}

/* ---------- Phones ---------- */

@media (max-aspect-ratio: 1/1) {
  .op-hero,
  .op-note {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 96px var(--gutter) clamp(48px, 8vh, 88px);
  }
  .op-hero {
    background: linear-gradient(0deg, rgba(246, 243, 235, 0.96) 0%, rgba(246, 243, 235, 0.85) 60%, rgba(246, 243, 235, 0) 100%);
  }
  .op-note {
    background: linear-gradient(0deg, rgba(15, 34, 56, 0.72) 0%, rgba(15, 34, 56, 0.45) 55%, rgba(15, 34, 56, 0) 100%);
  }
  .op-hero .display {
    font-size: clamp(2.5rem, 11vw, 3.4rem);
  }
  .op-set .heading {
    font-size: clamp(1.8rem, 8vw, 2.3rem);
  }
  .op-set p:last-child {
    font-size: 0.92rem;
  }
  .op-chip {
    right: 12px;
  }
  .op-static-set ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* Integrated opening: existing header, language, request intent and backend remain owned by the main site. */
.nuve-experience .op { --gold-text:#815334; isolation:isolate; }
.nuve-experience .op .display { line-height:.98; letter-spacing:-.045em; }
.nuve-experience .op .eyebrow { color:var(--forest); }
.nuve-experience .op .op-chip { background:var(--ivory); color:var(--forest); opacity:1; padding:8px 12px; font-size:11px; }
.nuve-experience .op .journey-num { display:flex; gap:16px; margin-bottom:14px; font-size:12px; }
.nuve-experience .op .journey-title { font-size:clamp(2rem,4vw,4rem); line-height:1.02; margin-bottom:16px; }
.nuve-experience .op .op-set { pointer-events:none; }
.nuve-experience .op-static-set ul { list-style:none; padding:0; }
.nuve-experience .op-static-set img { display:block; }
.nuve-experience .op .op-lede { line-height:1.55; }
.nuve-experience .op .op-note p { max-width:28rem; }
.nuve-experience .op .op-skip { min-height:44px; display:inline-flex; align-items:center; }
/* The original product hero becomes the wholesale bridge; its approved photo and intent remain. */
.nuve-experience #tedarik .hero-stage { min-height:0; }
.nuve-experience #tedarik .hero-grid { min-height:650px; }
.nuve-experience #tedarik .display { font-size:clamp(2.2rem,4.2vw,4rem); }
.nuve-experience #tedarik .hero-copy { padding-block:70px; }
.nuve-experience #tedarik .hero-foundation { margin-top:24px; }
.nuve-experience .closing-secondary { display:inline-flex; min-height:44px; align-items:center; margin:16px 0 0 20px; text-decoration:underline; text-underline-offset:5px; }
@media(max-width:899px) {
 .nuve-experience .op-hero { padding-bottom:54px; }
 .nuve-experience .op-hero .display { font-size:clamp(2.4rem,10vw,3.5rem); }
 .nuve-experience .op .op-actions { margin-top:18px; gap:4px 18px; }
 .nuve-experience .op .op-lede { font-size:16px; }
 .nuve-experience .op .op-set { top:20px; }
 .nuve-experience .op .op-set .container>p:last-child { max-width:28rem; font-size:14px; }
 .nuve-experience #tedarik .hero-grid { min-height:0; }
 .nuve-experience #tedarik .hero-copy { padding-block:40px; }
 .nuve-experience .closing-secondary { margin-left:0; }
}
@media(max-height:600px) {
 .nuve-experience .op-stage { min-height:460px; }
 .nuve-experience .op-hero .display { font-size:2.5rem; }
}

.nuve-experience .op-set .heading em { color:#815334; }
.nuve-experience .v4-miyuki { background:var(--ivory); padding:var(--section) var(--gutter); }
.nuve-experience .v4-miyuki .v4-category-visual { display:grid; grid-template-columns:1fr .6fr; gap:20px; align-items:end; padding:0; }
.nuve-experience .v4-miyuki .v4-product { aspect-ratio:1; }
.nuve-experience .v4-miyuki .v4-macro { position:static; width:auto; aspect-ratio:1; border:0; }
.nuve-experience .v4-miyuki .v4-photo-note { grid-column:1/-1; position:static; }
.nuve-experience .v4-charms .v4-macro { position:absolute; right:0; bottom:48px; width:28%; aspect-ratio:1; border:6px solid var(--sand); }
.nuve-experience .supply-material-evidence { display:flex; gap:16px; align-items:center; max-width:340px; margin-top:24px; }
.nuve-experience .supply-material-evidence img { width:90px; height:112px; object-fit:cover; }
.nuve-experience .supply-material-evidence figcaption { font-size:12px; color:var(--ivory); }
@media(max-width:899px) {
 .nuve-experience .v4-miyuki { padding-inline:var(--gutter); }
 .nuve-experience .v4-miyuki .v4-category-visual { gap:12px; }
}

/* Stage 1: retain the camera engine; refine only the opening composition. */
.nuve-experience .op-hero { width:min(37%,32rem); }
.nuve-experience .op-hero .display { font-size:clamp(2.8rem,5.1vw,4.8rem); }
.nuve-experience .op-hero .op-lede { max-width:31ch; }
.nuve-experience .op-actions { gap:12px 18px; }
.nuve-experience .op-actions .op-skip { background:#0f2238;color:#f6f3eb;border:1px solid #0f2238;padding:12px 20px;text-decoration:none;min-height:48px;justify-content:center; }
.nuve-experience .op-actions a[data-request] { background:transparent;color:#0f2238;border:1px solid #0f2238; }
.nuve-experience .op-note { left:var(--op-edge);right:auto;bottom:8%;padding:18px 24px;max-width:min(30rem,85vw);background:rgba(246,243,235,.95); }
.nuve-experience .op-note,.nuve-experience .op-note .journey-title,.nuve-experience .op-note .journey-num { color:#0f2238;text-shadow:none; }
.nuve-experience .op-note .journey-num span:first-child { color:#815334; }
.nuve-experience .op .op-chip { max-width:calc(100% - 24px);font-size:10px;line-height:1.5; }
.nuve-experience .op-image-unavailable .op-poster { visibility:hidden; }
@media(prefers-reduced-motion:no-preference){
 .anim:not(.op-static) .nuve-experience .op { height:calc((100svh - var(--header-h))*2.6); }
}
@media(max-width:899px){
 .nuve-experience .op-hero { width:auto;left:0;right:0;bottom:0;padding:70px var(--gutter) 52px; }
 .nuve-experience .op-hero .display { font-size:clamp(2.4rem,10vw,3.3rem); }
 .nuve-experience .op-hero .op-lede { font-size:15px;max-width:32ch; }
 .nuve-experience .op-actions { gap:8px 12px;margin-top:18px; }
 .nuve-experience .op-actions a { font-size:12px;padding:11px 14px; }
 .nuve-experience .op-note { left:var(--gutter);right:var(--gutter);max-width:none;bottom:8%;padding:16px 20px; }
 .nuve-experience .op-note .journey-title { font-size:clamp(1.7rem,7vw,2.4rem); }
}
@media(max-width:899px) and (prefers-reduced-motion:no-preference){
 .anim:not(.op-static) .nuve-experience .op { height:calc((100svh - var(--header-h))*2.4); }
}
/* Home Story Phase1: copy hierarchy only. Existing camera/stage geometry is retained. */
.nuve-experience .op-hero .op-capabilities{display:flex;flex-wrap:wrap;list-style:none;padding:0;margin:24px 0 0;gap:10px 18px;max-width:42ch;color:var(--forest);font:500 10px/1.6 var(--font-body);letter-spacing:.09em}
.nuve-experience .op-hero .op-capabilities li{border-top:1px solid var(--line);padding-top:8px}
.nuve-experience .op-hero .op-actions .btn-forest{background:transparent;color:var(--forest);border-color:var(--forest)}
.nuve-experience .op-hero .op-actions a{font-size:11px;letter-spacing:.06em}
@media(max-width:899px){
.nuve-experience .op-hero .op-capabilities{font-size:9px;gap:6px 14px;margin-top:16px;max-width:100%}
.nuve-experience .op-hero .op-lede{min-height:0}
}
@media(max-width:599px){
.nuve-experience .op-hero{padding-bottom:56px}
.nuve-experience .op-hero .op-actions{gap:8px;min-height:0;margin-top:16px;grid-auto-rows:minmax(44px,auto)}
.nuve-experience .op-hero .op-actions a{min-height:44px;padding:10px 14px}
.nuve-experience .op-hero .op-capabilities{display:grid;grid-template-columns:1fr 1fr}
.nuve-experience .op-hero .op-capabilities li:last-child{grid-column:1/-1}
}
.nuve-experience .op-hero .op-actions .op-skip{background:var(--forest);color:var(--ivory);border-color:var(--forest)}
@media(min-width:900px){.nuve-experience .op-hero .op-capabilities{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-width:none;gap:14px;letter-spacing:.06em}}
/* Hero capability signature (2026-11-11): approved mixed-case labels with a restrained line icon. Copy layer only. */
.nuve-experience .op-hero .op-capabilities{font-size:12px;letter-spacing:.01em;line-height:1.35}
.nuve-experience .op-hero .op-capabilities li{display:flex;align-items:center;gap:8px;padding-top:10px}
.nuve-experience .op-hero .op-cap-icon{flex:none;width:20px;height:20px;color:var(--gold-text,#79552e)}
@media(max-width:899px){.nuve-experience .op-hero .op-capabilities{font-size:12px}.nuve-experience .op-hero .op-cap-icon{width:18px;height:18px}}
/* Optional local archive review: contained full frame + editorial side copy. */
.nuve-experience .op .op-memory{left:var(--op-edge);right:auto;top:0;bottom:0;margin-block:auto;width:36%;max-width:34rem;height:fit-content;padding:0;background:none;color:var(--forest);text-shadow:none}
.nuve-experience .op .op-memory .journey-title,.nuve-experience .op .op-memory .journey-num{color:var(--forest);text-shadow:none}
.nuve-experience .op .op-memory .journey-title{font-family:var(--font-display);font-weight:500;font-size:clamp(30px,3.4vw,52px);line-height:1.08}
.nuve-experience .op .op-memory>p:not(.journey-num){font-size:16px;line-height:1.65;margin-top:18px;max-width:44ch}
.op-memory-static figure{margin:0}.op-memory-static img{width:100%;max-height:560px;object-fit:contain}.op-memory-static figcaption{font-size:12px;line-height:1.6;margin-top:12px}
.op-memory-static h2{font:500 clamp(30px,4vw,48px)/1.08 var(--font-display)}.op-memory-static p{line-height:1.7;margin-top:20px}
.op-static .op-memory-static,[data-memory-reference]:not([hidden]){display:grid!important;grid-template-columns:1fr 1fr;gap:40px;padding-block:64px}
@media(prefers-reduced-motion:reduce){.op-memory-static{display:grid!important;grid-template-columns:1fr 1fr;gap:40px;padding-block:64px}}
@media(max-width:599px){
.nuve-experience .op .op-memory{left:var(--gutter);right:var(--gutter);top:auto;bottom:6%;width:auto;max-width:none;margin:0;padding:0}
.nuve-experience .op .op-memory .journey-title{font-size:clamp(24px,6.4vw,34px);max-width:23ch;margin-bottom:12px}
.nuve-experience .op .op-memory .journey-num{font-size:10px;margin-bottom:10px}
.nuve-experience .op .op-memory>p:not(.journey-num){font-size:14px;line-height:1.55;margin-top:12px;max-width:56ch}
}
@media(max-width:599px){.op-static .op-memory-static{grid-template-columns:1fr;gap:28px}.op-memory-static img{max-height:460px}}
@media(max-width:599px) and (max-height:720px){.nuve-experience .op .op-memory>p:not(.journey-num){font-size:13px;line-height:1.45}.nuve-experience .op .op-memory .journey-title{font-size:24px}.nuve-experience .op .op-memory{bottom:5%}}

/* Scene02: quiet editorial overlay; owner-provided copy remains one unbroken paragraph. */
.nuve-experience .op .op-memory{background:rgba(246,243,235,.86);padding:24px 28px;width:42%;max-width:36rem;border:0;border-radius:0;box-shadow:none}
.nuve-experience .op .op-memory .journey-title{font-family:var(--font-display);font-weight:500;font-size:clamp(32px,3.5vw,52px);line-height:1.08}
.nuve-experience .op .op-memory>p:not(.journey-num){font-size:16px;line-height:1.7;max-width:43ch}
@media(max-width:899px){.nuve-experience .op .op-memory{left:var(--gutter);right:var(--gutter);top:auto;bottom:7%;width:auto;max-width:36rem;padding:20px 22px;margin:0}.nuve-experience .op .op-memory .journey-title{font-size:32px}}
@media(max-width:599px){.nuve-experience .op .op-memory{padding:18px 20px;bottom:6%}.nuve-experience .op .op-memory .journey-title{font-size:30px}.nuve-experience .op .op-memory>p:not(.journey-num){font-size:15px;line-height:1.6}}
@media(max-width:599px) and (max-height:720px){.nuve-experience .op .op-memory .journey-title{font-size:27px}.nuve-experience .op .op-memory>p:not(.journey-num){font-size:14px;line-height:1.55}}

/* NUVE brand opening inside the camera (2026-11-11, release): brand signature + verbatim heritage copy on one calm panel. */
.nuve-experience .op .op-brand{background:rgba(243,238,228,.94);padding:28px 30px 30px}
.nuve-experience .op .op-brand .op-brand-mark{display:block;width:120px;height:auto;margin:0 0 18px}
.nuve-experience .op .op-brand .op-brand-signature{font:400 clamp(28px,2.7vw,44px)/1.02 var(--font-display);margin:0;color:var(--forest)}
.nuve-experience .op .op-brand .op-brand-line{font:500 11px/1.4 var(--font-body);letter-spacing:.2em;color:#79552e;margin:14px 0 22px}
.nuve-experience .op .op-brand .journey-title{font-size:clamp(22px,1.9vw,30px)}
.nuve-experience .op .op-brand>p:last-child{font-size:15px;line-height:1.6;margin-top:10px}
@media(max-width:899px){.nuve-experience .op .op-brand{padding:20px 20px 22px}.nuve-experience .op .op-brand .op-brand-mark{width:92px;margin-bottom:12px}.nuve-experience .op .op-brand .op-brand-signature{font-size:26px}.nuve-experience .op .op-brand .op-brand-line{margin:10px 0 14px}.nuve-experience .op .op-brand .journey-title{font-size:21px}.nuve-experience .op .op-brand>p:last-child{font-size:14px}}
.nuve-experience .op .op-memory.op-brand>p.op-brand-signature{font-size:clamp(28px,2.7vw,44px);line-height:1.02;margin-top:0;max-width:none}
.nuve-experience .op .op-memory.op-brand>p.op-brand-line{font-size:11px;line-height:1.4;margin-top:14px;max-width:none}
@media(max-width:899px){.nuve-experience .op .op-memory.op-brand>p.op-brand-signature{font-size:26px}}
