/* ==========================================================================
   LANKA INTEGRATIVE WELLNESS — DESIGN SYSTEM
   Cinematic eProfile aesthetic · dark + light · premium typography
   ========================================================================== */

/* ---------- 1. TOKENS ---------------------------------------------------- */
:root {
  /* Brand — navy + gold + teal (from the official emblem) */
  --navy-900: #0a1533;
  --navy-800: #101f52;
  --navy-700: #1a2f6e;
  --navy-600: #26409c;
  --navy-500: #3a58c9;
  --navy-300: #93a8ef;
  --gold-600:  #b3892f;
  --gold-500:  #c9a34e;
  --gold-400:  #e0be6f;
  --gold-200:  #f0e0b8;
  --teal-500:  #2ba99a;
  --teal-300:  #62d2c3;
  --cream:     #faf7f0;
  --sand:      #efe8d8;

  /* Fluid type scale */
  --step--1: clamp(.82rem, .78rem + .2vw, .9rem);
  --step-0:  clamp(1rem, .95rem + .25vw, 1.125rem);
  --step-1:  clamp(1.2rem, 1.1rem + .5vw, 1.5rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2.15rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3.15rem);
  --step-4:  clamp(2.6rem, 2rem + 3.4vw, 4.75rem);
  --step-5:  clamp(3.2rem, 2.3rem + 5vw, 6.5rem);

  --font-display: "Fraunces", "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: clamp(1.15rem, 4vw, 3rem);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: .5s;
}

/* Light theme (default) */
:root, [data-theme="light"] {
  --bg: #f7f3ea;
  --bg-2: #fffdf8;
  --bg-3: #efe8d8;
  --surface: #ffffff;
  --surface-2: #fbf8f1;
  --ink: #17251f;
  --ink-soft: #445048;
  --ink-mute: #6c7871;
  --line: #e4dccb;
  --line-soft: #efe8d8;
  --brand: var(--navy-700);
  --brand-ink: var(--navy-800);
  --accent: var(--gold-600);
  --accent-soft: #f4ecd6;
  --teal: var(--teal-500);
  --hero-grad: radial-gradient(120% 120% at 80% 0%, #eaeffb 0%, #f7f5ee 52%, #f3eddc 100%);
  --card-shadow: 0 1px 2px rgba(20,30,70,.05), 0 18px 40px -24px rgba(26,47,110,.24);
  --glass: rgba(255,253,248,.72);
  --glass-line: rgba(26,47,110,.10);
  color-scheme: light;
}

/* Dark theme */
[data-theme="dark"] {
  --bg: #060b1c;
  --bg-2: #0a1330;
  --bg-3: #0c1838;
  --surface: #0e1a3d;
  --surface-2: #12214a;
  --ink: #eef1f9;
  --ink-soft: #c1cbe4;
  --ink-mute: #8792ad;
  --line: #ffffff14;
  --line-soft: #16224a;
  --brand: var(--navy-300);
  --brand-ink: #dfe6fb;
  --accent: var(--gold-400);
  --accent-soft: #16224e;
  --teal: var(--teal-300);
  --hero-grad: radial-gradient(120% 120% at 80% -10%, #16276b 0%, #0a1330 55%, #05091a 100%);
  --card-shadow: 0 1px 2px rgba(0,0,0,.4), 0 26px 60px -30px rgba(0,0,0,.75);
  --glass: rgba(10,20,50,.64);
  --glass-line: rgba(140,160,240,.14);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #060b1c; --bg-2: #0a1330; --bg-3: #0c1838;
    --surface: #0e1a3d; --surface-2: #12214a;
    --ink: #eef1f9; --ink-soft: #c1cbe4; --ink-mute: #8792ad;
    --line: #ffffff14; --line-soft: #16224a;
    --brand: var(--navy-300); --brand-ink: #dfe6fb;
    --accent: var(--gold-400); --accent-soft: #16224e; --teal: var(--teal-300);
    --hero-grad: radial-gradient(120% 120% at 80% -10%, #16276b 0%, #0a1330 55%, #05091a 100%);
    --card-shadow: 0 1px 2px rgba(0,0,0,.4), 0 26px 60px -30px rgba(0,0,0,.75);
    --glass: rgba(10,20,50,.64); --glass-line: rgba(140,160,240,.14);
    color-scheme: dark;
  }
}

/* ---------- 2. RESET / BASE --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}

img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; color: var(--ink); }
::selection { background: var(--accent); color: #1a1206; }

/* ---------- 3. LAYOUT ---------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: 1360px; }
.section { padding-block: clamp(4rem, 9vw, 8rem); position: relative; }
.section-sm { padding-block: clamp(3rem, 6vw, 5rem); }
.grid { display: grid; gap: clamp(1.1rem, 2.5vw, 2rem); }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

/* ---------- 4. TYPOGRAPHY UTILITIES ------------------------------------- */
.kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 600;
  font-size: var(--step--1); letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
}
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--accent); opacity: .8; }
.eyebrow { color: var(--brand); font-weight: 600; letter-spacing: .04em; }
.display { font-size: var(--step-4); }
.h1 { font-size: var(--step-4); }
.h2 { font-size: var(--step-3); }
.h3 { font-size: var(--step-2); }
.lead { font-size: var(--step-1); color: var(--ink-soft); font-weight: 400; line-height: 1.5; }
.muted { color: var(--ink-mute); }
.serif { font-family: var(--font-display); }
.balance { text-wrap: balance; }
.max-60 { max-width: 60ch; }
.max-46 { max-width: 46ch; }
.gold { color: var(--accent); }

/* ---------- 5. BUTTONS -------------------------------------------------- */
.btn {
  --btn-bg: var(--brand); --btn-ink: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.6rem; border-radius: 100px; border: 1px solid transparent;
  font-weight: 600; font-size: var(--step-0); letter-spacing: .01em;
  background: var(--btn-bg); color: var(--btn-ink);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px color-mix(in srgb, var(--btn-bg) 60%, transparent); }
.btn:active { transform: translateY(0); }
.btn-primary { --btn-bg: var(--brand); --btn-ink: #fff; }
[data-theme="dark"] .btn-primary, :root:not([data-theme="light"]) .btn-primary { --btn-ink: #050b1c; }
.btn-gold { --btn-bg: linear-gradient(120deg, var(--gold-500), var(--gold-400)); --btn-ink: #241703; }
.btn-gold { background-image: var(--btn-bg); }
.btn-ghost { --btn-bg: transparent; --btn-ink: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: none; }
.btn-outline { --btn-bg: transparent; --btn-ink: var(--brand); border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.btn-lg { padding: 1.1rem 2.1rem; font-size: var(--step-1); }
.btn-sm { padding: .6rem 1.1rem; font-size: var(--step--1); }
.btn-block { display: flex; width: 100%; }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- 6. HEADER / NAV --------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s var(--ease), backdrop-filter .4s, border-color .4s, padding .4s;
  border-bottom: 1px solid transparent;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.15rem; }
.site-header.scrolled {
  background: var(--glass); backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--glass-line);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--font-display); font-weight: 600; font-size: 1.28rem; color: var(--ink); letter-spacing: -.01em; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--navy-600), var(--navy-800));
  color: var(--gold-400); font-weight: 700; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 8px 20px -10px rgba(15,81,55,.6);
}
.brand-mark svg { width: 22px; height: 22px; }
/* Official emblem logo mark (transparent PNG, circular) */
.brand-logo { width: 46px; height: 46px; object-fit: contain; flex: none; filter: drop-shadow(0 4px 10px rgba(10,21,51,.28)); }
.brand-logo.lg { width: 54px; height: 54px; }
.brand small { display: block; font-family: var(--font-body); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a { padding: .5rem .85rem; border-radius: 100px; font-weight: 500; font-size: .96rem; color: var(--ink-soft); transition: color .25s, background .25s; }
.nav a:hover, .nav a.active { color: var(--ink); background: color-mix(in srgb, var(--brand) 10%, transparent); }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.hide-desktop-inline { display: none; }
@media (max-width: 940px) { .hide-desktop-inline { display: inline-flex; } }

.theme-toggle {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft);
  transition: transform .3s var(--ease), color .3s, border-color .3s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); transform: rotate(-15deg); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun, :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon, :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: .3s var(--ease); }

@media (max-width: 940px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 340px);
    flex-direction: column; align-items: stretch; justify-content: center; gap: .4rem;
    background: var(--bg-2); border-left: 1px solid var(--line);
    padding: 2rem; transform: translateX(100%); transition: transform .45s var(--ease);
    box-shadow: -30px 0 60px -30px rgba(0,0,0,.5);
  }
  .nav.open { transform: translateX(0); }
  .nav a { padding: .9rem 1rem; font-size: 1.1rem; }
  body.nav-open { overflow: hidden; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hide-mobile { display: none !important; }
}

/* ---------- 7. HERO ----------------------------------------------------- */
.hero { position: relative; padding-top: clamp(8rem, 16vh, 12rem); padding-bottom: clamp(4rem, 8vw, 7rem); background: var(--hero-grad); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--brand) 14%, transparent) 1px, transparent 0); background-size: 34px 34px; opacity: .5; mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent); pointer-events: none; }
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: var(--step-5); margin-block: 1.2rem 1.3rem; }
.hero .lead { max-width: 42ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-figure { position: relative; }
.hero-figure img { border-radius: var(--radius-lg); box-shadow: var(--card-shadow); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.hero-badge {
  position: absolute; bottom: -18px; left: -18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.3rem;
  box-shadow: var(--card-shadow); display: flex; align-items: center; gap: .9rem;
}
.hero-badge .n { font-family: var(--font-display); font-size: 1.9rem; color: var(--brand); line-height: 1; }
.hero-badge small { color: var(--ink-mute); font-size: .8rem; }

/* Emblem medallion (official crest as hero visual) */
.hero-emblem { position: relative; aspect-ratio: 1; width: 100%; max-width: 470px; margin-inline: auto; display: grid; place-items: center; }
.hero-emblem::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 34%, transparent), transparent 66%); filter: blur(8px); }
.hero-emblem picture, .hero-emblem img { position: relative; z-index: 2; width: 86%; height: auto; }
.hero-emblem img { filter: drop-shadow(0 26px 48px rgba(10,21,51,.42)); animation: emblemFloat 6.5s var(--ease) infinite; }
.hero-emblem-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--accent) 50%, transparent); animation: emblemSpin 46s linear infinite; }
.hero-emblem-ring::after { content: ""; position: absolute; inset: 6.5%; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent); }
.hero-emblem .hero-badge { z-index: 3; }
@keyframes emblemFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes emblemSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-emblem img, .hero-emblem-ring { animation: none; } }

@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-figure, .hero-emblem { max-width: 400px; margin-inline: auto; } }

/* ---------- 8. TRUST STRIP ---------------------------------------------- */
.pillbar { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.pill { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border-radius: 100px; background: var(--surface); border: 1px solid var(--line); font-size: .88rem; font-weight: 500; color: var(--ink-soft); }
.pill svg { width: 16px; height: 16px; color: var(--brand); }

/* ---------- 9. SECTION HEAD --------------------------------------------- */
.section-head { max-width: 62ch; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.section-head.center { margin-inline: auto; }
.section-head h2 { margin-block: .8rem .9rem; }

/* ---------- 10. CARDS --------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem; box-shadow: var(--card-shadow); position: relative; overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur), box-shadow var(--dur);
}
.card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.card-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--brand); margin-bottom: 1.2rem; }
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: var(--step-1); margin-bottom: .6rem; }
.card p { color: var(--ink-soft); }
.card .card-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.1rem; font-weight: 600; color: var(--brand); font-size: .95rem; }
.card .card-link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.card:hover .card-link svg { transform: translateX(4px); }
.card-num { position: absolute; top: 1.2rem; right: 1.4rem; font-family: var(--font-display); font-size: 3rem; color: color-mix(in srgb, var(--accent) 22%, transparent); line-height: 1; }

.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cards-3, .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards-2, .cards-3, .cards-4 { grid-template-columns: 1fr; } }

/* ---------- 11. STATS --------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface); padding: 2rem 1.5rem; text-align: center; }
.stat .num { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--brand); line-height: 1; }
.stat .num .suffix { color: var(--accent); }
.stat .label { margin-top: .5rem; color: var(--ink-mute); font-size: .9rem; letter-spacing: .02em; }
@media (max-width: 680px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 12. SPLIT / FEATURE ---------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--card-shadow); width: 100%; aspect-ratio: 5/4; object-fit: cover; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split.reverse .split-media { order: 0; } }
.checklist { list-style: none; padding: 0; display: grid; gap: .9rem; margin-top: 1.5rem; }
.checklist li { display: flex; gap: .8rem; align-items: flex-start; color: var(--ink-soft); }
.checklist svg { width: 22px; height: 22px; color: var(--brand); flex: none; margin-top: 2px; }

/* ---------- 13. ROADMAP / TIMELINE ------------------------------------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: phase; }
.phase { position: relative; padding: 1.9rem 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.phase .no { font-family: var(--font-display); font-size: 1rem; letter-spacing: .1em; color: var(--accent); font-weight: 600; }
.phase h3 { font-size: 1.25rem; margin: .8rem 0 .4rem; }
.phase .time { display: inline-block; margin-bottom: .8rem; font-size: .8rem; font-weight: 600; color: var(--brand); background: var(--accent-soft); padding: .25rem .7rem; border-radius: 100px; }
.phase p { color: var(--ink-soft); font-size: .95rem; }
.phase::before { content: ""; position: absolute; top: 0; left: 1.6rem; right: 1.6rem; height: 3px; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 3px; opacity: .8; }
@media (max-width: 900px) { .timeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .timeline { grid-template-columns: 1fr; } }

/* ---------- 14. TEAM ---------------------------------------------------- */
.team-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }
.member {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--card-shadow);
  transition: transform var(--dur) var(--ease), border-color var(--dur);
}
.member:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.member-photo { aspect-ratio: 4/5; background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); position: relative; overflow: hidden; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.member:hover .member-photo img { transform: scale(1.05); }
.member-photo .initials { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 3.2rem; color: var(--gold-400); }
.member-body { padding: 1.4rem 1.5rem 1.6rem; }
.member-body h3 { font-size: 1.28rem; }
.member-role { color: var(--accent); font-weight: 600; font-size: .9rem; margin-top: .2rem; }
.member-specialty { color: var(--ink-mute); font-size: .85rem; margin-top: .1rem; }
.member-socials { display: flex; gap: .5rem; margin-top: 1rem; }
.member-socials a { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-soft); transition: .25s; }
.member-socials a:hover { color: var(--accent); border-color: var(--accent); }
.member-socials svg { width: 16px; height: 16px; }

/* ---------- 15. eProfile (single member) ------------------------------- */
.profile-hero { background: var(--hero-grad); padding-top: clamp(8rem, 15vh, 11rem); padding-bottom: clamp(3rem, 6vw, 5rem); position: relative; overflow: hidden; }
.profile-hero .container { display: grid; grid-template-columns: 320px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: end; position: relative; z-index: 2; }
.profile-portrait { aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--card-shadow); background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); position: relative; }
.profile-portrait img { width: 100%; height: 100%; object-fit: cover; }
.profile-portrait .initials { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 5rem; color: var(--gold-400); }
.profile-meta h1 { font-size: var(--step-4); margin: .5rem 0 .4rem; }
.profile-meta .role { font-size: var(--step-1); color: var(--accent); font-weight: 600; }
.profile-tags { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; }
.profile-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
@media (max-width: 760px) { .profile-hero .container { grid-template-columns: 1fr; } .profile-portrait { max-width: 260px; } }

.work-item { display: grid; grid-template-columns: auto 1fr auto; gap: 1.4rem; align-items: baseline; padding: 1.6rem 0; border-top: 1px solid var(--line); }
.work-item .yr { font-family: var(--font-display); color: var(--accent); font-size: 1.1rem; }
.work-item h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.work-item p { color: var(--ink-soft); }
@media (max-width: 620px) { .work-item { grid-template-columns: 1fr; gap: .3rem; } }

/* ---------- 16. DONATE -------------------------------------------------- */
.donate-wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .donate-wrap { grid-template-columns: 1fr; } }
.donate-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--card-shadow); }
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin: 1.2rem 0; }
.amount-opt { position: relative; }
.amount-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.amount-opt label { display: flex; flex-direction: column; align-items: center; padding: 1rem .5rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-weight: 700; font-size: 1.15rem; color: var(--ink); cursor: pointer; transition: .25s var(--ease); background: var(--surface-2); }
.amount-opt label small { font-weight: 500; font-size: .72rem; color: var(--ink-mute); margin-top: .2rem; }
.amount-opt input:checked + label { border-color: var(--brand); background: var(--accent-soft); color: var(--brand-ink); transform: translateY(-2px); }
.amount-opt input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.provider-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: 1.4rem 0; }
.provider-opt input { position: absolute; opacity: 0; }
.provider-opt label { display: flex; align-items: center; justify-content: center; gap: .6rem; padding: 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; transition: .25s; background: var(--surface-2); }
.provider-opt input:checked + label { border-color: var(--brand); background: var(--accent-soft); }
.provider-opt label svg, .provider-opt label img { height: 22px; width: auto; }
.impact-list { list-style: none; padding: 0; display: grid; gap: 1.1rem; }
.impact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.impact-list .amt { font-family: var(--font-display); font-size: 1.5rem; color: var(--brand); min-width: 70px; }

/* ---------- 17. FORMS --------------------------------------------------- */
.field { display: grid; gap: .45rem; margin-bottom: 1.1rem; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink-soft); }
.field label .req { color: #c0392b; }
.input, .textarea, .select {
  width: 100%; padding: .9rem 1.1rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--surface-2); color: var(--ink);
  font: inherit; font-size: var(--step-0); transition: border-color .25s, box-shadow .25s, background .25s;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent); }
.textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: .82rem; color: var(--ink-mute); }

/* ---------- 18. CTA BANNER --------------------------------------------- */
.cta-banner { position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: clamp(2.5rem, 6vw, 4.5rem); background: linear-gradient(130deg, var(--navy-800), var(--navy-600)); color: #fff; text-align: center; }
.cta-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(224,190,111,.28), transparent 45%), radial-gradient(circle at 85% 80%, rgba(111,206,170,.2), transparent 45%); }
.cta-banner > * { position: relative; z-index: 2; }
.cta-banner h2 { color: #fff; font-size: var(--step-3); }
.cta-banner p { color: rgba(255,255,255,.82); max-width: 52ch; margin: 1rem auto 2rem; }

/* ---------- 19. FOOTER -------------------------------------------------- */
.site-footer { background: var(--navy-900); color: #d5e6dd; padding-top: clamp(3.5rem, 7vw, 5.5rem); position: relative; overflow: hidden; }
[data-theme="light"] .site-footer { background: var(--navy-900); }
.site-footer::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 0%, rgba(201,163,78,.14), transparent 40%); }
.site-footer .container { position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.2rem; font-weight: 700; }
.site-footer a { color: #b9d2c6; transition: color .25s; }
.site-footer a:hover { color: var(--gold-400); }
.footer-links { list-style: none; padding: 0; display: grid; gap: .7rem; }
.footer-about p { color: #a9c5b8; max-width: 34ch; margin-top: 1rem; }
.footer-brand { display: inline-flex; align-items: center; gap: .7rem; color: #fff; font-family: var(--font-display); font-size: 1.3rem; }
.social-row { display: flex; gap: .6rem; margin-top: 1.4rem; }
.social-row a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.social-row svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.6rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; color: #90ac9f; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 20. MISC / UTIL -------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 100px; font-size: .78rem; font-weight: 600; background: var(--accent-soft); color: var(--brand); }
.divider { height: 1px; background: var(--line); border: 0; margin-block: clamp(3rem, 6vw, 5rem); }
.flash-stack { position: fixed; top: 90px; right: 1.2rem; z-index: 200; display: grid; gap: .6rem; max-width: 360px; }
.flash { padding: 1rem 1.2rem; border-radius: var(--radius-sm); box-shadow: var(--card-shadow); font-weight: 500; border: 1px solid var(--line); background: var(--surface); animation: slideIn .5s var(--ease) both; }
.flash.success { border-left: 4px solid var(--navy-500); }
.flash.error { border-left: 4px solid #c0392b; }
.flash.info { border-left: 4px solid var(--gold-500); }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } }

.breadcrumb { display: flex; gap: .5rem; font-size: .85rem; color: var(--ink-mute); margin-bottom: 1rem; }
.breadcrumb a:hover { color: var(--accent); }

/* Scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 8px 0; z-index: 999; }
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
