/* Formiga site — one page that travels: the night desktop, the train, the Hill by day, and Home. */

:root {
  --ink: #0d1517;
  --night: #121e21;
  --night-2: #1a2b2f;
  --night-3: #24393e;
  --mint: #8fdcc0;
  --mint-2: #5fb89b;
  --coral: #f0605a;
  --coral-2: #d9473f;
  --cream: #f7f0de;
  --paper: #efe5cc;
  --sky: #cfe6ec;
  --grass: #86c06c;
  --grass-2: #4f8b45;
  --forest: #2e5b3a;
  --wood: #a8683a;
  --home: #ebdfcc;
  --text-light: #e8efe9;
  --muted-light: #9fb3ad;
  --text-dark: #26231d;
  --muted-dark: #6b6352;

  --serif: "Young Serif", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --pixel: "Silkscreen", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1200px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text-light);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
img[src$=".png"], img[src$=".gif"] { image-rendering: pixelated; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
h4 { font: 600 1rem/1.3 var(--sans); margin: 0 0 .35em; }
p { margin: 0 0 1em; }
code { font: .9em ui-monospace, monospace; background: rgba(0,0,0,.08); padding: .1em .35em; border-radius: 4px; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.22rem); max-width: 40em; opacity: .88; }
.note { font-size: .88rem; opacity: .7; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--mint); color: var(--ink); padding: 8px 12px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 4px; }

/* ---------- buttons, labels ---------- */
.btn {
  --b: var(--mint);
  display: inline-flex; align-items: center; gap: .5em;
  font: 600 1rem/1 var(--sans);
  padding: .95em 1.4em;
  border-radius: 999px;
  border: 2px solid var(--b);
  background: var(--b); color: var(--ink);
  text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 0 color-mix(in srgb, var(--b) 55%, #000);
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 color-mix(in srgb, var(--b) 55%, #000); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 color-mix(in srgb, var(--b) 55%, #000); }
.btn--ghost { background: transparent; color: var(--text-light); border-color: rgba(232,239,233,.35); box-shadow: none; }
.btn--ghost:hover { box-shadow: none; border-color: var(--mint); }
.btn--coral { --b: var(--coral); color: #fff; }
.btn--ink { --b: var(--text-dark); background: transparent; color: var(--text-dark); box-shadow: none; }
.btn--ink:hover { box-shadow: none; background: rgba(38,35,29,.06); }
.btn[disabled] { opacity: .45; pointer-events: none; }

.eyebrow { font: .78rem/1 var(--pixel); text-transform: uppercase; letter-spacing: .04em; color: var(--mint); display: flex; align-items: center; gap: .6em; margin-bottom: 1.4em; }
.eyebrow--dark { color: var(--coral-2); }
.dot { width: 8px; height: 8px; background: var(--mint); border-radius: 2px; box-shadow: 0 0 0 4px rgba(143,220,192,.18); animation: blink 2.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .35; } }

.tag { display: flex; flex-wrap: wrap; align-items: center; gap: .6em; font: .85rem/1 var(--pixel); text-transform: uppercase; margin-bottom: 1.2em; color: var(--mint); }
.tag em { font-style: normal; opacity: .6; }
.tag img { border-radius: 6px; }
.pill { font: .72rem/1 var(--pixel); padding: .5em .8em; border-radius: 999px; }
.pill--soon { background: var(--coral); color: #fff; }
.pill--workshop { background: var(--wood); color: #fff8ec; }
.kbd { font: .72rem/1 var(--pixel); padding: .3em .5em; border: 1px solid currentColor; border-radius: 5px; opacity: .8; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .3s, color .3s;
}
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 1.25rem var(--serif); }
.nav__brand img { border-radius: 8px; }
.nav__links { display: flex; gap: 22px; margin-left: auto; font-size: .95rem; }
.nav__links a { text-decoration: none; opacity: .75; }
.nav__links a:hover, .nav__links a[aria-current] { opacity: 1; }
.nav__cta { font: 600 .9rem/1 var(--sans); text-decoration: none; background: var(--coral); color: #fff; padding: .7em 1.1em; border-radius: 999px; }
.nav--light { background: color-mix(in srgb, var(--cream) 82%, transparent); color: var(--text-dark); border-color: rgba(0,0,0,.06); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: 120px var(--gutter) 72px;
  max-width: 1440px; margin: 0 auto;
}
.hero::before {
  content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1;
  background:
    radial-gradient(60% 50% at 75% 40%, rgba(143,220,192,.12), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(240,96,90,.10), transparent 70%),
    var(--night);
}
.hero__copy > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero h1 { font-size: clamp(2.5rem, 4.8vw, 4rem); }
.hero__copy > :nth-child(2) { animation-delay: .08s; }
.hero__copy > :nth-child(3) { animation-delay: .16s; }
.hero__copy > :nth-child(4) { animation-delay: .24s; }
.hero__copy > :nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero__hint { font-size: .85rem; color: var(--muted-light); display: flex; gap: .5em; align-items: center; flex-wrap: wrap; }

.stage {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(160deg, #1d3236, #0f1a1c 70%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.07), 0 40px 80px -30px rgba(0,0,0,.7);
  user-select: none;
  animation: rise 1s .2s cubic-bezier(.2,.7,.2,1) both;
}
.stage::before { /* menu bar */
  content: ""; position: absolute; inset: 0 0 auto; height: 22px;
  background: rgba(10,16,18,.7); border-bottom: 1px solid rgba(255,255,255,.05); z-index: 1;
}
.stage__dock {
  position: absolute; left: 50%; bottom: 8px; translate: -50% 0; z-index: 1;
  display: flex; gap: 8px; padding: 7px 10px; border-radius: 12px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.06);
}
.stage__dock i { width: 22px; height: 22px; border-radius: 6px; background: var(--night-3); }
.stage__dock i:nth-child(1) { background: #3f6f8a; }
.stage__dock i:nth-child(2) { background: #c8a24a; }
.stage__dock i:nth-child(3) { background: url(../img/icon-256.png) center / cover; }
.stage__dock i:nth-child(4) { background: #6a5a8e; }
.stage__village {
  position: absolute; right: 2.5%; bottom: 11%; width: 18%; aspect-ratio: 96 / 72;
  background: url(../img/village-house.svg) center / contain no-repeat;
  opacity: .9;
  pointer-events: none;
}

.win {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h);
  background: #2a4247; border-radius: 6px;
  box-shadow: 0 18px 30px -12px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06);
  z-index: 2;
  display: flex; flex-direction: column;
}
.win.is-dragging { box-shadow: 0 26px 40px -12px rgba(0,0,0,.7), 0 0 0 1px rgba(143,220,192,.4); }
.win__bar {
  height: 22px; flex: none; display: flex; align-items: center; gap: 5px; padding: 0 8px;
  background: #1a2a2e; border-radius: 6px 6px 0 0; cursor: grab;
  touch-action: none;
  font: 9px/1 var(--pixel); color: var(--muted-light);
}
.win__bar:active { cursor: grabbing; }
.win__bar i { width: 7px; height: 7px; border-radius: 50%; background: #e86a5f; }
.win__bar i:nth-child(2) { background: #e4b84c; }
.win__bar i:nth-child(3) { background: #6cc46a; }
.win__bar span { margin-left: 6px; }
.win__body { flex: 1; overflow: hidden; padding: 10px 12px; }
.win__body--lines p { font: 11px/1 var(--pixel); color: var(--mint); margin: 2px 0 10px; }
.win__body--lines span { display: block; height: 6px; margin: 0 0 9px; border-radius: 3px; background: rgba(255,255,255,.1); }
.win--sheet { background: #33334a; }
.win--sheet .win__bar { background: #23233a; }
.win__body--grid {
  background:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 100% 16px,
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 48px 100%;
}
.win--music { background: #3a2e3a; }
.win--music .win__bar { background: #2a2029; }
.win__body--music { display: flex; align-items: center; gap: 10px; }
.win__body--music b { width: 32px; height: 32px; flex: none; border-radius: 4px; background: linear-gradient(135deg, var(--coral), #e4b84c); }
.win__body--music span { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.12); }
.win__body--music em { display: block; height: 100%; width: 40%; background: var(--mint); border-radius: 2px; animation: play 30s linear infinite; }
@keyframes play { to { width: 100%; } }

.critter {
  position: absolute; left: 0; top: 0; z-index: 5;
  padding: 0; border: 0; background: transparent;
  transform-origin: 50% 100%;
  cursor: pointer;
  will-change: transform;
}
.critter img { width: 100%; height: auto; pointer-events: none; transform: scaleX(var(--face, 1)); }
.critter.is-held { cursor: grabbing; }
.critter .bob { animation: bob .5s steps(2) infinite; }
@keyframes bob { 50% { translate: 0 -6%; } }
.heart {
  position: absolute; z-index: 6; pointer-events: none;
  font: 14px/1 var(--pixel); color: var(--coral);
  animation: float 1s ease-out forwards;
}
@keyframes float { to { translate: 0 -34px; opacity: 0; } }

/* ---------- facts ---------- */
.facts { background: var(--ink); border-block: 1px solid rgba(255,255,255,.06); padding: 26px var(--gutter); }
.facts ul { list-style: none; margin: 0 auto; padding: 0; max-width: var(--max); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; }
.facts li { display: flex; align-items: baseline; gap: .55em; }
.facts b { font: 1.8rem/1 var(--serif); color: var(--mint); }
.facts span { color: var(--muted-light); font-size: .9rem; }

/* ---------- worlds ---------- */
.world { padding: clamp(80px, 12vw, 150px) var(--gutter); }
.world > * { max-width: var(--max); margin-inline: auto; }
.world__head { margin-bottom: clamp(48px, 7vw, 88px); }

.world--desktop { background: var(--night); }

.feature {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px);
  align-items: center; margin-bottom: clamp(72px, 10vw, 128px);
}
.feature--flip .feature__text { order: 2; }
.feature__text p { color: #c9d6d1; }
.feature__art { margin: 0; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

.seeds { background: var(--cream); border-radius: var(--radius); padding: clamp(10px, 2vw, 22px); position: relative; overflow: hidden; }
.seeds img { width: 100%; }
.seeds__lens {
  position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 3px var(--coral), 0 10px 30px rgba(0,0,0,.3);
  background-repeat: no-repeat; background-color: var(--cream); image-rendering: pixelated;
  opacity: 0; transition: opacity .15s; translate: -50% -50%;
}
.seeds:hover .seeds__lens { opacity: 1; }

.frame { background: #1a2a2e; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.07); }
.frame__bar { height: 26px; display: flex; gap: 6px; align-items: center; padding: 0 10px; }
.frame__bar i { width: 9px; height: 9px; border-radius: 50%; background: #e86a5f; }
.frame__bar i:nth-child(2) { background: #e4b84c; }
.frame__bar i:nth-child(3) { background: #6cc46a; }
.frame img { width: 100%; }

.marquee { overflow: hidden; border-radius: var(--radius); background: linear-gradient(#ece6d8, #d4e2dc); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: slide 60s linear infinite; }
.marquee__track img { height: clamp(200px, 26vw, 300px); width: auto; max-width: none; }
@keyframes slide { to { transform: translateX(-50%); } }

.postcards img { border-radius: var(--radius); transform: rotate(-1.5deg); box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); transition: transform .4s; }
.postcards:hover img { transform: rotate(0) scale(1.02); }

.minis { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.minis li { padding: 24px; border-radius: var(--radius); background: var(--night-2); border: 1px solid rgba(255,255,255,.05); }
.minis p { margin: 0; color: var(--muted-light); font-size: .95rem; }

/* ---------- the line ---------- */
.line {
  position: relative; overflow: hidden;
  height: clamp(420px, 60vw, 560px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gutter) 40px;
  color: var(--text-dark);
}
.line__sky { position: absolute; inset: 0; background: linear-gradient(180deg, var(--night) 0%, #3d4a6b 22%, #e6a38a 48%, #f3d7b3 64%, var(--sky) 100%); }
.line__sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#a0cddd, var(--sky)); opacity: var(--daylight, 0); }
.line__hills {
  position: absolute; inset: auto 0 30px; height: 190px;
  background:
    radial-gradient(120% 100% at 18% 100%, #6aa95a 50%, transparent 51%),
    radial-gradient(90% 120% at 70% 100%, #7cb766 48%, transparent 49%),
    radial-gradient(60% 80% at 100% 100%, #5e9d51 50%, transparent 51%);
}
.line__sign {
  position: absolute; z-index: 1; top: 18%; left: 50%; translate: -50% 0;
  font: clamp(.9rem, 1.6vw, 1.15rem)/1 var(--pixel); color: var(--cream);
  background: var(--forest); padding: .8em 1.2em; border: 3px solid var(--cream); outline: 3px solid var(--forest);
  white-space: nowrap;
}
.line__rail { position: relative; height: 140px; flex-shrink: 0; margin: 0 calc(-1 * var(--gutter)); }
.line__rail::before { /* ballast and rails */
  content: ""; position: absolute; inset: auto 0 0; height: 30px;
  background:
    linear-gradient(#9b9d9b 0 3px, transparent 3px 9px, #9b9d9b 9px 12px, transparent 12px) 0 0 / 100% 100%,
    repeating-linear-gradient(90deg, #6b4a32 0 10px, transparent 10px 28px),
    #b7ad94;
}
.line__train { position: absolute; bottom: 22px; left: 0; height: clamp(96px, 14vw, 160px); width: auto; max-width: none; will-change: transform; }
.line__caption { position: relative; max-width: 38em; margin: 0 auto; text-align: center; padding-top: 18px; font-size: 1.02rem; }

/* ---------- hill ---------- */
.world--hill { background: linear-gradient(var(--sky), #e9f2e3 30%, var(--cream)); color: var(--text-dark); }
.tag--hill { color: var(--forest); }
.places { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.places__tabs { display: flex; flex-direction: column; gap: 6px; }
.places__tabs button {
  text-align: left; font: 500 1rem/1.2 var(--sans); color: var(--text-dark);
  background: transparent; border: 0; padding: 12px 14px; border-radius: 10px; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
}
.places__tabs button::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: rgba(38,35,29,.2); flex: none; }
.places__tabs button:hover { background: rgba(46,91,58,.08); }
.places__tabs button[aria-selected="true"] { background: var(--forest); color: var(--cream); }
.places__tabs button[aria-selected="true"]::before { background: #e4b84c; }
.places__view { margin: 0; background: #fff; padding: 10px 10px 0; border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(46,91,58,.5); transform: rotate(.6deg); }
.places__view img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #efeade; border-radius: 3px; transition: opacity .25s; }
.places__view img.is-swapping { opacity: 0; }
.places__view figcaption { padding: 16px 8px 20px; color: var(--muted-dark); min-height: 5.5em; }
.places__view figcaption b { display: block; font: 1.3rem var(--serif); color: var(--text-dark); margin-bottom: .2em; font-weight: 400; }

.hill-notes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 72px; }
.hill-notes p { color: var(--muted-dark); font-size: .95rem; margin: 0; }
.hill-notes h4 { color: var(--forest); }

/* ---------- home ---------- */
.world--home { background: var(--home); color: var(--text-dark); }
.tag--home { color: var(--wood); }
.home { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.home .world__head { margin: 0; }
.finishes { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 12px; }
.finishes button {
  font: 500 .9rem/1 var(--sans); padding: .7em 1em; border-radius: 999px; cursor: pointer;
  border: 1.5px solid rgba(168,104,58,.4); background: transparent; color: var(--text-dark);
}
.finishes button[aria-pressed="true"] { background: var(--wood); border-color: var(--wood); color: #fff8ec; }
.home__room { margin: 0; }
.home__room img { width: 100%; transition: opacity .25s; filter: drop-shadow(0 30px 30px rgba(120,80,40,.18)); }
.home__room img.is-swapping { opacity: 0; }

/* ---------- promises ---------- */
.promises { background: var(--ink); padding: clamp(80px, 12vw, 140px) var(--gutter); }
.promises > * { max-width: var(--max); margin-inline: auto; }
.promises ol { list-style: none; padding: 0; margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.12); }
.promises li { padding: 28px 24px 0 0; }
.promises li + li { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.08); }
.promises__n { font: .8rem/1 var(--pixel); color: var(--coral); }
.promises h3 { margin-top: 14px; }
.promises p { color: var(--muted-light); font-size: .95rem; }

/* ---------- ticket office ---------- */
.office { background: var(--paper); color: var(--text-dark); padding: clamp(80px, 12vw, 140px) var(--gutter); }
.office > * { max-width: var(--max); margin-inline: auto; }
.office__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; margin-bottom: 40px; }
.office__head .eyebrow, .office__head h2, .office__head .lede { grid-column: 1; }
.platform { grid-column: 2; grid-row: 1 / span 3; align-self: end; display: flex; padding: 4px; background: rgba(38,35,29,.08); border-radius: 999px; }
.platform button { font: 600 .95rem/1 var(--sans); padding: .75em 1.3em; border-radius: 999px; border: 0; background: transparent; color: var(--text-dark); cursor: pointer; }
.platform button[aria-checked="true"] { background: var(--text-dark); color: var(--cream); }

.tickets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ticket {
  position: relative; display: flex; flex-direction: column;
  background: var(--cream); border-radius: 10px; padding: 0; cursor: pointer;
  border: 0; text-align: left; color: inherit; font: inherit;
  box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 18px 30px -22px rgba(60,40,10,.5);
  transition: transform .2s, box-shadow .2s;
  /* perforated notches */
  -webkit-mask: radial-gradient(circle 11px at 0 64%, transparent 98%, #000) , radial-gradient(circle 11px at 100% 64%, transparent 98%, #000);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.ticket:hover { transform: translateY(-4px) rotate(-.4deg); }
.ticket[aria-checked="true"] { box-shadow: 0 0 0 3px var(--coral), 0 18px 30px -18px rgba(60,40,10,.6); }
.ticket__top { padding: 20px 22px 16px; display: flex; gap: 14px; align-items: flex-start; flex: 1; }
.ticket__art { width: 56px; height: 56px; flex: none; border-radius: 10px; background: var(--night-2) center / cover no-repeat; }
.ticket h3 { font-size: 1.35rem; margin: 0 0 .25em; }
.ticket p { font-size: .9rem; color: var(--muted-dark); margin: 0; }
.ticket__stub {
  border-top: 2px dashed rgba(38,35,29,.2); margin-top: 6px;
  padding: 14px 22px 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font: .72rem/1.3 var(--pixel); text-transform: uppercase; color: var(--muted-dark);
}
.ticket__punch { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 2px solid rgba(38,35,29,.3); display: grid; place-items: center; transition: background .15s, border-color .15s; }
.ticket[aria-checked="true"] .ticket__punch { background: var(--coral); border-color: var(--coral); }
.ticket[aria-checked="true"] .ticket__punch::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--paper); }
.ticket.is-unavailable { cursor: not-allowed; background: #e9e0c9; }
.ticket.is-unavailable:hover { transform: none; }
.ticket.is-unavailable .ticket__top { opacity: .75; }
.ticket__status { font: .7rem/1 var(--pixel); padding: .45em .7em; border-radius: 999px; background: var(--text-dark); color: var(--cream); white-space: nowrap; }
.ticket__status--soon { background: var(--coral); color: #fff; }
.ticket__status--workshop { background: var(--wood); color: #fff8ec; }

.office__go { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: flex-end; margin-top: 30px; }
.office__go p { margin: 0 auto 0 0; color: var(--muted-dark); }

.firstrun { margin-top: 64px; display: grid; grid-template-columns: auto 1fr; gap: 24px; padding: 32px; border-radius: var(--radius); background: rgba(38,35,29,.05); border: 1px solid rgba(38,35,29,.1); }
.firstrun__badge { font: .75rem/1 var(--pixel); background: var(--text-dark); color: var(--cream); padding: .7em .9em; border-radius: 6px; align-self: start; }
.firstrun h3 { font-size: 1.5rem; }
.firstrun ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.firstrun li { margin-bottom: .4em; }

/* ---------- feedback ---------- */
.feedback { background: var(--night); padding: clamp(72px, 10vw, 120px) var(--gutter) 56px; }
.feedback__inner { max-width: var(--max); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.feedback__fields { display: grid; gap: 10px; }
.feedback__fields label { font-weight: 600; }
.feedback__fields label:not(:first-child) { margin-top: 10px; }
.feedback__fields label span { font-weight: 400; color: var(--muted-light); }
.feedback__fields input, .feedback__fields select, .feedback__fields textarea { width: 100%; min-width: 0; font: inherit; font-size: 1rem; line-height: 1.5; padding: 12px 14px; color: var(--text-light); background: var(--ink); border: 1px solid #647b75; border-radius: 8px; }
.feedback__fields textarea { resize: vertical; min-height: 144px; }
.feedback form .note { margin-top: 14px; }
.feedback__status { min-height: 1.6em; margin: 18px 0 0; color: var(--mint); }
.feedback__status[data-error="true"] { color: #ffb1ab; }
.feedback__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.foot { background: var(--ink); padding: 0 var(--gutter) 56px; color: var(--muted-light); font-size: .92rem; }
.foot__walk { position: relative; height: 64px; max-width: var(--max); margin: 0 auto 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.foot__walk img { position: absolute; bottom: 0; height: 40px; width: auto; }
.foot__cols { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot__cols img { border-radius: 10px; margin-bottom: 14px; }
.foot h4 { color: var(--text-light); }
.foot a { display: block; text-decoration: none; padding: .2em 0; }
.foot a:hover { color: var(--mint); }
.foot a.foot__inline { display: inline; padding: 0; text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 104px; }
  .feature, .home { grid-template-columns: 1fr; }
  .feedback__inner { grid-template-columns: 1fr; }
  .feature--flip .feature__text { order: 0; }
  .minis { grid-template-columns: 1fr; }
  .places { grid-template-columns: 1fr; }
  .places__tabs { flex-direction: row; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .places__tabs button { white-space: nowrap; }
  .places__view { transform: none; }
  .hill-notes { grid-template-columns: 1fr 1fr; }
  .promises ol { grid-template-columns: 1fr 1fr; gap: 0 0; }
  .promises li:nth-child(3) { padding-left: 0; border-left: 0; }
  .tickets { grid-template-columns: 1fr; }
  .office__head { grid-template-columns: 1fr; }
  .platform { grid-column: 1; grid-row: auto; justify-self: start; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot__cols > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .stage { aspect-ratio: 4 / 3; }
  .win--music { display: none; }
  .win__bar { height: 28px; }
  .win__bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .line__sign { top: 14%; }
  .ticket__stub { flex-wrap: wrap; }
  .hill-notes, .promises ol { grid-template-columns: 1fr; }
  .promises li, .promises li + li { padding: 24px 0 0; border-left: 0; }
  .firstrun { grid-template-columns: 1fr; padding: 22px; }
  .facts ul { justify-content: flex-start; }
}

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

@media (hover: none) {
  .hover-hint { display: none; }
}
