/* ==========================================================
   A.M Watches — styles
   ========================================================== */

@font-face { font-family: "Artin"; src: url("../fonts/ArtinSharp-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Artin"; src: url("../fonts/ArtinSharp-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Artin"; src: url("../fonts/ArtinSharp-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Artin"; src: url("../fonts/ArtinSharp-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Artin Round"; src: url("../fonts/Artin-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #0c0c0e;
  --paper: #efe6d4;
  --orange: #f26a21;
  --orange-deep: #c2410c;
  --strip: 22vw;          /* width of the "next" preview strip (desktop) */
  --pad-x: clamp(20px, 3.4vw, 56px);
  --pad-y: clamp(18px, 3.2vh, 40px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font: "Artin", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-weight: 400;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
em { font-style: normal; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 4px; }

/* masked line reveal */
.m { display: block; overflow: hidden; padding-block: .06em; margin-block: -.06em; }
.rv { display: inline-block; will-change: transform; }

/* ---------- shared bits ---------- */
.btn {
  --h: 52px;
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: var(--h); padding: 0 28px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: 0; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease-out), transform .3s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn-solid { background: var(--fg, #fff); color: var(--bg, #0c0c0e); }
.btn-solid::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--accent, var(--orange));
  transform: translateY(101%); transition: transform .55s var(--ease-out);
}
@media (hover: hover) {
  .btn-solid:hover::before { transform: translateY(0); }
  .btn-solid:hover { color: #fff; }
}
.btn-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px; padding-block: 8px; position: relative;
}
.btn-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .45s var(--ease-out); }
.btn-link::after {
  content: ""; position: absolute; right: 0; left: 0; bottom: 2px; height: 1px; background: currentColor;
  transform: scaleX(.0); transform-origin: right; transition: transform .5s var(--ease-out);
}
@media (hover: hover) {
  .btn-link:hover svg { transform: translateX(-6px); }
  .btn-link:hover::after { transform: scaleX(1); }
}

.logo-svg .stroke { stroke: currentColor; stroke-width: 2.6; stroke-linecap: square; stroke-linejoin: miter; }
.logo-svg .tick { stroke-width: 1.4; stroke: var(--orange); }
.logo-svg .dot { fill: var(--orange); }

/* ---------- preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.pre-shutter { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--ink); }
.pre-top { top: 0; } .pre-bot { bottom: 0; }
.pre-center { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 22px; color: var(--paper); }
.pre-logo { width: min(240px, 46vw); height: auto; overflow: visible; }
.pre-logo .stroke { stroke-dasharray: 1; stroke-dashoffset: 1; }
.pre-sub { display: flex; overflow: hidden; font-size: 12px; font-weight: 700; letter-spacing: .5em; color: rgba(239,230,212,.7); }
.pre-sub span { display: inline-block; transform: translateY(110%); }
.pre-bar { width: 160px; height: 1px; background: rgba(239,230,212,.14); overflow: hidden; }
.pre-bar i { display: block; height: 100%; background: var(--orange); transform: scaleX(0); transform-origin: right; }

.wipe { position: fixed; inset: 0; z-index: 90; background: var(--ink); transform: scaleY(0); pointer-events: none; }

.grain {
  position: fixed; inset: -50%; z-index: 70; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); }
}

/* ---------- header ---------- */
.site-header {
  --logo: #fff; --tools: #fff;
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--pad-y) var(--pad-x);
  padding-top: max(var(--pad-y), env(safe-area-inset-top));
  pointer-events: none;
  background: none;
}
.site-header > * { pointer-events: auto; }
.brand { color: var(--logo); transition: color .7s .35s var(--ease-out); }
.brand .logo-svg { width: clamp(64px, 5.6vw, 84px); height: auto; overflow: visible; }
.is-loading .brand, .is-loading .tools { opacity: 0; }
.tools { display: flex; align-items: center; gap: 6px; color: var(--tools); transition: color .7s .35s var(--ease-out); }
.tool { position: relative; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; }
.tool::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1px solid currentColor; opacity: .28; transition: opacity .3s, transform .5s var(--ease-out); }
@media (hover: hover) { .tool:hover::before { opacity: .7; transform: scale(1.08); } }
.cart-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.cart-count {
  position: absolute; top: 4px; left: 4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  display: grid; place-items: center; font-size: 11px; font-weight: 700; line-height: 1;
  background: var(--orange); color: var(--ink);
}
/* ---------- custom cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; position: fixed; top: 0; left: 0; z-index: 95; pointer-events: none; mix-blend-mode: difference; }
  .cursor-dot { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; }
  .cursor-ring {
    position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.6); display: grid; place-items: center;
    transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), background-color .45s, border-color .45s;
  }
  .cursor-label { font-style: normal; font-size: 13px; font-weight: 700; color: #000; opacity: 0; transition: opacity .3s; white-space: nowrap; }
  .cursor.is-hover .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: transparent; background: rgba(255,255,255,.18); }
  .cursor.has-label .cursor-ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: #fff; border-color: #fff; }
  .cursor.has-label .cursor-label { opacity: 1; }
  .cursor.has-label .cursor-dot { opacity: 0; }
}

/* ==========================================================
   STAGE (full-screen panels driven by JS)
   ========================================================== */
.stage { position: fixed; inset: 0; overflow: hidden; }
.panel { position: absolute; inset: 0; }

/* ---------- hero ---------- */
.hero { z-index: 1; overflow: hidden; background: #0b1a14; }
.hero-media, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-video { object-fit: cover; }
.hero-grad {
  position: absolute; inset: 0;
  background:
    linear-gradient(to left, rgba(4,12,9,.78) 0%, rgba(4,12,9,.35) 38%, rgba(4,12,9,0) 62%),
    linear-gradient(to top, rgba(4,12,9,.85) 0%, rgba(4,12,9,0) 42%),
    linear-gradient(to bottom, rgba(4,12,9,.45) 0%, rgba(4,12,9,0) 22%);
}
.hero-shade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
.hero-content {
  position: absolute; right: var(--pad-x); bottom: clamp(110px, 17vh, 190px);
  width: min(620px, 86vw); color: #f4efe6;
}
.hero-eyebrow { font-size: 14px; font-weight: 700; color: var(--orange); letter-spacing: .02em; margin-bottom: 14px; }
.hero-eyebrow .rv::before { content: ""; display: inline-block; width: 34px; height: 1px; background: currentColor; vertical-align: middle; margin-left: 12px; }
.hero-title { font-family: "Artin Round", var(--font); font-weight: 700; font-size: clamp(52px, 7.2vw, 128px); line-height: 1.08; letter-spacing: -.01em; }
.hero-title em { color: var(--orange); }
.hero-sub { margin-top: 22px; max-width: 440px; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.9; color: rgba(244,239,230,.78); font-weight: 300; }
.hero-bar {
  position: absolute; left: var(--pad-x); right: var(--pad-x); bottom: var(--pad-y);
  display: flex; align-items: flex-end; justify-content: space-between; color: rgba(244,239,230,.85);
}
.live-clock { display: flex; align-items: center; gap: 14px; }
.live-clock svg { width: 46px; height: 46px; overflow: visible; }
.live-clock circle:first-child { fill: rgba(255,255,255,.04); stroke: rgba(244,239,230,.5); stroke-width: 1; }
.live-clock .ticks path { stroke: rgba(244,239,230,.7); stroke-width: 1.2; }
.live-clock line { stroke: #f4efe6; stroke-linecap: round; transform-origin: 20px 20px; }
.live-clock .h-hand { stroke-width: 2; }
.live-clock .m-hand { stroke-width: 1.4; }
.live-clock .s-hand { stroke: var(--orange); stroke-width: .9; transition: transform .35s cubic-bezier(.3, 2.2, .5, 1); }
.live-clock .pin { fill: var(--orange); }
.live-clock p { display: grid; gap: 2px; }
.live-clock small { font-size: 12px; color: rgba(244,239,230,.55); }
.clock-digits { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .04em; }

/* ---------- deck & layers ---------- */
.deck { z-index: 2; background: var(--ink); }
.js:not(.static) .deck, .js:not(.static) .footer { visibility: hidden; }
.layer {
  position: absolute; inset: 0; overflow: hidden;
  background: var(--bg); color: var(--fg);
  clip-path: inset(0% 100% 0% 0%); visibility: hidden;
}
.slide::before {   /* soft studio light behind the watch */
  content: ""; position: absolute; top: 50%; right: 4vw; width: 62vh; height: 62vh; transform: translateY(-50%);
  border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none;
}
.bg-word {
  position: absolute; right: -1vw; bottom: -4.2vw; z-index: 0;
  font-weight: 900; font-size: 19vw; line-height: 1; letter-spacing: -.03em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.2px var(--line); pointer-events: none; user-select: none;
}
.slide-inner {
  position: absolute; inset: 0 0 0 var(--strip); z-index: 1;
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center;
  gap: clamp(24px, 4vw, 72px); padding: 90px clamp(40px, 6vw, 110px) 90px clamp(28px, 4vw, 72px);
}
.watch { position: relative; height: min(76vh, 50vw); aspect-ratio: 518 / 829; will-change: transform; }
.watch-float { position: absolute; inset: 0; }
.watch img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 40px var(--shadow)); user-select: none; -webkit-user-drag: none; }
.watch-shadow { position: absolute; left: 12%; right: 12%; bottom: -5%; height: 7%; border-radius: 50%; background: var(--shadow); filter: blur(18px); opacity: .9; }

.info { max-width: 520px; display: flex; flex-direction: column; align-items: flex-start; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .28em; color: var(--soft); margin-bottom: clamp(10px, 1.8vh, 18px); }
.eyebrow .rv::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: 1px; }
.title { font-weight: 900; font-size: clamp(34px, min(4.4vw, 7.4vh), 84px); line-height: .94; letter-spacing: -.012em; text-transform: uppercase; text-align: right; width: 100%; }
.title .m { padding-block: .08em; }
.size { font-weight: 900; font-size: clamp(16px, 1.6vw, 26px); margin-top: 6px; letter-spacing: .02em; text-align: right; width: 100%; color: var(--soft); }
.tag-row { display: flex; align-items: center; gap: 16px; margin-top: clamp(16px, 3vh, 32px); }
.badge { position: relative; flex: none; width: clamp(64px, 8.4vh, 84px); aspect-ratio: 1; display: grid; place-items: center; }
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 16s linear infinite; overflow: visible; direction: ltr; }
.badge text { font-size: 10.4px; font-weight: 700; letter-spacing: .14em; fill: var(--fg); }
.badge i { width: 34%; aspect-ratio: 1; border-radius: 50%; background: var(--fg); position: relative; }
.badge i::after { content: ""; position: absolute; inset: 34%; border-radius: 50%; background: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
.tagline { font-weight: 700; font-size: clamp(15px, 1.25vw, 19px); line-height: 1.55; }
.rule { display: block; width: 100%; height: 1px; background: var(--line); margin-block: clamp(14px, 2.6vh, 26px); transform-origin: right; }
.label { font-size: 12px; font-weight: 700; color: var(--label, var(--accent)); letter-spacing: .02em; filter: saturate(1.2); }
.desc { margin-top: 8px; font-size: clamp(13.5px, 1vw, 15.5px); line-height: 1.95; color: var(--soft); font-weight: 300; max-width: 460px; }
.specs { display: flex; gap: clamp(18px, 2.4vw, 40px); margin-top: clamp(14px, 2.6vh, 26px); }
.specs li { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 5px; }
.specs b { font-weight: 900; font-size: clamp(22px, 2vw, 34px); line-height: 1; font-variant-numeric: tabular-nums; }
.specs small { font-size: 12px; color: var(--soft); }
.specs span { grid-column: 1 / -1; font-size: 12px; color: var(--soft); margin-top: 6px; }
.buy { margin-top: clamp(18px, 3.4vh, 36px); display: flex; align-items: center; gap: clamp(18px, 2vw, 34px); flex-wrap: wrap; }
.price { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 6px; }
.price small { grid-column: 1 / -1; font-size: 12px; color: var(--soft); margin-bottom: 2px; }
.price strong { font-weight: 900; font-size: clamp(20px, 1.7vw, 28px); }
.price span { font-size: 13px; color: var(--soft); }
.actions { display: flex; align-items: center; gap: 22px; }
.add-cart.is-added::before { transform: translateY(0); }
.add-cart.is-added { color: #fff; }
.add-cart.is-busy { pointer-events: none; opacity: .75; }
.btn.is-disabled { opacity: .45; cursor: default; }
.price del { margin-right: 6px; opacity: .7; }

/* teaser shown inside the strip when heritage is "next" */
.teaser { position: absolute; inset: 0 auto 0 0; width: var(--strip); z-index: 2; pointer-events: none; }
.teaser-card {
  position: absolute; top: 50%; left: 18%; width: 72%; aspect-ratio: 4/5; margin-top: -45%;
  padding: 10px 10px 34px; background: #e9dcc0; box-shadow: 0 30px 60px rgba(0,0,0,.5); transform: rotate(-7deg);
}
.teaser-card img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.25) contrast(1.05); }
.teaser-label {
  position: absolute; bottom: var(--pad-y); left: 50%; transform: translateX(-50%);
  font-weight: 900; font-size: 13px; letter-spacing: .5em; color: var(--accent);
}

/* deck UI */
.deck-ui { --ui: #fff; position: absolute; inset: auto 0 0 var(--strip); z-index: 6; height: 0; color: var(--ui); transition: color .7s .35s var(--ease-out); visibility: hidden; opacity: 0; }
.counter { position: absolute; right: var(--pad-x); bottom: var(--pad-y); display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 15px; font-variant-numeric: tabular-nums; }
.counter .cur { display: block; overflow: hidden; height: 1.2em; line-height: 1.2; }
.counter .cur span { display: block; }
.counter i { width: 40px; height: 1px; background: currentColor; opacity: .4; }
.counter .tot { opacity: .55; }
.dots { position: absolute; right: calc(var(--pad-x) + 140px); bottom: calc(var(--pad-y) + 4px); display: flex; gap: 8px; }
.dots button { width: 8px; height: 8px; border-radius: 4px; background: currentColor; opacity: .3; transition: width .6s var(--ease-out), opacity .4s; }
.dots button.is-active { width: 28px; opacity: 1; }
.arrows { position: absolute; left: clamp(28px, 4vw, 72px); bottom: calc(var(--pad-y) - 8px); display: flex; gap: 10px; }
.arr { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; position: relative; }
.arr::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid currentColor; opacity: .32; transition: opacity .3s, transform .5s var(--ease-out); }
@media (hover: hover) { .arr:hover::before { opacity: .9; transform: scale(1.1); } }
.arr svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.arr:disabled { opacity: .3; cursor: default; }
.strip-hit { position: absolute; inset: 0 auto 0 0; width: var(--strip); z-index: 5; display: none; }
.deck.has-next .strip-hit { display: block; }
.foot-shade { position: absolute; inset: 0; z-index: 8; background: #000; opacity: 0; pointer-events: none; }

/* ---------- heritage ---------- */
.history { background: radial-gradient(120% 90% at 30% 50%, #241c14 0%, var(--bg) 60%); }
.history::after { /* paper fibres */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='turbulence' baseFrequency='.012 .09' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .9 0 0 0 0 .8 0 0 0 0 .6 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
}
.h-bgyear {
  position: absolute; left: 3vw; top: 50%; transform: translateY(-50%); z-index: 0;
  font-weight: 900; font-size: 27vw; line-height: 1; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(239,229,210,.09); pointer-events: none; user-select: none;
}
.hist-inner {
  position: absolute; inset: 0; z-index: 1;
  display: grid; grid-template-columns: minmax(300px, 32vw) minmax(0, 1fr); align-items: center;
  gap: 2vw; padding: 110px var(--pad-x) 70px;
}
.h-info { display: flex; flex-direction: column; align-items: flex-start; }
.h-info .eyebrow .rv::before { background: var(--accent); }
.h-title { font-weight: 900; font-size: clamp(36px, min(4.4vw, 7.6vh), 80px); line-height: 1.12; }
.h-title em { color: var(--accent); }
.h-chapter { margin-top: clamp(20px, 4vh, 44px); width: 100%; }
.h-meta { display: flex; align-items: center; gap: 16px; }
.h-num { font-size: 13px; font-weight: 700; color: var(--accent); padding: 6px 14px; border: 1px solid rgba(242,106,33,.45); border-radius: 999px; }
.h-year { display: inline-flex; overflow: hidden; font-weight: 900; font-size: clamp(30px, 3vw, 48px); line-height: 1.1; height: 1.1em; }
.h-year .d { display: inline-block; }
.h-name { margin-top: 14px; font-weight: 700; font-size: clamp(20px, 1.8vw, 28px); }
.h-text { margin-top: 10px; font-weight: 300; font-size: clamp(14px, 1.05vw, 16px); line-height: 2; color: var(--soft); min-height: 6em; max-width: 440px; }
.h-text .w { display: inline-block; white-space: pre; }
.h-controls { margin-top: clamp(18px, 3.6vh, 38px); display: flex; align-items: center; gap: 12px; }
.h-arrow { position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: var(--fg); }
.h-arrow::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line); transition: border-color .3s, transform .5s var(--ease-out); }
@media (hover: hover) { .h-arrow:hover::before { border-color: var(--accent); transform: scale(1.08); } }
.h-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.h-arrow .ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.h-arrow .ring circle { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 166.5; stroke-dashoffset: 166.5; }
.h-dots { display: flex; gap: 8px; margin-right: 14px; }
.h-dots button { font-size: 12px; font-weight: 700; color: var(--soft); padding: 6px 4px; position: relative; transition: color .4s; }
.h-dots button::after { content: ""; position: absolute; right: 4px; left: 4px; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transition: transform .6s var(--ease-out); }
.h-dots button.is-active { color: var(--fg); }
.h-dots button.is-active::after { transform: scaleX(1); }

.h-stage { position: relative; height: min(70vh, 50vw); perspective: 1600px; touch-action: pan-y; user-select: none; }
.h-card {
  --w: min(26vw, calc(66vh * .78));
  position: absolute; top: 50%; left: 50%; width: var(--w); aspect-ratio: 4 / 5.05;
  margin: calc(var(--w) * -.63) 0 0 calc(var(--w) * -.5);
  transform-style: preserve-3d; cursor: pointer;
}
.h-card-in {
  position: absolute; inset: 0; padding: 12px 12px 64px; background: #eadfc6; border-radius: 3px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(0,0,0,.08) inset;
  transform-style: preserve-3d;
}
.h-card-in::before { /* aged paper edge */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 60%, rgba(120,84,40,.28) 100%);
}
.h-card img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.18) contrast(1.04); pointer-events: none; }
.h-card figcaption { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; align-items: baseline; justify-content: space-between; color: #2a2016; }
.h-card figcaption b { font-weight: 900; font-size: clamp(18px, 1.5vw, 24px); }
.h-card figcaption span { font-size: 13px; font-weight: 700; }
.tape { position: absolute; top: -12px; width: 78px; height: 24px; background: rgba(233,220,186,.72); box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.tape:first-of-type { right: 18px; transform: rotate(6deg); }
.tape:last-of-type { left: 18px; transform: rotate(-5deg); }
.h-glare { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; mix-blend-mode: soft-light; opacity: 0; }

/* ---------- footer ---------- */
.footer {
  inset: auto 0 0 0; z-index: 3;
  background: var(--paper); color: #18140f; overflow: hidden;
  padding: clamp(36px, 6vh, 70px) var(--pad-x) var(--pad-y);
  padding-bottom: max(var(--pad-y), env(safe-area-inset-bottom));
  max-height: 100%; display: grid; gap: clamp(24px, 4.6vh, 54px);
  border-radius: 28px 28px 0 0;
}
.f-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; position: relative; z-index: 1; }
.f-slogan { font-weight: 900; font-size: clamp(34px, 4.6vw, 76px); line-height: 1.12; }
.f-slogan em { color: var(--orange); }
.f-news { width: min(420px, 100%); display: grid; gap: 12px; }
.f-news label { font-size: 14px; color: rgba(24,20,15,.65); }
.f-field { display: flex; align-items: center; border-bottom: 1.5px solid #18140f; }
.f-field input { flex: 1; min-width: 0; background: none; border: 0; padding: 14px 0; font: inherit; font-size: 16px; color: inherit; outline: none; text-align: right; }
.f-field input::placeholder { color: rgba(24,20,15,.45); }
.f-field button { width: 44px; height: 44px; display: grid; place-items: center; }
.f-field svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.f-msg { font-size: 13px; min-height: 1.4em; color: var(--orange-deep); }
.f-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; position: relative; z-index: 1; }
.f-cols h3 { font-size: 13px; font-weight: 700; color: var(--orange-deep); margin-bottom: 14px; }
.f-cols li { font-size: 15px; line-height: 2.1; color: rgba(24,20,15,.82); }
.f-cols .ltr { text-align: right; unicode-bidi: plaintext; }
.f-cols a { transition: color .3s; }
@media (hover: hover) { .f-cols a:hover { color: var(--orange-deep); } }
.f-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 20px; border-top: 1px solid rgba(24,20,15,.14); font-size: 13px; color: rgba(24,20,15,.6); position: relative; z-index: 1; }
.f-top-btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #18140f; }
.f-top-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.f-mark {
  position: absolute; left: -1vw; bottom: -6vw; font-weight: 900; font-size: 26vw; line-height: 1; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(24,20,15,.08); pointer-events: none;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-height: 780px) and (min-width: 821px) {
  .desc, .label { display: none; }
  .slide-inner { padding-block: 80px 70px; }
}

@media (max-width: 1100px) and (min-width: 821px) {
  :root { --strip: 18vw; }
  .slide-inner { padding-inline: 4vw 3vw; }
  .watch { height: min(62vh, 40vw); }
  .specs { gap: 16px; }
  .dots { display: none; }
}

@media (max-width: 820px) {
  :root { --strip: 0px; --strip-h: 15svh; }
  .brand .logo-svg { width: 58px; }
  .tool { width: 44px; height: 44px; }

  .hero-content { bottom: max(116px, 41svh); right: 20px; left: 20px; width: auto; text-align: left; }
  .hero-sub { margin-right: auto; }
  .hero-title { font-size: clamp(48px, 15vw, 76px); }
  .hero-grad { background: linear-gradient(to top, rgba(4,12,9,.92) 0%, rgba(4,12,9,.55) 45%, rgba(4,12,9,.1) 75%), linear-gradient(to bottom, rgba(4,12,9,.5), transparent 25%); }
  .hero-bar { left: 20px; right: 20px; bottom: max(20px, env(safe-area-inset-bottom)); }

  .slide::before { top: 25%; right: 50%; transform: translate(50%, -50%); width: 70vw; height: 70vw; }
  .bg-word { font-size: 30vw; bottom: auto; top: 13svh; right: 50%; transform: translateX(50%); }
  .slide-inner {
    inset: 0; grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; align-content: stretch; align-items: stretch; justify-items: center;
    gap: 1svh; padding: max(72px, calc(env(safe-area-inset-top) + 60px)) 22px calc(var(--strip-h) + 40px);
  }
  .watch { height: 100%; max-height: 42svh; min-height: 0; }
  .watch-float { transform: scale(1.12); transform-origin: 50% 100%; }
  .info { width: 100%; max-width: 480px; }
  .eyebrow { font-size: 10.5px; margin-bottom: 8px; }
  .title { font-size: clamp(22px, 7.2vw, 36px); }
  .size { font-size: 15px; }
  .tag-row { margin-top: 1.6svh; gap: 12px; }
  .badge { width: 54px; }
  .badge text { font-size: 11px; }
  .tagline { font-size: 14px; }
  .rule { margin-block: 1.6svh; }
  .label, .desc { display: none; }
  .specs { margin-top: 0; gap: 22px; }
  .specs b { font-size: 22px; }
  .specs span, .specs small { font-size: 11px; }
  .buy { margin-top: 2svh; gap: 14px 18px; }
  .btn { --h: 46px; padding: 0 22px; font-size: 14px; }
  .actions .btn-link { display: none; }

  .teaser { inset: auto 0 0 0; width: auto; height: var(--strip-h); }
  .teaser-card { top: 18%; left: 50%; width: 30vw; margin: 0 0 0 -15vw; transform: rotate(-5deg); }
  .teaser-label { bottom: auto; top: 50%; left: 22px; transform: translateY(-50%); font-size: 11px; }

  .deck-ui { inset: auto 0 calc(var(--strip-h) + 12px) 0; }
  .counter { bottom: 0; right: auto; left: 22px; font-size: 13px; }
  .counter i { width: 24px; }
  .arrows { display: none; }
  .dots { right: 22px; left: auto; bottom: 4px; flex-direction: row; }
  .strip-hit { inset: auto 0 0 0; width: auto; height: var(--strip-h); }

  .h-bgyear { font-size: 42vw; top: 30%; }
  .hist-inner {
    grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr) auto; align-items: stretch;
    gap: 1.6svh; padding: max(80px, calc(env(safe-area-inset-top) + 66px)) 22px max(22px, env(safe-area-inset-bottom));
  }
  .h-info { display: contents; }
  .h-info .eyebrow { display: none; }
  .h-title { grid-row: 1; font-size: clamp(28px, 8.4vw, 40px); }
  .h-title .m { display: inline-block; }
  .h-title .m + .m { margin-right: .25em; }
  .h-stage { grid-row: 2; height: auto; min-height: 0; }
  .h-card { --w: min(54vw, 36svh); }
  .h-chapter { grid-row: 3; margin-top: 0; }
  .h-year { font-size: 26px; }
  .h-name { margin-top: 6px; font-size: 19px; }
  .h-text { font-size: 13.5px; line-height: 1.9; min-height: 5.7em; }
  .h-controls { grid-row: 4; margin-top: 0; }

  .footer { border-radius: 22px 22px 0 0; gap: 22px; padding-top: 30px; }
  .f-top { gap: 20px; }
  .f-slogan { font-size: 32px; }
  .f-cols { grid-template-columns: 1fr 1fr; gap: 16px 20px; }
  .f-cols li { font-size: 13px; line-height: 1.9; }
  .f-cols h3 { margin-bottom: 6px; }
  .f-cols > div:last-child { display: none; }
  .f-bottom { font-size: 12px; padding-top: 14px; }
}

@media (max-width: 820px) and (max-height: 700px) {
  .tag-row, .rule { display: none; }
  .specs { margin-top: 4px; }
  .watch { max-height: 34svh; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .badge svg { animation: none; }
}

/* ==========================================================
   STATIC FALLBACK (motion library failed to load)
   ========================================================== */
.static body { overflow: auto; }
.static .preloader, .static .wipe, .static .cursor, .static .teaser, .static .deck-ui, .static .strip-hit, .static .h-controls, .static .hero-shade, .static .foot-shade { display: none; }
.static .is-loading .brand, .static .is-loading .tools { opacity: 1; }
.static .stage, .static .panel, .static .layer, .static .slide-inner, .static .hist-inner { position: relative; inset: auto; }
.static .panel, .static .layer { min-height: 100vh; transform: none; clip-path: none; visibility: visible; }
.static .footer { min-height: 0; }
.static .slide-inner, .static .hist-inner { min-height: 100vh; }
.static .h-stage { display: flex; gap: 20px; overflow-x: auto; height: auto; perspective: none; }
.static .h-card { position: relative; top: auto; left: auto; margin: 0; flex: none; }
.static .h-chapter { display: none; }

/* ==========================================================
   WordPress admin bar (logged-in users)
   ========================================================== */
.admin-bar .stage, .admin-bar .site-header, .admin-bar .preloader { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .stage, .admin-bar .site-header, .admin-bar .preloader { top: 46px; }
}
html.js body.am-front { margin: 0; }
