/* ================================================================
   Father Spiros Tsiakalos Institute – Main Stylesheet
   Palette: Charcoal grey · Byzantine blue · Ecclesiastical red
   Retina-ready, WCAG 2.1 AA, fully responsive
   ================================================================ */

/* ── Custom Properties ── */
:root {
  /* Brand colours */
  --grey-900: #1c1c1e;
  --grey-800: #2c2c2e;
  --grey-700: #3a3a3c;
  --grey-600: #48484a;
  --grey-400: #8e8e93;
  --grey-200: #d1d1d6;
  --grey-100: #f2f2f7;
  --grey-50:  #f8f8fa;

  --blue-900: #0a1628;
  --blue-800: #132240;
  --blue-700: #1a3260;
  --blue-600: #1d3d7a;   /* Byzantine deep blue */
  --blue-500: #2651a3;
  --blue-400: #4b74c4;
  --blue-100: #dce8ff;

  --red-700:  #8b0f0f;   /* Ecclesiastical dark red */
  --red-600:  #a51212;
  --red-500:  #c0392b;
  --red-400:  #d64e3c;
  --red-100:  #fde8e8;

  --white: #ffffff;
  --black: #000000;

  /* Semantic */
  --color-primary:    var(--blue-600);
  --color-accent:     var(--red-600);
  --color-surface:    var(--white);
  --color-bg:         var(--grey-50);
  --color-text:       var(--grey-800);
  --color-muted:      var(--grey-600);
  --color-border:     var(--grey-200);
  --color-nav-bg:     var(--blue-900);
  --color-nav-text:   var(--white);
  --color-hero-bg:    var(--blue-900);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* Layout */
  --container-max: 1200px;
  --header-height: 72px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.12), 0 2px 4px rgba(0,0,0,.08);
  --shadow-lg: 0 16px 40px rgba(0,0,0,.16), 0 4px 8px rgba(0,0,0,.08);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* ── Section spacing ── */
.section { padding-block: var(--space-24); }
.section--sm { padding-block: var(--space-16); }
.section--dark { background: var(--blue-900); color: var(--white); }
.section--grey { background: var(--grey-100); }
.section--red  { background: var(--red-700);  color: var(--white); }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.section-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-5xl));
  color: var(--blue-900);
  margin-bottom: var(--space-4);
}

.section--dark .section-title,
.section--red .section-title { color: var(--white); }

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-muted);
  max-width: 56ch;
  line-height: 1.7;
}

.section--dark .section-subtitle { color: var(--blue-100); }
.section--red  .section-subtitle { color: var(--red-100); }

.lead {
  font-size: var(--text-xl);
  line-height: 1.7;
  color: var(--grey-700);
  max-width: 65ch;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(160,17,17,.4);
}
.btn--primary:hover {
  background: var(--red-700);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(160,17,17,.45);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.5);
}
.btn--outline:hover {
  background: rgba(255,255,255,.08);
  border-color: var(--white);
}

.btn--blue {
  background: var(--blue-600);
  color: var(--white);
}
.btn--blue:hover { background: var(--blue-700); transform: translateY(-1px); }

/* ── Divider ── */
.divider {
  width: 56px; height: 3px;
  background: var(--color-accent);
  margin-bottom: var(--space-6);
}
.divider--center { margin-inline: auto; }

/* ================================================================
   HEADER / STICKY NAVIGATION
   ================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--blue-900);
  height: var(--header-height);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
  transition: background var(--transition-base);
  /* Red accent underline */
  border-bottom: 3px solid var(--red-600);
}

.site-header.scrolled {
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  height: 100%;
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  text-decoration: none;
}

.logo-emblem {
  width: 40px; height: 40px;
  color: var(--red-400);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.logo-sub {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.55);
  letter-spacing: 0.04em;
  font-style: italic;
}

/* Desktop Nav */
.main-nav { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,.75);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%; right: 50%;
  height: 2px;
  background: var(--red-400);
  transition: left var(--transition-base), right var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
  left: 0.85rem;
  right: 0.85rem;
}

.nav-link--cta {
  background: var(--red-600);
  color: var(--white) !important;
  padding: 0.4rem 1rem;
}
.nav-link--cta:hover { background: var(--red-700); }
.nav-link--cta::after { display: none; }

/* Language toggle */
.lang-toggle { flex-shrink: 0; }

.lang-btn {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.25);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.lang-btn:hover { color: var(--white); border-color: rgba(255,255,255,.6); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: var(--space-4);
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--blue-900);
  z-index: 800;
  padding: var(--space-6);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
}
.mobile-nav.open { transform: translateX(0); }

.mobile-nav-list { display: flex; flex-direction: column; gap: var(--space-2); }

.mobile-nav-link {
  display: block;
  padding: var(--space-4) var(--space-4);
  font-size: var(--text-xl);
  font-family: var(--font-display);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.1);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}
.mobile-nav-link:hover { color: var(--red-400); padding-left: var(--space-6); }

.mobile-lang { margin-top: var(--space-6); }

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero {
  position: relative;
  min-height: calc(92vh - var(--header-height));
  background: var(--blue-900);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Geometric background pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 70% 30%, rgba(38,81,163,.35) 0%, transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(160,17,17,.2) 0%, transparent 50%),
    linear-gradient(135deg, rgba(19,34,64,.9) 0%, rgba(10,22,40,1) 100%);
}

/* Subtle grid overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-16);
  align-items: center;
}

.hero-content { padding-block: var(--space-16); }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-400);
  margin-bottom: var(--space-6);
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(192,57,43,.35);
  border-radius: 100px;
  background: rgba(192,57,43,.08);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-6xl));
  font-weight: 700;
  color: var(--white);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(var(--text-xl), 3vw, var(--text-4xl));
  font-weight: 400;
  font-style: italic;
  color: var(--red-400);
  margin-bottom: var(--space-6);
}

.hero-lead {
  font-size: var(--text-lg);
  line-height: 1.75;
  color: rgba(255,255,255,.72);
  max-width: 54ch;
  margin-bottom: var(--space-8);
}

.hero-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* Hero emblem panel */
.hero-emblem {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-cross-wrap {
  position: relative;
  width: 280px; height: 280px;
}

.hero-cross-circle {
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(38,81,163,.18) 0%, transparent 70%);
  animation: pulse-ring 4s ease-in-out infinite;
}

.hero-cross-inner {
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-cross-svg {
  width: 120px; height: 120px;
  color: var(--red-400);
  filter: drop-shadow(0 0 24px rgba(192,57,43,.5));
}

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(38,81,163,.0); }
  50%       { box-shadow: 0 0 0 20px rgba(38,81,163,.08); }
}

/* ================================================================
   PILLAR CARDS
   ================================================================ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.pillar-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  border: 1px solid var(--grey-200);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.pillar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pillar-card:hover::before { transform: scaleX(1); }

.pillar-number {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--grey-200);
  line-height: 1;
  margin-bottom: var(--space-4);
}

.pillar-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--blue-800);
  margin-bottom: var(--space-3);
}

.pillar-text { font-size: var(--text-base); color: var(--grey-600); line-height: 1.7; }

/* ================================================================
   VISION BANNER
   ================================================================ */
.vision-banner {
  background: var(--blue-800);
  border-left: 6px solid var(--red-600);
  padding: var(--space-12) var(--space-12);
  border-radius: var(--radius-md);
  margin-block: var(--space-16);
  position: relative;
  overflow: hidden;
}

.vision-banner::after {
  content: '"';
  position: absolute;
  top: -20px; right: 32px;
  font-family: var(--font-display);
  font-size: 18rem;
  font-weight: 700;
  color: rgba(255,255,255,.04);
  line-height: 1;
  pointer-events: none;
}

.vision-quote {
  font-family: var(--font-display);
  font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
  font-style: italic;
  color: var(--white);
  line-height: 1.5;
  max-width: 75ch;
}

/* ================================================================
   AREAS GRID (tag cloud style)
   ================================================================ */
.areas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.area-tag {
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  font-size: var(--text-sm);
  font-weight: 500;
  border: 1.5px solid var(--blue-400);
  color: var(--blue-600);
  background: rgba(38,81,163,.05);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.area-tag:hover { background: var(--blue-600); color: var(--white); }

/* ================================================================
   PAGE HERO (inner pages)
   ================================================================ */
.page-hero {
  background: var(--blue-900);
  padding-block: var(--space-16);
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--red-600);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(38,81,163,.2) 0%, transparent 60%);
}

.page-hero-inner { position: relative; z-index: 1; }

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  color: var(--white);
  margin-bottom: var(--space-3);
}

.page-hero-subtitle {
  font-size: var(--text-lg);
  color: rgba(255,255,255,.65);
  font-style: italic;
}

/* ================================================================
   CONTENT CARDS
   ================================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.content-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  border: 1px solid var(--grey-200);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.content-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.card-icon {
  font-size: 2rem;
  margin-bottom: var(--space-4);
  display: block;
}

.card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--blue-800);
  margin-bottom: var(--space-3);
}

.card-text { font-size: var(--text-sm); color: var(--grey-600); line-height: 1.7; }

/* ================================================================
   PRINCIPLES LIST
   ================================================================ */
.principles-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.principle-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--grey-200);
}

.principle-num {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--red-600);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
}

.principle-text { font-size: var(--text-sm); color: var(--grey-700); line-height: 1.6; }

/* ================================================================
   GOVERNANCE
   ================================================================ */
.gov-section { margin-bottom: var(--space-12); }

.gov-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--blue-800);
  margin-bottom: var(--space-4);
}

.founders-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.founder-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--grey-200);
  border-left: 4px solid var(--blue-600);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--grey-800);
  transition: border-left-color var(--transition-fast);
}

.founder-item:hover { border-left-color: var(--red-600); }

.committees-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.committee-item {
  padding: var(--space-3) var(--space-4);
  background: var(--grey-100);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--grey-700);
  border-left: 3px solid var(--red-500);
  font-weight: 500;
}

/* ================================================================
   CONTACT
   ================================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-12);
  margin-top: var(--space-12);
}

.contact-info-block { margin-bottom: var(--space-8); }

.contact-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-600);
  margin-bottom: var(--space-2);
}

.contact-value {
  font-size: var(--text-base);
  color: var(--grey-800);
  font-weight: 500;
}

/* Form */
.contact-form { display: flex; flex-direction: column; gap: var(--space-4); }

.form-field { display: flex; flex-direction: column; gap: var(--space-2); }

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--grey-700);
}

.form-input,
.form-textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--grey-800);
  background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(38,81,163,.15);
}

.form-textarea { min-height: 140px; resize: vertical; }

.form-submit {
  align-self: flex-start;
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--blue-900);
  color: rgba(255,255,255,.75);
  padding-top: var(--space-16);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-3);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.45);
  letter-spacing: 0.08em;
  font-style: italic;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-nav a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.6);
  transition: color var(--transition-fast);
}

.footer-nav a:hover { color: var(--red-400); }

.footer-legal {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.4);
  line-height: 1.7;
}

.footer-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--red-600) 0%, var(--blue-600) 50%, var(--grey-700) 100%);
}

/* ================================================================
   UTILITY
   ================================================================ */
.text-center { text-align: center; }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

/* Focus styles for accessibility */
:focus-visible {
  outline: 3px solid var(--blue-400);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-emblem { display: none; }
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-height: 64px; }

  .main-nav { display: none; }
  .lang-toggle { margin-left: auto; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }

  .logo-sub { display: none; }
  .logo-name { font-size: var(--text-base); }

  .pillars-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: var(--space-8); }
  .principles-list { grid-template-columns: 1fr; }
  .committees-list { grid-template-columns: 1fr; }
  .vision-banner { padding: var(--space-8); }
  .section { padding-block: var(--space-16); }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { text-align: center; justify-content: center; }
  .container { padding-inline: var(--space-4); }
}

/* ================================================================
   RETINA / HiDPI
   ================================================================ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .site-header { border-bottom-width: 1.5px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .hero-cross-circle { animation: none; }
}






/* ================================================================
   BIOGRAPHY SECTION
   ================================================================ */
.bio-section { background: var(--white); }

/* ── Banner ── */
.bio-banner {
  background: var(--blue-900);
  border-bottom: 4px solid var(--red-600);
  padding: var(--space-12) 0;
  position: relative;
  overflow: hidden;
}
.bio-banner::after {
  content: '✝';
  position: absolute;
  right: 4%; top: 50%;
  transform: translateY(-50%);
  font-size: 16rem;
  color: rgba(255,255,255,.04);
  line-height: 1;
  pointer-events: none;
}
.bio-banner-inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  position: relative;
  z-index: 1;
}
.bio-banner-cross {
  font-size: 3.5rem;
  color: var(--red-400);
  line-height: 1;
  flex-shrink: 0;
  text-shadow: 0 0 24px rgba(192,57,43,.5);
}
.bio-banner-eyebrow {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-400);
  margin-bottom: var(--space-2);
}
.bio-banner-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-6xl));
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: var(--space-1);
}
.bio-banner-years {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  color: rgba(255,255,255,.45);
}

/* ── Stats ribbon ── */
.bio-ribbon {
  background: var(--blue-800);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: var(--space-5) 0;
}
.bio-ribbon-inner {
  display: flex;
  flex-wrap: wrap;
}
.bio-stat {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-3) var(--space-6);
  border-right: 1px solid rgba(255,255,255,.1);
}
.bio-stat:last-child { border-right: none; }
.bio-stat-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-400);
}
.bio-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--white);
  line-height: 1.4;
}

/* ================================================================
   PURE CSS PHOTO CAROUSEL — zero JavaScript, uses radio inputs
   ================================================================ */

.bio-gallery-section {
  background: linear-gradient(160deg, var(--blue-900) 0%, var(--grey-900) 100%);
  padding: var(--space-16) 0 var(--space-12);
  position: relative;
  overflow: hidden;
}

/* faint grid pattern */
.bio-gallery-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Hide radio inputs */
.bio-radio { display: none; }

/* ── Slide track ── */
.bio-slides-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 340px;
}

/* All slides stacked, hidden by default */
.bio-slide-item {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%) scale(0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
  text-align: center;
}

/* Show active slide via sibling CSS */
#s1:checked ~ .bio-slides-wrap .bio-slide-item:nth-child(1),
#s2:checked ~ .bio-slides-wrap .bio-slide-item:nth-child(2),
#s3:checked ~ .bio-slides-wrap .bio-slide-item:nth-child(3) {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  pointer-events: auto;
  position: relative;
  left: auto;
  top: auto;
  transform: scale(1);
}

/* Portrait frame — exactly 300×300px */
.bio-slide-frame {
  width: 300px;
  height: 300px;
  border-radius: 50%;          /* circle portrait — impressive & unique */
  overflow: hidden;
  border: 6px solid var(--white);
  outline: 3px solid var(--red-600);
  box-shadow:
    0 0 0 8px rgba(160,17,17,.18),
    0 20px 60px rgba(0,0,0,.55);
  margin: 0 auto var(--space-5);
  transition: box-shadow 0.4s ease;
}

.bio-slide-frame:hover {
  box-shadow:
    0 0 0 8px rgba(160,17,17,.35),
    0 24px 64px rgba(0,0,0,.65);
}

.bio-slide-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.bio-slide-caption {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-style: italic;
  color: rgba(255,255,255,.75);
  letter-spacing: 0.05em;
  margin-top: var(--space-3);
}

/* ── Dot navigation ── */
.bio-nav-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.bio-nav-label {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.bio-nav-label:hover { background: rgba(255,255,255,.5); }

#s1:checked ~ .bio-nav-dots label[for="s1"],
#s2:checked ~ .bio-nav-dots label[for="s2"],
#s3:checked ~ .bio-nav-dots label[for="s3"] {
  background: var(--red-500);
  transform: scale(1.4);
}

/* ── Three thumbnail strip below ── */
.bio-thumb-strip {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,.1);
}

.bio-thumb-label {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  opacity: 0.45;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}

.bio-thumb-label:hover { opacity: 0.75; }

#s1:checked ~ .bio-thumb-strip label[for="s1"],
#s2:checked ~ .bio-thumb-strip label[for="s2"],
#s3:checked ~ .bio-thumb-strip label[for="s3"] {
  opacity: 1;
  transform: translateY(0);
}

.bio-thumb-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,.2);
  transition: border-color 0.3s;
}

#s1:checked ~ .bio-thumb-strip label[for="s1"] .bio-thumb-img,
#s2:checked ~ .bio-thumb-strip label[for="s2"] .bio-thumb-img,
#s3:checked ~ .bio-thumb-strip label[for="s3"] .bio-thumb-img {
  border-color: var(--red-500);
}

.bio-thumb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.bio-thumb-lbl {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.5);
  letter-spacing: 0.06em;
  font-style: italic;
}

/* ── Biography text ── */
.bio-main {
  padding: var(--space-16) 0;
  background: var(--white);
}
.bio-text-col {
  max-width: 820px;
  margin: 0 auto;
}
.bio-para {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--grey-700);
  margin-bottom: var(--space-5);
  padding-left: var(--space-5);
  border-left: 2px solid var(--grey-200);
  text-align: justify;
  hyphens: auto;
  transition: border-color var(--transition-base);
}
.bio-para:hover { border-left-color: var(--red-500); }
.bio-para:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--blue-700);
  float: left;
  line-height: 0.75;
  margin-right: var(--space-2);
  margin-top: 6px;
}
.bio-para:last-child::after {
  content: ' ✝';
  color: var(--red-600);
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .bio-slide-frame { width: 240px; height: 240px; }
  .bio-thumb-strip { gap: var(--space-4); }
  .bio-thumb-img { width: 56px; height: 56px; }
  .bio-stat { flex: 1 1 100%; border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .bio-banner-cross { display: none; }
  .bio-para { text-align: left; }
  .bio-para:first-child::first-letter { font-size: 3rem; }
}

/* ================================================================
   DASHBOARD & AUTH
   ================================================================ */

/* ── Dashboard layout ── */
.dash-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - var(--header-height));
  background: var(--grey-100);
}

.dash-sidebar {
  background: var(--blue-900);
  padding: var(--space-6) 0;
  border-right: 1px solid rgba(255,255,255,.06);
}

.dash-user-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5) var(--space-6);
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: var(--space-4);
}

.dash-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--red-600);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-base);
  flex-shrink: 0;
}

.dash-user-name { font-size: var(--text-sm); font-weight: 600; color: var(--white); }
.dash-user-email { font-size: var(--text-xs); color: rgba(255,255,255,.45); }

.dash-nav { display: flex; flex-direction: column; padding: 0 var(--space-3); }

.dash-nav-item {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,.65);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
  margin-bottom: 2px;
}
.dash-nav-item:hover,
.dash-nav-item.active { background: rgba(255,255,255,.08); color: var(--white); }
.dash-nav-item--logout { color: rgba(255,100,100,.7); margin-top: var(--space-2); }
.dash-nav-item--logout:hover { background: rgba(160,17,17,.2); color: var(--red-400); }
.dash-nav-sep { height: 1px; background: rgba(255,255,255,.08); margin: var(--space-3) 0; }

.dash-main { padding: var(--space-8); overflow-x: auto; }

.dash-header { margin-bottom: var(--space-8); border-bottom: 2px solid var(--grey-200); padding-bottom: var(--space-4); }
.dash-title { font-family: var(--font-display); font-size: var(--text-3xl); color: var(--blue-900); }
.dash-section-title { font-family: var(--font-display); font-size: var(--text-xl); color: var(--blue-800); margin: var(--space-8) 0 var(--space-4); }

/* Stats cards */
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-bottom: var(--space-8); }
.dash-stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  text-align: center;
  border: 1px solid var(--grey-200);
  border-top: 3px solid var(--red-600);
  box-shadow: var(--shadow-sm);
}
.dash-stat-num { display: block; font-size: var(--text-4xl); font-weight: 700; font-family: var(--font-display); color: var(--blue-800); }
.dash-stat-lbl { font-size: var(--text-sm); color: var(--grey-500); margin-top: 4px; }

/* Table */
.dash-table-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--grey-200); }
.dash-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.dash-table th { background: var(--blue-900); color: var(--white); padding: var(--space-3) var(--space-4); text-align: left; font-weight: 600; font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase; }
.dash-table td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--grey-100); color: var(--grey-700); vertical-align: middle; }
.dash-table tr:last-child td { border-bottom: none; }
.dash-table tr:hover td { background: var(--grey-50); }
.dash-empty { text-align: center; color: var(--grey-400); padding: var(--space-8) !important; }

/* Badges */
.badge { display: inline-block; padding: 2px 10px; border-radius: 100px; font-size: var(--text-xs); font-weight: 600; }
.badge--published, .badge--active { background: #d1fae5; color: #065f46; }
.badge--draft { background: #fef3c7; color: #92400e; }
.badge--review { background: #dbeafe; color: #1e40af; }
.badge--archived { background: var(--grey-200); color: var(--grey-600); }
.badge--admin { background: var(--red-100); color: var(--red-700); }
.badge--moderator { background: var(--blue-100); color: var(--blue-700); }
.badge--scientist { background: #ede9fe; color: #5b21b6; }
.badge--member { background: var(--grey-100); color: var(--grey-600); }

/* Forms */
.dash-form { display: flex; flex-direction: column; gap: var(--space-5); }
.dash-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-4); }
.dash-editor { font-family: var(--font-body); font-size: var(--text-sm); min-height: 200px; }
.dash-form-actions { display: flex; gap: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--grey-200); }

/* Alert */
.alert { padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); margin-bottom: var(--space-4); font-size: var(--text-sm); font-weight: 500; }
.alert--success { background: #d1fae5; color: #065f46; border-left: 4px solid #10b981; }
.alert--error   { background: #fee2e2; color: #991b1b; border-left: 4px solid var(--red-500); }
.alert--warning { background: #fef3c7; color: #92400e; border-left: 4px solid #f59e0b; }

/* Small button */
.btn-sm {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  background: var(--blue-600);
  color: var(--white);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.btn-sm:hover { background: var(--blue-700); }

/* ── Auth ── */
.auth-wrap {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grey-100);
  padding: var(--space-8) var(--space-4);
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-12) var(--space-10);
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--red-600);
}
.auth-logo { text-align: center; font-size: 3rem; color: var(--red-600); margin-bottom: var(--space-4); }
.auth-title { font-family: var(--font-display); font-size: var(--text-3xl); color: var(--blue-900); text-align: center; margin-bottom: var(--space-8); }
.auth-footer { text-align: center; font-size: var(--text-sm); color: var(--grey-500); margin-top: var(--space-6); }
.auth-footer a { color: var(--blue-600); }

/* ── Error pages ── */
.error-page { text-align: center; padding: var(--space-24) var(--space-6); }
.error-cross { font-size: 4rem; color: var(--red-500); margin-bottom: var(--space-4); }
.error-code { font-family: var(--font-display); font-size: 6rem; color: var(--blue-900); line-height: 1; margin-bottom: var(--space-4); }
.error-msg { font-size: var(--text-xl); color: var(--grey-600); margin-bottom: var(--space-8); }

/* ── Responsive dashboard ── */
@media (max-width: 768px) {
  .dash-wrap { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
}

/* ================================================================
   AUTH PAGES (Login / Register)
   ================================================================ */
.auth-page { min-height:calc(100vh - var(--header-height)); display:flex; }
.auth-page--wide .auth-form-inner { max-width: 600px; }

.auth-split { display:grid; grid-template-columns:380px 1fr; width:100%; }

.auth-brand {
  background: linear-gradient(160deg, var(--blue-900) 0%, var(--blue-700) 100%);
  padding: var(--space-16) var(--space-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-4);
  position: relative;
  overflow: hidden;
}
.auth-brand::after {
  content:'✝';
  position:absolute;
  bottom:-40px; right:-20px;
  font-size:18rem;
  color:rgba(255,255,255,.04);
  line-height:1;
  pointer-events:none;
}
.auth-brand-cross { font-size:3rem; color:var(--red-400); }
.auth-brand-title { font-family:var(--font-display); font-size:var(--text-2xl); color:var(--white); font-weight:700; }
.auth-brand-sub   { font-size:var(--text-sm); color:rgba(255,255,255,.55); line-height:1.5; }
.auth-brand-divider { width:40px; height:3px; background:var(--red-600); border-radius:2px; }
.auth-brand-tagline { font-family:var(--font-display); font-style:italic; color:rgba(255,255,255,.45); font-size:var(--text-base); }
.auth-brand-list { list-style:none; display:flex; flex-direction:column; gap:var(--space-2); }
.auth-brand-list li { font-size:var(--text-sm); color:rgba(255,255,255,.7); }

.auth-form-panel { background:var(--grey-50); display:flex; align-items:center; justify-content:center; padding:var(--space-8) var(--space-6); overflow-y:auto; }
.auth-form-inner { width:100%; max-width:480px; background:var(--white); border-radius:var(--radius-lg); padding:var(--space-10); box-shadow:var(--shadow-lg); border-top:4px solid var(--red-600); }
.auth-form-title { font-family:var(--font-display); font-size:var(--text-3xl); color:var(--blue-900); margin-bottom:var(--space-1); }
.auth-form-sub { font-size:var(--text-sm); color:var(--grey-500); margin-bottom:var(--space-6); }
.auth-form { display:flex; flex-direction:column; gap:var(--space-4); }
.auth-submit { width:100%; justify-content:center; margin-top:var(--space-4); padding:0.9rem; font-size:var(--text-base); }
.auth-links { display:flex; gap:var(--space-2); justify-content:center; font-size:var(--text-sm); color:var(--grey-500); margin-top:var(--space-5); }
.auth-links a { color:var(--blue-600); font-weight:600; }
.auth-back { text-align:center; margin-top:var(--space-4); font-size:var(--text-sm); }

/* Password toggle */
.pw-wrap { position:relative; }
.pw-wrap .form-input { padding-right:2.5rem; }
.pw-toggle { position:absolute; right:10px; top:50%; transform:translateY(-50%); background:none; border:none; cursor:pointer; font-size:1rem; color:var(--grey-400); padding:4px; }
.pw-toggle:hover { color:var(--grey-700); }

/* Register sections */
.reg-section-title { font-size:var(--text-xs); font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--red-600); margin:var(--space-6) 0 var(--space-3); padding-top:var(--space-4); border-top:1px solid var(--grey-200); }
.reg-section-title:first-of-type { border-top:none; margin-top:var(--space-2); }
.reg-grid { display:grid; grid-template-columns:1fr 1fr; gap:var(--space-4); }
.reg-grid--full { grid-column:1/-1; }

/* Checkboxes */
.reg-checkboxes { display:flex; flex-direction:column; gap:var(--space-3); }
.reg-check-label { display:flex; align-items:flex-start; gap:var(--space-3); cursor:pointer; padding:var(--space-3) var(--space-4); border:1.5px solid var(--grey-200); border-radius:var(--radius-md); transition:border-color var(--transition-fast),background var(--transition-fast); }
.reg-check-label:hover { border-color:var(--blue-400); background:var(--blue-100); }
.reg-check-label input[type=checkbox] { display:none; }
.reg-check-box { width:20px; height:20px; border:2px solid var(--grey-300); border-radius:4px; flex-shrink:0; margin-top:2px; display:flex; align-items:center; justify-content:center; transition:all var(--transition-fast); }
.reg-check-label input:checked ~ .reg-check-box { background:var(--red-600); border-color:var(--red-600); }
.reg-check-label input:checked ~ .reg-check-box::after { content:'✓'; color:var(--white); font-size:.7rem; font-weight:900; }
.reg-check-text { display:flex; flex-direction:column; gap:2px; }
.reg-check-text strong { font-size:var(--text-sm); color:var(--grey-800); }
.reg-check-text small { font-size:var(--text-xs); color:var(--grey-500); line-height:1.4; }

/* Research field chips */
.reg-fields-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:var(--space-3); }
.reg-field-chip input[type=checkbox] { display:none; }
.reg-field-chip-inner { display:flex; align-items:center; gap:var(--space-2); padding:var(--space-3) var(--space-4); border:1.5px solid var(--grey-200); border-radius:var(--radius-md); cursor:pointer; font-size:var(--text-sm); font-weight:500; color:var(--grey-700); transition:all var(--transition-fast); background:var(--white); }
.reg-field-chip input:checked ~ .reg-field-chip-inner { border-color:var(--red-600); background:var(--red-100); color:var(--red-700); }
.reg-field-icon { font-size:1.1rem; }

/* ── Dashboard nav section labels ── */
.dash-nav-section { display:block; padding:var(--space-3) var(--space-4) var(--space-1); font-size:var(--text-xs); font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:rgba(255,255,255,.3); }
.dash-user-role { font-size:var(--text-xs); color:rgba(255,255,255,.4); }

/* ── Dashboard header meta ── */
.dash-header-meta { display:flex; flex-wrap:wrap; gap:var(--space-2); margin-top:var(--space-3); }
.dash-meta-tag { display:inline-block; padding:3px 10px; border-radius:100px; font-size:var(--text-xs); font-weight:600; background:var(--grey-100); color:var(--grey-600); }
.dash-meta-tag--blue { background:var(--blue-100); color:var(--blue-700); }
.dash-meta-tag--red  { background:var(--red-100);  color:var(--red-700); }

/* ── Dashboard action grid ── */
.dash-action-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:var(--space-4); margin-bottom:var(--space-6); }
.dash-action-card { display:flex; flex-direction:column; align-items:center; gap:var(--space-3); padding:var(--space-6) var(--space-4); background:var(--white); border-radius:var(--radius-md); border:1px solid var(--grey-200); box-shadow:var(--shadow-sm); text-decoration:none; color:var(--grey-700); font-size:var(--text-sm); font-weight:600; text-align:center; transition:all var(--transition-base); cursor:pointer; }
.dash-action-card:hover { border-color:var(--blue-400); background:var(--blue-100); color:var(--blue-700); transform:translateY(-2px); box-shadow:var(--shadow-md); }
.dash-action-icon { font-size:2rem; }
.dash-action-card--logout:hover { border-color:var(--red-400); background:var(--red-100); color:var(--red-700); }
.dash-fields-wrap { margin-bottom:var(--space-8); }
.dash-actions { margin-bottom:var(--space-8); }

/* ── CV / Member modal (reuse .cv-modal styles from founders) ── */
.cv-modal-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,.65); z-index:1000; align-items:center; justify-content:center; padding:var(--space-4); }
.cv-modal-overlay.open { display:flex; }
.cv-modal { background:var(--white); border-radius:var(--radius-lg); max-width:720px; width:100%; max-height:85vh; overflow-y:auto; position:relative; border-top:4px solid var(--red-600); box-shadow:0 24px 64px rgba(0,0,0,.4); }
.cv-modal-close { position:sticky; top:0; float:right; margin:var(--space-4) var(--space-4) 0 0; background:var(--grey-100); border:none; width:36px; height:36px; border-radius:50%; font-size:1rem; cursor:pointer; color:var(--grey-700); z-index:1; }
.cv-modal-close:hover { background:var(--red-100); color:var(--red-600); }
.cv-modal-body { padding:var(--space-8) var(--space-10); clear:both; }
.cv-modal-body h2 { font-family:var(--font-display); font-size:var(--text-3xl); color:var(--blue-900); margin-bottom:var(--space-2); }
.cv-modal-body h4 { font-size:var(--text-sm); color:var(--red-600); letter-spacing:.08em; text-transform:uppercase; margin-bottom:var(--space-6); }
.cv-modal-body p { font-size:var(--text-base); line-height:1.8; color:var(--grey-700); margin-bottom:var(--space-4); }

/* ── Responsive auth ── */
@media (max-width: 768px) {
  .auth-split { grid-template-columns:1fr; }
  .auth-brand { display:none; }
  .auth-form-panel { padding:var(--space-6) var(--space-4); }
  .reg-grid { grid-template-columns:1fr; }
  .reg-grid--full { grid-column:auto; }
}
