/* Furgiven — kinetic motion landing */

:root {
  --paper: #ffffff;
  --cream: #f5e8d3;
  --lavender: #d8cfe5;
  --peach: #f2c9b1;
  --gold: #d8b164;
  --gold-dark: #9a7332;
  --ink: #2c2824;
  --muted: #5c554c;
  --soft: #8a8278;
  --font-display: "Anton", sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snap: cubic-bezier(0.65, 0, 0.35, 1);
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --hero-y: 0px;
  --bg-shift: 0%;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .scroll-root { scroll-snap-type: none !important; }
  .pin-horizontal { height: auto !important; }
  .pin-sticky { position: relative !important; height: auto !important; }
  .pin-track { flex-direction: column !important; width: 100% !important; transform: none !important; }
  .pin-panel { min-height: 50vh; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--ink);
  background:
    linear-gradient(
      180deg,
      var(--paper) 0%,
      color-mix(in srgb, var(--cream) calc(30% + var(--bg-shift)), var(--paper)) 40%,
      var(--paper) 100%
    );
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}

img,
picture {
  max-width: 100%;
  display: block;
}

img {
  height: auto;
  image-rendering: auto;
}

a { color: var(--gold-dark); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 300;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: #fff;
}
.skip:focus { top: 1rem; }

/* Snap scroll chapters */
.scroll-root {
  scroll-snap-type: y proximity;
}

.snap-panel {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

/* Section rail */
.section-rail {
  position: fixed;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 180;
  display: none;
  flex-direction: column;
  gap: 0.65rem;
}

@media (min-width: 900px) {
  .section-rail { display: flex; }
}

.rail-dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(44, 40, 36, 0.15);
  border: 2px solid transparent;
  transition: transform 0.3s var(--ease-out), background 0.3s, border-color 0.3s;
  text-decoration: none;
}

.rail-dot span {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  color: var(--muted);
}

.rail-dot:hover span,
.rail-dot.is-active span {
  opacity: 1;
  transform: translateY(-50%) translateX(-4px);
}

.rail-dot.is-active {
  background: var(--gold);
  border-color: var(--gold-dark);
  transform: scale(1.35);
  box-shadow: 0 0 12px rgba(216, 177, 100, 0.6);
}

/* Progress */
.scroll-progress-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 200;
  background: rgba(245, 232, 211, 0.4);
}

.scroll-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--peach), var(--gold));
  background-size: 200% 100%;
  animation: progress-shine 2s linear infinite;
  box-shadow: 0 0 16px rgba(216, 177, 100, 0.65);
  transition: width 0.05s linear;
}

@keyframes progress-shine {
  from { background-position: 0% 50%; }
  to { background-position: 200% 50%; }
}

/* Ambient */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-piece {
  position: absolute;
  border-radius: 2px;
  opacity: 0.4;
  animation: drift var(--dur, 14s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.ambient-piece:nth-child(1) {
  width: 90px; height: 70px; top: 8%; left: 5%;
  background: var(--cream); --dur: 16s;
  --r: -8deg; transform: rotate(-8deg);
}
.ambient-piece:nth-child(2) {
  width: 55px; height: 80px; top: 50%; left: 88%;
  background: var(--lavender); --dur: 13s; --delay: -3s;
  --r: 12deg; transform: rotate(12deg);
}
.ambient-piece:nth-child(3) {
  width: 110px; height: 45px; top: 82%; left: 12%;
  background: var(--peach); --dur: 18s; --delay: -6s;
  --r: -4deg; transform: rotate(-4deg);
}
.ambient-piece:nth-child(4) {
  width: 70px; height: 70px; top: 28%; left: 78%;
  background: var(--cream); --dur: 15s; --delay: -1s;
  --r: 6deg; transform: rotate(6deg);
}
.ambient-piece:nth-child(5) {
  width: 40px; height: 100px; top: 65%; left: 45%;
  background: var(--lavender); --dur: 20s; --delay: -9s;
  --r: -15deg; transform: rotate(-15deg); opacity: 0.25;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(var(--r, 0deg)); }
  25% { transform: translate(18px, -22px) rotate(calc(var(--r, 0deg) + 5deg)); }
  50% { transform: translate(-12px, 14px) rotate(calc(var(--r, 0deg) - 4deg)); }
  75% { transform: translate(8px, 8px) rotate(calc(var(--r, 0deg) + 2deg)); }
}

/* Marquee */
.marquee-wrap {
  overflow: hidden;
  border-block: 1px solid rgba(44, 40, 36, 0.06);
  background: var(--cream);
  padding: 0.55rem 0;
  scroll-snap-align: start;
}

.marquee-fast .marquee { animation-duration: 18s; }

.marquee-reverse .marquee { animation-direction: reverse; animation-duration: 22s; }

.marquee {
  display: flex;
  width: max-content;
  animation: marquee 24s linear infinite;
}

.marquee span {
  flex-shrink: 0;
  padding: 0 1.75rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  color: var(--gold-dark);
  white-space: nowrap;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Split chars */
.char-split .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  animation: char-in 0.55s var(--ease-out) forwards;
  animation-delay: calc(var(--ci, 0) * 40ms + 0.1s);
}

@keyframes char-in {
  to { opacity: 1; transform: translateY(0); }
}

.char-fade {
  opacity: 0;
  animation: fade-up 0.8s var(--ease-out) forwards;
  animation-delay: var(--fd, 0s);
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Reveals — directional */
[data-reveal] {
  opacity: 0;
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.75s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal][data-reveal-dir="up"],
[data-reveal]:not([data-reveal-dir]) {
  transform: translateY(48px);
}

[data-reveal][data-reveal-dir="left"] { transform: translateX(-56px); }
[data-reveal][data-reveal-dir="right"] { transform: translateX(56px); }

[data-reveal].is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Hero — scroll-linked exit via JS vars */
.motion-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 1.5rem 2rem;
  z-index: 1;
  perspective: 1400px;
  scroll-snap-align: start;
  overflow: hidden;
}

.hero-stack {
  text-align: center;
  transform: translate3d(0, var(--hero-y), 0);
  opacity: var(--hero-opacity);
  transition: transform 0.15s linear, opacity 0.15s linear;
}

.hero-tilt {
  transform: rotateX(var(--tilt-y)) rotateY(var(--tilt-x));
  transition: transform 0.35s var(--ease-out);
  transform-style: preserve-3d;
}

.hero-wordmark {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 14vw, 7.5rem);
  letter-spacing: 0.04em;
  line-height: 0.95;
  margin: 0;
}

.hero-wordmark .char-split {
  color: var(--gold-dark);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 transparent;
}

.hero-tag {
  margin: 1rem 0 0;
  font-size: clamp(0.75rem, 2vw, 0.9375rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-tag em { font-style: normal; color: var(--gold-dark); }

.hero-line {
  margin: 1.25rem auto 0;
  max-width: 20rem;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--muted);
}

.hero-pets-wrap {
  margin-top: 2rem;
  position: relative;
  width: min(92vw, 520px);
  margin-inline: auto;
  filter: drop-shadow(0 16px 32px rgba(44, 40, 36, 0.14));
}

.hero-pets-wrap::before {
  content: "";
  position: absolute;
  inset: 15% 8% 0;
  background: radial-gradient(ellipse at center, rgba(216, 207, 229, 0.35), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: scale(0.98); }
  50% { opacity: 0.85; transform: scale(1.02); }
}

.hero-pets {
  position: relative;
  width: 100%;
  animation: float-pets 4s ease-in-out infinite;
}

@keyframes float-pets {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
  text-decoration: none;
  animation: bounce-cue 2s ease-in-out infinite;
}

@keyframes bounce-cue {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

.scroll-cue-line {
  width: 2px;
  height: 44px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scroll-line 1.2s ease-in-out infinite;
}

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

/* Panels */
.panel {
  position: relative;
  z-index: 1;
  min-height: 85vh;
  min-height: 85dvh;
  display: flex;
  align-items: center;
  padding: clamp(3rem, 10vh, 6rem) clamp(1.25rem, 4vw, 2rem);
}

.panel-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.panel-cream {
  background: linear-gradient(180deg, rgba(245, 232, 211, 0.55), rgba(255,255,255,0.9));
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.panel h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: 0.02em;
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 1.25rem;
  color: var(--ink);
}

.panel h2 .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 0.55s var(--ease-out), opacity 0.55s var(--ease-out);
  transition-delay: calc(var(--ci, 0) * 35ms);
}

.panel h2.is-split-visible .char {
  opacity: 1;
  transform: translateY(0);
}

.lead {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 32rem;
  margin: 0;
}

.card-row {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 700px) {
  .card-row { grid-template-columns: repeat(3, 1fr); }
}

.flow-card {
  padding: 1.35rem;
  background: var(--paper);
  border-radius: 14px;
  border: 1px solid rgba(44, 40, 36, 0.06);
  box-shadow: 0 8px 32px rgba(44, 40, 36, 0.06);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.flow-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(44, 40, 36, 0.1);
}

.flow-card h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.4rem;
  color: var(--gold-dark);
}

.flow-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Witness */
.witness-row {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .witness-row { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

.witness-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.35rem;
  background: var(--paper);
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(44, 40, 36, 0.08);
  transition: transform 0.45s var(--ease-out);
}

.witness-panel:hover {
  transform: translateY(-4px);
}

.witness-panel picture {
  flex-shrink: 0;
}

.witness-panel img {
  width: 112px;
  height: auto;
  max-height: 140px;
  object-fit: contain;
  object-position: bottom center;
}

.witness-panel h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0;
}

.witness-panel .quote {
  margin: 0.2rem 0;
  font-style: italic;
  font-weight: 600;
}

.witness-panel p:last-child {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Pinned horizontal beats — vertical scroll drives X */
.pin-horizontal {
  height: 350vh;
  position: relative;
  z-index: 1;
  background: var(--ink);
}

.pin-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pin-ui {
  position: absolute;
  top: 1.5rem;
  left: clamp(1.25rem, 4vw, 2rem);
  z-index: 2;
  color: var(--cream);
}

.pin-label {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.pin-progress {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
}

.pin-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 232, 211, 0.45);
  animation: pulse-hint 2s ease-in-out infinite;
}

@keyframes pulse-hint {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.pin-track {
  display: flex;
  width: 400%;
  height: 100%;
  will-change: transform;
}

.pin-panel {
  flex: 0 0 25%;
  width: 25%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(2rem, 8vw, 5rem) clamp(1.5rem, 6vw, 4rem);
  color: var(--cream);
  position: relative;
}

.pin-panel::before {
  content: "";
  position: absolute;
  inset: 15% 10%;
  border-radius: 24px;
  opacity: 0.15;
  z-index: 0;
}

.pin-panel-1::before { background: linear-gradient(135deg, var(--gold), transparent); }
.pin-panel-2::before { background: linear-gradient(135deg, var(--lavender), transparent); }
.pin-panel-3::before { background: linear-gradient(135deg, var(--peach), transparent); }
.pin-panel-4::before { background: linear-gradient(135deg, var(--gold), var(--peach)); }

.pin-num {
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 8rem);
  color: rgba(216, 177, 100, 0.25);
  line-height: 1;
  position: relative;
  z-index: 1;
}

.pin-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  letter-spacing: 0.04em;
  margin: 0 0 1rem;
  color: var(--gold);
  position: relative;
  z-index: 1;
}

.pin-panel p {
  margin: 0;
  max-width: 28rem;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  opacity: 0.85;
  position: relative;
  z-index: 1;
}

/* Journey */
.journey-section {
  min-height: 90vh;
  align-items: flex-start;
  padding-top: clamp(3rem, 8vh, 5rem);
  flex-direction: column;
}

.journey-header {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.journey-hint {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--soft);
}

.journey-scroll {
  width: 100%;
  margin-top: 2rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: clamp(1.25rem, 4vw, 2rem);
  padding: 1rem clamp(1.25rem, 4vw, 2rem) 2.5rem;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.journey-scroll.is-grabbing { cursor: grabbing; }

.journey-scroll::-webkit-scrollbar { height: 5px; }
.journey-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--gold), var(--peach));
  border-radius: 3px;
}

.journey-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  padding-right: 3rem;
}

.journey-card {
  flex: 0 0 min(75vw, 280px);
  scroll-snap-align: start;
  padding: 1.35rem;
  background: var(--paper);
  border-radius: 18px;
  border: 1px solid rgba(44, 40, 36, 0.06);
  box-shadow: 0 16px 48px rgba(44, 40, 36, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: transform 0.3s var(--ease-out);
}

.journey-card:hover {
  transform: translateY(-6px);
}

.journey-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--gold);
  line-height: 1;
}

.journey-body h3 { margin: 0; font-size: 1.0625rem; }

.journey-sub {
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
  color: var(--soft);
}

.journey-scr {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: var(--soft);
}

.journey-badge {
  align-self: flex-start;
  margin-top: auto;
  padding: 0.35rem 0.65rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
}

.badge-studio { background: rgba(216, 207, 229, 0.5); color: #5a4f6a; }
.badge-production { background: rgba(242, 201, 177, 0.6); color: #7a5038; }
.badge-coming { background: var(--cream); color: var(--soft); }
.badge-released { background: rgba(216, 177, 100, 0.3); color: var(--gold-dark); }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.blob-a {
  width: 50vw; height: 50vw; max-width: 480px; max-height: 480px;
  top: 0; right: -15%;
  background: rgba(216, 207, 229, 0.45);
}

.blob-b {
  width: 45vw; height: 45vw; max-width: 400px; max-height: 400px;
  bottom: 10%; left: -12%;
  background: rgba(242, 201, 177, 0.4);
}

.site-foot {
  position: relative;
  z-index: 1;
  padding: 3rem 1.5rem 4rem;
  text-align: center;
  background: var(--cream);
  border-top: 1px solid rgba(44, 40, 36, 0.06);
}

.site-foot p {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  color: var(--soft);
  max-width: 32rem;
  margin-inline: auto;
}

.site-foot .wm {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: 0.08em;
  color: var(--gold-dark);
  margin-bottom: 1rem;
}

.variants-link { margin-top: 1rem !important; }
