/* ============================================================
   Paper Design System — Villena Lab · Weill Cornell Medicine
   Villena Palette: #1E73D9 · #0F4FAA · #0A2A5C · #FFFFFF
   Fonts: Montserrat (display), Roboto (body), PT Mono (mono)
   ============================================================ */

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

:root {
  /* Villena Lab Brand Colors */
  --vl-blue:    #1E73D9;   /* Villena Blue */
  --vl-deep:    #0F4FAA;   /* Deep Blue */
  --vl-ink:     #0A2A5C;   /* Ink (dark navy) */

  /* WCM Brand Colors (kept for compatibility) */
  --wcm-red:    #B31B1B;
  --wcm-orange: #CF4520;
  --wcm-amber:  #E7751D;
  --wcm-gold:   #FFC72C;

  /* Paper System Tokens mapped to Villena */
  --color-primary:      #111111;
  --color-secondary:    #1E73D9;   /* Villena Blue */
  --color-accent:       #0F4FAA;   /* Deep Blue */
  --color-success:      #16A34A;
  --color-warning:      #D97706;
  --color-danger:       #DC2626;
  --color-surface:      #FFFFFF;
  --color-text:         #111111;
  --color-muted:        #555555;   /* WCM 40% Black */
  --color-border:       #DDDDDD;   /* WCM 10% Black */
  --color-alt-bg:       #F7F7F7;   /* WCM 5% Black */
  --color-paper:        #F5F3EE;
  --color-draft-bg:     #FFF9F0;
  --color-draft-border: #F59E0B;
  --color-draft-text:   #92400E;

  --font-display: 'Montserrat', sans-serif;
  --font-body:    'Roboto', sans-serif;
  --font-mono:    'PT Mono', monospace;

  --text-xs:   12px;
  --text-sm:   14px;
  --text-base: 16px;
  --text-md:   18px;
  --text-lg:   24px;
  --text-xl:   32px;
  --text-2xl:  40px;
  --text-hero: 56px;

  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);

  --topbar-h: 64px;
}

/* ── Base ─────────────────────────────────────────────────── */

html { scroll-behavior: smooth; }

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

a { color: inherit; text-decoration: none; }

section[id] { scroll-margin-top: calc(var(--topbar-h) + 16px); }

/* ── Top Bar ──────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--vl-deep);
  border-bottom: 1px solid rgba(0,0,0,0.15);
  box-shadow: 0 2px 8px rgba(15,79,170,0.35);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar-h);
  gap: var(--space-6);
}

.topbar__brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  text-decoration: none;
}

.topbar__icon {
  display: block;
  height: 38px;
  width: auto;
  flex-shrink: 0;
}

.topbar__brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.topbar__name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.topbar__dept {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.65);
  font-family: var(--font-body);
  font-weight: 400;
  white-space: nowrap;
}

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

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.nav-link:hover { color: #fff; background: rgba(255,255,255,0.12); }

.nav-link--cta {
  background: #fff;
  color: var(--vl-deep) !important;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.nav-link--cta:hover { background: var(--vl-ink); color: #fff !important; }

/* hamburger */
.topbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0 8px;
  flex-shrink: 0;
}

.topbar__hamburger span {
  display: block;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

body.nav-open .topbar__hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.nav-open .topbar__hamburger span:nth-child(2) { opacity: 0; }
body.nav-open .topbar__hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* mobile drawer */
.topbar__mobile-nav {
  display: none;
  position: fixed;
  top: var(--topbar-h);
  left: 0; right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  z-index: 199;
  padding: var(--space-4) var(--space-6) var(--space-6);
  flex-direction: column;
  gap: var(--space-1);
}

body.nav-open .topbar__mobile-nav { display: flex; }

.mobile-nav-link {
  display: block;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-muted);
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.mobile-nav-link:hover { color: var(--color-primary); background: var(--color-alt-bg); }

.mobile-nav-link--cta {
  margin-top: var(--space-2);
  background: var(--vl-deep);
  color: #fff !important;
  text-align: center;
  font-weight: 700;
}

/* ── Buttons ──────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 11px var(--space-6);
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary { background: var(--vl-blue); color: #fff; border-color: var(--vl-blue); }
.btn--primary:hover { background: var(--vl-deep); border-color: var(--vl-deep); }

.btn--ghost { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn--ghost:hover { background: var(--color-primary); color: #fff; }

.btn--sm { font-size: var(--text-xs); padding: 7px var(--space-4); }

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--vl-blue);
}

.hero__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 88vh;
}

.hero__content {
  position: relative;
  background: var(--color-paper);
  display: flex;
  align-items: center;
  padding: var(--space-24) var(--space-10) var(--space-20) max(var(--space-6), calc((100vw - 1120px) / 2 + var(--space-6)));
  overflow: hidden;
}

.hero__image-panel {
  position: relative;
  overflow: hidden;
}

.hero__mif-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero__image-caption {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.08em;
  pointer-events: none;
}


/* Ruled notebook lines */
.hero__paper-texture {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 27px,
      rgba(0,0,0,0.04) 27px,
      rgba(0,0,0,0.04) 28px
    );
  pointer-events: none;
}

/* SVG noise grain */
.hero__paper-texture::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.6;
}

/* Villena blue margin line */
.hero::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 80px;
  width: 1.5px;
  background: rgba(30,115,217,0.20);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 520px;
  width: 100%;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--vl-blue);
  background: rgba(30,115,217,0.08);
  border: 1px solid rgba(30,115,217,0.25);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  letter-spacing: 0.04em;
  white-space: nowrap;
  width: fit-content;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, var(--text-hero));
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.hero__headline em {
  font-style: normal;
  color: var(--vl-blue);
}

.hero__body {
  font-size: var(--text-md);
  color: var(--color-muted);
  max-width: 600px;
  margin-bottom: var(--space-8);
  line-height: 1.7;
  font-weight: 300;
}

.hero__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: nowrap;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--vl-blue);
  line-height: 1;
}

.stat__label {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-top: var(--space-1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.stat__divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
  flex-shrink: 0;
}

/* ── Mission Banner ───────────────────────────────────────── */

.mission-banner {
  background: var(--vl-deep);
  padding: var(--space-10) 0;
}

.mission-banner__text {
  font-family: var(--font-display);
  font-size: var(--text-md);
  color: rgba(255,255,255,0.88);
  line-height: 1.7;
  font-weight: 300;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.mission-banner__text em {
  color: var(--wcm-gold);
  font-style: normal;
  font-weight: 700;
}

/* ── Sections ─────────────────────────────────────────────── */

.section { padding: var(--space-20) 0; }
.section--alt { background: var(--color-alt-bg); }

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-12);
}

.section__header--left {
  text-align: left;
  margin: 0 0 var(--space-12);
}

.section__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--vl-blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}

.section__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.section__desc {
  font-size: var(--text-base);
  color: var(--color-muted);
  line-height: 1.7;
}

/* ── Research Cards ───────────────────────────────────────── */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: var(--space-4);
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.card--featured {
  border-color: var(--vl-blue);
  border-width: 1.5px;
}

.card--visual {
  padding: 0;
  overflow: hidden;
}

.card__image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: var(--space-3);
}

.card--visual .card__body-wrap {
  padding: var(--space-6);
}

.card--draft {
  background: var(--color-draft-bg);
  border-color: var(--color-draft-border);
  border-style: dashed;
}

.card--draft:hover { transform: none; box-shadow: none; }

.card__draft-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-draft-text);
  background: rgba(245,158,11,0.12);
  border: 1px solid var(--color-draft-border);
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
}

.card__icon { font-size: 24px; margin-bottom: var(--space-4); display: block; }

.card__title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.card__body {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.65;
  margin-bottom: var(--space-4);
}

.card__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--vl-blue);
  background: rgba(30,115,217,0.07);
  border: 1px solid rgba(30,115,217,0.20);
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
}

/* ── Team ─────────────────────────────────────────────────── */

.team-section-group { margin-bottom: var(--space-12); }
.team-section-group:last-child { margin-bottom: 0; }

.team-group-label {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--vl-blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.team-grid--single { grid-template-columns: 1fr; }

.team-card {
  display: flex;
  gap: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  align-items: flex-start;
  transition: box-shadow 0.2s;
}

.team-card:hover { box-shadow: var(--shadow-md); }

.team-card--pi {
  border-color: var(--vl-blue);
  border-width: 1.5px;
  background: linear-gradient(135deg, #fff 0%, rgba(30,115,217,0.04) 100%);
}

.team-card--join {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-style: dashed;
  border-color: var(--color-border);
  background: var(--color-alt-bg);
}

.team-card__avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.team-card__headshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: var(--radius-full);
}

.team-card__avatar--placeholder {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: var(--color-alt-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-muted);
  letter-spacing: 0.04em;
}

.team-card--pi .team-card__avatar {
  width: 72px;
  height: 72px;
  border: 2px solid rgba(30,115,217,0.22);
}

.team-card--pi .team-card__avatar--placeholder {
  background: rgba(30,115,217,0.07);
  color: var(--vl-blue);
}

.team-card__info { flex: 1; min-width: 0; }

.team-card__name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 2px;
}

.team-card--pi .team-card__name { font-size: var(--text-md); }

.team-card__role {
  font-size: var(--text-sm);
  color: var(--vl-blue);
  font-weight: 500;
  margin-bottom: var(--space-1);
}

.team-card__specialty {
  font-size: var(--text-xs);
  color: var(--color-muted);
  font-family: var(--font-mono);
  margin-bottom: var(--space-3);
}

.team-card__bio {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.6;
}

.team-card__contributions {
  margin-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.contrib-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--color-muted);
  background: var(--color-alt-bg);
  border: 1px solid var(--color-border);
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
}

.team-card__links {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}

.team-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  padding: 4px var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.team-link:hover {
  border-color: var(--vl-blue);
  color: var(--vl-blue);
  background: rgba(30,115,217,0.05);
}

.team-link--primary {
  background: var(--vl-blue);
  color: #fff !important;
  border-color: var(--vl-blue);
}

.team-link--primary:hover { background: var(--vl-deep); border-color: var(--vl-deep); color: #fff !important; }

.team-card__join-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: rgba(30,115,217,0.09);
  color: var(--vl-blue);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}

/* ── Techniques ───────────────────────────────────────────── */

.techniques-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.technique {
  background: var(--color-surface);
  padding: var(--space-8) var(--space-6);
  transition: background 0.15s;
}

.technique:hover { background: rgba(30,115,217,0.04); }

.technique__number {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--vl-blue);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}

.technique__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.technique__desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.65;
}

/* ── Publications ─────────────────────────────────────────── */

.publications-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.pub {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  display: flex;
  gap: var(--space-6);
  align-items: center;
  transition: box-shadow 0.2s;
}

.pub:hover { box-shadow: var(--shadow-sm); }

.pub--draft {
  background: var(--color-draft-bg);
  border-color: var(--color-draft-border);
  border-style: dashed;
}

.pub__content { flex: 1; min-width: 0; }

.pub__draft-badge {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-draft-text);
  margin-bottom: var(--space-2);
}

.pub__meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-bottom: var(--space-2);
}

.pub__journal { font-weight: 500; }

.pub__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.4;
  margin-bottom: var(--space-2);
}

.pub__authors { font-size: var(--text-sm); color: var(--color-muted); }

.pub__link {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--vl-blue);
  padding: var(--space-2) var(--space-3);
  border: 1px solid rgba(30,115,217,0.28);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background 0.15s;
}

.pub__link:hover { background: rgba(30,115,217,0.07); }
.pub--draft .pub__link { opacity: 0.4; pointer-events: none; }

.publications__cta { text-align: center; }

/* ── Contact ──────────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.contact-card__icon { font-size: 22px; margin-bottom: var(--space-3); }

.contact-card__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.contact-card__body {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.75;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--vl-blue);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-top: var(--space-3);
  transition: color 0.15s;
}

.contact-link:hover { color: var(--vl-deep); }

.text--draft {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-draft-text);
  background: rgba(245,158,11,0.08);
  border: 1px dashed var(--color-draft-border);
  padding: 1px var(--space-2);
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* ── Footer ───────────────────────────────────────────────── */

.footer {
  background: var(--vl-ink);
  border-top: 3px solid var(--vl-blue);
  padding: var(--space-8) 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer__left {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.footer__brand-row {
  display: flex;
  align-items: flex-end;
  gap: var(--space-3);
}

.footer__icon {
  height: 40px;
  width: auto;
  display: block;
}

.footer__name {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  color: #ffffff;
  line-height: 1;
  letter-spacing: 0.01em;
}

.footer__inst {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.45);
}

.footer__wcm-bar {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.footer__color-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}


/* ── Responsive: tablet ───────────────────────────────────── */

@media (max-width: 900px) {
  .techniques-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid    { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .topbar__nav       { display: none; }
  .topbar__hamburger { display: flex; }

  .hero__split { grid-template-columns: 1fr; }
  .hero__content { padding: var(--space-12) var(--space-6) var(--space-10); }
  .hero__image-panel { min-height: 280px; }
  .hero::before { left: 32px; }

  .team-grid { grid-template-columns: 1fr; }

  .pub { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .pub__link { align-self: flex-start; }
}

@media (max-width: 640px) {
  .hero__badge {
    white-space: normal;
    width: 100%;
  }
  .hero__stats {
    flex-wrap: wrap;
    gap: var(--space-5);
  }
  .hero__stats .stat { min-width: 120px; }
}

@media (max-width: 560px) {
  .techniques-grid { grid-template-columns: 1fr; }
  .cards-grid      { grid-template-columns: 1fr; }
  .contact-grid    { grid-template-columns: 1fr; }
  .stat__divider   { display: none; }
  .team-grid       { grid-template-columns: 1fr; }
}
