/* Hektic Labs: shared styles for every page. */

@font-face { font-family: "Chakra Petch"; font-weight: 700; font-display: swap; src: url(/assets/fonts/ChakraPetch-Bold.woff2) format("woff2"); }
@font-face { font-family: "Lilita One"; font-weight: 400; font-display: swap; src: url(/assets/fonts/LilitaOne-Regular.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-display: swap; src: url(/assets/fonts/BarlowCondensed-Medium.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(/assets/fonts/BarlowCondensed-SemiBold.woff2) format("woff2"); }

:root {
  /* the studio */
  --black: #000;
  --white: #fff;
  --soft: #D5DDE2;        /* body text on black: light, never faint */
  --cyan: #22D3EE;
  /* Winch's paper */
  --cream: #F6E9C8;
  --ink: #2B1A12;
  --orange: #E8792B;
  --lip: #2A1A10;
  --studio: "Chakra Petch", system-ui, sans-serif;
  --winch-head: "Lilita One", "Arial Rounded MT Bold", sans-serif;
  --winch-body: "Barlow Condensed", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font: 500 19px/1.45 var(--winch-body);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cyan); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--black); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* ---------- 1. Header ---------- */
.studio-head {
  min-height: 88svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 56px 16px 72px;
  background: radial-gradient(60% 45% at 50% 42%, rgba(34, 211, 238, .10), transparent 70%), var(--black);
}
.flask { width: clamp(150px, 34vw, 230px); height: auto; margin: 0 auto 28px; overflow: visible; }
.flask .liquid { filter: drop-shadow(0 0 14px rgba(34, 211, 238, .55)); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(34, 211, 238, .35)); }
  50% { filter: drop-shadow(0 0 22px rgba(34, 211, 238, .75)); }
}
.studio-head h1 {
  margin: 0;
  font: 700 clamp(44px, 10vw, 92px)/1 var(--studio);
  letter-spacing: .04em;
}
.studio-head h1 span { color: var(--cyan); }
.studio-head .line {
  margin: 20px 0 0;
  font: 700 clamp(18px, 3.2vw, 24px)/1.3 var(--studio);
  color: var(--soft);
  letter-spacing: .02em;
}
.scroll-cue { margin-top: 48px; display: inline-block; color: var(--soft); text-decoration: none; font: 700 14px var(--studio); letter-spacing: .2em; text-transform: uppercase; }
.scroll-cue::after { content: ""; display: block; width: 2px; height: 32px; margin: 10px auto 0; background: linear-gradient(var(--cyan), transparent); }

/* ---------- 2. Winch: the studio's dark, warmed by his orange, over a faint topo sheet ---------- */
:root {
  --w-ground: #1C1410;                          /* outback night: the studio's black, warmed */
  --w-text: #F6E9C8;                            /* his cream, now the text */
  --w-soft: #DCCDB0;
  --w-orange: #E8792B;                          /* his logo orange: the accent */
  --w-sun: #F4A259;                             /* a lighter orange for words on the dark */
}
.winch {
  position: relative;
  background:
    radial-gradient(70% 55% at 75% 30%, rgba(232, 121, 43, .16), transparent 70%),
    linear-gradient(rgba(28, 20, 16, .68), rgba(28, 20, 16, .68)),
    url(/assets/img/topo-dark.svg) center / cover no-repeat,       /* drawn by tools/topo.py */
    var(--w-ground);
  color: var(--w-text);
  padding: 96px 0;
}
.w-top { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.w-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0; font: 600 15px var(--winch-body); letter-spacing: .14em; text-transform: uppercase; color: var(--w-sun); }
.w-kicker::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--w-orange); box-shadow: 0 0 12px var(--w-orange); }
.w-title { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.face { width: 84px; height: 84px; flex: none; border-radius: 50%; overflow: hidden; background: var(--w-orange); box-shadow: 0 0 0 3px rgba(232, 121, 43, .55), 0 12px 30px rgba(0, 0, 0, .4); }
.winch h2 { margin: 0; font: 400 clamp(42px, 6.4vw, 68px)/1 var(--winch-head); letter-spacing: .01em; }
.tagline { margin: 16px 0 0; font: 400 clamp(20px, 2.6vw, 25px)/1.25 var(--winch-head); color: var(--w-sun); }
.winch .line { margin: 16px 0 0; font-size: 21px; max-width: 30em; }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 2vw, 20px); margin: 0; padding: 0 4px; }
.shot { margin: 0; }
.shot img { border-radius: 16px; box-shadow: 0 24px 50px rgba(0, 0, 0, .5), 0 0 0 1px rgba(246, 233, 200, .12); }
.shot:nth-child(1) { transform: rotate(-3deg) translateY(10px); }
.shot:nth-child(2) { transform: translateY(-12px); }
.shot:nth-child(3) { transform: rotate(3deg) translateY(10px); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.w-road { height: 96px; margin-top: 36px; }
.w-road svg { display: block; overflow: visible; }
.card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px 22px 24px; border-radius: 16px;
  background: rgba(246, 233, 200, .05); border: 1px solid rgba(246, 233, 200, .16);
}
.card-kicker { display: flex; align-items: center; gap: 10px; font: 600 15px var(--winch-body); letter-spacing: .12em; text-transform: uppercase; color: var(--w-soft); }
.card-kicker svg { width: 26px; height: 26px; flex: none; }
.card h3 { margin: 0; font: 400 25px/1.1 var(--winch-head); }
.card p { margin: 0; font-size: 19px; flex: 1; color: var(--w-text); }
.w-btn {
  display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; gap: 10px;
  min-height: 50px; margin-top: 6px; padding: 0 22px; border-radius: 999px;
  background: var(--w-orange); color: #1C1410; text-decoration: none;
  font: 400 19px var(--winch-head); letter-spacing: .02em; box-shadow: 0 0 0 4px rgba(232, 121, 43, .18);
}
.w-btn:hover { background: #F08A3E; }
.w-btn:focus-visible { outline-color: var(--w-sun); }
.soon { /* a label, not a button: it isn't a link yet */
  display: inline-flex; align-items: center; align-self: flex-start; gap: 10px;
  min-height: 50px; margin-top: 6px; padding: 0 20px; border-radius: 999px;
  border: 1px dashed rgba(246, 233, 200, .5); color: var(--w-text);
  font: 600 17px var(--winch-body); letter-spacing: .08em; text-transform: uppercase;
}
.soon::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--w-orange); box-shadow: 0 0 10px var(--w-orange); }

/* the game's own orange button, still used on the cream support page */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 10px 18px;
  font: 400 20px/1 var(--winch-head);
  letter-spacing: .02em;
  color: var(--ink);
  background: var(--orange);
  border: 3px solid var(--lip);
  border-radius: 14px;
  box-shadow: 0 5px 0 var(--lip);
  text-decoration: none;
  transition: transform .08s, box-shadow .08s;
}
.btn:hover { background: #F08A3E; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--lip); }
.btn:focus-visible { outline-color: var(--ink); }

/* ---------- 3. The robot ---------- */
.robot { padding: 96px 0 104px; background: var(--black); }
.robot .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.pane {
  position: relative; border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 0 0 10px #0b0d10, 0 0 0 11px rgba(255, 255, 255, .08), 0 30px 80px rgba(34, 211, 238, .08);
  aspect-ratio: 4 / 5;
  background: #000;
}
.pane svg { width: 100%; height: 100%; display: block; }
.eye { transform-box: fill-box; transform-origin: center; animation: blink 7s infinite; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.sway { animation: sway 9s ease-in-out infinite; transform-origin: 200px 640px; }
@keyframes sway { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(.8deg); } }
.label { display: inline-block; font: 700 14px var(--studio); letter-spacing: .28em; text-transform: uppercase; color: var(--cyan); border: 1px solid rgba(34, 211, 238, .5); border-radius: 999px; padding: 6px 14px; }
.robot h2 { margin: 22px 0 0; font: 700 clamp(30px, 4.6vw, 48px)/1.12 var(--studio); }
.robot p { margin: 18px 0 0; font: 700 20px var(--studio); color: var(--soft); }

/* ---------- 4. Footer ---------- */
.foot { border-top: 1px solid rgba(255, 255, 255, .12); padding: 36px 0 44px; color: var(--soft); font: 700 16px/1.6 var(--studio); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; justify-content: space-between; }
.foot-brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.foot-brand svg { width: 30px; height: auto; }
.foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; }
.foot a { display: inline-block; padding: 12px 0; text-underline-offset: 4px; }

/* ---------- Phones ---------- */
@media (max-width: 700px) {
  body { font-size: 18px; }
  .cards, .w-top { grid-template-columns: 1fr; }
  .winch { padding: 72px 0; }
  .cards { margin-top: 12px; }
  .w-road { margin-top: 28px; }
  .robot .wrap { grid-template-columns: 1fr; }
  .robot { padding: 72px 0 80px; text-align: center; }
  .pane { max-width: 420px; margin: 0 auto; }
  .foot .wrap { flex-direction: column; align-items: flex-start; }
}

/* ---------- Grown: night navy and deep teal, amber for the diaries, a storybook serif ---------- */
:root {
  --g-night: #1A2333;
  --g-teal: #0F4C4A;
  --g-sea: #3E9C9A;
  --g-meadow: #C9B84A;
  --g-amber: #F2B54A;
  --g-text: #F3EBDD;
  --g-soft: #CFD8D6;
  --g-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
.grown-card { background: radial-gradient(80% 60% at 30% 40%, #13403F, transparent 70%), var(--g-night); color: var(--g-text); padding: 96px 0; }
.grown-card .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.grown-card figure { margin: 0; }
.grown-card figure img { border-radius: 20px; box-shadow: 0 30px 70px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08); }
.grown-card figcaption, .grown figcaption { margin-top: 10px; color: var(--g-soft); font: 500 17px var(--winch-body); }
.g-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0; font: 600 15px var(--winch-body); letter-spacing: .14em; text-transform: uppercase; color: var(--g-amber); }
.g-kicker::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--g-amber); box-shadow: 0 0 12px var(--g-amber); }
.grown-card h2, .grown h1 { margin: 14px 0 0; font: 700 clamp(48px, 8vw, 84px)/1 var(--g-serif); letter-spacing: -.01em; }
.g-tagline { margin: 12px 0 0; font: italic 400 clamp(20px, 2.6vw, 25px)/1.35 var(--g-serif); color: var(--g-sea); }
.grown-card p.blurb { margin: 18px 0 0; font-size: 20px; color: var(--g-text); }
.g-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; margin-top: 26px; padding: 0 24px;
  border-radius: 999px; background: var(--g-amber); color: var(--g-night); text-decoration: none;
  font: 700 19px var(--g-serif); box-shadow: 0 0 0 4px rgba(242, 181, 74, .18);
}
.g-btn:hover { background: #F6C46A; }
.g-btn:focus-visible { outline-color: var(--g-amber); }

/* the Grown page */
.grown { background: var(--g-night); color: var(--g-text); }
.grown .bar { border-bottom-color: var(--g-teal); }
.g-hero { position: relative; min-height: min(86svh, 760px); display: grid; align-items: end; overflow: hidden; }
.g-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--g-night) 4%, rgba(26, 35, 51, .55) 40%, transparent 70%); }
.g-hero .wrap { position: relative; z-index: 1; padding: 0 0 48px; }
.g-hero .g-cap { position: absolute; right: 16px; top: 16px; z-index: 1; margin: 0; padding: 6px 12px; border-radius: 999px; background: rgba(26, 35, 51, .7); color: var(--g-text); font: 500 16px var(--winch-body); }
.g-status { display: inline-block; margin-top: 18px; padding: 6px 14px; border: 1px solid rgba(242, 181, 74, .55); border-radius: 999px; color: var(--g-amber); font: 600 15px var(--winch-body); letter-spacing: .1em; text-transform: uppercase; }

.g-section { padding: 72px 0; }
.g-section.teal { background: var(--g-teal); }
.g-section h2 { margin: 0; font: 700 clamp(30px, 4.4vw, 44px)/1.1 var(--g-serif); }
.g-section p { margin: 14px 0 0; font-size: 20px; max-width: 38em; }
.g-two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.g-two.flip > :first-child { order: 2; }
.grown figure { margin: 0; }
.grown figure img, .grown video { width: 100%; height: auto; border-radius: 16px; display: block; background: #0c1320; }
.g-lede { font: italic 400 clamp(21px, 2.6vw, 26px)/1.45 var(--g-serif) !important; color: var(--g-text); max-width: 34em; }

.said { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.said div { padding: 18px 20px; border-radius: 14px; font-size: 19px; }
.said .out { background: rgba(243, 235, 221, .08); border: 1px solid rgba(243, 235, 221, .2); }
.said .diary { background: rgba(242, 181, 74, .12); border: 1px solid rgba(242, 181, 74, .55); box-shadow: 0 0 30px rgba(242, 181, 74, .12); }
.said b { display: block; margin-bottom: 6px; font: 600 14px var(--winch-body); letter-spacing: .14em; text-transform: uppercase; }
.said .out b { color: var(--g-soft); }
.said .diary b { color: var(--g-amber); }

.g-made { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.g-made li { padding: 20px 22px; border-radius: 14px; background: rgba(15, 76, 74, .45); border: 1px solid rgba(62, 156, 154, .35); font-size: 19px; }
.g-made li b { display: block; margin-bottom: 4px; font: 700 21px var(--g-serif); color: var(--g-meadow); }
.grown .g-wide { margin-top: 36px; }

.g-cast { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.g-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.g-note { margin-top: 40px !important; color: var(--g-soft); font-size: 18px !important; }

@media (max-width: 700px) {
  .grown-card { padding: 72px 0; }
  .grown-card .wrap, .g-two, .g-cast, .g-gallery, .g-made, .said { grid-template-columns: 1fr; }
  .g-two.flip > :first-child { order: 0; }
  .g-section { padding: 56px 0; }
  .g-hero .g-cap { display: none; }
}

/* ---------- Flair (home page; all of it stops for "reduce motion") ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the flask: bubbles rise through the liquid, the face blinks, a signal runs down the network */
.bubble { transform-box: fill-box; animation: bubble 5.5s ease-in infinite; opacity: 0; }
.b2 { animation-duration: 6.5s; animation-delay: 1.8s; }
.b3 { animation-duration: 4.8s; animation-delay: 3.1s; }
.b4 { animation-duration: 7s; animation-delay: .9s; }
@keyframes bubble { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: .85; } 80% { opacity: .7; } 100% { transform: translateY(-78px); opacity: 0; } }
.flask-look { transition: transform .5s cubic-bezier(.2, .7, .3, 1); }
.flask-blink { transform-box: fill-box; transform-origin: center; animation: fblink 7s infinite; }
@keyframes fblink { 0%, 93%, 97.5%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.node { animation: node 3.6s infinite; }
.n2 { animation-delay: .35s; }
@keyframes node { 0%, 14%, 100% { fill: #000; } 5% { fill: #22D3EE; } }

/* the flask tips anticlockwise as you scroll (assets/site.js); the liquid inside turns the other way, so it stays level */
.flask .tip { transform-box: view-box; transform-origin: 120px 150px; }
.studio-head .flask { position: relative; z-index: 6; }   /* above the tube (z-index 5): the glass covers the stream as it leaves */
.flask .level { transform-box: view-box; transform-origin: 120px 150px; }   /* the same point as the tip, so the surface stays put */
.tube { opacity: 0; transition: opacity .8s ease; }
.tube.ready { opacity: 1; }

/* the line types itself in, then "out of hand" glitches once */
.typed { display: inline-grid; }
.typed > span { grid-area: 1 / 1; }
.ghost { visibility: hidden; }
.type { text-align: left; }
.type.typing::after { content: ""; display: inline-block; width: .5em; height: 1em; margin-left: 2px; vertical-align: -.12em; background: var(--cyan); animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.oh { display: inline-block; }
.oh.glitch { animation: glitch .7s steps(2) 1; color: var(--white); }
@keyframes glitch {
  0% { transform: translate(0); text-shadow: -2px 0 var(--cyan), 2px 0 #E8792B; }
  20% { transform: translate(-2px, 1px) skewX(-8deg); text-shadow: 3px 0 var(--cyan), -3px 0 #E8792B; clip-path: inset(10% 0 40% 0); }
  40% { transform: translate(2px, -1px); text-shadow: -3px 0 var(--cyan), 3px 0 #E8792B; clip-path: inset(50% 0 5% 0); }
  60% { transform: translate(-1px, 0) skewX(6deg); text-shadow: 2px 0 var(--cyan), -2px 0 #E8792B; clip-path: none; }
  100% { transform: none; text-shadow: none; }
}

/* lab tubing from the flask down the side of the page to the robot */
.tube { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; overflow: visible; }
.tube .glass { fill: none; stroke: rgba(255, 255, 255, .13); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.tube .bore { fill: none; stroke: #06090B; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.tube .liquid { fill: none; stroke: var(--cyan); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(34, 211, 238, .8)); }
.robot.lit .eye { transition: opacity 1.2s; opacity: .92; }

/* the robot: a torch behind the glass, an eye that drifts toward it */
.pane { cursor: none; touch-action: pan-y; }
.eye-look { transition: transform .9s cubic-bezier(.2, .7, .3, 1); }

/* Winch: screenshots fan out, open full size, and tyre tracks cross the seam to Grown */
.shot-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 16px; }
.shot { transition: transform .45s cubic-bezier(.2, .7, .3, 1); }
@media (hover: hover) {
  .shots:hover .shot:nth-child(1) { transform: rotate(-7deg) translate(-18px, 16px); }
  .shots:hover .shot:nth-child(2) { transform: translateY(-22px) scale(1.04); }
  .shots:hover .shot:nth-child(3) { transform: rotate(7deg) translate(18px, 16px); }
  .shots .shot:hover { z-index: 1; }
}
.winch::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -15px; height: 30px; z-index: 2; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='30'%3E%3Cg fill='%23C98A5A' fill-opacity='.38'%3E%3Cpath d='M0 2h7l4 3.5-4 3.5H0l4-3.5z'/%3E%3Cpath d='M0 21h7l4 3.5-4 3.5H0l4-3.5z'/%3E%3C/g%3E%3C/svg%3E") repeat-x;
}
.viewer { border: 0; padding: 0; background: transparent; max-width: min(92vw, 460px); overflow: visible; }
.viewer::backdrop { background: rgba(0, 0, 0, .82); }
.viewer img { display: block; max-height: 86vh; width: auto; max-width: 100%; border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.viewer-close {
  position: absolute; top: -14px; right: -14px; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--w-orange); color: #1C1410; font: 700 28px/1 var(--studio); cursor: pointer;
}

/* Grown: amber specks drift over the island; hold it to see it at night */
.g-frame { position: relative; border-radius: 20px; }
.g-frame .night { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .9s ease; }
.g-fig:hover .night, .g-fig.hold .night { opacity: 1; }
.cap-night { display: none; }
.g-fig:hover .cap-day, .g-fig.hold .cap-day { display: none; }
.g-fig:hover .cap-night, .g-fig.hold .cap-night { display: inline; }
.cap-hint { opacity: .7; }
.g-fig:hover .cap-hint, .g-fig.hold .cap-hint { display: none; }
.g-fig { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.specks { position: absolute; inset: 0; overflow: hidden; border-radius: 20px; pointer-events: none; }
.specks i {
  position: absolute; left: var(--x); top: var(--y); width: 5px; height: 5px; border-radius: 50%;
  background: var(--g-amber); box-shadow: 0 0 10px 2px rgba(242, 181, 74, .7);
  opacity: 0; animation: speck 7s ease-in-out var(--d) infinite;
}
@keyframes speck { 0% { opacity: 0; transform: translate(0, 0); } 30% { opacity: .85; } 70% { opacity: .6; } 100% { opacity: 0; transform: translate(14px, -38px); } }

/* Shirl's track */
.road-bed { fill: none; stroke: rgba(201, 138, 90, .16); stroke-width: 12; stroke-linecap: round; }
.road-dash { fill: none; stroke: #C98A5A; stroke-width: 2.6; stroke-dasharray: 12 8; stroke-linecap: round; }
.mud { fill: #4A2E1C; }
.mud-wet { fill: #6B4329; }
.tree circle { fill: #4E6B3A; }
.tree circle:last-child { fill: #6E8B4E; }
.rope { stroke: #F6E9C8; stroke-width: 1.6; stroke-dasharray: 3 3; }
.ute-body { transform-box: fill-box; transform-origin: center; }
.ute-body.stuck { animation: wobble .22s linear infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(0) translate(0, 0); } 25% { transform: rotate(-7deg) translate(-1px, 1px); } 75% { transform: rotate(6deg) translate(1px, -1px); } }
.splat { fill: #6B4329; opacity: 0; transition: opacity .2s; }
.w-road.stuck .splat { opacity: .9; animation: splat .45s ease-out infinite; }
.splat:nth-child(2) { animation-delay: .15s !important; }
.splat:nth-child(3) { animation-delay: .3s !important; }
@keyframes splat { 0% { transform: translate(0, 0); opacity: .9; } 100% { transform: translate(var(--sx), var(--sy)); opacity: 0; } }
.stuck-word { font: 400 18px var(--winch-head); fill: var(--w-sun); opacity: 0; transition: opacity .25s; }
.w-road.stuck .stuck-word { opacity: 1; }

/* everywhere: rise in on arrival, a little tilt toward the cursor, and a fine film grain */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .3, 1); }
.js .reveal.in { opacity: 1; transform: none; }
body::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .05;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Inner pages: a slim studio bar, then a sheet of Winch's map ---------- */
.bar { background: var(--black); border-bottom: 6px solid var(--orange); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.bar a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; color: var(--white); text-decoration: none; font: 700 18px var(--studio); letter-spacing: .04em; }
.bar a span { color: var(--cyan); }
.bar svg { width: 26px; height: auto; }
.bar .back { font-size: 15px; color: var(--soft); letter-spacing: .02em; }

.sheet-page { background: url(/assets/img/topo.svg) center top / cover no-repeat, var(--cream); color: var(--ink); padding: 48px 0 72px; }
.sheet {
  max-width: 760px; margin: 0 auto;
  background: rgba(251, 243, 222, .96);
  border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 6px 0 var(--lip);
  padding: clamp(24px, 5vw, 48px);
  font-size: 19px;
}
.sheet-head { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.sheet-head img { width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--ink); flex: none; }
.sheet .kicker { margin: 0; font: 600 15px var(--winch-body); letter-spacing: .12em; text-transform: uppercase; }
.sheet h1 { margin: 2px 0 0; font: 400 clamp(32px, 6vw, 46px)/1.05 var(--winch-head); }
.sheet .updated { margin: 14px 0 0; font-weight: 600; }
.sheet h2 { margin: 32px 0 6px; font: 400 25px/1.15 var(--winch-head); }
.sheet p { margin: 8px 0 0; }
.sheet a { color: #8A3E0E; font-weight: 600; text-underline-offset: 3px; }
.sheet a:focus-visible { outline-color: var(--ink); }
.sheet .btn { color: var(--ink); font-weight: 400; text-decoration: none; }
.lead { font-size: 22px; }
.mail {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
  margin: 22px 0 6px; padding: 18px 20px; border: 2px dashed var(--ink); border-radius: 14px;
}
.mail p { margin: 0; flex: 1 1 220px; }
.mail .btn { flex: 0 0 auto; }
.faq { margin-top: 8px; }
.faq h2 { font-size: 23px; }

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 48px 16px; background: radial-gradient(60% 45% at 50% 40%, rgba(34, 211, 238, .08), transparent 70%), var(--black); }
.lost .flask { width: clamp(130px, 30vw, 190px); }
.lost h1 { margin: 0; font: 700 clamp(30px, 6vw, 48px)/1.1 var(--studio); }
.lost p { margin: 14px 0 0; color: var(--soft); font: 700 18px var(--studio); }
.lost .home { display: inline-flex; align-items: center; min-height: 48px; margin-top: 28px; padding: 0 22px; border: 2px solid var(--cyan); border-radius: 999px; color: var(--cyan); text-decoration: none; font: 700 16px var(--studio); letter-spacing: .06em; }
.lost .home:hover { background: rgba(34, 211, 238, .12); }

@media (max-width: 700px) {
  .bar .back { display: none; }
  .sheet { font-size: 18px; }
  .sheet-head img { width: 56px; height: 56px; }
}
