:root {
  --bg: #07080c;
  --stage: #040405;
  --surface: #0d0f15;
  --ink: #e9e4d8;
  --muted: #a3a8b3;
  --dim: #7a7f8c;
  --gold: #c9a96e;
  --gold-soft: rgba(201, 169, 110, 0.55);
  --hairline: rgba(233, 228, 216, 0.1);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --container: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(96px, 14vh, 160px);
  --nav-h: 80px;
  --dur-fast: 0.2s;
  --dur-base: 0.4s;
  --dur-slow: 0.8s;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.625, 0.05, 0, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 300 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
p,
figure,
dl,
dd,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--gold);
  color: var(--bg);
}

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

.skip {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--gold);
  color: var(--bg);
  font: 500 11px/1 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  transition: top var(--dur-base) var(--ease-out);
}

.skip:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section) 0;
}

/* ── type ── */
.eyebrow {
  font: 500 12px/1.4 var(--sans);
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow--gold {
  color: var(--gold);
}

.h1,
.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.01em;
}

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 5.6vw, 84px);
  line-height: 1;
  letter-spacing: -0.01em;
}

.lead {
  max-width: 34em;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.75;
  color: var(--muted);
}

.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.line > span {
  display: block;
}

/* ── interactive language ── */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border: 1px solid var(--gold-soft);
  background: transparent;
  color: var(--gold);
  font: 500 11px/1 var(--sans);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    color var(--dur-base) var(--ease-inout),
    border-color var(--dur-base) var(--ease-inout);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-inout);
}

.btn:hover,
.btn:focus-visible {
  color: var(--bg);
  border-color: var(--gold);
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: translateY(0);
}

.btn--large {
  height: 56px;
  padding: 0 44px;
}

.link {
  position: relative;
  text-decoration: none;
}

.link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-inout);
}

.link:hover::after,
.link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ── nav ── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition:
    height var(--dur-base) var(--ease-inout),
    background-color var(--dur-base) var(--ease-inout),
    border-color var(--dur-base) var(--ease-inout);
}

.nav.is-scrolled {
  height: 64px;
  background: rgba(7, 8, 12, 0.62);
  border-color: var(--hairline);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font: 500 14px/1 var(--sans);
  letter-spacing: 0.42em;
  text-decoration: none;
}

.mark {
  flex: none;
  width: 16px;
  height: 22px;
  color: var(--gold);
}

.nav__links {
  display: flex;
  gap: 40px;
  color: var(--muted);
  font: 400 11px/1 var(--sans);
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.nav__links a {
  transition: color var(--dur-base) var(--ease-inout);
}

.nav__links a:hover {
  color: var(--ink);
}

.nav__cta {
  height: 40px;
  padding: 0 18px;
}

/* ── assembly set piece ── */
.assembly {
  position: relative;
  height: 520vh;
  background: var(--stage);
}

.assembly__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--stage) url("/works/haldric/assets/img/hero-poster-1920.webp") center / cover no-repeat;
}

.assembly__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.assembly__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 4, 5, 0.72) 0%, rgba(4, 4, 5, 0) 34%, rgba(4, 4, 5, 0) 66%, rgba(4, 4, 5, 0.72) 100%),
    linear-gradient(180deg, rgba(4, 4, 5, 0.55) 0%, rgba(4, 4, 5, 0) 20%, rgba(4, 4, 5, 0) 76%, rgba(4, 4, 5, 0.82) 100%);
}

.hero {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gutter);
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: -1;
  width: min(920px, 92vw);
  height: min(480px, 52vh);
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(4, 4, 5, 0.74), rgba(4, 4, 5, 0));
}

.hero .eyebrow {
  margin-bottom: 26px;
}

.hero__title {
  font-size: clamp(60px, 9.4vw, 148px);
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.9);
}

.hero__title .line--accent > span {
  color: var(--gold);
  font-size: 0.84em;
  font-style: italic;
}

.hero__cue {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(36px, 7vh, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font: 400 10px/1 var(--sans);
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

.hero__cue i {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--ink), rgba(233, 228, 216, 0));
  transform-origin: top;
  animation: cue 2.4s var(--ease-inout) infinite;
}

@keyframes cue {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  45% {
    transform: scaleY(1);
    transform-origin: top;
  }
  55% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

.chapter {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: min(460px, 38vw);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.js .chapter {
  opacity: 0;
  visibility: hidden;
}

.chapter--left {
  left: var(--gutter);
}

.chapter--right {
  right: var(--gutter);
  text-align: right;
}

.chapter .eyebrow {
  margin-bottom: 22px;
}

.chapter__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 4.6vw, 72px);
  line-height: 1;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.8);
}

.chapter__title span {
  display: block;
}

.chapter__lead {
  max-width: 30em;
  margin-top: 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.chapter--right .chapter__lead {
  margin-left: auto;
}

.chapter__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  color: var(--dim);
  font: 400 11px/1.4 var(--sans);
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.chapter--right .chapter__meta {
  justify-content: flex-end;
}

.chapter__meta i {
  flex: none;
  width: 44px;
  height: 1px;
  background: var(--gold);
}

.chapter--right .chapter__meta i {
  order: 2;
}

.assembly__counter {
  position: absolute;
  right: var(--gutter);
  bottom: 40px;
  z-index: 3;
  color: var(--muted);
  font: 400 11px/1 var(--sans);
  letter-spacing: 0.3em;
}

.assembly__progress {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 24px;
  z-index: 3;
  height: 1px;
  background: var(--hairline);
}

.assembly__progress span {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
}

/* ── piece ── */
.piece__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.piece__text .eyebrow {
  margin-bottom: 24px;
}

.piece__text .h2 {
  margin-bottom: 28px;
}

.specs {
  margin-top: 40px;
  border-top: 1px solid var(--hairline);
}

.specs div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}

.specs dt {
  color: var(--dim);
  font: 400 11px/1.6 var(--sans);
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.specs dd {
  color: var(--ink);
  font-size: 15px;
  text-align: right;
}

.frame {
  position: relative;
  overflow: hidden;
  background: #050506;
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.piece__media {
  aspect-ratio: 16 / 10;
}

/* ── wearer ── */
.wearer {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.wearer__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.wearer__media img {
  position: absolute;
  left: 0;
  top: -10%;
  width: 100%;
  height: 120%;
  object-fit: cover;
}

.wearer::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 8, 12, 0.88) 0%, rgba(7, 8, 12, 0.4) 45%, rgba(7, 8, 12, 0) 70%),
    linear-gradient(0deg, rgba(7, 8, 12, 0.92) 0%, rgba(7, 8, 12, 0) 42%);
}

.wearer__text {
  position: relative;
  z-index: 1;
  padding-bottom: var(--section);
}

.wearer__text .eyebrow,
.wearer__text .h2 {
  margin-bottom: 24px;
}

/* ── palette ── */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: clamp(40px, 6vw, 72px);
  text-align: center;
}

.section-head .eyebrow {
  margin-bottom: 22px;
}

.palette__media {
  aspect-ratio: 16 / 9;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 40px;
  margin-top: 40px;
  color: var(--muted);
  font: 400 12px/1 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.swatches li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 1px rgba(233, 228, 216, 0.25);
}

/* ── detail ── */
.detail {
  position: relative;
  height: 220vh;
}

.detail__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.detail__media {
  position: absolute;
  inset: 0;
}

.detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 62% 50%;
}

.detail__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 8, 12, 0.92) 0%, rgba(7, 8, 12, 0.55) 38%, rgba(7, 8, 12, 0) 64%);
}

.detail__text {
  position: relative;
  z-index: 1;
}

.detail__text .eyebrow {
  margin-bottom: 24px;
}

.stats {
  display: flex;
  gap: clamp(24px, 4vw, 64px);
  margin-top: 48px;
}

.stats li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 10em;
}

.stats strong {
  color: var(--ink);
  font: 300 clamp(40px, 4vw, 60px) / 1 var(--serif);
}

.stats span {
  color: var(--muted);
  font: 400 11px/1.5 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ── viewing ── */
.viewing {
  border-top: 1px solid var(--hairline);
  text-align: center;
}

.viewing__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mark--lg {
  width: 22px;
  height: 30px;
  margin-bottom: 22px;
}

.viewing .eyebrow {
  margin-bottom: 24px;
}

.viewing .h1 {
  font-size: clamp(56px, 8vw, 120px);
}

.viewing .lead {
  margin: 32px auto 0;
}

.booking {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(760px, 100%);
  margin-top: 56px;
  text-align: left;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field label {
  color: var(--dim);
  font: 400 10px/1 var(--sans);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.field input,
.field select {
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--hairline);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  font: 300 15px/1 var(--sans);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--dur-base) var(--ease-inout);
}

.field select {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23c9a96e'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
}

.field input[aria-invalid="true"] {
  border-color: #c0645a;
}

.booking .btn {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 12px;
}

.booking__status {
  grid-column: 1 / -1;
  min-height: 1.7em;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* ── footer ── */
.footer {
  padding: 72px 0 40px;
  border-top: 1px solid var(--hairline);
}

.footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 48px;
}

.footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(40px, 7vw, 112px);
}

.footer__cols div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.footer__label {
  margin-bottom: 6px;
  color: var(--gold);
  font: 500 10px/1 var(--sans);
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 40px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.footer__bottom a {
  color: var(--muted);
}

/* ── ambient grain ── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

/* ── reveal starting states (only when JS runs) ── */
.js [data-reveal]:not([data-reveal="stagger"]),
.js [data-reveal="stagger"] > * {
  opacity: 0;
}

/* ── responsive ── */
@media (max-width: 900px) {
  .nav__links {
    display: none;
  }

  .piece__grid {
    grid-template-columns: 1fr;
  }

  .piece__media {
    order: -1;
  }
}

@media (max-width: 767px) {
  .hero .eyebrow {
    font-size: 10px;
    letter-spacing: 0.24em;
    white-space: nowrap;
  }

  .assembly {
    height: 460vh;
  }

  .assembly__shade {
    background: linear-gradient(180deg, rgba(4, 4, 5, 0.5) 0%, rgba(4, 4, 5, 0) 18%, rgba(4, 4, 5, 0) 52%, rgba(4, 4, 5, 0.94) 100%);
  }

  .chapter {
    top: auto;
    bottom: 76px;
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
    justify-content: flex-end;
    text-align: left;
  }

  .chapter--right {
    text-align: left;
  }

  .chapter--right .chapter__meta {
    justify-content: flex-start;
  }

  .chapter--right .chapter__meta i {
    order: 0;
  }

  .chapter__lead {
    display: none;
  }

  .detail__stage {
    align-items: flex-end;
    padding-bottom: 64px;
  }

  .detail__stage::after {
    background: linear-gradient(0deg, rgba(7, 8, 12, 0.95) 0%, rgba(7, 8, 12, 0.6) 55%, rgba(7, 8, 12, 0.2) 100%);
  }

  .stats {
    flex-direction: column;
    gap: 20px;
  }

  .booking {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__cue i {
    animation: none;
  }
}
