:root {
  /*
   * Chinar (Boouin) — deep greens + fiery orange / brown (see images/chinar-scatter.svg).
   */
  --color-green-deep: #0f2419;
  --color-green-rich: #1a3d2e;
  --color-green: #2d6a4f;
  --color-green-bright: #3d916e;
  --color-green-mist: #e5efe8;
  /* Chinar autumn: orange, peach highlight, brown vein */
  --color-gold: #d65a28;
  --color-gold-light: #f0a05a;
  --color-gold-dark: #5c3018;
  --color-gold-soft: rgba(214, 90, 40, 0.12);
  --color-gold-glow: rgba(240, 160, 90, 0.38);
  /* Bottle glass green — header / dark accents */
  --color-bottle: #0d3b30;
  --color-bottle-deep: #071f1a;
  --color-bottle-highlight: #1a5245;
  --color-on-bottle: #e8f2eb;
  --color-on-bottle-muted: rgba(232, 242, 235, 0.78);

  --color-bg: #faf6ef;
  --color-surface: #fffbf6;
  --color-ink: #2a1810;
  --color-ink-muted: #5c5349;
  --color-accent: var(--color-green);
  --color-accent-hover: #245a44;
  --shadow-soft: 0 18px 50px rgba(42, 24, 16, 0.06);
  --shadow-green: 0 12px 36px rgba(26, 61, 48, 0.1);

  /* Few scattered Chinar leaves — images/chinar-scatter.svg */
  --bg-chinar-scatter: url("images/chinar-scatter.svg");
  --radius: 14px;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
  --header-h: 72px;
  --partner-strip-h: 72px;
  /* Dal Lake — local hero asset (images/hero-lake.jpg) */
  --hero-image: url("images/hero-lake.jpg");
}

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

/* Enforce hidden attribute — author-level display rules can override the UA stylesheet */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  --header-sticky-top: var(--partner-strip-h);
  padding-top: var(--partner-strip-h);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-ink);
  background-color: var(--color-bg);
  background-image: radial-gradient(
    ellipse 120% 80% at 50% -20%,
    rgba(255, 252, 248, 0.94) 0%,
    transparent 55%
  );
  background-attachment: fixed;
  position: relative;
  transition: padding-top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body.partner-strip-collapsed {
  padding-top: 0;
  --header-sticky-top: 0;
}

/* Scattered Chinar — visible in sections where main is transparent; hero leaves are on .hero-bg::before */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--bg-chinar-scatter);
  background-size: cover;
  background-position: 52% 45%;
  background-repeat: no-repeat;
  opacity: 0.28;
  mix-blend-mode: multiply;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  body {
    background-attachment: scroll;
  }
}

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

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.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: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.container.narrow {
  width: min(760px, calc(100% - 40px));
}

/* Partner strip — above main header; slides up out of view on scroll */
.partner-strip {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 60;
  height: var(--partner-strip-h);
  display: flex;
  align-items: center;
  background: rgba(255, 251, 246, 0.97);
  border-bottom: 1px solid rgba(26, 61, 48, 0.12);
  box-shadow: 0 1px 0 rgba(214, 90, 40, 0.12);
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.partner-strip.is-away {
  transform: translateY(-100%);
}

.partner-strip-inner {
  width: min(1120px, calc(100% - 28px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem 1rem;
  min-height: 100%;
  padding: 0 2px;
}

.partner-strip-lockup {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  line-height: 1.08;
  flex-shrink: 0;
}

.partner-strip-lockup:hover {
  color: inherit;
}

.partner-strip-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  color: var(--color-bottle);
}

.partner-strip-sub {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
}

.partner-strip-logos {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem 0.85rem;
  flex-wrap: wrap;
}

.partner-strip-divider {
  flex-shrink: 0;
  width: 1px;
  height: 2.35rem;
  background: rgba(26, 61, 48, 0.18);
}

.partner-strip-img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 185px;
  object-fit: contain;
}

.partner-strip-img--gmc {
  height: 52px;
  max-width: 200px;
}

@media (max-width: 640px) {
  :root {
    --partner-strip-h: 58px;
  }

  .partner-strip-mark {
    font-size: 0.92rem;
    letter-spacing: 0.1em;
  }

  .partner-strip-sub {
    font-size: 0.58rem;
    letter-spacing: 0.14em;
  }

  .partner-strip-img {
    height: 36px;
    max-width: 135px;
  }

  .partner-strip-img--gmc {
    height: 40px;
    max-width: 145px;
  }

  .partner-strip-divider {
    height: 1.85rem;
  }

  .partner-strip-logos {
    gap: 0.45rem 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .partner-strip,
  body,
  .site-header {
    transition: none;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: var(--header-sticky-top);
  z-index: 50;
  transition: top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--color-on-bottle);
  background: rgba(13, 59, 48, 0.97);
  background: color-mix(in srgb, var(--color-bottle) 94%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 252, 248, 0.12);
  box-shadow: 0 2px 20px rgba(7, 31, 26, 0.45);
}

.header-inner {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  line-height: 1.1;
}

.brand:hover {
  color: inherit;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  color: #fafcf8;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-light);
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Hero section logo — blends into warm sunset background */
.hero-logo {
  display: block;
  width: clamp(180px, 28vw, 280px);
  height: auto;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.hero-admaiora {
  font-family: 'Halimun', 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--color-gold-light);
  margin: 0 0 0.5rem;
  letter-spacing: 0.06em;
}

.hero-host {
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.5;
  margin: 0 0 0.3rem;
}

.hero-collab {
  font-size: 0.82rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 0.5rem;
  letter-spacing: 0.04em;
}

.hero-meta--center {
  text-align: center;
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  flex-wrap: wrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.25rem;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-gold-light);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.1rem;
  transition: border-color 0.15s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--color-gold-light);
}

/* Header — delegate portal sign in (distinct from page anchor links) */
.site-nav a.btn-signin {
  margin-left: 0.35rem;
  padding: 0.5rem 1.15rem;
  font-size: 0.88rem;
  color: var(--color-bottle-deep);
  border: 2px solid rgba(255, 200, 140, 0.65);
  background: linear-gradient(
    145deg,
    #ffcf8a 0%,
    var(--color-gold-light) 35%,
    var(--color-gold) 100%
  );
  box-shadow: 0 2px 16px rgba(214, 90, 40, 0.28);
}

.site-nav a.btn-signin:hover {
  color: var(--color-bottle-deep);
  border-color: #ffbf7a;
  background: linear-gradient(
    145deg,
    #ffe2b8 0%,
    #ffcf8a 40%,
    var(--color-gold-light) 100%
  );
}

.btn-signin {
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (max-width: 880px) {
  .site-nav a.site-nav-signin {
    margin-top: 0.35rem;
    margin-left: 0;
    text-align: center;
    justify-content: center;
  }
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 252, 248, 0.22);
  border-radius: 10px;
  background: rgba(255, 252, 248, 0.08)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23fafcf8' stroke-width='2'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E")
    center/22px no-repeat;
  cursor: pointer;
}

@media (max-width: 880px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    background: var(--color-bottle-deep);
    border-bottom: 1px solid rgba(255, 252, 248, 0.1);
    box-shadow: 0 16px 40px rgba(5, 20, 17, 0.5);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 252, 248, 0.08);
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 800px);
  display: grid;
  align-items: center;
  padding: 3rem 0 4rem;
  overflow: visible;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100% - 40px));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

@media (min-width: 960px) {
  .hero-inner {
    align-items: center;
  }
}

/* Stacked “polaroid” Kashmir insets — hover spreads into a compact 2×2 inside the hero only */
.hero-insets-root {
  display: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  margin-inline: auto;
}

.hero-insets {
  position: relative;
  margin-inline: auto;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 3.5 / 4.35;
  min-height: 288px;
}

.hero-inset {
  position: absolute;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 22px 48px rgba(8, 20, 35, 0.45),
    0 0 0 1px rgba(255, 252, 248, 0.25) inset;
  border: 3px solid rgba(255, 250, 245, 0.94);
  background: rgba(255, 255, 255, 0.08);
}

.hero-inset img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-inset-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.45rem 0.4rem 0.55rem;
  font-family: var(--font-body);
  font-size: clamp(0.58rem, 1.55vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: none;
  text-align: center;
  line-height: 1.25;
  color: #f7fbfa;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(12, 36, 28, 0.94) 0%,
    rgba(12, 36, 28, 0.22) 70%,
    transparent 100%
  );
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.hero-inset--1 {
  width: 78%;
  height: 52%;
  top: 2%;
  right: 0;
  z-index: 4;
  transform: rotate(-5.5deg);
}

.hero-inset--2 {
  width: 72%;
  height: 48%;
  bottom: 8%;
  left: 0;
  z-index: 3;
  transform: rotate(4.5deg);
}

.hero-inset--3 {
  width: 62%;
  height: 42%;
  top: 30%;
  left: 12%;
  z-index: 2;
  transform: rotate(-2deg);
}

.hero-inset--4 {
  width: 58%;
  height: 38%;
  bottom: 18%;
  right: 6%;
  z-index: 2;
  transform: rotate(6deg);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-insets {
    transition: max-width 0.38s ease, min-height 0.38s ease;
  }

  .hero-inset {
    transition:
      transform 0.38s ease,
      box-shadow 0.35s ease,
      width 0.38s ease,
      height 0.38s ease,
      top 0.38s ease,
      left 0.38s ease,
      right 0.38s ease,
      bottom 0.38s ease;
  }
}

@media (max-width: 959px) {
  .hero-insets {
    max-width: none;
    width: 100%;
    aspect-ratio: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    padding: 0 0.25rem;
  }

  .hero-inset {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 118px;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    border-width: 2px;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    transform: rotate(-0.8deg);
  }

  .hero-inset--2 {
    transform: rotate(0.8deg);
  }

  .hero-inset--3 {
    transform: rotate(-0.5deg);
  }

  .hero-inset--4 {
    transform: rotate(0.5deg);
  }
}

/* Desktop + fine pointer: compact 2×2 spread inside collage area (hover only; no overlay) */
@media (min-width: 960px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hero-insets:hover {
    max-width: min(340px, 100%);
    min-height: 300px;
    z-index: 2;
  }

  .hero-insets:hover .hero-inset--1 {
    width: 48%;
    height: 44%;
    top: 2%;
    left: 2%;
    right: auto;
    bottom: auto;
    transform: rotate(-2.5deg);
    z-index: 4;
  }

  .hero-insets:hover .hero-inset--2 {
    width: 48%;
    height: 44%;
    top: 2%;
    right: 2%;
    left: auto;
    bottom: auto;
    transform: rotate(2deg);
    z-index: 3;
  }

  .hero-insets:hover .hero-inset--3 {
    width: 48%;
    height: 44%;
    bottom: 2%;
    left: 2%;
    top: auto;
    right: auto;
    transform: rotate(1.5deg);
    z-index: 2;
  }

  .hero-insets:hover .hero-inset--4 {
    width: 48%;
    height: 44%;
    bottom: 2%;
    right: 2%;
    top: auto;
    left: auto;
    transform: rotate(-2deg);
    z-index: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-insets,
  .hero-inset {
    transition: none;
  }
}

@media (max-width: 959px) and (prefers-reduced-motion: reduce) {
  .hero-inset--1,
  .hero-inset--2,
  .hero-inset--3,
  .hero-inset--4 {
    transform: none;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #0d2a20;
  background-image:
    linear-gradient(
      to bottom,
      rgba(8, 30, 22, 0.45) 0%,
      rgba(10, 36, 26, 0.18) 40%,
      rgba(8, 28, 20, 0.55) 100%
    ),
    radial-gradient(
      ellipse 100% 60% at 50% 50%,
      transparent 40%,
      rgba(5, 20, 14, 0.5) 100%
    ),
    var(--hero-image);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Chinar scatter sits above the photo stack but under warm glints — visible on the hero */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: var(--bg-chinar-scatter);
  background-size: cover;
  background-position: 48% 40%;
  background-repeat: no-repeat;
  opacity: 0.62;
  /* Multiply drops the illustration’s white matte so leaf art blends into the hero */
  mix-blend-mode: multiply;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.42;
  background:
    radial-gradient(
      circle at 22% 32%,
      rgba(232, 185, 110, 0.36) 0%,
      transparent 38%
    ),
    radial-gradient(
      circle at 82% 28%,
      rgba(212, 160, 85, 0.32) 0%,
      transparent 40%
    );
  mix-blend-mode: soft-light;
}

.hero-photo-credit {
  position: absolute;
  bottom: 0.65rem;
  right: max(1rem, 4vw);
  z-index: 3;
  margin: 0;
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  color: rgba(250, 252, 248, 0.76);
  text-shadow: 0 1px 8px rgba(8, 24, 18, 0.68);
}

.hero-photo-credit a {
  color: inherit;
  text-decoration: none;
}

.hero-photo-credit a:hover {
  color: rgba(255, 252, 245, 0.95);
  text-decoration: underline;
}

@media (max-width: 720px) {
  .hero-bg {
    background-position: 45% 44%;
  }

  .hero-photo-credit {
    right: 1rem;
    bottom: 0.5rem;
    font-size: 0.58rem;
  }

  .hero-bg::after {
    opacity: 0.36;
    background:
      radial-gradient(
        circle at 28% 28%,
        rgba(232, 185, 110, 0.3) 0%,
        transparent 40%
      ),
      radial-gradient(
        circle at 72% 26%,
        rgba(212, 160, 85, 0.28) 0%,
        transparent 42%
      );
  }
}

.hero-content {
  position: relative;
  min-width: 0;
  color: #fafcf8;
  text-align: center;
  align-items: center;
  text-shadow:
    0 2px 28px rgba(8, 24, 18, 0.72),
    0 1px 3px rgba(12, 32, 24, 0.52);
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 254, 248, 0.78);
  margin: 0 0 1rem;
}

/* Hero eyebrow matches hero-host font style */
.hero-content .eyebrow {
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #ffffff;
  margin: 0 0 1rem;
}

.eyebrow::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  margin-top: 0.65rem;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    var(--color-gold-light),
    var(--color-green-bright)
  );
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  line-height: 1.05;
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
  text-shadow:
    0 2px 36px rgba(8, 24, 18, 0.78),
    0 1px 2px rgba(12, 32, 24, 0.48);
}

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  color: rgba(255, 252, 235, 0.95);
  margin: 0 0 1.5rem;
}

.hero-meta {
  margin: 0 0 2rem;
  font-size: 1.05rem;
  color: rgba(255, 254, 248, 0.9);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.hero-dates {
  font-weight: 700;
  color: var(--color-gold-light);
  text-shadow: 0 1px 16px rgba(8, 24, 18, 0.55);
}

.hero-dot {
  opacity: 0.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(
    145deg,
    var(--color-gold-light) 0%,
    var(--color-gold) 48%,
    var(--color-gold-dark) 100%
  );
  color: #1f1008;
  border-color: rgba(255, 200, 140, 0.65);
  box-shadow: 0 4px 26px rgba(214, 90, 40, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(
    145deg,
    #ffbf7a 0%,
    var(--color-gold-light) 45%,
    var(--color-gold) 100%
  );
  color: #1f1008;
  border-color: #ffbf7a;
}

/* Hero — Register Online (matches header bottle green) */
.hero-actions .btn-primary-bottle {
  background: linear-gradient(
    145deg,
    var(--color-bottle-highlight) 0%,
    var(--color-bottle) 42%,
    var(--color-bottle-deep) 100%
  );
  color: #fafcf8;
  border-color: rgba(212, 145, 61, 0.42);
  box-shadow: 0 4px 26px rgba(7, 31, 26, 0.5);
}

.hero-actions .btn-primary-bottle:hover {
  background: linear-gradient(
    145deg,
    #2a6654 0%,
    var(--color-bottle-highlight) 45%,
    var(--color-bottle) 100%
  );
  color: #fafcf8;
  border-color: var(--color-gold-light);
}

.btn-ghost {
  background: rgba(26, 61, 48, 0.46);
  color: #fafcf8;
  border-color: rgba(212, 145, 61, 0.42);
}

.btn-ghost:hover {
  background: rgba(45, 106, 79, 0.52);
  color: #fafcf8;
  border-color: var(--color-gold-light);
}

.btn-large {
  padding: 1rem 1.75rem;
  font-size: 1rem;
}

/* Countdown */
.countdown-strip {
  background: var(--color-surface);
  border-bottom: 1px solid rgba(26, 61, 48, 0.08);
  box-shadow: var(--shadow-soft);
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
}

.countdown-strip::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-green-rich),
    var(--color-gold-light),
    var(--color-green-bright)
  );
}

.countdown-inner {
  padding: 1.75rem 0 2rem;
  text-align: center;
}

.countdown-label {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
}

.countdown-unit {
  min-width: 5.5rem;
}

.countdown-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-gold-dark);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .countdown-value {
    background: linear-gradient(
      180deg,
    var(--color-gold-dark) 0%,
    var(--color-gold) 45%,
    var(--color-gold-light) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

.countdown-name {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-ink-muted);
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: linear-gradient(
    180deg,
    rgba(255, 245, 232, 0.88) 0%,
    rgba(236, 244, 236, 0.9) 100%
  );
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 1rem;
  color: var(--color-green-rich);
}

.section-intro {
  text-align: center;
  max-width: 52ch;
  margin: 0 auto 2.5rem;
  color: var(--color-ink-muted);
}

.lead {
  font-size: 1.15rem;
  color: var(--color-ink);
}

.signoff {
  font-style: italic;
  color: var(--color-ink-muted);
  margin-top: 2rem;
}

/* Leadership messages — twin portrait cards below countdown */
.section-messages {
  padding-top: 3.25rem;
  padding-bottom: 4.5rem;
}

.section-title--messages {
  margin-bottom: 0.75rem;
}

.section-intro--messages {
  margin-bottom: 2.25rem;
}

.message-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1.75rem;
  max-width: 920px;
  margin-inline: auto;
  align-items: stretch;
}

.message-card {
  display: flex;
  flex-direction: column;
  min-height: 22rem;
  padding: 1.75rem 1.5rem 1.65rem;
  border-radius: var(--radius);
  background: linear-gradient(
    168deg,
    var(--color-bottle-deep) 0%,
    var(--color-bottle) 38%,
    var(--color-green-rich) 100%
  );
  border: 1px solid rgba(255, 252, 248, 0.14);
  box-shadow:
    0 20px 40px rgba(7, 31, 26, 0.28),
    0 0 0 1px rgba(0, 0, 0, 0.06) inset;
}

.message-card--chair {
  background: linear-gradient(
    168deg,
    var(--color-green-deep) 0%,
    var(--color-bottle) 42%,
    var(--color-green-rich) 100%
  );
}

.message-card-eyebrow {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 252, 248, 0.58);
}

.message-card-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-gold-light);
  letter-spacing: 0.02em;
}

.message-card-photo {
  margin: 0 auto 1.15rem;
  max-width: 11rem;
  width: 100%;
}

.message-card-photo-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  width: 100%;
  border-radius: 12px;
  border: 2px dashed rgba(240, 160, 90, 0.5);
  background: rgba(0, 0, 0, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* No border / background when the frame holds a real photo */
.message-card--chair .message-card-photo-frame,
.message-card--secretary .message-card-photo-frame {
  border: none;
  background: transparent;
}

/* Organising Secretary card — deep teal variant */
.message-card--secretary {
  background: linear-gradient(
    168deg,
    #0d3b38 0%,
    #0f4a44 42%,
    #1a5c52 100%
  );
}

/* When the president card is hidden, let the chairman card span the full grid
   and cap its width so it doesn't stretch too wide on large screens */
.message-card[hidden] + .message-card {
  grid-column: 1 / -1;
  max-width: 520px;
  margin-inline: auto;
}

.message-card-photo-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 252, 248, 0.4);
}

.message-card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-card-body {
  margin: 0;
  flex: 1 1 auto;
  padding: 0;
  border: 0;
  font-size: 0.98rem;
  line-height: 1.62;
  color: rgba(252, 253, 251, 0.96);
  text-align: justify;
  hyphens: auto;
}

.message-card-body p {
  margin: 0 0 1rem;
}

.message-card-body p:last-child {
  margin-bottom: 0;
}

.message-card-body strong {
  color: #fffef9;
  font-weight: 700;
}

.message-card-signoff {
  margin: 1.35rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(240, 160, 90, 0.35);
  font-size: 0.9rem;
  font-weight: 600;
  font-style: italic;
  color: var(--color-gold-light);
}

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

  .message-card {
    min-height: 0;
  }
}

/* Highlights grid */
.highlight-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

/* ── Flip card container ── */
.highlight-card {
  perspective: 900px;
  min-height: 130px;
}

.highlight-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 130px;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.highlight-card:hover .highlight-card__inner {
  transform: rotateY(180deg);
}

/* shared face styles */
.highlight-card__front,
.highlight-card__back {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 1.35rem;
}

/* Front face */
.highlight-card__front {
  background: var(--color-surface);
  border: 1px solid rgba(26, 61, 48, 0.09);
  box-shadow: var(--shadow-green);
  border-top: 3px solid var(--color-green);
}

/* Back face */
.highlight-card__back {
  background: var(--color-green);
  border: 1px solid rgba(26, 61, 48, 0.15);
  box-shadow: 0 4px 18px rgba(26, 61, 48, 0.22);
  transform: rotateY(180deg);
}

.highlight-card__front,
.highlight-card__back {
  text-align: center;
}

.highlight-card__front h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-green-rich);
}

.highlight-card__back p {
  margin: 0;
  font-size: 0.97rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
}

/* Places to visit — horizontal gallery (equal-height portrait cards) + hover overlay */
.section-places {
  --places-card-h: min(420px, 54vh);
  --places-gap: 14px;
}

.places-gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  max-width: 100%;
  margin-top: 1.5rem;
  padding: 0 min(3vw, 1rem);
  box-sizing: border-box;
}

.places-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0;
  background: var(--color-bottle);
  color: #fafcf8;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.places-arrow:hover {
  background: var(--color-bottle-deep);
}

.places-arrow:focus-visible {
  outline: 3px solid var(--color-gold-light);
  outline-offset: 2px;
}

.places-arrow:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.places-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  touch-action: none;
}

.places-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: var(--places-gap);
  width: max-content;
  transition: transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

.places-track.is-no-transition {
  transition: none;
}

.places-card {
  flex: 0 0 auto;
  margin: 0;
}

.places-card-media {
  position: relative;
  height: var(--places-card-h);
  width: calc(var(--places-card-h) * 0.56);
  max-width: 42vw;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background: #1a1a1a;
  cursor: pointer;
  outline: none;
}

.places-card-media:focus-visible {
  box-shadow: 0 0 0 3px var(--color-gold-light);
}

.places-card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.places-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 1.05rem;
  background: linear-gradient(
    145deg,
    #f5a84c 0%,
    var(--color-gold) 42%,
    var(--color-gold-dark) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  box-sizing: border-box;
  pointer-events: none;
}

@media (hover: hover) {
  .places-card-media:is(:hover, :focus-within) .places-card-overlay {
    opacity: 1;
  }
}

@media (hover: none) {
  .places-card-media.places-card-media--open .places-card-overlay,
  .places-card-media:focus-visible .places-card-overlay {
    opacity: 1;
  }
}

.places-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: #fafcf8;
  line-height: 1.25;
  text-shadow: 0 1px 2px rgba(45, 24, 8, 0.35);
}

.places-card-meta {
  margin: 0 0 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 252, 248, 0.88);
}

.places-card-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 252, 248, 0.96);
}

@media (max-width: 720px) {
  .section-places {
    --places-card-h: min(340px, 48vh);
  }

  .places-gallery {
    gap: 0.2rem;
    padding-inline: 0.35rem;
  }

  .places-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
  }

  .places-card-media {
    max-width: 46vw;
    width: calc(var(--places-card-h) * 0.54);
  }

  .places-card-overlay {
    padding: 0.75rem 0.85rem;
  }

  .places-card-title {
    font-size: 1rem;
  }

  .places-card-desc {
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .places-track {
    transition-duration: 0.01ms;
  }

  .places-card-overlay {
    transition-duration: 0.01ms;
  }
}

/* Committee */
.committee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

/* On laptop+ force 3 columns so the 6 cards sit as two equal rows (3+3) */
@media (min-width: 860px) {
  .committee-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.committee-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(26, 61, 48, 0.09);
  box-shadow: var(--shadow-green);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  cursor: default;
}

.committee-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 32px rgba(26, 61, 48, 0.14);
  border-color: rgba(26, 61, 48, 0.2);
}

.committee-card .committee-avatar-wrap {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.committee-card:hover .committee-avatar-wrap {
  transform: scale(1.05);
}

/* Avatar photo */
.committee-avatar-wrap {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.1rem;
  border: 3px solid rgba(26, 61, 48, 0.12);
  box-shadow: 0 2px 10px rgba(26, 61, 48, 0.12);
  flex-shrink: 0;
}

.committee-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Initials fallback when no photo available */
.committee-avatar--initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a3d30 0%, #2d6a4f 100%);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: var(--font-display);
}

.committee-card h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  margin: 0 0 0.5rem;
}

.committee-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: var(--color-ink);
  line-height: 1.3;
}

.committee-role {
  font-size: 0.8rem;
  color: var(--color-ink-muted);
  margin: 0.4rem 0 0;
  line-height: 1.5;
}

/* Patron card — gold-tinted highlight */
.committee-card--patron {
  border-color: rgba(180, 130, 30, 0.35);
  background: linear-gradient(160deg, rgba(253, 245, 220, 0.65) 0%, var(--color-surface) 100%);
}
.committee-card--patron .committee-avatar-wrap {
  border-color: rgba(180, 130, 30, 0.4);
  box-shadow: 0 2px 12px rgba(180, 130, 30, 0.18);
}
.committee-card--patron h3 {
  color: #9a6d00;
}

/* Organising Chair card — rich green highlight */
.committee-card--chair {
  border-color: rgba(26, 61, 48, 0.28);
  background: linear-gradient(160deg, rgba(220, 240, 228, 0.65) 0%, var(--color-surface) 100%);
}
.committee-card--chair .committee-avatar-wrap {
  border-color: rgba(26, 61, 48, 0.3);
  box-shadow: 0 2px 12px rgba(26, 61, 48, 0.15);
}
.committee-card--chair h3 {
  color: var(--color-green-rich);
}

/* Organising Secretary — teal tint */
.committee-card--secretary {
  border-color: rgba(0, 120, 110, 0.22);
  background: linear-gradient(160deg, rgba(210, 240, 238, 0.55) 0%, var(--color-surface) 100%);
}
.committee-card--secretary .committee-avatar-wrap {
  border-color: rgba(0, 120, 110, 0.28);
  box-shadow: 0 2px 12px rgba(0, 120, 110, 0.12);
}
.committee-card--secretary h3 {
  color: #00786e;
}

/* Joint Organising Secretary — blue-slate tint */
.committee-card--joint-sec {
  border-color: rgba(60, 100, 180, 0.18);
  background: linear-gradient(160deg, rgba(220, 230, 250, 0.55) 0%, var(--color-surface) 100%);
}
.committee-card--joint-sec .committee-avatar-wrap {
  border-color: rgba(60, 100, 180, 0.25);
  box-shadow: 0 2px 12px rgba(60, 100, 180, 0.1);
}
.committee-card--joint-sec h3 {
  color: #3a60b0;
}

/* Treasurer — warm amber tint */
.committee-card--treasurer {
  border-color: rgba(180, 90, 30, 0.22);
  background: linear-gradient(160deg, rgba(250, 232, 210, 0.55) 0%, var(--color-surface) 100%);
}
.committee-card--treasurer .committee-avatar-wrap {
  border-color: rgba(180, 90, 30, 0.28);
  box-shadow: 0 2px 12px rgba(180, 90, 30, 0.12);
}
.committee-card--treasurer h3 {
  color: #a05010;
}

/* Joint Organising Secretary 2 — soft plum/mauve tint */
.committee-card--joint-sec-2 {
  border-color: rgba(145, 70, 140, 0.2);
  background: linear-gradient(160deg, rgba(245, 220, 245, 0.55) 0%, var(--color-surface) 100%);
}
.committee-card--joint-sec-2 .committee-avatar-wrap {
  border-color: rgba(145, 70, 140, 0.28);
  box-shadow: 0 2px 12px rgba(145, 70, 140, 0.12);
}
.committee-card--joint-sec-2 h3 {
  color: #7a3278;
}

/* SELSI President — deep navy tint */
.committee-card--selsi-president {
  border-color: rgba(20, 50, 120, 0.25);
  background: linear-gradient(160deg, rgba(215, 225, 255, 0.6) 0%, var(--color-surface) 100%);
}
.committee-card--selsi-president .committee-avatar-wrap {
  border-color: rgba(20, 50, 120, 0.3);
  box-shadow: 0 2px 12px rgba(20, 50, 120, 0.14);
}
.committee-card--selsi-president h3 {
  color: #1a3278;
}

/* SELSI Hony. Secretary — forest green tint */
.committee-card--selsi-honsec {
  border-color: rgba(30, 100, 60, 0.25);
  background: linear-gradient(160deg, rgba(210, 245, 225, 0.6) 0%, var(--color-surface) 100%);
}
.committee-card--selsi-honsec .committee-avatar-wrap {
  border-color: rgba(30, 100, 60, 0.3);
  box-shadow: 0 2px 12px rgba(30, 100, 60, 0.14);
}
.committee-card--selsi-honsec h3 {
  color: #1e6440;
}

/* SELSI VP North Zone — warm burgundy tint */
.committee-card--selsi-vp {
  border-color: rgba(150, 30, 60, 0.22);
  background: linear-gradient(160deg, rgba(255, 220, 228, 0.6) 0%, var(--color-surface) 100%);
}
.committee-card--selsi-vp .committee-avatar-wrap {
  border-color: rgba(150, 30, 60, 0.28);
  box-shadow: 0 2px 12px rgba(150, 30, 60, 0.13);
}
.committee-card--selsi-vp h3 {
  color: #96203c;
}

/* Venue */
.venue-split {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 400px);
  gap: 2.5rem;
  align-items: start;
}

.venue-copy h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin: 0 0 1rem;
  color: var(--color-green-rich);
}

.venue-sub {
  font-size: 1.2rem;
  margin-top: 1.75rem;
}

.venue-map-aside {
  min-width: 0;
}

.venue-map {
  position: relative;
  width: 100%;
  margin: 0;
  aspect-ratio: 1 / 1.12;
  min-height: 260px;
  max-height: min(420px, 52vh);
  border: 2px solid rgba(26, 61, 48, 0.18);
  border-radius: 0;
  background: rgba(26, 61, 48, 0.06);
  overflow: hidden;
}

.venue-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.venue-map-link {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  text-align: left;
}

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

  .venue-map {
    aspect-ratio: 16 / 10;
    max-height: 360px;
    min-height: 220px;
  }

  .venue-map-link {
    text-align: center;
  }
}

/* Register */
.register-block {
  background: linear-gradient(
    135deg,
    #1e4d3a 0%,
    var(--color-green-deep) 44%,
    #050a08 100%
  );
  color: #e8f2eb;
  position: relative;
  overflow: hidden;
}

.register-block::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 190, 130, 0.18) 0%,
    transparent 68%
  );
  pointer-events: none;
}

.register-block .section-title,
.register-block .section-intro {
  color: #f2faf4;
}

.register-block .section-intro {
  opacity: 0.92;
  max-width: 56ch;
}

.register-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.register-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.register-block .btn-primary {
  background: linear-gradient(
    145deg,
    var(--color-gold-light) 0%,
    var(--color-gold) 100%
  );
  color: var(--color-green-deep);
  border-color: var(--color-gold-light);
}

.register-block .btn-primary:hover {
  background: #fffef9;
  color: var(--color-green-rich);
  border-color: #fffef9;
}

.register-block .btn-ghost {
  border-color: rgba(255, 255, 255, 0.5);
}

.register-table-glass {
  margin-top: 2rem;
  width: 100%;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(240, 160, 90, 0.65);
  background: transparent;
  overflow: hidden;
}

.register-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.register-fee-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  background: transparent;
  color: rgba(242, 250, 244, 0.94);
  font-size: 0.88rem;
  line-height: 1.4;
}

.register-fee-table thead th {
  background: transparent;
  color: #fff8f0;
  font-weight: 700;
  text-align: left;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(240, 160, 90, 0.65);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.register-fee-table tbody th {
  text-align: left;
  font-weight: 600;
  background: transparent;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(240, 160, 90, 0.55);
  color: rgba(242, 250, 244, 0.92);
}

.register-fee-table td {
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(240, 160, 90, 0.5);
  background: transparent;
  color: rgba(255, 248, 238, 0.95);
}

.register-fee-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.register-fee-footnotes {
  text-align: left;
  max-width: 56rem;
  margin: 1.1rem auto 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(242, 250, 244, 0.88);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.register-fee-fn {
  display: block;
}

.register-fee-fn strong {
  color: var(--color-gold-light);
}

@media (max-width: 640px) {
  .register-fee-table {
    font-size: 0.8rem;
  }

  .register-fee-table thead th,
  .register-fee-table tbody th,
  .register-fee-table td {
    padding: 0.5rem 0.55rem;
  }
}

@media (prefers-reduced-transparency: reduce), (prefers-reduced-motion: reduce) {
  .register-table-glass {
    background: transparent;
    border-color: rgba(240, 160, 90, 0.65);
  }

  .register-fee-table thead th,
  .register-fee-table tbody th,
  .register-fee-table td {
    background: transparent;
  }
}

/* Footer — multi-column (inspired layout; Kashmir / SELSI palette) */
.site-footer {
  background: linear-gradient(165deg, #142622 0%, #0b1512 42%, #050a08 100%);
  color: rgba(232, 242, 235, 0.82);
  padding: 2.75rem 0 2.25rem;
  border-top: 3px solid var(--color-gold-light);
  font-size: 0.94rem;
  line-height: 1.5;
}

.site-footer a {
  color: var(--color-gold-light);
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.site-footer a:hover {
  color: #ffd4a8;
  text-decoration: underline;
}

.footer-container {
  max-width: 1120px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 0.95fr;
  gap: 2rem 2.25rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255, 252, 248, 0.1);
}

.footer-brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin-bottom: 0.65rem;
}

.footer-logo {
  display: block;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.footer-logo--header {
  height: 52px;
  width: auto;
  filter: none;
  opacity: 1;
}

.footer-logo-divider {
  display: inline-block;
  width: 1px;
  height: 22px;
  background: rgba(255, 252, 248, 0.25);
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: #fafcf8;
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}

.footer-lead {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(232, 242, 235, 0.75);
}

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

.footer-facts li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  font-size: 0.86rem;
  color: rgba(232, 242, 235, 0.88);
}

.footer-facts li:last-child {
  margin-bottom: 0;
}

.footer-fact-icon {
  flex-shrink: 0;
  color: var(--color-gold-light);
  margin-top: 0.1rem;
}

.footer-col-heading {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fafcf8;
  margin: 0 0 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--color-gold-light);
  text-transform: none;
  letter-spacing: 0.02em;
}

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

.footer-link-list li {
  margin-bottom: 0.45rem;
}

.footer-link-list a {
  font-weight: 500;
  font-size: 0.9rem;
}

.footer-contact-col .footer-col-heading {
  margin-bottom: 0.65rem;
}

.footer-contact-phone {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.footer-contact-phone a {
  word-break: break-all;
}

.footer-contact-note {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(232, 242, 235, 0.55);
}

.footer-middle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 2.25rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 252, 248, 0.1);
}

.footer-org-title {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin: 0 0 0.65rem;
}

.footer-org-body {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(232, 242, 235, 0.78);
}

.footer-org-body + .footer-org-body {
  margin-top: 0.6rem;
}

.footer-legal {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  text-align: center;
}

.footer-copyright {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
  font-size: 0.85rem;
}

.footer-legal-links a {
  color: var(--color-gold-light);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.15s;
}

.footer-legal-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-dev {
  margin: 0;
  padding: 0;
  border: none;
  width: 100%;
}

.footer-dev-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.25rem;
  flex-wrap: wrap;
}

.footer-dev-logo {
  width: 56px;
  height: auto;
  flex-shrink: 0;
  padding: 0.35rem;
  background: #fff;
  border-radius: 0;
  box-sizing: content-box;
}

.footer-dev-text {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(232, 242, 235, 0.82);
  text-align: left;
  max-width: 20rem;
}

.footer-dev-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(232, 242, 235, 0.55);
  margin-bottom: 0.15rem;
}

.footer-dev-name {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  color: #fafcf8;
  letter-spacing: 0.02em;
}

.footer-dev-sub {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.8rem;
  color: rgba(232, 242, 235, 0.72);
}

.scroll-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 46px;
  height: 46px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(15, 36, 25, 0.35);
  border-radius: 0;
  background: #fafcf8;
  color: var(--color-green-deep);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--color-gold-light);
  color: var(--color-green-deep);
  border-color: var(--color-gold-dark);
}

.scroll-top:focus-visible {
  outline: 3px solid var(--color-gold-light);
  outline-offset: 3px;
}

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

  .footer-about {
    grid-column: 1 / -1;
  }

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

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

  .site-footer {
    padding: 2rem 0 2rem;
  }

  .scroll-top {
    right: 0.85rem;
    bottom: 0.85rem;
    width: 42px;
    height: 42px;
  }
}

/* —— Portal: registration + dashboards (demo, static) —— */
body.portal-body {
  padding-top: 0;
  --partner-strip-h: 0;
}

body.portal-body.partner-strip-collapsed {
  padding-top: 0;
}

.portal-skip {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 10000;
  padding: 0.5rem 1rem;
  background: var(--color-bottle-deep);
  color: #fff8f0;
  border-radius: var(--radius);
}

.portal-skip:focus {
  left: 0.5rem;
  outline: 3px solid var(--color-gold-light);
}

.portal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(7, 31, 26, 0.97) 0%, rgba(15, 36, 25, 0.94) 100%);
  border-bottom: 1px solid rgba(240, 160, 90, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.portal-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.portal-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.6rem;
  text-decoration: none;
  color: #f2faf4;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.portal-brand-mark {
  font-size: 1.35rem;
}

.portal-brand-sub {
  font-size: 0.95rem;
  opacity: 0.88;
  border-left: 1px solid rgba(240, 160, 90, 0.45);
  padding-left: 0.6rem;
}

.portal-header-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.1rem;
  font-size: 0.93rem;
}

.portal-header-nav a {
  color: rgba(242, 250, 244, 0.88);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}

.portal-header-nav a:hover {
  color: #fff;
  border-bottom-color: var(--color-gold-light);
}

.portal-header-nav--admin {
  opacity: 0.75;
  font-size: 0.88rem;
}

.portal-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--radius);
  background: rgba(255, 252, 248, 0.12);
  cursor: pointer;
  position: relative;
}

.portal-nav-toggle::before,
.portal-nav-toggle::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: #f2faf4;
  border-radius: 1px;
}

.portal-nav-toggle::before {
  top: 15px;
  box-shadow: 0 8px 0 #f2faf4;
}

.portal-nav-toggle::after {
  bottom: 15px;
}

@media (max-width: 768px) {
  .portal-nav-toggle {
    display: block;
  }

  .portal-header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
    background: linear-gradient(180deg, #0f2419 0%, #07150f 100%);
    border-bottom: 1px solid rgba(240, 160, 90, 0.3);
  }

  .portal-header-nav.is-open {
    display: flex;
  }

  .portal-header-nav a {
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 252, 248, 0.08);
  }

  .portal-header-inner {
    position: relative;
    flex-wrap: wrap;
  }
}

.portal-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3rem;
}

.portal-page-heading {
  margin-bottom: 1.75rem;
}

.portal-page-heading--compact {
  margin-bottom: 1.25rem;
}

.portal-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gold);
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.portal-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.4rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--color-ink);
}

.portal-lead {
  margin: 0;
  max-width: 62ch;
  color: var(--color-ink-muted);
  font-size: 1rem;
}

.portal-layout--single {
  max-width: 720px;
  margin: 0 auto;
}

.portal-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid rgba(26, 61, 48, 0.12);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem 1.35rem 1.65rem;
}

.portal-card--narrow {
  max-width: 420px;
  margin: 0 auto;
}

.portal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.15rem;
}

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

.portal-field--span2 {
  grid-column: 1 / -1;
}

.portal-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-green-rich);
  margin-bottom: 0.35rem;
}

.portal-req {
  color: var(--color-gold);
}

.portal-field input,
.portal-field select,
.portal-field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font: inherit;
  border: 1px solid rgba(42, 24, 16, 0.18);
  border-radius: 10px;
  background: #fff;
  color: var(--color-ink);
}

.portal-field input:focus,
.portal-field select:focus,
.portal-field textarea:focus {
  outline: none;
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px var(--color-gold-soft);
}

.portal-form-note {
  font-size: 0.84rem;
  color: var(--color-ink-muted);
  margin: 1.25rem 0 0;
}

.portal-form-note--tight-top {
  margin-top: 0;
}

.portal-password-change-hint {
  margin: 0 0 0.25rem;
  font-size: 0.88rem;
}

.portal-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.portal-success {
  text-align: center;
  padding: 0.5rem 0 0.25rem;
}

.portal-success-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin: 0 0 0.5rem;
  color: var(--color-green-rich);
}

.portal-success-text,
.portal-success-id {
  margin: 0.35rem 0;
  color: var(--color-ink-muted);
}

.portal-success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.portal-footer {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  font-size: 0.88rem;
  color: var(--color-ink-muted);
  border-top: 1px solid rgba(26, 61, 48, 0.1);
}

.portal-footer a {
  color: var(--color-green-rich);
}

/* App shell — dashboards */
.portal-app {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 120px);
  padding: 1.5rem 1.25rem 2.5rem;
  gap: 1.5rem;
}

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

.portal-sidebar {
  align-self: start;
  padding: 1rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(26, 61, 48, 0.12);
  box-shadow: var(--shadow-soft);
}

.portal-sidebar-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-ink-muted);
  margin: 0 0 0.65rem;
}

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

.portal-sidebar-list a {
  display: block;
  padding: 0.45rem 0;
  color: var(--color-green-rich);
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
}

.portal-sidebar-list a:hover,
.portal-sidebar-list a.is-active {
  color: var(--color-gold-dark);
}

.portal-sidebar-list a.is-active {
  background: var(--color-gold-soft);
  padding-left: 0.5rem;
  margin-left: -0.5rem;
  padding-right: 0.5rem;
}

.portal-sidebar-muted {
  display: block;
  padding: 0.45rem 0;
  color: var(--color-ink-muted);
  font-size: 0.92rem;
  cursor: default;
}

.portal-sidebar-note {
  font-size: 0.78rem;
  color: var(--color-ink-muted);
  margin: 1rem 0 0;
  line-height: 1.45;
}

.portal-app-main {
  min-width: 0;
}

.portal-app-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  margin: 0;
  color: var(--color-ink);
}

.portal-app-sub {
  margin: 0.35rem 0 0;
  color: var(--color-ink-muted);
  font-size: 0.95rem;
}

.portal-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.15rem;
}

.portal-panel--wide {
  grid-column: 1 / -1;
}

.portal-panel {
  background: var(--color-surface);
  border: 1px solid rgba(26, 61, 48, 0.1);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
}

.portal-panel-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.65rem;
  color: var(--color-green-rich);
}

.portal-panel-lead {
  font-size: 1.05rem;
  margin: 0 0 1rem;
}

.portal-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.portal-dl > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.5rem 0.75rem;
  font-size: 0.92rem;
}

@media (max-width: 480px) {
  .portal-dl > div {
    grid-template-columns: 1fr;
  }
}

.portal-dl dt {
  margin: 0;
  color: var(--color-ink-muted);
  font-weight: 500;
}

.portal-dl dd {
  margin: 0;
  color: var(--color-ink);
  font-weight: 600;
}

.portal-panel-foot {
  font-size: 0.84rem;
  color: var(--color-ink-muted);
  margin: 1rem 0 0;
}

.portal-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--color-gold-soft);
  color: var(--color-gold-dark);
  font-size: 0.85rem;
}

.portal-muted {
  color: var(--color-ink-muted);
  margin: 0 0 0.85rem;
  max-width: 65ch;
}

.portal-empty {
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: var(--color-surface);
  border: 1px dashed rgba(214, 90, 40, 0.35);
  border-radius: var(--radius);
}

.portal-empty-title {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
}

.portal-empty-text {
  color: var(--color-ink-muted);
  margin: 0 0 1.25rem;
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
}

/* Admin gate + table */
.portal-admin-wrap {
  padding: 2rem 1.25rem 3rem;
  min-height: 60vh;
}

.portal-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.portal-gate-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin: 0 0 0.5rem;
  color: var(--color-green-rich);
}

.portal-gate-lead {
  margin: 0 0 1rem;
  color: var(--color-ink-muted);
  font-size: 0.95rem;
}

.portal-gate-hint {
  font-size: 0.88rem;
  color: var(--color-ink);
  background: rgba(214, 90, 40, 0.08);
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  margin: 0 0 1.25rem;
}

.portal-code {
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
  color: var(--color-gold-dark);
}

.portal-app--admin {
  max-width: 1200px;
}

.portal-admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
  .portal-admin-stats {
    grid-template-columns: 1fr;
  }
}

.portal-stat {
  background: linear-gradient(145deg, var(--color-green-rich) 0%, var(--color-bottle) 100%);
  color: #f2faf4;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(240, 160, 90, 0.25);
}

.portal-stat-label {
  display: block;
  font-size: 0.78rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.portal-stat-value {
  font-size: 1.65rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.portal-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid rgba(26, 61, 48, 0.12);
  background: #fff;
}

.portal-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.portal-table th,
.portal-table td {
  padding: 0.55rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid rgba(26, 61, 48, 0.08);
}

.portal-table th {
  background: rgba(26, 61, 48, 0.06);
  font-weight: 600;
  color: var(--color-green-rich);
}

.portal-table tbody tr:hover td {
  background: rgba(214, 90, 40, 0.04);
}

.portal-tag--muted {
  color: var(--color-ink-muted);
  font-style: italic;
}

.btn-small {
  font-size: 0.84rem;
  padding: 0.4rem 0.85rem;
  margin-top: 1rem;
  width: 100%;
}

.portal-main--wide {
  max-width: 1200px;
}

.portal-lookup-block {
  max-width: 520px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.portal-lookup-form {
  margin-top: 1.25rem;
}

.portal-lookup-hint {
  text-align: center;
  font-size: 0.9rem;
  margin: 1rem 0 0;
}

.portal-toast {
  position: fixed;
  top: calc(0.75rem + env(safe-area-inset-top, 0));
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  padding: 0.55rem 1.25rem;
  background: var(--color-green-rich);
  color: #f2faf4;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-green);
}

.portal-app--client {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 55vh;
  padding: 0 0 2rem;
}

.portal-client-section {
  margin-top: 0.5rem;
}

.portal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.portal-toolbar-search {
  flex: 1 1 200px;
  min-width: 160px;
}

.portal-toolbar-search input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font: inherit;
  border: 1px solid rgba(42, 24, 16, 0.18);
  border-radius: 10px;
}

.portal-toolbar-select {
  padding: 0.5rem 0.6rem;
  font: inherit;
  border-radius: 10px;
  border: 1px solid rgba(42, 24, 16, 0.18);
  background: #fff;
  min-width: 140px;
}

.portal-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-left: auto;
}

.portal-toolbar-danger {
  color: #8b2500;
}

.portal-admin-stats--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .portal-admin-stats--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.btn-tiny {
  font-size: 0.78rem;
  padding: 0.25rem 0.5rem;
}

.btn-compact {
  font-size: 0.88rem;
  padding: 0.45rem 0.85rem;
}

.portal-table-mono {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.8rem;
}

.portal-table-actions {
  white-space: nowrap;
}

.portal-table-actions .btn + .btn {
  margin-left: 0.25rem;
}

.portal-modal[hidden] {
  display: none !important;
}

.portal-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
}

.portal-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 36, 25, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.portal-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin-top: 2vh;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid rgba(26, 61, 48, 0.14);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.2);
}

.portal-modal-dialog--wide {
  max-width: 640px;
}

.portal-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(26, 61, 48, 0.1);
}

.portal-modal-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0;
  color: var(--color-green-rich);
}

.portal-modal-close {
  border: none;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-ink-muted);
  padding: 0 0.25rem;
}

.portal-modal-close:hover {
  color: var(--color-ink);
}

.portal-modal-body {
  padding: 1.15rem 1.15rem 0;
}

.portal-modal-footer {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.15rem 1.15rem;
  border-top: 1px solid rgba(26, 61, 48, 0.08);
  margin-top: 0.5rem;
}

body.site-signin-modal-open {
  overflow: hidden;
}

.portal-modal-dialog--signin {
  max-width: 440px;
}

.site-signin-tabs {
  display: flex;
  margin: 0;
  padding: 0 1.15rem;
  gap: 0;
  border-bottom: 1px solid rgba(26, 61, 48, 0.1);
  background: rgba(244, 240, 232, 0.5);
}

.site-signin-tab {
  flex: 1;
  margin: 0;
  padding: 0.85rem 0.75rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-ink-muted);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-signin-tab:hover {
  color: var(--color-green-rich);
}

.site-signin-tab.is-active {
  color: var(--color-green-rich);
  border-bottom-color: var(--color-gold);
}

.site-signin-tab:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--color-gold);
}

.site-signin-modal-panels {
  padding: 1.15rem 1.15rem 1.25rem;
}

.site-signin-panel-intro {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-ink-muted);
}

.site-signin-hint {
  margin-top: 1rem;
}

.site-signin-mini-divider {
  margin: 1rem 0 0.85rem;
}

.portal-abstract-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.portal-abstract-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.portal-abstract-card {
  border: 1px solid rgba(26, 61, 48, 0.12);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  background: #fff;
}

.portal-abstract-title {
  font-size: 1rem;
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  color: var(--color-green-rich);
}

.portal-abstract-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.82rem;
  color: var(--color-ink-muted);
  margin-bottom: 0.35rem;
}

.portal-abstract-authors {
  font-size: 0.88rem;
  margin: 0.25rem 0;
  color: var(--color-ink);
}

.portal-abstract-actions {
  margin-top: 0.6rem;
  display: flex;
  gap: 0.35rem;
}

/* —— Client dashboard (delegate) polish —— */
body.portal-body--client {
  background-color: #f4f0e8;
  background-image:
    radial-gradient(ellipse 90% 60% at 10% -10%, rgba(214, 90, 40, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(26, 61, 48, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(255, 252, 248, 0.9) 0%, transparent 45%);
  background-attachment: fixed;
}

body.portal-body--client::before {
  opacity: 0.18;
}

.portal-main--client {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

.portal-client-landing {
  display: flex;
  justify-content: center;
  padding: 1rem 1.25rem 3rem;
  min-height: 62vh;
  align-items: center;
}

.portal-client-landing-inner {
  width: 100%;
  max-width: 480px;
  text-align: center;
}

.portal-client-landing-title {
  margin-bottom: 0.65rem;
}

.portal-client-landing-lead {
  margin-left: auto;
  margin-right: auto;
}

.portal-client-lookup-card {
  margin-top: 1.75rem;
  padding: 1.35rem 1.35rem 1.5rem;
  text-align: left;
  background: linear-gradient(165deg, #fffefb 0%, var(--color-surface) 100%);
  border: 1px solid rgba(26, 61, 48, 0.12);
  border-radius: calc(var(--radius) + 2px);
  box-shadow:
    0 4px 24px rgba(42, 24, 16, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  position: relative;
}

.portal-client-lookup-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.25rem;
  right: 1.25rem;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--color-green-rich), var(--color-gold-light));
  opacity: 0.85;
}

.portal-client-lookup-submit {
  width: 100%;
  margin-top: 0.35rem;
}

.portal-client-sample-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.84rem;
  color: var(--color-ink-muted);
}

.portal-client-sample-label {
  width: 100%;
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  color: var(--color-green-rich);
}

@media (min-width: 420px) {
  .portal-client-sample-label {
    width: auto;
    margin-right: 0.25rem;
  }
}

.portal-client-sample-chip {
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  padding: 0.2rem 0.45rem;
  background: rgba(214, 90, 40, 0.1);
  color: var(--color-gold-dark);
  border-radius: 6px;
  border: 1px solid rgba(214, 90, 40, 0.2);
}

.portal-client-sample-sep {
  opacity: 0.45;
}

.portal-client-landing-footer {
  margin: 1.5rem 0 0;
}

.portal-toast--client {
  border: 1px solid rgba(240, 160, 90, 0.45);
  box-shadow: 0 12px 36px rgba(26, 61, 48, 0.15);
}

.portal-sidebar--client {
  background: linear-gradient(175deg, #1a3d2e 0%, #0f2419 52%, #0a1812 100%);
  border: 1px solid rgba(240, 160, 90, 0.22);
  color: rgba(242, 250, 244, 0.92);
  box-shadow: 0 20px 50px rgba(15, 36, 25, 0.18);
}

.portal-sidebar-brand {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 252, 248, 0.12);
}

.portal-sidebar-brand-mark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff8f0;
}

.portal-sidebar-brand-year {
  font-size: 0.85rem;
  opacity: 0.75;
  color: var(--color-gold-light);
}

.portal-sidebar--client .portal-sidebar-title {
  color: rgba(242, 250, 244, 0.55);
}

.portal-sidebar-list--icons a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  color: rgba(242, 250, 244, 0.85);
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

.portal-sidebar-list--icons a:hover {
  background: rgba(255, 252, 248, 0.08);
  color: #fff;
}

.portal-sidebar-list--icons a.is-active {
  background: linear-gradient(135deg, rgba(240, 160, 90, 0.28) 0%, rgba(214, 90, 40, 0.15) 100%);
  color: #fff8f0;
  margin-left: 0;
  padding-left: 0.65rem;
  box-shadow: inset 0 0 0 1px rgba(255, 200, 160, 0.2);
}

.portal-sidebar-list--icons .portal-nav-icon {
  flex-shrink: 0;
  opacity: 0.9;
}

.portal-sidebar-list--icons a.is-active .portal-nav-icon {
  color: var(--color-gold-light);
}

.portal-sidebar-divider {
  height: 1px;
  background: rgba(255, 252, 248, 0.1);
  margin: 1rem 0;
}

.portal-sidebar--client .portal-sidebar-note {
  color: rgba(242, 250, 244, 0.55);
}

.portal-client-signout-btn {
  width: 100%;
  margin-top: 0.25rem;
  border-color: rgba(255, 252, 248, 0.28);
  color: rgba(242, 250, 244, 0.88);
}

.portal-client-signout-btn:hover {
  background: rgba(255, 252, 248, 0.08);
  color: #fff;
}

.portal-app-main--client {
  padding-top: 0.25rem;
}

.portal-client-page-head {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(26, 61, 48, 0.1);
}

.portal-client-page-head .portal-app-title {
  font-size: clamp(1.65rem, 3.5vw, 2.05rem);
}

.portal-client-hero {
  background: linear-gradient(145deg, #fffefb 0%, #f6f2ea 48%, #eef4ef 100%);
  border: 1px solid rgba(26, 61, 48, 0.12);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.35rem 1.35rem 1.15rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 12px 40px rgba(42, 24, 16, 0.06);
}

.portal-client-hero-top {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.portal-client-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-bottle-deep);
  background: linear-gradient(145deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
  box-shadow: 0 6px 20px rgba(214, 90, 40, 0.25);
}

.portal-client-hero-text {
  min-width: 0;
}

.portal-client-hero-eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--color-gold-dark);
  margin: 0 0 0.2rem;
  font-weight: 600;
}

.portal-client-hero-name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  margin: 0 0 0.2rem;
  color: var(--color-ink);
  line-height: 1.2;
}

.portal-client-hero-tagline {
  margin: 0;
  font-size: 0.86rem;
  color: var(--color-ink-muted);
  line-height: 1.45;
}

.portal-client-meta-chips {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.portal-client-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(26, 61, 48, 0.1);
  border-radius: 10px;
  font-size: 0.82rem;
}

.portal-client-chip-key {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-ink-muted);
  font-weight: 600;
}

.portal-client-chip-val {
  color: var(--color-ink);
  font-weight: 600;
}

.portal-client-chip a {
  color: var(--color-green-rich);
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 106, 79, 0.3);
}

.portal-client-chip a:hover {
  color: var(--color-gold-dark);
  border-bottom-color: rgba(214, 90, 40, 0.45);
}

.portal-status-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 900px) {
  .portal-status-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .portal-status-cards {
    grid-template-columns: 1fr;
  }
}

.portal-status-card {
  background: #fff;
  border: 1px solid rgba(26, 61, 48, 0.1);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  box-shadow: 0 2px 12px rgba(42, 24, 16, 0.04);
}

.portal-status-card-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-ink-muted);
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.portal-status-card-value {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-ink);
  word-break: break-word;
}

.portal-status-card-value--muted {
  font-weight: 600;
  color: var(--color-ink-muted);
  font-size: 0.88rem;
}

.portal-badge--status {
  font-weight: 700;
}

.portal-dashboard-grid--client {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 700px) {
  .portal-dashboard-grid--client {
    grid-template-columns: 1fr;
  }
}

.portal-panel--client {
  padding: 1.25rem 1.3rem;
  box-shadow: 0 8px 28px rgba(42, 24, 16, 0.05);
  border: 1px solid rgba(26, 61, 48, 0.09);
}

.portal-panel--help {
  background: linear-gradient(165deg, rgba(255, 252, 248, 0.95) 0%, rgba(232, 242, 235, 0.35) 100%);
}

.portal-client-linklist {
  margin: 0 0 0.85rem;
  padding: 0 0 0 1.15rem;
  color: var(--color-ink);
}

.portal-client-linklist a {
  color: var(--color-green-rich);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 106, 79, 0.25);
}

.portal-client-linklist a:hover {
  color: var(--color-gold-dark);
  border-bottom-color: rgba(214, 90, 40, 0.4);
}

.portal-client-linklist li + li {
  margin-top: 0.45rem;
}

.portal-dl--comfortable > div {
  grid-template-columns: minmax(100px, 34%) 1fr;
  gap: 0.4rem 1rem;
}

.portal-panel-head {
  margin-bottom: 1rem;
}

.portal-panel-desc {
  margin: -0.35rem 0 0;
  max-width: 58ch;
}

.portal-panel--form-block {
  max-width: 760px;
}

.portal-form-actions--inline {
  margin-top: 0.5rem;
}

.portal-panel--abstracts {
  padding: 1.25rem 1.35rem 1.35rem;
}

.portal-abstract-toolbar {
  align-items: flex-start;
}

.portal-abstract-toolbar-text {
  flex: 1 1 220px;
  min-width: 0;
}

.portal-abstracts-heading {
  margin-bottom: 0.35rem;
}

.portal-abstracts-sub {
  margin: 0;
  max-width: 52ch;
}

.portal-abstract-new {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.portal-btn-plus {
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.9;
}

.portal-abstract-empty {
  text-align: center;
  padding: 2.25rem 1.25rem;
  border: 1px dashed rgba(214, 90, 40, 0.35);
  border-radius: calc(var(--radius) + 2px);
  background: rgba(255, 252, 248, 0.65);
}

.portal-abstract-empty-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.4rem;
  color: var(--color-green-rich);
}

.portal-abstract-empty-text {
  margin: 0 auto 1.15rem;
  max-width: 40ch;
  color: var(--color-ink-muted);
  font-size: 0.95rem;
}

.portal-abstract-empty-cta {
  margin: 0 auto;
}

.portal-abstract-card {
  border-left: 4px solid var(--color-gold);
  box-shadow: 0 4px 20px rgba(42, 24, 16, 0.05);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.portal-abstract-card:hover {
  box-shadow: 0 8px 28px rgba(42, 24, 16, 0.08);
  border-left-color: var(--color-green-bright);
}

.portal-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.portal-pill--type {
  background: rgba(26, 61, 48, 0.1);
  color: var(--color-green-rich);
}

.portal-pill--status {
  background: rgba(214, 90, 40, 0.12);
  color: var(--color-gold-dark);
}

.portal-modal-dialog--client {
  max-width: 520px;
}

.portal-footer--client {
  background: rgba(255, 255, 255, 0.4);
}

@media (min-width: 769px) {
  .portal-app--client {
    align-items: start;
  }

  .portal-sidebar--client {
    position: sticky;
    top: calc(0.85rem + 52px);
  }
}

/* Register ↔ sign-in flow */
.portal-flow-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.75rem;
  margin: 0 0 1.5rem;
  padding: 0.55rem 1rem;
  background: rgba(26, 61, 48, 0.06);
  border: 1px solid rgba(26, 61, 48, 0.1);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-ink-muted);
}

.portal-flow-steps--compact {
  margin-bottom: 1rem;
  font-size: 0.78rem;
}

.portal-flow-step a {
  color: var(--color-green-rich);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.portal-flow-step a:hover {
  border-bottom-color: rgba(45, 106, 79, 0.35);
}

.portal-flow-step--current {
  color: var(--color-ink);
  padding: 0.15rem 0.65rem;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 1px 8px rgba(42, 24, 16, 0.06);
}

.portal-flow-step + .portal-flow-step::before {
  content: "→";
  margin-right: 0.65rem;
  opacity: 0.35;
  font-weight: 400;
}

.portal-page-heading--signin {
  text-align: center;
}

.portal-page-heading--signin .portal-lead {
  margin-left: auto;
  margin-right: auto;
}

.portal-main--signin {
  max-width: 480px;
  margin-inline: auto;
}

.portal-body--signin {
  background-color: #f4f0e8;
  background-image: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(214, 90, 40, 0.08) 0%, transparent 55%);
}

.portal-body--signin::before {
  opacity: 0.14;
}

.portal-card--signin {
  padding: 1.5rem 1.4rem 1.4rem;
}

.portal-signin-form {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.portal-signin-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.portal-signin-error {
  margin: 0.35rem 0 0;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  color: #6b1c1c;
  background: rgba(180, 40, 40, 0.08);
  border-radius: 10px;
  border: 1px solid rgba(180, 40, 40, 0.18);
}

.portal-signin-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.35rem 0 0.85rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-ink-muted);
}

.portal-signin-divider::before,
.portal-signin-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(26, 61, 48, 0.12);
}

.portal-signin-footer-actions {
  margin: 0;
  text-align: center;
}

.portal-signin-footer-actions .btn {
  width: 100%;
}

.portal-signin-hint {
  margin: 1.15rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-ink-muted);
}

.portal-banner {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  line-height: 1.45;
}

.portal-banner--success {
  background: rgba(45, 106, 79, 0.1);
  border: 1px solid rgba(45, 106, 79, 0.22);
  color: var(--color-green-rich);
}

.portal-flow-switch {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--color-ink-muted);
}

.portal-flow-switch a {
  font-weight: 700;
  color: var(--color-green-rich);
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 106, 79, 0.35);
}

.portal-flow-switch a:hover {
  color: var(--color-gold-dark);
  border-bottom-color: rgba(214, 90, 40, 0.4);
}

.portal-success-hint {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--color-ink-muted);
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

.portal-success .portal-success-actions {
  flex-direction: column;
  align-items: stretch;
}

@media (min-width: 520px) {
  .portal-success .portal-success-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }
}

.portal-client-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin: 1.25rem 0 0;
}

/* ── Email & phone links: always orange across all site pages ───────────────── */
/* :not(.btn) preserves white text on call-to-action buttons with mailto: hrefs */
a[href^="mailto:"]:not(.btn),
a[href^="tel:"]:not(.btn) {
  color: var(--color-gold-light);
}
a[href^="mailto:"]:not(.btn):hover,
a[href^="tel:"]:not(.btn):hover {
  color: #ffd4a8;
}

/* ══════════════════════════════════════════════════════════════════
   PAGE ANIMATIONS
   Hero: CSS keyframes fire on load.
   Scroll elements: .will-animate starts hidden; JS adds .is-visible.
   All animations respect prefers-reduced-motion.
══════════════════════════════════════════════════════════════════ */

/* ── Keyframes ─────────────────────────────────────────────────── */
@keyframes nzFadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes nzFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes nzScaleUp {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1);    }
}
@keyframes nzSlideRight {
  from { opacity: 0; transform: translateX(-36px); }
  to   { opacity: 1; transform: translateX(0);     }
}
@keyframes nzSlideLeft {
  from { opacity: 0; transform: translateX(36px); }
  to   { opacity: 1; transform: translateX(0);    }
}
@keyframes nzPopIn {
  0%   { opacity: 0; transform: scale(0.82); }
  65%  { transform: scale(1.05);             }
  100% { opacity: 1; transform: scale(1);    }
}
@keyframes nzCounterPulse {
  0%   { transform: scale(1);    }
  50%  { transform: scale(1.12); }
  100% { transform: scale(1);    }
}

/* ── Hero: fires immediately on page load ──────────────────────── */
.hero-logo {
  animation: nzScaleUp 0.9s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}
.hero-admaiora {
  animation: nzFadeUp 0.65s ease both 0.25s;
}
.hero-host {
  animation: nzFadeUp 0.65s ease both 0.38s;
}
.hero-collab {
  animation: nzFadeUp 0.55s ease both 0.48s;
}
.hero-tagline {
  animation: nzFadeUp 0.65s ease both 0.55s;
}
.hero-meta {
  animation: nzFadeUp 0.6s ease both 0.7s;
}
.hero-actions {
  animation: nzFadeUp 0.6s ease both 0.85s;
}
.hero-inset--1 { animation: nzSlideLeft 0.7s cubic-bezier(0.25,0.8,0.25,1) both 0.55s; }
.hero-inset--2 { animation: nzSlideLeft 0.7s cubic-bezier(0.25,0.8,0.25,1) both 0.72s; }
.hero-inset--3 { animation: nzSlideLeft 0.7s cubic-bezier(0.25,0.8,0.25,1) both 0.89s; }
.hero-inset--4 { animation: nzSlideLeft 0.7s cubic-bezier(0.25,0.8,0.25,1) both 1.06s; }
.hero-photo-credit {
  animation: nzFadeIn 0.8s ease both 1.2s;
}

/* ── Scroll-reveal base ────────────────────────────────────────── */
.will-animate {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.will-animate.from-left {
  transform: translateX(-36px);
}
.will-animate.from-right {
  transform: translateX(36px);
}
.will-animate.scale-in {
  transform: scale(0.9);
}
.will-animate.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger delays for grid children */
.will-animate[data-delay="1"] { transition-delay: 0.08s; }
.will-animate[data-delay="2"] { transition-delay: 0.16s; }
.will-animate[data-delay="3"] { transition-delay: 0.24s; }
.will-animate[data-delay="4"] { transition-delay: 0.32s; }
.will-animate[data-delay="5"] { transition-delay: 0.40s; }
.will-animate[data-delay="6"] { transition-delay: 0.48s; }
.will-animate[data-delay="7"] { transition-delay: 0.56s; }
.will-animate[data-delay="8"] { transition-delay: 0.64s; }

/* Countdown number pulse when it becomes visible */
.countdown-number.nz-pulsed {
  animation: nzCounterPulse 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}

/* ── Reduced motion: disable everything ────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-logo, .hero-admaiora, .hero-host, .hero-collab,
  .hero-tagline, .hero-meta, .hero-actions, .hero-photo-credit,
  .hero-inset--1, .hero-inset--2, .hero-inset--3, .hero-inset--4 {
    animation: none;
  }
  .will-animate {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .countdown-number.nz-pulsed {
    animation: none;
  }
}
