/* ====================================================================
   HEARTWOOD — production page styles
   Palette: pale pinewood, truth-gold, dark amber, archive teal-black.
   Wood, ocean, amber, wind — a complete visual sentence.
   ==================================================================== */

:root {
  --ink:        #0b0a08;
  --ink-2:      #12100c;
  --ink-3:      #191610;
  --teal:       #071518;
  --line:       rgba(232, 214, 180, 0.10);
  --line-2:     rgba(232, 214, 180, 0.20);
  --pine:       #e8dcc4;
  --pine-soft:  #b9ad95;
  --pine-dim:   #857b68;
  --gold:       #d9a441;
  --gold-soft:  #ecc678;
  --amber-dk:   #8a4a12;
  --amber-glow: rgba(196, 116, 26, 0.35);
  --pink:       #e8a0b4;
  --maxw:       1080px;
  --font-disp:  "Fraunces", Georgia, serif;
  --font-body:  "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--pine);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
em { font-style: italic; }
img, video { display: block; max-width: 100%; }

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

.kicker {
  font-size: .78rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.kicker--amber { color: var(--gold-soft); }
.kicker--pink  { color: var(--pink); }

/* ---------------------------- NAV ---------------------------- */
.hnav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1.2rem, 4vw, 3rem);
  background: rgba(11, 10, 8, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.hnav__brand {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-disp); font-weight: 500; font-size: 1.02rem;
}
.hnav__mark { color: var(--gold); display: flex; }
.hnav__links { display: flex; gap: clamp(.9rem, 2.6vw, 1.8rem); font-size: .9rem; color: var(--pine-soft); flex-wrap: wrap; }
.hnav__links a { transition: color .2s; }
.hnav__links a:hover { color: var(--gold-soft); }

/* ---------------------------- HERO ---------------------------- */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.hero__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(90rem 50rem at 50% 110%, rgba(11,10,8,0.2), transparent 60%),
    linear-gradient(to bottom, rgba(11,10,8,0.55) 0%, rgba(11,10,8,0.25) 40%, rgba(11,10,8,0.72) 100%);
}
.hero__content { position: relative; z-index: 2; padding: 6rem 1.4rem 4rem; max-width: 880px; }
.hero__eyebrow {
  font-size: .8rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 1.6rem;
  text-shadow: 0 1px 12px rgba(0,0,0,.8);
}
.hero__title {
  font-family: var(--font-disp); font-weight: 300;
  font-size: clamp(3.2rem, 11vw, 7.5rem); line-height: .98;
  letter-spacing: .08em; color: #f2ead8;
  text-shadow: 0 2px 40px rgba(0,0,0,.65);
}
.hero__tag {
  font-family: var(--font-disp); font-style: italic; font-weight: 300;
  font-size: clamp(1.1rem, 2.6vw, 1.5rem); color: var(--gold-soft);
  margin-top: 1.3rem; text-shadow: 0 1px 14px rgba(0,0,0,.9);
}
.hero__sub {
  color: #cfc4ac; font-size: clamp(.95rem, 1.8vw, 1.08rem); margin-top: .7rem;
  text-shadow: 0 1px 10px rgba(0,0,0,.9);
}
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.4rem; }
.hbtn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .78rem 1.6rem; border-radius: 999px;
  font-size: .94rem; font-weight: 500; letter-spacing: .02em;
  border: 1px solid transparent;
  transition: transform .15s, background .2s, border-color .2s, color .2s;
}
.hbtn:hover { transform: translateY(-2px); }
.hbtn--gold { background: var(--gold); color: var(--ink); }
.hbtn--gold:hover { background: var(--gold-soft); }
.hbtn--ghost { border-color: rgba(232,214,180,.35); color: var(--pine); background: rgba(11,10,8,.25); backdrop-filter: blur(3px); }
.hbtn--ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

.hero__scroll {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid rgba(232,214,180,.4);
  border-radius: 14px; z-index: 2;
}
.hero__scroll span {
  position: absolute; top: 7px; left: 50%; width: 3px; height: 8px;
  margin-left: -1.5px; border-radius: 2px; background: var(--gold-soft);
  animation: scrollhint 2.2s ease-in-out infinite;
}
@keyframes scrollhint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  55% { transform: translateY(12px); opacity: 0; }
  56% { transform: translateY(0); opacity: 0; }
}

/* ---------------------------- OCEAN (the film) ---------------------------- */
.ocean { position: relative; overflow: hidden; background: var(--teal); }
.ocean__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .5;
}
.ocean__shade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(7,21,24,.82), rgba(7,21,24,.45) 45%, rgba(11,10,8,.92) 100%);
}
.ocean__inner {
  position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(5rem, 12vh, 8rem) clamp(1.2rem, 4vw, 3rem);
}
.ocean__lead {
  font-family: var(--font-disp); font-weight: 300;
  font-size: clamp(1.7rem, 4vw, 2.7rem); line-height: 1.2; letter-spacing: -.01em;
  max-width: 24ch; color: #eef0e8;
  text-shadow: 0 1px 18px rgba(0,0,0,.7);
}
.ocean__cols {
  margin-top: 2.4rem; display: grid; gap: 1.6rem;
  color: #c6cec9; font-size: 1.02rem; max-width: 100%;
  text-shadow: 0 1px 10px rgba(0,0,0,.75);
}
@media (min-width: 860px) { .ocean__cols { grid-template-columns: 1fr 1fr 1fr; gap: 2.2rem; } }
.ocean__meta {
  margin-top: 2.6rem; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase;
  color: #7f948f;
}

/* ---------------------------- AMBER (inward nose) ---------------------------- */
.amber { position: relative; overflow: hidden; }
.amber__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.amber__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(60rem 40rem at 22% 50%, rgba(11,10,8,.88), rgba(11,10,8,.45) 55%, rgba(11,10,8,.3) 100%),
    linear-gradient(to bottom, rgba(11,10,8,.75), transparent 25%, transparent 75%, rgba(11,10,8,.85));
}
.amber__inner {
  position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(6rem, 16vh, 10rem) clamp(1.2rem, 4vw, 3rem);
  max-width: calc(var(--maxw));
}
.amber__inner h2 {
  font-family: var(--font-disp); font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.4rem); color: #f5ead2;
  text-shadow: 0 2px 22px rgba(0,0,0,.8);
}
.amber__text {
  margin-top: 1.4rem; max-width: 58ch; color: #e3d3b6; font-size: 1.05rem;
  text-shadow: 0 1px 12px rgba(0,0,0,.85);
}
.amber__text em { color: var(--gold-soft); }
.amber__principles {
  margin-top: 2.2rem; font-family: var(--font-disp); font-style: italic;
  font-size: clamp(1.02rem, 2vw, 1.2rem); line-height: 1.9; color: var(--gold-soft);
  text-shadow: 0 1px 12px rgba(0,0,0,.9);
}

/* ---------------------------- SECTIONS ---------------------------- */
.hsection { max-width: var(--maxw); margin: 0 auto; padding: clamp(4rem, 10vh, 7rem) clamp(1.2rem, 4vw, 3rem); }
.hsection__head { margin-bottom: clamp(2.2rem, 5vh, 3.4rem); }
.hsection__head h2 {
  font-family: var(--font-disp); font-weight: 300;
  font-size: clamp(1.8rem, 4.2vw, 2.8rem); line-height: 1.15; letter-spacing: -.01em;
}
.hsection__sub { color: var(--pine-soft); margin-top: 1rem; font-size: 1.02rem; max-width: 62ch; }

/* pairs — Collodi correspondences */
.pairs { display: grid; gap: 1.1rem; }
@media (min-width: 800px) { .pairs { grid-template-columns: 1fr 1fr; } }
.pair {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 1.5rem 1.6rem; background: var(--ink-2);
  transition: border-color .25s;
}
.pair:hover { border-color: var(--line-2); }
.pair__old {
  font-family: var(--font-disp); font-style: italic; font-size: 1.06rem;
  color: var(--pine); line-height: 1.5;
}
.pair__new {
  margin-top: .9rem; padding-top: .9rem; border-top: 1px dashed var(--line);
  color: var(--pine-soft); font-size: .97rem;
}

/* wide strip figure */
.strip { margin-top: clamp(2.4rem, 5vh, 3.6rem); }
.strip img { width: 100%; border-radius: 14px; border: 1px solid var(--line); }
.strip figcaption { margin-top: .7rem; font-size: .85rem; color: var(--pine-dim); }

/* the one wrong note */
.wrongnote {
  margin-top: clamp(2.4rem, 5vh, 3.6rem);
  border: 1px solid rgba(232,160,180,.28); border-radius: 16px;
  background: linear-gradient(160deg, rgba(70,32,48,.30), rgba(24,14,20,.6));
  overflow: hidden;
}
.wrongnote__media img { width: 100%; }
.wrongnote__text { padding: 1.6rem 1.8rem 1.8rem; color: #d9c3ca; font-size: .99rem; }
.wrongnote__text .kicker { margin-bottom: .7rem; }
.wrongnote__text em { color: var(--pink); }

.rule-line {
  margin-top: clamp(2.4rem, 5vh, 3.4rem); text-align: center;
  font-family: var(--font-disp); font-style: italic;
  color: var(--pine-soft); font-size: 1.05rem;
}

/* ---------------------------- METER ---------------------------- */
.hsection--meter { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: none; background: var(--ink-2); }
.meter__head { max-width: var(--maxw); margin: 0 auto; }
.meter__head h2 {
  font-family: var(--font-disp); font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}
.meter__head > p { margin-top: 1.1rem; color: var(--pine-soft); font-size: 1.02rem; max-width: 66ch; }
.meter {
  max-width: var(--maxw); margin: clamp(2.2rem, 5vh, 3.2rem) auto 0;
  display: grid; gap: clamp(1.8rem, 4vw, 3.4rem); align-items: center;
}
@media (min-width: 860px) { .meter { grid-template-columns: 5fr 6fr; } }
.meter__media video, .meter__media img {
  width: 100%; border-radius: 16px; border: 1px solid var(--line-2);
  box-shadow: 0 18px 44px -26px rgba(0,0,0,.9), 0 0 46px -18px var(--amber-glow);
}
.meter__media figcaption {
  position: relative; z-index: 2;
  margin-top: 2rem; font-size: .9rem; color: var(--pine-soft);
}
.verse {
  padding-left: clamp(1.2rem, 3vw, 2rem); border-left: 2px solid var(--gold);
  font-family: var(--font-disp); font-style: italic;
  font-size: clamp(1.35rem, 2.8vw, 1.9rem); line-height: 1.8; color: var(--gold-soft);
  text-wrap: balance;
}
.verse__attr { margin-top: 1.1rem; padding-left: clamp(1.2rem, 3vw, 2rem); font-size: .88rem; color: var(--pine-dim); }

/* ---------------------------- CAST ---------------------------- */
.cast { display: grid; gap: 1.4rem; }
@media (min-width: 700px)  { .cast { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1020px) { .cast { grid-template-columns: repeat(4, 1fr); } }
.card {
  display: flex; flex-direction: column;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.card__media { aspect-ratio: 1 / 1; overflow: hidden; background: var(--ink-3); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card__role { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; }
.card__body h3 { font-family: var(--font-disp); font-weight: 500; font-size: 1.22rem; line-height: 1.2; margin-bottom: .55rem; }
.card__body p { color: var(--pine-soft); font-size: .93rem; }
.card__note {
  margin-top: auto; padding-top: 1rem;
  font-style: italic; font-size: .85rem !important; color: var(--pine-dim) !important;
}
.card--wood {
  background:
    radial-gradient(18rem 14rem at 85% -10%, rgba(217,164,65,.10), transparent 60%),
    linear-gradient(165deg, #1a150d, #120f0a);
  justify-content: flex-start;
}
.card--wood .card__body { padding-top: 1.6rem; }

/* ---------------------------- PROCESS ---------------------------- */
.hsection--process { border-top: 1px solid var(--line); max-width: none; background: var(--ink); }
.hsection--process .hsection__head,
.proc { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.proc {
  display: grid; gap: clamp(1.6rem, 4vw, 3rem); align-items: center;
  margin-top: clamp(2.2rem, 5vh, 3.4rem);
}
@media (min-width: 860px) {
  .proc { grid-template-columns: 7fr 5fr; }
  .proc--flip { grid-template-columns: 5fr 7fr; }
  .proc--flip .proc__media { order: 2; }
  .proc--flip .proc__text { order: 1; }
}
.proc__media img {
  width: 100%; border-radius: 14px; border: 1px solid var(--line);
  box-shadow: 0 24px 60px -30px rgba(0,0,0,.9);
}
.proc__media--bunny { max-width: 380px; justify-self: center; }
.proc__media--bunny img { border-color: rgba(196,116,26,.45); box-shadow: 0 24px 60px -30px rgba(0,0,0,.9), 0 0 60px -20px var(--amber-glow); }
.proc__text h3 { font-family: var(--font-disp); font-weight: 400; font-size: clamp(1.35rem, 2.6vw, 1.8rem); line-height: 1.25; }
.proc__text p { margin-top: 1rem; color: var(--pine-soft); font-size: .99rem; }
.proc__text em { color: var(--gold-soft); }

/* ---------------------------- PROVENANCE ---------------------------- */
.prov { border-top: 1px solid var(--line); background: var(--ink-2); }
.prov__inner {
  max-width: 860px; margin: 0 auto; text-align: center;
  padding: clamp(4.5rem, 11vh, 7.5rem) clamp(1.2rem, 4vw, 3rem);
}
.prov__quote p {
  font-family: var(--font-disp); font-weight: 300;
  font-size: clamp(1.25rem, 2.8vw, 1.75rem); line-height: 1.55;
  color: #efe6cf;
}
.prov__quote p + p { margin-top: 1.2rem; }
.prov__quote em { color: var(--gold-soft); }
.prov__attr { margin-top: 1.6rem; font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.prov__note {
  margin: 2.6rem auto 0; max-width: 64ch;
  font-size: .95rem; color: var(--pine-soft);
  padding-top: 2.2rem; border-top: 1px solid var(--line);
}

/* ---------------------------- CODA ---------------------------- */
.coda { position: relative; overflow: hidden; min-height: 62vh; display: flex; align-items: flex-end; }
.coda__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.coda__shade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(11,10,8,.82), rgba(11,10,8,.18) 42%, rgba(11,10,8,.7) 100%);
}
.coda__inner {
  position: relative; z-index: 2; width: 100%;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(6rem, 16vh, 9rem) clamp(1.2rem, 4vw, 3rem) clamp(2.6rem, 6vh, 4rem);
}
.coda__def {
  font-family: var(--font-disp); font-weight: 300;
  font-size: clamp(1.15rem, 2.6vw, 1.6rem); line-height: 1.6;
  color: #f4ecd9; max-width: 46ch;
  text-shadow: 0 1px 16px rgba(0,0,0,.85);
}
.coda__def span { font-size: .8em; color: #cbbd9d; font-family: var(--font-body); }
.coda__soon {
  margin-top: 1.8rem; font-size: .8rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold-soft); text-shadow: 0 1px 10px rgba(0,0,0,.9);
}

/* ---------------------------- FOOTER ---------------------------- */
.hfooter { border-top: 1px solid var(--line); background: var(--ink); }
.hfooter__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 2rem clamp(1.2rem, 4vw, 3rem);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .88rem; color: var(--pine-dim);
}
.hfooter__links { display: flex; gap: 1.4rem; }
.hfooter__links a:hover { color: var(--gold-soft); }

/* ---------------------------- REVEAL ---------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero__scroll span { animation: none; }
}
