:root {
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] {
  --bg: #f6f3ec;
  --bg-soft: #efebe1;
  --ink: #141310;
  --muted: #6e6a60;
  --line: rgba(20, 19, 16, 0.1);
  --accent: #2f6b3f;
  --pop: #b9e34a;
  --pop-ink: #1c2a0e;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(20, 19, 16, 0.08);
  --spot: rgba(20, 19, 16, 0.05);
  --spot-strong: rgba(20, 19, 16, 0.085);
  --shadow: 0 18px 50px -18px rgba(20, 19, 16, 0.22);
}

[data-theme="dark"] {
  --bg: #0e0e0c;
  --bg-soft: #141411;
  --ink: #f2efe7;
  --muted: #98948a;
  --line: rgba(242, 239, 231, 0.1);
  --accent: #9fd9a9;
  --pop: #d6f655;
  --pop-ink: #161c07;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(242, 239, 231, 0.09);
  --spot: rgba(242, 239, 231, 0.045);
  --spot-strong: rgba(242, 239, 231, 0.075);
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.6);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.5s ease;
}

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

.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0.01em; }

.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120;
  pointer-events: none;
}
.progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--pop));
  border-radius: 0 99px 99px 0;
}

.grain {
  position: fixed; inset: -50%; z-index: 110; pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 7s steps(8) infinite;
}
@keyframes grain-shift {
  0%,100% { transform: translate(0,0); } 25% { transform: translate(-2%,3%); }
  50% { transform: translate(3%,-2%); } 75% { transform: translate(-3%,-3%); }
}

.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 130;
  pointer-events: none; border-radius: 50%;
  opacity: 0; transform: translate(-100px, -100px);
}
.cursor-dot { width: 8px; height: 8px; background: var(--ink); }
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid var(--ink);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out),
              border-radius 0.3s var(--ease-out), opacity 0.3s ease, background 0.25s ease;
}
body.cursor-on .cursor-dot, body.cursor-on .cursor-ring { opacity: 1; }
body.cursor-on, body.cursor-on * { cursor: none !important; }
body.cursor-hover .cursor-ring {
  width: 56px; height: 56px;
  background: var(--spot-strong);
  border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%;
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  transition: padding 0.4s var(--ease-out), background 0.4s ease,
              backdrop-filter 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding-top: 0.65rem; padding-bottom: 0.65rem;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.logo {
  font-weight: 700; font-size: 1.18rem; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: baseline;
  user-select: none;
}
.logo-o { display: inline-block; transition: transform 0.35s var(--ease-spring); }
.logo:hover .o-1 { transform: translateY(-3px) rotate(-8deg); }
.logo:hover .o-2 { transform: translateY(-3px) rotate(8deg); transition-delay: 0.05s; }
.logo-spot {
  width: 7px; height: 7px; margin-left: 4px; align-self: center;
  background: var(--pop);
  border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%;
  transition: transform 0.3s var(--ease-spring), background 0.3s ease;
}
.logo:hover .logo-spot { transform: scale(1.5) rotate(40deg); background: var(--accent); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.nav a {
  color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  position: relative; transition: color 0.25s ease;
}
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}
.nav a:not(.nav-cta):hover { color: var(--ink); }
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  color: var(--bg) !important; background: var(--ink);
  padding: 0.5rem 1.1rem; border-radius: 99px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--ease-spring) !important;
}
.nav-cta:hover { background: var(--accent); }

.theme-toggle {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--ink); cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease-spring), border-color 0.3s ease;
}
.theme-toggle:hover { transform: rotate(20deg) scale(1.08); border-color: var(--accent); }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }

@media (max-width: 640px) {
  .nav a:not(.nav-cta) { display: none; }
}

.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 7rem clamp(1.25rem, 6vw, 6rem) 5rem;
  position: relative;
}

.pasture { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.spot {
  position: absolute; background: var(--spot);
  will-change: transform;
  transition: background 0.5s ease;
}
.spot-a {
  width: 44vmax; height: 38vmax; top: -12%; right: -10%;
  border-radius: 62% 38% 54% 46% / 45% 58% 42% 55%;
  animation: drift 26s ease-in-out infinite alternate;
}
.spot-b {
  width: 26vmax; height: 22vmax; bottom: -8%; left: -6%;
  background: var(--spot-strong);
  border-radius: 45% 55% 60% 40% / 55% 45% 55% 45%;
  animation: drift 32s ease-in-out infinite alternate-reverse;
}
.spot-c {
  width: 13vmax; height: 11vmax; top: 22%; left: 16%;
  border-radius: 58% 42% 48% 52% / 50% 60% 40% 50%;
  animation: drift 22s ease-in-out infinite alternate;
}
.spot-d {
  width: 8vmax; height: 7vmax; bottom: 26%; right: 22%;
  background: var(--spot-strong);
  border-radius: 50% 50% 42% 58% / 60% 44% 56% 40%;
  animation: drift 19s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0, 0) rotate(0deg); }
  to   { transform: translate(3%, -4%) rotate(7deg); }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line); border-radius: 99px;
  padding: 0.45rem 1rem 0.45rem 0.8rem;
  background: var(--glass);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  margin-bottom: 2.2rem;
  position: relative; z-index: 2;
}
.tag-pin {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--pop);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pop) 25%, transparent);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--pop) 25%, transparent); }
  50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--pop) 8%, transparent); }
}

.hero-title {
  font-size: clamp(3rem, 11vw, 8.6rem);
  font-weight: 600; line-height: 0.98; letter-spacing: -0.04em;
  position: relative; z-index: 2;
  margin-bottom: 2.2rem;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-title .word {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1s var(--ease-out) forwards;
}
.line:nth-child(1) .word { animation-delay: 0.15s; }
.line:nth-child(2) .word { animation-delay: 0.3s; }
.line:nth-child(3) .word { animation-delay: 0.45s; }
@keyframes rise { to { transform: translateY(0); } }

.hero-title .serif { color: var(--accent); }

.dot { display: inline-block; color: var(--pop); cursor: help; transition: transform 0.4s var(--ease-spring), opacity 0.3s ease; }
.dot:hover { transform: scale(1.6) rotate(25deg); }
.dot.fled { opacity: 0; transform: scale(0); }
.dot-cow {
  position: fixed; z-index: 140; pointer-events: none;
  line-height: 1; transform: translate(-50%, -50%);
  animation: dot-flee 2.4s cubic-bezier(0.5, 0.05, 0.7, 0.5) forwards;
}
@keyframes dot-flee {
  0%   { transform: translate(-50%, -50%) scaleX(-1) translateY(0); }
  8%   { transform: translate(-50%, -50%) scaleX(-1) translateY(-0.6em); }
  16%  { transform: translate(-50%, -50%) scaleX(-1) translateY(0); }
  100% { transform: translate(-50%, -50%) scaleX(-1) translateX(-110vw); }
}

.hero-sub {
  max-width: 34rem; font-size: clamp(1rem, 1.4vw, 1.2rem); color: var(--muted);
  position: relative; z-index: 2; margin-bottom: 2.6rem;
}
.pun {
  color: var(--ink); font-weight: 500;
  text-decoration: underline dotted var(--accent) 1.5px;
  text-underline-offset: 4px; cursor: help;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; position: relative; z-index: 2; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95rem 1.9rem; border-radius: 99px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  position: relative; overflow: hidden;
  transition: transform 0.3s var(--ease-spring), background 0.3s ease,
              color 0.3s ease, border-color 0.3s ease;
}
.btn span { position: relative; z-index: 1; }
.btn-solid { background: var(--ink); color: var(--bg); border: 1px solid var(--ink); }
.btn-solid::before {
  content: ""; position: absolute; inset: 0;
  background: var(--accent);
  transform: translateY(101%); border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  transition: transform 0.4s var(--ease-out), border-radius 0.4s var(--ease-out);
}
.btn-solid:hover::before { transform: translateY(0); border-radius: 0; }
.btn-solid:hover { color: #fff; }
.btn-ghost {
  background: var(--glass); color: var(--ink);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-big { font-size: clamp(1.05rem, 2vw, 1.35rem); padding: 1.2rem 2.6rem; }

.scroll-cue {
  position: absolute; bottom: 2.2rem; left: clamp(1.25rem, 6vw, 6rem);
  display: flex; align-items: center; gap: 0.7rem;
  color: var(--muted); text-decoration: none; font-size: 0.75rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  z-index: 2; transition: color 0.3s ease;
}
.scroll-cue:hover { color: var(--ink); }
.scroll-cue-track {
  width: 22px; height: 38px; border: 1.5px solid currentColor; border-radius: 99px;
  display: flex; justify-content: center; padding-top: 6px;
}
.scroll-cue-thumb {
  width: 4px; height: 8px; background: currentColor; border-radius: 99px;
  animation: cue 1.8s var(--ease-out) infinite;
}
@keyframes cue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 1.4rem 0; overflow: hidden;
  background: var(--bg-soft);
  transition: background 0.5s ease;
}
.marquee-track {
  display: flex; align-items: center; gap: 3rem; width: max-content;
  animation: scroll-x 28s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-size: clamp(1.3rem, 3vw, 2.2rem); font-weight: 600;
  letter-spacing: -0.02em; text-transform: uppercase; white-space: nowrap;
  color: var(--muted);
}
.m-sneaky { transition: color 0.3s ease; }
.m-sneaky:hover { color: var(--accent); }
.m-spot {
  flex: none; width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%;
}
@keyframes scroll-x { to { transform: translateX(-50%); } }

.section { padding: clamp(5rem, 12vw, 9rem) clamp(1.25rem, 6vw, 6rem); }

.section-head {
  display: flex; align-items: baseline; gap: 1.2rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.section-no {
  font-family: var(--font-serif); font-style: italic;
  font-size: 1.1rem; color: var(--accent);
}
.section-head h2 {
  font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1.05;
}

.studio-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem); align-items: start;
}
.studio-lede {
  font-size: clamp(1.25rem, 2.4vw, 1.8rem); line-height: 1.45;
  font-weight: 400; letter-spacing: -0.01em;
}
.stats { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.stat {
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding: 1.4rem 1.5rem;
  transition: transform 0.35s var(--ease-spring), border-color 0.3s ease;
}
.stat:hover { transform: translateY(-4px); border-color: var(--accent); }
.stat-num {
  display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.1; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 800px) { .studio-grid { grid-template-columns: 1fr; } }

.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1.3rem;
}
.card {
  position: relative; overflow: hidden;
  border: 1px solid var(--glass-border); border-radius: 22px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  padding: 2rem 1.8rem 2.2rem;
  box-shadow: var(--shadow);
  transition: border-color 0.3s ease, transform 0.65s var(--ease-out);
  transform-style: preserve-3d;
  will-change: transform;
}
.card:hover { border-color: var(--accent); }
.card-no {
  font-family: var(--font-serif); font-style: italic;
  font-size: 2.4rem; color: var(--accent); opacity: 0.55;
  display: block; margin-bottom: 1.6rem; line-height: 1;
}
.card h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 0.7rem; }
.card p { font-size: 0.95rem; color: var(--muted); }
.card-spot {
  position: absolute; right: -22px; bottom: -26px;
  width: 90px; height: 78px;
  background: var(--spot-strong);
  border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%;
  transition: transform 0.5s var(--ease-spring), background 0.4s ease;
}
.card:hover .card-spot {
  transform: scale(1.35) rotate(18deg);
  background: color-mix(in srgb, var(--pop) 28%, transparent);
}

.steps {
  list-style: none;
  display: grid; gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  display: grid; grid-template-columns: 5rem 1fr; gap: 1.5rem;
  padding: 2.2rem 0.6rem;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background 0.4s ease, padding-left 0.4s var(--ease-out);
  border-radius: 14px;
}
.step:hover { background: var(--glass); padding-left: 1.4rem; }
.step-no {
  font-family: var(--font-serif); font-style: italic;
  font-size: 1.6rem; color: var(--accent);
}
.step h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.step p { color: var(--muted); max-width: 46rem; }

.quote-band {
  background: var(--bg-soft);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background 0.5s ease;
}
.big-quote { text-align: center; max-width: 60rem; margin: 0 auto; }
.big-quote p {
  font-size: clamp(1.8rem, 5vw, 3.8rem); font-weight: 500;
  letter-spacing: -0.03em; line-height: 1.15;
}
.big-quote .serif { color: var(--accent); }
.big-quote cite {
  display: block; margin-top: 1.6rem;
  font-style: normal; font-size: 0.9rem; color: var(--muted);
  letter-spacing: 0.08em;
}

.contact { text-align: center; }
.contact-inner { max-width: 46rem; margin: 0 auto; }
.contact .eyebrow { margin-bottom: 1.8rem; }
.contact-title {
  font-size: clamp(2.8rem, 8vw, 6rem); font-weight: 600;
  letter-spacing: -0.04em; line-height: 1; margin-bottom: 1.4rem;
}
.contact-title .serif { color: var(--accent); }
.contact-sub { color: var(--muted); margin-bottom: 2.6rem; font-size: 1.05rem; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem clamp(1.25rem, 6vw, 6rem);
  font-size: 0.85rem; color: var(--muted);
}
.footer-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
}
.footer-links { display: inline-flex; align-items: center; gap: 0.6rem; }
.footer-links a {
  color: var(--muted); text-decoration: none;
  border-bottom: 1px dotted var(--line);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.footer-links a:hover { color: var(--ink); border-color: var(--accent); }
.footer-fine {
  margin-top: 0.9rem; text-align: center;
  opacity: 0.65; font-size: 0.78rem;
}
.footer-dot { cursor: default; transition: color 0.3s ease; }
.footer-dot:hover { color: var(--pop); }
@media (max-width: 700px) { .footer-row { flex-direction: column; text-align: center; } }

.cookie-card {
  position: fixed; bottom: 1.2rem; left: 1.2rem; z-index: 115;
  max-width: 320px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border: 1px solid var(--glass-border); border-radius: 18px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
  transform: translateY(calc(100% + 2rem)); opacity: 0;
  pointer-events: none;
  transition: transform 0.6s var(--ease-spring), opacity 0.4s ease;
}
.cookie-card.show { transform: none; opacity: 1; pointer-events: auto; }
.cookie-text { font-size: 0.84rem; color: var(--muted); margin-bottom: 0.85rem; line-height: 1.5; }
.cookie-text strong { color: var(--ink); font-weight: 600; }
.cookie-text a { color: var(--accent); text-decoration: underline dotted; text-underline-offset: 3px; }
.cookie-actions { display: flex; gap: 0.6rem; }
.cookie-btn {
  flex: 1; padding: 0.5rem 0.9rem; border-radius: 99px;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease-spring);
}
.cookie-btn:hover { transform: translateY(-2px); }
.cookie-accept { background: var(--ink); color: var(--bg); border: 1px solid var(--ink); }
.cookie-accept:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.cookie-decline { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.cookie-decline:hover { color: var(--ink); border-color: var(--muted); }
@media (max-width: 480px) { .cookie-card { left: 0.8rem; right: 0.8rem; max-width: none; } }

.error-page {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: 7rem clamp(1.25rem, 6vw, 6rem) 5rem;
  position: relative; overflow: hidden;
}
.error-code {
  display: flex; align-items: center; justify-content: center; gap: 0.06em;
  font-size: clamp(6rem, 24vw, 16rem);
  font-weight: 700; line-height: 1; letter-spacing: -0.05em;
  position: relative; z-index: 2;
  margin-bottom: 1.6rem;
}
.blob-zero {
  display: inline-block;
  width: 0.74em; height: 0.84em;
  background: var(--pop);
  border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%;
  animation: blob-morph 7s ease-in-out infinite;
}
@keyframes blob-morph {
  0%, 100% { border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%; transform: rotate(0deg); }
  33% { border-radius: 45% 55% 48% 52% / 58% 44% 56% 42%; transform: rotate(4deg); }
  66% { border-radius: 52% 48% 60% 40% / 44% 56% 46% 54%; transform: rotate(-4deg); }
}
.error-title {
  font-size: clamp(1.6rem, 4vw, 2.8rem); font-weight: 600;
  letter-spacing: -0.03em; margin-bottom: 1rem;
  position: relative; z-index: 2;
}
.error-title .serif { color: var(--accent); }
.error-sub {
  max-width: 32rem; color: var(--muted);
  margin-bottom: 2.4rem; position: relative; z-index: 2;
}
.error-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; position: relative; z-index: 2; }
.lost-cow {
  position: absolute; bottom: 5vh; left: 0;
  font-size: 2.1rem; z-index: 2;
  cursor: pointer; user-select: none;
  animation: wander 40s linear infinite;
}
.lost-cow:active { transform: scale(1.2); }
@keyframes wander {
  0%   { transform: translateX(-12vw) scaleX(-1); }
  48%  { transform: translateX(106vw) scaleX(-1); }
  52%  { transform: translateX(106vw) scaleX(1); }
  100% { transform: translateX(-12vw) scaleX(1); }
}

.legal-main { padding-top: clamp(7rem, 14vw, 10rem); }
.legal-wrap { max-width: 44rem; margin: 0 auto; }
.legal-wrap h1 {
  font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 0.6rem;
}
.legal-updated {
  font-family: var(--font-serif); font-style: italic;
  color: var(--accent); margin-bottom: 2.6rem;
}
.legal-wrap h2 {
  font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em;
  margin: 2.4rem 0 0.7rem;
}
.legal-wrap p, .legal-wrap li { color: var(--muted); margin-bottom: 0.8rem; }
.legal-wrap ul { padding-left: 1.3rem; margin-bottom: 1rem; }
.legal-wrap a { color: var(--accent); text-underline-offset: 3px; }
.legal-wrap strong { color: var(--ink); font-weight: 600; }
.legal-table {
  width: 100%; border-collapse: collapse; margin: 1rem 0 1.6rem;
  font-size: 0.9rem;
}
.legal-table th, .legal-table td {
  text-align: left; padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.legal-table th { color: var(--ink); font-weight: 600; }
.legal-table td { color: var(--muted); }

.reveal { opacity: 0; transform: translateY(34px); }
.reveal.in {
  opacity: 1; transform: none;
  animation: reveal-up 0.9s var(--ease-out) backwards;
  animation-delay: var(--d, 0s);
}
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(34px); }
}

.stampede-cow {
  position: fixed; z-index: 140; left: 100vw; pointer-events: none;
  animation: stampede var(--dur, 3s) linear forwards;
  filter: grayscale(0.2);
}
@keyframes stampede {
  from { transform: translateX(0) scaleX(-1); }
  to   { transform: translateX(calc(-100vw - 140px)) scaleX(-1); }
}
.moo-toast {
  position: fixed; bottom: 2rem; left: 50%; z-index: 150;
  transform: translate(-50%, 120%);
  background: var(--ink); color: var(--bg);
  padding: 0.8rem 1.6rem; border-radius: 99px;
  font-weight: 600; font-size: 1rem; letter-spacing: 0.02em;
  box-shadow: var(--shadow);
  animation: toast 2.8s var(--ease-spring) forwards;
}
@keyframes toast {
  0% { transform: translate(-50%, 140%); }
  15%, 80% { transform: translate(-50%, 0); }
  100% { transform: translate(-50%, 160%); }
}
body.cowhide .spot { background: var(--spot-strong); transform: scale(1.25); }
body.cowhide .logo-spot { background: var(--accent); transform: scale(1.8) rotate(120deg); }
body.cowhide::after {
  content: ""; position: fixed; inset: 0; z-index: 5; pointer-events: none;
  background-image:
    radial-gradient(closest-side, var(--spot-strong) 96%, transparent),
    radial-gradient(closest-side, var(--spot-strong) 96%, transparent);
  background-size: 220px 180px, 140px 120px;
  background-position: 12% 28%, 78% 64%;
  background-repeat: no-repeat;
  animation: hide-in 0.6s var(--ease-out);
}
@keyframes hide-in { from { opacity: 0; transform: scale(1.1); } }

@supports (animation-timeline: view()) {
  .big-quote p {
    animation: quote-zoom linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 45%;
  }
  @keyframes quote-zoom {
    from { transform: scale(0.92); opacity: 0.3; }
    to   { transform: scale(1); opacity: 1; }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
