/* OBSIDIENNE — luxury cinematic demo. One register: near-black, bone, one amber accent. */

@font-face {
  font-family: "Sentient";
  src: url("/fonts/Sentient-Variable.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: "Sentient";
  src: url("/fonts/Sentient-VariableItalic.woff2") format("woff2");
  font-weight: 200 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("/fonts/GeneralSans-Variable.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}

:root {
  --ink: #0e0e0c;
  --bone: #f2ede3;
  --bone-dim: #a89f90;   /* 4.6:1+ on --ink at text sizes used */
  --amber: #c9a26b;
  --hair: rgba(242, 237, 227, 0.14);
  --serif: "Sentient", Georgia, "Times New Roman", serif;
  --sans: "General Sans", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); /* expo.out */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 380;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--amber); color: var(--ink); }

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.skip {
  position: fixed; top: -3rem; left: 1rem; z-index: 200;
  background: var(--bone); color: var(--ink);
  padding: 0.6rem 1rem; text-decoration: none;
  transition: top 0.2s;
}
.skip:focus { top: 1rem; }

/* ---------- canvas ---------- */
#stage, #heroStage {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  display: block;
}
#heroStage { visibility: hidden; } /* shown by JS only while the hero act is on screen */

/* ---------- grade: grain + vignette ---------- */
.grade {
  position: fixed; inset: 0; z-index: 50; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 42%, transparent 55%, rgba(6, 6, 5, 0.55) 100%),
    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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: cover, 120px 120px;
  opacity: 0.38;
  mix-blend-mode: overlay;
}

/* ---------- reading progress (native scroll-driven CSS, no JS) ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 120;
  background: var(--amber);
  transform-origin: 0 50%;
  scale: 0 1;
}
@supports (animation-timeline: scroll()) {
  .progress {
    animation: progressGrow linear both;
    animation-timeline: scroll(root);
  }
  @keyframes progressGrow { from { scale: 0 1; } to { scale: 1 1; } }
}

/* ---------- intro gate ---------- */
.gate {
  position: fixed; inset: 0; z-index: 150;
  background: var(--ink);
  display: grid; place-content: center; justify-items: center;
  gap: 1.4rem;
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}
.gate.is-done { opacity: 0; visibility: hidden; }
.gate__mark {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.35em; text-indent: 0.35em;
}
.gate__line { width: min(180px, 40vw); height: 1px; background: var(--hair); overflow: hidden; }
.gate__line span { display: block; height: 100%; width: 100%; background: var(--amber); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.3s linear; }
.gate__skip {
  background: none; border: 1px solid var(--hair); color: var(--bone-dim);
  font: inherit; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.45rem 1.1rem; cursor: pointer;
}
.gate__skip:hover { color: var(--bone); border-color: var(--bone-dim); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.4rem clamp(1.2rem, 4vw, 3rem);
  mix-blend-mode: difference;
}
.nav__mark {
  font-family: var(--serif); font-weight: 350; text-decoration: none;
  letter-spacing: 0.32em; text-indent: 0.32em; font-size: 0.85rem;
}
.nav__link {
  text-decoration: none; font-size: 0.78rem; font-weight: 430;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-left: 1.8rem; position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform 0.3s var(--ease-out);
}
.nav__link:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

/* ---------- acts (sticky pin-and-scrub) ---------- */
.act { position: relative; z-index: 1; height: 320vh; }
.act--dissolve { height: 280vh; }
.act--gallery { height: 320vh; }
.act__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: grid; align-content: center;
  padding: 0 clamp(1.2rem, 6vw, 6rem);
}
.beat {
  grid-area: 1 / 1;
  max-width: 34ch;
  opacity: 0;
  will-change: opacity, transform;
}
.act--hero .beat { max-width: none; }

.eyebrow {
  font-size: 0.72rem; font-weight: 460;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.3rem;
}
.display {
  font-family: var(--serif); font-weight: 260;
  font-size: clamp(2.8rem, 9.5vw, 8.2rem);
  line-height: 1.02; letter-spacing: -0.015em;
  text-wrap: balance;
  max-width: 12ch;
}
.display em { font-style: italic; font-weight: 300; color: var(--amber); }
.display--sm { font-size: clamp(2.2rem, 6vw, 4.8rem); }
.lede {
  margin-top: 1.6rem; max-width: 38ch;
  color: var(--bone-dim); font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  text-wrap: pretty;
}

.hint {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--bone-dim);
  display: grid; justify-items: center; gap: 0.7rem;
}
.hint__line { width: 1px; height: 3.2rem; background: linear-gradient(var(--bone-dim), transparent); }

/* ---------- editorial ---------- */
.editorial {
  position: relative; z-index: 2;
  background: var(--ink);
  padding: clamp(7rem, 16vh, 13rem) clamp(1.2rem, 6vw, 6rem);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.editorial__grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
  max-width: 72rem; margin: 0 auto;
}
@media (min-width: 860px) {
  .editorial__grid { grid-template-columns: 1.35fr 1fr; align-items: end; }
  .editorial__grid .eyebrow { grid-column: 1 / -1; }
}
.headline {
  font-family: var(--serif); font-weight: 280;
  font-size: clamp(1.9rem, 4.2vw, 3.6rem);
  line-height: 1.12; letter-spacing: -0.01em;
  text-wrap: balance;
  max-width: 22ch;
}
.editorial__copy { color: var(--bone-dim); max-width: 44ch; display: grid; gap: 1.1rem; text-wrap: pretty; }

/* word-mask reveals */
.reveal .w { display: inline-block; overflow: clip; vertical-align: bottom; }
.reveal .w > span { display: inline-block; transform: translateY(115%); }
.reveal.is-in .w > span { transition: transform 0.9s var(--ease-out); transform: translateY(0); }

/* ---------- media: luxury loading — images arrive, never pop ---------- */
.media img, .media video {
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s var(--ease-out), transform 1.4s var(--ease-out);
}
.media.is-in img, .media.is-in video { opacity: 1; transform: scale(1); }

.editorial__accent {
  max-width: 260px;
  margin-top: 1rem;
  position: relative; z-index: 3; /* it deliberately hangs over the next section */
}
.editorial__accent img { width: 100%; height: auto; display: block; filter: grayscale(0.2) contrast(1.02); }
@media (min-width: 860px) {
  /* the one deliberate grid violation: hangs below the copy column, offset left */
  .editorial__accent { grid-column: 2; justify-self: start; margin: 2.5rem 0 -7rem -3rem; }
}

/* ---------- full-bleed figures ---------- */
.bleed {
  position: relative; z-index: 2;
  background: #0a0a08; /* dominant ground behind the image while it loads */
  overflow: clip;
}
.bleed__frame { height: min(92vh, 56rem); overflow: clip; }
.bleed__frame img {
  width: 100%; height: 118%; object-fit: cover; display: block;
  filter: saturate(0.92) contrast(1.01);
}
@supports (animation-timeline: view()) {
  /* compositor parallax: the taller image slides inside its clipped frame */
  /* NOTE: animation-timeline must come after any animation shorthand or it is reset */
  .bleed__frame img { animation: bleedPar linear both; animation-timeline: view(); }
  @keyframes bleedPar { from { transform: translateY(-9%) scale(1.04); } to { transform: translateY(0%) scale(1); } }
  /* the animation owns transform; .media opacity fade still applies untouched */
}
.bleed__caption {
  position: absolute; left: clamp(1.2rem, 6vw, 6rem); bottom: 2rem;
  color: var(--bone); font-size: 0.9rem;
  display: grid; gap: 0.5rem;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.6);
}
.bleed__caption .eyebrow { margin: 0; }
.bleed__frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.bleed--pull .bleed__frame img, .bleed--pull .bleed__frame video { filter: saturate(1.02) contrast(1.02) brightness(0.82); }
.bleed__toggle { position: absolute; right: clamp(1.2rem, 6vw, 6rem); bottom: 1.8rem; z-index: 2; }
.bleed__pull {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: 1.2rem;
  text-align: center;
}
.bleed__line {
  font-family: var(--serif); font-weight: 270;
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  letter-spacing: -0.01em; color: var(--bone);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.55);
}
.bleed__line em { font-style: italic; color: var(--amber); }

/* ---------- film band ---------- */
.filmband { position: relative; z-index: 2; background: #060605; overflow: clip; }
.filmband video { width: 100%; height: min(78vh, 46rem); object-fit: cover; display: block; }
.filmband__caption {
  position: absolute; left: clamp(1.2rem, 6vw, 6rem); right: clamp(1.2rem, 6vw, 6rem); bottom: 1.8rem;
  display: flex; justify-content: space-between; align-items: center;
}
.filmband__toggle {
  background: rgba(14, 14, 12, 0.55); border: 1px solid var(--hair); color: var(--bone);
  font: inherit; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.5rem 1.2rem; cursor: pointer; backdrop-filter: none;
}
.filmband__toggle:hover { border-color: var(--bone-dim); }

/* ---------- collection cards ---------- */
.collection {
  position: relative; z-index: 2;
  background: var(--ink);
  padding: clamp(7rem, 16vh, 13rem) clamp(1.2rem, 6vw, 6rem);
  border-bottom: 1px solid var(--hair);
}
.collection__head { max-width: 72rem; margin: 0 auto clamp(3rem, 7vh, 5rem); }
.cards {
  list-style: none;
  display: grid; gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  max-width: 72rem; margin: 0 auto;
}
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--ink);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  display: grid; gap: 1.2rem;
  transition: background 0.5s var(--ease-out);
}
.card:hover { background: #14130f; }
.card__swatch {
  display: block; aspect-ratio: 4 / 5; overflow: clip; background: #0a0a08;
}
.card__swatch img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(0.9);
  transition: transform 0.9s var(--ease-out), opacity 1.1s var(--ease-out);
}
.card:hover .card__swatch img { transform: scale(1.05); }
.card__name { font-family: var(--serif); font-weight: 320; font-size: 1.35rem; }
.card__note { color: var(--bone-dim); font-size: 0.85rem; letter-spacing: 0.04em; }

/* ---------- capability ---------- */
.capability {
  position: relative; z-index: 2;
  background: var(--ink);
  border-top: 1px solid var(--hair);
  padding: clamp(7rem, 16vh, 13rem) clamp(1.2rem, 6vw, 6rem);
  max-width: none;
}
.capability > * { max-width: 72rem; margin-left: auto; margin-right: auto; }
.capability .headline { margin-top: 1.2rem; }
.capability__grid { display: grid; gap: 3rem; align-items: end; }
@media (min-width: 900px) { .capability__grid { grid-template-columns: 1.4fr 1fr; } }
.capability__portrait { max-width: 340px; justify-self: end; }
.capability__portrait img { width: 100%; height: auto; display: block; filter: grayscale(1) contrast(1.05); }

.specs {
  margin-top: clamp(3rem, 7vh, 5rem);
  display: grid; gap: 2.6rem 3rem;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* known count: 4 → 2×2, no orphan */
}
@media (max-width: 719px) { .specs { grid-template-columns: 1fr; } }
.spec dt {
  font-size: 0.72rem; font-weight: 470; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 0.7rem;
}
.spec dd { color: var(--bone-dim); max-width: 40ch; text-wrap: pretty; }
.capability__foot { margin-top: clamp(3.4rem, 8vh, 6rem); display: grid; gap: 1.3rem; justify-items: start; }
.capability__foot p { color: var(--bone-dim); max-width: 52ch; text-wrap: pretty; }
.capability__offer { color: var(--bone); font-family: var(--serif); font-size: 1.15rem; }
.btn {
  display: inline-block; text-decoration: none;
  font-size: 0.78rem; font-weight: 470; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink); background: var(--bone);
  padding: 1.05rem 2.6rem;
  transition: background 0.3s var(--ease-out);
  will-change: transform;
}
.btn:hover { background: var(--amber); }
.btn > span { display: inline-block; }

/* ---------- footer ---------- */
.footer {
  position: relative; z-index: 2;
  background: var(--ink);
  border-top: 1px solid var(--hair);
  padding: 3rem clamp(1.2rem, 6vw, 6rem) 3.6rem;
  display: grid; gap: 0.8rem;
  color: var(--bone-dim); font-size: 0.85rem;
}
.footer__fine { font-size: 0.72rem; color: #878070; } /* 4.92:1 on --ink — AA at small sizes, computed not eyeballed */

/* ---------- cursor ---------- */
.cursor { display: none; }
@media (pointer: fine) {
  .cursor { display: block; position: fixed; top: 0; left: 0; z-index: 160; pointer-events: none; mix-blend-mode: difference; }
  .cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; translate: -50% -50%; }
  .cursor__dot { width: 5px; height: 5px; background: var(--bone); }
  .cursor__ring { width: 34px; height: 34px; border: 1px solid rgba(242, 237, 227, 0.5); transition: width 0.25s, height 0.25s; }
  .cursor.is-link .cursor__ring { width: 52px; height: 52px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .gate { display: none; }
  .media img, .media video { opacity: 1; transform: none; transition: none; animation: none; }
  .reveal .w > span { transform: none; transition: none; }
  .beat { transition: opacity 0.4s linear; }
  .cursor { display: none; }
  .card__swatch, .card:hover .card__swatch { transition: none; transform: none; }
  .hint__line { display: none; }
}
