:root {
  --paper: #f4f3ee;
  --white: #ffffff;
  --ink: #151513;
  --muted: #8b887d;
  --line: rgba(21, 21, 19, 0.14);
  --moss: #56632a;
  --moss-deep: #2b3313;
  --earth: #a64f2b;
  --pad: clamp(20px, 3.4vw, 56px);
  --ease: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  --marker: "Permanent Marker", "Marker Felt", cursive;

  /* procedural textures — swap with real photos via background-image on the element */
  --tex-moss: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1400' height='900'><filter id='a' x='0' y='0' width='1' height='1'><feTurbulence type='fractalNoise' baseFrequency='.0035 .006' numOctaves='8' seed='11' result='t'/><feDiffuseLighting in='t' surfaceScale='22' diffuseConstant='1.15' lighting-color='%23ffffff' result='l'><feDistantLight azimuth='225' elevation='40'/></feDiffuseLighting><feTurbulence type='fractalNoise' baseFrequency='.01' numOctaves='3' seed='4' result='c'/><feColorMatrix in='c' type='matrix' values='0 0 0 0 .34  .32 0 0 0 .26  0 0 0 0 .10  0 0 0 0 1' result='cc'/><feBlend in='l' in2='cc' mode='multiply' result='m'/><feTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='2' seed='2' result='f'/><feDiffuseLighting in='f' surfaceScale='2.4' lighting-color='%23ffffff' result='fl'><feDistantLight azimuth='225' elevation='58'/></feDiffuseLighting><feBlend in='fl' in2='m' mode='multiply'/></filter><rect width='1400' height='900' filter='url(%23a)'/></svg>");
  --tex-earth: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='900'><filter id='a' x='0' y='0' width='1' height='1'><feTurbulence type='fractalNoise' baseFrequency='.005 .008' numOctaves='7' seed='23' result='t'/><feDiffuseLighting in='t' surfaceScale='12' diffuseConstant='1.1' lighting-color='%23ffffff' result='l'><feDistantLight azimuth='210' elevation='45'/></feDiffuseLighting><feTurbulence type='fractalNoise' baseFrequency='.014' numOctaves='3' seed='9' result='c'/><feColorMatrix in='c' type='matrix' values='.25 0 0 0 .62  .12 0 0 0 .27  0 0 0 0 .14  0 0 0 0 1' result='cc'/><feBlend in='l' in2='cc' mode='multiply' result='m'/><feTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='2' seed='5' result='f'/><feDiffuseLighting in='f' surfaceScale='1.8' lighting-color='%23ffffff' result='fl'><feDistantLight azimuth='210' elevation='60'/></feDiffuseLighting><feBlend in='fl' in2='m' mode='multiply'/></filter><rect width='1200' height='900' filter='url(%23a)'/></svg>");
}

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

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
::selection { background: var(--moss); color: var(--white); }

.hand { font-family: var(--hand); font-weight: 600; letter-spacing: 0; text-transform: none; }

/* ---------- TEXTURES ---------- */
.texture {
  position: absolute; inset: -8% 0;
  background-color: var(--moss);
  background-size: cover; background-position: center;
  will-change: transform;
}
.texture--moss { background-image: var(--tex-moss); }
.texture--deep { filter: brightness(0.72) saturate(1.1); }
.texture--earth { background-image: var(--tex-earth); background-color: var(--earth); }

/* ---------- TOPBAR ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: auto auto 1fr auto auto; align-items: center; gap: clamp(20px, 3.5vw, 56px);
  padding: 22px var(--pad);
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.01em; text-transform: uppercase;
  transition: background 0.4s, padding 0.4s, transform 0.6s var(--ease);
}
.topbar.is-scrolled { background: rgba(244, 243, 238, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.topbar.is-hidden { transform: translateY(-100%); }
.topbar__brand { font-weight: 700; text-transform: lowercase; letter-spacing: 0; }
.topbar__brand sup { font-size: 0.7em; font-weight: 500; margin-left: 1px; }
.topbar__nav { display: flex; justify-content: flex-end; gap: 28px; }
.topbar__nav a { position: relative; }
.topbar__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease);
}
.topbar__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.topbar__cta { padding: 7px 14px; border: 1px solid var(--ink); border-radius: 99px; transition: background 0.3s, color 0.3s; }
.topbar__cta::after { display: none; }
.topbar__cta:hover { background: var(--ink); color: var(--paper); }
.topbar__clock { font-variant-numeric: tabular-nums; }

/* ---------- BURGER + MOBILE MENU ---------- */
.burger {
  display: none; position: relative; width: 40px; height: 40px; margin-right: -8px;
  background: none; border: 0; cursor: pointer; color: inherit; -webkit-tap-highlight-color: transparent;
}
.burger span { position: absolute; left: 9px; right: 9px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 23px; }
body.menu-open .burger span:first-child { top: 19px; transform: rotate(45deg); }
body.menu-open .burger span:last-child { top: 19px; transform: rotate(-45deg); }
body.menu-open { overflow: hidden; }
body.menu-open .topbar { background: var(--paper); transform: none; border-bottom-color: transparent; backdrop-filter: none; }

.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--paper);
  display: grid; grid-template-rows: 1fr auto; gap: 30px;
  padding: 96px var(--pad) calc(28px + env(safe-area-inset-bottom));
  visibility: hidden; clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease), visibility 0s linear 0.7s;
}
body.menu-open .menu { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path 0.7s var(--ease), visibility 0s; }
.menu__links { display: grid; align-content: start; border-top: 1px solid var(--line); }
.menu__links a {
  display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(34px, 10vw, 52px); font-weight: 600; letter-spacing: -0.035em; line-height: 1;
  opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.menu__links a span { font-size: 11px; font-weight: 600; letter-spacing: 0; color: var(--earth); }
body.menu-open .menu__links a { opacity: 1; transform: none; }
body.menu-open .menu__links a:nth-child(1) { transition-delay: 0.25s; }
body.menu-open .menu__links a:nth-child(2) { transition-delay: 0.31s; }
body.menu-open .menu__links a:nth-child(3) { transition-delay: 0.37s; }
body.menu-open .menu__links a:nth-child(4) { transition-delay: 0.43s; }
.menu__foot { display: grid; gap: 14px; }
.menu__social { display: flex; gap: 24px; font-size: 14px; font-weight: 600; text-transform: uppercase; }
.menu__note { font-size: 24px; color: var(--earth); }

/* ---------- HERO ---------- */
.hero { position: relative; height: clamp(760px, 118vh, 1180px); background: var(--white); overflow: hidden; }
.hero__paper {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  padding: clamp(110px, 14vh, 150px) var(--pad) 0;
}
.logo {
  font-family: var(--marker); font-weight: 400;
  font-size: clamp(64px, 9.2vw, 158px); line-height: 0.86;
  color: transparent; -webkit-text-stroke: 1.6px var(--ink);
  transform: rotate(-5deg); transform-origin: left top;
  margin-left: 0.04em;
}
.logo__line { display: block; width: fit-content; opacity: 0; transform: translateY(30px); transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out); }
.logo__line--2 { margin-left: 0.55em; transition-delay: 0.12s; }
.logo__line--3 { position: relative; margin-left: 0.62em; transition-delay: 0.24s; }
.logo__sun { position: absolute; width: 0.6em; height: 0.6em; right: -0.46em; top: -0.18em; overflow: visible; }
.logo__sun path { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; transform-origin: 60px 60px; animation: spin 26s linear infinite; }
body.loaded .logo__line { opacity: 1; transform: none; }

.hero__intro { max-width: 400px; padding-top: 0; display: grid; align-content: start; gap: 14px; font-size: 15px; line-height: 1.45; color: #2c2b27; }
.hero__lead { font-family: var(--hand); font-size: 34px; line-height: 1; color: var(--ink); }
.hero__lead strong { font-weight: 600; }
.hero__motto { font-family: var(--marker); font-size: 22px; line-height: 1; margin-top: 6px; letter-spacing: 0.02em; color: var(--earth); rotate: -2deg; transform-origin: left; }
.hero__intro > * { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease-out) 0.35s, transform 1s var(--ease-out) 0.35s; }
.hero__intro > *:nth-child(2) { transition-delay: 0.45s; }
.hero__intro > *:nth-child(3) { transition-delay: 0.55s; }
body.loaded .hero__intro > * { opacity: 1; transform: none; }

.hero__hill {
  position: absolute; inset: 0; z-index: 1; overflow: hidden;
  clip-path: polygon(0 72%, 8% 69%, 15% 66.5%, 22% 63.5%, 29% 61%, 36% 58.5%, 43% 55.5%, 50% 52.5%, 56% 50%, 62% 46.5%, 68% 43.5%, 74% 40%, 80% 36%, 86% 32.5%, 92% 28.5%, 100% 24%, 100% 100%, 0 100%);
  color: var(--white);
}
.hero__hill .texture { inset: -10% 0 -10%; }

.prints {
  position: absolute; z-index: 2;
  left: 56%; top: 51%;
  display: flex; gap: clamp(14px, 2vw, 30px); align-items: flex-start;
  width: clamp(240px, 22vw, 360px);
}
.print { width: 50%; height: auto; overflow: visible; }
.print--shoe { margin-top: -4%; }
.print .fp { fill: none; stroke: var(--white); stroke-width: 1.7; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0.95; }
body.loaded .print .fp { animation: draw 1.8s var(--ease-out) forwards; animation-delay: calc(0.6s + var(--i) * 18ms); }
.print .tread { fill: var(--moss-deep); opacity: 0; transition: opacity 1s 1.8s; }
.print .tread-line { stroke: var(--white); stroke-width: 1.6; fill: none; opacity: 0; transition: opacity 1s 2s; }
body.loaded .print .tread, body.loaded .print .tread-line { opacity: 0.92; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.note {
  position: absolute; font-family: var(--hand); font-size: clamp(16px, 1.45vw, 22px); line-height: 0.85;
  color: var(--white); white-space: nowrap;
  opacity: 0; transition: opacity 1s var(--ease-out);
}
.note svg { width: 54px; height: 28px; overflow: visible; color: var(--white); }
.note path { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.note--top { top: -9%; left: 26%; }
.note--top svg { position: absolute; left: 84%; top: 60%; width: 64px; height: 36px; }
.note--r1, .note--r2, .note--r3, .note--r4 { left: 106%; display: grid; grid-template-columns: auto auto; align-items: center; gap: 6px; }
.note--r1 { top: 14%; } .note--r2 { top: 36%; } .note--r3 { top: 58%; } .note--r4 { top: 80%; }
.note--r1 svg, .note--r2 svg, .note--r3 svg, .note--r4 svg { grid-row: span 2; }
body.loaded .note { opacity: 1; transition-delay: 2s; }
body.loaded .note--r1 { transition-delay: 2.15s; }
body.loaded .note--r2 { transition-delay: 2.3s; }
body.loaded .note--r3 { transition-delay: 2.45s; }
body.loaded .note--r4 { transition-delay: 2.6s; }

.gridlines { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.gl { position: absolute; background: rgba(255, 255, 255, 0.75); }
.gl--h { left: 0; right: 0; top: var(--y); height: 1px; transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease); }
.gl--v { left: var(--x); top: var(--from); bottom: 0; width: 1px; transform: scaleY(0); transform-origin: top; transition: transform 1.2s var(--ease) 0.6s; }
body.loaded .gl { transform: none; }

.hero__coords { position: absolute; left: var(--pad); bottom: 4%; z-index: 2; font-size: 11.5px; font-weight: 500; text-transform: uppercase; line-height: 1.3; }

/* ---------- FIELD ---------- */
.field { position: relative; height: clamp(620px, 100vh, 960px); overflow: hidden; color: var(--white); text-transform: uppercase; font-size: 12px; line-height: 1.2; font-weight: 500; }
.field::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0) 30%, rgba(0,0,0,0.2)); pointer-events: none; }
.field__grid { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.field__grid line { stroke: rgba(255, 255, 255, 0.8); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 2000; stroke-dashoffset: 2000; transition: stroke-dashoffset 2.4s var(--ease); }
.field.in .field__grid line { stroke-dashoffset: 0; }
.field.in .field__grid line:nth-child(n+5) { transition-delay: 0.5s; }
.field__session { position: absolute; z-index: 2; left: 7%; top: 62%; display: grid; gap: 14px; }
.field__brand { position: absolute; z-index: 2; left: calc(50% + 18px); top: 64%; display: grid; gap: 12px; }
.field__mark { position: absolute; z-index: 2; left: 60%; top: 10%; width: min(30%, 380px); }
.mark { width: 100%; overflow: visible; }
.mark__ring { fill: none; stroke: var(--white); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease) 0.4s; }
.mark__ring--thin { stroke-width: 2.2; transition-delay: 0.7s; }
.field.in .mark__ring { stroke-dashoffset: 0; }
.mark__sun path, .mark__runner path { fill: var(--white); }
.mark__sun { transform-origin: 120px 100px; animation: spin 30s linear infinite; }

/* ---------- SHARED ---------- */
section.about, section.routes, section.week, section.social { padding: clamp(90px, 11vw, 160px) var(--pad); }
.kicker {
  display: flex; align-items: center; gap: 16px;
  font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.kicker::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.kicker span:first-child { color: var(--earth); }
.kicker--dark { margin-bottom: 28px; }

.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- ABOUT ---------- */
.about { background: var(--paper); overflow-x: clip; }
.about__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: end; }
.statement { font-weight: 600; font-size: clamp(34px, 4vw, 66px); line-height: 1; letter-spacing: -0.035em; }
.statement .hand { color: var(--earth); font-size: 1.25em; line-height: 0.6; }
.statement .muted { color: var(--muted); }
.about__copy { display: grid; gap: 16px; font-size: 17px; line-height: 1.55; color: #3b3a35; max-width: 44ch; transition-delay: 0.12s; }
.about__motto { font-family: var(--marker); font-size: 26px; line-height: 1.1; color: var(--earth); letter-spacing: 0.02em; rotate: -2deg; transform-origin: left; margin-top: 4px; }
.about__copy .link-arrow { font-family: var(--sans); }
.link-arrow { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; text-transform: uppercase; font-size: 12px; margin-top: 8px; width: fit-content; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.link-arrow span { transition: transform 0.4s var(--ease-out); }
.link-arrow:hover span { transform: translateX(6px); }

.founding {
  position: relative; margin-top: clamp(70px, 9vw, 130px);
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 110px); align-items: center;
  padding-top: clamp(50px, 6vw, 90px); border-top: 1px solid var(--line);
}
.founding__copy { display: grid; gap: 16px; max-width: 44ch; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  padding: 6px 12px; border: 1px solid var(--earth); border-radius: 99px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; color: var(--earth);
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--earth); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.join__card .pill { margin-bottom: 18px; }
.founding__copy h3 { font-weight: 600; font-size: clamp(38px, 4.4vw, 72px); line-height: 0.95; letter-spacing: -0.04em; }
.founding__copy p { font-size: 16px; line-height: 1.5; color: #3b3a35; }
.founding__copy .btn { margin-top: 6px; text-decoration: none; }
.founding__gift { display: flex; align-items: center; gap: 12px; }
.founding__gift svg { flex: none; width: 44px; height: 44px; fill: none; stroke: var(--earth); stroke-width: 3.5; stroke-linejoin: round; animation: wiggle 3.2s ease-in-out infinite; }
.founding__gift span { font-family: var(--hand); font-size: 26px; line-height: 1; color: var(--earth); font-weight: 600; }
@keyframes wiggle { 0%, 100% { transform: rotate(8deg); } 50% { transform: rotate(-6deg) translateY(-3px); } }

/* beta pass ticket */
.ticket-wrap { position: relative; padding: 30px 10px 0; }
.ticket {
  --stub: clamp(118px, 11vw, 150px);
  position: relative; display: grid; grid-template-columns: 1fr var(--stub);
  filter: drop-shadow(0 28px 34px rgba(21, 21, 19, 0.2));
  rotate: -2.5deg; transition: rotate 0.8s var(--ease-out), translate 0.8s var(--ease-out);
}
.ticket:hover { rotate: 0deg; translate: 0 -6px; }
.ticket__main {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 18px 4px 4px 18px; padding: clamp(20px, 2.2vw, 30px);
  min-height: clamp(260px, 22vw, 320px);
  display: grid; grid-template-rows: auto 1fr auto; gap: 18px; color: var(--white);
  -webkit-mask: radial-gradient(circle 12px at 100% 0, transparent 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 12px at 100% 100%, transparent 97%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 12px at 100% 0, transparent 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 12px at 100% 100%, transparent 97%, #000) bottom / 100% 51% no-repeat;
}
.ticket__main .texture { inset: 0; z-index: -1; filter: brightness(0.82); }
.ticket__main::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%);
  transform: translateX(-120%); animation: shine 6s ease-in-out infinite 1.5s;
}
@keyframes shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.ticket__top { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.ticket__title { font-family: var(--marker); font-size: clamp(40px, 4.6vw, 70px); line-height: 0.95; align-self: center; rotate: -3deg; }
.ticket__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; border-top: 1px solid rgba(255, 255, 255, 0.45); padding-top: 14px; }
.ticket__grid dt { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.75; }
.ticket__grid dd { font-size: 15px; font-weight: 600; line-height: 1.25; }

.ticket__stub {
  position: relative; background: #fbfaf6;
  border-radius: 4px 18px 18px 4px; border-left: 2px dashed rgba(21, 21, 19, 0.22);
  padding: 22px 14px; display: grid; justify-items: center; align-content: space-between; text-align: center;
  -webkit-mask: radial-gradient(circle 12px at 0 0, transparent 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 12px at 0 100%, transparent 97%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 12px at 0 0, transparent 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 12px at 0 100%, transparent 97%, #000) bottom / 100% 51% no-repeat;
}
.ticket__admit { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; }
.ticket__sun { width: 54px; height: 54px; overflow: visible; }
.ticket__sun path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; transform-origin: 60px 60px; animation: spin 24s linear infinite; }
.ticket__no { display: grid; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.ticket__no b { font-size: clamp(40px, 4vw, 54px); font-weight: 300; line-height: 0.95; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.2px var(--ink); }

.ticket__stamp {
  position: absolute; top: -34px; right: calc(var(--stub) + 18px); z-index: 2;
  width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--earth); box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 6.5px var(--earth);
  background: rgba(244, 243, 238, 0.92); color: var(--earth); rotate: 14deg;
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; text-align: center; line-height: 1.05;
}
.ticket-wrap.in .ticket__stamp { animation: stamp 0.6s var(--ease-out) 0.7s both; }
@keyframes stamp { from { opacity: 0; transform: scale(1.8); } to { opacity: 1; transform: scale(1); } }
.ticket__note { margin-top: 18px; text-align: right; font-size: 24px; color: var(--earth); padding-right: calc(var(--stub, 130px) * 0.3); }

/* ---------- ROUTES ---------- */
.routes { background: var(--white); }
.routes__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.routes__list { list-style: none; border-top: 1px solid var(--line); counter-reset: r; }
.route-item { border-bottom: 1px solid var(--line); }
.route-item button {
  width: 100%; display: grid; grid-template-columns: 40px 1fr auto 20px; gap: 14px; align-items: baseline;
  padding: 20px 0; background: none; border: 0; cursor: pointer; text-align: left; color: inherit; font: inherit;
  transition: padding 0.5s var(--ease-out), color 0.3s;
}
.route-item__n { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.route-item__name { font-size: clamp(22px, 2.2vw, 34px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.route-item__km { font-size: 12px; font-weight: 500; text-transform: uppercase; color: var(--muted); }
.route-item__arrow { opacity: 0; transform: translateX(-8px); transition: opacity 0.3s, transform 0.4s var(--ease-out); }
.route-item button:hover, .route-item.is-active button { padding-left: 14px; }
.route-item.is-active button { color: var(--earth); }
.route-item.is-active .route-item__n, .route-item.is-active .route-item__km { color: var(--earth); }
.route-item.is-active .route-item__arrow, .route-item button:hover .route-item__arrow { opacity: 1; transform: none; }
.route-item button:focus-visible { outline: 2px solid var(--earth); outline-offset: 2px; }

.routes__panel { position: sticky; top: 90px; aspect-ratio: 4 / 3.6; overflow: hidden; color: var(--white); border-radius: 2px; }
.routes__panel .texture { inset: 0; transition: background-color 0.6s, filter 0.6s; }
.routes__panel .texture.is-moss { background-image: var(--tex-moss); background-color: var(--moss); }
.routes__panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.45)); pointer-events: none; }
.routes__svg { position: absolute; inset: 6% 8% 30%; width: 84%; height: 64%; overflow: visible; z-index: 1; }
#routePath { fill: none; stroke: var(--white); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
#routeStart { fill: var(--white); }
.routes__info { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 26px; z-index: 2; display: grid; gap: 10px; }
.routes__num { font-size: 11.5px; font-weight: 600; }
.routes__info h3 { font-weight: 600; font-size: clamp(28px, 3vw, 46px); letter-spacing: -0.035em; line-height: 1; }
.routes__info dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; border-top: 1px solid rgba(255, 255, 255, 0.5); padding-top: 12px; }
.routes__info dt { font-size: 10.5px; text-transform: uppercase; font-weight: 600; opacity: 0.75; }
.routes__info dd { font-size: 15px; font-weight: 600; }
.routes__note { font-size: 22px; line-height: 1; }

/* ---------- WEEK ---------- */
.week { background: var(--paper); }
.week__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.day {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--paper); padding: 24px 22px 26px; min-height: 380px;
  display: grid; grid-template-rows: auto 1fr auto; gap: 18px;
  transition: color 0.5s, opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}
.day::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--tex-moss) center / cover, var(--moss);
  clip-path: inset(100% 0 0 0); transition: clip-path 0.7s var(--ease);
}
.day.day--earth::before { background: var(--tex-earth) center / cover, var(--earth); }
.day:hover { color: var(--white); }
.day:hover::before { clip-path: inset(0 0 0 0); }
.day:hover .day__meta, .day:hover .day__note { color: var(--white); }
.day__top { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 600; text-transform: uppercase; }
.day__d { font-weight: 700; font-size: clamp(64px, 6.4vw, 108px); letter-spacing: -0.06em; line-height: 0.85; align-self: center; }
.day__title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.day__meta { font-size: 12px; text-transform: uppercase; font-weight: 500; color: var(--muted); line-height: 1.4; margin-top: 6px; transition: color 0.4s; }
.day__note { font-family: var(--hand); font-size: 21px; color: var(--earth); margin-top: 10px; transition: color 0.4s; }
.week__grid .day:nth-child(2) { transition-delay: 0.06s; } .week__grid .day:nth-child(3) { transition-delay: 0.12s; } .week__grid .day:nth-child(4) { transition-delay: 0.18s; }

/* ---------- SOCIAL ---------- */
.social { background: var(--white); }
.social__title { text-align: center; text-transform: uppercase; font-size: 12px; font-weight: 500; }
.social__follow {
  display: block; width: fit-content; margin: 12px auto clamp(40px, 5vw, 70px);
  font-family: var(--hand); font-size: 24px; color: var(--earth);
  border-bottom: 1px solid transparent; transition: border-color 0.3s;
}
.social__follow:hover { border-color: currentColor; }
.post__handle:hover { text-decoration: underline; }
.social__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 40px); }
.post { display: grid; gap: 10px; font-size: 12.5px; }
.post__head { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.post__avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.post__avatar svg { width: 22px; height: 22px; }
.post__avatar path { fill: var(--white); }
.post__dots { margin-left: auto; font-weight: 700; letter-spacing: 1px; }
.post__img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.post__img .texture { inset: 0; transition: transform 1.2s var(--ease-out); }
.post:hover .post__img .texture { transform: scale(1.06); }
.post__overlay { position: absolute; inset: 0; z-index: 1; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; color: var(--white); }
.post__big { font-weight: 700; font-size: clamp(24px, 2.3vw, 36px); line-height: 0.95; letter-spacing: -0.03em; text-transform: uppercase; white-space: pre-line; }
.post__small { font-size: 10.5px; font-weight: 600; text-transform: uppercase; display: flex; justify-content: space-between; }
.post__icons { display: flex; gap: 14px; font-size: 18px; }
.post__icons button { background: none; border: 0; cursor: pointer; font-size: 18px; color: var(--ink); line-height: 1; transition: transform 0.3s var(--ease-out), color 0.3s; }
.post__icons button[aria-pressed="true"] { color: #e0402a; transform: scale(1.15); }
.post__likes { font-weight: 600; }
.post__cap b { font-weight: 600; }
.social__grid .post:nth-child(2) { transition-delay: 0.08s; } .social__grid .post:nth-child(3) { transition-delay: 0.16s; } .social__grid .post:nth-child(4) { transition-delay: 0.24s; }

/* ---------- JOIN ---------- */
.join { position: relative; overflow: hidden; padding: clamp(100px, 12vw, 180px) var(--pad); display: grid; place-items: center; }
.join__card { position: relative; z-index: 1; width: min(640px, 100%); background: var(--paper); padding: clamp(28px, 4vw, 52px); }
.join__title { font-weight: 600; font-size: clamp(40px, 4.8vw, 72px); line-height: 0.98; letter-spacing: -0.04em; }
.join__title .hand { color: var(--earth); font-size: 1.2em; }
.join__sub { margin: 18px 0 30px; color: #4a4943; max-width: 44ch; }
.form { display: grid; gap: 20px; }
.form__field { display: grid; gap: 6px; border: 0; }
.form__field > span, .form__field legend { font-size: 11px; font-weight: 600; text-transform: uppercase; }
.form__field input[type="text"], .form__field input[type="email"] {
  background: transparent; border: 0; border-bottom: 1px solid rgba(21, 21, 19, 0.3); border-radius: 0;
  font: inherit; font-size: 20px; font-weight: 500; padding: 6px 0 10px; outline: none; color: var(--ink);
  transition: border-color 0.3s;
}
.form__field input:focus { border-color: var(--earth); }
.form__field input[aria-invalid="true"] { border-color: #d0341f; }
.form__pace { display: flex; flex-wrap: wrap; gap: 8px; }
.form__pace legend { width: 100%; margin-bottom: 8px; }
.form__pace label { position: relative; cursor: pointer; }
.form__pace input { position: absolute; opacity: 0; pointer-events: none; }
.form__pace span { display: inline-block; padding: 9px 16px; border: 1px solid rgba(21, 21, 19, 0.3); border-radius: 99px; font-size: 13px; font-weight: 500; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.form__pace input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.form__pace input:focus-visible + span { outline: 2px solid var(--earth); outline-offset: 2px; }
.btn {
  justify-self: start; display: inline-flex; gap: 12px; align-items: center;
  padding: 16px 26px; border: 0; border-radius: 99px; cursor: pointer;
  background: var(--earth); color: var(--white); font: inherit; font-weight: 600; font-size: 14px;
  transition: background 0.3s, transform 0.4s var(--ease-out);
}
.btn:hover { background: var(--ink); }
.btn span { transition: transform 0.4s var(--ease-out); }
.btn:hover span { transform: translateX(5px); }
.form__msg { min-height: 1.4em; font-family: var(--hand); font-size: 22px; color: var(--earth); }

/* ---------- FOOTER ---------- */
.footer { background: var(--paper); padding: 80px var(--pad) 26px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; font-size: 14px; }
.footer__top > div { display: grid; gap: 6px; align-content: start; }
.footer__top a { width: fit-content; border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.footer__top a:hover { border-color: currentColor; }
.label { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--muted); }
.footer__logo {
  font-family: var(--marker); font-size: 11.6vw; line-height: 1; white-space: nowrap; text-align: center;
  color: transparent; -webkit-text-stroke: 1.5px var(--ink);
  transform: rotate(-3deg); margin: 70px 0 40px;
}
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 12px; text-transform: uppercase; font-weight: 500; flex-wrap: wrap; }
.footer__bottom .hand { font-size: 22px; color: var(--earth); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .topbar { grid-template-columns: auto 1fr auto; }
  .topbar__tag, .topbar__meta:not(.topbar__clock) { display: none; }
  .week__grid { grid-template-columns: repeat(2, 1fr); }
  .social__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  /* topbar */
  .topbar { grid-template-columns: 1fr auto auto auto; gap: 14px; padding: 14px var(--pad); }
  .topbar.is-scrolled { padding-top: 10px; padding-bottom: 10px; }
  .topbar__nav a:not(.topbar__cta) { display: none; }
  .burger { display: block; }

  /* hero: stack paper above a hill block */
  .hero { height: auto; min-height: 0; display: flex; flex-direction: column; }
  .hero__paper { grid-template-columns: 1fr; gap: 28px; padding: 104px var(--pad) 0; }
  .logo { font-size: clamp(60px, 17vw, 120px); -webkit-text-stroke-width: 1.3px; }
  .hero__intro { max-width: 34em; }
  .hero__lead { font-size: clamp(28px, 7.4vw, 36px); }
  .hero__intro p:not(.hero__lead):not(.hero__motto) { font-size: 16px; line-height: 1.5; }
  .hero__hill {
    position: relative; inset: auto; margin-top: 34px;
    height: clamp(500px, 138vw, 760px);
    clip-path: polygon(0 14%, 12% 12.5%, 25% 10.5%, 38% 8.5%, 50% 6.5%, 63% 4.8%, 75% 3.2%, 88% 1.6%, 100% 0, 100% 100%, 0 100%);
  }
  .prints { left: 7%; top: 20%; width: 52vw; gap: 4vw; }
  .note { font-size: 16px; }
  .note--top { top: -8%; left: 16%; }
  .note--top svg { width: 40px; height: 26px; }
  .note--r1, .note--r2, .note--r3, .note--r4 { left: 104%; gap: 4px; }
  .note--r1 svg, .note--r2 svg, .note--r3 svg, .note--r4 svg { width: 24px; height: 18px; }
  .gridlines--hero { display: none; }
  .hero__coords { bottom: 22px; }

  /* field */
  .field { height: clamp(580px, 160vw, 780px); font-size: 11.5px; }
  .field__grid { display: none; }
  .field__session { left: var(--pad); top: 7%; }
  .field__mark { left: auto; right: var(--pad); top: 33%; width: 58%; }
  .field__brand { left: var(--pad); top: auto; bottom: 6%; }

  /* about */
  .about__grid, .routes__grid { grid-template-columns: 1fr; }
  .founding { grid-template-columns: 1fr; gap: 50px; }

  /* routes: panel sticks while the list scrolls beneath */
  .routes__panel { position: sticky; top: 62px; z-index: 3; order: -1; aspect-ratio: 4 / 3.4; }
  .routes__svg { inset: 5% 10% auto; width: 80%; height: 46%; }
  .routes__info { padding: 16px 18px; gap: 8px; }
  .routes__info h3 { font-size: 26px; }
  .routes__info dl { gap: 8px; padding-top: 10px; }
  .routes__info dt { font-size: 9.5px; }
  .routes__info dd { font-size: 13px; line-height: 1.2; }
  .routes__note { font-size: 18px; }
  .route-item button { padding: 16px 0; grid-template-columns: 32px 1fr auto 16px; gap: 10px; }
  .route-item__name { font-size: 22px; }

  .footer__top { grid-template-columns: 1fr 1fr; row-gap: 30px; }
}
@media (max-width: 560px) {
  .topbar__clock { display: none; }
  .topbar__cta { padding: 6px 12px; font-size: 10.5px; }

  .kicker { margin-bottom: 36px; }
  section.about, section.routes, section.week, section.social { padding-top: 80px; padding-bottom: 80px; }

  .statement { font-size: 34px; }
  .about__copy { font-size: 16px; }
  .founding__copy .btn { justify-self: stretch; justify-content: center; }
  .ticket-wrap { padding: 34px 0 0; }
  .ticket { grid-template-columns: 1fr; rotate: -1.5deg; }
  .ticket__main {
    border-radius: 18px 18px 4px 4px; min-height: 0;
    -webkit-mask: radial-gradient(circle 12px at 0 100%, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 100%, transparent 97%, #000) right / 51% 100% no-repeat;
            mask: radial-gradient(circle 12px at 0 100%, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 100%, transparent 97%, #000) right / 51% 100% no-repeat;
  }
  .ticket__grid dd { font-size: 14px; }
  .ticket__stub {
    border-radius: 4px 4px 18px 18px; border-left: 0; border-top: 2px dashed rgba(21, 21, 19, 0.22);
    grid-template-columns: auto 1fr auto; align-items: center; justify-items: start; text-align: left; gap: 14px; padding: 16px 18px;
    -webkit-mask: radial-gradient(circle 12px at 0 0, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 0, transparent 97%, #000) right / 51% 100% no-repeat;
            mask: radial-gradient(circle 12px at 0 0, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 0, transparent 97%, #000) right / 51% 100% no-repeat;
  }
  .ticket__sun { width: 40px; height: 40px; justify-self: center; }
  .ticket__no { text-align: right; justify-self: end; }
  .ticket__no b { font-size: 36px; }
  .ticket__stamp { width: 84px; height: 84px; font-size: 10.5px; top: -32px; right: 10px; }
  .ticket__note { text-align: center; padding-right: 0; }

  .week__grid { grid-template-columns: 1fr; }
  .day { min-height: 0; grid-template-columns: 84px 1fr; grid-template-rows: auto auto; gap: 10px 14px; padding: 18px 18px 20px; }
  .day__top { grid-column: 1 / -1; }
  .day__d { font-size: 44px; align-self: start; }
  .day__title { font-size: 21px; }
  .day__note { font-size: 19px; margin-top: 6px; }

  .social__title { font-size: 11px; }
  .social__grid {
    grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 80%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 10px; scroll-padding: 0 var(--pad);
  }
  .social__grid::-webkit-scrollbar { display: none; }
  .post { scroll-snap-align: start; }

  .join { padding: 70px 12px; }
  .join__card { padding: 30px 20px; }
  .join__title { font-size: 42px; }
  .form .btn { justify-self: stretch; justify-content: center; }

  .footer { padding-top: 60px; }
  .footer__logo { font-size: 12.5vw; margin: 50px 0 30px; -webkit-text-stroke-width: 1.1px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

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