/* ticket-md: a box office after dark. Warm black, ticket-stock yellow,
   condensed display type, mono codes, and perforated rules between sections. */
:root {
  --night: #16130f;
  --night-2: #201c17;
  --line: #3a332a;
  --paper: #f3ece0;
  --muted: #b3a998;
  --stock: #ffb627;
  --stock-ink: #16130f;
  --red: #ff5a36;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--paper); font: 17px/1.6 var(--text); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--stock); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--stock); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; line-height: 1; text-wrap: balance; }
h2 { font: 900 clamp(44px, 6vw, 76px)/.92 var(--display); text-transform: uppercase; letter-spacing: .005em; }
h3 { font: 600 19px/1.25 var(--text); }
p { margin: 0; }
code, pre { font-family: var(--mono); font-size: .86em; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--stock); color: var(--stock-ink); padding: 8px 14px; z-index: 10; font-weight: 600; }
.skip:focus { top: 12px; }

.top { border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 600 16px/1 var(--mono); color: var(--paper); text-decoration: none; }
.mark { width: 26px; height: 16px; background: var(--stock); border-radius: 3px; position: relative;
  -webkit-mask: radial-gradient(circle 4px at 17px 0, transparent 98%, #000) top/100% 51% no-repeat, radial-gradient(circle 4px at 17px 100%, transparent 98%, #000) bottom/100% 51% no-repeat;
  mask: radial-gradient(circle 4px at 17px 0, transparent 98%, #000) top/100% 51% no-repeat, radial-gradient(circle 4px at 17px 100%, transparent 98%, #000) bottom/100% 51% no-repeat; }
.nav { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { color: var(--paper); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--stock); }

section { padding: clamp(60px, 8vw, 104px) 0; }
.section-lede { color: var(--muted); margin-top: 16px; max-width: 62ch; font-size: 18px; }

/* A perforated rule with a notch at each end, like a ticket stub line. */
.perf { position: relative; height: 0; border-top: 2px dashed var(--line); max-width: var(--wrap); margin: 0 auto; }
.perf::before, .perf::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--stock); }
.perf::before { left: 8px; }
.perf::after { right: 8px; }

.hero { padding-top: clamp(44px, 7vw, 92px); overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.eyebrow { font: 600 13px/1 var(--mono); letter-spacing: .14em; color: var(--stock); text-transform: uppercase; }
.hero h1 { font: 900 clamp(50px, 6vw, 86px)/.9 var(--display); text-transform: uppercase; margin-top: 18px; letter-spacing: .003em; }
.lede { font-size: 19px; color: var(--muted); margin-top: 24px; max-width: 50ch; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.btn { display: inline-block; background: var(--stock); color: var(--stock-ink); text-decoration: none; padding: 13px 22px; border-radius: 4px; font-weight: 600; font-size: 16px; border: 2px solid var(--stock); }
.btn:hover { background: var(--paper); border-color: var(--paper); }
.btn-quiet { background: transparent; color: var(--paper); border-color: var(--line); }
.btn-quiet:hover { background: transparent; border-color: var(--paper); }

.hero-art { position: relative; aspect-ratio: 1 / .82; }
.stub { position: absolute; width: 92%; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.55), 0 2px 0 rgba(255,255,255,.04) inset; transition: transform .25s ease; }
.stub-1 { right: 0; top: 0; transform: rotate(5deg); }
.stub-2 { left: 0; top: 31%; transform: rotate(-4deg); }
.stub-3 { right: 2%; bottom: 0; transform: rotate(1.5deg); }
.stub:hover, .stub:focus-visible { z-index: 3; transform: rotate(0) scale(1.03); }

.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps li { background: var(--night-2); border: 1px solid var(--line); border-radius: 8px; padding: 26px 24px 28px; position: relative; }
.steps li::after { content: ""; position: absolute; left: 24px; right: 24px; top: 86px; border-top: 2px dashed var(--line); }
.step-no { display: block; font: 900 54px/1 var(--display); color: var(--stock); margin-bottom: 30px; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 16px; }
.ask { margin: 44px 0 0; font: 500 clamp(20px, 2.4vw, 26px)/1.4 var(--text); border-inline-start: 4px solid var(--stock); padding-inline-start: 22px; max-width: 60ch; }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; margin-top: 44px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 8px; }
.gallery a { display: block; border-radius: 8px; }
.gallery figcaption { margin-top: 14px; color: var(--muted); font-size: 15px; }
.gallery figcaption b { font: 600 14px var(--mono); color: var(--stock); margin-inline-end: 8px; text-transform: lowercase; }

.door-grid, .print-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.facts li { border-top: 1px solid var(--line); padding-top: 14px; color: var(--muted); font-size: 16px; }
.facts b { display: block; color: var(--paper); font-size: 17px; margin-bottom: 2px; }
.facts code { color: var(--stock); }
.door-art { position: relative; min-height: 560px; }
.phone { position: absolute; left: 0; top: 0; width: 44%; border: 8px solid #2c2620; border-radius: 30px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.55); z-index: 2; }
.paper-shot { position: absolute; right: 0; top: 40px; width: 62%; transform: rotate(3deg); box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.sheet-shot { display: block; max-width: 440px; width: 100%; justify-self: center; transform: rotate(-2deg); box-shadow: 0 30px 60px rgba(0,0,0,.5); }

.install { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 36px; }
.install > div { background: var(--night-2); border: 1px solid var(--line); border-radius: 8px; padding: 20px; min-width: 0; }
.install pre { margin: 14px 0 0; background: #0d0b09; color: var(--paper); padding: 14px 16px; border-radius: 6px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; border-inline-start: 3px solid var(--stock); }
.note { color: var(--muted); margin-top: 20px; font-size: 15px; }

.examples { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.examples li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 8px 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ex-name { font: 700 clamp(24px, 3vw, 32px)/1.1 var(--display); text-transform: uppercase; }
.ex-name[lang="ja"], .ex-name[lang="ar"] { font-family: var(--text); text-transform: none; font-size: 24px; }
.ex-name[dir="rtl"] { text-align: left; }
.ex-meta { font: 400 13px/1.4 var(--mono); color: var(--muted); }
.ex-links { display: flex; gap: 16px; font-size: 15px; }

.foot { border-top: 1px solid var(--line); padding: 44px 0 60px; font-size: 15px; color: var(--muted); }
.foot-row { display: grid; gap: 10px; }

.lost { min-height: 62vh; display: flex; align-items: center; }
.lost h1 { font: 900 clamp(48px, 8vw, 96px)/.9 var(--display); text-transform: uppercase; margin-top: 14px; }

@media (max-width: 960px) {
  .hero-grid, .door-grid, .print-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero-art { max-width: 620px; width: 100%; margin: 0 auto; }
  .steps, .install { grid-template-columns: minmax(0, 1fr); }
  .steps li::after { top: 80px; }
  .door-art { max-width: 560px; margin: 0 auto; width: 100%; min-height: 0; aspect-ratio: 1 / 1.02; }
  .examples li { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .gallery { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .nav { gap: 14px; }
  .nav a { font-size: 14px; }
  .phone { border-width: 5px; border-radius: 18px; }
}
