/* =========================================================
   MIRAI Driving @ ACCV 2026 — Sakura theme
   Palette drawn from the workshop logo: cherry-blossom pink,
   twilight indigo, and Osaka dusk lavender.
   ========================================================= */

:root {
  --sakura-50:  #fff6f9;
  --sakura-100: #ffe9f0;
  --sakura-200: #fbd0de;
  --sakura-300: #f7b3c9;
  --sakura-400: #ef8bab;
  --sakura-500: #e2648e;
  --sakura-600: #c94a75;

  --indigo-900: #161a33;
  --indigo-800: #23294d;
  --indigo-700: #333a68;
  --indigo-500: #5a6296;

  --lav-100: #eef0fb;
  --lav-200: #dfe3f6;

  --ink:      #1f2338;
  --ink-soft: #4c5270;
  --ink-mute: #7b819c;

  --bg:       #ffffff;
  --bg-alt:   #fdf7fa;
  --line:     #f0e2ea;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(31, 35, 56, .05);
  --shadow:    0 10px 34px rgba(201, 74, 117, .10), 0 2px 8px rgba(31, 35, 56, .05);
  --shadow-lg: 0 22px 60px rgba(35, 41, 77, .14);

  --maxw: 1140px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-jp: "Zen Maru Gothic", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.jp { font-family: var(--font-jp); }

img { max-width: 100%; display: block; }

a { color: var(--sakura-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(var(--maxw), calc(100% - 3rem)); margin-inline: auto; }
.wrap.narrow { width: min(760px, calc(100% - 3rem)); }
.center { text-align: center; }
.muted { color: var(--ink-mute); font-size: .93rem; }

/* ---------- Falling petals canvas ---------- */
#sakura-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.site-nav.scrolled { box-shadow: 0 4px 20px rgba(31, 35, 56, .07); }

.nav-inner {
  width: min(var(--maxw), calc(100% - 3rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.nav-brand:hover { text-decoration: none; }
.nav-brand img {
  width: 40px; height: 40px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--sakura-200);
}
.nav-brand span { display: flex; flex-direction: column; line-height: 1.2; }
.nav-brand b { font-size: 1.02rem; letter-spacing: -.01em; }
.nav-brand em {
  font-style: normal;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sakura-500);
  font-weight: 600;
}

.nav-links { display: flex; gap: .25rem; flex-wrap: wrap; }
.nav-links a {
  position: relative;
  padding: .45rem .7rem;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--sakura-600); background: var(--sakura-50); text-decoration: none; }
.nav-links a.active { color: var(--sakura-600); background: var(--sakura-100); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px; width: 20px;
  margin-inline: auto;
  background: var(--ink-soft);
  border-radius: 2px;
  transition: transform .25s 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); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(4.5rem, 9vw, 7rem);
  background:
    radial-gradient(1100px 520px at 88% -8%, rgba(247, 179, 201, .55), transparent 62%),
    radial-gradient(900px 480px at 8% 4%, rgba(223, 227, 246, .85), transparent 60%),
    linear-gradient(168deg, #fff8fb 0%, #fdf1f6 38%, #f4f2fb 100%);
  overflow: hidden;
}
.hero-petal-glow {
  position: absolute;
  inset: auto -10% -40% -10%;
  height: 60%;
  background: radial-gradient(ellipse at 50% 100%, rgba(239, 139, 171, .22), transparent 70%);
  z-index: -1;
}

.hero-inner {
  width: min(var(--maxw), calc(100% - 3rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-logo img {
  width: 100%;
  border-radius: 50%;
  box-shadow: var(--shadow-lg), 0 0 0 10px rgba(255, 255, 255, .7), 0 0 0 12px var(--sakura-200);
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.kicker {
  margin: 0 0 .75rem;
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sakura-600);
}
.kicker .jp {
  display: inline-block;
  padding: .1rem .45rem;
  margin-right: .3rem;
  background: var(--sakura-600);
  color: #fff;
  border-radius: 5px;
  letter-spacing: .05em;
  text-transform: none;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.7rem, 6.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 700;
  background: linear-gradient(105deg, var(--indigo-900) 0%, var(--indigo-700) 40%, var(--sakura-600) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  margin: .85rem 0 0;
  font-size: clamp(1.05rem, 2.1vw, 1.4rem);
  font-weight: 500;
  color: var(--indigo-700);
  line-height: 1.45;
}

/* The tagline is a 5-7-5 haiku, so it is set on three lines the way the logo
   renders it. Each line is its own span rather than a <br>, so the lines can be
   spaced and staggered as a block. */
.hero-jp {
  display: flex;
  flex-direction: column;
  gap: .22rem;
  margin: 1.25rem 0 0;
  font-size: 1.06rem;
  line-height: 1.55;
  color: var(--sakura-500);
  letter-spacing: .14em;
}
/* A slight indent on each successive line, echoing how the phrase steps down
   the logo's calligraphy. */
.hero-jp span:nth-child(2) { padding-left: .9em; }
.hero-jp span:nth-child(3) { padding-left: 1.8em; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin: 1.9rem 0 0;
}
.meta-chip {
  display: flex;
  flex-direction: column;
  padding: .55rem .95rem;
  background: rgba(255, 255, 255, .85);
  border: 1px solid var(--sakura-200);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.meta-chip .label {
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--sakura-500);
  font-weight: 700;
}
.meta-chip .value { font-size: .93rem; font-weight: 600; color: var(--indigo-800); }

.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

.btn {
  display: inline-block;
  padding: .78rem 1.6rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--sakura-500), var(--sakura-600));
  box-shadow: 0 8px 22px rgba(201, 74, 117, .3);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(201, 74, 117, .38); }
.btn-ghost {
  color: var(--indigo-700);
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--sakura-200);
}
.btn-ghost:hover { background: #fff; }

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.hero-wave svg { width: 100%; height: clamp(50px, 6vw, 90px); display: block; }
.hero-wave path { fill: #fff; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; position: relative; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section-title {
  position: relative;
  margin: 0 0 1.6rem;
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--indigo-900);
  padding-bottom: .7rem;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 68px; height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--sakura-400), var(--sakura-200));
}
.section-title::before {
  content: "❁";
  position: absolute;
  left: 74px; bottom: -.35rem;
  font-size: .95rem;
  color: var(--sakura-300);
}

.section-lead {
  max-width: 74ch;
  color: var(--ink-soft);
  margin: 0 0 2.2rem;
}

.prose { max-width: 78ch; }
/* Justified body copy, with automatic hyphenation so word spacing stays even
   as the measure shrinks on narrower viewports. */
.prose p {
  margin: 0 0 1.15rem;
  color: var(--ink-soft);
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.prose b { color: var(--ink); }

.note-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 1.8rem;
  padding: 1.2rem 1.4rem;
  background: linear-gradient(120deg, var(--sakura-50), #fff);
  border: 1px solid var(--sakura-200);
  border-left: 4px solid var(--sakura-400);
  border-radius: var(--radius-sm);
}
.note-card p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.note-badge {
  flex: none;
  padding: .18rem .6rem;
  background: var(--sakura-500);
  color: #fff;
  border-radius: 6px;
  font-size: .8rem;
  letter-spacing: .06em;
}

/* ---------- Topics ---------- */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.1rem;
}
.topic-card {
  position: relative;
  padding: 1.5rem 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.topic-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sakura-300), var(--lav-200));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.topic-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--sakura-200); }
.topic-card:hover::before { transform: scaleX(1); }
.topic-icon { font-size: 1.5rem; line-height: 1; }
.topic-card h3 { margin: .7rem 0 .45rem; font-size: 1.03rem; color: var(--indigo-800); }
.topic-card p { margin: 0; font-size: .9rem; color: var(--ink-mute); line-height: 1.6; }

/* ---------- Speakers ---------- */
/* One speaker per row, so an odd speaker count never leaves a stranded card. */
.speaker-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.speaker-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.6rem;
  align-items: start;
  padding: 1.7rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.speaker-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.avatar {
  flex: none;
  width: 112px; height: 112px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--sakura-400), var(--indigo-500));
  box-shadow: 0 0 0 4px var(--sakura-100);
  /* Headshots vary in aspect ratio; bias the crop upward so faces stay centred. */
  object-fit: cover;
  object-position: center 25%;
}
.speaker-card h3 { margin: 0; font-size: 1.2rem; color: var(--indigo-900); }
.speaker-card .affil { margin: .2rem 0 0; font-size: .93rem; font-weight: 600; color: var(--sakura-600); }
.speaker-card .role { margin: .1rem 0 0; font-size: .85rem; color: var(--ink-mute); }
/* Full-width rows make for very long measures, so cap the bio at a readable width. */
.speaker-card .bio {
  margin: .9rem 0 0;
  max-width: 82ch;
  font-size: .92rem;
  color: var(--ink-soft);
  line-height: 1.68;
}

/* Long bios are collapsed to a few lines and expanded on demand.
   The collapsible class is added by JS, so the full text stays visible
   when scripting is unavailable. */
.speaker-card .bio.collapsible {
  position: relative;
  overflow: hidden;
  transition: max-height .35s ease;
}
.speaker-card .bio.is-clamped::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3.2em;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 85%);
  pointer-events: none;
}
.bio-toggle {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin: .55rem 0 0;
  padding: 0;
  font: inherit;
  font-size: .86rem;
  font-weight: 600;
  color: var(--sakura-600);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color .18s ease;
}
.bio-toggle:hover { color: var(--indigo-700); }
.bio-toggle:focus-visible { outline: 2px solid var(--indigo-500); outline-offset: 3px; border-radius: 4px; }
.bio-toggle::after {
  content: "▾";
  font-size: .78em;
  line-height: 1;
  transition: transform .22s ease;
}
.bio-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }

@media (prefers-reduced-motion: reduce) {
  .speaker-card .bio.collapsible { transition: none; }
  .bio-toggle::after { transition: none; }
}

/* ---------- Program ---------- */
.program-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.program-list { list-style: none; margin: 0; padding: 0; }
.program-list li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1.2rem;
  align-items: baseline;
  padding: 1.05rem 1.6rem;
  border-bottom: 1px solid var(--line);
  transition: background .2s ease;
}
.program-list li:last-child { border-bottom: 0; }
.program-list li:hover { background: var(--sakura-50); }
.program-list .time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: .93rem;
  color: var(--sakura-600);
  white-space: nowrap;
}
.program-list .item { display: flex; flex-direction: column; }
.program-list .item b { color: var(--indigo-900); font-size: 1rem; }
.program-list .item em {
  font-style: normal;
  font-size: .88rem;
  color: var(--ink-mute);
  margin-top: .1rem;
}
.program-list li.highlight { background: linear-gradient(90deg, var(--sakura-50), transparent 70%); }
.program-list li.highlight:hover { background: linear-gradient(90deg, var(--sakura-100), transparent 70%); }
.program-list li.break .time,
.program-list li.break .item b { color: var(--ink-mute); font-weight: 600; }
.petal-inline { font-size: .85rem; }

.panel-note {
  margin-top: 1.6rem;
  padding: 1.3rem 1.5rem;
  background: linear-gradient(120deg, var(--lav-100), #fff);
  border: 1px solid var(--lav-200);
  border-radius: var(--radius-sm);
}
.panel-note h3 { margin: 0 0 .4rem; font-size: 1.05rem; color: var(--indigo-800); }
.panel-note p { margin: 0; font-size: .94rem; color: var(--ink-soft); }

.venue-box {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  margin-top: 1.2rem;
  padding: 1.15rem 1.4rem;
  background: #fff;
  border: 1px dashed var(--sakura-300);
  border-radius: var(--radius-sm);
  font-size: .94rem;
  color: var(--ink-soft);
}
.venue-icon { font-size: 1.2rem; line-height: 1.4; }

/* ---------- Organizers ---------- */
.org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.2rem;
}
.org-card {
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.org-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--sakura-200); }
.org-avatar {
  width: 92px; height: 92px;
  margin: 0 auto .9rem;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--sakura-100), var(--lav-100));
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--sakura-200);
  object-fit: cover;
  object-position: center 25%;
}
.org-card h3 { margin: 0; font-size: 1.1rem; color: var(--indigo-900); }
.org-card .affil { margin: .25rem 0 .8rem; font-size: .88rem; font-weight: 600; color: var(--sakura-600); }
.org-card .bio { margin: 0 0 1rem; font-size: .87rem; color: var(--ink-mute); line-height: 1.62; text-align: left; }
.org-card .links { margin: auto 0 0; display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; }
.org-card .links a {
  padding: .3rem .8rem;
  font-size: .82rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--sakura-50);
  border: 1px solid var(--sakura-200);
  color: var(--sakura-600);
  transition: background .2s ease, color .2s ease;
}
.org-card .links a:hover { background: var(--sakura-500); color: #fff; text-decoration: none; }

/* Secondary committee roles, set below the organizing committee. */
.subsection-title {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 2.8rem 0 1.4rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--indigo-700);
}
.subsection-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--sakura-200), transparent);
}
/* Two cards would stretch oddly across the full grid width, so cap and centre them. */
.org-grid-chairs {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: 620px;
  margin-inline: auto;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto 1.8rem;
  padding-left: 1.6rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px; top: .6rem; bottom: .6rem;
  width: 2px;
  background: linear-gradient(180deg, var(--sakura-200), var(--lav-200));
}
.tl-item { position: relative; padding: .75rem 0 .75rem 1.2rem; }
.tl-dot {
  position: absolute;
  left: -1.6rem; top: 1.2rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--sakura-300);
}
.tl-item.done .tl-dot { background: var(--sakura-300); }
.tl-item.accent .tl-dot {
  background: var(--sakura-500);
  border-color: var(--sakura-500);
  box-shadow: 0 0 0 5px rgba(226, 100, 142, .18);
}
.tl-body { display: flex; flex-direction: column; }
.tl-body b { color: var(--indigo-900); font-size: 1rem; }
.tl-body span { font-size: .92rem; color: var(--ink-mute); }
.tl-item.accent .tl-body b { color: var(--sakura-600); }

/* ---------- Contact ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: 1.3rem 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--sakura-200);
  text-decoration: none;
}
.c-label {
  font-size: .7rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--sakura-500);
}
.c-name { font-size: 1.08rem; font-weight: 600; color: var(--indigo-900); }
.c-mail { font-size: .9rem; color: var(--sakura-600); word-break: break-all; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 3.2rem 0 2.4rem;
  text-align: center;
  color: var(--lav-200);
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(226, 100, 142, .28), transparent 70%),
    linear-gradient(180deg, var(--indigo-800), var(--indigo-900));
}
.footer-logo {
  width: 74px; height: 74px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(247, 179, 201, .45);
}
.footer-title { margin: 0 0 .35rem; font-size: 1rem; color: #fff; }
.footer-sub { margin: 0; font-size: .9rem; color: rgba(238, 240, 251, .72); }
/* Same haiku, centred in the footer, so no stepped indent here. */
.footer-jp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .18rem;
  margin: 1.25rem 0 0;
  font-size: .95rem;
  line-height: 1.6;
  letter-spacing: .16em;
  color: var(--sakura-300);
}
.footer-copy { margin: 1.4rem 0 0; font-size: .82rem; color: rgba(238, 240, 251, .5); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.22, .8, .3, 1), transform .7s cubic-bezier(.22, .8, .3, 1);
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-logo { max-width: 230px; margin-inline: auto; }
  .hero-meta, .hero-cta { justify-content: center; }
  /* The hero centres here, so drop the stepped indent and centre the haiku. */
  .hero-jp { align-items: center; }
  .hero-jp span:nth-child(2),
  .hero-jp span:nth-child(3) { padding-left: 0; }
  .section-title { text-align: left; }
}

@media (max-width: 780px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: .5rem 1.5rem 1rem;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(31, 35, 56, .08);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .7rem .5rem; border-radius: 8px; }
  .program-list li { grid-template-columns: 1fr; gap: .2rem; }
  .org-card .bio { text-align: center; }
  /* Not enough room for a portrait column — stack the avatar above the text. */
  .speaker-card { grid-template-columns: 1fr; gap: 1rem; }
  .avatar { width: 92px; height: 92px; }
}

@media (max-width: 480px) {
  .wrap, .nav-inner { width: calc(100% - 2rem); }
  /* Too narrow to justify without rivers of white space — go ragged-right. */
  .prose p { text-align: left; -webkit-hyphens: none; hyphens: none; }
  .hero-meta { gap: .5rem; }
  .meta-chip { padding: .45rem .75rem; }
}

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

@media print {
  #sakura-canvas, .site-nav, .hero-wave, .nav-toggle { display: none !important; }
  body { background: #fff; }
  .section, .section-alt { padding: 1rem 0; background: #fff; border: 0; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .site-footer { background: #fff; color: #000; }
  .footer-title, .footer-sub, .footer-jp, .footer-copy { color: #000; }
}
