:root {
  color-scheme: light;
  --red-950: #450a0a;
  --red-900: #7f1d1d;
  --red-800: #991b1b;
  --red-700: #b91c1c;
  --red-600: #dc2626;
  --gold-500: #facc15;
  --gold-300: #fde68a;
  --green-700: #15803d;
  --teal-700: #0f766e;
  --ink: #1f2937;
  --muted: #667085;
  --paper: #fffaf0;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --line: rgba(127, 29, 29, 0.12);
  --shadow: 0 24px 70px rgba(69, 10, 10, 0.16);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(250, 204, 21, 0.28), transparent 34rem),
    radial-gradient(circle at top right, rgba(220, 38, 38, 0.18), transparent 28rem),
    linear-gradient(180deg, #fff7ed 0%, #fff 44%, #fff7ed 100%);
}

body.has-domain-popup {
  overflow: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(127, 29, 29, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 29, 29, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 70%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 70%);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  width: min(1440px, calc(100% - 12px));
  margin: 0 auto;
  padding-bottom: calc(32px + var(--safe-bottom));
}

.section-pad {
  padding: clamp(58px, 8vw, 108px) 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;
}

.domain-popup[hidden] {
  display: none;
}

.domain-popup {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  padding: max(18px, var(--safe-top)) 18px max(18px, var(--safe-bottom));
  place-items: center;
}

.domain-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(69, 10, 10, 0.52);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.domain-popup-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  padding: clamp(26px, 5vw, 42px);
  background:
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 237, 0.98));
  border: 1px solid rgba(250, 204, 21, 0.28);
  border-radius: var(--radius-xl);
  box-shadow: 0 34px 90px rgba(69, 10, 10, 0.34);
}

.domain-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--red-800);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
}

.domain-popup-panel h2 {
  margin-bottom: 18px;
  color: var(--red-950);
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.domain-popup-panel p {
  color: #475467;
  font-size: 1.05rem;
  line-height: 1.75;
}

.domain-popup-action {
  width: 100%;
  margin-top: 18px;
}

.site-header {
  position: sticky;
  top: max(12px, var(--safe-top));
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding: 12px 14px 12px 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 18px 55px rgba(69, 10, 10, 0.12);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(185, 28, 28, 0.28);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  color: var(--red-800);
  font-size: clamp(1rem, 1.8vw, 1.16rem);
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.header-status {
  width: max-content;
  margin: 12px auto 0;
  padding: 9px 16px;
  color: var(--red-800);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(254, 226, 226, 0.94), rgba(254, 243, 199, 0.9));
  border: 1px solid rgba(185, 28, 28, 0.14);
  border-radius: 999px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  padding: 11px 14px;
  color: #475467;
  font-size: 0.94rem;
  font-weight: 700;
  border-radius: 999px;
  transition: 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--red-800);
  background: rgba(254, 226, 226, 0.86);
  outline: none;
}

.main-nav .nav-cta {
  color: #fff;
  background: linear-gradient(135deg, var(--red-700), var(--red-900));
  box-shadow: 0 10px 28px rgba(185, 28, 28, 0.22);
}

.main-nav .nav-cta:hover,
.main-nav .nav-cta:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, var(--red-600), var(--red-800));
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  background: #fff7ed;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: var(--red-800);
  border-radius: 99px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  gap: clamp(30px, 6vw, 72px);
  align-items: center;
  min-height: calc(100dvh - 92px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--red-700);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  content: "";
  background: currentColor;
  border-radius: 99px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: none;
  margin-bottom: 24px;
  color: var(--red-950);
  font-size: clamp(2.15rem, 4.6vw, 4.15rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
  white-space: nowrap;
}

h1 span {
  display: inline;
  color: transparent;
  background: linear-gradient(135deg, var(--red-700), #f97316 42%, var(--gold-500));
  background-clip: text;
}

.hero-lead {
  max-width: 670px;
  margin-bottom: 30px;
  color: #475467;
  font-size: clamp(1.05rem, 2.2vw, 1.34rem);
  line-height: 1.75;
}

.hero-actions,
.join-actions,
.join {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 20px;
  font-weight: 900;
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--red-700), var(--red-900));
  box-shadow: 0 18px 36px rgba(185, 28, 28, 0.24);
}

.btn-secondary {
  color: var(--red-800);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(185, 28, 28, 0.18);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 680px;
  margin-top: 34px;
}

.hero-stats article,
.awakening-card,
.quote-card,
.mission-grid article,
.pillar-card,
.map-card,
.map-notes article,
.timeline article,
.contact-form,
.join {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.hero-stats article {
  padding: 18px;
  border-radius: var(--radius-md);
}

.hero-stats strong {
  display: block;
  color: var(--red-800);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.awakening {
  padding-top: 0;
}

.awakening-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(18px, 4vw, 36px);
  align-items: stretch;
}

.awakening-card,
.quote-card {
  border-radius: var(--radius-xl);
}

.awakening-card {
  padding: clamp(28px, 5vw, 44px);
  background:
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.24), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 237, 0.88));
}

.awakening-card h2 {
  margin-bottom: 18px;
  color: var(--red-950);
  font-size: clamp(2rem, 4.8vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.awakening-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.reflection-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0 0 24px;
  list-style: none;
}

.reflection-list li {
  position: relative;
  padding: 14px 16px 14px 44px;
  color: #344054;
  font-weight: 800;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(185, 28, 28, 0.1);
  border-radius: 18px;
}

.reflection-list li::before {
  position: absolute;
  top: 14px;
  left: 16px;
  width: 18px;
  height: 18px;
  content: "";
  background: linear-gradient(135deg, var(--red-700), var(--gold-500));
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(250, 204, 21, 0.15);
}

.message-grid {
  display: grid;
  gap: 16px;
}

.quote-card {
  position: relative;
  display: grid;
  min-height: 138px;
  padding: clamp(22px, 4vw, 32px);
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(127, 29, 29, 0.94), rgba(185, 28, 28, 0.86)),
    radial-gradient(circle at right, rgba(250, 204, 21, 0.5), transparent 42%);
  border-color: rgba(250, 204, 21, 0.32);
  place-items: center start;
}

.quote-card::after {
  position: absolute;
  right: 22px;
  bottom: -30px;
  color: rgba(255, 255, 255, 0.16);
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
  content: "”";
}

.quote-card strong {
  position: relative;
  z-index: 1;
  max-width: 680px;
  font-size: clamp(1.08rem, 2.4vw, 1.42rem);
  line-height: 1.42;
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 580px;
  place-items: center;
}

.hero-visual::before {
  position: absolute;
  width: min(88%, 440px);
  aspect-ratio: 1;
  content: "";
  background: radial-gradient(circle, rgba(250, 204, 21, 0.36), transparent 64%);
  border-radius: 50%;
  filter: blur(8px);
}

.flag-card {
  --flag-x: 0;
  --flag-rotate: 4deg;
  position: absolute;
  top: -42px;
  right: 0;
  width: min(96%, 410px);
  transform: translateX(var(--flag-x)) rotate(var(--flag-rotate));
  transform-origin: center;
  animation: floatFlag 5.5s ease-in-out infinite;
}

.native-card {
  position: relative;
  width: min(82vw, 310px);
  min-height: 520px;
  padding: 18px;
  margin-top: 90px;
  background: linear-gradient(160deg, #1f2937, #111827);
  border: 10px solid #0f172a;
  border-radius: 46px;
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.28);
}

.phone-notch {
  display: block;
  width: 108px;
  height: 20px;
  margin: 0 auto 18px;
  background: #020617;
  border-radius: 0 0 16px 16px;
}

.native-screen {
  display: grid;
  min-height: 430px;
  padding: 28px;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(185, 28, 28, 0.86), rgba(250, 204, 21, 0.52)),
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.32), transparent 20%);
  border-radius: 30px;
  place-content: end;
}

.native-screen h2 {
  margin-bottom: 12px;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.native-screen p {
  margin-bottom: 0;
  opacity: 0.86;
}

.pulse-dot {
  position: absolute;
  top: 88px;
  right: 44px;
  width: 16px;
  height: 16px;
  background: var(--gold-500);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.72);
  animation: pulse 1.8s infinite;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading.centered .eyebrow {
  justify-content: center;
}

.section-heading h2,
.join h2 {
  margin-bottom: 16px;
  color: var(--red-950);
  font-size: clamp(2rem, 5vw, 4.15rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.section-heading p,
.join p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.mission-grid,
.pillar-grid,
.timeline {
  display: grid;
  gap: 18px;
}

.mission-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mission-grid article,
.timeline article {
  padding: 26px;
  border-radius: var(--radius-lg);
}

.mission-grid span,
.timeline span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--red-800);
  font-weight: 900;
  background: #fee2e2;
  border-radius: 14px;
}

.mission-grid h3,
.pillar-card h3,
.timeline h3,
.map-notes strong {
  margin-bottom: 12px;
  color: var(--red-950);
  font-size: 1.24rem;
  line-height: 1.25;
}

.mission-grid p,
.pillar-card p,
.timeline p,
.map-notes p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.pillar-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pillar-card {
  position: relative;
  isolation: isolate;
  min-height: 330px;
  padding: 26px;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.pillar-card::after {
  position: absolute;
  right: -54px;
  bottom: -54px;
  z-index: -1;
  width: 170px;
  aspect-ratio: 1;
  content: "";
  background: var(--accent, rgba(185, 28, 28, 0.12));
  border-radius: 50%;
}

.pillar-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  font-size: 2rem;
  background: #fff7ed;
  border: 1px solid rgba(185, 28, 28, 0.12);
  border-radius: 20px;
  place-items: center;
}

.accent-red {
  --accent: rgba(220, 38, 38, 0.18);
}

.accent-gold {
  --accent: rgba(250, 204, 21, 0.28);
}

.accent-blue {
  --accent: rgba(59, 130, 246, 0.18);
}

.accent-teal {
  --accent: rgba(20, 184, 166, 0.2);
}

.accent-green {
  --accent: rgba(34, 197, 94, 0.18);
}

.pillars .section-heading {
  max-width: none;
}

.pillars #pillars-title {
  max-width: none;
  font-size: clamp(1.9rem, 4.2vw, 3.85rem);
  white-space: nowrap;
}

.map-section .section-heading {
  max-width: none;
}

.map-section #map-title {
  max-width: none;
  font-size: clamp(1.95rem, 4.2vw, 3.85rem);
  white-space: nowrap;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1.18fr);
  gap: clamp(20px, 5vw, 48px);
  align-items: center;
}

.map-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: linear-gradient(180deg, rgba(236, 254, 255, 0.88), rgba(255, 255, 255, 0.9));
  border-radius: var(--radius-xl);
}

.image-map-card {
  margin: 0;
}

.vietnam-map-image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
  background: #ecfeff;
  border-radius: var(--radius-xl);
  filter: drop-shadow(0 20px 34px rgba(15, 118, 110, 0.18));
}

.map-notes code {
  padding: 0.12rem 0.34rem;
  color: var(--red-800);
  font-weight: 800;
  background: #fff7ed;
  border-radius: 8px;
}

.central {
  filter: drop-shadow(0 12px 16px rgba(180, 83, 9, 0.16));
}

.south {
  filter: drop-shadow(0 12px 16px rgba(185, 28, 28, 0.16));
}

.delta-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 3;
  stroke-linecap: round;
}

.islands circle {
  fill: var(--gold-500);
  stroke: var(--red-800);
  stroke-width: 1.5;
}

.islands text,
.map-labels text {
  fill: var(--red-900);
  font-size: 15px;
  font-weight: 900;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.map-labels text {
  font-size: 17px;
}

.heritage-points circle {
  fill: #fff;
  stroke: var(--red-800);
  stroke-width: 4;
}

.map-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.map-focus-card {
  grid-column: 1 / -1;
}

.map-notes article {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.map-notes strong {
  display: block;
}

.timeline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline article {
  position: relative;
}

.timeline article:not(:last-child)::after {
  position: absolute;
  top: 47px;
  right: -18px;
  width: 34px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--red-700), var(--gold-500));
}

.join {
  justify-content: space-between;
  gap: 24px;
  padding: clamp(26px, 5vw, 48px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 237, 0.82)),
    radial-gradient(circle at right, rgba(250, 204, 21, 0.34), transparent 36%);
  border-radius: var(--radius-xl);
}

.join > div {
  max-width: 760px;
}

.join-actions {
  justify-content: flex-end;
}

.join h2 {
  font-size: clamp(2rem, 4.8vw, 3.8rem);
}

.contact {
  padding-top: clamp(34px, 6vw, 76px);
}

.contact .section-heading {
  max-width: none;
}

.contact #contact-title {
  max-width: none;
  font-size: clamp(1.9rem, 4.2vw, 3.85rem);
  white-space: nowrap;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(100%, 980px);
  padding: clamp(22px, 4vw, 36px);
  margin: 0 auto;
  border-radius: var(--radius-xl);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--red-950);
  font-weight: 900;
}

.contact-form span {
  font-size: 0.92rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px 16px;
  color: var(--ink);
  font: inherit;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(185, 28, 28, 0.16);
  border-radius: 16px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(185, 28, 28, 0.5);
  box-shadow: 0 0 0 4px rgba(254, 226, 226, 0.88);
}

.contact-message,
.contact-form button {
  grid-column: 1 / -1;
}

.contact-form button {
  justify-self: center;
  min-width: 220px;
  border: 0;
  cursor: pointer;
}

.site-footer {
  display: grid;
  gap: 8px;
  padding: 28px 18px 0;
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin-bottom: 0;
  font-size: 0.92rem;
  line-height: 1.7;
}

.site-footer p:first-child {
  color: var(--red-900);
  font-weight: 900;
}

@keyframes floatFlag {
  0%,
  100% {
    transform: translateX(var(--flag-x)) translateY(0) rotate(var(--flag-rotate));
  }
  50% {
    transform: translateX(var(--flag-x)) translateY(-16px) rotate(calc(var(--flag-rotate) - 3deg));
  }
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 18px rgba(250, 204, 21, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(250, 204, 21, 0);
  }
}

@media (max-width: 980px) {
  .app-shell {
    width: calc(100% - 10px);
  }

  .site-header {
    align-items: center;
    border-radius: 28px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: grid;
    gap: 6px;
    padding: 12px;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(69, 10, 10, 0.16);
    opacity: 0;
    transform: translateY(-8px);
    transition: 180ms ease;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

  .main-nav.is-open {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
  }

  .main-nav a {
    padding: 14px 16px;
  }

  .hero,
  .awakening-layout,
  .map-layout {
    grid-template-columns: 1fr;
  }

  .map-notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: initial;
    padding-top: 58px;
  }

  .hero-visual {
    min-height: 520px;
  }

  .mission-grid,
  .pillar-grid,
  .timeline {
    grid-template-columns: 1fr 1fr;
  }

  .map-section #map-title {
    font-size: clamp(1.58rem, 5.5vw, 2.8rem);
  }

  .pillars #pillars-title {
    font-size: clamp(1.7rem, 5.8vw, 2.8rem);
  }

  .timeline article:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .app-shell {
    width: calc(100% - 8px);
  }

  .site-header {
    padding: 10px;
  }

  .header-status {
    font-size: 0.72rem;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: clamp(1.62rem, 7vw, 2.25rem);
  }

  .hero-actions,
  .join-actions,
  .join {
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .hero-stats,
  .mission-grid,
  .pillar-grid,
  .map-notes,
  .contact-form,
  .timeline {
    grid-template-columns: 1fr;
  }

  .contact-form button {
    justify-self: stretch;
  }

  .map-section #map-title {
    white-space: normal;
  }

  .pillars #pillars-title {
    white-space: normal;
  }

  .contact #contact-title {
    white-space: normal;
  }

  .hero-visual {
    min-height: 440px;
  }

  .flag-card {
    --flag-x: 50%;
    --flag-rotate: 3deg;
    top: -66px;
    right: 50%;
    width: min(100%, 370px);
  }

  .native-card {
    width: min(92vw, 288px);
    min-height: 455px;
    margin-top: 118px;
    border-radius: 40px;
  }

  .native-screen {
    min-height: 360px;
  }

  .map-card {
    margin-inline: -2px;
  }

  .section-pad {
    padding: 52px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
