/* ============================================================
   LMA Website — editorial brand layer (rebuilt 2026-05-01)
   Loud, brand-led, asymmetric. Tabler.io is loaded for grid
   and form components but most of the surface is hand-rolled.
   ============================================================ */

:root {
  /* Coolors-exported brand palette (CI/palette.scss) */
  --bittersweet: #fe5f55;
  --cerulean:    #457b9d;
  --sunglow:     #ffcf4d;
  --ghost:       #f2f4ff;
  --blackbean:   #000000;
  /* Site-only: a near-black used for the dark section bands.
     Brand black-bean stays in the CI for ink/buttons but is too
     warm/brown when used as a full-bleed background. */
  --night:       #000000;

  /* Aliases used through the stylesheet */
  --lma-bittersweet: var(--bittersweet);
  --lma-cerulean:    var(--cerulean);
  --lma-sunglow:     var(--sunglow);
  --lma-ghost:       var(--ghost);
  --lma-blackbean:   var(--blackbean);
  --lma-night:       var(--night);

  /* Site ink: pure black instead of brand burgundy. Brand black-bean
     stays defined as a CI token but no longer paints text or surfaces. */
  --lma-ink:        #000000;
  --lma-ink-soft:   #4a4a4a;
  /* Site canvas: pure white. Brand ghost stays available for accents. */
  --lma-paper:      #ffffff;
  --lma-accent:     var(--bittersweet);
  --lma-accent-soft:#ffcec9;

  --lma-font-display: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --lma-font-body: "Inter", system-ui, -apple-system, sans-serif;
  --lma-font-mono: "JetBrains Mono", ui-monospace, monospace;
  --lma-font-serif: "Fraunces", Georgia, serif;

  --lma-radius: 14px;
  --lma-radius-lg: 24px;
  --lma-shadow-soft: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
  --lma-shadow-lift: 0 8px 16px rgba(0,0,0,.06), 0 24px 48px rgba(0,0,0,.10);
}

html, body {
  background: var(--lma-paper);
  color: var(--lma-ink);
  font-family: var(--lma-font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .display-1, .display-2, .display-3, .display-4 {
  font-family: var(--lma-font-display);
  font-weight: 700;
  letter-spacing: -0.024em;
  color: var(--lma-ink);
}

a { color: var(--lma-cerulean); text-decoration: none; }
a:hover { color: var(--lma-bittersweet); }

/* Editorial display headline used as the hero anchor */
.display-headline {
  font-family: var(--lma-font-display);
  font-weight: 700;
  font-size: clamp(2.7rem, 7vw + 0.4rem, 7.2rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.eyebrow {
  font-family: var(--lma-font-mono);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--lma-bittersweet);
}

.lead-prose {
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--lma-ink-soft);
  max-width: 38em;
}

.serif-accent {
  font-family: var(--lma-font-serif);
  font-style: italic;
  font-weight: 400;
}

/* ============================================================
   Navbar
   ============================================================ */
.lma-nav {
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(0,0,0,.08);
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}
.lma-nav .navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: 1rem;
  padding-top: 0;
  padding-bottom: 0;
}
.lma-nav__logo {
  display: block;
  height: 32px;
  width: auto;
  flex-shrink: 0;
}
.lma-nav .navbar-brand strong {
  font-family: var(--lma-font-display);
  letter-spacing: -0.022em;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--lma-ink);
  white-space: nowrap;
}
.lma-nav .nav-link {
  font-weight: 500;
  color: var(--lma-ink) !important;
  position: relative;
  padding: 0.5rem 0.8rem !important;
  font-size: 0.96rem;
}
.lma-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.25rem;
  height: 2px;
  background: var(--lma-bittersweet);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease-out;
}
.lma-nav .nav-link:hover::after,
.lma-nav .nav-link.active::after { transform: scaleX(1); }

.lma-nav__editor {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  background: transparent;
  color: var(--lma-ink-soft);
  font-family: var(--lma-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,.14);
  transition: background 0.18s ease-out, color 0.18s ease-out, border-color 0.18s ease-out;
}
.lma-nav__editor:hover {
  background: var(--lma-ink);
  color: var(--lma-paper);
  border-color: var(--lma-ink);
}
.lma-nav__editor-dot { display: none; }

.btn-lma {
  background: var(--lma-bittersweet);
  color: var(--lma-ghost);
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  font-weight: 600;
  font-family: var(--lma-font-display);
  letter-spacing: -0.005em;
  transition: transform 0.18s ease-out, background 0.18s ease-out;
  text-decoration: none;
  display: inline-block;
}
.btn-lma:hover { background: var(--lma-night); color: var(--lma-ghost); transform: translateY(-2px); }
.btn-lma:active { transform: translateY(0) scale(0.98); }

.btn-lma-outline {
  background: transparent;
  color: var(--lma-ink);
  border: 2px solid var(--lma-ink);
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-weight: 600;
  font-family: var(--lma-font-display);
  transition: all 0.18s ease-out;
  text-decoration: none;
  display: inline-block;
}
.btn-lma-outline:hover { background: var(--lma-ink); color: var(--lma-ghost); }

/* ============================================================
   HERO — Scandinavian / editorial: text + photo split
   ============================================================ */
.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(4rem, 7vw, 6rem);
  background: var(--lma-paper);
  color: var(--lma-ink);
}
.hero h1, .hero .display-headline { color: var(--lma-ink); }
.hero .eyebrow { color: var(--lma-bittersweet); }
.hero .lead-prose { color: var(--lma-ink-soft); max-width: 32em; }
.hero .accent {
  color: var(--lma-bittersweet);
  font-family: var(--lma-font-serif); /* Fraunces */
  font-style: italic;
  font-weight: 600;
  /* Optical-size axis pushed toward display for the headline */
  font-variation-settings: "opsz" 144;
}
.hero .display-headline {
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero-rule {
  display: inline-block;
  width: 56px;
  height: 2px;
  background: var(--lma-bittersweet);
  margin-bottom: 1.2rem;
}

.hero-tagline {
  font-family: var(--lma-font-display);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.018em;
  color: var(--lma-ink);
  max-width: 32em;
  margin: 0;
}

.hero-figure {
  position: relative;
  margin: 0;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin-inline: auto;
}
.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

@media (max-width: 991px) {
  .hero { padding-top: 1.5rem; }
  .hero-figure { aspect-ratio: 4 / 3; max-width: 360px; }
}

/* ============================================================
   D4 SHOW-STOPPER
   ============================================================ */
.d4-stage {
  position: relative;
  isolation: isolate;
  background: var(--lma-night);
  color: var(--lma-ghost);
  padding: clamp(5rem, 9vw, 8rem) 0 clamp(6rem, 11vw, 10rem);
  overflow: hidden;
}
.d4-stage::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 80% 10%, rgba(254, 95, 85, 0.35), transparent 60%),
    radial-gradient(45% 60% at 5% 95%, rgba(69, 123, 157, 0.55), transparent 55%),
    radial-gradient(40% 50% at 95% 80%, rgba(255, 207, 77, 0.20), transparent 55%);
  z-index: 0;
}
.d4-stage > * { position: relative; z-index: 1; }
.d4-stage h2 { color: var(--lma-sunglow); }
.d4-stage .eyebrow { color: var(--lma-sunglow); }

.d4-display {
  font-family: var(--lma-font-display);
  font-size: clamp(3rem, 7vw, 7rem);
  letter-spacing: -0.04em;
  line-height: 0.94;
  font-weight: 700;
}

/* Glassmorphism countdown card */
.glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: var(--lma-radius-lg);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.35);
  padding: 2rem;
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}
.countdown-cell {
  background: rgba(242,244,255,0.06);
  border: 1px solid rgba(242,244,255,0.14);
  border-radius: 14px;
  padding: 1rem 0.4rem;
  text-align: center;
}
.countdown-num {
  font-family: var(--lma-font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  display: block;
  font-variant-numeric: tabular-nums;
  color: var(--lma-sunglow);
}
.countdown-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.78;
  font-family: var(--lma-font-mono);
}

.patronage-row {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.patronage-pill {
  display: inline-block;
  background: rgba(242,244,255,0.10);
  border: 1px solid rgba(242,244,255,0.22);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--lma-ghost);
  text-decoration: none;
  transition: background 0.18s ease-out, border-color 0.18s ease-out, color 0.18s ease-out;
}
a.patronage-pill:hover {
  background: var(--lma-sunglow);
  border-color: var(--lma-sunglow);
  color: var(--lma-ink);
}
.patronage-pill--light {
  background: white;
  border-color: rgba(0,0,0,.10);
  color: var(--lma-ink);
}
a.patronage-pill--light:hover {
  background: var(--lma-sunglow);
  border-color: var(--lma-sunglow);
  color: var(--lma-ink);
}

/* ============================================================
   Section header — recurring editorial unit
   ============================================================ */
.section-head {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}
.section-head__num {
  font-family: var(--lma-font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--lma-bittersweet);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  border-bottom: 4px solid var(--lma-sunglow);
  padding-bottom: 0.3rem;
}
.section-head__body {
  flex: 1;
}
.section-head__title {
  font-family: var(--lma-font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  letter-spacing: -0.022em;
  line-height: 1.05;
  margin: 0.4rem 0 0;
}
.section-head__lead {
  color: var(--lma-ink-soft);
  margin-top: 0.7rem;
  max-width: 32em;
}

/* ============================================================
   Members — bold cards, brand stripe, alternate accents
   ============================================================ */
.members-section {
  background: var(--lma-paper);
  padding: clamp(4rem, 8vw, 7rem) 0;
  position: relative;
}
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.member-card {
  position: relative;
  background: white;
  border-radius: var(--lma-radius-lg);
  overflow: hidden;
  box-shadow: var(--lma-shadow-soft);
  transition: transform 0.3s cubic-bezier(.18,.89,.32,1.28),
              box-shadow 0.3s ease-out;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}
.member-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--lma-bittersweet);
  z-index: 2;
}
.member-card:nth-child(3n+2)::before { background: var(--lma-cerulean); }
.member-card:nth-child(3n)::before  { background: var(--lma-sunglow); }
.member-card:hover { transform: translateY(-6px); box-shadow: var(--lma-shadow-lift); }

.member-card__photo-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--lma-paper);
  overflow: hidden;
}
.member-card__photo {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(1.05) contrast(1.02);
}
.member-card__no-photo {
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--lma-cerulean), var(--lma-bittersweet) 60%, var(--lma-sunglow));
  color: var(--lma-ghost);
  font-family: var(--lma-font-display);
  font-size: 4.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.member-card__body {
  padding: 1.4rem 1.4rem 1.6rem;
}
.member-card__role {
  font-family: var(--lma-font-mono);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lma-bittersweet);
  margin-bottom: 0.4rem;
}
.member-card:nth-child(3n+2) .member-card__role { color: var(--lma-cerulean); }
.member-card:nth-child(3n)   .member-card__role { color: var(--lma-ink); }
.member-card__name {
  font-family: var(--lma-font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.022em;
  margin: 0 0 0.5rem;
  color: var(--lma-ink);
}
.member-card__bio {
  color: var(--lma-ink-soft);
  font-size: 0.96rem;
  line-height: 1.5;
  margin: 0;
}

/* ============================================================
   SERVICES — what we do
   ============================================================ */
.services-section {
  background: var(--lma-paper);
  color: var(--lma-ink);
  padding: clamp(5rem, 9vw, 8rem) 0;
  border-top: 1px solid rgba(0,0,0,.06);
}
.services-section .eyebrow { color: var(--lma-bittersweet); }
.services-lead {
  max-width: 60em;
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--lma-ink-soft);
}
.services-lead p { margin-bottom: 1rem; }
.services-lead strong { color: var(--lma-ink); font-weight: 600; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-top: 4px solid var(--lma-cerulean);
  border-radius: 12px;
  padding: 1.5rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.service-card--cerulean    { border-top-color: var(--lma-cerulean); }
.service-card--bittersweet { border-top-color: var(--lma-bittersweet); }
.service-card--sunglow     { border-top-color: var(--lma-sunglow); }
.service-card--blackbean   { border-top-color: var(--lma-blackbean); }

.service-card__title {
  font-family: var(--lma-font-display, var(--lma-font-sans));
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--lma-ink);
  margin: 0;
}
.service-card__summary {
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--lma-ink);
  margin: 0;
}
.service-card__description {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--lma-ink-soft);
  margin: 0;
}

/* ============================================================
   STATS — bento grid, asymmetric, the lead stat dominates
   ============================================================ */
.stats-band {
  background: var(--lma-paper);
  color: var(--lma-ink);
  padding: clamp(5rem, 9vw, 8rem) 0;
  position: relative;
  border-top: 1px solid rgba(0,0,0,.06);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
@media (max-width: 900px) {
  .stat-grid { grid-template-columns: 1fr; }
}

.stat-card {
  --stat-color: var(--lma-cerulean);
  position: relative;
  padding: 2rem 1.8rem 1.6rem;
  border-radius: var(--lma-radius-lg);
  background: white;
  color: var(--lma-ink);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out, border-color 0.25s ease-out;
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--stat-color);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--lma-shadow-lift);
  border-color: var(--stat-color);
}
.stat-card--lead       { --stat-color: var(--lma-cerulean); }
.stat-card--bittersweet { --stat-color: var(--lma-bittersweet); }
.stat-card--sunglow     { --stat-color: var(--lma-sunglow); }

.stat-card__num {
  font-family: var(--lma-font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  color: var(--stat-color);
}
.stat-card--sunglow .stat-card__num { color: #c79410; }

.stat-card__label {
  font-family: var(--lma-font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lma-ink-soft);
}
.stat-card__sublabel {
  font-family: var(--lma-font-mono);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lma-ink-soft);
  opacity: 0.7;
  margin-top: 0.2rem;
}
.stat-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1 1 auto;
  border-top: 1px solid rgba(0,0,0,.10);
  padding-top: 1rem;
}
.stat-card__list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.stat-card__item-title {
  font-family: var(--lma-font-display);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--lma-ink);
}
.stat-card__item-meta {
  font-size: 0.82rem;
  color: var(--lma-ink-soft);
  font-family: var(--lma-font-mono);
}
.stat-card__empty { font-style: italic; color: var(--lma-ink-soft); }
.stat-card__link {
  margin-top: auto;
  align-self: flex-start;
  text-decoration: none;
  color: var(--stat-color);
  font-family: var(--lma-font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 2px solid currentColor;
  padding-bottom: 1px;
  transition: color 0.18s ease-out;
}
.stat-card--sunglow .stat-card__link { color: #c79410; }
.stat-card__link:hover { color: var(--lma-ink); }

/* ============================================================
   TESTIMONIALS — Sunglow statement
   ============================================================ */
.testimonial-band {
  background: var(--lma-paper);
  color: var(--lma-ink);
  padding: clamp(5rem, 9vw, 8rem) 0;
  position: relative;
  overflow: hidden;
}
.testimonial-band::before {
  content: "“";
  position: absolute;
  font-family: var(--lma-font-serif);
  font-size: clamp(16rem, 28vw, 28rem);
  line-height: 0.7;
  top: 1rem;
  right: -1rem;
  color: rgba(255,207,77,0.55);
  z-index: 0;
  pointer-events: none;
}
.testimonial-band > * { position: relative; z-index: 1; }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: white;
  border-radius: var(--lma-radius-lg);
  padding: 2rem 1.8rem;
  border: 1px solid rgba(0,0,0,.08);
  border-top: 4px solid var(--lma-sunglow);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin: 0;
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}
.testimonial-card:hover { transform: translateY(-3px); box-shadow: var(--lma-shadow-soft); }
.testimonial-card__quote {
  font-family: var(--lma-font-serif);
  font-style: italic;
  font-size: 1.32rem;
  line-height: 1.4;
  color: var(--lma-ink);
  margin: 0;
}
.testimonial-card__caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid rgba(0,0,0,.12);
  padding-top: 1rem;
  margin: 0;
}
.testimonial-card__name {
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--lma-font-display);
}
.testimonial-card__role {
  color: var(--lma-ink-soft);
  font-size: 0.85rem;
  font-family: var(--lma-font-mono);
}
.testimonial-card__company img {
  max-height: 36px;
  max-width: 120px;
  object-fit: contain;
  display: block;
}
.testimonial-card__company-name {
  font-family: var(--lma-font-mono);
  font-size: 0.85rem;
  color: var(--lma-cerulean);
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}

/* ============================================================
   CONTACT band
   ============================================================ */
/* Contact card sits inside a normal page section */
.contact-card {
  background: var(--lma-night);
  color: var(--lma-ghost);
  border-radius: var(--lma-radius-lg);
  padding: clamp(2.5rem, 4vw, 3.5rem);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.contact-card::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 60% at 100% 0%, rgba(255,207,77,0.18), transparent 60%),
    radial-gradient(40% 60% at 0% 100%, rgba(254,95,85,0.18), transparent 60%);
  z-index: -1;
}

/* ============================================================
   Project highlight cards (subpage + reused)
   ============================================================ */
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.project-card {
  border-radius: var(--lma-radius-lg);
  background: white;
  padding: 1.8rem;
  box-shadow: var(--lma-shadow-soft);
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 60%;
  height: 4px;
  background: var(--lma-bittersweet);
  border-radius: 0 0 4px 0;
}
.project-card:nth-child(3n+2)::before { background: var(--lma-cerulean); width: 75%; }
.project-card:nth-child(3n)::before   { background: var(--lma-sunglow); width: 45%; }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--lma-shadow-lift); }
.project-card__title {
  font-family: var(--lma-font-display);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 0.6rem;
}
.project-card__status {
  display: inline-block;
  font-family: var(--lma-font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  background: var(--lma-paper);
  color: var(--lma-ink);
  border: 1px solid rgba(0,0,0,.15);
}

/* ============================================================
   Lectures map + list
   ============================================================ */
#lectures-map {
  height: 460px;
  width: 100%;
  border-radius: var(--lma-radius-lg);
  z-index: 0;
  box-shadow: var(--lma-shadow-soft);
  border: 6px solid var(--lma-cerulean);
}
.leaflet-popup-content { font-family: var(--lma-font-body); }

.lecture-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 1.4rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(0,0,0,.10);
  align-items: baseline;
}
.lecture-row:last-child { border-bottom: none; }
.lecture-row__date {
  font-family: var(--lma-font-mono);
  font-size: 0.86rem;
  color: var(--lma-cerulean);
  font-weight: 500;
}
.lecture-row__title {
  font-family: var(--lma-font-display);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.012em;
  line-height: 1.35;
  margin: 0 0 0.25rem;
}
.lecture-row__meta {
  font-size: 0.9rem;
  color: var(--lma-ink-soft);
}
.lecture-row__location {
  font-family: var(--lma-font-mono);
  font-size: 0.82rem;
  color: var(--lma-ink-soft);
  white-space: nowrap;
  align-self: center;
}

/* ============================================================
   Publication list
   ============================================================ */
.publication-list { display: flex; flex-direction: column; }
.publication {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(0,0,0,.10);
}
.publication:last-child { border-bottom: none; }
.publication__year {
  font-family: var(--lma-font-display);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  color: var(--lma-cerulean);
  font-variant-numeric: tabular-nums;
  border-right: 3px solid var(--lma-sunglow);
  padding-right: 0.5rem;
}
.publication__title {
  font-family: var(--lma-font-display);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.35;
  letter-spacing: -0.012em;
  margin: 0 0 0.4rem;
  color: var(--lma-ink);
}
.publication__authors {
  font-size: 0.96rem;
  color: var(--lma-ink-soft);
  line-height: 1.5;
  margin-bottom: 0.3rem;
}
.publication__authors strong {
  color: var(--lma-bittersweet);
  font-weight: 700;
}
.publication__meta {
  font-size: 0.88rem;
  color: var(--lma-ink-soft);
  margin-bottom: 0.5rem;
  font-family: var(--lma-font-mono);
}
.publication__meta em {
  font-family: var(--lma-font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--lma-ink);
}
.publication__doi {
  font-family: var(--lma-font-mono);
  font-size: 0.84rem;
  color: var(--lma-cerulean);
  text-decoration: none;
  border-bottom: 1px solid rgba(69,123,157,.4);
  padding-bottom: 1px;
}
.publication__doi:hover { color: var(--lma-bittersweet); }
.publication__kind-tag {
  display: inline-block;
  margin-left: 0.6rem;
  padding: 0.05rem 0.55rem;
  font-family: var(--lma-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lma-cerulean);
  background: rgba(69,123,157,.10);
  border-radius: 2px;
  vertical-align: middle;
}
@media (max-width: 640px) {
  .publication { grid-template-columns: 1fr; gap: 0.4rem; }
  .publication__year { border-right: none; padding-right: 0; }
  .lecture-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .lecture-row__location { align-self: start; }
}

/* ============================================================
   MEMBER CARD as link
   ============================================================ */
a.member-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.member-card__more {
  display: inline-block;
  margin-top: 0.9rem;
  font-family: var(--lma-font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--lma-bittersweet);
  border-bottom: 2px solid currentColor;
  padding-bottom: 1px;
  align-self: flex-start;
  transition: color 0.18s ease-out;
}
a.member-card:hover .member-card__more { color: var(--lma-ink); }

/* ============================================================
   MEMBER DETAIL PAGE
   ============================================================ */
.back-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--lma-font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lma-ink-soft);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.18s ease-out;
}
.back-link:hover { color: var(--lma-bittersweet); }

.member-detail {
  padding: 1rem 0 6rem;
}
.member-detail__photo-wrap {
  border-radius: var(--lma-radius-lg);
  overflow: hidden;
  background: var(--lma-paper);
  border: 1px solid rgba(0,0,0,.08);
}
.member-detail__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}
.member-detail__no-photo {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--lma-cerulean), var(--lma-bittersweet) 60%, var(--lma-sunglow));
  color: var(--lma-ghost);
  font-family: var(--lma-font-display);
  font-size: 5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.member-detail__contact {
  font-family: var(--lma-font-mono);
  font-size: 0.92rem;
  color: var(--lma-ink-soft);
}
.member-detail__contact a { color: var(--lma-cerulean); }
.member-detail__bio {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--lma-ink-soft);
  max-width: 38em;
}
.member-detail__block {
  margin-top: clamp(3rem, 5vw, 4.5rem);
}

/* Career & society lists share the same row pattern */
.career-list, .society-list { display: flex; flex-direction: column; }
.career-item, .society-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.4rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(0,0,0,.10);
}
.career-item:last-child, .society-item:last-child { border-bottom: none; }
.career-item__years, .society-item__years {
  font-family: var(--lma-font-mono);
  color: var(--lma-cerulean);
  font-weight: 500;
  font-size: 0.92rem;
}
.career-item__position, .society-item__society {
  font-family: var(--lma-font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.012em;
  margin: 0 0 0.25rem;
}
.career-item__institution, .society-item__role {
  color: var(--lma-ink-soft);
  font-size: 0.96rem;
}
.career-item__description {
  color: var(--lma-ink-soft);
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
}
.society-item__link {
  display: inline-block;
  margin-top: 0.4rem;
  font-family: var(--lma-font-mono);
  font-size: 0.82rem;
  color: var(--lma-cerulean);
}
@media (max-width: 640px) {
  .career-item, .society-item { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* Parallax smoothing — opt-in via data-parallax */
[data-parallax] {
  will-change: transform;
  transition: transform 0.05s linear;
}

/* ============================================================
   LEGAL PAGES (imprint / privacy)
   ============================================================ */
.legal-page {
  padding: 1rem 0 6rem;
}
.legal-prose {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--lma-ink-soft);
  max-width: 38em;
}
.legal-prose h2 {
  font-family: var(--lma-font-display);
  font-size: 1.25rem;
  letter-spacing: -0.012em;
  color: var(--lma-ink);
  margin: 2.4rem 0 0.6rem;
}
.legal-prose p, .legal-prose li { margin-bottom: 0.6rem; }
.legal-prose ul { padding-left: 1.2rem; }
.legal-prose code {
  font-family: var(--lma-font-mono);
  font-size: 0.9rem;
  background: rgba(0,0,0,.05);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  color: var(--lma-ink);
}
.legal-prose a { color: var(--lma-cerulean); }
.legal-prose a:hover { color: var(--lma-bittersweet); }

/* ============================================================
   Scroll reveal + reduced motion
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(.21,.8,.32,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .lma-nav__editor-dot { animation: none; }
}
