/* Unseen-structure year scrub — Saddle Up site palette */
:root {
  --wr-bg: #14100c;
  --wr-ink: #f7f0e4;
  --wr-gold: #de8a4a;
  --wr-gold-dim: rgba(222, 138, 74, 0.55);
  --wr-mute: rgba(247, 240, 228, 0.62);
  --wr-panel: rgba(20, 16, 12, 0.84);
  --wr-mono: "JetBrains Mono", ui-monospace, monospace;
  --wr-sans: Inter, system-ui, sans-serif;
  --wr-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --wr-script: "Pinyon Script", Georgia, cursive;
}

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

html {
  scroll-behavior: auto;
  background: var(--wr-bg);
}

body.wr {
  margin: 0;
  min-height: 100%;
  color: var(--wr-ink);
  background: var(--wr-bg);
  font-family: var(--wr-mono);
  font-size: 14px;
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--wr-gold); }

html.is-preview .wr-loader { display: none !important; }
html.is-preview .wr-chrome--scroll { display: none; }

/* ASCII field */
.wr-ascii {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}
.wr-ascii canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Loader */
.wr-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  gap: 0.35rem;
  background: var(--wr-bg);
  transition: opacity 0.55s ease, visibility 0.55s ease;
}
.wr-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.wr-loader__title {
  margin: 0;
  font-family: var(--wr-script);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 400;
  color: var(--wr-gold);
  text-align: center;
  letter-spacing: 0.02em;
}
.wr-loader__pct {
  margin: 0;
  text-align: center;
  color: var(--wr-gold);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

/* Fixed chrome */
.wr-chrome {
  position: fixed;
  z-index: 40;
  color: var(--wr-gold);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.wr-chrome--top {
  top: 1.1rem;
  left: 1.1rem;
  right: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--wr-ink);
  pointer-events: none;
}
.wr-chrome--top > * { pointer-events: auto; }
.wr-chrome__brand {
  font-family: var(--wr-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #fff;
}
.wr-chrome__brand span {
  font-size: 0.55em;
  vertical-align: super;
}
.wr-chrome__social {
  display: flex;
  gap: 0.65rem;
  color: rgba(247, 240, 228, 0.82);
}
.wr-chrome__social a { color: inherit; }
.wr-chrome--cta {
  bottom: 1.15rem;
  left: 1.1rem;
  color: var(--wr-gold);
}
.wr-chrome--scroll {
  bottom: 1.05rem;
  right: 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  max-width: 16rem;
  text-align: right;
  color: var(--wr-gold);
  transition: opacity 0.35s ease;
}
.wr-chrome--scroll.is-faded { opacity: 0; pointer-events: none; }
.wr-scroll-cue {
  font-family: var(--wr-sans);
  font-size: 0.78rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--wr-gold);
}
.wr-scroll-cue__strike {
  display: inline-block;
  animation: wr-nudge 1.4s ease-in-out infinite;
}
.wr-scroll-cue__sub {
  font-family: var(--wr-sans);
  font-size: 0.68rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--wr-gold-dim);
}
@keyframes wr-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

.wr-mono { font-family: var(--wr-mono); color: var(--wr-gold); }

.wr-main {
  position: relative;
  z-index: 1;
}

/* Hero — top-weighted so the ASCII horse mark stays readable mid-stage */
.wr-hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: clamp(4.8rem, 9vh, 6.2rem) 1.25rem clamp(5.5rem, 10vh, 7rem);
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.wr-hero__script {
  margin: 0 0 0.2rem;
  font-family: var(--wr-script);
  font-size: clamp(1.85rem, 4.2vw, 2.8rem);
  font-weight: 400;
  color: var(--wr-gold);
  text-align: left;
  letter-spacing: 0.02em;
  line-height: 1;
  text-shadow: 0 2px 18px rgba(20, 16, 12, 0.55);
}
.wr-stack {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 0;
  margin: 0.15rem 0 1.1rem;
  width: min(100%, 28rem);
  z-index: 1;
}
.wr-stack__line {
  position: relative;
  display: block;
  font-family: var(--wr-display);
  font-size: clamp(3.6rem, 14vw, 7.2rem);
  line-height: 0.84;
  letter-spacing: 0.01em;
  color: var(--wr-gold);
  text-shadow:
    0 0 0 transparent;
  background:
    radial-gradient(circle at 30% 40%, rgba(20, 16, 12, 0.4) 0.5px, transparent 0.6px),
    radial-gradient(circle at 70% 60%, rgba(20, 16, 12, 0.28) 0.45px, transparent 0.55px),
    linear-gradient(180deg, #f0a06a 0%, #de8a4a 45%, #c67438 100%);
  background-size: 3px 3px, 4px 4px, 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.35));
  opacity: 0.94;
}
.wr-stack__line em {
  position: absolute;
  font-style: normal;
  font-family: var(--wr-mono);
  font-size: clamp(0.55rem, 1.4vw, 0.72rem);
  letter-spacing: 0.08em;
  color: var(--wr-gold);
  -webkit-text-fill-color: var(--wr-gold);
  background: none;
  filter: none;
}
.wr-stack__line--a { margin-left: 0; }
.wr-stack__line--b { margin-left: 10%; }
.wr-stack__line--b em { left: -4.6rem; top: 42%; }
.wr-stack__line--c { margin-left: 22%; }
.wr-stack__line--c em { left: 78%; top: 38%; }

.wr-hero__sub {
  margin: auto 0 0;
  max-width: 38ch;
  text-align: left;
  font-family: var(--wr-sans);
  font-size: clamp(0.92rem, 2vw, 1.05rem);
  line-height: 1.5;
  color: var(--wr-mute);
  background: var(--wr-panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(222, 138, 74, 0.22);
}

/* Horizontal pin scrub */
.wr-pin {
  height: 500vh;
  position: relative;
}
.wr-pin__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 4.5rem 0 3.5rem;
}
.wr-htrack {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  will-change: transform;
  padding-left: max(1.25rem, 6vw);
  padding-right: 20vw;
  width: max-content;
}
.wr-month {
  flex: 0 0 clamp(16.5rem, 28vw, 22rem);
  min-height: min(62svh, 28rem);
  padding: 1.35rem 1.4rem 1.5rem;
  background: var(--wr-panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(222, 138, 74, 0.28);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.wr-month code {
  font-size: 0.68rem;
  color: var(--wr-gold);
  letter-spacing: 0.06em;
}
.wr-month h2 {
  margin: 0.15rem 0 0;
  font-family: var(--wr-display);
  font-size: clamp(3.2rem, 8vw, 4.6rem);
  line-height: 0.85;
  letter-spacing: 0.02em;
  color: var(--wr-gold);
}
.wr-month h3 {
  margin: 0.35rem 0 0;
  font-family: var(--wr-sans);
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--wr-ink);
  letter-spacing: -0.01em;
}
.wr-month p {
  margin: 0;
  font-family: var(--wr-sans);
  font-size: 0.92rem;
  color: var(--wr-mute);
  line-height: 1.45;
}
.wr-month ul {
  margin: 0.35rem 0 0;
  padding: 0 0 0 1.05rem;
  font-family: var(--wr-sans);
  font-size: 0.82rem;
  color: rgba(247, 240, 228, 0.78);
}
.wr-month li + li { margin-top: 0.2rem; }
.wr-month__cta {
  margin-top: auto;
  padding-top: 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wr-gold);
  border-top: 1px solid rgba(222, 138, 74, 0.28);
}
.wr-month--end {
  border-color: rgba(222, 138, 74, 0.5);
  box-shadow: 0 0 0 1px rgba(222, 138, 74, 0.1);
}

.wr-progress {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 3.4rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.68rem;
  color: var(--wr-gold);
}
.wr-progress__bar {
  flex: 1;
  height: 1px;
  background: rgba(222, 138, 74, 0.22);
  overflow: hidden;
}
.wr-progress__bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--wr-gold);
  transform-origin: left center;
}

/* Close */
.wr-close {
  min-height: 85svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 5rem 1.25rem 6rem;
  max-width: 40rem;
  margin: 0 auto;
}
.wr-close__kicker {
  margin: 0;
  color: var(--wr-gold);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.wr-close h2 {
  margin: 0;
  font-family: var(--wr-display);
  font-size: clamp(2.8rem, 9vw, 4.5rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--wr-ink);
  max-width: 12ch;
}
.wr-close > p {
  margin: 0.25rem 0 0.5rem;
  font-family: var(--wr-sans);
  font-size: 1.05rem;
  color: var(--wr-mute);
  max-width: 36ch;
  background: var(--wr-panel);
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(222, 138, 74, 0.2);
}
.wr-close__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
}
.wr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.15rem;
  background: var(--wr-gold);
  color: #120d09;
  font-family: var(--wr-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--wr-gold);
  transition: transform 0.2s ease, background 0.2s ease;
}
.wr-btn:hover {
  color: #120d09;
  background: #f0a06a;
  transform: translateY(-1px);
}
.wr-btn--ghost {
  background: transparent;
  color: var(--wr-gold);
}
.wr-btn--ghost:hover {
  color: #120d09;
  background: var(--wr-gold);
}
.wr-close__back {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--wr-mute);
}

@media (max-width: 720px) {
  .wr-chrome--top { font-size: 0.62rem; }
  .wr-chrome__brand { display: none; }
  .wr-chrome--cta { max-width: 42vw; line-height: 1.3; }
  .wr-chrome--scroll { max-width: 48vw; }
  .wr-stack__line--b em { left: 0; top: -1.1rem; }
  .wr-stack__line--c em { left: auto; right: 0; top: -1rem; }
  .wr-pin { height: 420vh; }
  .wr-progress { bottom: 4.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .wr-scroll-cue__strike { animation: none; }
  .wr-loader { display: none; }
}
