/* ============================================================
   Japanese Studies in the Changing World - Landing Page
   Palette
   ------------------------------------------------------------
   Royal blue       #0050B0   - hero, primary
   Soft blue        #5080C0   - mid surfaces
   Light cloud blue #C0D0F0   - panels
   Gold / yellow    #FFE060   - accents
   White            #FFFFFF   - text on dark
   ============================================================ */

:root {
  --royal: #0050b0;
  --royal-deep: #003e89;
  --royal-light: #1865c8;
  --soft: #5080c0;
  --cloud: #c0d0f0;
  --cloud-mist: #dee7f8;
  --gold: #ffe060;
  --gold-deep: #f5c842;
  --white: #ffffff;
  --ink: #0e1b3a;
  --muted: #4a5a7a;
  --shadow-soft: 0 10px 30px rgba(0, 60, 140, 0.1);
  --shadow-hover: 0 18px 40px rgba(0, 60, 140, 0.18);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --font-display:
    "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-jp: "Sawarabi Mincho", "Noto Serif JP", serif;

  --maxw: 1180px;
  --pad-x: clamp(1rem, 4vw, 2.5rem);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ===================== HEADER ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(0, 80, 176, 0.1);
  box-shadow: 0 6px 20px rgba(0, 60, 140, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--royal);
  margin-right: auto;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--royal) 0%, var(--royal-light) 100%);
  color: var(--white);
  font-family: var(--font-jp);
  font-size: 22px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0, 80, 176, 0.3);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-line-1 {
  font-size: 14px;
  font-weight: 700;
}
.brand-line-2 {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}

.primary-nav {
  display: flex;
  align-items: center;
}
.nav-list {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-list a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition:
    background 0.2s,
    color 0.2s;
}
.nav-list a:hover,
.nav-list a:focus-visible {
  background: var(--cloud-mist);
  color: var(--royal);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--cloud-mist);
  position: relative;
}
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--royal);
  margin: 4px auto;
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s,
    color 0.2s;
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-mini {
  padding: 8px 18px;
  font-size: 13px;
  background: var(--royal);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(0, 80, 176, 0.3);
}
.btn-mini:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 80, 176, 0.4);
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 12px 26px rgba(255, 224, 96, 0.4);
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(255, 224, 96, 0.55);
  background: var(--gold-deep);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
}
.btn-secondary:hover {
  background: var(--white);
  color: var(--royal);
  border-color: var(--white);
  transform: translateY(-3px);
}
.btn-secondary:hover img.whatsapp-icon {
  /* Recolor WhatsApp PNG icon to royal blue on hover (matches text) */
  filter:
    brightness(0)
    saturate(100%)
    invert(28%)
    sepia(78%)
    saturate(2450%)
    hue-rotate(190deg)
    brightness(95%)
    contrast(101%);
}

.btn-ghost {
  background: transparent;
  color: var(--royal);
  border-color: var(--cloud);
}
.btn-ghost:hover {
  background: var(--cloud-mist);
  border-color: var(--royal);
  transform: translateY(-2px);
}

.btn-large {
  padding: 18px 36px;
  font-size: 17px;
}

.btn svg,
.btn img.whatsapp-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.btn svg.whatsapp-icon {
  fill: currentColor;
  stroke: none;
}

.btn img.whatsapp-icon {
  object-fit: contain;
  transition: filter 0.25s ease;
}

/* Shine animation on primary CTA */
.btn-shine::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    110deg,
    transparent,
    rgba(255, 255, 255, 0.55),
    transparent
  );
  transform: skewX(-20deg);
  animation: shine 3.2s infinite;
  pointer-events: none;
}
@keyframes shine {
  0% {
    left: -100%;
  }
  60% {
    left: 130%;
  }
  100% {
    left: 130%;
  }
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  background:
    radial-gradient(
      1200px 600px at 80% -10%,
      var(--royal-light) 0%,
      transparent 60%
    ),
    radial-gradient(
      900px 500px at -10% 110%,
      var(--royal-deep) 0%,
      transparent 60%
    ),
    linear-gradient(180deg, var(--royal) 0%, var(--royal-deep) 100%);
  color: var(--white);
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 8vw, 6rem);
  isolation: isolate;
}

.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  filter: blur(2px);
}
.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}
.cloud-1 {
  width: 160px;
  height: 50px;
  top: 8%;
  left: 6%;
  animation: float 12s ease-in-out infinite;
}
.cloud-1::before {
  width: 80px;
  height: 70px;
  top: -28px;
  left: 30px;
}
.cloud-1::after {
  width: 60px;
  height: 50px;
  top: -12px;
  left: 100px;
}

.cloud-2 {
  width: 220px;
  height: 60px;
  top: 22%;
  right: 8%;
  animation: float 14s ease-in-out infinite reverse;
}
.cloud-2::before {
  width: 90px;
  height: 80px;
  top: -36px;
  left: 50px;
}
.cloud-2::after {
  width: 60px;
  height: 50px;
  top: -16px;
  left: 140px;
}

.cloud-3 {
  width: 130px;
  height: 40px;
  top: 56%;
  left: 14%;
  animation: float 16s ease-in-out infinite;
}
.cloud-3::before {
  width: 70px;
  height: 60px;
  top: -22px;
  left: 24px;
}
.cloud-3::after {
  width: 50px;
  height: 40px;
  top: -8px;
  left: 80px;
}

.cloud-4 {
  width: 180px;
  height: 50px;
  top: 70%;
  right: 18%;
  animation: float 18s ease-in-out infinite reverse;
}
.cloud-4::before {
  width: 80px;
  height: 70px;
  top: -28px;
  left: 40px;
}
.cloud-4::after {
  width: 60px;
  height: 50px;
  top: -14px;
  left: 120px;
}

.sparkle {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--gold);
  border-radius: 4px;
  transform: rotate(45deg);
  opacity: 0.7;
  box-shadow: 0 0 16px rgba(255, 224, 96, 0.6);
  animation: twinkle 4s ease-in-out infinite;
}
.sparkle-1 {
  top: 14%;
  left: 42%;
  animation-delay: 0.3s;
}
.sparkle-2 {
  top: 48%;
  right: 32%;
  animation-delay: 1.2s;
  width: 10px;
  height: 10px;
}
.sparkle-3 {
  top: 32%;
  left: 22%;
  animation-delay: 2.1s;
  width: 8px;
  height: 8px;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-18px) translateX(12px);
  }
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.3;
    transform: rotate(45deg) scale(0.9);
  }
  50% {
    opacity: 0.95;
    transform: rotate(45deg) scale(1.15);
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  /* Lift entire hero content stack upward (relative to its own position) */
  margin-top: -1.5rem;
  margin-bottom: 2.5rem;
}

/* Logo pill - like reference */
.logo-pill {
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 9px 20px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 6px;
  transform: translateY(-1.2rem);
}
.logo-pill img {
  height: 44px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.event-context {
  margin: 0;
  font-size: clamp(0.85rem, 1.3vw, 0.95rem);
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.01em;
  transform: translateY(-0.65rem);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  /* Inline on desktop, allow wrap on small screens */
  white-space: normal;
}
.event-context strong {
  color: var(--gold);
  font-weight: 700;
}
.event-context sup {
  font-size: 0.65em;
  font-weight: 700;
  margin-left: 1px;
  top: -0.5em;
}

.event-label {
  display: inline-block;
  background: var(--gold);
  color: var(--royal-deep);
  font-weight: 700;
  padding: 7px 22px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(255, 224, 96, 0.35);
  transform: translateY(-0.65rem);
}

.hero-title {
  margin: 0.1rem 0 -0.1rem;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  transform: translateY(-0.65rem);
}
.hero-title-em {
  display: inline-block;
  background: linear-gradient(180deg, var(--gold) 0%, #ffd230 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.08em;
}

.hero-sub {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.6;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 0.85rem;
  margin: 0.5rem auto 0;
  text-align: left;
  max-width: 900px;
}
.meta-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
}
.meta-item + .meta-item {
  border-top: none;
  padding-top: 14px;
}
.meta-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--royal-deep);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.meta-icon svg {
  width: 22px;
  height: 22px;
}
.meta-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.65);
}
.meta-value {
  display: block;
  font-weight: 600;
  font-size: 14px;
}

/* Date card with 2 sessions (offline + online) */
.meta-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}
.meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.meta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}
.meta-pill--offline {
  background: var(--royal-deep);
  color: var(--gold);
}
.meta-pill--online {
  background: var(--gold);
  color: var(--royal-deep);
}
.meta-date-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
}
.meta-venue-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.02em;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 0.6rem;
}

/* Subtle hero backdrop - kampus illustration as ambient decoration */
.hero-backdrop {
  position: absolute;
  left: 50%;
  bottom: -30px;
  transform: translateX(-50%);
  width: min(150%, 1800px);
  pointer-events: none;
  opacity: 0.32;
  mix-blend-mode: soft-light;
  filter: saturate(1.1) brightness(1.15);
  z-index: 0;
  animation: backdropFloat 11s ease-in-out infinite;
}
.hero-backdrop img {
  width: 100%;
  height: auto;
  display: block;
  -webkit-mask-image: linear-gradient(to top, #000 70%, transparent 100%);
  mask-image: linear-gradient(to top, #000 70%, transparent 100%);
}
@keyframes backdropFloat {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-8px);
  }
}

/* ===================== SECTIONS - common ===================== */
.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  /* Compensate for sticky header height (≈ 70px) when scroll-jumping via #anchor */
  scroll-margin-top: 80px;
}
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.5rem;
}
.section-tag {
  display: inline-block;
  background: var(--royal);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.section-tag.tag-light {
  background: var(--gold);
  color: var(--royal-deep);
}
.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--royal-deep);
}
.section-lead {
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.7;
}

/* ===================== ABOUT ===================== */
.section-about {
  background: var(--white);
}
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.highlight {
  background: var(--white);
  border: 1px solid var(--cloud);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    border-color 0.3s;
}
.highlight:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--soft);
}
.highlight-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--cloud-mist);
  color: var(--royal);
  margin-bottom: 16px;
  transition:
    background 0.3s,
    color 0.3s;
}
.highlight:hover .highlight-icon {
  background: var(--royal);
  color: var(--white);
}
.highlight-icon svg {
  width: 28px;
  height: 28px;
}
.highlight h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: var(--royal-deep);
  font-weight: 700;
}
.highlight p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===================== DETAILS ===================== */
.section-details {
  background: linear-gradient(180deg, var(--cloud-mist) 0%, var(--white) 100%);
}
.section-details .section-title {
  color: var(--royal-deep);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.panel {
  background: var(--cloud);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.panel-wide {
  grid-column: 1 / -1;
}

.panel-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--royal-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.panel-strong {
  margin: 0 0 4px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--royal-deep);
}
.panel-strong-icon {
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel-heading-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--royal-deep);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(0, 80, 176, 0.18);
}
.panel-heading-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.panel-line {
  margin: 0 0 4px;
  color: var(--royal-deep);
  font-size: 0.98rem;
}
.panel-line.muted {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 8px;
}

.panel-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.panel-list li {
  display: flex;
  align-items: center;
  gap: 14px;
}
.bullet {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--royal);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 6px 14px rgba(0, 80, 176, 0.25);
}
.panel-list strong {
  display: block;
  color: var(--royal-deep);
  font-size: 1rem;
}
.panel-list small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 2px;
}

.date-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.date-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  flex-wrap: wrap;
  gap: 8px;
}
.date-label {
  font-weight: 600;
  color: var(--royal-deep);
  font-size: 0.95rem;
}
.date-range {
  font-size: 0.88rem;
  color: var(--muted);
  background: var(--cloud-mist);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-weight: 500;
}

/* ===================== SPEAKERS ===================== */
.section-speakers {
  background: var(--white);
}
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  max-width: 900px;
  margin: 0 auto;
}
.speaker-card {
  background: var(--white);
  border: 1px solid var(--cloud);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    border-color 0.3s;
}
.speaker-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--soft);
}
.speaker-avatar {
  width: 112px;
  height: 112px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--royal) 0%, var(--royal-light) 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(0, 80, 176, 0.3);
  position: relative;
  overflow: visible;
}
.speaker-avatar::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 3px solid var(--gold);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s;
}
.speaker-card:hover .speaker-avatar::after {
  opacity: 1;
}
.speaker-kanji {
  font-family: var(--font-jp);
  font-size: 40px;
  color: var(--white);
}
.speaker-avatar--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}
/* Japan speakers awaiting a portrait - skeleton placeholder */
.speaker-avatar--pending {
  background: linear-gradient(
    135deg,
    var(--cloud-mist) 0%,
    var(--cloud) 100%
  );
  box-shadow: 0 10px 24px rgba(0, 60, 140, 0.15);
}
.speaker-portrait-icon {
  width: 52px;
  height: 52px;
  color: var(--soft);
  opacity: 0.85;
}
/* Country flag badge - top-right corner of the photo */
.speaker-flag {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--white);
  background: var(--white);
  box-shadow: 0 2px 7px rgba(0, 30, 80, 0.3);
  z-index: 2;
}
.speaker-flag svg {
  width: 100%;
  height: 100%;
  display: block;
}
/* Convex glass gloss - static highlight */
.speaker-flag::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0.15) 32%,
    rgba(255, 255, 255, 0) 52%
  );
  pointer-events: none;
  z-index: 4;
}
/* Shining sweep - animated glass reflection */
.speaker-flag::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -75%;
  width: 55%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(22deg);
  z-index: 3;
  pointer-events: none;
  animation: flagShine 4.2s ease-in-out infinite;
}
.speaker-card:nth-child(2) .speaker-flag::before {
  animation-delay: 0.7s;
}
.speaker-card:nth-child(3) .speaker-flag::before {
  animation-delay: 1.4s;
}
.speaker-card:nth-child(4) .speaker-flag::before {
  animation-delay: 2.1s;
}
.speaker-card:nth-child(5) .speaker-flag::before {
  animation-delay: 2.8s;
}
.speaker-card:nth-child(6) .speaker-flag::before {
  animation-delay: 3.5s;
}
@keyframes flagShine {
  0% {
    left: -75%;
  }
  55%,
  100% {
    left: 135%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .speaker-flag::before {
    animation: none;
  }
}
.speaker-photo-soon {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  background: var(--cloud-mist);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.speaker-card h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: var(--royal-deep);
  font-weight: 600;
}
.speaker-role {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-style: italic;
}

/* ===================== REGISTER ===================== */
.section-register {
  background: linear-gradient(180deg, var(--white) 0%, var(--cloud-mist) 100%);
}
.register-card {
  background: var(--royal);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.5rem);
  color: var(--white);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 80, 176, 0.25);
}
.register-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(
    circle,
    rgba(255, 224, 96, 0.25) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.register-card::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.18) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.register-text {
  position: relative;
  z-index: 1;
}
.register-text .section-tag {
  background: var(--gold);
  color: var(--royal-deep);
}
.register-text .section-title {
  color: var(--white);
}
.register-text .section-lead {
  color: rgba(255, 255, 255, 0.82);
}

.register-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.5rem;
}
.register-card .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.register-card .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.fee-card {
  background: var(--gold);
  color: var(--royal-deep);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
  z-index: 1;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}
.fee-tag {
  display: inline-block;
  background: var(--royal-deep);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.fee-headline {
  margin: 0 0 14px;
  font-size: 1.5rem;
  font-weight: 700;
}
.fee-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.fee-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 500;
}
.fee-pill {
  background: var(--royal-deep);
  color: var(--white);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.fee-note {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(0, 62, 137, 0.78);
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--royal-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 1.8rem;
  margin-top: 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr auto auto;
  gap: 1.5rem 2rem;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--gold);
  color: var(--royal-deep);
  font-family: var(--font-jp);
  font-size: 26px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.footer-title {
  margin: 0;
  font-weight: 700;
  color: var(--white);
  font-size: 1rem;
}
.footer-sub {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}
.footer-address {
  margin-top: 14px;
}
.footer-address-label {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-address-text {
  margin: 0;
  font-style: normal;
  font-size: 0.8rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
}

.footer-logos {
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 9px 20px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  max-width: 100%;
  flex-wrap: wrap;
}
.footer-logos img {
  height: 36px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.footer-cta {
  display: flex;
  justify-content: flex-end;
}
.footer-copy {
  grid-column: 1 / -1;
  margin: 1.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

/* ===================== REVEAL ANIMATION ===================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.2, 0.65, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 880px) {
  .details-grid {
    grid-template-columns: 1fr;
  }
  .date-list {
    grid-template-columns: 1fr;
  }
  .register-card {
    grid-template-columns: 1fr;
  }
  .fee-card {
    order: -1;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  .footer-logos {
    justify-content: center;
    justify-self: center;
    margin-inline: auto;
  }
  .footer-cta {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }
  /* Hamburger sits to the right of the language toggle */
  .lang-toggle {
    order: 1;
  }
  .primary-nav {
    order: 2;
  }
  /* Push hero content lower on phones */
  .hero {
    padding-top: 4.5rem;
  }
  .nav-list {
    position: absolute;
    top: calc(100% + 6px);
    right: var(--pad-x);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    min-width: 180px;
    /* Animated slide-down instead of display toggle */
    display: flex;
    max-height: 0;
    opacity: 0;
    transform: translateY(-12px);
    overflow: hidden;
    pointer-events: none;
    transition:
      max-height 0.38s ease,
      opacity 0.28s ease,
      transform 0.38s cubic-bezier(0.2, 0.8, 0.25, 1);
  }
  .nav-list.is-open {
    max-height: 360px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-list a {
    padding: 12px 16px;
  }

  .brand-text {
    display: none;
  }
  .header-inner {
    gap: 0.6rem;
  }

  .logo-pill {
    gap: 12px;
    padding: 8px 14px;
  }
  .logo-pill img {
    height: 34px;
  }

  .hero-meta {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }
  .hero-cta .btn {
    width: 100%;
  }

  .register-actions {
    flex-direction: column;
  }
  .register-actions .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .logo-pill {
    border-radius: 22px;
  }
  .logo-pill img {
    height: 28px;
  }
  .hero-title {
    font-size: 2rem;
  }
  .footer-logos {
    gap: 12px;
    padding: 8px 14px;
  }
  .footer-logos img {
    height: 26px;
  }
}

/* ===================== REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .cloud,
  .sparkle,
  .hero-backdrop,
  .btn-shine::after {
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Focus visibility */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ===================== SPEAKER LIGHTBOX ===================== */
.speaker-card--clickable {
  cursor: pointer;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.2rem, 4vw, 3rem);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 40, 0.78);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.lightbox-figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(560px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.25, 1);
}
.lightbox.is-open .lightbox-figure {
  transform: none;
}
.lightbox-img {
  max-width: 100%;
  max-height: 72vh;
  border-radius: var(--radius-md);
  background: var(--white);
  object-fit: contain;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}
.lightbox-caption {
  text-align: center;
  color: var(--white);
  max-width: 480px;
}
.lightbox-caption h3 {
  margin: 0 0 5px;
  font-size: 1.2rem;
  font-weight: 700;
}
.lightbox-caption p {
  margin: 0;
  font-size: 0.92rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
}
.lightbox-close {
  position: absolute;
  top: clamp(12px, 3vw, 26px);
  right: clamp(12px, 3vw, 26px);
  z-index: 2;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: var(--white);
  color: var(--royal-deep);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.2s,
    background 0.2s;
}
.lightbox-close:hover {
  transform: scale(1.08);
  background: var(--gold);
}
.lightbox-close svg {
  width: 20px;
  height: 20px;
}
body.lightbox-open {
  overflow: hidden;
}

/* ===================== LANGUAGE TOGGLE (EN / ID) ===================== */
.lang-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: var(--cloud-mist);
  border-radius: var(--radius-pill);
  padding: 3px;
  flex-shrink: 0;
}
.lang-toggle::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  background: var(--royal);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 10px rgba(0, 80, 176, 0.35);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.lang-toggle[data-active="id"]::before {
  transform: translateX(100%);
}
.lang-opt {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--muted);
  transition: color 0.32s;
}
.lang-opt[aria-pressed="true"] {
  color: var(--white);
}
.lang-flag {
  width: 18px;
  height: 14px;
  border-radius: 3px;
  overflow: hidden;
  display: block;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}
.lang-flag svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ===================== LANGUAGE SWITCH ANIMATION ===================== */
/* One shared motion for every translatable element (and the WhatsApp
   buttons): fade out, slide up, blur + slight shrink, then settle back. */
[data-i18n] {
  transition:
    opacity 0.28s ease,
    transform 0.28s cubic-bezier(0.22, 0.8, 0.3, 1),
    filter 0.28s ease;
}
/* WhatsApp buttons get the same switch motion, plus their hover transitions. */
.btn[data-cta-whatsapp] {
  transition:
    opacity 0.28s ease,
    transform 0.28s cubic-bezier(0.22, 0.8, 0.3, 1),
    filter 0.28s ease,
    box-shadow 0.2s,
    background 0.2s,
    color 0.2s;
}
body.lang-anim [data-i18n],
body.lang-anim .btn[data-cta-whatsapp] {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  filter: blur(5px);
}

@media (max-width: 420px) {
  .lang-opt span:not(.lang-flag) {
    display: none;
  }
  .lang-opt {
    padding: 6px 9px;
  }
}
