/* Japan Dome House Türkiye · waitlist (version B: glass, light)
   Version A's palette: cream canvas, paper glass, sage ink, clay as the only accent,
   deep green for the Kumamoto section and the footer. Soft fixed clay/sage glows sit
   behind everything so every glass card has something to refract. */

:root {
  --bg: #F4F1EA;          /* cream */
  --surface: #FAF8F3;     /* paper */
  --ink: #3E5243;         /* sage, 7.5:1 on cream */
  --ink-2: #4F6052;       /* 6.0:1 */
  --muted: #5E6D60;       /* 4.9:1 */
  --line: rgba(62, 82, 67, .14);
  --line-2: rgba(62, 82, 67, .24);
  --tint: rgba(62, 82, 67, .06);
  --tint-2: rgba(62, 82, 67, .11);
  --clay: #C4785A;        /* dots, large type */
  --clay-ink: #9C5434;    /* clay for small text and links, 5.0:1 on cream */
  --link: #3E5243;
  --danger: #A4472E;
  --btn: #3E5243;
  --btn-hover: #34463A;
  --btn-ink: #F4F1EA;
  --field: rgba(250, 248, 243, .72);
  --field-focus: #FAF8F3;
  --deep: #1D2620;
  --deep-2: #2A342D;

  --glass-fill: rgba(250, 248, 243, .52);
  --glass-fill-refract: rgba(250, 248, 243, .26);
  --glass-edge: rgba(255, 255, 255, .7);
  --glass-shadow: inset 0 1px 1px rgba(255, 255, 255, .95), inset 0 -1px 2px rgba(29, 38, 32, .08), 0 18px 48px rgba(29, 38, 32, .10);
  --bar-stroke: 0 0 1px rgba(250, 248, 243, 1), 0 1px 2px rgba(250, 248, 243, .8);

  --display: "Zen Kaku Gothic New", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Zen Kaku Gothic New", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 12px;
  --gutter: clamp(16px, 4vw, 32px);
  --max: 1160px;
  color-scheme: light;
}

/* Deep-green surfaces (Kumamoto, footer, member pass, bars over them) flip the same tokens. */
.quake, .foot, .card, .top[data-on-dark], .dock[data-on-dark] {
  --ink: #F4F1EA;
  --ink-2: rgba(244, 241, 234, .78);
  --muted: rgba(244, 241, 234, .62);   /* 5.9:1 on deep */
  --line: rgba(244, 241, 234, .10);
  --line-2: rgba(244, 241, 234, .18);
  --tint: rgba(244, 241, 234, .08);
  --tint-2: rgba(244, 241, 234, .14);
  --clay-ink: #E3A487;
  --link: #F4F1EA;
  --btn: #F4F1EA;
  --btn-hover: #FFFFFF;
  --btn-ink: #1D2620;
  --glass-fill: rgba(29, 38, 32, .42);
  --glass-fill-refract: rgba(29, 38, 32, .16);
  --glass-edge: rgba(244, 241, 234, .18);
  --glass-shadow: inset 0 1px 0 rgba(244, 241, 234, .2), inset 0 -1px 1px rgba(0, 0, 0, .25), 0 18px 48px rgba(0, 0, 0, .28);
  --bar-stroke: 0 1px 2px rgba(0, 0, 0, .55);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scrollbar-color: rgba(62, 82, 67, .35) transparent; accent-color: var(--ink); caret-color: var(--ink); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
sup a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 0 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--ink); color: var(--bg); }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
main { position: relative; z-index: 1; overflow-x: clip; }

/* Ambient light: the only decoration, and what makes the glass read as glass. */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient::before, .ambient::after { content: ""; position: absolute; border-radius: 50%; }
.ambient::before { width: 70vmax; height: 70vmax; left: -28vmax; top: -24vmax; background: radial-gradient(closest-side, rgba(196, 120, 90, .26), rgba(196, 120, 90, 0)); }
.ambient::after { width: 80vmax; height: 80vmax; right: -34vmax; bottom: -38vmax; background: radial-gradient(closest-side, rgba(196, 120, 90, .14), rgba(62, 82, 67, .16) 45%, rgba(62, 82, 67, 0)); }

/* ---------- Buttons ---------- */
.btn {
  --h: 44px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 20px;
  border: 0; border-radius: 999px;
  background: var(--btn); color: var(--btn-ink);
  font: 600 15px/1 var(--body); letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, color 300ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-sm { --h: 36px; padding: 0 16px; font-size: 14px; }
.btn-lg { --h: 52px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-ghost { background: var(--tint); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn[disabled] { opacity: .6; cursor: progress; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--btn-hover); }
  .btn-ghost:hover { background: var(--tint-2); }
}

.spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .6s linear infinite; }
.btn[aria-busy="true"] .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.swap { filter: blur(2px); opacity: .5; transition: filter 120ms ease, opacity 120ms ease; }
.cta-label, .btn-label { transition: filter 160ms ease, opacity 160ms ease; }

.live { width: 8px; height: 8px; border-radius: 50%; background: var(--clay); flex: none; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(196, 120, 90, .55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(196, 120, 90, 0); } }

.label { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--body); color: var(--muted); letter-spacing: .01em; }

/* ---------- Banner ---------- */
.banner { position: relative; z-index: 2; display: flex; justify-content: center; gap: 12px; padding: 10px var(--gutter); background: var(--ink); color: var(--bg); font-size: 14px; text-decoration: none; text-align: center; }

/* ---------- Glass ----------
   Every card carries a .glass layer; glass.js adds the refraction filter in Chromium,
   this blur is the fallback everywhere else. A card itself never gets a backdrop-filter:
   that would make it a backdrop root and leave its glass nothing to refract. */
.glass {
  position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none;
  background: var(--glass-fill);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  transition: background-color 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}
.glass.refract { background: var(--glass-fill-refract); }
@media (prefers-reduced-transparency: reduce) {
  .glass, .glass.refract { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none !important; }
  .quake .glass, .foot .glass, .card > .glass, [data-on-dark] > .glass, [data-on-dark] .glass { background: var(--deep-2); }
}
.top-inner > :not(.glass), .dock > :not(.glass), .gcard > :not(.glass), .statbar > :not(.glass), .pill > :not(.glass), .chip > :not(.glass),
.panel > :not(.glass), .use > :not(.glass), .frame > :not(.glass), .refbox > :not(.glass), .card > :not(.glass):not(.card-dome):not(.shine) { position: relative; z-index: 1; }

.panel { position: relative; border-radius: var(--r-lg); }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 50; padding: 12px var(--gutter) 0; pointer-events: none; }
.top-inner {
  position: relative; pointer-events: auto;
  max-width: 1000px; margin-inline: auto;
  display: flex; align-items: center; gap: 24px;
  height: 56px; padding: 0 10px 0 18px;
  border-radius: 999px;
}
.top .brand, .top .nav a, .dock-count { color: var(--ink); text-shadow: var(--bar-stroke); transition: color 300ms ease; }
.top .nav a { color: var(--ink-2); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 15px/1 var(--display); letter-spacing: -0.01em; white-space: nowrap; }
.brand-tr { color: var(--muted); font-weight: 600; }
.brand-mark { width: 34px; height: 17px; flex: none; }
.brand-mark path { fill: #E50012; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; transition: color 160ms ease, background-color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .top .nav a:hover { color: var(--ink); background: var(--tint-2); } }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(44px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.hero-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pill {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  min-height: 36px; padding: 6px 16px 6px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none;
}
.hero h1 { margin-top: 26px; font-size: clamp(38px, 7vw, 88px); letter-spacing: -0.03em; line-height: 1.04; }
@media (min-width: 721px) { .h1-a, .h1-b { white-space: nowrap; } }
.h1-a, .h1-b { display: block; color: var(--ink); }
.h1-b { font: italic 400 1.12em/1 var(--serif); letter-spacing: -0.01em; }
.em { font: italic 400 1.08em/1 var(--serif); letter-spacing: 0; }

.hero-grid {
  margin-top: clamp(36px, 5vw, 56px);
  display: grid; grid-template-columns: 1fr minmax(280px, 400px) 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
}
.hero-stats { display: grid; gap: 16px; justify-self: start; width: min(100%, 230px); }
.gcard {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 20px 22px; border-radius: 22px; text-decoration: none;
}
.gcard b { font: 700 clamp(30px, 3vw, 40px)/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.gcard span:last-child { font-size: 14px; color: var(--muted); }

/* The signature from version A, kept: the photo sits in the dome's own silhouette. */
.hero-art { margin: 0; position: relative; }
.hero-art::before {
  content: ""; position: absolute; inset: 8% -30% -6%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(196, 120, 90, .34), rgba(196, 120, 90, .08) 60%, rgba(196, 120, 90, 0));
}
.arch {
  aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 999px 999px var(--r-lg) var(--r-lg);
  background: #DCE1D8;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .7), 0 40px 100px rgba(29, 38, 32, .22);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 64%; }
.vert { position: absolute; right: -28px; top: 34%; writing-mode: vertical-rl; font-size: 13px; letter-spacing: .5em; color: var(--muted); }
.kanji { font-weight: 500; letter-spacing: .08em; }
.hero-art figcaption { margin-top: 14px; text-align: center; font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .js .hero-art .arch { opacity: 0; transform: translateY(24px) scale(.97); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
  .js .hero-art.in .arch { opacity: 1; transform: none; }
}

.hero-side { justify-self: end; max-width: 300px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.lede { font-size: 17px; color: var(--ink-2); }
.fine { font-size: 13px; color: var(--muted); margin-top: -8px; }

/* Stat bar: the hero's footing, in place of a marquee. */
.statbar { position: relative; margin-top: clamp(48px, 7vw, 80px); border-radius: var(--r-lg); }
.statbar dl { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.statbar dl > div { padding: clamp(22px, 3vw, 32px) clamp(18px, 2.6vw, 32px); display: flex; flex-direction: column-reverse; gap: 8px; }
.statbar dl > div + div { box-shadow: inset 1px 0 0 var(--line); }
.statbar dd { margin: 0; font: 700 clamp(30px, 3.6vw, 46px)/1 var(--display); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.statbar dt { font-size: 14px; color: var(--muted); }

/* ---------- Section heads ---------- */
.sec-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(34px, 4.8vw, 58px); }
.intro { margin-top: 18px; font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); }

/* ---------- Counter ---------- */
.counter { padding-top: 0; }
.counter-card { padding: clamp(28px, 5vw, 56px); }
.counter-top { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px 32px; }
.counter-top .label { grid-column: 1 / -1; margin-bottom: 8px; }
.counter-num { font: italic 400 clamp(72px, 11vw, 140px)/0.9 var(--serif); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.counter-num .goal { color: var(--muted); font-size: .4em; }
.counter-text { font-size: 17px; color: var(--ink-2); padding-bottom: 10px; text-align: right; max-width: 220px; }
.progress { margin-top: 40px; padding-bottom: 30px; position: relative; }
.bar { height: 8px; border-radius: 999px; background: var(--tint-2); overflow: hidden; }
.fill { display: block; height: 100%; background: var(--ink); border-radius: inherit; transform-origin: left; transform: scaleX(0); transition: transform 1200ms var(--ease-out); }
.marks { list-style: none; margin: 0; padding: 0; position: absolute; inset: 18px 0 auto 0; height: 20px; }
.marks li { position: absolute; transform: translateX(-100%); font-size: 13px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.marks li::before { content: ""; position: absolute; right: 0; top: -18px; width: 2px; height: 8px; background: var(--surface); }
.marks li.hit { color: var(--ink-2); }
.marks li.next { color: var(--ink); font-weight: 700; }
.sub { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.sub b { color: var(--ink); }
.sub .milestone { color: var(--ink); font-weight: 700; }

/* ---------- Explain: alternating feature rows ---------- */
.explain { padding-top: 0; }
.feature { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature + .feature { margin-top: clamp(64px, 9vw, 120px); }
.feature.rev .feature-text { order: 2; }
.feature-text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 480px; }
.feature-text h3 { font-size: clamp(30px, 3.6vw, 44px); }
.feature-text > p:not(.eyebrow) { color: var(--ink-2); }
.checks { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: center; font-size: 16px; }
.checks svg { flex: none; width: 22px; height: 22px; border-radius: 50%; padding: 3px; background: var(--tint); box-shadow: inset 0 0 0 1px var(--line-2); fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.feature-media { margin: 0; position: relative; }
.feature-media::before {
  content: ""; position: absolute; inset: -14% -10%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(196, 120, 90, .24), rgba(196, 120, 90, 0));
}
.frame { position: relative; border-radius: var(--r-lg); padding: 12px; }
.frame img { border-radius: calc(var(--r-lg) - 10px); width: 100%; }
.frame-light img { background: #FFFFFF; padding: clamp(12px, 3vw, 32px); }
.frame-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.frame-pair img { aspect-ratio: 4 / 5; height: auto; object-fit: cover; }
.feature-media figcaption { margin-top: 14px; font-size: 14px; color: var(--muted); text-align: center; }

/* ---------- Kumamoto (deep, as in version A) ---------- */
.quake { background: radial-gradient(120% 90% at 85% 100%, var(--deep-2), var(--deep) 60%); }
.quake-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.quake-stat { margin-top: 20px; font-size: clamp(56px, 8.4vw, 112px); letter-spacing: -0.045em; line-height: .98; display: flex; flex-direction: column; }
.quake-stat em { font: italic 400 1.15em/0.9 var(--serif); color: var(--ink); letter-spacing: 0; }
.quake-body { margin-top: 28px; max-width: 440px; font-size: 18px; color: var(--ink-2); }
.quake-art { margin: 0; position: relative; }
.quake-art img { width: 100%; border-radius: var(--r-lg); box-shadow: 0 30px 90px rgba(0, 0, 0, .3), 0 0 0 1px rgba(244, 241, 234, .08); }
.chip {
  position: absolute; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--ink); text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}

/* ---------- Future: safe, nature-friendly, affordable ---------- */
.future-grid { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.pillar { padding: 12px; display: flex; flex-direction: column; border-radius: var(--r-lg); }
.pillar-main { grid-row: 1 / 3; }
.pillar-fig { margin: 0; border-radius: calc(var(--r-lg) - 8px); overflow: hidden; background: #FFFFFF; }
.pillar-fig img { width: 100%; height: auto; }
.pillar-main .pillar-fig img { aspect-ratio: 1000 / 543; }
.pillar-body { padding: 20px 16px 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.pillar-body h3 { font-size: clamp(26px, 2.6vw, 34px); }
.pillar-body > p { color: var(--ink-2); max-width: 46ch; }
.pillar .checks { margin: 0; }
.pillar .checks li { align-items: flex-start; }
.pillar .checks svg { margin-top: 2px; }
.pillar-cta { justify-content: center; }
.pillar-cta .pillar-body { padding: 24px 20px; }

/* ---------- Uses ---------- */
.use-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.use-grid li { display: flex; }
.use {
  width: 100%; display: flex; flex-direction: column; text-align: left;
  position: relative; padding: 8px; border: 0; border-radius: var(--r-md); cursor: pointer;
  background: none;
  transition: transform 160ms var(--ease-out);
}
.use > .glass { transition: background-color 200ms ease, border-color 200ms ease; }
.use:active { transform: scale(0.98); }
.use .slot { display: block; overflow: hidden; border-radius: calc(var(--r-md) - 6px); }
.use .slot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 400ms var(--ease-out); }
.use-body { padding: 16px 12px 4px; display: flex; flex-direction: column; gap: 4px; }
.use-body b { font: 700 18px/1.2 var(--display); letter-spacing: -0.01em; }
.use-body span { font-size: 15px; color: var(--ink-2); }
.use-pick { margin-top: auto; padding: 12px 12px 10px; font-size: 14px; font-weight: 700; color: var(--ink); }
.use-pick span { display: inline-block; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .use:hover > .glass { background: rgba(250, 248, 243, .7); border-color: #FFFFFF; }
  .use:hover .slot img { transform: scale(1.03); }
  .use:hover .use-pick span { transform: translateX(3px); }
}

/* ---------- Why ---------- */
.why { padding-top: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { border-radius: var(--r-md); padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.steps .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px; background: var(--ink); color: var(--bg); font: 700 15px/1 var(--display); }
.steps b { font: 700 20px/1.2 var(--display); letter-spacing: -0.015em; }
.steps li > span:last-child { color: var(--ink-2); font-size: 16px; }
.note { margin: 32px auto 0; max-width: 560px; text-align: center; color: var(--ink-2); }

/* ---------- Signup ---------- */
.signup { padding-top: 0; }
.signup-card { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 80px); padding: clamp(28px, 5vw, 64px); }
.signup-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(60% 70% at 0% 0%, rgba(196, 120, 90, .14), rgba(196, 120, 90, 0));
}
.signup-head h2 { font-size: clamp(34px, 4.6vw, 52px); }
.signup-head > p { margin-top: 16px; color: var(--ink-2); }
.signup-head .checks { margin-top: 28px; }

form { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .field legend { font-size: 14px; font-weight: 600; padding: 0; color: var(--ink); }
.opt { font-weight: 400; color: var(--muted); margin-left: 4px; }
.field input, .field select {
  width: 100%; height: 50px; padding: 0 16px;
  border: 0; border-radius: var(--r-sm);
  background: var(--field); box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 17px; outline: none; appearance: none; -webkit-appearance: none;
  transition: box-shadow 160ms ease, background-color 160ms ease;
}
.field input::placeholder { color: var(--muted); }
.field input:focus, .field select:focus { background: var(--field-focus); box-shadow: inset 0 0 0 2px var(--ink); }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select select { padding-right: 44px; cursor: pointer; }
.field.invalid input, .field.invalid select { box-shadow: inset 0 0 0 2px var(--danger); }
.err { color: var(--danger); font-size: 14px; }
.err:empty { display: none; }

.intents legend, .notify legend { margin-bottom: 8px; }
.opt-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt-card { position: relative; cursor: pointer; display: flex; }
.opt-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt-card > span {
  flex: 1; display: grid; gap: 4px; padding: 14px 16px 14px 44px; border-radius: var(--r-sm);
  background: var(--field); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow 160ms ease, background-color 160ms ease;
  position: relative;
}
.opt-card > span::before {
  content: ""; position: absolute; left: 16px; top: 16px; width: 18px; height: 18px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line-2); background: var(--surface); transition: box-shadow 160ms ease;
}
.opt-card b { font-size: 15px; font-weight: 700; }
.opt-card small { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.opt-card input:checked + span { background: var(--field-focus); box-shadow: inset 0 0 0 2px var(--ink); }
.opt-card input:checked + span::before { box-shadow: inset 0 0 0 5px var(--ink); }
.opt-card input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.promise { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-sm); background: var(--tint); box-shadow: inset 0 0 0 1px var(--line); }
.promise svg { flex: none; width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.promise p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.promise b { color: var(--ink); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border-radius: 999px; background: var(--field); box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 15px; font-weight: 500;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms var(--ease-out);
}
.seg label:active span { transform: scale(0.97); }
.seg input:checked + span { background: var(--ink); color: var(--bg); box-shadow: none; }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.intents.invalid .seg span { box-shadow: inset 0 0 0 1px var(--danger); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; line-height: 1.5; }
.consent input { flex: none; width: 22px; height: 22px; margin: 0; border-radius: 6px; appearance: none; -webkit-appearance: none; box-shadow: inset 0 0 0 1.5px var(--line-2); background: var(--field); cursor: pointer; transition: background-color 160ms ease; }
.consent input:checked { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3L14.5 7' fill='none' stroke='%23F4F1EA' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; box-shadow: none; }
.consent a { color: var(--link); font-weight: 700; text-underline-offset: 3px; }
.form-err { color: var(--danger); font-size: 15px; font-weight: 500; }
.form-err:empty { display: none; }
.submit-row { display: grid; gap: 12px; margin-top: 4px; }
.ref-note { font-size: 14px; color: var(--ink-2); text-align: center; font-weight: 500; }

/* Thank-you: the member card reads like a pass */
#kayit.done .signup-card { grid-template-columns: 1fr; }
#kayit.done .signup-head { display: none; }
.thanks { display: grid; grid-template-columns: minmax(0, 400px) 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.card {
  aspect-ratio: 1.586 / 1; border-radius: 22px; padding: 22px 24px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
}
/* The pass is deep-green glass with a clay glow, so it still reads as a card of its own. */
.card > .glass, .card > .glass.refract { background: radial-gradient(130% 120% at 100% 100%, rgba(138, 80, 56, .95), rgba(42, 52, 45, .9) 58%, rgba(29, 38, 32, .94)); box-shadow: var(--glass-shadow), 0 24px 60px rgba(29, 38, 32, .25); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.card-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.card-logo { width: 92px; height: auto; flex: none; }
/* The pass's line drawing is the logo's own dome: stripes, arch and all. */
.card-dome { position: absolute; z-index: 1; left: 60%; bottom: 0; width: 62%; transform: translateX(-50%); fill: none; stroke: #F4F1EA; stroke-width: .32; opacity: .22; }
.card-foot { display: flex; justify-content: space-between; align-items: flex-end; position: relative; }
.card-title { font: italic 400 22px/1 var(--serif); color: var(--ink); }
.card-name { margin-top: 4px; font: 700 18px/1.2 var(--display); }
.card-city { font-size: 13px; color: var(--muted); }
.card-no { font: 700 34px/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.card-no span:first-child { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.thanks.enter .card { animation: card-in 700ms var(--ease-out) both; }
.thanks.enter .thanks-text { animation: fade-up 500ms var(--ease-out) 200ms both; }
@keyframes card-in { from { opacity: 0; transform: translateY(16px) rotate(-2deg) scale(.96); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } }

.thanks-text h3 { font-size: clamp(30px, 3.6vw, 44px); }
.thanks-text > p { margin-top: 12px; color: var(--ink-2); }
.refbox { position: relative; margin-top: 28px; padding: 24px; border-radius: var(--r-md); display: grid; gap: 12px; }
.refbox-title { font: 700 18px/1.2 var(--display); }
.refbox > p { font-size: 15px; color: var(--ink-2); }
.reflink { display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 14px; border-radius: 999px; background: var(--field); box-shadow: inset 0 0 0 1px var(--line-2); }
.reflink input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 14px; color: var(--ink-2); outline: none; text-overflow: ellipsis; }
.share { display: flex; gap: 8px; flex-wrap: wrap; }
.refcount { font-size: 14px; color: var(--muted); }
.refcount strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.tip { margin-top: 16px; font-size: 14px; color: var(--muted); }
.tip b { color: var(--ink); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { padding-top: 0; display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq .sec-head { margin: 0; }
.faq-list { border-top: 1px solid var(--line-2); }
details { border-bottom: 1px solid var(--line-2); }
summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer; font: 600 18px/1.35 var(--display); letter-spacing: -0.01em; }
summary::-webkit-details-marker { display: none; }
.plus { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--tint-2); }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; margin: -1px 0 0 -5px; border-radius: 1px; background: var(--ink); transition: transform 200ms var(--ease-out); }
.plus::after { transform: rotate(90deg); }
details[open] .plus::after { transform: rotate(0deg); }
.ans { padding: 0 44px 24px 0; color: var(--ink-2); }
.ans a { color: var(--link); text-underline-offset: 3px; }

/* ---------- Footer (deep, bookends the Kumamoto section) ---------- */
.foot {
  position: relative; z-index: 1;
  margin-top: clamp(24px, 4vw, 48px);
  background: radial-gradient(90% 120% at 10% 0%, var(--deep-2), var(--deep) 65%);
  padding-top: clamp(56px, 7vw, 88px);
}
.foot-grid { display: grid; grid-template-columns: 1.2fr .7fr 1fr 1fr 1.4fr; gap: clamp(32px, 4vw, 56px); padding-bottom: clamp(48px, 6vw, 72px); }
.foot-about > p { margin-top: 18px; max-width: 300px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.foot-h { margin-bottom: 4px; font: 700 13px/1 var(--body); letter-spacing: .02em; color: var(--muted); }
.foot-col a { font-size: 15px; color: var(--ink-2); text-decoration: none; transition: color 160ms ease; }
.foot-col .ext { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.foot-sources p:not(.foot-h) { font-size: 13px; line-height: 1.6; color: var(--muted); }
.foot-sources sup { color: var(--ink); font-weight: 600; }
.foot-sources a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-block: 24px 32px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.foot-legal { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-legal a { color: var(--ink-2); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .foot-col a:hover, .foot-legal a:hover, .foot-sources a:hover { color: var(--ink); }
}

/* ---------- Mobile dock ---------- */
.dock {
  position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 18px; border-radius: 999px;
  transform: translateY(calc(100% + 24px)); opacity: 0;
  transition: transform 300ms var(--ease-out), opacity 200ms ease;
}
.dock.show { transform: none; opacity: 1; }
.dock-count { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.dock-count b { font-variant-numeric: tabular-nums; }

/* ---------- Reveal on scroll ---------- */
.js .rv { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease-out) var(--d, 0ms), transform 600ms var(--ease-out) var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-art { grid-column: 1 / -1; grid-row: 1; justify-self: center; width: min(100%, 380px); }
  .hero-stats { justify-self: stretch; width: auto; grid-template-columns: 1fr 1fr; align-self: start; }
  .hero-side { justify-self: stretch; max-width: none; }
  .statbar dl { grid-template-columns: 1fr 1fr; }
  .statbar dl > div + div { box-shadow: none; }
  .statbar dl > div:nth-child(even) { box-shadow: inset 1px 0 0 var(--line); }
  .statbar dl > div:nth-child(n + 3) { box-shadow: inset 0 1px 0 var(--line); }
  .statbar dl > div:nth-child(4) { box-shadow: inset 1px 1px 0 var(--line); }
  .feature, .feature.rev { grid-template-columns: 1fr; }
  .feature.rev .feature-text { order: 0; }
  .feature-text { max-width: 620px; }
  .use-grid { grid-template-columns: 1fr 1fr; }
  .quake-inner { grid-template-columns: 1fr; }
  .signup-card { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .future-grid { grid-template-columns: 1fr; }
  .pillar-main { grid-row: auto; }
  .thanks { grid-template-columns: 1fr; }
  .card { max-width: 400px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-about, .foot-sources { grid-column: 1 / -1; }
  .foot-sources { max-width: 640px; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .top-inner { justify-content: space-between; height: 52px; padding: 0 8px 0 14px; }
  .dock { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { width: min(86%, 360px); }
  .hero-side { grid-row: 2; align-items: center; text-align: center; }
  .hero-stats { grid-row: 3; }
  .counter-top { grid-template-columns: 1fr; }
  .counter-text { text-align: left; max-width: none; padding-bottom: 0; }
  .marks li:not(.next):not(:last-child) { display: none; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .opt-cards { grid-template-columns: 1fr; }
  .foot-bottom { padding-bottom: 104px; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .brand > span { font-size: 14px; }
  .gcard { padding: 16px 18px; }
  .use-grid { grid-template-columns: 1fr; }
  .use { display: grid; grid-template-columns: 112px 1fr; grid-template-rows: 1fr auto; }
  .use .slot { grid-row: 1 / 3; }
  .use .slot img { aspect-ratio: auto; height: 100%; min-height: 112px; }
  .use-body { padding: 12px 12px 2px 14px; }
  .use-pick { padding: 6px 12px 8px 14px; }
  .frame-pair { gap: 8px; padding: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { transform: none; transition: opacity 300ms ease; }
  .live { animation: none; }
  .fill { transition: none; }
  .thanks.enter .card, .thanks.enter .thanks-text { animation: none; }
  .dock { transition: opacity 200ms ease; transform: none; }
  .dock:not(.show) { visibility: hidden; }
}

/* ---------- Member pass: 3D tilt, sheen, live mini preview ---------- */
.card {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 600ms var(--ease-out), translate 800ms var(--ease-out), scale 800ms var(--ease-out);
  will-change: transform;
}
.card.tilting { transition: transform 120ms linear, translate 800ms var(--ease-out), scale 800ms var(--ease-out); }
.card.flying { animation: none !important; transform-origin: 0 0; }
.shine {
  position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  background: radial-gradient(60% 80% at var(--mx, 30%) var(--my, 0%), rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 60%);
  opacity: 0; transition: opacity 300ms ease;
  mix-blend-mode: soft-light;
}
.card.tilting .shine { opacity: 1; }
/* One light sweep across the pass right after it lands. */
.card.glint .shine {
  opacity: 1;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .35) 48%, rgba(255, 255, 255, 0) 66%) no-repeat;
  background-size: 250% 100%;
  animation: glint 1100ms var(--ease-out) forwards;
}
@keyframes glint { from { background-position: 120% 0; } to { background-position: -60% 0; opacity: 0; } }

.signup-card > .card--mini {
  position: absolute; z-index: 3; top: -52px; right: clamp(20px, 4vw, 56px);
  width: 250px; padding: 14px 16px; border-radius: 16px;
  rotate: 3deg;
  box-shadow: 0 24px 50px rgba(29, 38, 32, .22);
  animation: mini-float 6s ease-in-out infinite;
}
.card--mini .card-eyebrow { display: none; }
.card--mini .card-logo { width: 60px; }
.card--mini .card-title { font-size: 15px; }
.card--mini .card-name { font-size: 13px; margin-top: 2px; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card--mini .card-city { font-size: 11px; }
.card--mini .card-no { font-size: 22px; }
.card--mini .card-no span:first-child { font-size: 11px; }
.card--mini .card-name, .card--mini .card-city { transition: opacity 200ms ease; }
.card--mini:not(.filled) .card-name, .card--mini:not(.filled) .card-city { opacity: .55; }
@keyframes mini-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
#kayit.done .card--mini { display: none; }
/* Room under the corner pass so it never covers the first field. */
@media (min-width: 961px) { #form { padding-top: 92px; } }
@media (max-width: 960px) {
  .signup-card { padding-top: 104px; }
  .signup-card > .card--mini { top: -36px; width: 210px; }
}
@media (max-width: 520px) {
  .signup-card > .card--mini { width: 180px; right: 16px; padding: 12px 13px; }
  .card--mini .card-no { font-size: 18px; }
  .card--mini .card-name { max-width: 100px; }
  .card--mini .card-eyebrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .card.tilting { transition: none; transform: none; }
  .signup-card > .card--mini { animation: none; }
  .card.glint .shine { animation: none; opacity: 0; }
}

/* ---------- Instagram icon + team ---------- */
.top-actions { display: flex; align-items: center; gap: 6px; }
.ig-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ig-icon .ig-dot { fill: currentColor; stroke: none; }
.ig-link {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  color: var(--ink); text-decoration: none; transition: background-color 160ms ease, color 300ms ease;
}
@media (hover: hover) and (pointer: fine) { .ig-link:hover { background: var(--tint-2); } }
.foot-ig { display: flex !important; gap: 10px; align-items: flex-start; }
.foot-ig .ig-icon { flex: none; margin-top: 2px; }
.foot-team .role { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-2); }
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
/* Narrow phones: keep brand, Instagram and the button on one line. */
@media (max-width: 440px) {
  .top .brand-tr { display: none; }
  .ig-link { width: 36px; height: 36px; }
  .top-actions { gap: 2px; }
}
