/* Ostrel Loam: cinematic product-launch template (Inazda, Cinematic collection).
   Every colour, radius, easing and type size is a token on :root. Rebrand by editing the first two blocks. */

@font-face { font-family: "Geist"; src: url("fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* Dark is the default: it suits warm, low-key footage. */
:root {
  color-scheme: dark;
  --iz-bg: #11100e;
  --iz-surface: #1a1916;
  --iz-surface-2: #22201c;
  --iz-line: #35322c;
  --iz-text: #efebe4;
  --iz-muted: #aba59b;
  --iz-accent: #b3c3a1;          /* sage, lifted for dark */
  --iz-accent-strong: #c9d6ba;
  --iz-on-accent: #141810;
  --iz-scrim: 17 16 14;          /* rgb of --iz-bg, used for gradients */
  --iz-scrim-a: .9; --iz-scrim-b: .8; --iz-scrim-c: .38;   /* copy-side scrim strength, tuned for 4.5:1 over the footage */
  --iz-chalk: #ece6da;
  --iz-sage: #8fa27e;
  --iz-focus: #c9d6ba;

  --iz-font: "Geist", ui-sans-serif, system-ui, sans-serif;
  --iz-mono: "Geist Mono", ui-monospace, monospace;
  --iz-radius-sm: 8px;
  --iz-radius: 14px;
  --iz-radius-lg: 22px;
  --iz-ease: cubic-bezier(.2, .7, .2, 1);
  --iz-dur: .35s;
  --iz-gutter: clamp(16px, 4vw, 48px);
  --iz-head-h: 64px;
  --iz-maxw: 1240px;
  --iz-edge: max(var(--iz-gutter), calc((100vw - var(--iz-maxw)) / 2));   /* lines overlays up with .wrap */
}
:root[data-theme="light"] {
  color-scheme: light;
  --iz-bg: #f3efe8;
  --iz-surface: #ebe6dd;
  --iz-surface-2: #e2dcd1;
  --iz-line: #d3ccbf;
  --iz-text: #1b1a17;
  --iz-muted: #59544b;
  --iz-accent: #4a5c3f;
  --iz-accent-strong: #3b4b32;
  --iz-on-accent: #ffffff;
  --iz-scrim: 243 239 232;
  --iz-scrim-a: .84; --iz-scrim-b: .7; --iz-scrim-c: .28;
  --iz-focus: #3b4b32;
}
@media (prefers-color-scheme: light) {
  :root[data-theme="system"] {
    color-scheme: light;
    --iz-bg: #f3efe8; --iz-surface: #ebe6dd; --iz-surface-2: #e2dcd1; --iz-line: #d3ccbf;
    --iz-text: #1b1a17; --iz-muted: #59544b; --iz-accent: #4a5c3f; --iz-accent-strong: #3b4b32;
    --iz-on-accent: #ffffff; --iz-scrim: 243 239 232; --iz-focus: #3b4b32;
    --iz-scrim-a: .84; --iz-scrim-b: .7; --iz-scrim-c: .28;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--iz-head-h) + 8px); }
body { margin: 0; background: var(--iz-bg); color: var(--iz-text); font: 400 17px/1.55 var(--iz-font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, picture, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--iz-focus); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -100px; z-index: 100; padding: 10px 14px; background: var(--iz-text); color: var(--iz-bg); border-radius: var(--iz-radius-sm); text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--iz-maxw) + 2 * var(--iz-gutter)); margin-inline: auto; padding-inline: var(--iz-gutter); }
.muted { color: var(--iz-muted); }
.small { font-size: 14px; }

.display { font-size: clamp(64px, 11vw, 168px); line-height: .9; font-weight: 500; letter-spacing: -.045em; }
.h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.06; font-weight: 500; letter-spacing: -.03em; text-wrap: balance; }
.h3 { font-size: 20px; line-height: 1.3; font-weight: 500; letter-spacing: -.01em; }
.lede { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.4; max-width: 26ch; text-wrap: pretty; }
.kicker { font: 400 13px/1.4 var(--iz-mono); color: var(--iz-muted); letter-spacing: .02em; }
.beat-title { font-size: clamp(26px, 3vw, 42px); line-height: 1.08; font-weight: 500; letter-spacing: -.028em; text-wrap: balance; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--iz-accent); color: var(--iz-on-accent); font-weight: 550; text-decoration: none; transition: background var(--iz-dur) var(--iz-ease); }
.btn:hover { background: var(--iz-accent-strong); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.text-link { color: var(--iz-text); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--iz-accent); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--iz-line); border-radius: 999px; background: transparent; color: var(--iz-text); cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--iz-surface); }
.when-light { display: none !important; }
:root[data-theme="light"] .when-dark { display: none !important; }
:root[data-theme="light"] .when-light { display: block !important; }

/* ---------- Header ---------- */
.site-head { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--iz-head-h); background: rgb(var(--iz-scrim) / .72); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid rgb(var(--iz-scrim) / .4); }
.head-row { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -.02em; text-decoration: none; }
.brand-mark { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 28px; margin-left: 16px; }
.nav-links a { color: var(--iz-muted); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--iz-text); }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
@media (max-width: 759px) { .nav-links { display: none; } }

/* ---------- Scenes: shared ---------- */
.scene { position: relative; }
.beat-text > * + * { margin-top: 14px; }
.beat-text p:not(.kicker):not(.lede) { color: var(--iz-muted); max-width: 40ch; }
.beat-lead .beat-text > .display { margin-top: 10px; }
.readout, .scene-bar, .clock, .scene-scrim, .scene-media { display: none; }

/* ---------- Static layout: no JS, reduced motion (default when .scrub is absent) ---------- */
html:not(.scrub) .scene { padding: calc(var(--iz-head-h) + 40px) 0 72px; }
html:not(.scrub) .scene + .scene, html:not(.scrub) .statement + .scene { padding-top: 72px; }
html:not(.scrub) .scene-stage { max-width: calc(var(--iz-maxw) + 2 * var(--iz-gutter)); margin-inline: auto; padding-inline: var(--iz-gutter); }
html:not(.scrub) .scene-label { font-size: clamp(30px, 4vw, 52px); line-height: 1.06; font-weight: 500; letter-spacing: -.03em; margin-bottom: 28px; }
html:not(.scrub) .beats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
html:not(.scrub) .beat-still img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--iz-radius); background: var(--iz-surface); }
html:not(.scrub) .beat-text { margin-top: 18px; }
html:not(.scrub) .beat-text .beat-title { font-size: clamp(22px, 2vw, 28px); }
html:not(.scrub) .scene-hero .beats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html:not(.scrub) .beat-lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 32px; align-items: end; }
html:not(.scrub) .beat-lead .beat-still { order: 2; }
html:not(.scrub) .beat-lead .beat-text { margin: 0; padding-bottom: 8px; }
html:not(.scrub) .beat-lead .display { font-size: clamp(64px, 9vw, 132px); }
@media (max-width: 759px) {
  html:not(.scrub) .beats, html:not(.scrub) .scene-hero .beats { grid-template-columns: 1fr; }
  html:not(.scrub) .beat-lead { grid-template-columns: 1fr; gap: 20px; }
  html:not(.scrub) .beat-still img { aspect-ratio: 1 / 1; }
}

/* ---------- Pinned, scroll-scrubbed layout ---------- */
.scrub .scene-track { height: var(--len, 320svh); position: relative; }
.scrub .scene-hero { --len: 340svh; }
.scrub .scene-materials { --len: 300svh; }
.scrub .scene-day { --len: 320svh; }
.scrub .scene-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--iz-bg); }
.scrub .scene-media { display: block; position: absolute; inset: 0; }
.scrub .scene-media canvas, .scrub .scene-poster, .scrub .scene-poster img { position: absolute; inset: 0; width: 100%; height: 100%; }
.scrub .scene-poster img { object-fit: cover; }
.scrub .scene-hero .scene-poster img { object-position: 15% 50%; }   /* matches data-focus-x on the hero */
.scrub .scene-media canvas { opacity: 0; transition: opacity .25s linear; }
.scrub .scene-media.is-live canvas { opacity: 1; }
.scrub .beat-still { display: none; }
.scrub .scene-scrim { display: block; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgb(var(--iz-scrim) / var(--iz-scrim-a)) 0%, rgb(var(--iz-scrim) / var(--iz-scrim-b)) 30%, rgb(var(--iz-scrim) / var(--iz-scrim-c)) 46%, rgb(var(--iz-scrim) / 0) 62%),
    linear-gradient(0deg, rgb(var(--iz-scrim) / .7) 0%, rgb(var(--iz-scrim) / 0) 34%),
    linear-gradient(180deg, rgb(var(--iz-scrim) / .5) 0%, rgb(var(--iz-scrim) / 0) 18%); }
.scrub .scene-label { position: absolute; z-index: 2; top: calc(var(--iz-head-h) + 28px); left: var(--iz-edge); font: 400 14px/1.4 var(--iz-mono); color: var(--iz-muted); letter-spacing: .02em; }
.scrub .beats { position: absolute; z-index: 2; left: var(--iz-edge); bottom: 13svh; width: min(34rem, 40vw); display: grid; }
.scrub .beat { grid-area: 1 / 1; align-self: end; opacity: 0; transform: translate3d(0, 14px, 0); will-change: opacity, transform; }
.scrub .beat:first-of-type { opacity: 1; transform: none; }
.scrub .readout { display: block; position: absolute; z-index: 2; right: var(--iz-edge); bottom: 6svh; font: 400 13px/1 var(--iz-mono); color: var(--iz-text); padding: 9px 12px; border-radius: 999px; background: rgb(var(--iz-scrim) / .7); font-variant-numeric: tabular-nums; }
.scrub .readout-label { color: var(--iz-muted); }
.scrub .clock { display: block; grid-area: 1 / 1; align-self: start; margin-bottom: 20px; font: 300 clamp(56px, 7vw, 104px)/1 var(--iz-mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.scrub .scene-day .beats { grid-template-rows: auto auto; }
.scrub .scene-day .beat { grid-area: 2 / 1; }
.scrub .scene-bar { display: block; position: absolute; z-index: 2; left: var(--iz-edge); right: var(--iz-edge); bottom: 3svh; height: 1px; background: rgb(var(--iz-scrim) / .5); }
.scrub .scene-bar span { display: block; height: 100%; background: var(--iz-text); transform-origin: 0 50%; transform: scaleX(0); opacity: .7; }
.scrub .scene-hero .lede { color: var(--iz-text); }
.scrub .beat-text p:not(.kicker):not(.lede) { color: var(--iz-text); opacity: .86; }
.scrub .scene-day .k-time { display: none; }
.scrub:not(.compact) .beat .kicker, .scrub:not(.compact) .scene-label { color: var(--iz-text); }
.scrub:not(.compact) .beat .kicker { display: inline-block; padding: 6px 10px; border-radius: 999px; background: rgb(var(--iz-scrim) / .74); }
.scrub:not(.compact) .beat-lead .kicker { padding: 0; background: none; }

/* Compact: phones, and slow connections at any width. Square frames, copy below the picture. */
.scrub.compact .scene-hero { --len: 260svh; }
.scrub.compact .scene-materials { --len: 240svh; }
.scrub.compact .scene-day { --len: 250svh; }
.scrub.compact .scene-stage { display: flex; flex-direction: column; justify-content: center; padding: calc(var(--iz-head-h) + 8px) 0 48px; }
.scrub.compact .scene-media { position: relative; inset: auto; flex: none; width: min(100%, 56svh); aspect-ratio: 1 / 1; margin-inline: auto; border-radius: 0; overflow: hidden; }
.scrub.compact .scene-scrim { display: none; }
.scrub.compact .scene-label { position: relative; top: auto; left: auto; order: -1; padding: 0 var(--iz-gutter) 12px; }
.scrub.compact .beats { position: relative; left: auto; bottom: auto; width: auto; padding: 22px var(--iz-gutter) 0; flex: none; align-content: start; }
.scrub.compact .beat { align-self: start; }
.scrub.compact .display { font-size: clamp(56px, 18vw, 88px); }
.scrub.compact .beat-title { font-size: clamp(24px, 6.6vw, 32px); }
.scrub.compact .lede { font-size: 18px; }
.scrub.compact .beat-text > * + * { margin-top: 10px; }
.scrub.compact .beat-text p:not(.kicker):not(.lede) { font-size: 16px; }
.scrub.compact .readout { bottom: 12px; right: 12px; }
.scrub.compact .clock { font-size: 44px; margin-bottom: 12px; }
.scrub.compact .scene-bar { bottom: 18px; }
@media (min-width: 760px) {
  /* compact at desktop width (lite mode): picture right, copy left */
  .scrub.compact .scene-stage { flex-direction: row; align-items: center; gap: 48px; padding: var(--iz-head-h) var(--iz-gutter) 0; }
  .scrub.compact .scene-media { order: 2; width: min(78svh, 50vw); margin: 0 0 0 auto; border-radius: var(--iz-radius-lg); }
  .scrub.compact .scene-label { position: absolute; top: calc(var(--iz-head-h) + 24px); left: var(--iz-edge); padding: 0; }
  .scrub.compact .beats { padding: 0; flex: 1; }
}

/* ---------- Plain sections ---------- */
.statement { padding: clamp(80px, 12vw, 160px) 0; }
.statement-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.statement-copy p { font-size: 19px; max-width: 46ch; }
.statement-copy p + p { margin-top: 18px; font-size: 16px; }

.block { padding: clamp(72px, 9vw, 120px) 0; border-top: 1px solid var(--iz-line); }
.block-alt { background: var(--iz-surface); }

.specs-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 56px; }
.specs-intro .muted { margin-top: 16px; max-width: 38ch; font-size: 15px; }
.specs-intro .h3 { margin-top: 44px; }
.box-list { margin-top: 16px; display: grid; gap: 12px; }
.box-list li { display: flex; gap: 12px; align-items: flex-start; }
.box-list svg { flex: none; width: 18px; height: 18px; margin-top: 4px; color: var(--iz-accent); }
.table-scroll { overflow-x: auto; border-radius: var(--iz-radius-sm); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 15px 0; border-bottom: 1px solid var(--iz-line); }
.spec-table tr:first-child th, .spec-table tr:first-child td { border-top: 1px solid var(--iz-line); }
.spec-table th { width: 34%; padding-right: 20px; font-weight: 400; color: var(--iz-muted); }

.colours-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.colour-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--iz-radius-lg); }
.swatches { margin-top: 28px; display: grid; gap: 14px; }
.swatches li { display: flex; align-items: center; gap: 14px; }
.swatch { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--iz-line); }
.swatch-chalk { background: var(--iz-chalk); }
.swatch-sage { background: var(--iz-sage); }
.note { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--iz-line); color: var(--iz-muted); max-width: 40ch; font-size: 15px; }

.price-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; padding: clamp(28px, 4vw, 56px); border: 1px solid var(--iz-line); border-radius: var(--iz-radius-lg); background: var(--iz-surface); }
.price { margin-top: 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.price-amount { font-size: clamp(44px, 5vw, 64px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.tag { font: 400 12px/1 var(--iz-mono); padding: 7px 10px; border: 1px solid var(--iz-line); border-radius: 999px; color: var(--iz-muted); }
.price-main .muted { margin-top: 16px; max-width: 44ch; }
.price-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.faq-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 56px; }
.faq details { border-bottom: 1px solid var(--iz-line); }
.faq details:first-child { border-top: 1px solid var(--iz-line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-size: 18px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 20px; height: 20px; color: var(--iz-muted); transition: transform var(--iz-dur) var(--iz-ease); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { padding: 0 0 22px; color: var(--iz-muted); max-width: 58ch; }

.closing { padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--iz-line); }
.closing-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.site-foot { border-top: 1px solid var(--iz-line); padding: 36px 0 48px; }
.foot-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-row .muted { flex: 1 1 280px; }
.foot-links { display: flex; gap: 20px; }
.foot-links a { color: var(--iz-muted); font-size: 14px; }
.foot-links a:hover { color: var(--iz-text); }

@media (max-width: 900px) {
  .statement-grid, .specs-grid, .colours-grid, .faq-grid, .price-card { grid-template-columns: 1fr; gap: 32px; }
  .price-card { align-items: start; }
}
@media (max-width: 759px) {
  body { font-size: 16px; }
  .colour-photo img { aspect-ratio: 1 / 1; }
  .btn-sm { padding: 0 14px; }
}

/* ---------- Solid mode: no translucency ---------- */
@media (prefers-reduced-transparency: reduce) {
  .site-head { background: var(--iz-bg); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: var(--iz-line); }
  .scrub .readout { background: var(--iz-bg); }
}
:root[data-solid] .site-head { background: var(--iz-bg); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: var(--iz-line); }
:root[data-solid] .scrub .readout, :root[data-solid].scrub .readout { background: var(--iz-bg); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
