/* =====================================================================
   Adaptive Memory Systems Lab (AMSL) — design system
   Palette: ink neutrals + molecular teal (aqueous) + circuit amber
   Type:    Space Grotesk (display) · Inter (text) · IBM Plex Mono (code)
   ===================================================================== */

/* ----- Tokens ----- */
:root {
  --ink:        #14171c;
  --ink-2:      #3a424c;
  --ink-3:      #69727d;
  --paper:      #ffffff;
  --bg:         #f6f8f7;
  --bg-2:       #eef2f1;
  --line:       #e2e6e5;
  --line-2:     #d3d9d8;

  --accent:     #0e7c86;   /* molecular teal */
  --accent-ink: #0a5a62;
  --accent-soft:#e2f2f2;
  --amber:      #b4620a;   /* circuit amber */
  --amber-soft: #f7ecdf;

  --helix-a:    #0e7c86;
  --helix-b:    #1b7fb0;

  --radius:     16px;
  --radius-sm:  10px;
  --shadow-sm:  0 1px 2px rgba(18,26,32,.05), 0 1px 3px rgba(18,26,32,.05);
  --shadow-md:  0 6px 24px -8px rgba(14,45,52,.18), 0 2px 8px -4px rgba(14,45,52,.12);
  --shadow-lg:  0 24px 60px -20px rgba(10,40,48,.28);

  --container:  1120px;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-disp:  "Space Grotesk", var(--font-sans);
  --font-mono:  "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease:       cubic-bezier(.22,.61,.36,1);
}

:root[data-theme="dark"] {
  --ink:        #eef2f2;
  --ink-2:      #b7c0c2;
  --ink-3:      #859092;
  --paper:      #12181b;
  --bg:         #0c1113;
  --bg-2:       #151d20;
  --line:       #232d30;
  --line-2:     #2d383b;

  --accent:     #45c2c8;
  --accent-ink: #8ee0e2;
  --accent-soft:#122a2c;
  --amber:      #e0954a;
  --amber-soft: #2a2015;

  --shadow-sm:  0 1px 2px rgba(0,0,0,.4);
  --shadow-md:  0 8px 30px -10px rgba(0,0,0,.6);
  --shadow-lg:  0 30px 70px -24px rgba(0,0,0,.7);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:#eef2f2; --ink-2:#b7c0c2; --ink-3:#859092;
    --paper:#12181b; --bg:#0c1113; --bg-2:#151d20;
    --line:#232d30; --line-2:#2d383b;
    --accent:#45c2c8; --accent-ink:#8ee0e2; --accent-soft:#122a2c;
    --amber:#e0954a; --amber-soft:#2a2015;
    --shadow-sm:0 1px 2px rgba(0,0,0,.4);
    --shadow-md:0 8px 30px -10px rgba(0,0,0,.6);
    --shadow-lg:0 30px 70px -24px rgba(0,0,0,.7);
  }
}

/* ----- Reset / base ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-disp); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); }
::selection { background: var(--accent); color: #fff; }

/* ----- Layout ----- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 4vw, 44px); }
.pub__body h4, .pub__authors, .pub__venue, .rcard p, .prose p, .prose li { overflow-wrap: break-word; word-break: keep-all; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--alt { background: var(--paper); border-block: 1px solid var(--line); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: .6em;
  margin-bottom: 18px;
}
.eyebrow::before { content:""; width: 26px; height: 1px; background: var(--accent); opacity: .55; }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); }
.section-head p { color: var(--ink-2); margin-top: 16px; font-size: 1.05rem; }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); }

/* ----- Header / nav ----- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-disp); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; color: var(--ink); }
.brand__sub  { font-size: .68rem; color: var(--ink-3); letter-spacing: .02em; }

.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; }
.nav__links a {
  color: var(--ink-2); font-size: .93rem; font-weight: 500;
  padding: 8px 12px; border-radius: 8px; transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--ink); background: var(--bg-2); }
.nav__links a.is-active { color: var(--accent); }

.nav__tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 38px; height: 38px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
  color: var(--ink-2); cursor: pointer; transition: border-color .2s, color .2s, transform .1s;
}
.icon-btn:hover { color: var(--accent); border-color: var(--line-2); }
.icon-btn:active { transform: scale(.95); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}

.lang-switch {
  display: inline-flex; align-items: center; font-family: var(--font-mono);
  font-size: .78rem; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.lang-switch a { padding: 8px 11px; color: var(--ink-3); background: var(--paper); transition: background .2s, color .2s; }
.lang-switch a.is-active { color: #fff; background: var(--accent); }
.lang-switch a:not(.is-active):hover { color: var(--ink); background: var(--bg-2); }

.nav__burger { display: none; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-sans); font-weight: 550; font-size: .96rem;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s var(--ease), box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-ink); color: #fff; box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn svg { width: 17px; height: 17px; }

/* ----- Hero ----- */
.hero { position: relative; overflow: hidden; padding-block: clamp(72px, 12vw, 148px); }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at center, var(--line-2) 1px, transparent 1.4px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 70% 25%, #000 10%, transparent 72%);
          mask-image: radial-gradient(ellipse 75% 65% at 70% 25%, #000 10%, transparent 72%);
  opacity: .5;
}
.hero__glow {
  position: absolute; top: -18%; right: -8%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 62%);
  filter: blur(8px); opacity: .7;
}
.hero__helix { position: absolute; top: 50%; right: 4%; transform: translateY(-50%); width: min(38vw, 440px); opacity: .9; }
.hero .container { position: relative; z-index: 1; }
.hero__inner { max-width: 720px; }
.hero__tag {
  display: inline-flex; align-items: center; gap: .6em; font-family: var(--font-mono);
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink);
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 26px;
}
.hero__tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); letter-spacing: -0.035em; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--helix-a), var(--helix-b));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { margin-top: 22px; font-size: clamp(1.05rem, 1.8vw, 1.28rem); color: var(--ink-2); max-width: 600px; }
.hero__meta { margin-top: 14px; font-size: .96rem; color: var(--ink-3); }
.hero__cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ----- Stat strip ----- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--paper); padding: 26px 24px; }
.stat__num { font-family: var(--font-disp); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.stat__num .unit { color: var(--accent); font-size: .6em; margin-left: 2px; }
.stat__label { font-size: .86rem; color: var(--ink-3); margin-top: 4px; }

/* ----- Research cards ----- */
.grid { display: grid; gap: 22px; }
.grid--research { grid-template-columns: repeat(6, 1fr); }
.rcard {
  position: relative; grid-column: span 2; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  overflow: hidden; display: flex; flex-direction: column;
}
.rcard::after { content:""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--accent), var(--helix-b)); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.rcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.rcard:hover::after { transform: scaleX(1); }
.rcard--wide { grid-column: span 3; }
.rcard__ix { font-family: var(--font-mono); font-size: .8rem; color: var(--accent); letter-spacing: .1em; }
.rcard__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 18px; }
.rcard__icon svg { width: 24px; height: 24px; }
.rcard h3 { font-size: 1.24rem; margin-bottom: 4px; }
.rcard__en { font-family: var(--font-mono); font-size: .74rem; color: var(--ink-3); letter-spacing: .02em; margin-bottom: 12px; }
.rcard p { color: var(--ink-2); font-size: .96rem; }
.rcard__tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-family: var(--font-mono); font-size: .72rem; color: var(--ink-2);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 7px; padding: 3px 9px;
}
.tag--atcg { color: var(--accent-ink); background: var(--accent-soft); border-color: transparent; letter-spacing: .08em; }

/* ----- Feature / foundry band ----- */
.feature { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.feature__panel {
  background: linear-gradient(155deg, var(--ink) 0%, #1c2830 100%);
  border-radius: var(--radius); padding: 40px; color: #dfe8e7; position: relative; overflow: hidden;
}
:root[data-theme="dark"] .feature__panel { background: linear-gradient(155deg, #0a1417, #16232a); border: 1px solid var(--line); }
.feature__panel h3 { color: #fff; font-size: 1.5rem; margin-bottom: 14px; }
.feature__panel .eyebrow { color: var(--accent); }
.feature__list { list-style: none; padding: 0; margin-top: 22px; display: grid; gap: 12px; }
.feature__list li { display: flex; gap: 12px; align-items: flex-start; font-size: .96rem; color: #c3cecd; }
.feature__list svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 2px; }
.seq { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .15em; color: var(--accent); word-break: break-all; opacity: .85; }

/* ----- Publications ----- */
.pub-list { list-style: none; padding: 0; display: grid; gap: 2px; }
.pub {
  display: grid; grid-template-columns: 78px 1fr auto; gap: 20px; align-items: baseline;
  padding: 22px 20px; border-radius: var(--radius-sm); transition: background .2s;
}
.pub:hover { background: var(--paper); }
.pub__year { font-family: var(--font-mono); font-size: .92rem; color: var(--accent); font-weight: 500; }
.pub__body h4 { font-family: var(--font-sans); font-weight: 600; font-size: 1.02rem; line-height: 1.4; color: var(--ink); }
.pub__authors { font-size: .9rem; color: var(--ink-3); margin-top: 5px; }
.pub__authors b { color: var(--ink-2); font-weight: 600; }
.pub__venue { display: inline-block; margin-top: 8px; font-size: .82rem; font-style: italic; color: var(--ink-2); }
.pub__link { color: var(--ink); }
.pub__link:hover { color: var(--accent); }
.pub__more { display: inline-block; margin-top: 8px; margin-left: 10px; font-family: var(--font-mono); font-size: .78rem; color: var(--accent); white-space: nowrap; }
.pub__more:hover { color: var(--accent-ink); text-decoration: underline; }
.pub__badge { justify-self: end; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; color: var(--amber); background: var(--amber-soft); padding: 4px 10px; border-radius: 7px; white-space: nowrap; }
.pub + .pub { border-top: 1px solid var(--line); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { font-size: .86rem; font-weight: 500; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ----- Members ----- */
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.member { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .25s var(--ease), box-shadow .25s; }
.member:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.member__avatar { width: 62px; height: 62px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-soft), var(--bg-2)); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--font-disp); font-weight: 600; font-size: 1.4rem; margin-bottom: 16px; }
.member h4 { font-size: 1.08rem; }
.member__role { font-size: .84rem; color: var(--accent); font-family: var(--font-mono); margin-top: 3px; }
.member__note { font-size: .88rem; color: var(--ink-3); margin-top: 10px; }
.member__links { margin-top: 14px; display: flex; gap: 10px; }
.member__links a { color: var(--ink-3); }
.member__links a:hover { color: var(--accent); }
.member__links svg { width: 17px; height: 17px; }

.pi-card { display: grid; grid-template-columns: auto 1fr; gap: 34px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-sm); }
.pi-card__photo { width: 150px; height: 150px; border-radius: var(--radius); background: linear-gradient(135deg, var(--accent), var(--helix-b)); display: grid; place-items: center; color: #fff; font-family: var(--font-disp); font-size: 3rem; font-weight: 600; }
.pi-card h3 { font-size: 1.6rem; }
.pi-card__title { color: var(--accent); font-family: var(--font-mono); font-size: .9rem; margin-top: 4px; }
.timeline { list-style: none; padding: 0; margin-top: 20px; display: grid; gap: 9px; }
.timeline li { display: grid; grid-template-columns: 108px 1fr; gap: 16px; font-size: .92rem; color: var(--ink-2); }
.timeline .yr { font-family: var(--font-mono); font-size: .82rem; color: var(--ink-3); }

/* ----- Prose (research detail, join) ----- */
.prose { max-width: 760px; }
.prose h3 { font-size: 1.4rem; margin-top: 44px; margin-bottom: 14px; }
.prose h4 { font-size: 1.1rem; margin-top: 28px; margin-bottom: 8px; }
.prose p { color: var(--ink-2); margin-bottom: 16px; }
.prose ul { color: var(--ink-2); padding-left: 22px; margin-bottom: 16px; }
.prose li { margin-bottom: 7px; }
.prose li::marker { color: var(--accent); }
.area-block { scroll-margin-top: 96px; padding-block: 40px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 200px 1fr; gap: 40px; }
.area-block:first-of-type { border-top: 0; }
.area-block__aside { position: sticky; top: 96px; align-self: start; }
.area-block__ix { font-family: var(--font-mono); color: var(--accent); font-size: .82rem; letter-spacing: .1em; }
.area-block__aside h3 { font-size: 1.35rem; margin-top: 8px; }
.area-block__aside .en { font-family: var(--font-mono); font-size: .74rem; color: var(--ink-3); margin-top: 6px; }

/* ----- Contact / join ----- */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: start; }
.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.info-row { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.info-row:first-child { border-top: 0; padding-top: 0; }
.info-row svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }
.info-row .k { font-size: .78rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.info-row .v { color: var(--ink); font-size: .98rem; }
.callout { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent); border-radius: var(--radius); padding: 30px; }
.callout h3 { color: var(--accent-ink); }

/* ----- Footer ----- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding-block: 56px 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-grid h5 { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--ink-2); font-size: .92rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-grid a svg { width: 13px; height: 13px; display: inline-block; vertical-align: -1px; margin-left: 4px; }
.footer-brand p { color: var(--ink-3); font-size: .9rem; margin-top: 14px; max-width: 320px; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; color: var(--ink-3); font-size: .84rem; }
.footer-email { font-size: .72rem; color: var(--ink-3); font-family: var(--font-mono); }
.footer-email:hover { color: var(--accent); }

/* ----- Brand banner (wordmark + social) ----- */
.brand-banner { text-align: center; padding-block: 48px; border-bottom: 1px solid var(--line); }
.wordmark { font-family: "Jost", var(--font-sans); font-weight: 300; text-transform: uppercase; letter-spacing: .16em; font-size: clamp(1.05rem, 3.4vw, 2rem); line-height: 1.35; color: var(--ink); }
.wordmark .wm-blue { color: #2c4bd6; }
.wordmark .wm-red { color: #e0242b; }
.wordmark .wm-amp { color: var(--ink-3); font-weight: 400; }
.wordmark .wm-lab { font-size: .74em; letter-spacing: .1em; }
:root[data-theme="dark"] .wordmark .wm-blue { color: #7d97ff; }
:root[data-theme="dark"] .wordmark .wm-red { color: #ff6f75; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wordmark .wm-blue { color: #7d97ff; }
  :root:not([data-theme="light"]) .wordmark .wm-red { color: #ff6f75; }
}
.social-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.social { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-2); background: var(--paper); transition: color .2s, background .2s, border-color .2s, transform .12s var(--ease); }
.social:hover { color: #fff; background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }
.member__focus { margin-top: 12px; }

/* ----- Reveal animation ----- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ----- Page hero (subpages) ----- */
.page-hero { padding-block: clamp(56px, 8vw, 96px) clamp(32px, 4vw, 52px); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero .hero__grid { opacity: .35; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
.page-hero p { color: var(--ink-2); margin-top: 14px; max-width: 640px; font-size: 1.08rem; }
.breadcrumb { font-family: var(--font-mono); font-size: .76rem; color: var(--ink-3); margin-bottom: 18px; letter-spacing: .04em; }
.breadcrumb a { color: var(--ink-3); }

/* ----- Responsive ----- */
@media (max-width: 940px) {
  .feature { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .area-block { grid-template-columns: 1fr; gap: 18px; }
  .area-block__aside { position: static; }
  .rcard, .rcard--wide { grid-column: span 3; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__links, .nav__tools .lang-switch { display: none; }
  .nav__burger { display: inline-grid; }
  .nav__links.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: 68px; left: 0; right: 0; padding: 14px 20px 22px;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  .nav__links.is-open a { padding: 12px 14px; font-size: 1rem; }
  .nav__links.is-open .lang-switch-m { display: flex; margin-top: 10px; }
  .hero__helix { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid--research { grid-template-columns: 1fr; }
  .pi-grid { grid-template-columns: 1fr !important; }
  .rcard, .rcard--wide { grid-column: 1 / -1; }
  .pi-card { grid-template-columns: 1fr; gap: 22px; }
  .pi-card__photo { width: 96px; height: 96px; font-size: 2rem; }
  .pub { grid-template-columns: 56px 1fr; }
  .pub__badge { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 92px 1fr; gap: 10px; }
}
