/* ==========================================================================
   Bazzar Raya KL 2027 — Partner landing page
   Tokens first; every section below uses them. No hard-coded colours/fonts.
   ========================================================================== */

:root {
  /* Colour */
  --maroon-950: #24060E;
  --maroon-900: #3A0A14;
  --maroon-800: #4E0E1C;
  --maroon-700: #6B1426;
  --maroon-600: #851C33;
  --gold-200: #F3E2BF;
  --gold-300: #E8CFA0;
  --gold-400: #D8B27A;
  --gold-500: #C0965A;
  --gold-600: #8A6434;   /* gold text on cream (AA) */
  --gold-700: #6E4F27;
  --cream-50: #FBF6EF;
  --cream-100: #F5ECDF;
  --cream-200: #EADBC6;
  --ink: #2B1A1D;
  --ink-soft: #5E4A4D;
  --on-dark: #FBF6EF;
  --on-dark-soft: rgba(251, 246, 239, .76);
  --line-light: rgba(138, 100, 52, .22);
  --line-dark: rgba(216, 178, 122, .28);
  --error: #B42318;
  --error-on-dark: #FFB4A8;

  /* Type */
  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-caps: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --font-sans: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-h1: clamp(2.6rem, 1.6rem + 3.6vw, 4.6rem);
  --fs-h2: clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem);
  --fs-h3: clamp(1.35rem, 1.2rem + .5vw, 1.6rem);
  --fs-lead: clamp(1.05rem, 1rem + .35vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: .875rem;
  --fs-eyebrow: .78rem;

  /* Space & shape */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 9vw, 128px);
  --header-h: 76px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(58, 10, 20, .06);
  --shadow: 0 18px 40px -18px rgba(58, 10, 20, .28);
  --shadow-lg: 0 40px 80px -30px rgba(20, 3, 8, .6);
  --shadow-gold: 0 10px 30px -10px rgba(216, 178, 122, .65);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Islamic 8-point star-and-cross lattice with khatam stars (120px tile) */
  --pattern-light: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxMjAnIGhlaWdodD0nMTIwJyB2aWV3Qm94PScwIDAgMTIwIDEyMCc+PGcgZmlsbD0nbm9uZScgc3Ryb2tlPScjOEE2NDM0JyBzdHJva2Utb3BhY2l0eT0nLjA5Jz48cGF0aCBkPSdNMTIwLjAgNjAuMEwxMDIuNCA3Ny42TDEwMi40IDEwMi40TDc3LjYgMTAyLjRMNjAuMCAxMjAuMEw0Mi40IDEwMi40TDE3LjYgMTAyLjRMMTcuNiA3Ny42TDAuMCA2MC4wTDE3LjYgNDIuNEwxNy42IDE3LjZMNDIuNCAxNy42TDYwLjAgMC4wTDc3LjYgMTcuNkwxMDIuNCAxNy42TDEwMi40IDQyLjRaJy8+PHBhdGggZD0nTTYwLjAgMC4wTDQyLjQgMTcuNkw0Mi40IDQyLjRMMTcuNiA0Mi40TDAuMCA2MC4wTC0xNy42IDQyLjRMLTQyLjQgNDIuNEwtNDIuNCAxNy42TC02MC4wIDAuMEwtNDIuNCAtMTcuNkwtNDIuNCAtNDIuNEwtMTcuNiAtNDIuNEwtMC4wIC02MC4wTDE3LjYgLTQyLjRMNDIuNCAtNDIuNEw0Mi40IC0xNy42WicvPjxwYXRoIGQ9J00xODAuMCAwLjBMMTYyLjQgMTcuNkwxNjIuNCA0Mi40TDEzNy42IDQyLjRMMTIwLjAgNjAuMEwxMDIuNCA0Mi40TDc3LjYgNDIuNEw3Ny42IDE3LjZMNjAuMCAwLjBMNzcuNiAtMTcuNkw3Ny42IC00Mi40TDEwMi40IC00Mi40TDEyMC4wIC02MC4wTDEzNy42IC00Mi40TDE2Mi40IC00Mi40TDE2Mi40IC0xNy42WicvPjxwYXRoIGQ9J002MC4wIDEyMC4wTDQyLjQgMTM3LjZMND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5Ni4wTDEyOS45IDE0NC4wTDk2LjAgMTEwLjFMMTQ0LjAgMTEwLjFMMTEwLjEgMTQ0LjBMMTEwLjEgOTYuMFonLz48L2c+PC9zdmc+");
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
svg { fill: currentColor; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-variant-numeric: lining-nums; font-weight: 600; line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; }
p { text-wrap: pretty; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
em { font-style: italic; }
h1 em, h2 em { color: var(--gold-600); font-weight: 600; }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 18px; border-radius: var(--radius-pill);
  background: var(--gold-400); color: var(--maroon-900); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.gold { color: var(--gold-300); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-caps); font-size: var(--fs-eyebrow); font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase; color: var(--gold-600);
}
.eyebrow::before, .eyebrow::after {
  content: ""; width: clamp(22px, 5vw, 44px); height: 9px; flex: none;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat,
    radial-gradient(circle, currentColor 2px, transparent 2.5px) right center / 9px 9px no-repeat;
  opacity: .7;
}
.eyebrow::before { transform: scaleX(-1); }
.eyebrow--light { color: var(--gold-400); }
.eyebrow--left::before { display: none; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--gold-400); --btn-fg: var(--maroon-900);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 12px 26px;
  border: 0; border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-sans); font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn::after { /* sheen */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: linear-gradient(135deg, var(--gold-300), var(--gold-400) 55%, var(--gold-500)); box-shadow: var(--shadow-gold); }
.btn--gold:hover { box-shadow: 0 16px 36px -10px rgba(216, 178, 122, .8); }
.btn--maroon { --btn-fg: var(--gold-200); background: linear-gradient(135deg, var(--maroon-600), var(--maroon-800)); box-shadow: 0 12px 28px -12px rgba(78, 14, 28, .7); }
.btn--sm { min-height: 42px; padding: 8px 20px; font-size: .74rem; }
.btn--ghost { --btn-fg: var(--gold-200); background: transparent; box-shadow: inset 0 0 0 1px var(--line-dark); }
.btn--ghost:hover { background: rgba(216, 178, 122, .1); box-shadow: inset 0 0 0 1px var(--gold-400); }
.btn--lg { min-height: 56px; padding: 14px 32px; }
.btn--block { width: 100%; }

/* ---------- Ornaments ---------- */
.ornament { position: absolute; pointer-events: none; color: var(--gold-400); }
.ornament--hero-l { width: 520px; height: 520px; left: -260px; bottom: -200px; opacity: .1; }
.ornament--tr { width: 420px; height: 420px; right: -180px; top: -160px; color: var(--gold-600); opacity: .12; }
.ornament--past { width: 560px; height: 560px; left: -240px; top: -120px; opacity: .07; }
.ornament--why { width: 640px; height: 640px; right: -260px; top: 50%; translate: 0 -50%; opacity: .07; }
.ornament--closing { width: 760px; height: 760px; left: 50%; top: 50%; translate: -50% -50%; opacity: .08; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--on-dark);
  transition: background-color .4s, box-shadow .4s, backdrop-filter .4s;
}
.site-header.is-scrolled, .nav-open .site-header {
  background: rgba(58, 10, 20, .88);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line-dark);
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; text-decoration: none; transition: opacity .25s; }
.brand:hover { opacity: .85; }
.brand picture { display: block; }
.brand__logo { width: auto; max-width: none; height: 46px; }
@media (max-width: 560px) { .brand__logo { height: 40px; } }

.site-nav { display: flex; align-items: center; gap: 36px; margin-left: auto; }

/* EN | BM language switch (separate pages: index.html / ms.html) */
.lang-switch { display: flex; align-items: center; gap: 2px; padding: 3px; flex: none; border: 1px solid var(--line-dark); border-radius: var(--radius-pill); }
.lang-switch a {
  min-width: 38px; padding: 6px 10px; border-radius: var(--radius-pill);
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-align: center; text-decoration: none;
  color: var(--on-dark-soft); transition: color .2s, background-color .2s;
}
.lang-switch a:hover { color: var(--gold-300); }
.lang-switch a[aria-current="page"] { background: rgba(216, 178, 122, .2); color: var(--gold-200); }
.site-nav ul { display: flex; gap: clamp(18px, 2vw, 30px); }
.site-nav__cta { white-space: nowrap; }
.site-nav ul a {
  position: relative; padding: 6px 0;
  font-size: .82rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; color: var(--on-dark-soft); transition: color .25s; white-space: nowrap;
}
.site-nav ul a::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 1px;
  background: var(--gold-400); transition: left .3s var(--ease), right .3s var(--ease);
}
.site-nav ul a:hover, .site-nav ul a[aria-current="true"] { color: var(--gold-300); }
.site-nav ul a:hover::after, .site-nav ul a[aria-current="true"]::after { left: 0; right: 0; }

.nav-toggle {
  display: none; width: 46px; height: 46px; padding: 11px;
  border: 1px solid var(--line-dark); border-radius: 50%;
  background: transparent; color: var(--gold-300); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

@media (max-width: 1180px) { /* 6 nav items + CTA + language switch need ~1180px in Malay */
  .nav-toggle { display: inline-grid; place-items: center; }
  .lang-switch { margin-left: auto; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto; height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; justify-content: space-between; gap: 32px;
    padding: 32px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: var(--maroon-900) var(--pattern-dark);
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a {
    display: block; padding: 18px 0; border-bottom: 1px solid var(--line-dark);
    font-family: var(--font-display); font-size: 1.9rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--on-dark);
  }
  .site-nav ul a::after { display: none; }
  .site-nav__cta { min-height: 56px; }
  .nav-open { overflow: hidden; }
}

/* ==========================================================================
   1. Hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden; color: var(--on-dark);
  padding: calc(var(--header-h) + clamp(20px, 3vw, 40px)) 0 clamp(64px, 8vw, 110px);
  background:
    radial-gradient(1000px 600px at 78% 40%, rgba(216, 178, 122, .16), transparent 60%),
    radial-gradient(800px 700px at 0% 100%, rgba(133, 28, 51, .55), transparent 65%),
    var(--pattern-dark),
    linear-gradient(160deg, var(--maroon-800), var(--maroon-950) 75%);
}
.hero::after { /* gold hairline at bottom */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent); opacity: .5;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(40px, 6vw, 88px); align-items: center; }

.hero__content > :not(.hero__logo) { animation: rise .9s var(--ease) both; } /* logo paints immediately (LCP) */
.hero__content > :nth-child(2) { animation-delay: .08s; }
.hero__content > :nth-child(3) { animation-delay: .16s; }
.hero__content > :nth-child(4) { animation-delay: .24s; }
.hero__content > :nth-child(5) { animation-delay: .32s; }
.hero__content > :nth-child(6) { animation-delay: .4s; }

.hero__backdrop {
  position: absolute; inset: 0; pointer-events: none;
  background: center / cover no-repeat; opacity: 0; transition: opacity 1.2s var(--ease);
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 75%);
  mask-image: linear-gradient(90deg, transparent 20%, #000 75%);
}
/* Decorative backdrop loads after the page (keeps it off the critical path) */
.hero.has-backdrop .hero__backdrop {
  background-image: url("../img/hero-backdrop.jpg");
  background-image: image-set(url("../img/hero-backdrop.webp") type("image/webp"), url("../img/hero-backdrop.jpg") type("image/jpeg"));
  opacity: .3;
}
.hero__logo { display: block; width: clamp(190px, 16vw, 236px); margin-bottom: 14px; }
.hero__logo img { width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); }

/* Event pillars under the logo, styled after the key-visual poster */
.hero__tags {
  display: flex; flex-wrap: wrap; align-items: center; row-gap: 6px;
  font-family: var(--font-caps); font-size: .8rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  color: var(--on-dark);
}
.hero__tags li + li::before { /* gold diamond separator */
  content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 .95em 0 .7em; vertical-align: .2em;
  background: var(--gold-400); transform: rotate(45deg);
}
.hero__title { margin-top: 14px; font-size: clamp(2.4rem, 1.5rem + 2.6vw, 3.75rem); font-weight: 600; line-height: 1.02; color: var(--cream-50); }
.hero__title em {
  color: transparent; font-weight: 600;
  background: linear-gradient(100deg, var(--gold-200), var(--gold-400) 50%, var(--gold-300));
  -webkit-background-clip: text; background-clip: text;
}
.hero__lead { margin-top: 24px; max-width: 34em; font-size: var(--fs-lead); line-height: 1.6; color: var(--on-dark-soft); }
.hero__lead strong { color: var(--on-dark); font-weight: 600; }
.hero__lead .gold { color: var(--gold-300); }

.hero__trio {
  margin-top: 28px; display: flex; flex-wrap: wrap;
  border-block: 1px solid var(--line-dark);
}
.hero__trio li {
  flex: 1 1 0; min-width: 140px; display: flex; align-items: center; gap: 12px;
  padding: 18px 18px 18px 0;
  font-size: .8rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; line-height: 1.35; color: var(--on-dark);
}
.hero__trio li + li { padding-left: 18px; border-left: 1px solid var(--line-dark); }
.hero__trio svg { width: 30px; height: 30px; flex: none; color: var(--gold-400); }

.hero__actions { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; }
.hero__note { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-small); color: var(--on-dark-soft); }
.hero__note svg { width: 16px; height: 16px; color: var(--gold-400); }

.hero__visual { position: relative; animation: rise 1.1s .15s var(--ease) both; }
.arch {
  position: relative; aspect-ratio: 536 / 608; max-width: 490px; margin-inline: auto;
  border-radius: 50% 50% var(--radius-lg) var(--radius-lg) / 34% 34% var(--radius-lg) var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(216, 178, 122, .45);
}
.arch picture { display: block; height: 100%; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.hero__visual::before { /* offset gold frame */
  content: ""; position: absolute; inset: -14px; max-width: 518px; margin-inline: auto; pointer-events: none;
  border: 1px solid rgba(216, 178, 122, .4);
  border-radius: 50% 50% calc(var(--radius-lg) + 8px) calc(var(--radius-lg) + 8px) / 34% 34% calc(var(--radius-lg) + 8px) calc(var(--radius-lg) + 8px);
}

.seal { position: absolute; top: 6%; right: -2%; width: 116px; height: 116px; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .35)); }
.seal__bg { fill: var(--maroon-900); stroke: var(--gold-400); stroke-width: 1; }
.seal__ring { fill: none; stroke: var(--gold-400); stroke-opacity: .5; }
.seal__text { transform-origin: 60px 60px; animation: spin 28s linear infinite; }
.seal__text text { font-family: var(--font-caps); font-size: 10px; font-weight: 600; letter-spacing: .5px; fill: var(--gold-300); }
.seal__star { color: var(--gold-400); }

.hero__badge {
  position: absolute; left: -6%; bottom: 12%;
  display: flex; align-items: center; gap: 14px; padding: 14px 20px 14px 16px;
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  background: rgba(36, 6, 14, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite alternate;
}
.hero__badge svg { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: rgba(216, 178, 122, .14); color: var(--gold-300); }
.hero__badge strong { display: block; font-variant-numeric: lining-nums; font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; line-height: 1; color: var(--gold-300); }
.hero__badge span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-soft); }
.hero__badge--alt { left: auto; right: -4%; bottom: -3%; animation-delay: -3s; }
.hero__badge--alt strong { font-size: 1.2rem; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__content { text-align: center; }
  .hero__logo { margin-inline: auto; }
  .hero__tags { justify-content: center; }
  .hero__backdrop {
    -webkit-mask-image: linear-gradient(180deg, transparent 40%, #000 85%);
    mask-image: linear-gradient(180deg, transparent 40%, #000 85%);
  }
  .hero__lead { margin-inline: auto; }
  .hero__trio, .hero__actions { justify-content: center; }
  .hero__visual { max-width: 460px; width: 100%; margin-inline: auto; }
}
@media (max-width: 560px) {
  .hero__trio { display: grid; grid-template-columns: repeat(3, 1fr); }
  .hero__tags { font-size: .62rem; letter-spacing: .14em; }
  /* keep the hero CTA on the first screen of small phones (360x740) */
  .hero__logo { width: 168px; margin-bottom: 10px; }
  .hero__lead { margin-top: 16px; }
  .hero__trio { margin-top: 20px; }
  .hero__actions { margin-top: 22px; }
  .hero__tags li + li::before { width: 4px; height: 4px; margin: 0 .7em 0 .55em; }
  .hero__trio li { min-width: 0; flex-direction: column; text-align: center; gap: 8px; padding: 16px 6px; font-size: .68rem; letter-spacing: .06em; }
  .hero__trio li + li { padding-left: 6px; }
  .hero__actions .btn { width: 100%; }
  .hero__badge { left: 0; padding: 10px 14px 10px 12px; }
  .hero__badge strong { font-size: 1.25rem; }
  .hero__badge--alt { display: none; }
  .seal { width: 92px; height: 92px; right: 0; }
  .hero__visual::before { inset: -10px; }
}

/* ==========================================================================
   Shared section styles
   ========================================================================== */
.section { position: relative; overflow: hidden; padding-block: var(--section-y); }
.section--cream { background: var(--cream-50); }
.section--pattern { background: var(--pattern-light), linear-gradient(180deg, var(--cream-100), var(--cream-50)); }
.section--maroon { color: var(--on-dark); background: var(--pattern-dark), linear-gradient(170deg, var(--maroon-800), var(--maroon-900)); }
.section--deep {
  color: var(--on-dark);
  background:
    radial-gradient(700px 500px at 75% 55%, rgba(216, 178, 122, .2), transparent 65%),
    linear-gradient(160deg, var(--maroon-900), var(--maroon-950));
}

.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head h2 { margin-top: 16px; color: var(--maroon-700); }
.section-head p:not(.eyebrow) { margin-top: 18px; font-size: var(--fs-lead); color: var(--ink-soft); }
.section-head--light h2 { color: var(--cream-50); }
.section-head--light h2 em, .section--deep h2 em, .closing h2 em { color: var(--gold-400); }
.section-head--light p:not(.eyebrow) { color: var(--on-dark-soft); }

/* Scroll reveal (only when JS is running) */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   2. Reach & Impact
   ========================================================================== */
.reach { padding-bottom: calc(var(--section-y) * .9); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-light); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.stat { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(28px, 4vw, 44px) 20px; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line-light); }
.stat__icon { width: 28px; height: 28px; color: var(--gold-600); }
.stat__num {
  margin-top: 14px; font-family: var(--font-display); font-weight: 600; line-height: 1;
  font-size: clamp(2.6rem, 2rem + 2.2vw, 3.8rem); color: var(--maroon-700);
  font-variant-numeric: lining-nums tabular-nums;
}
.stat__label { margin-top: 10px; max-width: 16em; font-size: .78rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }

@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-light); }
}

/* ==========================================================================
   2b. Past Events (The Circle) — photo grid + full-screen viewer
   ========================================================================== */
.past-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 15vw, 214px);
  grid-auto-flow: dense; gap: 12px;
}
.ptile { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ph, var(--maroon-900)); }
.ptile--big { grid-column: span 2; grid-row: span 2; }
.ptile--tall { grid-row: span 2; }
.ptile a { position: absolute; inset: 0; display: block; color: var(--cream-50); }
.ptile picture, .ptile img { width: 100%; height: 100%; }
.ptile img { object-fit: cover; transition: transform .8s var(--ease), filter .5s; }
.ptile a::after { /* caption legibility */
  content: ""; position: absolute; inset: 45% 0 0; pointer-events: none;
  background: linear-gradient(transparent, rgba(20, 3, 8, .82));
}
.ptile a::before { /* gold hairline on hover/focus */
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(216, 178, 122, .25); transition: box-shadow .4s;
}
.ptile a:hover img, .ptile a:focus-visible img { transform: scale(1.05); }
.ptile a:hover::before, .ptile a:focus-visible::before { box-shadow: inset 0 0 0 2px var(--gold-400); }
.ptile a:focus-visible { outline: none; }
.ptile__cap {
  position: absolute; left: 16px; right: 16px; bottom: 13px; z-index: 1;
  font-size: .8rem; font-weight: 500; letter-spacing: .04em; line-height: 1.35; text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}
.ptile--big .ptile__cap { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; letter-spacing: 0; left: 22px; bottom: 18px; }
.past__actions { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 18px; }

@media (max-width: 760px) {
  .past-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 8px; }
  .ptile__cap { left: 10px; right: 10px; bottom: 9px; font-size: .7rem; }
  .ptile--big .ptile__cap { font-size: 1.15rem; left: 14px; bottom: 12px; }
  .past__actions .btn { width: 100%; }
}

.viewer {
  width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(18, 3, 8, .96); color: var(--cream-50);
}
.viewer::backdrop { background: rgba(18, 3, 8, .9); }
.viewer[open] { display: grid; place-items: center; animation: fade .3s ease both; }
.viewer__stage { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 14px; padding: 64px 72px 24px; width: 100%; box-sizing: border-box; }
.viewer__img {
  max-width: min(100%, 1600px); max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain;
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); background: var(--maroon-900);
  touch-action: pan-y; user-select: none; -webkit-user-drag: none;
}
.viewer__cap { font-size: .9rem; color: var(--on-dark-soft); text-align: center; }
.viewer__count { margin-left: 10px; font-size: .78rem; letter-spacing: .14em; color: var(--gold-400); }
.viewer__btn {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 1px solid var(--line-dark); border-radius: 50%; background: rgba(36, 6, 14, .7); color: var(--gold-200); cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.viewer__btn:hover { background: rgba(216, 178, 122, .18); border-color: var(--gold-400); }
.viewer__btn svg { width: 20px; height: 20px; }
.viewer__close { top: 16px; right: 16px; }
.viewer__prev, .viewer__next { top: 50%; translate: 0 -50%; }
.viewer__prev { left: 16px; }
.viewer__prev svg { transform: scaleX(-1); }
.viewer__next { right: 16px; }
@media (max-width: 760px) {
  .viewer__stage { padding: 64px 10px 90px; }
  .viewer__img { max-height: calc(100dvh - 190px); }
  .viewer__prev, .viewer__next { top: auto; bottom: 22px; translate: none; }
  .viewer__prev { left: calc(50% - 60px); }
  .viewer__next { right: calc(50% - 60px); }
}
.viewer-open { overflow: hidden; }

/* ==========================================================================
   3. Brands
   ========================================================================== */
/* 17 logos: flex-wrap so the short last row centres; 6 / 4 / 2 per row */
.logo-wall { --cols: 6; --gap: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); max-width: 1200px; margin-inline: auto; }
.logo {
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  display: grid; place-items: center; min-height: 136px; padding: 20px 18px;
  border: 1px solid var(--line-light); border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .85); box-shadow: var(--shadow-sm);
  color: var(--ink); text-align: center; line-height: 1.1;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.logo:hover { transform: translateY(-4px); border-color: var(--gold-400); box-shadow: var(--shadow); }
.logo picture { display: contents; }
.logo img { display: block; width: auto; height: auto; max-width: 100%; transition: transform .5s var(--ease); }
.logo:hover img { transform: scale(1.04); }
/* Optical sizing (max-* keeps every logo's proportions): wide wordmarks by width, marks by height */
.logo--wordmark img { max-width: min(88%, 190px); }
.logo--mark img { max-height: 80px; }
.logo--tall img { max-height: 92px; }              /* portrait monograms (Hawa Rizwana, Rizman Ruzaini) */
.logo--elrah img { max-height: 96px; }             /* thin crescent + small wordmark need more size to match */
.logo--compact img { max-width: min(56%, 104px); } /* heavy short wordmark (Sāff) reads large */
/* Light-on-dark logos keep their native dark presentation */
.logo--dark { background: linear-gradient(160deg, var(--maroon-900), var(--maroon-950)); border-color: var(--line-dark); }

.brands__more { margin-top: 36px; text-align: center; }
.brands__more span {
  display: inline-block; padding: 12px 28px; border: 1px solid var(--gold-500); border-radius: var(--radius-pill);
  font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-700);
}

@media (max-width: 1100px) { .logo-wall { --cols: 4; } }
@media (max-width: 760px) { .logo-wall { --cols: 2; --gap: 10px; } }
@media (max-width: 560px) {
  .logo { min-height: 112px; padding: 16px 14px; border-radius: var(--radius); }
  .logo--mark img { max-height: 68px; }
  .logo--tall img, .logo--elrah img { max-height: 80px; }
  .logo--wordmark img { max-width: 86%; }
  .logo--compact img { max-width: 54%; }
}

/* ==========================================================================
   4. Why Partner
   ========================================================================== */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: pillar; }
.pillar {
  position: relative; padding: 36px 28px 32px;
  border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  transition: transform .4s var(--ease), border-color .4s, background-color .4s;
}
.pillar:hover { transform: translateY(-6px); border-color: rgba(216, 178, 122, .6); background-color: rgba(216, 178, 122, .06); }
.pillar__num { font-variant-numeric: lining-nums; position: absolute; top: 22px; right: 24px; font-family: var(--font-display); font-size: 1.1rem; font-style: italic; color: var(--gold-400); opacity: .7; }
.pillar__icon { width: 54px; height: 54px; padding: 13px; border-radius: 50%; border: 1px solid var(--line-dark); color: var(--gold-300); background: rgba(216, 178, 122, .08); }
.pillar h3 { margin-top: 22px; color: var(--gold-200); }
.pillar p { margin-top: 10px; color: var(--on-dark-soft); font-size: .96rem; }

@media (max-width: 960px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

/* ==========================================================================
   5. Categories
   ========================================================================== */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat {
  position: relative; padding: 30px 26px 28px; border-radius: var(--radius-lg);
  border: 1px solid var(--line-light); background: #fff; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.cat::before { /* gold top accent grows on hover */
  content: ""; position: absolute; left: 26px; right: 26px; top: -1px; height: 2px;
  background: linear-gradient(90deg, var(--gold-300), var(--gold-500)); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.cat:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(192, 150, 90, .5); }
.cat:hover::before { transform: scaleX(1); }
.cat svg { width: 40px; height: 40px; color: var(--gold-600); }
.cat h3 { margin-top: 18px; font-size: 1.4rem; color: var(--maroon-700); }
.cat p { margin-top: 8px; font-size: .93rem; color: var(--ink-soft); }
.cat--feature { background: linear-gradient(160deg, var(--maroon-700), var(--maroon-900)); border-color: transparent; }
.cat--feature svg { color: var(--gold-400); }
.cat--feature h3 { color: var(--gold-200); }
.cat--feature p { color: var(--on-dark-soft); }

@media (max-width: 960px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) {
  .cat-grid { gap: 10px; }
  .cat { padding: 22px 18px; }
  .cat h3 { font-size: 1.2rem; }
  .cat p { font-size: .85rem; }
}

/* ==========================================================================
   6. Pavilion
   ========================================================================== */
.pavilion__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.pavilion h2 { margin-top: 16px; color: var(--cream-50); }
.pavilion__content > p:not(.eyebrow) { margin-top: 20px; font-size: var(--fs-lead); color: var(--on-dark-soft); }
.ticks { margin: 28px 0 36px; display: grid; gap: 14px; }
.ticks li { display: flex; align-items: center; gap: 14px; color: var(--on-dark); }
.ticks svg { width: 26px; height: 26px; padding: 5px; flex: none; border-radius: 50%; background: rgba(216, 178, 122, .16); color: var(--gold-300); }
.pavilion__art { position: relative; isolation: isolate; }
.pavilion__art::before { /* warm lantern glow behind the cut-out booth */
  content: ""; position: absolute; inset: -6% -4% 4%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(232, 207, 160, .34), rgba(216, 178, 122, .14) 55%, transparent);
  filter: blur(24px);
}
.pavilion__art::after { /* floor shadow */
  content: ""; position: absolute; left: 6%; right: 6%; bottom: 1%; height: 12%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); filter: blur(6px);
}
.pavilion__art img { width: 100%; height: auto; filter: drop-shadow(0 18px 28px rgba(20, 3, 8, .45)); }

@media (max-width: 960px) {
  .pavilion__grid { grid-template-columns: 1fr; }
  .pavilion__content { text-align: center; }
  .pavilion__content .eyebrow::before { display: block; }
  .ticks { width: fit-content; margin-inline: auto; text-align: left; }
  .pavilion__art { order: -1; max-width: 560px; margin-inline: auto; }
}
@media (max-width: 560px) { .pavilion__content .btn { width: 100%; } }

/* ==========================================================================
   7. Booking form
   ========================================================================== */
.book__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.book__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.book__intro h2 { margin-top: 16px; color: var(--maroon-700); }
.book__intro > p:not(.eyebrow) { margin-top: 20px; font-size: var(--fs-lead); color: var(--ink-soft); }
.agenda { margin-top: 24px; display: grid; gap: 4px; }
.agenda li { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-light); font-weight: 500; }
.agenda span { font-family: var(--font-display); font-variant-numeric: lining-nums; font-size: 1.2rem; font-style: italic; color: var(--gold-600); }
.book__contact { margin-top: 32px; display: grid; gap: 10px; }
.book__contact p { font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.book__contact a { display: inline-flex; align-items: center; gap: 10px; width: fit-content; color: var(--maroon-700); font-weight: 500; text-decoration: none; }
.book__contact a:hover { text-decoration: underline; text-underline-offset: 4px; }
.book__contact svg { width: 20px; height: 20px; color: var(--gold-600); }

.form-card {
  position: relative; padding: clamp(26px, 4vw, 48px);
  border-radius: var(--radius-lg); background: #fff;
  border: 1px solid var(--line-light); box-shadow: 0 50px 90px -40px rgba(58, 10, 20, .4);
}
.form-card::before { /* gold top rule */
  content: ""; position: absolute; left: 32px; right: 32px; top: 0; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--gold-300), var(--gold-500), var(--gold-300));
}
.form-card__title { font-size: 1.9rem; color: var(--maroon-700); }
.form-card__sub { margin-top: 6px; font-size: var(--fs-small); color: var(--ink-soft); }
.form-card__sub span[aria-hidden], .req { color: var(--maroon-600); }

.form-grid { margin: 28px 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; border: 0; padding: 0; }
.field--full { grid-column: 1 / -1; }
.field > label:not(.check), .field legend { font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--ink); }
.field legend { margin-bottom: 7px; padding: 0; }
.opt { font-weight: 400; color: var(--ink-soft); }
.field input:not([type="radio"]):not([type="checkbox"]), .field select {
  width: 100%; min-height: 50px; padding: 12px 16px;
  border: 1px solid var(--cream-200); border-radius: var(--radius-sm);
  background: var(--cream-50); color: var(--ink);
  font-size: 1rem; /* >=16px avoids iOS zoom */
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A6434' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input::placeholder { color: #A8979A; }
.field input:hover, .field select:hover { border-color: var(--gold-400); }
.field input:focus, .field select:focus { outline: none; border-color: var(--gold-500); background-color: #fff; box-shadow: 0 0 0 4px rgba(216, 178, 122, .25); }
.field__hint { font-size: .78rem; color: var(--ink-soft); }
.field__error { font-size: .8rem; font-weight: 500; color: var(--error); }
.field__error:empty { display: none; }
.has-error input:not([type="radio"]):not([type="checkbox"]), .has-error select { border-color: var(--error); background-color: #FFF8F7; }

.choice-group { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice__box {
  display: flex; align-items: center; gap: 14px; height: 100%; padding: 16px 18px;
  border: 1px solid var(--cream-200); border-radius: var(--radius); background: var(--cream-50);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.choice__box svg { width: 28px; height: 28px; flex: none; color: var(--gold-600); }
.choice__box strong { display: block; font-weight: 600; }
.choice__box small { display: block; font-size: .8rem; color: var(--ink-soft); }
.choice:hover .choice__box { border-color: var(--gold-400); }
.choice input:checked + .choice__box { border-color: var(--maroon-700); background: #FFF9F2; box-shadow: inset 0 0 0 1px var(--maroon-700); }
.choice input:checked + .choice__box svg { color: var(--maroon-700); }
.choice input:focus-visible + .choice__box { outline: 2px solid var(--gold-500); outline-offset: 3px; }
.has-error .choice__box { border-color: var(--error); }

.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: .88rem; color: var(--ink-soft); }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--maroon-700); cursor: pointer; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn__spinner { display: none; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.is-loading .btn__spinner { display: inline-block; }
.is-loading button[type="submit"] { pointer-events: none; opacity: .85; }
.is-loading button[type="submit"] > svg { display: none; }
.form-status { margin-top: 14px; font-size: var(--fs-small); text-align: center; color: var(--ink-soft); }
.form-status.is-error { color: var(--error); font-weight: 500; }

.form-success { text-align: center; padding: clamp(12px, 3vw, 32px) 0; animation: rise .7s var(--ease) both; }
.form-success:focus { outline: none; }
.form-success__icon {
  display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500)); color: var(--maroon-900); box-shadow: var(--shadow-gold);
}
.form-success__icon svg { width: 36px; height: 36px; }
.form-success h3 { font-size: 2.2rem; color: var(--maroon-700); }
.form-success p { margin-top: 12px; color: var(--ink-soft); }
.form-success p strong { color: var(--ink); }
.form-success__small { font-family: var(--font-display); font-size: 1.15rem; font-style: italic; color: var(--gold-600) !important; }

@media (max-width: 960px) {
  .book__grid { grid-template-columns: 1fr; }
  .book__intro { position: static; }
}
@media (max-width: 560px) {
  .btn--lg { padding-inline: 20px; font-size: .72rem; letter-spacing: .07em; gap: 10px; }
  .eyebrow { gap: 10px; letter-spacing: .2em; }
  .form-grid { grid-template-columns: 1fr; }
  .choice-group { grid-template-columns: 1fr; }
}

/* ==========================================================================
   8. Closing CTA + Footer
   ========================================================================== */
.closing {
  position: relative; overflow: hidden; color: var(--on-dark); text-align: center;
  padding-block: clamp(80px, 10vw, 140px);
  background:
    radial-gradient(600px 400px at 50% 50%, rgba(216, 178, 122, .18), transparent 70%),
    var(--pattern-dark),
    linear-gradient(180deg, var(--maroon-800), var(--maroon-900));
}
.closing__inner { position: relative; max-width: 760px; }
.closing__logo { display: block; width: clamp(200px, 24vw, 280px); margin: 0 auto 30px; }
.closing__logo img { width: 100%; height: auto; filter: drop-shadow(0 20px 34px rgba(0, 0, 0, .45)); }
.closing h2 { color: var(--cream-50); }
.closing p { margin: 20px auto 36px; max-width: 36em; font-size: var(--fs-lead); color: var(--on-dark-soft); }

.site-footer { padding-top: clamp(56px, 7vw, 80px); color: var(--on-dark-soft); background: var(--maroon-950); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.site-footer__brand p { margin-top: 18px; max-width: 30em; font-size: .94rem; }
.site-footer__logos { display: flex; align-items: center; gap: 28px; }
.site-footer__logo { display: inline-block; flex: none; }
.site-footer__logo img { width: 150px; height: auto; }
.site-footer__presented { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-left: 28px; border-left: 1px solid var(--line-dark); }
.site-footer__presented span { font-family: var(--font-caps); font-size: .66rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-400); }
.site-footer__presented img { width: auto; max-width: none; height: 92px; }
@media (max-width: 420px) { /* longer Malay label ("Dipersembahkan oleh") must still fit at 360px */
  .site-footer__logos { gap: 18px; }
  .site-footer__logo img { width: 128px; }
  .site-footer__presented { padding-left: 18px; }
  .site-footer__presented span { letter-spacing: .14em; text-align: center; }
}
.site-footer__h { margin-bottom: 16px; font-family: var(--font-caps); font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-400); }
.site-footer ul { display: grid; gap: 10px; font-size: .94rem; }
.site-footer ul a { text-decoration: none; transition: color .2s; }
.site-footer ul a:hover { color: var(--gold-300); }
.socials { margin-top: 20px; display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-dark); border-radius: 50%; color: var(--gold-300); transition: background-color .25s, color .25s; }
.socials a:hover { background: var(--gold-400); color: var(--maroon-900); }
.socials svg { width: 18px; height: 18px; }
.site-footer__base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 24px calc(24px + env(safe-area-inset-bottom)); font-size: .82rem; }

@media (max-width: 760px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) { .site-footer { padding-bottom: 76px; } } /* room for mobile CTA */

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(36, 6, 14, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line-dark);
    transform: translateY(110%); transition: transform .4s var(--ease);
  }
  .show-mobile-cta .mobile-cta { transform: none; }
  .nav-open .mobile-cta { transform: translateY(110%); }
}

/* ---------- Keyframes & motion ---------- */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-10px); } }
@keyframes sway { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
@keyframes twinkle { from { opacity: .3; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
}
