/* =====================================================================
   DW Innovation, dwinnovation.dk
   Mobile first. The palette and type are taken from Mill Street itself:
   dusk sky, lamp gold, shopfront green, brick, and the Gazette's paper.
   ===================================================================== */

:root {
  --night: #131a29;          /* dusk sky over the town */
  --night-2: #1a2234;        /* raised surfaces */
  --night-3: #232c41;        /* cards, inputs */
  --rule: #2f3950;           /* hairlines on night */
  --ink: #ede7db;            /* text on night */
  --ink-dim: #b9b4aa;
  --ink-faint: #8d8a86;
  --lamp: #f0c068;           /* lamp light, the game's own gold buttons */
  --lamp-deep: #d9a043;
  --green: #2d6a55;          /* station nameboard, The Crown */
  --green-deep: #1f4d3d;
  --brick: #8e3b2b;
  --circus: #c4372d;
  --paper: #ece3cf;          /* the Gazette's newsprint */
  --paper-2: #e2d6bc;
  --news-ink: #1f1b16;
  --news-dim: #4a443b;

  --f-display: 'Old Standard TT', 'Bodoni 72', 'Didot', Georgia, 'Times New Roman', serif;
  --f-body: 'Libre Franklin', 'Franklin Gothic Book', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  --f-black: 'UnifrakturMaguntia', 'Old English Text MT', 'Old Standard TT', Georgia, serif;

  --gutter: 20px;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 700; line-height: 1.15; }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 2px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--lamp); color: var(--night); padding: 10px 16px; border-radius: 6px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- buttons ---------- */
/* The play button is drawn like the game's own TAXI button: dark pill,
   gold outline, gold tracked capitals, so the site and the game feel
   like one product. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--f-body); font-size: 15px; font-weight: 600; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-play {
  background: rgba(19, 26, 41, 0.86);
  border-color: var(--lamp);
  color: var(--lamp);
  font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: 14px;
}
.btn-play:hover { background: var(--lamp); color: var(--night); }
.btn-play svg { width: 18px; height: 18px; flex: none; }
.btn-quiet { background: transparent; border-color: rgba(237, 231, 219, 0.45); color: var(--ink); }
.btn-quiet:hover { border-color: var(--ink); background: rgba(237, 231, 219, 0.08); }
.btn-paper { background: var(--paper); color: var(--news-ink); }
.btn-paper:hover { background: #fff8e8; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

.text-link {
  color: var(--lamp); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 4px; text-decoration-color: rgba(240, 192, 104, 0.45);
}
.text-link:hover { text-decoration-color: var(--lamp); }

/* ---------- navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(19, 26, 41, 0.94);
  border-bottom: 1px solid var(--rule);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .nav { background: rgba(19, 26, 41, 0.78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 10px var(--gutter);
  display: flex; align-items: center; gap: 14px;
}
.brand { display: block; flex: none; margin-right: auto; }
.brand img { height: 30px; width: auto; }
.nav-links { display: none; gap: 28px; font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--ink-dim); padding: 8px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--lamp); }
.nav .btn-play { min-height: 40px; padding: 0 16px; font-size: 12.5px; }
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0; flex: none;
  background: transparent; border: 1px solid var(--rule); border-radius: 10px; cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 0 auto; background: var(--ink-dim); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile { display: none; padding: 4px var(--gutter) 16px; border-top: 1px solid var(--rule); }
.nav-mobile.is-open { display: block; }
.nav-mobile a {
  display: block; padding: 14px 0; font-size: 17px; text-decoration: none;
  color: var(--ink-dim); border-bottom: 1px solid var(--rule);
}
.nav-mobile a:last-child { border-bottom: 0; }
.nav-mobile a[aria-current="page"] { color: var(--lamp); }
@media (max-width: 379px) { .nav .btn-play { display: none; } }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle, .nav-mobile, .nav-mobile.is-open { display: none; }
  .nav-inner { gap: 32px; }
  .brand img { height: 34px; }
}

/* ---------- hero (home) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100svh - 61px);
  display: flex; align-items: flex-end;
  background: #2a2420;
}
@supports not (min-height: 100svh) { .hero { min-height: calc(100vh - 61px); } }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 58% 40%;
  transform-origin: 62% 45%;
  animation: settle 22s ease-out both;
}
/* the one ambient movement on the page: the camera settling on the town */
@keyframes settle { from { transform: scale(1.12); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero-media img { animation: none; } }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(19, 26, 41, 0.97) 0%, rgba(19, 26, 41, 0.82) 30%, rgba(19, 26, 41, 0.15) 62%, rgba(19, 26, 41, 0) 100%);
}
.hero-content { position: relative; padding-top: 140px; padding-bottom: 48px; }

/* Mill Street's own station nameboard: green enamel, cream border, cream
   capitals. The page title is the sign itself. */
.nameboard {
  display: inline-block; position: relative;
  margin: 0 0 22px;
  padding: 9px 18px 7px;
  background: linear-gradient(180deg, #367a62 0%, var(--green) 55%, #285f4c 100%);
  color: #f3ecd9;
  border-radius: 6px;
  box-shadow:
    inset 0 0 0 3px var(--green),
    inset 0 0 0 5px #efe6d0,
    0 14px 30px -12px rgba(0, 0, 0, 0.7);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(26px, 8.4vw, 92px);
  line-height: 1.05;
  letter-spacing: 0.05em;
  max-width: 100%;
  text-transform: uppercase;
  white-space: nowrap;
}
.nameboard::before, .nameboard::after {
  /* the two fixing bolts */
  content: ''; position: absolute; top: 50%; width: 6px; height: 6px; margin-top: -3px;
  border-radius: 50%; background: #c9bfa6; box-shadow: inset -1px -1px 0 rgba(0, 0, 0, 0.35);
}
.nameboard::before { left: 9px; }
.nameboard::after { right: 9px; }
.hero-byline {
  font-family: var(--f-display); font-style: italic; font-size: 17px; color: var(--lamp);
  margin: -8px 0 18px 4px;
}
.hero-lede {
  max-width: 34em; font-size: clamp(17px, 2.3vw, 20px); line-height: 1.6; color: var(--ink);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--ink-dim); }
@media (min-width: 900px) {
  .hero-content { padding-bottom: 88px; }
  .nameboard { padding: 14px 34px 12px; }
  .nameboard::before { left: 13px; } .nameboard::after { right: 13px; }
}

/* ---------- section heads ---------- */
.section { padding: 56px 0; }
.section.section--flush { padding-top: 0; }
.section.section--tight-top { padding-top: 32px; }
@media (min-width: 900px) { .section.section--tight-top { padding-top: 48px; } }
.section-head { max-width: 40em; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(30px, 5.4vw, 48px); letter-spacing: -0.005em; }
.section-head p { margin-top: 14px; font-size: 17px; color: var(--ink-dim); }
@media (min-width: 900px) { .section { padding: 88px 0; } }

/* ---------- the walk (gallery of real captures, morning to lamplight) ---------- */
.section.walk { background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); padding-bottom: 24px; }
.walk-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.walk-controls { display: none; gap: 10px; flex: none; margin-bottom: 40px; }
.walk-controls button {
  width: 48px; height: 48px; border-radius: 50%;
  background: transparent; color: var(--ink); border: 1px solid var(--rule); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.walk-controls button:hover:not([disabled]) { border-color: var(--lamp); color: var(--lamp); }
.walk-controls button[disabled] { opacity: .35; cursor: default; }
.walk-controls svg { width: 18px; height: 18px; }
@media (min-width: 900px) { .walk-controls { display: flex; } }

.walk-track {
  list-style: none; margin: 0; padding: 18px var(--gutter) 28px;
  display: grid; grid-auto-flow: column;
  grid-auto-columns: 86%;
  gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--rule) transparent;
}
.walk-track::-webkit-scrollbar { height: 6px; }
.walk-track::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 3px; }
@media (min-width: 640px) { .walk-track { grid-auto-columns: 62%; gap: 22px; } }
@media (min-width: 1000px) {
  .walk-track {
    grid-auto-columns: 600px; gap: 28px;
    padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
    padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
    scroll-padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  }
}
.place { scroll-snap-align: start; margin: 0; display: flex; flex-direction: column; }
.place figure { margin: 0; }
.place-frame { position: relative; padding-top: 16px; }
.place-frame img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px;
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.8);
  background: var(--night-3);
}
/* the painted fascia board each shop in the game carries */
.fascia {
  position: absolute; top: 0; left: 16px; z-index: 1;
  max-width: calc(100% - 32px);
  padding: 7px 16px 6px;
  background: #1c2230;
  border-radius: 2px;
  box-shadow: inset 0 0 0 2px #1c2230, inset 0 0 0 3px #b8914a, 0 8px 18px -8px rgba(0, 0, 0, 0.8);
  color: #e8c27a;
  font-family: var(--f-display); font-weight: 700; font-size: 14px; letter-spacing: 0.12em;
  text-transform: uppercase; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.place figcaption { padding: 16px 4px 0; }
.place-when { display: block; font-family: var(--f-display); font-style: italic; color: var(--lamp); font-size: 15px; margin-bottom: 4px; }
.place figcaption p { font-size: 15px; line-height: 1.6; color: var(--ink-dim); max-width: 36em; }
.place blockquote { margin: 0; }
.place blockquote p { font-family: var(--f-display); font-style: italic; font-size: 18px; line-height: 1.5; color: var(--ink); }
.place blockquote footer { margin-top: 6px; font-size: 13.5px; color: var(--ink-faint); }

/* ---------- the Gazette ---------- */
.gazette-section { background: var(--night-2); padding: 48px 0 64px; }
@media (min-width: 900px) { .gazette-section { padding: 56px 0 96px; } }
.gazette-intro { max-width: 40em; margin-bottom: 36px; }
.gazette-intro h2 { font-size: clamp(28px, 5vw, 44px); }
.gazette-intro p { margin-top: 12px; color: var(--ink-dim); font-size: 17px; }

.paper {
  position: relative;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, 0.35), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(120, 95, 50, 0.16), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.28 0 0 0 0 0.18 0 0 0 0.10 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--news-ink);
  padding: 22px 18px 28px;
  border-radius: 2px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15), 0 40px 70px -30px rgba(0, 0, 0, 0.85);
  font-family: var(--f-display);
}
@media (min-width: 900px) {
  .paper { padding: 34px 44px 44px; transform: rotate(-0.5deg); }
}
.masthead { text-align: center; border-bottom: 3px double var(--news-ink); padding-bottom: 10px; }
.masthead-title {
  font-family: var(--f-black); font-weight: 400;
  font-size: clamp(34px, 9.2vw, 86px); line-height: 1.05; letter-spacing: 0.005em;
}
.dateline {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px;
  border-bottom: 1px solid var(--news-ink); padding: 7px 0 6px; margin-bottom: 22px;
  font-size: 13px; font-style: italic; color: var(--news-dim);
}
.dateline span:nth-child(2) { font-style: normal; font-weight: 700; color: var(--news-ink); }
.news-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
.story h3 {
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  font-size: 19px; line-height: 1.12; letter-spacing: 0.01em; margin-bottom: 10px;
}
.story p {
  font-size: 15.5px; line-height: 1.6; text-align: justify; -webkit-hyphens: auto; hyphens: auto;
  color: var(--news-ink);
}
.story p + p { margin-top: 8px; }
.story figure { margin: 0 0 12px; }
.story figure img { width: 100%; filter: contrast(1.05); mix-blend-mode: multiply; }
.story figcaption { font-size: 12.5px; font-style: italic; color: var(--news-dim); margin-top: 5px; text-align: left; }
.story--lead h3 { font-size: clamp(26px, 4.6vw, 40px); line-height: 1.05; }
.reviews { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid rgba(31, 27, 22, 0.35); }
.reviews li { display: grid; grid-template-columns: 5.4em 1fr; gap: 0 8px; font-size: 14.5px; line-height: 1.5; padding: 3px 0; }
.reviews .stars { letter-spacing: 0.08em; color: var(--news-ink); white-space: nowrap; }
.vacant {
  border: 2px solid var(--news-ink); padding: 14px 14px 16px; text-align: center;
  outline: 1px solid var(--news-ink); outline-offset: -6px;
}
.vacant h3 { font-size: 15px; letter-spacing: 0.2em; margin-bottom: 6px; }
.vacant .vacant-big { font-size: 21px; font-weight: 700; line-height: 1.15; text-transform: uppercase; margin-bottom: 10px; text-align: center; }
.vacant p { text-align: center; font-size: 14.5px; }
.vacant .vacant-apply { margin-top: 10px; font-style: italic; }
.paper-foot {
  margin-top: 26px; padding-top: 12px; border-top: 3px double var(--news-ink);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  font-size: 14px; font-style: italic; color: var(--news-dim);
}
.stack { display: grid; gap: 26px; align-content: start; }
.story--lead figure { margin-bottom: 14px; }
@media (min-width: 760px) {
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  .news-grid > * { padding: 0 0 26px 20px; border-left: 1px solid rgba(31, 27, 22, 0.4); }
  .news-grid > :nth-child(2) { padding-left: 0; padding-right: 20px; border-left: 0; }
  .story--lead {
    grid-column: 1 / -1; border-left: 0 !important; padding: 0 0 26px !important; margin-bottom: 24px;
    border-bottom: 1px solid rgba(31, 27, 22, 0.4);
    display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: 26px; align-items: center;
  }
  .story--lead figure { margin: 0; }
  .news-grid > .stack { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 24px 0 0; border-left: 0; border-top: 1px solid rgba(31, 27, 22, 0.4); }
}
@media (min-width: 1040px) {
  .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .news-grid > * { padding: 0 22px 0; }
  .news-grid > :nth-child(2) { padding-left: 0; padding-right: 22px; }
  .news-grid > .stack { grid-column: auto; grid-template-columns: 1fr; padding: 0 0 0 22px; border-top: 0; border-left: 1px solid rgba(31, 27, 22, 0.4); }
}

/* ---------- keepsakes and the circus ---------- */
.circus { position: relative; isolation: isolate; overflow: hidden; padding: 0; background: #0f1420; }
.circus-media { position: relative; }
.circus-media img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; object-position: 50% 35%; }
.circus-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(15, 20, 32, 0.15) 0%, rgba(15, 20, 32, 0.2) 45%, #0f1420 100%);
}
.circus-body { position: relative; padding-bottom: 64px; margin-top: -48px; }
.circus-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
.circus-copy h2 { font-size: clamp(30px, 5.4vw, 48px); }
.circus-copy p { margin-top: 14px; font-size: 17px; color: var(--ink-dim); max-width: 32em; }
.keepsakes { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; }
.keepsakes li {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(240, 192, 104, 0.55);
  background: radial-gradient(circle at 35% 30%, rgba(240, 192, 104, 0.22), rgba(240, 192, 104, 0.03) 70%);
  display: flex; align-items: center; justify-content: center; color: var(--lamp);
}
.keepsakes svg { width: 14px; height: 16px; opacity: .85; }
.keepsakes-note { margin-top: 10px !important; font-size: 14px !important; color: var(--ink-faint) !important; }

/* the real Mill Street Circus tickets, drawn by Darren */
.tickets { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.tickets img {
  width: 100%; max-width: 440px; margin: -24px 0 -8px;
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.65));
}
.tickets small { font-size: 13px; color: var(--ink-faint); }
@media (min-width: 900px) {
  .circus-body { margin-top: -120px; padding-bottom: 88px; }
  .circus-grid { grid-template-columns: 1fr 460px; gap: 64px; }
}

/* ---------- the maker ---------- */
.maker { background: var(--night); border-top: 1px solid var(--rule); }
.maker-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.maker-photo { width: 100%; max-width: 240px; aspect-ratio: 515 / 800; object-fit: cover; border-radius: 4px; box-shadow: 0 30px 50px -28px rgba(0, 0, 0, 0.9); }
.maker-copy h2 { font-size: clamp(28px, 4.6vw, 42px); }
.maker-copy p { margin-top: 16px; font-size: 17px; color: var(--ink-dim); max-width: 34em; }
.maker-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (min-width: 720px) {
  .maker-grid { grid-template-columns: 300px 1fr; gap: 64px; }
  .maker-photo { max-width: 300px; }
}

/* ---------- footer ---------- */
.footer { background: #0e131e; border-top: 1px solid var(--rule); padding: 56px 0 40px; font-size: 14.5px; color: var(--ink-faint); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.footer-logo { height: 30px; width: auto; }
.footer-tag { margin-top: 12px; max-width: 30em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-nav a { color: var(--ink-dim); text-decoration: none; }
.footer-nav a:hover { color: var(--lamp); }
.footer-base { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; }
.release-line[hidden] { display: none; }
.release-line::before {
  content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--lamp); box-shadow: 0 0 8px var(--lamp); margin-right: 8px; vertical-align: 1px;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1fr auto; align-items: start; }
}

/* ---------- inner page banner (How it's made, Contact) ---------- */
.banner { position: relative; isolation: isolate; overflow: hidden; min-height: 340px; display: flex; align-items: flex-end; }
.banner > img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.banner::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, var(--night) 0%, rgba(19, 26, 41, 0.75) 38%, rgba(19, 26, 41, 0.1) 100%);
}
.banner-content { padding-top: 120px; padding-bottom: 24px; }
.banner h1 { font-size: clamp(34px, 7vw, 64px); max-width: 15em; }
.banner p { margin-top: 14px; font-size: clamp(17px, 2.2vw, 19px); color: var(--ink); max-width: 36em; }
@media (min-width: 900px) { .banner { min-height: 440px; } .banner-content { padding-bottom: 32px; } }

/* ---------- How it's made ---------- */
.studio-intro { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.studio-intro img { width: 100%; max-width: 260px; aspect-ratio: 515 / 800; object-fit: cover; border-radius: 4px; box-shadow: 0 30px 50px -28px rgba(0, 0, 0, 0.9); }
.studio-intro p { font-size: 17px; color: var(--ink-dim); max-width: 36em; }
.studio-intro p + p { margin-top: 14px; }
.studio-intro .first { font-size: clamp(19px, 2.4vw, 22px); color: var(--ink); font-family: var(--f-display); line-height: 1.5; }
@media (min-width: 720px) { .studio-intro { grid-template-columns: 260px 1fr; gap: 56px; } }

.stages { list-style: none; margin: 0; padding: 0; counter-reset: stage; }
.stage {
  counter-increment: stage;
  position: relative; display: grid; grid-template-columns: 1fr; gap: 20px;
  padding: 32px 0; border-top: 1px solid var(--rule);
}
.stage-text { position: relative; padding-left: 64px; }
.stage-text::before {
  content: counter(stage, decimal-leading-zero);
  position: absolute; left: 0; top: -4px;
  font-family: var(--f-display); font-style: italic; font-size: 40px; line-height: 1; color: var(--lamp);
}
.stage h3 { font-size: 24px; margin-bottom: 8px; }
.stage p { font-size: 16px; color: var(--ink-dim); max-width: 34em; }
.stage-visual { min-width: 0; }
.stage-visual img { width: 100%; border-radius: 4px; }
.stage .mat p { color: var(--news-ink); }
.mat { background: var(--paper); padding: 16px; border-radius: 3px; box-shadow: 0 26px 46px -26px rgba(0, 0, 0, 0.9); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pair figure { margin: 0; }
.pair img { aspect-ratio: 16 / 10; object-fit: cover; }
.pair figcaption { font-size: 13px; color: var(--ink-faint); margin-top: 6px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.chips li { font-size: 14px; padding: 7px 13px; border-radius: 999px; background: var(--night-3); border: 1px solid var(--rule); color: var(--ink); }
.wave { width: 100%; height: 110px; display: block; color: var(--lamp); }
.wave-cap { font-size: 13px; color: var(--ink-faint); margin-top: 8px; }
.devices { display: flex; align-items: flex-end; gap: 14px; }
.device-desk { flex: 1 1 auto; min-width: 0; border: 8px solid #0b0f18; border-bottom-width: 12px; border-radius: 8px; background: #0b0f18; box-shadow: 0 26px 46px -26px rgba(0, 0, 0, 0.9); }
.device-desk img { border-radius: 2px; aspect-ratio: 16 / 9; object-fit: cover; }
.device-phone { flex: none; width: 23%; min-width: 74px; border: 5px solid #0b0f18; border-radius: 14px; background: #0b0f18; box-shadow: 0 26px 46px -26px rgba(0, 0, 0, 0.9); }
.device-phone img { border-radius: 9px; aspect-ratio: 9 / 18; object-fit: cover; object-position: 50% 50%; }
.release-card { padding: 18px 20px; border-radius: 6px; background: var(--night-3); border: 1px solid var(--rule); margin-top: 14px; font-size: 14.5px; color: var(--ink-dim); }
.release-card strong { color: var(--ink); font-weight: 600; }
@media (min-width: 900px) {
  .stage { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; padding: 40px 0; }
}
.studio-cta { margin-top: 40px; padding: 36px 28px; border-radius: 8px; background: var(--night-2); border: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.studio-cta h2 { font-size: clamp(24px, 3.6vw, 32px); }
.studio-cta p { margin-top: 6px; color: var(--ink-dim); }

/* ---------- Contact: a letter ---------- */
.letter-wrap { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
.letter {
  position: relative;
  background-color: var(--paper);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.28 0 0 0 0 0.18 0 0 0 0.10 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--news-ink);
  padding: 30px 20px 26px;
  border-radius: 2px;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.85);
  transform-origin: 50% 0;
}
@media (min-width: 600px) { .letter { padding: 40px 40px 34px; } }
.letter-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.letter-to { font-family: var(--f-display); font-size: 17px; line-height: 1.45; }
.letter-to em { display: block; font-size: 14px; color: var(--news-dim); }
.stamp {
  flex: none; position: relative; width: 74px; height: 88px;
  background: var(--green);
  color: #f3ecd9; text-align: center;
  font-family: var(--f-display); font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  -webkit-mask: radial-gradient(circle 3.5px, transparent 98%, #000) -3.5px -3.5px / 9px 9px, linear-gradient(#000 0 0) 4px 4px / calc(100% - 8px) calc(100% - 8px) no-repeat;
  -webkit-mask-composite: source-over;
  mask: radial-gradient(circle 3.5px, transparent 98%, #000) -3.5px -3.5px / 9px 9px, linear-gradient(#000 0 0) 4px 4px / calc(100% - 8px) calc(100% - 8px) no-repeat;
  transform: rotate(3deg);
}
.stamp b { font-size: 26px; line-height: 1; letter-spacing: 0; }
.postmark {
  position: absolute; top: 40px; right: 128px; width: 92px; height: 92px; border-radius: 50%;
  border: 2px solid rgba(31, 27, 22, 0.55); color: rgba(31, 27, 22, 0.6);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  font-family: var(--f-display); font-size: 10.5px; line-height: 1.25; letter-spacing: 0.06em; text-transform: uppercase;
  transform: rotate(-12deg); pointer-events: none;
}
.postmark strong { font-size: 13px; }
@media (max-width: 599px) { .postmark { right: 96px; top: 30px; width: 78px; height: 78px; font-size: 9px; } .postmark strong { font-size: 11px; } }
.lfield { display: block; margin-top: 14px; }
.lfield label { display: block; font-family: var(--f-display); font-style: italic; font-size: 15px; color: var(--news-dim); margin-bottom: 2px; }
.lfield input, .lfield textarea {
  width: 100%; font: inherit; font-family: var(--f-display); font-size: 18px; line-height: 34px; color: var(--news-ink);
  background: transparent; border: 0; border-bottom: 1px solid rgba(31, 27, 22, 0.45); border-radius: 0;
  padding: 0 2px; -webkit-appearance: none; appearance: none;
}
.lfield textarea {
  line-height: 34px; min-height: 206px; resize: vertical; border-bottom: 0;
  background-image: repeating-linear-gradient(180deg, transparent 0 33px, rgba(70, 90, 120, 0.28) 33px 34px);
  background-attachment: local;
}
.lfield input:focus, .lfield textarea:focus { outline: none; border-bottom-color: var(--brick); box-shadow: 0 2px 0 -1px var(--brick); }
.lfield textarea:focus { box-shadow: inset 3px 0 0 var(--brick); }
.lfield .count { display: block; text-align: right; font-size: 12.5px; color: var(--news-dim); margin-top: 4px; font-family: var(--f-body); }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.letter-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 20px; }
.letter-sign { font-family: var(--f-display); font-style: italic; color: var(--news-dim); font-size: 15px; }
.btn-post { background: var(--brick); color: #fbf3e4; }
.btn-post:hover { background: #73301f; }
.form-status { width: 100%; font-size: 15px; font-family: var(--f-body); }
.form-status[hidden] { display: none; }
.form-error { color: #8e2a1d; font-weight: 600; }
.sent-note {
  text-align: center; padding: 48px 20px; border-radius: 6px; border: 1px solid var(--rule); background: var(--night-2);
}
.sent-note[hidden] { display: none; }
.sent-note svg { width: 72px; height: 72px; color: var(--lamp); margin: 0 auto 16px; }
.sent-note h2 { font-size: 30px; }
.sent-note p { margin-top: 10px; color: var(--ink-dim); }
.sent-note button { margin-top: 22px; }
@media (prefers-reduced-motion: no-preference) {
  .letter.is-posting { animation: post .9s cubic-bezier(.55, 0, .7, .4) forwards; }
  @keyframes post {
    0% { transform: none; opacity: 1; }
    35% { transform: scaleY(0.5) rotate(-1deg); opacity: 1; }
    100% { transform: translateY(80px) scale(0.3, 0.15) rotate(-6deg); opacity: 0; }
  }
}
.contact-side { display: flex; flex-direction: column; gap: 22px; }
.contact-side h2 { font-size: 26px; }
.contact-side p { color: var(--ink-dim); }
.contact-side img { width: 100%; max-width: 320px; }
.contact-side .in-town { padding: 20px; border-radius: 6px; background: var(--night-2); border: 1px solid var(--rule); }
.contact-side .in-town p { margin-top: 6px; font-size: 15px; }
.contact-side .in-town h2 { font-size: 19px; }
@media (min-width: 900px) { .letter-wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 64px; } }

/* ---------- How to play ---------- */
.platforms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.platform {
  display: grid; grid-template-columns: 52px 1fr; gap: 4px 16px; align-items: start; align-content: start;
  padding: 20px; border-radius: 8px; background: var(--night-2); border: 1px solid var(--rule);
}
.platform svg { grid-row: 1 / span 2; width: 52px; height: 52px; color: var(--lamp); }
.platform h3 { font-size: 21px; }
.platform p { font-size: 15.5px; color: var(--ink-dim); }
.detail-note { margin-top: 22px; max-width: 46em; font-size: 16.5px; color: var(--ink-dim); }
.detail-note strong { color: var(--ink); font-weight: 600; }
@media (min-width: 760px) {
  .platforms { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .platform { grid-template-columns: 1fr; padding: 24px; }
  .platform svg { grid-row: auto; margin-bottom: 8px; }
}

.howto { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.howto + .howto { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--rule); }
.howto h2 { font-size: clamp(26px, 4.4vw, 38px); margin-bottom: 12px; }
.howto-text > p { font-size: 17px; color: var(--ink-dim); max-width: 34em; }
.howto-text > p + p { margin-top: 12px; }
.howto figure { margin: 0; min-width: 0; }
.howto figure img { width: 100%; }
.howto figure.shot img { border-radius: 6px; box-shadow: 0 26px 46px -26px rgba(0, 0, 0, 0.9); }
.howto figure.art { display: flex; justify-content: center; }
.howto figure.art img { max-width: 340px; }
.howto figure.keys img { max-width: 640px; margin: 0 auto; }
.howto figcaption { margin-top: 10px; font-size: 13.5px; color: var(--ink-faint); }
@media (min-width: 900px) {
  .howto { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; }
  .howto--flip .howto-text { order: 2; }
  .howto + .howto { margin-top: 72px; padding-top: 72px; }
}

.controls { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.controls li {
  display: grid; grid-template-columns: 158px 1fr; gap: 14px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 16px; color: var(--ink);
}
.controls li:last-child { border-bottom: 0; }
.controls .keyset { display: flex; flex-wrap: wrap; gap: 5px; }
@media (max-width: 420px) {
  .controls li { grid-template-columns: 1fr; gap: 6px; }
}
kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 30px; padding: 0 8px;
  font-family: var(--f-body); font-size: 13px; font-weight: 600; line-height: 1; color: var(--ink);
  background: var(--night-3); border: 1px solid #45506a; border-bottom-width: 3px; border-radius: 6px;
}
.ui-chip {
  display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 6px;
  background: #2a2f3a; color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
.taxi-button { display: inline-block; vertical-align: middle; width: 107px; height: 46px; }
.tips .taxi-button { width: auto; height: 28px; vertical-align: -8px; margin: 0 2px; }

.tips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.tips li { padding: 20px; border-radius: 8px; background: var(--night-2); border: 1px solid var(--rule); }
.tips h3 { font-size: 19px; margin-bottom: 6px; }
.tips p { font-size: 15.5px; color: var(--ink-dim); }
@media (min-width: 760px) { .tips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
.howto-shot { margin: 28px 0 0; }
.howto-shot img { width: 100%; border-radius: 6px; box-shadow: 0 26px 46px -26px rgba(0, 0, 0, 0.9); }
.howto-shot figcaption { margin-top: 10px; font-size: 13.5px; color: var(--ink-faint); }
