/* ============================================================
   ForeignResident.com — style.css
   Institutional Prestige | Deep Navy × Charcoal × Champagne Gold
   ============================================================ */

/* ─── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* Palette */
  --navy:          #002366;
  --navy-deep:     #001540;
  --navy-mid:      #003080;
  --charcoal:      #1C1C1E;
  --charcoal-mid:  #2E2E32;
  --charcoal-light:#4A4A50;
  --gold:          #C5B358;
  --gold-light:    #D4C47A;
  --gold-pale:     #E8D98A;
  --white:         #FFFFFF;
  --off-white:     #F4F2ED;
  --mist:          #E8E6E1;
  --stone:         #9A9590;

  /* Typography */
  --font-display:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:     'Jost', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --space-xs:      0.5rem;
  --space-sm:      1rem;
  --space-md:      2rem;
  --space-lg:      4rem;
  --space-xl:      7rem;

  /* Layout */
  --max-width:     1280px;
  --container-px:  clamp(1.5rem, 5vw, 5rem);

  /* Transitions */
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-gold:     cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Borders */
  --border-gold:   1px solid rgba(197, 179, 88, 0.3);
  --border-navy:   1px solid rgba(0, 35, 102, 0.15);
}

/* ─── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  background-color: var(--off-white);
  color: var(--charcoal);
  overflow-x: hidden;
  line-height: 1.7;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ─── UTILITY: CONTAINER ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

/* ─── HEADER ─────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.4rem var(--container-px);
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom,
    rgba(0, 21, 64, 0.85) 0%,
    rgba(0, 21, 64, 0) 100%);
  backdrop-filter: blur(0px);
  transition: background 0.5s var(--ease-gold), backdrop-filter 0.5s;
}

.site-header.scrolled {
  background: rgba(0, 21, 64, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo,
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.logo-mark--sm {
  width: 1.9rem;
  height: 1.9rem;
  font-size: 0.75rem;
}

.logo-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}

.logo-dot {
  color: var(--gold);
}

.nav-badge {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(197, 179, 88, 0.45);
  padding: 0.35rem 0.85rem;
}

/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Background layers */
.hero-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg {
  position: absolute;
  inset: -8%;
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  will-change: transform;
  animation: kenBurns 22s ease-in-out infinite alternate;
}

@keyframes kenBurns {
  from { transform: scale(1.0) translate(0, 0); }
  to   { transform: scale(1.12) translate(-2%, -1%); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 21, 64, 0.82) 0%,
    rgba(0, 35, 102, 0.65) 40%,
    rgba(0, 10, 35, 0.88) 100%
  );
}

.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
  opacity: 0.35;
  pointer-events: none;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 8rem var(--container-px) 6rem;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.8s var(--ease-out) 0.3s forwards;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 2rem;
  max-width: 14ch;
}

.headline-line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
}

.headline-line:nth-child(1) {
  animation: fadeUp 1s var(--ease-out) 0.5s forwards;
}

.headline-line:nth-child(2) {
  animation: fadeUp 1s var(--ease-out) 0.75s forwards;
}

.headline-line--italic {
  font-style: italic;
  color: var(--gold-light);
}

.hero-subheadline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  max-width: 60ch;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s var(--ease-out) 1s forwards;
}

.hero-subheadline strong {
  color: var(--gold-light);
  font-weight: 500;
}

.hero-rule {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 1.2s forwards;
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s var(--ease-out) 1.3s forwards;
}

.stat-item {
  display: flex;
  flex-direction: column;
  padding-right: 2.5rem;
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2.4rem;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.3rem;
}

.stat-divider {
  width: 1px;
  height: 2.5rem;
  background: rgba(197, 179, 88, 0.3);
  margin-right: 2.5rem;
  flex-shrink: 0;
}

/* Scroll cue */
.hero-scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  animation: fadeIn 1s ease 2s forwards;
}

.scroll-text {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.scroll-line {
  display: block;
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, rgba(197, 179, 88, 0.6), transparent);
  animation: scrollPulse 2s ease-in-out 2s infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.6; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.5); transform-origin: top; }
}

/* ─── INTRO SECTION ──────────────────────────────────────────── */
.intro-section {
  background-color: var(--navy-deep);
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.intro-section::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.intro-inner {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.intro-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.5rem;
}

.intro-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 2.5rem;
  border: none;
  padding: 0;
  quotes: none;
}

.intro-body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.9;
}

/* ─── SECTION HEADER ─────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1.2rem;
}

.section-label--light {
  color: rgba(197, 179, 88, 0.8);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  color: var(--navy-deep);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.section-title em {
  font-style: italic;
  color: var(--navy);
}

.section-subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  color: var(--charcoal-light);
  max-width: 55ch;
  margin-inline: auto;
  line-height: 1.8;
}

/* ─── PILLARS SECTION ────────────────────────────────────────── */
.pillars-section {
  background-color: var(--off-white);
  padding: var(--space-xl) 0;
  position: relative;
}

.pillars-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--mist);
}

/* Grid: 3-col with card 4 & 5 centred */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

/* Cards 4 & 5: shift into centre using named grid areas trick */
.pillar-card:nth-child(4) {
  grid-column: 1;
  margin-left: calc(50% + 0.9rem);
}

.pillar-card:nth-child(5) {
  grid-column: 2;
  margin-left: 0;
}

/* Centring the last two cards within a 3-col grid */
.pillars-grid {
  grid-template-areas:
    "c1 c2 c3"
    "c4 c5 .";
}

.pillar-card:nth-child(1) { grid-area: c1; }
.pillar-card:nth-child(2) { grid-area: c2; }
.pillar-card:nth-child(3) { grid-area: c3; }
.pillar-card:nth-child(4) { grid-area: c4; margin-left: 0; }
.pillar-card:nth-child(5) { grid-area: c5; margin-left: 0; }

/* Center last row */
.pillars-grid {
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
}

/* Override so last row centres */
.pillars-grid::after {
  content: '';
  grid-column: 3;
}

/* Better approach: use subgrid or wrapping */
.pillar-card {
  background: var(--white);
  border: 1px solid var(--mist);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
  position: relative;
  width: 100%;
}

.pillar-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 35, 102, 0.12);
}

.pillar-card:hover::after {
  transform: scaleX(1);
}

.card-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.8s var(--ease-out);
}

.pillar-card:hover .card-img {
  transform: scale(1.06);
}

.card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    transparent 40%,
    rgba(0, 21, 64, 0.2) 100%);
}

.card-body {
  padding: 1.8rem 1.8rem 2rem;
  position: relative;
}

.card-number {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.8rem;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--navy-deep);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.card-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--charcoal-light);
  line-height: 1.8;
  margin-bottom: 1.4rem;
}

.card-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  border: 1px solid rgba(0, 35, 102, 0.2);
  padding: 0.3rem 0.8rem;
}

/* ─── AUTHORITY SECTION ──────────────────────────────────────── */
.authority-section {
  background-color: var(--navy-deep);
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.authority-section::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  right: 5%;
  font-family: var(--font-display);
  font-size: 40rem;
  color: rgba(197, 179, 88, 0.025);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.authority-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5rem;
  align-items: center;
}

.authority-text .section-label {
  text-align: left;
}

.authority-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 2rem;
}

.authority-title em {
  font-style: italic;
  color: var(--gold-light);
}

.authority-body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.9;
  max-width: 52ch;
  margin-bottom: 2.5rem;
}

.authority-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.authority-list li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
}

.list-marker {
  color: var(--gold);
  flex-shrink: 0;
  font-size: 1.1rem;
}

/* Emblem */
.authority-emblem {
  position: relative;
  width: 220px;
  height: 220px;
  flex-shrink: 0;
}

.emblem-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(197, 179, 88, 0.25);
  animation: rotateSlow 30s linear infinite;
}

.emblem-ring--outer {
  inset: 0;
  animation-direction: normal;
}

.emblem-ring--inner {
  inset: 20px;
  border-color: rgba(197, 179, 88, 0.15);
  animation-direction: reverse;
  animation-duration: 20s;
}

@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.emblem-core {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.emblem-fr {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 4rem;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
}

.emblem-sub {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ─── LAUNCH SECTION ─────────────────────────────────────────── */
.launch-section {
  background-color: var(--off-white);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--mist);
  position: relative;
  overflow: hidden;
}

.launch-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 5rem;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

.launch-inner {
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
}

.launch-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--navy-deep);
  line-height: 1.1;
  margin-bottom: 1.8rem;
}

.launch-title em {
  font-style: italic;
  color: var(--navy);
}

.launch-body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  color: var(--charcoal-light);
  line-height: 1.85;
  margin-bottom: 3rem;
}

.launch-social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  border: 1px solid rgba(0, 35, 102, 0.25);
  padding: 0.75rem 1.5rem;
  transition: all 0.35s var(--ease-out);
  background: transparent;
}

.social-btn:hover {
  background: var(--navy-deep);
  color: var(--gold-light);
  border-color: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 35, 102, 0.2);
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background-color: var(--navy-deep);
  padding: 5rem 0 0;
  position: relative;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  align-items: start;
}

.footer-brand .footer-logo {
  margin-bottom: 1.2rem;
}

.footer-brand .logo-text {
  font-size: 0.88rem;
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.5rem;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-nav-link {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
  transition: color 0.25s ease;
}

.footer-nav-link:hover {
  color: var(--gold-light);
}

.footer-social-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.footer-social-icons {
  display: flex;
  gap: 0.85rem;
}

.footer-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(197, 179, 88, 0.2);
  color: rgba(255, 255, 255, 0.55);
  transition: all 0.3s var(--ease-out);
}

.footer-icon-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(197, 179, 88, 0.08);
  transform: translateY(-2px);
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.8rem 0;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-legal,
.footer-venture {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.04em;
}

.footer-venture strong {
  font-weight: 500;
  color: rgba(197, 179, 88, 0.6);
}

/* ─── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Reveal on Scroll classes */
.reveal-block {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal-block.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-card {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 0.9s var(--ease-out) var(--card-delay, 0ms),
    transform 0.9s var(--ease-out) var(--card-delay, 0ms);
}

.reveal-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "c1 c2"
      "c3 c4"
      "c5 c5";
  }

  .pillar-card:nth-child(5) {
    max-width: calc(50% - 0.9rem);
    margin-left: 0;
  }

  .authority-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .authority-text .section-label {
    text-align: center;
  }

  .authority-body {
    margin-inline: auto;
  }

  .authority-list li {
    justify-content: center;
  }

  .authority-emblem {
    margin-inline: auto;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 5rem;
    --space-lg: 3rem;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "c1" "c2" "c3" "c4" "c5";
  }

  .pillar-card:nth-child(5) {
    max-width: 100%;
  }

  .hero-stats {
    gap: 0;
    flex-wrap: nowrap;
  }

  .stat-item {
    padding-right: 1.5rem;
  }

  .stat-divider {
    margin-right: 1.5rem;
  }

  .stat-num {
    font-size: 1.8rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .launch-social {
    flex-direction: column;
    align-items: center;
  }

  .br-desktop {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    padding-right: 0;
  }

  .nav-badge {
    font-size: 0.62rem;
    padding: 0.28rem 0.6rem;
  }
}
