/* 흥사단 YKA — editorial / awwwards-inspired */
:root {
  --tw-bg-opacity: 1;
  --bg: #f7f4ec;
  --bg-elevated: #fffdf8;
  --text: #13110f;
  --muted: #454038;
  --line: rgba(31, 29, 26, 0.14);
  --accent: rgb(9 125 191 / var(--tw-bg-opacity));
  --accent-soft: rgb(9 125 191 / 0.16);
  --warm: #8b3a2c;
  --radius: 18px;
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.08rem);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 5.5rem;
  text-rendering: optimizeLegibility;
}

body.page-homeland {
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  min-height: var(--header-h);
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease-out);
}

.site-header.is-scrolled {
  background: transparent;
  border-bottom-color: transparent;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  font-size: 1rem;
}

.logo-mark {
  width: 84px;
  height: 84px;
  object-fit: contain;
}

.logo-en {
  font-weight: 300;
  opacity: 0.75;
  margin-left: 0.25rem;
}

.nav {
  position: fixed;
  left: 50%;
  bottom: max(0.9rem, calc(env(safe-area-inset-bottom) + 0.45rem));
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  gap: clamp(0.7rem, 2vw, 1.4rem);
  align-items: center;
  padding: 0.68rem 1.05rem;
  max-width: calc(100vw - 2rem);
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  font-size: 0.88rem;
  font-weight: 500;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  text-decoration: none;
  opacity: 0.95;
  transition: opacity 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav a:hover {
  opacity: 1;
}

.nav-highlight {
  padding: 0.32rem 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgb(9 125 191 / 0.18);
  color: var(--accent);
}

.trailer-link-glow {
  color: var(--accent) !important;
  animation: trailerGlowPulse 2.2s ease-in-out infinite;
}

.trailer-link-glow:hover {
  animation-duration: 1.4s;
}

@keyframes trailerGlowPulse {
  0%,
  100% {
    text-shadow:
      0 0 0 rgba(9, 125, 191, 0),
      0 0 0 rgba(9, 125, 191, 0);
    opacity: 0.9;
  }
  50% {
    text-shadow:
      0 0 8px rgba(9, 125, 191, 0.52),
      0 0 18px rgba(9, 125, 191, 0.34);
    opacity: 1;
  }
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s var(--ease-out);
}

.mobile-drawer {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.25rem 1.5rem;
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.mobile-drawer a {
  text-decoration: none;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

.mobile-drawer[hidden] {
  display: none !important;
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  body {
    padding-bottom: 0;
  }
}

@media (max-width: 480px) {
  .logo {
    gap: 0.4rem;
    font-size: 0.9rem;
  }

  .logo-mark {
    width: 52px;
    height: 52px;
  }

  .site-header {
    padding-inline: 1rem;
  }

  .hero-inner,
  .hero-meta {
    padding-inline: 1rem;
  }

  .section {
    padding-inline: 1rem;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  overflow: hidden;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  width: 100%;
  max-width: none;
}

.hero-compact {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: 5.25rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgb(9 125 191 / 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 30%, rgba(139, 58, 44, 0.12), transparent 50%),
    linear-gradient(165deg, #fff9ea 0%, #f8f3e8 45%, #f4ede0 100%);
}

.hero-bg--warm {
  background:
    radial-gradient(ellipse 70% 55% at 70% 15%, rgb(9 125 191 / 0.24), transparent 55%),
    radial-gradient(ellipse 60% 45% at 10% 40%, rgba(139, 58, 44, 0.14), transparent 50%),
    linear-gradient(170deg, #fffaf0 0%, #f8f1e4 50%, #f3e9d8 100%);
}

.hero-bg--portrait {
  background:
    linear-gradient(94deg, rgba(247, 244, 236, 0.82) 0%, rgba(247, 244, 236, 0.56) 40%, rgba(247, 244, 236, 0.2) 70%, rgba(247, 244, 236, 0.06) 100%),
    radial-gradient(ellipse 70% 55% at 82% 28%, rgb(9 125 191 / 0.12), transparent 58%),
    url("/images/hungsadan-meeting-1916.jpg");
  background-size: auto, auto, cover;
  background-position: center, center, center center;
  background-repeat: no-repeat;
  background-color: #f4ede0;
}

/* Homeland hero: Korea landmark photo + layered light (독립기념관) */
.hero-bg--homeland-flag {
  background:
    radial-gradient(ellipse 95% 75% at 78% 18%, rgb(9 125 191 / 0.22), transparent 52%),
    radial-gradient(ellipse 70% 55% at 10% 85%, rgba(139, 58, 44, 0.14), transparent 50%),
    linear-gradient(
      118deg,
      rgba(255, 253, 248, 0.97) 0%,
      rgba(247, 244, 236, 0.72) 34%,
      rgba(247, 244, 236, 0.22) 62%,
      rgba(12, 14, 20, 0.28) 100%
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, transparent 40%, rgba(6, 8, 14, 0.52) 100%),
    url("/images/independence-hall.jpg");
  background-size: auto, auto, auto, auto, cover;
  background-position: center, center, center, center, center 32%;
  background-repeat: no-repeat;
}

.hero-bg--homeland-flag::after {
  opacity: 0.28;
}

/* Homeland hero: optional full-bleed YouTube (injected when motion is OK) */
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-video-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  min-width: 100%;
  height: 56.25vw;
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: 0;
}

.hero--with-video .hero-bg--homeland-flag {
  background:
    radial-gradient(ellipse 95% 75% at 78% 18%, rgb(9 125 191 / 0.22), transparent 52%),
    radial-gradient(ellipse 70% 55% at 10% 85%, rgba(139, 58, 44, 0.14), transparent 50%),
    linear-gradient(
      118deg,
      rgba(255, 253, 248, 0.97) 0%,
      rgba(247, 244, 236, 0.72) 34%,
      rgba(247, 244, 236, 0.22) 62%,
      rgba(12, 14, 20, 0.28) 100%
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, transparent 40%, rgba(6, 8, 14, 0.52) 100%);
  background-size: auto;
  background-position: center;
  background-repeat: no-repeat;
}

.hero--with-video .hero-bg--homeland-flag::after {
  opacity: 0.34;
}

/* Korea landmark — full-bleed photo hero (통일전망대 / 한반도 상징) */
.hero-bg--korea {
  background:
    linear-gradient(105deg, rgba(12, 14, 18, 0.82) 0%, rgba(12, 14, 18, 0.42) 42%, rgba(12, 14, 18, 0.08) 72%, transparent 100%),
    linear-gradient(180deg, rgba(8, 10, 14, 0.35) 0%, transparent 42%, rgba(8, 10, 14, 0.55) 100%),
    url("/images/visit-06.jpg");
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat;
}

.hero:has(.hero-bg--korea) .hero-kicker {
  color: rgba(255, 252, 245, 0.88);
}

.hero:has(.hero-bg--korea) .hero-title {
  color: #fffdf8;
}

.hero:has(.hero-bg--korea) .hero-title .accent {
  color: rgb(160 214 255);
}

.hero:has(.hero-bg--korea) .hero-lede {
  color: rgba(255, 252, 245, 0.9);
}

.hero:has(.hero-bg--korea) .hero-meta {
  color: rgba(255, 252, 245, 0.78);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      105deg,
      transparent 0%,
      rgba(255, 255, 255, 0.4) 40%,
      transparent 70%
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 80px,
      rgba(31, 29, 26, 0.03) 80px,
      rgba(31, 29, 26, 0.03) 81px
    );
  pointer-events: none;
}

.hero-bg--korea::after {
  opacity: 0.22;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
  width: 100%;
  margin-inline: 0;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  box-sizing: border-box;
}

.hero-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #3f3a31;
  margin: 0 0 1.25rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.35rem, 5.2vw, 4.1rem);
  line-height: 1.05;
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
}

.hero-title .line {
  display: block;
}

.hero-title .accent {
  color: var(--accent);
  font-style: italic;
}

.hero-lede {
  max-width: 52ch;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 2rem;
}

.hero-lede--narrow {
  max-width: 48ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease-out), background 0.25s, border-color 0.25s, color 0.25s;
}

.btn-primary {
  background: var(--accent);
  color: #14110a;
  border-color: var(--accent);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  color: #14110a;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover {
  border-color: rgb(9 125 191 / 0.45);
  color: var(--accent);
}

.hero-meta {
  position: relative;
  z-index: 1;
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  box-sizing: border-box;
}

.hero-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* Sections */
.section {
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 4vw, 3rem);
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 2.85rem);
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.eyebrow.light {
  color: #7a725f;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.split-visual {
  position: relative;
}

.card-float {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}

.card-float blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.45;
  color: #16130f;
}

.card-float cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-style: normal;
  color: #2f2a24;
}

.split-copy p {
  color: #2b2620;
}

.split-copy strong {
  color: var(--text);
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  border-top: 1px solid var(--line);
}

.timeline li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: #27221d;
  font-size: 0.95rem;
}

.timeline .year {
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* Panel */
.panel {
  background: linear-gradient(135deg, #f2ede2 0%, #ece4d5 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.panel-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.section-title.light {
  color: var(--text);
}

.panel-lede {
  max-width: 65ch;
  color: #3e3931;
  font-size: 1.05rem;
}

.pill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (max-width: 800px) {
  .pill-grid {
    grid-template-columns: 1fr;
  }
}

.pill {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}

.pill:hover {
  border-color: rgb(9 125 191 / 0.35);
  transform: translateY(-4px);
}

.pill h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.pill p {
  margin: 0;
  font-size: 0.92rem;
  color: #423d35;
}

/* Columns */
.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 800px) {
  .columns {
    grid-template-columns: 1fr;
  }
}

.columns .col p {
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.88rem;
}

/* CTA band */
.cta-band {
  border-top: 1px solid var(--line);
  background: radial-gradient(ellipse 80% 80% at 50% 100%, var(--accent-soft), transparent 55%);
}

.cta-band--subtle {
  background: rgba(255, 255, 255, 0.5);
}

.cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.cta-inner h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  margin: 0 0 0.75rem;
}

.cta-inner p {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

/* Footer */
.site-footer {
  padding: 3rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 1.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.92rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.copyright {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

/* Reveal animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px) scale(0.985);
  filter: blur(6px);
  transition:
    opacity 1s var(--ease-out),
    transform 1s var(--ease-out),
    filter 1s var(--ease-out);
  will-change: transform, opacity, filter;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 200;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, rgb(9 125 191 / 0.9), rgb(9 125 191 / 0.45));
  box-shadow: 0 0 14px rgb(9 125 191 / 0.45);
  pointer-events: none;
}

.trailer-popup {
  position: fixed;
  inset: 0;
  z-index: 280;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease-out);
}

.trailer-popup.is-open {
  opacity: 1;
  pointer-events: auto;
}

.trailer-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
}

.trailer-popup__dialog {
  position: relative;
  z-index: 1;
  width: min(95vw, 1500px);
  aspect-ratio: 16 / 9;
  margin: max(2vh, 0.8rem) auto 0;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.6);
}

.trailer-popup__frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

.trailer-popup__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  border: 0;
  border-radius: 999px;
  width: 2.1rem;
  height: 2.1rem;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 760px) {
  .trailer-popup__dialog {
    width: 100vw;
    border-radius: 0;
    margin-top: 12vh;
  }
}

/* Homeland page */
.page-homeland .hero-compact {
  padding-top: calc(var(--header-h) + 5.5rem);
  margin-bottom: 0;
}

.page-homeland .hero-title {
  font-size: clamp(2.65rem, 6vw, 4.7rem);
}

.page-homeland .hero-lede {
  font-size: clamp(0.94rem, 1vw, 1.1rem);
}

.program-grid {
  max-width: 1240px;
  margin: 0 auto;
}

.program-head {
  max-width: 72ch;
  margin-bottom: 2.5rem;
}

.cards-stagger {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 800px) {
  .cards-stagger {
    grid-template-columns: 1fr;
  }
}

.prog-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(247, 241, 230, 0.85));
  min-height: 200px;
  position: relative;
  overflow: hidden;
}

.prog-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(circle at 100% 0%, rgb(9 125 191 / 0.12), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
}

.prog-card:hover::before {
  opacity: 1;
}

.prog-index {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}

.prog-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.prog-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.itinerary {
  max-width: 900px;
  margin: 0 auto;
}

.itinerary-head {
  margin-bottom: 2rem;
}

.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline-list time {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.95rem;
}

.timeline-list strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.timeline-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .timeline-list li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

.apply {
  max-width: 1240px;
  margin: 0 auto;
}

.apply-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

@media (max-width: 850px) {
  .apply-card {
    grid-template-columns: 1fr;
  }
}

.apply-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.apply-list li {
  margin-bottom: 0.65rem;
}

.apply-aside {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px dashed rgb(9 125 191 / 0.35);
  background: rgb(9 125 191 / 0.11);
}

.apply-aside p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.apply-aside .btn {
  width: 100%;
}

.detail-card {
  max-width: 1240px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.4rem, 3vw, 2rem);
}

.detail-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1.4rem;
}

.detail-list li {
  color: var(--muted);
  font-size: 0.95rem;
}

.doc-links {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.doc-links-center {
  justify-content: center;
}

.photo-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.photo-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
}

.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.intro-photo {
  max-width: min(380px, 88vw);
  margin: 0 0 1.15rem 0;
}

.intro-photo img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
  background: #f5f1e8;
}

.photo-card p {
  margin: 0;
  padding: 0.75rem 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.photo-card--cinematic {
  position: relative;
  min-height: 100vh;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-card--cinematic::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 95% 75% at 50% 72%, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.35) 52%, transparent 72%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.55) 58%, rgba(0, 0, 0, 0.88) 100%),
    radial-gradient(circle at 75% 22%, rgb(9 125 191 / 0.18), transparent 44%);
  pointer-events: none;
}

.photo-card--cinematic img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  object-fit: cover;
  object-position: center 28%;
  transform: none;
}

.photo-card--cinematic p.cinematic-quote {
  position: relative;
  z-index: 2;
  flex: 0 1 auto;
  margin: 0;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  box-sizing: border-box;
  display: block;
  width: min(42rem, 92vw);
  max-width: 100%;
  text-align: center;
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.3vw, 2rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  word-break: keep-all;
  text-wrap: balance;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.95),
    0 1px 2px rgba(0, 0, 0, 0.9),
    0 10px 40px rgba(0, 0, 0, 0.75);
}

.photo-card--cinematic .quote-char {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 0.55rem, 0) scale(0.985);
  filter: blur(7px);
  will-change: opacity, transform, filter;
  transition:
    opacity 0.78s var(--ease-out),
    transform 0.82s var(--ease-out),
    filter 0.78s var(--ease-out);
  transition-delay: calc(var(--i) * 42ms);
}

.photo-card--cinematic.is-quote-active .quote-char {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

.schedule-22 {
  max-width: 1100px;
  margin: 0 auto;
}

.page-homeland .section-cinematic,
.page-homeland .visit-slider-section {
  padding-inline: 0;
}

/* UA stylesheet often gives `figure` side margins (e.g. 40px) — remove for full-bleed cinematic */
body.page-homeland .section.section-cinematic {
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
  margin-top: 0;
  margin-inline: 0;
}

.page-homeland .section-cinematic figure.photo-card {
  margin: 0;
  width: 100%;
  max-width: none;
}

.page-homeland .section-cinematic .photo-grid,
.page-homeland .visit-slider-section .schedule-22 {
  max-width: none;
  width: 100%;
  margin: 0;
}

.page-homeland .section-cinematic .photo-grid {
  display: block;
}

.page-homeland .visit-slider-section .section-title {
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.visit-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.visit-slider {
  position: relative;
  margin-top: 0.75rem;
  height: 220vh;
}

.visit-slider-sticky {
  position: sticky;
  top: 0;
  overflow: hidden;
}

.visit-track {
  display: flex;
  gap: 0;
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.visit-track .visit-card {
  position: relative;
  flex: 0 0 var(--visit-slide-w, 100%);
  border: 0;
  border-radius: 0;
  background: #0d0d0d;
}

.visit-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
}

.visit-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.visit-track .visit-card img {
  position: relative;
  z-index: 0;
  height: 100vh;
  aspect-ratio: auto;
}

.visit-track .visit-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 82% 68% at 50% 50%,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.42) 48%,
    rgba(0, 0, 0, 0.18) 100%
  );
}

.visit-card figcaption {
  padding: 0.75rem 0.9rem;
  color: #2f2a24;
  font-size: 0.92rem;
}

.visit-track .visit-card figcaption {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 2.2rem);
  line-height: 1.25;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.95),
    0 1px 2px rgba(0, 0, 0, 0.92),
    0 12px 46px rgba(0, 0, 0, 0.78);
  max-width: none;
  box-sizing: border-box;
  pointer-events: none;
}

.quote-stack {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.quote-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  padding: 1.1rem 1.2rem;
}

.quote-box p {
  margin: 0 0 0.7rem;
  color: #2f2a24;
}

.quote-box cite {
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
}

.support-list {
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  padding: 1.2rem 1.3rem;
}

.support-list ul {
  margin: 0;
  padding-left: 1.2rem;
  columns: 2;
  column-gap: 2rem;
}

.support-list li {
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.floating-apply-btn {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 136px;
  padding: 0.78rem 1.05rem;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.floating-apply-btn:hover {
  color: #ffffff;
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.full-copy {
  max-width: 1240px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
}

.full-copy h3 {
  margin: 1.2rem 0 0.55rem;
  font-size: 1.08rem;
}

.full-copy p {
  margin: 0 0 0.85rem;
  color: #2f2a24;
}

.full-copy .block-quote {
  border-left: 3px solid rgb(9 125 191 / 0.45);
  padding-left: 0.9rem;
  margin: 0.8rem 0 1rem;
}

.full-copy .sign {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.1rem;
}

@media (max-width: 900px) {
  .detail-list,
  .photo-grid,
  .quote-stack {
    grid-template-columns: 1fr;
  }

  .schedule-22 ol,
  .support-list ul {
    columns: 1;
  }

  .visit-grid {
    grid-template-columns: 1fr;
  }

  .visit-slider {
    height: auto;
  }

  .visit-slider-sticky {
    position: static;
    overflow: visible;
  }

  .visit-track {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    transform: none !important;
  }

  .visit-track .visit-card {
    flex: initial;
  }

  .page-homeland .section-cinematic,
  .page-homeland .visit-slider-section {
    padding-inline: 0;
  }

  .visit-track .visit-card img,
  .photo-card--cinematic img {
    min-height: 62vh;
    height: 62vh;
  }

  .photo-card--cinematic {
    min-height: 62vh;
  }

  .visit-track .visit-card figcaption {
    font-size: clamp(0.86rem, 3.6vw, 1.08rem);
    line-height: 1.3;
    padding: clamp(0.78rem, 3.2vw, 1.2rem);
  }

  .floating-apply-btn {
    display: inline-flex;
    right: 0.8rem;
    bottom: 0.8rem;
    min-width: 120px;
    padding: 0.62rem 0.85rem;
    font-size: 0.84rem;
  }
}

@media (max-width: 560px) {
  .hero-bg--portrait {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.14) 42%, rgba(255, 255, 255, 0.82) 78%, #ffffff 100%),
      radial-gradient(ellipse 80% 60% at 80% 26%, rgb(9 125 191 / 0.08), transparent 62%),
      url("/images/hungsadan-meeting-1916.jpg");
    background-size: auto, auto, cover;
    background-position: center, center, center center;
    background-color: #ffffff;
  }

  .hero-kicker {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    margin-bottom: 0.9rem;
  }

  .hero-title {
    font-size: clamp(1.9rem, 8.2vw, 2.55rem);
    line-height: 1.08;
    margin-bottom: 1rem;
  }

  .hero-lede {
    font-size: 0.84rem;
    margin-bottom: 1.35rem;
  }

  .hero-meta {
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    margin-top: 2rem;
  }

  .page-homeland .hero-title {
    font-size: clamp(1.75rem, 8.3vw, 2.45rem);
  }

  .page-homeland .hero-title .line:first-child {
    white-space: nowrap;
    font-size: clamp(1.62rem, 7vw, 2.15rem);
    letter-spacing: -0.03em;
  }

  .page-homeland .hero-lede {
    font-size: 0.92rem;
  }

  .page-homeland .hero-bg--homeland-flag {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.14) 35%, rgba(255, 255, 255, 0.95) 78%, #ffffff 100%),
      url("/images/independence-hall.jpg");
    background-size: cover, cover;
    background-position: center, center 30%;
    background-repeat: no-repeat;
  }

  .page-homeland .hero-meta {
    color: #2d281f;
  }

  .page-homeland .hero.hero--with-video .hero-bg--homeland-flag {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.12) 32%, rgba(255, 255, 255, 0.58) 78%, rgba(255, 255, 255, 0.86) 100%),
      radial-gradient(ellipse 90% 70% at 78% 18%, rgb(9 125 191 / 0.16), transparent 56%),
      radial-gradient(ellipse 70% 55% at 10% 85%, rgba(139, 58, 44, 0.1), transparent 52%);
    background-size: auto, auto, auto;
    background-position: center, center, center;
    background-repeat: no-repeat;
  }

  .visit-card figcaption {
    font-size: 0.78rem;
  }

  .full-copy p {
    line-height: 1.75;
  }

  .photo-card--cinematic p.cinematic-quote {
    font-size: clamp(1rem, 5vw, 1.45rem);
    line-height: 1.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .photo-card--cinematic .quote-char {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* Homeland minimal layout: remove card look */
.page-homeland .detail-card,
.page-homeland .photo-card,
.page-homeland .visit-card,
.page-homeland .full-copy,
.page-homeland .support-list,
.page-homeland .quote-box,
.page-homeland .apply-card,
.page-homeland .prog-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-homeland .detail-card,
.page-homeland .full-copy,
.page-homeland .support-list,
.page-homeland .apply-card,
.page-homeland .quote-box {
  padding-left: 0;
  padding-right: 0;
}

.page-homeland .visit-card img,
.page-homeland .photo-card img {
  border-radius: 0;
}

.page-homeland .photo-card p:not(.cinematic-quote) {
  padding-left: 0;
  padding-right: 0;
}
