/* Basuki · Highland Sanctuary · Munduk, Bali
   Palette and type from the Basuki brand book. Dark ground only. */

@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/cormorant-600.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/cormorant-500.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url("../fonts/cormorant-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/lora-400.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/lora-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/jost-400.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/jost-500.woff2") format("woff2"); }

:root {
  --slate: #121417;
  --basalt: #1B1F22;
  --stone: #3A4045;
  --ash: #9BA0A0;
  --mist: #C9CCC4;
  --canopy: #233027;
  --ivory: #E6E1D8;
  --gold: #D4AF37;
  --copper: #C87D55;

  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Lora", Georgia, serif;
  --label: "Jost", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(16px, 4vw, 56px);
  --space: clamp(80px, 12vh, 150px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--slate);
  color: var(--ivory);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2 { font-family: var(--display); font-weight: 500; margin: 0; color: var(--ivory); text-wrap: balance; }
h3 { font-family: var(--display); font-weight: 600; margin: 0; color: var(--ivory); text-wrap: balance; }
/* the gold half of a headline: the phrase the line turns on */
.g { color: var(--gold); }
.cu { color: var(--copper); }
p { margin: 0; }
a { color: var(--copper); }
a:hover { color: var(--ivory); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
section[id] { scroll-margin-top: 24px; }

.skip { position: absolute; left: -9999px; top: 12px; z-index: 50; background: var(--basalt); color: var(--ivory); padding: 12px 18px; font-family: var(--label); }
.skip:focus { left: 12px; }

/* type helpers */
.lbl { font-family: var(--label); font-weight: 500; font-size: 13px; letter-spacing: .26em; text-transform: uppercase; }
.cap { font-family: var(--label); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ash); }
.gold { color: var(--gold); }
.soft { color: var(--mist); }
.h-xl { font-size: clamp(40px, 4.6vw, 68px); line-height: 1.02; }
.h-l { font-size: clamp(36px, 3.8vw, 56px); line-height: 1.05; }
.stack > * + * { margin-top: 20px; }
.measure { max-width: 52ch; }

/* layout */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }
.sec { display: grid; grid-template-columns: minmax(0, 1fr); }
.station { display: none; }
.two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.align-end { align-items: end; }
.align-center { align-items: center; }

/* photographs */
.ph { position: relative; margin: 0; overflow: hidden; background: var(--basalt); }
.ph picture, .ph img { width: 100%; height: 100%; }
.ph img { object-fit: cover; }
.ph figcaption { position: absolute; left: 12px; bottom: 10px; background: rgba(18, 20, 23, .78); padding: 4px 8px; }
.r-16x9 { aspect-ratio: 16 / 9; }
.r-4x5 { aspect-ratio: 4 / 5; }
.r-4x3 { aspect-ratio: 4 / 3; }
.r-3x4 { aspect-ratio: 3 / 4; }
.r-1 { aspect-ratio: 1 / 1; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px;
  font-family: var(--label); font-weight: 500; font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border-radius: 0;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn-solid { background: var(--ivory); color: var(--slate); border: 1px solid var(--ivory); }
.btn-solid:hover { background: var(--gold); border-color: var(--gold); color: var(--slate); }
.btn-line { background: transparent; color: var(--ivory); border: 1px solid var(--copper); }
.btn-line:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 12px; }
.btn[aria-busy="true"] { opacity: .6; pointer-events: none; }

/* header */
.top { position: absolute; inset: 0 0 auto 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.top .brand img { width: 150px; }
.nav { display: none; gap: 30px; align-items: center; }
.nav a:not(.btn) { color: var(--mist); text-decoration: none; padding: 10px 0; }
.nav a:not(.btn):hover { color: var(--ivory); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-text { order: 2; display: flex; flex-direction: column; justify-content: flex-end; padding: 56px var(--pad) clamp(56px, 8vh, 96px); }
.hero-media { order: 1; height: 64svh; min-height: 420px; }
.hero-media img { object-position: 50% 45%; }
.hero h1 { font-size: clamp(56px, 7.4vw, 118px); line-height: .94; letter-spacing: -.01em; max-width: 8ch; margin-top: 28px; }
.hero-sub { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--mist); max-width: 36ch; margin-top: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-media figcaption { left: auto; right: 16px; bottom: 16px; z-index: 1; }
/* brand rule: a slate wash behind the wordmark wherever it sits on photography */
.hero-media::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 200px; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(18, 20, 23, .72), rgba(18, 20, 23, 0)); }

/* phones and tablets: one full screen, the photograph behind, the pitch over its foot */
@media (max-width: 999px) {
  .hero { position: relative; min-height: 100svh; }
  .hero-media { position: absolute; inset: 0; height: 100%; min-height: 0; }
  .hero-media figcaption { top: 86px; bottom: auto; right: 12px; }
  .hero-text {
    position: relative; z-index: 2; order: 0; min-height: 100svh; padding-top: 30svh;
    background: linear-gradient(180deg, rgba(18, 20, 23, 0) 22%, rgba(18, 20, 23, .82) 44%, var(--slate) 90%);
  }
  .hero-text .lbl { color: var(--gold); }
  .hero h1 { font-size: clamp(54px, 14vw, 88px); max-width: 9ch; }
  .hero-sub { color: var(--ivory); }
}

/* altitude stations */
.alt { font-family: var(--display); font-weight: 500; font-size: 44px; line-height: 1; }
.alt-m { display: flex; align-items: baseline; gap: 14px; margin-bottom: 28px; }
.alt-m .alt { font-size: 30px; }

/* land facts */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 32px; margin: clamp(40px, 6vh, 64px) 0 0; padding: 0; }
.facts > div { border-top: 2px solid var(--gold); padding-top: 22px; }
.facts dt { font-family: var(--display); font-weight: 500; font-size: clamp(44px, 4.4vw, 68px); line-height: 1; color: var(--gold); }
.facts dd { margin: 12px 0 0; color: var(--ivory); }

/* name */
.naga-panel { display: flex; justify-content: center; background: var(--basalt); padding: clamp(40px, 6vw, 72px) 24px; }
.naga-panel img { width: clamp(120px, 14vw, 190px); }

/* estate */
.coming { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: clamp(40px, 6vh, 64px); }
.coming-side { display: flex; flex-direction: column; gap: 28px; justify-content: space-between; }
.pull { font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(26px, 2.5vw, 36px); line-height: 1.25; color: var(--ivory); border-left: 2px solid var(--copper); padding-left: 22px; }
.trio { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: clamp(56px, 9vh, 100px); }
.trio article { display: flex; flex-direction: column; gap: 16px; }
.trio h3 { border-top: 2px solid var(--copper); padding-top: 16px; }
.trio h3 { font-size: 30px; }
.trio p { color: var(--mist); }

/* growing */
.band-green { background: var(--canopy); }
.grow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: clamp(40px, 6vh, 64px); }
.grow figcaption .cap { color: var(--ivory); }

/* coffee + forms */
.inline-form { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.inline-form label { width: 100%; }
.inline-form input { flex: 1 1 240px; }
.field {
  width: 100%; background: var(--basalt); border: 1px solid var(--stone); border-radius: 0;
  color: var(--ivory); font-family: var(--body); font-size: 17px; padding: 14px 16px; min-height: 52px;
}
.field:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.field[aria-invalid="true"] { border-color: var(--copper); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-family: var(--display); font-size: 28px; line-height: 1.25; }
.form-err { color: var(--mist); font-size: 15.5px; }
[hidden] { display: none !important; }

/* journal */
.journal { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); margin: clamp(40px, 6vh, 64px) 0 0; padding: 0; border-top: 1px solid var(--stone); }
.journal { border-top: 2px solid var(--gold); }
.journal li { padding: 28px 24px 28px 0; border-bottom: 1px solid var(--stone); display: flex; flex-direction: column; gap: 12px; }
.journal h3 { font-size: 26px; line-height: 1.15; }
.journal p:last-child { font-size: 15.5px; color: var(--mist); }

/* people */
.band-basalt { background: var(--basalt); }
.hands { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: clamp(40px, 6vh, 64px); }
.hands > div { border-top: 2px solid var(--gold); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.hands h3 { font-size: 26px; }
.hands p { font-size: 15.5px; color: var(--mist); }

/* stewardship */
.steward { position: relative; overflow: hidden; padding: clamp(100px, 16vh, 190px) 0; }
.steward-bg { position: absolute; inset: 0; }
.steward-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.steward::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--slate) 0%, rgba(18, 20, 23, .2) 22%, rgba(18, 20, 23, .2) 78%, var(--slate) 100%), radial-gradient(ellipse 60% 55% at 50% 50%, rgba(18, 20, 23, .62) 0%, rgba(18, 20, 23, 0) 100%); }
.steward .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.steward h2 { font-size: clamp(44px, 5.4vw, 84px); line-height: 1; max-width: 16ch; }
.steward p.big { font-size: 19px; max-width: 48ch; }

/* first nights */
.doors { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.door {
  text-align: left; background: var(--basalt); border: 1px solid var(--stone); color: var(--ivory);
  padding: 20px 20px 18px; cursor: pointer; font-family: var(--body); border-radius: 0;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.door:hover { border-color: #8a7a3f; }
.door[aria-pressed="true"] { border-color: var(--gold); background: #20251f; }
.door b { display: block; font-family: var(--display); font-weight: 600; font-size: 23px; line-height: 1.2; }
.door span { display: block; font-size: 14.5px; color: var(--ash); margin-top: 6px; line-height: 1.45; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.fields label { display: block; margin-bottom: 8px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 14px; }

/* footer */
.foot { background: var(--basalt); border-top: 1px solid var(--stone); padding: clamp(64px, 10vh, 110px) 0 40px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.foot-grid .brand img { width: 180px; }
.foot a.mail { font-size: 18px; text-decoration: none; border-bottom: 1px solid rgba(200, 125, 85, .5); padding-bottom: 2px; align-self: flex-start; }
.investors { display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--stone); padding: 26px; }
.investors p { font-size: 15.5px; color: var(--mist); }
.investors .btn { align-self: flex-start; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--stone); }
.foot-base a { color: var(--ash); }
.endorse { font-family: var(--label); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--ash); }

/* simple page (privacy) */
.page { max-width: 760px; margin: 0 auto; padding: 160px var(--pad) 120px; }
.page h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.05; margin-bottom: 32px; }
.page h2 { font-size: 28px; margin: 40px 0 12px; }
.page p + p { margin-top: 14px; }

/* motion: one slow settle on the hero photograph */
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: settle 2.4s var(--ease) both; }
  @keyframes settle { from { transform: scale(1.06); opacity: .4; } to { transform: none; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (min-width: 760px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .sec { grid-template-columns: 150px minmax(0, 1fr); column-gap: 56px; }
  .station { display: block; position: relative; border-right: 1px solid var(--stone); }
  .station .pin { position: sticky; top: 40px; padding-right: 24px; }
  .station .dot { position: absolute; right: -4px; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--copper); }
  .station .dot.end { background: var(--gold); }
  .alt-m { display: none; }
  .nav { display: flex; }
  /* desktop hero: the photograph full width, the pitch on a dark wash to the left */
  .hero { display: block; position: relative; min-height: 100vh; }
  .hero-media { position: absolute; inset: 0; height: 100%; min-height: 0; }
  .hero-media img { object-position: 50% 40%; }
  .hero-text {
    position: relative; z-index: 2; min-height: 100vh; padding: 150px var(--pad) clamp(72px, 10vh, 112px);
    max-width: 1320px; margin: 0 auto; justify-content: flex-end;
  }
  .hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, rgba(18, 20, 23, .9) 0%, rgba(18, 20, 23, .6) 36%, rgba(18, 20, 23, 0) 62%),
                linear-gradient(0deg, rgba(18, 20, 23, .75) 0%, rgba(18, 20, 23, 0) 38%); }
  .hero-text > * { max-width: 640px; }
  .hero h1 { font-size: clamp(80px, 7.8vw, 124px); max-width: 9ch; }
  .hero-sub { color: var(--ivory); }
  .two { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; }
  .coming { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; }
  .journal { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hands { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .doors { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 4fr); }
}
@media (min-width: 1000px) { .two.flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }

/* people cards: photograph above each */
.hands > div > .ph { margin-bottom: 8px; }
.hands > div { border-top: 0; padding-top: 0; }
.hands > div h3 { border-top: 2px solid var(--gold); padding-top: 16px; }
.photo-slot { display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; border: 1px dashed var(--stone); }

/* land: wide reference plus a tall real photograph */
.land-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: clamp(48px, 7vh, 80px); }
.land-pair .ph { aspect-ratio: 16 / 10; }
@media (min-width: 1000px) {
  .land-pair { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); }
  .land-pair .ph { aspect-ratio: auto; height: 520px; }
}

/* products from the estate */
.prods { list-style: none; margin: clamp(40px, 6vh, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
.prods li picture, .prods li img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.prod-name { font-family: var(--display); font-weight: 500; font-size: 24px; margin-top: 12px; border-top: 2px solid var(--gold); padding-top: 10px; }
@media (min-width: 760px) { .prods { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .prods { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* people: family wide, then three cards */
.family { margin-top: clamp(40px, 6vh, 64px); }
.fam-h { font-size: clamp(30px, 3vw, 42px); border-top: 2px solid var(--gold); padding-top: 16px; }
.family p { font-size: 18px; color: var(--mist); }
.hands-3 { margin-top: clamp(48px, 7vh, 72px); }
@media (min-width: 1000px) { .hands-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .family { grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); } }

/* product tiles: a short note on hover, focus or tap */
.prods li { outline: none; cursor: default; }
.prod-img { position: relative; overflow: hidden; }
.prod-img img { transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.prod-desc { position: absolute; inset: 0; margin: 0; padding: 16px; display: flex; align-items: flex-end; font-size: 14px; line-height: 1.5; color: var(--ivory); background: linear-gradient(180deg, rgba(18,20,23,.25) 0%, rgba(18,20,23,.92) 62%); opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease; }
.prods li:hover .prod-desc, .prods li:focus-within .prod-desc { opacity: 1; transform: none; }
.prods li:hover img, .prods li:focus-within img { transform: scale(1.05); }
.prods li:focus-visible .prod-img { box-shadow: 0 0 0 2px var(--gold); }
@media (hover: none) { .prod-name::after { content: " +"; color: var(--gold); } }

/* the journal: the line draws across and each entry lands on it */
.journal { position: relative; }
.journal li { position: relative; }
.journal li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--slate); }
.journal li:first-child::after { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .journal li:first-child::after { animation: ping 2.4s ease-out infinite; }
  .js .journal[data-reveal] { border-top-color: transparent; }
  .js .journal[data-reveal]::before { content: ""; position: absolute; top: -2px; left: 0; right: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 1.6s cubic-bezier(.6,0,.2,1); }
  .js .journal[data-reveal].in::before { transform: scaleX(1); }
  .js .journal[data-reveal] li { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
  .js .journal[data-reveal] li::before { transform: scale(0); transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
  .js .journal[data-reveal].in li, .js .journal[data-reveal].in li::before { opacity: 1; transform: none; }
  .js .journal.in li:nth-child(1), .js .journal.in li:nth-child(1)::before { transition-delay: .2s; }
  .js .journal.in li:nth-child(2), .js .journal.in li:nth-child(2)::before { transition-delay: .55s; }
  .js .journal.in li:nth-child(3), .js .journal.in li:nth-child(3)::before { transition-delay: .9s; }
  .js .journal.in li:nth-child(4), .js .journal.in li:nth-child(4)::before { transition-delay: 1.25s; }
}
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 80%, 100% { transform: scale(2.6); opacity: 0; } }

/* the doors turn over on hover, focus or choice: the line swaps for the fuller picture */
.door .txt { display: grid; margin-top: 6px; }
.door .txt > span { grid-area: 1 / 1; margin: 0; transition: opacity .35s ease, transform .35s ease; }
.door .more { font-size: 14.5px; line-height: 1.5; color: var(--mist); opacity: 0; transform: translateY(6px); }
.door:hover .short, .door:focus-visible .short, .door[aria-pressed="true"] .short { opacity: 0; transform: translateY(-6px); }
.door:hover .more, .door:focus-visible .more, .door[aria-pressed="true"] .more { opacity: 1; transform: none; }
.door { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; }

/* how it runs: the loop drawing */
.loop-fig { margin: clamp(40px, 6vh, 64px) 0 0; }
.loop { display: block; width: 100%; height: auto; overflow: visible; }
.loop .lab { font-family: var(--display); font-weight: 500; font-size: 34px; fill: var(--ivory); text-anchor: middle; }
.loop .sm { font-family: var(--serif); font-style: italic; font-size: 17px; fill: var(--mist); text-anchor: middle; }
.loop .far { text-anchor: end; }
.loop .flow { stroke-dasharray: 2 10; }
.loop .power, .loop .loopline { stroke-dasharray: 6 7; }
.loop .turbine { transform-box: fill-box; transform-origin: center; }
.loop .flame { transform-box: fill-box; transform-origin: 50% 100%; }
@media (max-width: 759px) {
  .loop .lab { font-size: 58px; }
  .loop .sm { display: none; }
  .loop-fig { margin-left: -12px; margin-right: -12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .loop .flow { animation: flow 2.2s linear infinite; }
  .loop .power { animation-duration: 1.6s; }
  .loop .over { animation-direction: normal; }
  .loop .turbine { animation: spin 3.2s linear infinite; }
  .loop .flame { animation: flicker 1.8s ease-in-out infinite; }
  .js [data-reveal] .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s cubic-bezier(.6,0,.2,1); }
  .js [data-reveal] .st { opacity: 0; transition: opacity .9s ease; }
  .js [data-reveal].in .draw { stroke-dashoffset: 0; }
  .js [data-reveal].in .st { opacity: 1; }
  .js [data-reveal].in .st2 { transition-delay: .45s; } .js [data-reveal].in .st3 { transition-delay: .9s; }
  .js [data-reveal].in .st4 { transition-delay: 1.35s; } .js [data-reveal].in .st5 { transition-delay: 1.8s; }
  .js .walk[data-reveal] .moment { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s ease; }
  .js .walk[data-reveal].in .moment { opacity: 1; transform: none; }
  .js .walk.in .moment:nth-of-type(2) { transition-delay: .3s; } .js .walk.in .moment:nth-of-type(3) { transition-delay: .6s; }
  .js .walk.in .moment:nth-of-type(4) { transition-delay: .9s; } .js .walk.in .moment:nth-of-type(5) { transition-delay: 1.2s; }
  .js .walk[data-reveal] .walk-line { clip-path: inset(-20px 100% -20px 0); transition: clip-path 1.8s cubic-bezier(.6,0,.2,1); }
  .js .walk[data-reveal].in .walk-line { clip-path: inset(-20px 0 -20px 0); }
}
@keyframes flow { to { stroke-dashoffset: -48; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flicker { 0%, 100% { transform: scale(1, 1); } 40% { transform: scale(.92, 1.08); } 70% { transform: scale(1.04, .95); } }

/* how it runs: one day, walked down the hill */
.walk { position: relative; margin-top: clamp(40px, 6vh, 64px); border-left: 2px solid var(--gold); padding-left: 26px; }
.walk-line { display: none; }
.moment { position: relative; padding: 0 0 34px; }
.moment::before { content: ""; position: absolute; left: -33px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px var(--basalt); }
.moment .el { font-family: var(--sans); font-weight: 500; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--copper); }
.moment .t { font-family: var(--display); font-weight: 500; font-size: 40px; line-height: 1; color: var(--gold); margin-top: 8px; }
.moment h3 { font-size: 24px; line-height: 1.2; margin-top: 6px; }
.moment .d { font-size: 15.5px; color: var(--mist); margin-top: 6px; max-width: 32ch; }
@media (min-width: 1000px) {
  .walk { border-left: 0; padding: 0 0 70px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; }
  .walk-line { display: block; position: absolute; left: 0; right: 0; bottom: calc(70px - var(--h) + var(--drop)); width: 100%; height: var(--h); overflow: visible; }
  .walk-line path { fill: none; vector-effect: non-scaling-stroke; stroke-width: 1; }
  .walk-line path:last-child { stroke-width: 2; }
  .moment { padding: 0 28px 30px 0; margin-bottom: calc(var(--drop) - var(--y)); }
  .moment::before { left: -7px; top: auto; bottom: -7px; width: 14px; height: 14px; }
  .moment .t { font-size: 46px; }
}
.runs-note { margin-top: 40px; font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(20px, 1.8vw, 24px); color: var(--mist); border-left: 2px solid var(--copper); padding-left: 18px; max-width: 60ch; }
@media (min-width: 1000px) {
  .day { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .day li { display: flex; flex-direction: column; gap: 10px; border-bottom: 0; }
  .day .t { font-size: 44px; }
}

/* the doors carry a picture of what they open onto */
.door { padding: 0; overflow: hidden; }
.door-img { display: block; position: relative; overflow: hidden; aspect-ratio: 16 / 9; }
.door-img picture, .door-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.door-img img { filter: saturate(.85) brightness(.8); transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .5s ease; }
.door-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,31,34,0) 55%, var(--basalt) 100%); }
.door-body { display: block; padding: 16px 20px 20px; }
.door:hover .door-img img, .door:focus-visible .door-img img, .door[aria-pressed="true"] .door-img img { transform: scale(1.06); filter: saturate(1) brightness(.95); }
.door[aria-pressed="true"] .door-img::after { background: linear-gradient(180deg, rgba(32,37,31,0) 55%, #20251f 100%); }
@media (min-width: 1000px) { .door-img { aspect-ratio: 4 / 3; } }

/* how it runs: the fuller explanation, for those who want it */
.how-more { margin-top: 36px; border-top: 1px solid var(--stone); border-bottom: 1px solid var(--stone); }
.how-more summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; align-items: center; justify-content: space-between; font-family: var(--display); font-weight: 500; font-size: 26px; color: var(--ivory); }
.how-more summary::-webkit-details-marker { display: none; }
.how-more summary::after { content: "+"; font-family: var(--sans); font-size: 26px; color: var(--gold); transition: transform .3s ease; }
.how-more[open] summary::after { transform: rotate(45deg); }
.how-more summary:hover span { color: var(--gold); }
.how-more-body { padding: 4px 0 32px; }
.how-more-lead { color: var(--mist); max-width: 60ch; font-style: italic; }
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 28px; }
.how-grid .el { font-family: var(--sans); font-weight: 500; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--copper); margin-bottom: 10px; padding-top: 12px; border-top: 2px solid var(--gold); }
.how-grid p:last-child { font-size: 15.5px; line-height: 1.6; color: var(--mist); }
@media (min-width: 760px) { .how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .how-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; } }
@media (prefers-reduced-motion: no-preference) { .how-more[open] .how-more-body { animation: rise .6s ease both; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.foot-note { color: var(--ash); }
