:root {
  --bg: #18191b;
  --surface: #222427;
  --ink: #eff0f1;
  --muted: #a3a5aa;
  --accent: #ff4a1f;
  --accent-ink: #18191b;
  --paper: #eff0f1;
  --paper-ink: #18191b;
  --mid: #3a3d42;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-big: clamp(3.5rem, 5.4vw, 5.75rem);

  --margin: 24px;
  --gap: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Roundo", system-ui, sans-serif; font-size: var(--step-body); line-height: 1.5; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.025em; line-height: 1.05; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.photo { filter: grayscale(1) contrast(1.05); object-fit: cover; width: 100%; height: 100%; }
.topbar { height: 8px; background: var(--accent); }

/* the motif: a slotted screw head */
.screw { display: inline-block; width: 1em; height: 1em; border-radius: 50%; background: var(--accent); position: relative; flex: none; }
.screw::after { content: ""; position: absolute; left: 18%; right: 18%; top: 50%; height: 14%; margin-top: -7%; background: var(--bg); transform: rotate(-35deg); border-radius: 0; }
.screw.light::after { background: var(--paper); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding: var(--gap) var(--margin); min-height: calc(100svh - 8px); }
.card { background: var(--paper); color: var(--paper-ink); display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 32px 28px; }
.band { display: flex; gap: 18px; height: 56px; align-items: center; justify-content: center; font-size: 30px; width: 100%; }
.band .screw::after { background: var(--paper); }
.card .mark { margin-top: auto; font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.card h1 { margin-top: 28px; font-size: clamp(2.5rem, 4.6vw, 4.5rem); max-width: 11ch; }
.card .sub { margin-top: 32px; max-width: 36ch; font-size: var(--step-body); }
.btn { display: inline-flex; align-items: center; gap: 12px; margin-top: 32px; padding: 0 28px 0 18px; height: 56px; border-radius: 28px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; transition: transform .2s var(--ease), background .2s var(--ease); border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.btn .screw { font-size: 26px; background: var(--accent-ink); }
.btn .screw::after { background: var(--accent); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .screw { transform: rotate(90deg); transition: transform .4s var(--ease); }
.btn:active { transform: translateY(1px); }
.card nav { margin-top: auto; padding-top: 40px; display: flex; gap: 28px; font-size: var(--step-small); }
.card nav a { text-decoration: none; font-weight: 600; }
.card nav a:hover { color: #b8330f; }
.room { position: sticky; top: var(--gap); height: calc(100svh - 8px - 2 * var(--gap)); overflow: hidden; background: var(--surface); }
.room img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.room img.on { opacity: 1; }
.room figcaption { position: absolute; left: 0; bottom: 0; background: var(--bg); padding: 10px 16px; font-size: var(--step-small); z-index: 2; }

/* ---------- intro statement ---------- */
.intro { padding: 22vh var(--margin); display: flex; justify-content: center; }
.intro p { width: min(64vw, 900px); font-size: clamp(1.5rem, 2.5vw, 2.25rem); line-height: 1.25; font-weight: 500; text-align: center; letter-spacing: -0.015em; }
.thumb { display: inline-block; width: 0.95em; height: 0.95em; border-radius: 50%; overflow: hidden; vertical-align: -0.12em; margin: 0 0.12em; }
.thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }

/* ---------- strike (live thing) ---------- */
.strike { background: var(--paper); color: var(--paper-ink); padding: 120px var(--margin); display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.strike h2 { font-size: var(--step-head); max-width: 12ch; }
.strike .how { margin-top: 20px; max-width: 40ch; }
.face { position: relative; width: 100%; max-width: 620px; justify-self: end; }
.face svg { width: 100%; height: auto; display: block; }
.zone { cursor: pointer; }
.zone:focus-visible { outline: none; }
.zone:focus-visible .hit, .zone:hover .hit { fill: rgba(255, 74, 31, .25); }
.hit { fill: transparent; transition: fill .2s var(--ease); }
.ball { transition: transform .45s var(--ease), opacity .3s; }
.result { margin-top: 32px; padding: 24px 28px; background: var(--bg); color: var(--ink); max-width: 46ch; min-height: 150px; }
.result strong { display: block; font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.result.good strong { color: var(--accent); }
.zones-list { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.zones-list button { font: inherit; font-size: var(--step-small); font-weight: 600; height: 44px; padding: 0 18px; border-radius: 22px; border: 0; background: var(--bg); color: var(--ink); cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.zones-list button:hover, .zones-list button[aria-pressed=true] { background: var(--accent); color: var(--accent-ink); }

/* ---------- showcase ---------- */
.show { display: grid; grid-template-columns: 1fr 1fr; min-height: 88svh; background: var(--surface); }
.plate { padding: 40px; display: flex; align-items: center; justify-content: center; }
.plate .sq { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; }
.plate .ring { position: absolute; inset: 7%; border-radius: 50%; border: 6px solid var(--accent); pointer-events: none; }
.plate .ring::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: var(--accent); }
.spare { padding: 40px 40px 40px 0; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.tabs { display: flex; gap: 28px; }
.tabs button { font: inherit; font-size: 1.125rem; background: none; border: 0; color: var(--muted); padding: 8px 0; cursor: pointer; font-weight: 500; }
.tabs button[aria-selected=true] { color: var(--ink); font-weight: 600; }
.tabs button:hover { color: var(--ink); }
.spare h2 { font-size: clamp(2rem, 2.6vw, 2.5rem); font-weight: 600; }
.spare .desc { margin-top: 48px; max-width: 34ch; }
.cells { display: grid; grid-template-columns: 1fr 1fr; }
.cells a { height: 72px; display: flex; align-items: center; padding: 0 24px; text-decoration: none; font-weight: 600; transition: background .2s var(--ease); }
.cells a:first-child { background: var(--ink); color: var(--paper-ink); }
.cells a:last-child { background: var(--mid); }
.cells a:hover { background: var(--accent); color: var(--accent-ink); }

/* ---------- phrase ---------- */
.phrase { padding: 160px var(--margin) 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; }
.phrase h2 { grid-column: 1 / 6; font-size: var(--step-head); }
.phrase .cols { grid-column: 6 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.phrase .cols p + p { margin-top: 16px; }
.phrase ul { list-style: none; padding: 0; margin: 20px 0 0; }
.phrase li { display: flex; gap: 12px; align-items: baseline; margin-bottom: 10px; }
.phrase li .screw { font-size: 0.8em; transform: translateY(0.1em); }

/* ---------- stepped stats ---------- */
.stats { padding: 160px var(--margin) 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; align-items: start; }
.stats > div { padding: 28px; display: flex; flex-direction: column; justify-content: space-between; clip-path: polygon(0 0, calc(100% - 64px) 0, 100% 64px, 100% 100%, 0 100%); }
.t1 { grid-column: 1 / 7; height: 70vh; background: var(--accent); color: var(--accent-ink); }
.t2 { grid-column: 7 / 10; margin-top: 14vh; height: 44vh; background: var(--paper); color: var(--paper-ink); }
.t3 { grid-column: 10 / 13; margin-top: 26vh; height: 34vh; background: var(--mid); }
.stats strong { font-size: var(--step-big); line-height: .95; letter-spacing: -0.03em; font-weight: 600; }
.stats span { font-size: var(--step-body); max-width: 30ch; }
.stats h2 { grid-column: 7 / 13; grid-row: 1; align-self: start; font-size: clamp(1.75rem, 2.2vw, 2.25rem); position: relative; z-index: 1; padding-top: 2vh; }
.t2, .t3 { grid-row: 1; }
.t1 { grid-row: 1 / 3; }

/* ---------- gallery ---------- */
.pics { padding: 160px var(--margin) 0; }
.pics h2 { font-size: var(--step-head); margin-bottom: 40px; }
.pics .grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--gap); }
.pics figure { margin: 0; position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.pics figure:first-child { grid-row: span 2; aspect-ratio: auto; }
.pics figure img { transition: transform .6s var(--ease); }
.pics figure:hover img { transform: scale(1.04); }
.pics figcaption { position: absolute; left: 0; bottom: 0; background: var(--bg); padding: 8px 14px; font-size: var(--step-small); }

/* ---------- footer ---------- */
footer { margin-top: 160px; border-top: 8px solid var(--accent); padding: 64px var(--margin) 32px; }
.bigmark { display: flex; gap: 4px; height: min(34svh, 20vw); align-items: flex-end; }
.bigmark .screw { height: 100%; width: auto; aspect-ratio: 1; font-size: 0; }
.bigmark .screw:nth-child(2) { height: 80%; background: var(--paper); }
.bigmark .screw:nth-child(2)::after { background: var(--bg); }
.bigmark .screw:nth-child(3) { height: 62%; background: var(--mid); }
.bigmark .screw:nth-child(4) { height: 90%; }
.bigmark .word { margin-left: 24px; align-self: center; font-size: var(--step-head); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.flinks { margin-top: 56px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; font-size: var(--step-small); }
.flinks > div { grid-column: span 2; }
.flinks > div.wide { grid-column: span 4; }
.flinks p.h { font-weight: 600; margin-bottom: 8px; }
.flinks a { display: block; margin-bottom: 6px; }
.flinks a:hover { color: var(--accent); }
.legal { margin-top: 72px; display: flex; justify-content: space-between; gap: 24px; align-items: center; font-size: var(--step-small); }
.legal p { max-width: 72ch; }
.legal .btn { margin: 0; height: 44px; }

/* ---------- motion ---------- */
.rise { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rise.in { opacity: 1; transform: none; }
.no-js .rise { opacity: 1; transform: none; }
.spin { animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .rise, .rise.in { opacity: 1; transform: none; transition: none; }
  .room img { transition: none; }
  .spin { animation: none; }
  .ball { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  :root { --margin: 16px; --gap: 12px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .room { position: relative; top: 0; height: 48svh; order: -1; }
  .card { margin-top: -36px; position: relative; z-index: 2; margin-left: 12px; margin-right: 12px; padding: 0 20px 24px; }
  .band { height: 40px; font-size: 22px; gap: 12px; }
  .card .mark { margin-top: 20px; }
  .card h1 { font-size: 10vw; }
  .card nav { flex-wrap: wrap; justify-content: center; gap: 12px 20px; padding-top: 28px; }
  .intro { padding: 96px var(--margin); }
  .intro p { width: auto; text-align: left; font-size: 1.5rem; }
  .strike { grid-template-columns: 1fr; padding: 80px var(--margin); gap: 32px; }
  .face { justify-self: stretch; }
  .show { grid-template-columns: 1fr; }
  .plate { padding: 16px; }
  .spare { padding: 16px 16px 32px; }
  .cells { grid-template-columns: 1fr; gap: 0; }
  .cells a { height: 60px; }
  .phrase { display: block; padding-top: 112px; }
  .phrase .cols { grid-template-columns: 1fr; margin-top: 24px; gap: 16px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 6px; padding-top: 112px; }
  .stats h2 { grid-column: 1 / 3; grid-row: 1; padding: 0 0 16px; }
  .t1 { grid-column: 1 / 3; grid-row: 2; height: 56vw; }
  .t2 { grid-column: 1; grid-row: 3; margin-top: 0; height: 64vw; }
  .t3 { grid-column: 2; grid-row: 3; margin-top: 32px; height: 64vw; }
  .stats > div { padding: 16px; clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 32px, 100% 100%, 0 100%); }
  .stats strong { font-size: 11vw; }
  .t1 strong { font-size: 15vw; }
  .pics { padding-top: 112px; }
  .pics .grid { grid-template-columns: 1fr 1fr; }
  .pics figure:first-child { grid-column: 1 / 3; grid-row: auto; aspect-ratio: 4 / 3; }
  footer { margin-top: 112px; }
  .bigmark { height: min(22svh, 22vw); }
  .bigmark .word { display: none; }
  .flinks { grid-template-columns: 1fr 1fr; }
  .flinks > div, .flinks > div.wide { grid-column: span 1; }
  .flinks > div.wide { grid-column: 1 / 3; }
  .legal { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 1100px) { .bigmark .word { display: none; } }
