/* ============================================================
   Ini Sauna — tokens
   ============================================================ */
:root{
  --charcoal:      #14140f;
  --charcoal-soft:rgba(20,20,15,0.92);
  --ember:         #c98a4b;
  --ember-soft:    #e0a765;
  --signal:        #e8b923;   /* the one pop of colour, echoing the sculpture in the woods */
  --stone:         #a89f8d;
  --cream:         #f4efe2;
  --cream-dim:     rgba(244,239,226,0.72);

  --font-display:  "Newsreader", Georgia, serif;
  --font-sans:     "Space Grotesk", "Helvetica Neue", Arial, sans-serif;

  --slide-duration: 5.5s;
  --door-duration:  0.85s;
}

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

html, body{
  margin:0;
  padding:0;
  height:100%;
  background: var(--charcoal);
  color: var(--cream);
  font-family: var(--font-sans);
  overflow: hidden;
}

@media (prefers-reduced-motion: no-preference){
  :focus-visible{ transition: outline-offset .15s ease; }
}
:focus-visible{
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

a{ color: inherit; }

/* ============================================================
   Film grain — very light, keeps the dark hero from looking flat
   ============================================================ */
.grain{
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   Stage
   ============================================================ */
.stage{
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* Slideshow */
.slideshow{
  position: absolute;
  inset: 0;
}
.slide{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity .6s ease, transform 8s linear;
}
.slide.is-active{
  opacity: 1;
  transform: scale(1);
}

/* Scrim — grounds the text, heavier at the base */
.scrim{
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,10,7,0.55) 0%, rgba(10,10,7,0.05) 22%, rgba(10,10,7,0.05) 55%, rgba(10,10,7,0.75) 100%);
}

/* ============================================================
   Signature transition — the cabin's own double doors
   swing shut over one view and open onto the next.
   ============================================================ */
.door-leaf{
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: var(--charcoal);
  z-index: 10;
  transform: scaleX(0);
  box-shadow: inset 0 0 0 1px rgba(244,239,226,0.06);
}
.door-leaf--left{
  left: 0;
  transform-origin: left center;
  border-right: 1px solid rgba(244,239,226,0.14);
}
.door-leaf--right{
  right: 0;
  transform-origin: right center;
  border-left: 1px solid rgba(244,239,226,0.14);
}
.door-leaf.is-shut{
  transition: transform var(--door-duration) cubic-bezier(.65,0,.35,1);
  transform: scaleX(1);
}
.door-leaf.is-open{
  transition: transform var(--door-duration) cubic-bezier(.65,0,.35,1) .05s;
  transform: scaleX(0);
}

@media (prefers-reduced-motion: reduce){
  .slide{ transition: opacity .8s ease; transform: none; }
  .door-leaf{ display: none; }
}

/* ============================================================
   Header / wordmark
   ============================================================ */
.site-header{
  position: absolute;
  top: clamp(20px, 4vh, 44px);
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
}
.wordmark{
  height: clamp(84px, 12.25vh, 133px);
  width: auto;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.45));
}

/* ============================================================
   Hero copy
   ============================================================ */
.hero-copy{
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: clamp(96px, 16vh, 148px);
  padding: 0 clamp(20px, 6vw, 64px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow{
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember-soft);
}

h1{
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 5.2vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 18ch;
  color: var(--cream);
  text-wrap: balance;
}

.tagline{
  margin: 0 0 34px;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 1.55;
  color: var(--cream-dim);
  max-width: 46ch;
}

/* CTA */
.cta{
  --pad-y: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: var(--pad-y) 30px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .25s ease, color .25s ease, transform .2s ease, border-color .25s ease;
}
.cta-icon{ transition: transform .25s ease; }
.cta:hover{
  background: var(--signal);
  color: var(--charcoal);
  transform: translateY(-1px);
}
.cta:hover .cta-icon{ transform: translateX(3px); }
.cta:active{ transform: translateY(0); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer{
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(18px, 3vh, 30px);
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--cream-dim);
}
.site-footer a{
  text-decoration: none;
  border-bottom: 1px solid rgba(244,239,226,0.35);
  padding-bottom: 1px;
  transition: border-color .2s ease, color .2s ease;
}
.site-footer a:hover{
  color: var(--signal);
  border-color: var(--signal);
}
.dot{ opacity: 0.5; }

/* ============================================================
   Progress rail — quiet indicator of where we are in the loop
   ============================================================ */
.progress-rail{
  position: absolute;
  z-index: 20;
  top: clamp(20px, 4vh, 44px);
  right: clamp(20px, 5vw, 48px);
  display: flex;
  gap: 6px;
}
.progress-rail .tick{
  width: 14px;
  height: 2px;
  background: rgba(244,239,226,0.28);
  border-radius: 1px;
  overflow: hidden;
  position: relative;
}
.progress-rail .tick::after{
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cream);
  transform: scaleX(0);
  transform-origin: left center;
}
.progress-rail .tick.is-active::after{
  transform: scaleX(1);
  transition: transform var(--slide-duration) linear;
}
.progress-rail .tick.is-done::after{
  transform: scaleX(1);
  transition: none;
}

@media (max-width: 560px){
  .progress-rail{ display: none; }
  .hero-copy{ bottom: clamp(84px, 14vh, 120px); }
}
