/* ==========================================================================
   LSIA design system
   --------------------------------------------------------------------------
   --display is Space Grotesk, whose family tops out at 700; nothing here may
   ask for 800 or the browser will synthesise a fake bold on the logotype.
   ========================================================================== */

:root {
  --lsia-green: #176b3a;
  --lsia-green-dark: #0d4d2a;
  --lsia-green-soft: #eef4ef;
  --danger: #a3271a;
  --ink: #1d2a23;
  --muted: #5f6b64;
  --line: #dfe6e1;
  --paper: #fbfcfa;
  --white: #ffffff;
  --footer-text: #afc0b5;
  --display: "Space Grotesk", "Trebuchet MS", sans-serif;
  --text: "DM Sans", "Segoe UI", sans-serif;
  --max: 1240px;
  --nav: 72px;
  --focus: 3px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav) + 1rem); }

body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--text); }

/* Lock the page behind the mobile menu overlay rather than only hiding the
   horizontal overflow, which left the body scrollable underneath. */
body.menu-open { overflow: hidden; }

::selection { background: var(--lsia-green); color: var(--white); }

img { display: block; max-width: 100%; -webkit-user-drag: none; user-select: none; }
a, button, svg { -webkit-user-drag: none; }
a { color: inherit; text-decoration: none; transition: color .15s ease; }
button { border: 0; background: none; color: inherit; cursor: pointer; font: inherit; transition: color .15s ease, background-color .15s ease, border-color .15s ease; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; }
h1 { font-size: clamp(2.7rem, 5vw, 5rem); margin-bottom: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); margin-bottom: 1rem; font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 1.35rem; }
p { color: var(--muted); }

/* A single visible focus treatment for every interactive element. Without
   this, removing link underlines left keyboard users with no reliable cue. */
:focus-visible {
  outline: var(--focus) solid var(--lsia-green);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 100;
  padding: .75rem 1.1rem;
  transform: translateY(-120%);
  background: var(--lsia-green);
  color: var(--white);
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(var(--max), calc(100% - 3rem)); margin: 0 auto; }
.eyebrow { color: var(--lsia-green); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.lead { font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.55; max-width: 680px; }
.section { padding: 4rem 0; }
.section--tint { background: var(--lsia-green-soft); }
.section__intro { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.section__intro h2 { max-width: 700px; margin-bottom: 0; }

/* --------------------------------------------------------------- header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--nav);
  background: rgba(251, 252, 250, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; min-width: 0; }
/* Account icon and logo as one group, so the header keeps its three-part layout. */
.header-start { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.brand img { width: auto; height: 34px; }
.brand__context {
  padding-left: .85rem;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font: .64rem/1.3 var(--text);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav { display: flex; align-items: center; gap: clamp(.9rem, 1vw, 1.05rem); }
.nav a { position: relative; padding-bottom: .3rem; color: var(--muted); font-size: .82rem; font-weight: 700; white-space: nowrap; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--lsia-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav a:hover, .nav a.active { color: var(--lsia-green); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.menu-button { display: none; width: 42px; height: 42px; border: 1px solid var(--line); }
.menu-button span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
/* Driven by aria-expanded, which site.js already sets on toggle — no extra
   JS hook needed to morph the bars into an X. */
.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ----------------------------------------------------------------- hero */

.hero { min-height: auto; padding: calc(var(--nav) + 3rem) 0 2.5rem; display: flex; align-items: center; position: relative; overflow: hidden; }
body[data-page="login"] .hero { min-height: auto; padding-bottom: 1.5rem; }
body[data-page="login"] main > .section { padding-top: 1.5rem; }
body[data-page="submit"] .hero { min-height: auto; padding-bottom: 2rem; }
body[data-page="submit"] main > .section { padding-top: 3rem; }
body[data-page="change-password"] .hero { min-height: auto; padding-bottom: 2rem; }
body[data-page="change-password"] main > .section { padding-top: 3rem; }
:is(body[data-page="news"], body[data-page="partnerships"], body[data-page="publications"], body[data-page="team"]) .hero { padding-bottom: 1rem; }
:is(body[data-page="news"], body[data-page="partnerships"], body[data-page="publications"], body[data-page="team"]) .hero .lead { margin-bottom: 0; }
:is(body[data-page="news"], body[data-page="partnerships"], body[data-page="publications"], body[data-page="team"]) .hero + .section { padding-top: 1.75rem; }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(4rem, 8vw, 9rem); max-width: 1120px; margin: 0 auto; }
.auth-layout > .auth { order: 1; }
.auth-layout > .auth { width: 100%; }
.auth-quote { order: 2; max-width: 520px; margin: 0 auto; padding: 0 1rem; text-align: center; }
.auth-quote p { margin: 0; color: var(--ink); font: 600 clamp(1.05rem, 1.7vw, 1.3rem)/1.4 var(--display); }
html:lang(en) .auth-quote p { white-space: nowrap; font-size: clamp(.98rem, 1.5vw, 1.2rem); }
.auth-quote cite { display: block; margin-top: .6rem; color: var(--lsia-green); font-size: .78rem; font-style: normal; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 3.5rem; position: relative; }
.hero__copy { position: relative; z-index: 1; }
.hero__copy h1 { max-width: 760px; }
.hero__copy h1 strong { color: var(--lsia-green); font-weight: 700; }
.hero__visual {
  min-height: 300px;
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--lsia-green);
  padding: 2rem;
  display: flex;
  align-items: end;
  overflow: hidden;
}
.hero__visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .78;
  filter: saturate(.8);
}
.hero__visual > img + .hero__visual-panel {
  padding: 1rem;
  background: rgba(251, 252, 250, .92);
}
.hero__visual::before {
  content: "LSIA";
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  color: var(--lsia-green-soft);
  font: 600 7rem/.8 var(--display);
  letter-spacing: -.08em;
}
.hero__visual-panel { width: 100%; padding: 1rem 0 0; border-top: 1px solid var(--line); color: var(--ink); position: relative; z-index: 1; }
.hero__visual-panel strong { display: block; font: 1.2rem/1.25 var(--display); }
.hero__visual-panel span { display: block; margin-top: .45rem; color: var(--muted); font-size: .82rem; }

/* -------------------------------------------------------------- buttons */

.button {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.2rem;
  background: var(--lsia-green);
  color: var(--white);
  font-weight: 800;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.button:hover { background: var(--lsia-green-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(13, 77, 42, .55); }
.button:active { transform: translateY(0); box-shadow: none; }
.button--outline { background: transparent; border: 1px solid var(--lsia-green); color: var(--lsia-green-dark); }
.button--outline:hover { background: var(--lsia-green); color: var(--white); }
.button[disabled] { opacity: .6; cursor: progress; }
.button[disabled]:hover { transform: none; box-shadow: none; }
.button-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }

/* ------------------------------------------------------------ components */

.statement {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 3rem;
  background-image: linear-gradient(to right, transparent, var(--line) 15%, var(--line) 85%, transparent);
  background-repeat: no-repeat;
  background-size: 100% 1px;
}
.statement__mark { font: 600 clamp(2.5rem, 6vw, 5rem)/.8 var(--display); color: var(--lsia-green); }
.statement__text { font: 500 clamp(1.4rem, 2.8vw, 2.5rem)/1.2 var(--display); }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.project-card { background: var(--white); padding: 1.25rem; min-height: 210px; transition: background-color .2s ease; }
.project-card__image {
  width: calc(100% + 2.5rem);
  height: 150px;
  margin: -1.25rem -1.25rem 1rem;
  object-fit: cover;
}

/* Project cards stand apart as bordered cards rather than cells of a ruled
   table: full-bleed image, quiet eyebrow tag, meta pinned to the foot. */
.project-grid { gap: 1.5rem; background: transparent; border: 0; }
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.project-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--lsia-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.project-card:hover {
  background: var(--white);
  border-color: #c5d3c9;
  box-shadow: 0 18px 40px -24px rgba(13, 77, 42, .35);
  transform: translateY(-4px);
}
.project-card:hover::after { transform: scaleX(1); }
/* max-width: none, or the global img cap stops the image short of the bleed. */
.project-card__image,
.project-card .published-image--project {
  flex: none;
  width: calc(100% + 3rem);
  max-width: none;
  height: auto;
  aspect-ratio: 16 / 10;
  margin: -1.5rem -1.5rem 1.4rem;
  border: 0;
  object-fit: cover;
}
.project-card .tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: .55rem;
  padding: 0;
  border: 0;
  color: var(--lsia-green);
  font-size: .7rem;
  letter-spacing: .14em;
}
.project-card .tag::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.project-card h3 { margin: .75rem 0 .6rem; font-size: 1.3rem; line-height: 1.2; letter-spacing: -.01em; }
.project-card p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.project-card h3,
.project-card > p:not(.card-meta) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.project-card > p:not(.card-meta) {
  -webkit-line-clamp: 3;
  line-clamp: 3;
  margin-bottom: 1.25rem;
}
.project-card .card-meta {
  margin-top: auto;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.project-card .card-link { align-self: flex-start; }
.project-card > p:not(.card-meta) + .card-link { margin-top: auto; }

/* -------------------------------------------------------------- carousel */

/* A true marquee: continuous CSS animation, not a JS timer stepping the
   scroll position every few seconds. The track's own content is duplicated
   once in the HTML so translateX(-50%) always lands exactly on the start of
   the identical second copy — the loop point is invisible. No JS runs this;
   it can't drift, get stuck on a paused timer, or race a script load. */
.carousel { position: relative; overflow: hidden; }
.carousel__track {
  display: flex;
  width: max-content;
  gap: 1rem;
  animation: carousel-scroll 30s linear infinite;
}
@keyframes carousel-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - .5rem)); }
}
.partner-card {
  flex: 0 0 320px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.5rem;
  min-height: 210px;
  transition: background-color .2s ease, border-color .2s ease;
}
.partner-card:hover { background: var(--lsia-green-soft); }

/* Team carousel has more cards than the partner one, so its duplicated
   track is longer; a longer duration keeps the scroll speed comparable. */
.carousel--team .carousel__track { animation-duration: 38s; }
.carousel--faculty .carousel__track { animation-duration: 46s; }

.carousel--published {
  display: block;
  border: 0;
  background: transparent;
}
.project-grid.carousel--published { display: block; }
.carousel--published .project-card,
.carousel--published .news-card {
  flex: 0 0 calc((100vw - 2rem) / 3);
  min-height: 240px;
  border: 1px solid var(--line);
}
.carousel--published .project-card { flex-basis: 340px; }
/* Room for the cards' hover lift and shadow inside the clipped carousel. */
.carousel--published .carousel__track { padding: .5rem 0 2rem; }
/* Hovering or tabbing into a card holds the marquee still so it can be read and clicked. */
.carousel--published .carousel__track:hover,
.carousel--published .carousel__track:focus-within { animation-play-state: paused; }
.carousel--published .news-card--feature {
  background: var(--ink);
  border-color: var(--ink);
}
.carousel--news .carousel__track { animation-duration: 46s; }

/* The project grid and news list wait for published.js, so the placeholders and the
   approved cards appear together rather than three cards first and the rest
   a moment later. It is held by an animation, not a static rule: if the
   script never settles, the hold simply runs out and the cards show anyway.
   The wait is the delay, which the reduced-motion rule below leaves alone. */
.js .project-grid[data-approved]:not([data-approved-ready]),
.js .news-list[data-approved]:not([data-approved-ready]) { animation: approved-hold .01s linear 3s backwards; }
.project-grid[data-approved-ready], .news-list[data-approved-ready] { animation: approved-in .35s ease both; }
@keyframes approved-hold { from { opacity: 0; visibility: hidden; } }
@keyframes approved-in { from { opacity: 0; } }

/* Motion off means no marquee — but with overflow hidden and no scrolling,
   that would permanently hide whichever cards the animation isn't currently
   showing. Fall back to a plain scrollable row of the real (non-duplicate)
   cards instead, so every card stays reachable. */
@media (prefers-reduced-motion: reduce) {
  .carousel { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .carousel__track { animation: none; }
  .carousel__track [aria-hidden="true"] { display: none; }
}

@media (max-width: 900px) {
  .carousel--published .project-card,
  .carousel--published .news-card { flex-basis: min(340px, 82vw); }
}

.tag { display: inline-block; color: var(--lsia-green-dark); background: transparent; border: 1px solid var(--line); padding: .25rem .5rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.institution-mark { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.institution-mark img { width: 64px; height: 64px; flex: none; }
.institution-mark span { color: var(--muted); font-size: .85rem; line-height: 1.4; }

.facts {
  background-image: linear-gradient(to right, transparent, var(--line) 15%, var(--line) 85%, transparent);
  background-repeat: no-repeat;
  background-size: 100% 1px;
}
/* The rule is a background so the About page can draw it in from the left. */
.fact { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; background: linear-gradient(var(--line), var(--line)) left bottom / 100% 1px no-repeat; }
.fact strong { color: var(--ink); font: 700 1.1rem var(--display); }

/* Home: the community block shows real moments from the lab's events. */
.community { display: grid; gap: 1rem; }
.community__collage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.community__photo { position: relative; overflow: hidden; margin: 0; background: var(--lsia-green-soft); }
.community__photo--main { grid-column: 1 / -1; }
.community__photo img { display: block; width: 100%; height: 170px; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.community__photo--main img { height: 300px; }
.community__photo:hover img { transform: scale(1.05); }
.community__photo figcaption {
  position: absolute;
  left: .6rem;
  bottom: .6rem;
  padding: .3rem .65rem;
  background: rgba(29, 42, 35, .82);
  color: var(--white);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.community__link { justify-self: end; color: var(--lsia-green-dark); font-size: .9rem; font-weight: 800; border-bottom: 2px solid var(--lsia-green-soft); }
.community__link:hover { color: var(--lsia-green); border-bottom-color: var(--lsia-green); }
@media (max-width: 560px) {
  .community__photo img { height: 130px; }
  .community__photo--main img { height: 220px; }
}


.director { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 4rem; align-items: center; }
/* Portraits are cut out on a transparent background; one shared backdrop sits
   behind every member photo so they read as a set. */
.director__photo, .team-card__photo { background: linear-gradient(180deg, #fcfdfc 0%, #f7faf8 50%, #eef4f0 100%); }
.director__photo { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); border-top: 3px solid var(--lsia-green); }
.director--flip { grid-template-columns: 1fr minmax(0, 340px); margin-top: 5rem; }
.director--flip > .photo-link, .director--flip > .director__photo { order: 2; }
.photo-link { display: block; }
.photo-link img { transition: opacity .2s ease; }
.photo-link:hover img, .photo-link:focus-visible img { opacity: .85; }
.director h2 { max-width: 700px; }
.director__text { max-width: 62ch; font-size: 1.05rem; }
.director__name { margin: 1.75rem 0 0; color: var(--ink); font: 600 1.1rem/1.3 var(--display); }
.director__name span { display: block; margin-top: .15rem; color: var(--muted); font: 400 .85rem var(--text); }

.team-group + .team-group { margin-top: 3.5rem; }
.team-group__title { margin: 0 0 1.2rem; color: var(--lsia-green-dark); font-size: 1.25rem; }
/* Stands in for a portrait that hasn't been supplied yet. */
.team-card__initials { display: grid; place-items: center; background: var(--lsia-green-soft); color: var(--lsia-green-dark); font: 600 3.4rem/1 var(--display); letter-spacing: .04em; }
.team-card { flex: 0 0 260px; background: var(--white); border-top: 3px solid var(--lsia-green); padding: 1.3rem; transition: transform .2s ease, box-shadow .2s ease; }
.team-card:hover { transform: translateY(-4px); box-shadow: 0 16px 28px -20px rgba(29, 42, 35, .4); }
.team-card__photo { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; margin-bottom: 1.2rem; }
.team-card h3 { margin-bottom: .25rem; }
.team-card p { font-size: .85rem; }
.team-card__role a { color: var(--lsia-green-dark); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(23, 107, 58, .35); text-underline-offset: 3px; }
.team-card__role a:hover, .team-card__role a:focus-visible { color: var(--lsia-green); text-decoration-color: currentColor; }

/* Project holders: dark spotlight rows in the spirit of the news page's
   "Retour en images". Each row pairs a photo that wipes in with a floating
   key figure, and a text column with an outlined index, a progress stepper
   and the holders as overlapping initials. */
.spotlights { background: var(--ink); color: var(--white); overflow: hidden; }
.spotlights :focus-visible { outline-color: var(--white); }
.spotlights__intro { max-width: 640px; margin-bottom: 3.5rem; }
.spotlights__intro .eyebrow, .spotlight__kicker { color: #7fc79a; }
.spotlights__intro p:last-child { margin: 0; color: var(--footer-text); }

.spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 4.5rem;
  align-items: center;
  padding: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.spotlight:last-child { padding-bottom: 0; }
.spotlight--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.spotlight--flip .spotlight__media { order: 2; }

.spotlight__media { position: relative; padding-bottom: 2.5rem; }
.spotlight__frame { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: rgba(255, 255, 255, .06); }
.spotlight__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 45%, rgba(13, 77, 42, .55));
  pointer-events: none;
}
.spotlight__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.spotlight:hover .spotlight__frame img { transform: scale(1.05); }
.spotlight__stat {
  position: absolute;
  right: -1.5rem;
  bottom: 0;
  display: grid;
  gap: .35rem;
  max-width: 250px;
  padding: 1.3rem 1.5rem;
  background: var(--lsia-green);
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .7);
}
.spotlight--flip .spotlight__stat { right: auto; left: -1.5rem; }
.spotlight__stat strong { font: 600 clamp(2.2rem, 4vw, 3rem)/1 var(--display); letter-spacing: -.02em; }
.spotlight__stat span { color: #d6eadc; font-size: .82rem; line-height: 1.4; }

.spotlight__index {
  display: block;
  margin-bottom: 1.2rem;
  color: transparent;
  font: 600 clamp(4rem, 8vw, 6.5rem)/.85 var(--display);
  -webkit-text-stroke: 1px rgba(255, 255, 255, .38);
}
.spotlight__kicker { margin-bottom: .6rem; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.spotlight h3 { margin-bottom: .9rem; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.15; }
.spotlight__text > p:not([class]) { max-width: 54ch; margin: 0; color: var(--footer-text); line-height: 1.65; }

/* Progress: one segment per stage, filled up to the current one. */
.stepper { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.stepper li {
  padding-top: .7rem;
  border-top: 3px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .45);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.stepper .is-done { border-top-color: #7fc79a; color: var(--footer-text); }
.stepper .is-current { position: relative; border-top-color: var(--white); color: var(--white); }
.stepper .is-current::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, .6);
  animation: stepper-pulse 2.2s ease-out infinite;
}
@keyframes stepper-pulse { 70%, 100% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); } }

.spotlight__team { display: flex; align-items: center; gap: 1.2rem; margin-top: 2rem; }
.spotlight__avatars { display: flex; flex: none; }
.spotlight__avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: #7fc79a;
  color: var(--ink);
  font: 700 .85rem var(--display);
}
.spotlight__avatar + .spotlight__avatar { margin-left: -8px; }
.spotlight__avatar:nth-child(2) { background: var(--white); }
.spotlight__avatar:nth-child(3) { background: #d9c48f; }
.spotlight__people { display: grid; gap: .2rem; margin: 0; padding: 0; list-style: none; font-size: .86rem; color: var(--footer-text); }
.spotlight__people strong { color: var(--white); font-weight: 700; }
.spotlight__people strong::after { content: " ·"; color: rgba(255, 255, 255, .4); font-weight: 400; }

@media (max-width: 900px) {
  .spotlight, .spotlight--flip { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0; }
  .spotlight--flip .spotlight__media { order: 0; }
  .spotlight__stat, .spotlight--flip .spotlight__stat { right: 1rem; left: auto; max-width: 210px; padding: 1rem 1.2rem; }
  .spotlight__index { margin-bottom: .8rem; }
}
@media (max-width: 560px) {
  .stepper li { font-size: .6rem; letter-spacing: .04em; }
  .spotlight__team { align-items: flex-start; flex-direction: column; gap: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .stepper .is-current::before { animation: none; }
}

.publication { display: grid; grid-template-columns: 90px 1fr auto; gap: 2rem; align-items: start; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.publication[hidden] { display: none; }
.publication__year { color: var(--lsia-green); font: 700 1.5rem var(--display); }
.publication__author {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.publication__author:hover { color: var(--lsia-green); text-decoration: underline; text-underline-offset: 3px; }
.publication h3 { margin-bottom: .4rem; }
.publication p { margin-bottom: 0; font-size: .9rem; }
.pagination[hidden] { display: none; }

/* Publications explorer: a dark control panel (search, type, per-year bars)
   over a timeline list. Years mark where each group starts; the dot on the
   rail is filled for journal articles and hollow for conference papers. */
.pubx {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.6rem 3rem;
  align-items: end;
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--ink);
  color: var(--white);
}
.pubx[hidden] { display: none; }
.pubx :focus-visible { outline-color: var(--white); }
.pubx__controls { display: grid; gap: 1.1rem; }
.pubx__search {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .95rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .04);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.pubx__search:focus-within { border-color: #7fc79a; box-shadow: 0 0 0 3px rgba(127, 199, 154, .25); }
.pubx__search svg { flex: none; width: 20px; height: 20px; fill: none; stroke: #7fc79a; stroke-width: 2; stroke-linecap: round; }
.pubx__search input { flex: 1; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--white); font: 500 1.05rem var(--text); outline: none; }
.pubx__search input::placeholder { color: rgba(255, 255, 255, .5); }
.pubx__types { display: flex; flex-wrap: wrap; gap: .5rem; }
.pubx__type {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem .6rem .5rem 1rem;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font-size: .86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.pubx__type b { min-width: 1.7rem; padding: .1rem .45rem; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: .74rem; text-align: center; }
.pubx__type:hover { border-color: #7fc79a; }
.pubx__type[aria-pressed="true"] { background: #7fc79a; border-color: #7fc79a; color: var(--ink); }
.pubx__type[aria-pressed="true"] b { background: rgba(29, 42, 35, .14); }

.pubx__chart-title { margin: 0 0 .8rem; color: var(--footer-text); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.pubx__years { display: flex; align-items: stretch; gap: .7rem; height: 140px; }
.pubx__year {
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  gap: .35rem;
  width: 64px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--white);
  cursor: pointer;
}
.pubx__n { font: 600 1.05rem var(--display); font-variant-numeric: tabular-nums; }
.pubx__bar { display: flex; align-items: flex-end; width: 100%; height: 100%; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.pubx__fill { width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: rgba(127, 199, 154, .45); transition: height .6s cubic-bezier(.2, .8, .2, 1), background-color .2s ease; }
.pubx__label { color: var(--footer-text); font-size: .76rem; font-weight: 700; }
.pubx__year:hover .pubx__fill { background: rgba(127, 199, 154, .75); }
.pubx__year[aria-pressed="true"] .pubx__fill { background: #7fc79a; }
.pubx__year[aria-pressed="true"] .pubx__label { color: #7fc79a; }
.pubx__year.is-empty { opacity: .45; }
.pubx__status { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, .14); }
.pubx__status p { margin: 0; color: var(--footer-text); font-weight: 600; }
.pubx__reset { padding: 0; border: 0; border-bottom: 2px solid rgba(127, 199, 154, .5); background: none; color: #7fc79a; font-size: .88rem; font-weight: 800; cursor: pointer; }

/* Timeline rows. */
.is-explored .publication { grid-template-columns: 6.5rem minmax(0, 1fr) auto; gap: 0 2rem; padding: 0; border-top: 0; transition: background-color .25s ease; animation: pub-in .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes pub-in { from { opacity: 0; transform: translateY(10px); } }
.is-explored .publication__year { visibility: hidden; padding-top: 1.15rem; font-size: 2rem; line-height: 1; letter-spacing: -.02em; }
.is-explored .publication.is-year-start { margin-top: 1.4rem; border-top: 1px solid var(--ink); }
.is-explored .publication.is-year-start:first-child { margin-top: 0; }
.is-explored .publication.is-year-start .publication__year { visibility: visible; }
.is-explored .publication > div:nth-child(2) { position: relative; padding: 1.3rem 0 1.3rem 1.7rem; border-left: 1px solid var(--line); }
.is-explored .publication > div:nth-child(2)::before {
  content: "";
  position: absolute;
  top: 1.65rem;
  left: -6px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--lsia-green);
  border-radius: 50%;
  background: var(--paper);
  transition: transform .25s ease;
}
.is-explored .publication[data-format="article"] > div:nth-child(2)::before { background: var(--lsia-green); }
.is-explored .publication .tag { margin-top: 1.35rem; }
.is-explored .publication[data-format="article"] .tag { background: var(--lsia-green-dark); border-color: var(--lsia-green-dark); color: var(--white); }
.is-explored .publication h3 a { background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .35s ease, color .2s ease; }
.is-explored .publication h3 a::after { content: " ↗"; display: inline-block; color: var(--lsia-green); opacity: 0; transform: translate(-4px, 2px); transition: opacity .2s ease, transform .2s ease; }
.is-explored .publication:hover { background: linear-gradient(90deg, transparent 6.5rem, var(--lsia-green-soft) 6.5rem); }
.is-explored .publication:hover h3 a { color: var(--lsia-green-dark); background-size: 100% 1px; }
.is-explored .publication:hover h3 a::after { opacity: 1; transform: none; }
.is-explored .publication:hover > div:nth-child(2)::before { transform: scale(1.3); }

.news-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1rem; align-items: stretch; }
.news-layout__list { display: flex; flex-direction: column; }
.news-layout > .news-card--feature { display: flex; flex-direction: column; align-items: flex-start; }
.news-layout > .news-card--feature .card-link { margin-top: auto; }
.news-list { display: flex; flex-direction: column; gap: .75rem; }
.news-item { display: grid; grid-template-columns: 128px 1fr; gap: 1.1rem; align-items: center; padding: .75rem; background: var(--white); border: 1px solid var(--line); transition: border-color .2s ease, box-shadow .2s ease; }
.news-item:hover { border-color: var(--lsia-green); box-shadow: 0 16px 28px -20px rgba(29, 42, 35, .35); }
.news-item .published-image--news, .news-item__thumb { width: 128px; height: 96px; margin: 0; object-fit: cover; border: 0; }
.news-item__thumb { background: linear-gradient(135deg, var(--lsia-green-soft), #d3e5d8); }
.news-item h3 { font-size: 1.05rem; margin: .35rem 0 .25rem; }
/* A linked news item is clickable anywhere on the card: the title link stretches over it. */
.news-item { position: relative; }
.news-item h3 a::after { content: ""; position: absolute; inset: 0; }
.news-item p { margin: 0; color: var(--muted); font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card { padding: 1.5rem; background: var(--white); border: 1px solid var(--line); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.news-card:hover { border-color: var(--lsia-green); transform: translateY(-3px); box-shadow: 0 16px 28px -20px rgba(29, 42, 35, .35); }
.news-card--feature { background: var(--ink); color: var(--white); }
.news-card--feature p { color: var(--footer-text); }
.news-card--feature .card-link { color: #7fc79a; border-bottom-color: rgba(127, 199, 154, .4); }
.news-card--feature .card-link:hover { color: var(--white); border-bottom-color: var(--white); }
.news-card h3 { margin: 2rem 0 .7rem; }
.news-card__media { display: block; align-self: stretch; margin: -1.5rem -1.5rem 1.5rem; overflow: hidden; }
.news-card__media img { display: block; width: 100%; height: auto; transition: transform .4s ease; }
.news-card__media:hover img { transform: scale(1.03); }
.news-card__date { color: var(--lsia-green); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.news-card--feature .news-card__date { color: #7fc79a; }
.published-image { display: block; width: 100%; object-fit: cover; border: 1px solid var(--line); }
.published-image--project { height: 180px; margin: -1.5rem -1.5rem 1.25rem; width: calc(100% + 3rem); max-width: none; border: 0; }
.published-image--partnership { height: 100px; object-fit: contain; margin-bottom: 1rem; background: var(--white); padding: .75rem; }
.partner-card .published-image--partnership { margin-left: auto; margin-right: auto; }
.form__hint { display: block; margin-top: .35rem; color: var(--muted); font-size: .76rem; line-height: 1.45; }

/* ----------------------------------------------------------------- form */

.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; }
.contact-list {
  background-image: linear-gradient(to right, transparent, var(--line) 15%, var(--line) 85%, transparent);
  background-repeat: no-repeat;
  background-size: 100% 1px;
}
.contact-list a, .contact-list p { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-list a { color: var(--lsia-green-dark); font-weight: 700; }
.contact-list a:hover { color: var(--lsia-green); }
.form { display: grid; gap: .8rem; }
.form label { display: block; }
.form label > span { display: block; margin-bottom: .35rem; color: var(--muted); font-size: .8rem; font-weight: 800; }
.form input, .form textarea { width: 100%; padding: .85rem; border: 1px solid var(--line); background: var(--white); color: inherit; font: inherit; transition: border-color .15s ease; }
.form input:focus-visible, .form textarea:focus-visible { outline-offset: 0; border-color: var(--lsia-green); }
.form input[type="file"] {
  min-height: 4.25rem;
  padding: .65rem;
  border: 1px dashed rgba(38, 119, 75, .45);
  background: linear-gradient(135deg, rgba(242, 248, 244, .9), var(--white));
  color: var(--muted);
  cursor: pointer;
}
.form input[type="file"]:hover { border-color: var(--lsia-green); background: #f1f8f3; }
.form input[type="file"]:focus-visible { outline: 3px solid rgba(38, 119, 75, .18); outline-offset: 3px; border-color: var(--lsia-green); }
.form input[type="file"]::file-selector-button {
  margin-right: .8rem;
  padding: .62rem .9rem;
  border: 1px solid var(--lsia-green-dark);
  border-radius: 2px;
  background: var(--lsia-green-dark);
  color: var(--white);
  font: 800 .78rem var(--text);
  letter-spacing: .03em;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.form input[type="file"]::file-selector-button:hover { border-color: var(--ink); background: var(--ink); transform: translateY(-1px); }
.form textarea { min-height: 150px; resize: vertical; }
.form__status { margin: 0; font-size: .9rem; }
.form__status[data-tone="success"] { color: var(--lsia-green-dark); font-weight: 700; }
.form__status[data-tone="error"] { color: var(--danger); font-weight: 700; }

/* Honeypot: off-screen and untabbable, never display:none — some bots skip
   hidden fields, and skipping is exactly what a real visitor does. */
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------ member area */

/* `hidden` must beat display rules such as `.form { display: grid }`. */
[hidden] { display: none !important; }

/* Account link: an icon circle beside the language switch on desktop. Below
   900px it moves into the menu as text, because the header has no room. */
.header-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--lsia-green);
  border-radius: 99px;
  color: var(--lsia-green-dark);
}
.header-account:hover { background: var(--lsia-green); color: var(--white); }
.nav__account { display: none; }

/* Segmented control: the same pill language as the FR / EN switch. */
.segmented { display: inline-flex; flex-wrap: wrap; gap: .15rem; padding: .2rem; border: 1px solid var(--line); border-radius: 99px; background: var(--white); }
.segmented button { padding: .45rem .9rem; border-radius: 99px; color: var(--muted); font-size: .82rem; font-weight: 700; }
.segmented button:hover { color: var(--lsia-green-dark); }
.segmented button[aria-pressed="true"] { background: var(--lsia-green); color: var(--white); }
.segmented .count { display: inline-block; min-width: 1.6em; margin-left: .25rem; padding: 0 .35rem; border-radius: 99px; background: var(--lsia-green-soft); color: var(--lsia-green-dark); font-size: .72rem; line-height: 1.6; text-align: center; }
.segmented button[aria-pressed="true"] .count { background: var(--white); color: var(--lsia-green-dark); }

.link-button { padding: 0; color: var(--lsia-green-dark); font-size: .85rem; font-weight: 700; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.link-button:hover { color: var(--lsia-green); }
.link-button[disabled] { opacity: .6; cursor: progress; }

.button--danger { background: transparent; border: 1px solid var(--danger); color: var(--danger); }
.button--danger:hover { background: var(--danger); color: var(--white); box-shadow: none; }

.lsia-dialog {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(29, 42, 35, .34);
}
.lsia-dialog__panel {
  width: min(100%, 460px);
  padding: 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--lsia-green);
  box-shadow: 0 18px 50px rgba(29, 42, 35, .16);
}
.lsia-dialog__panel h2 { margin-bottom: .7rem; font-size: 1.65rem; }
.lsia-dialog__panel p { margin-bottom: 1.5rem; color: var(--muted); }
.lsia-dialog__actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .6rem; }
.lsia-dialog__actions .button--danger { background: var(--danger); color: var(--white); }
.lsia-dialog__actions .button--danger:hover { background: #861e15; }

.notice { display: grid; gap: .9rem; padding: 1.25rem 1.5rem; background: var(--lsia-green-soft); border-left: 3px solid var(--lsia-green); }
.notice p { margin: 0; color: var(--ink); }
.notice .button { justify-self: start; }

/* Sign-in card */
.auth { display: grid; gap: 1.2rem; max-width: 520px; }
.auth__card { display: grid; gap: 1.2rem; padding: 1.5rem; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--lsia-green); }
.auth__card[data-auth-panel="signed-out"] { gap: .5rem; }
.auth__card > .segmented { width: 100%; justify-content: center; }
.auth__card > .segmented button { flex: 1; text-align: center; }
.auth__form { gap: .85rem; }
.auth__form > .button { justify-self: start; }
.auth__form > .link-button { justify-self: start; }
.auth__who strong { display: block; color: var(--ink); font: 600 1.25rem/1.25 var(--display); }
.auth__who span { display: block; margin-top: .3rem; color: var(--muted); font-size: .9rem; }

@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; gap: 2rem; }
  .auth-quote { max-width: 520px; margin: 0 auto; }
  html:lang(en) .auth-quote p { white-space: normal; }
}

/* Forms: fieldsets, selects and the type picker, on top of the .form rules above. */
.form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; display: grid; gap: .8rem; }
.form legend { padding: 0; margin-bottom: .35rem; color: var(--muted); font-size: .8rem; font-weight: 800; }
.form select { width: 100%; padding: .85rem; border: 1px solid var(--line); background: var(--white); color: inherit; font: inherit; }
.form select:focus-visible { outline-offset: 0; border-color: var(--lsia-green); }
.kind-picker__options { display: flex; flex-wrap: wrap; gap: .5rem; }
.kind-option { position: relative; cursor: pointer; }
.form .kind-option > span { display: inline-block; margin: 0; padding: .6rem .95rem; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: .92rem; font-weight: 700; transition: border-color .15s ease, background-color .15s ease; }
.kind-option:hover > span { border-color: var(--lsia-green); }
.kind-option input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; border: 0; }
.kind-option input:focus-visible + span { outline: var(--focus) solid var(--lsia-green); outline-offset: 2px; }
.kind-option input:checked + span { border-color: var(--lsia-green); background: var(--lsia-green-soft); color: var(--lsia-green-dark); }

/* Member submissions */
.submission-list { display: grid; }
.submission-row { display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-top: 1rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.submission-row:first-child { margin-top: 0; }
.submission-row h3 { margin: .4rem 0 0; color: var(--ink); font-size: 1.2rem; }
.submission-row__note { margin: .6rem 0 0; color: var(--ink); font-size: .9rem; }
.submission-row__side { display: flex; flex-direction: column; align-items: flex-end; gap: .7rem; flex: none; }

.status { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .6rem; border: 1px solid currentColor; border-radius: 99px; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.status::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.status--pending { color: #6f5600; background: #fbf6e4; border-color: #d6b34a; }
.status--approved { color: var(--lsia-green-dark); background: var(--lsia-green-soft); border-color: #9cc3a8; }
.status--rejected { color: var(--danger); background: #fbeceb; border-color: #e3a69f; }
.submission-row__withdraw { color: var(--muted); }
.submission-row__withdraw:hover { color: var(--danger); }

/* Review screen */
body[data-page="admin"] .toolbar__kind select {
  border-radius: 999px;
}
body[data-page="admin"] .review-list {
  gap: 1rem;
  border: 0;
  background: transparent;
}
/* Every card has the same frame whatever its status: badges in one row, a
   fixed label column, one image size, and the note and buttons pinned to the
   bottom so they line up across the row. */
body[data-page="admin"] .review {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.15rem;
}
body[data-page="admin"] .review__head .tag { border-radius: 99px; padding: .3rem .6rem; font-size: .7rem; letter-spacing: .08em; line-height: normal; }
body[data-page="admin"] .review__fields { grid-template-columns: 8.5rem minmax(0, 1fr); align-items: start; }
body[data-page="admin"] .review__fields dt { padding-top: .15rem; }
body[data-page="admin"] .review__image { width: 100%; height: 150px; max-height: none; object-fit: contain; background: var(--paper); }
body[data-page="admin"] .review__note { margin-top: auto; }
body[data-page="admin"] .review__actions { align-items: center; }
body[data-page="admin"] .review__actions .button {
  border-radius: 999px;
  padding: .6rem .95rem;
  font-size: .82rem;
}
body[data-page="admin"] .review-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-top: 1.5rem;
}
.pagination__button {
  padding: .5rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--lsia-green-dark);
  font-size: .82rem;
  font-weight: 800;
}
.pagination__button:hover:not(:disabled) {
  border-color: var(--lsia-green);
  background: var(--lsia-green-soft);
}
.pagination__button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: .5;
}
.pagination__status {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.toolbar__kind { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .8rem; font-weight: 800; }
.toolbar__kind select { padding: .55rem .8rem; border: 1px solid var(--line); background: var(--white); color: inherit; font: inherit; }
.review-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.review { display: grid; gap: .8rem; padding: 1.25rem; background: var(--white); }
.review__head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.review h3 { margin: 0; }
.review__meta { margin: 0; font-size: .85rem; }
.review__fields { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; margin: 0; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.review__fields dt { color: var(--muted); font-size: .8rem; font-weight: 800; }
.review__fields dd { margin: 0; color: var(--ink); font-size: .95rem; overflow-wrap: anywhere; }
.review__fields a { color: var(--lsia-green-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.review__image { display: block; width: min(100%, 360px); max-height: 180px; object-fit: contain; border: 1px solid var(--line); background: var(--white); padding: .4rem; }
.review__note { display: grid; gap: .35rem; }
.review__note > span { color: var(--muted); font-size: .8rem; font-weight: 800; }
.review__note textarea { width: 100%; padding: .75rem; border: 1px solid var(--line); background: var(--white); color: inherit; font: inherit; resize: vertical; }
.review__note textarea:focus-visible { outline-offset: 0; border-color: var(--lsia-green); }
.review__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.review__actions .button { padding: .65rem 1rem; }
.review-empty { margin: 0; padding: 2rem; background: var(--white); }

/* Approved contributions on the public pages */
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.partner-grid .partner-card { flex: none; min-height: 210px; border: 0; }
.card-meta { margin: .6rem 0 0; font-size: .82rem; }
.card-link { display: inline-block; margin-top: .9rem; color: var(--lsia-green-dark); font-size: .9rem; font-weight: 800; border-bottom: 2px solid var(--lsia-green-soft); }
.card-link:hover { color: var(--lsia-green); border-bottom-color: var(--lsia-green); }

@media (max-width: 900px) {
  .header-account { display: none; }
  .nav .nav__account { display: block; color: var(--lsia-green-dark); }
  .partner-grid { grid-template-columns: 1fr 1fr; }
  .review__fields { grid-template-columns: 1fr; gap: .15rem 0; }
  .review__fields dd { margin-bottom: .6rem; }
  body[data-page="admin"] .review-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .auth__card { padding: 1.4rem; }
  .partner-grid { grid-template-columns: 1fr; }
  .submission-row { align-items: stretch; flex-direction: column; gap: 1rem; padding: 1.2rem; }
  .submission-row__side { align-items: flex-start; flex-direction: row; justify-content: space-between; }
  .segmented button { padding: .45rem .7rem; }
  body[data-page="admin"] .review-list { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------- footer */

.site-footer { padding: 4rem 0 1.5rem; background: var(--ink); color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.site-footer p, .site-footer a { color: var(--footer-text); font-size: .9rem; }
.site-footer a:hover { color: var(--white); }
.site-footer .footer-phone { margin: .3rem 0 0; }
.site-footer .footer-phone + p:not(.footer-phone) { margin-top: .9rem; }
.site-footer :focus-visible { outline-color: var(--white); }
/* Needs the .site-footer prefix: the generic `.site-footer p` rule below is a
   class+type selector and would otherwise out-specify this one, dropping the
   wordmark back to muted 0.9rem body text. */
.site-footer .footer-brand { margin-bottom: .6rem; color: var(--white); font: 700 1.4rem var(--display); letter-spacing: .04em; }
.site-footer .footer-profile { margin: 1.1rem 0 0; }
.site-footer .footer-profile a { color: var(--white); font-weight: 700; border-bottom: 1px solid #395144; }
.site-footer .footer-profile a:hover { border-bottom-color: var(--white); }
.footer-nav a { display: block; padding: .2rem 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.3rem; border-top: 1px solid #395144; color: var(--footer-text); font-size: .78rem; }

/* ----------------------------------------------------------- responsive */

/* The institutional strapline steps aside below 1280px, where the header's
   1240px container no longer leaves room for it beside a comfortably spaced nav. */
@media (max-width: 1280px) {
  .brand__context { display: none; }
}

@media (max-width: 1150px) {
  .nav { gap: 1.3rem; }
}

@media (max-width: 900px) {
  .site-header { position: sticky; height: auto; }
  .site-header__inner { height: auto; min-height: var(--nav); flex-wrap: wrap; }
  /* Take the menu out of the header's flex row so it overlays the page below
     the actual header height when it opens. */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 19;
    max-height: calc(100dvh - var(--nav));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: .4rem 0 1.1rem;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 32px -24px rgba(29, 42, 35, .35);
  }
  .nav a { display: block; padding: .75rem 1.5rem; font-size: 1rem; border-bottom: 1px solid var(--line); }

  /* Collapse the menu only when there is JavaScript to reopen it. Without
     scripting the nav stays expanded instead of becoming unreachable. */
  .js .nav { display: none; }
  .js .nav.open { display: flex; }
  .js .menu-button { display: block; }

  .hero__grid, .split, .statement, .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__visual { min-height: 280px; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .news-layout { grid-template-columns: 1fr; }
  .director { grid-template-columns: 1fr; gap: 2rem; }
  .director--flip { margin-top: 3.5rem; }
  .director--flip > .photo-link, .director--flip > .director__photo { order: 0; }
  .director__photo { max-width: 320px; }
  .publication { grid-template-columns: 70px 1fr; }
  .publication .tag { grid-column: 2; justify-self: start; }
  .pubx { grid-template-columns: 1fr; padding: 1.4rem; }
  .pubx__years { height: 110px; }
  .pubx__year { flex: 1; width: auto; }
  .is-explored .publication { grid-template-columns: 1fr; }
  .is-explored .publication__year { display: none; padding: 1rem 0 .2rem; font-size: 1.6rem; }
  .is-explored .publication.is-year-start .publication__year { display: block; }
  .is-explored .publication .tag { grid-column: 1; margin: 0 0 1.2rem 1.7rem; }
  .is-explored .publication > div:nth-child(2) { padding-bottom: .6rem; }
  .is-explored .publication:hover { background: var(--lsia-green-soft); }

  /* The primary nav is already one tap away behind the menu button here, so
     repeating every link in the footer is pure redundancy on a small screen. */
  .footer-nav { display: none; }
  .footer-grid { grid-template-columns: 1.3fr 1fr; }
}

@media (max-width: 560px) {
  .container { width: min(var(--max), calc(100% - 2rem)); }
  .section { padding: 3.5rem 0; }
  .section__intro { display: block; }
  .brand__context { display: none; }
  .project-grid { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 88px 1fr; gap: .85rem; }
  .news-item .published-image--news, .news-item__thumb { width: 88px; height: 72px; }
  .hero { min-height: auto; padding: 3.5rem 0 3rem; }
  .hero__grid { gap: 2rem; }
  h1 { font-size: clamp(2.35rem, 12vw, 3.6rem); }
  h2 { font-size: clamp(1.8rem, 9vw, 2.5rem); }
  .lead { font-size: 1rem; }
  .hero__visual { min-height: 220px; padding: 1.25rem; }
  .hero__visual::before { top: 1.25rem; left: 1.25rem; font-size: 5.5rem; }
  .hero__visual-panel strong { font-size: 1.05rem; }
  .statement { gap: 1.5rem; }
  .statement__mark { font-size: 3rem; }
  .statement__text { font-size: 1.65rem; }
  .section__intro { margin-bottom: 2rem; }
  .button-row { margin-top: 1.5rem; }
  .button { padding: .72rem 1rem; font-size: .9rem; }
  .pagination { flex-wrap: wrap; gap: .55rem; margin-top: 1.25rem; }
  .pagination__status { order: -1; width: 100%; text-align: center; }
  .pagination__button { min-width: 7rem; }
  .project-grid[data-approved], .partner-grid { grid-template-columns: 1fr; }
  .footer-grid, .footer-bottom { display: block; }
  .footer-grid > * { margin-bottom: 2rem; }
  .footer-bottom > * { display: block; margin-top: .5rem; }
}

/* --------------------------------------------------------- scroll reveal */

/* Applied only by site.js, and only to sections that are already off-screen
   at load time — never by default here. A static opacity:0 rule would hide
   above-the-fold content until the (cache-revalidated, so not instant)
   external script runs, the same flash-of-unstyled-content risk the inline
   language swap in tools/sync-shell.mjs exists to avoid. */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Approved entries can be fewer than the grid columns. auto-fit lets a lone
   entry span the row, so the grid background never shows through empty cells.
   Placed last so it also beats the breakpoint rules above. */
.project-grid[data-approved], .partner-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Administrator chooser: two cards side by side, same card language as the site. */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.choice-card { display: flex; flex-direction: column; gap: .6rem; padding: 1.5rem; background: var(--white); transition: background-color .2s ease; }
.choice-card:hover { background: var(--lsia-green-soft); }
.choice-card h2 { margin: 0; font-size: 1.6rem; }
.choice-card p { margin: 0; }
.choice-card .choice-card__count { color: var(--lsia-green-dark); font-weight: 700; }
.choice-card .choice-card__go { margin-top: auto; color: var(--lsia-green-dark); font-weight: 800; }
@media (max-width: 720px) { .choice-grid { grid-template-columns: 1fr; } }

/* Sign-out: an icon beside the account icon on desktop, a menu item on phones.
   Hidden until assets/js/session.js confirms a session. */
.header-signout { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--lsia-green); border-radius: 99px; background: none; color: var(--lsia-green-dark); cursor: pointer; }
.header-signout:hover { background: var(--lsia-green); color: var(--white); }
.nav__signout { display: none; }
@media (max-width: 900px) {
  .header-signout { display: none; }
  .nav .nav__signout { display: block; width: 100%; padding: .65rem 1.5rem; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--lsia-green-dark); font: inherit; font-size: 1rem; font-weight: 700; text-align: left; cursor: pointer; }
}

/* ----------------------------------------------------------------- events */

/* Past events on the news page: a dark gallery band where each event is a
   numbered chapter, its text held in view while the photo mosaic scrolls by.
   The markup is generated by tools/sync-shell.mjs. */
.events { background: var(--ink); color: var(--white); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.events :focus-visible { outline-color: var(--white); }
.events__intro { max-width: 640px; margin-bottom: 3.5rem; }
.events__intro .eyebrow, .event__kicker { color: #7fc79a; }
.events__intro p:last-child { margin: 0; color: var(--footer-text); }

.event {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.7fr);
  gap: 3.5rem;
  align-items: start;
  padding: 3.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.event:last-child { padding-bottom: 0; }
.event--flip { grid-template-columns: minmax(0, 1.7fr) minmax(0, .8fr); }
.event--flip .event__text { order: 2; }
.event__text { position: sticky; top: calc(var(--nav) + 2rem); }
.event__index {
  display: block;
  margin-bottom: 1.5rem;
  color: transparent;
  font: 600 clamp(4rem, 9vw, 7.5rem)/.85 var(--display);
  -webkit-text-stroke: 1px rgba(255, 255, 255, .38);
}
.event__kicker { margin-bottom: .6rem; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.event h3 { margin-bottom: .9rem; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.event__text > p:not([class]) { margin: 0; color: var(--footer-text); }
.event__open {
  margin-top: 1.6rem;
  padding: .7rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  color: var(--white);
  font-size: .9rem;
  font-weight: 700;
}
.event__open:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.event__pending {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 1.6rem 0 0;
  color: var(--footer-text);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.event__pending::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7fc79a; }

/* Four columns, two rows: the first photo takes the left half, the rest fill
   the right. data-count reshapes the right half when there are fewer photos. */
.event__mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(110px, 15vw, 210px);
  gap: .6rem;
}
.event__tile { position: relative; display: block; overflow: hidden; background: rgba(255, 255, 255, .06); }
.event__tile:first-child { grid-column: span 2; grid-row: span 2; }
.event__mosaic[data-count="1"] .event__tile { grid-column: 1 / -1; }
.event__mosaic[data-count="2"] .event__tile { grid-column: span 2; grid-row: span 2; }
.event__mosaic[data-count="3"] .event__tile:not(:first-child),
.event__mosaic[data-count="4"] .event__tile:nth-child(2) { grid-column: span 2; }
.event__mosaic--wide .event__tile:first-child { grid-column: 1 / -1; }
.event__mosaic--wide[data-count="3"] .event__tile:not(:first-child) { grid-column: span 2; grid-row: auto; }
.event__mosaic--wide[data-count="2"] .event__tile:not(:first-child) { grid-column: 1 / -1; grid-row: auto; }
.event__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.event__tile:hover img { transform: scale(1.06); }
.event__more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(29, 42, 35, .72);
  font: 600 1.7rem var(--display);
}
.event__mosaic--empty .event__tile { background: rgba(255, 255, 255, .03); border: 1px dashed rgba(255, 255, 255, .2); }

html:has(.lightbox[open]) { overflow: hidden; }
.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(13, 20, 16, .97);
  color: var(--white);
}
.lightbox[open] { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
.lightbox::backdrop { background: rgba(13, 20, 16, .97); }
.lightbox :focus-visible { outline-color: var(--white); }
.lightbox__figure { display: grid; justify-items: center; align-content: center; gap: .9rem; height: 100%; margin: 0; padding: 4rem 0 1.5rem; }
.lightbox__image { max-width: 100%; max-height: calc(100dvh - 9rem); object-fit: contain; }
.lightbox__caption { color: var(--footer-text); font-size: .82rem; letter-spacing: .08em; }
.lightbox__nav, .lightbox__close {
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.1rem;
}
.lightbox__nav { margin: 0 1.25rem; }
.lightbox__close { position: absolute; top: 1rem; right: 1.25rem; }
.lightbox__nav:hover, .lightbox__close:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.lightbox--single .lightbox__nav { visibility: hidden; }

@media (max-width: 900px) {
  .event { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 0; }
  .event--flip .event__text { order: 0; }
  .event__text { position: static; }
  .event__index { margin-bottom: 1rem; }
  .event__mosaic { grid-auto-rows: clamp(90px, 24vw, 200px); gap: .4rem; }
  .lightbox__nav { width: 2.5rem; height: 2.5rem; margin: 0 .4rem; }
}

/* --------------------------------------------------------- partner orbit */

/* The partners circle the laboratory's own mark. The ring turns as a whole
   and every logo turns back by the same amount, so the tiles travel round
   the orbit while staying upright. Everything is sized from --size, so the
   figure scales as one piece down to phone width. */
.partners { overflow: hidden; }
.orbit {
  position: relative;
  width: min(700px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  container-type: inline-size;
}
.orbit::before, .orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.orbit::before { inset: 9%; border: 1px dashed #c5d3c9; }
.orbit::after { inset: 27%; background: radial-gradient(circle, rgba(23, 107, 58, .1), transparent 68%); animation: orbit-breathe 6s ease-in-out infinite; }
.orbit__core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34cqw;
  padding: 3.2cqw 3.6cqw;
  background: var(--white);
  border: 1px solid var(--lsia-green);
  border-radius: 999px;
  box-shadow: 0 0 0 1.6cqw rgba(23, 107, 58, .07), 0 24px 40px -28px rgba(13, 77, 42, .5);
  transform: translate(-50%, -50%);
}
.orbit__core img { width: 100%; height: auto; }
.orbit__ring {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: orbit-turn 80s linear infinite;
}
/* A marker riding the orbit line, halfway between two partners. */
.orbit__ring::before {
  content: "";
  position: absolute;
  top: 9%;
  left: 50%;
  width: 9px;
  height: 9px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--lsia-green);
  box-shadow: 0 0 0 5px rgba(23, 107, 58, .14);
}
.orbit__item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 23cqw;
  height: 15cqw;
  margin: -7.5cqw 0 0 -11.5cqw;
  transform: rotate(var(--angle)) translateY(-41cqw) rotate(calc(var(--angle) * -1));
}
/* Nine partners, evenly spaced; the half-step offset leaves the top of the
   ring free for the marker. */
.orbit__item:nth-child(1) { --angle: 20deg; --delay: 0.05s; }
.orbit__item:nth-child(2) { --angle: 60deg; --delay: 0.13s; }
.orbit__item:nth-child(3) { --angle: 100deg; --delay: 0.21s; }
.orbit__item:nth-child(4) { --angle: 140deg; --delay: 0.29s; }
.orbit__item:nth-child(5) { --angle: 180deg; --delay: 0.37s; }
.orbit__item:nth-child(6) { --angle: 220deg; --delay: 0.45s; }
.orbit__item:nth-child(7) { --angle: 260deg; --delay: 0.53s; }
.orbit__item:nth-child(8) { --angle: 300deg; --delay: 0.61s; }
.orbit__item:nth-child(9) { --angle: 340deg; --delay: 0.69s; }
.orbit__logo { position: relative; width: 100%; height: 100%; animation: orbit-turn 80s linear infinite reverse; }
.orbit__tile {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2.6cqw;
  box-shadow: 0 16px 30px -22px rgba(29, 42, 35, .45);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
  animation: orbit-arrive .9s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: var(--delay);
}
/* Positioned, not sized by the tile's flow, so a tall logo cannot push past it. */
.orbit__tile img { position: absolute; inset: 1.6cqw 2cqw; width: calc(100% - 4cqw); height: calc(100% - 3.2cqw); object-fit: contain; }
.orbit__name {
  position: absolute;
  top: calc(100% + .55rem);
  left: 50%;
  padding: .2rem .6rem;
  background: var(--ink);
  border-radius: 999px;
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -4px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
/* Hovering holds the whole orbit still so a logo can be looked at. */
.orbit:hover .orbit__ring, .orbit:hover .orbit__logo,
.orbit:focus-within .orbit__ring, .orbit:focus-within .orbit__logo { animation-play-state: paused; }
.orbit__item:hover, .orbit__item:focus-within { z-index: 2; }
.orbit__item:hover .orbit__tile, .orbit__tile:focus-visible { border-color: var(--lsia-green); box-shadow: 0 22px 36px -20px rgba(13, 77, 42, .5); transform: scale(1.12); }
.orbit__item:hover .orbit__name, .orbit__item:focus-within .orbit__name { opacity: 1; transform: translate(-50%, 0); }
.partners__note { margin: 2rem auto 0; max-width: 420px; color: var(--muted); font-size: .92rem; text-align: center; }

@keyframes orbit-turn { to { transform: rotate(360deg); } }
@keyframes orbit-arrive { from { opacity: 0; transform: scale(.6); } }
@keyframes orbit-breathe { 50% { transform: scale(1.12); opacity: .6; } }

/* ---------------------------------------------------------- research axes */

/* Research page: the axes are set as type, not boxes. On wide screens one
   photo stays pinned beside the list and cross-fades to the axis being read
   (site.js marks it .is-active). On narrow screens the pinned stage is
   dropped and each axis carries its own full-width photo instead. */
.axes { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 5rem; align-items: start; }
.axes__stage { position: sticky; top: calc(var(--nav) + 2rem); }
.axes__frame { position: relative; height: min(620px, calc(100vh - var(--nav) - 4rem)); overflow: hidden; background: var(--ink); }
.axes__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .8s ease, transform 1.6s ease; }
.axes__photo.is-active { opacity: 1; transform: scale(1); }
.axes__count { position: absolute; left: 0; bottom: 0; padding: .7rem 1.1rem; background: var(--paper); color: var(--lsia-green-dark); font: 600 .85rem var(--display); letter-spacing: .12em; }
.axes__list { margin: 0; padding: 0; list-style: none; }
.axis { display: flex; flex-direction: column; justify-content: center; min-height: 64vh; padding: 3rem 0; border-top: 1px solid var(--line); }
.axis:first-child { border-top: 0; }
.axis__photo { display: none; }
.axis__index {
  margin-bottom: 1.25rem;
  color: transparent;
  font: 600 clamp(4rem, 8vw, 6.5rem)/.85 var(--display);
  -webkit-text-stroke: 1px #b7c8bc;
  transition: color .5s ease, -webkit-text-stroke-color .5s ease;
}
.axis.is-active .axis__index { color: var(--lsia-green); -webkit-text-stroke-color: var(--lsia-green); }
.axis h2 { max-width: 14ch; margin-bottom: 1.4rem; font-size: clamp(2rem, 3.6vw, 3.1rem); }
.axis__topics { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 1.05rem; line-height: 1.9; }
.axis__topics li { display: inline-block; }
.axis__topics li:not(:last-child)::after { content: "·"; margin: 0 .6rem; color: var(--lsia-green); font-weight: 800; }

/* Home page teaser: the axes as ruled lines. */
.axis-rows { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid #c9d6cd; }
/* The top rule is a background so it can be drawn in from the left. */
.axis-row { display: grid; grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1.3fr); gap: 2rem; align-items: baseline; padding: 1.75rem 0; background: linear-gradient(#c9d6cd, #c9d6cd) left top / 100% 1px no-repeat; }
.axis-row__index { color: var(--lsia-green); font: 600 1.5rem var(--display); }
.axis-row h3 { margin: 0; font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
.axis-row p { margin: 0; color: var(--muted); }

@media (max-width: 900px) {
  .axes { display: block; }
  .axes__stage { display: none; }
  .axis { display: block; min-height: 0; padding: 0 0 2.75rem; border-top: 0; }
  .axis + .axis { padding-top: 2.75rem; border-top: 1px solid var(--line); }
  .axis__photo { display: block; width: calc(100% + 2rem); max-width: none; height: auto; aspect-ratio: 16 / 10; margin: 0 -1rem; object-fit: cover; }
  /* The number sits in a notch cut into the photo's lower-left corner. */
  .axis__index {
    position: relative;
    display: inline-block;
    margin: -2.4rem 0 1rem -1rem;
    padding: .7rem 1.1rem 0 1rem;
    background: var(--paper);
    color: var(--lsia-green);
    font-size: 3.6rem;
    -webkit-text-stroke: 0;
  }
  .axis h2 { max-width: none; margin-bottom: 1.1rem; font-size: 1.9rem; }
  .axis__topics { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .88rem; line-height: 1.3; }
  .axis__topics li { display: block; padding: .4rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); }
  .axis__topics li:not(:last-child)::after { content: none; }
  .axis-row { grid-template-columns: 3rem minmax(0, 1fr); gap: .35rem 1rem; padding: 1.4rem 0; }
  .axis-row p { grid-column: 2; }
}

/* ----------------------------------------------------------- home motion */

/* The hero settles in on load. Keyframes rather than a scripted class, so
   the content can never be left hidden if a script is slow or fails. */
body[data-page="home"] .hero__copy > * { animation: rise-in .9s cubic-bezier(.2, .8, .2, 1) both; }
body[data-page="home"] .hero__copy > :nth-child(2) { animation-delay: .1s; }
body[data-page="home"] .hero__copy > :nth-child(3) { animation-delay: .2s; }
body[data-page="home"] .hero__copy > :nth-child(4) { animation-delay: .3s; }
body[data-page="home"] .hero__visual { animation: rise-in 1.1s cubic-bezier(.2, .8, .2, 1) .15s both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(26px); } }

/* Oversized so site.js can drift it against the scroll without showing an edge. */
.hero__visual > img[data-parallax] { top: -10%; bottom: auto; height: 120%; will-change: transform; }

/* Everything below is applied by site.js, and only to elements still below
   the fold when it runs, for the same reason as .reveal above. */
.statement__text .word { color: #c3cdc6; transition: color .45s ease; }
.statement__text .word.is-lit { color: var(--ink); }

.will-reveal[data-reveal="stagger"] > * { opacity: 0; transform: translateY(26px); }
[data-reveal="stagger"] > * { transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
[data-reveal="stagger"] > :nth-child(2) { transition-delay: .1s; }
[data-reveal="stagger"] > :nth-child(3) { transition-delay: .2s; }
[data-reveal="stagger"] > :nth-child(4) { transition-delay: .3s; }

.axis-row[data-reveal] { transition: background-size 1s cubic-bezier(.2, .8, .2, 1); }
.axis-row[data-reveal] > * { transition: opacity .7s ease .15s, transform .7s cubic-bezier(.2, .8, .2, 1) .15s; }
.axis-row[data-reveal]:nth-child(2), .axis-row[data-reveal]:nth-child(2) > * { transition-delay: .18s; }
.axis-row[data-reveal]:nth-child(2) > * { transition-delay: .33s; }
.axis-row[data-reveal]:nth-child(3) { transition-delay: .36s; }
.axis-row[data-reveal]:nth-child(3) > * { transition-delay: .51s; }
.axis-row.will-reveal { background-size: 0 1px; }
.axis-row.will-reveal > * { opacity: 0; transform: translateY(18px); }

/* The wrapper is what gets observed: a fully clipped element never counts as
   intersecting, so the image could not trigger its own reveal. */
[data-reveal="wipe"] > img { transition: clip-path 1.2s cubic-bezier(.2, .8, .2, 1), transform 1.4s cubic-bezier(.2, .8, .2, 1); }
.will-reveal[data-reveal="wipe"] > img { clip-path: inset(0 100% 0 0); transform: scale(1.06); }

.will-reveal.is-in[data-reveal="stagger"] > *, .axis-row.will-reveal.is-in > * { opacity: 1; transform: none; }
.axis-row.will-reveal.is-in { background-size: 100% 1px; }
.will-reveal.is-in[data-reveal="wipe"] > img { clip-path: inset(0); transform: none; }

/* ---------------------------------------------------------- about motion */

/* The hero settles in with keyframes; everything below reveals on scroll. */
body[data-page="about"] .about-hero__grid > div > *,
body[data-page="student-lab"] .about-hero__grid > div > *,
body[data-page="student-lab"] .about-hero__photo,
body[data-page="about"] .about-hero__photo { animation: rise-in .9s cubic-bezier(.2, .8, .2, 1) both; }
body[data-page="about"] .about-hero__grid > div > :nth-child(2) { animation-delay: .1s; }
body[data-page="about"] .about-hero__grid > div > :nth-child(3) { animation-delay: .2s; }
body[data-page="about"] .about-hero__grid > div > :nth-child(4) { animation-delay: .3s; }
body[data-page="about"] .about-hero__photo { animation-delay: .25s; }

.about-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 4rem; align-items: center; }
.about-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.about-chips li { padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font-size: .85rem; font-weight: 700; }
.about-chips li:first-child { border-color: var(--lsia-green); background: var(--lsia-green); color: var(--white); }
.about-hero__photo { position: relative; margin: 0; }
.about-hero__photo::before { content: ""; position: absolute; inset: 1.2rem -1.2rem -1.2rem 1.2rem; border: 1px solid var(--lsia-green); }
.about-hero__photo img { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.about-hero__photo figcaption {
  position: absolute;
  left: -1.2rem;
  bottom: 1.5rem;
  display: grid;
  gap: .15rem;
  max-width: 260px;
  padding: .9rem 1.1rem;
  background: var(--ink);
  color: var(--footer-text);
  font-size: .8rem;
  box-shadow: 0 20px 36px -24px rgba(0, 0, 0, .6);
}
.about-hero__photo figcaption strong { color: #7fc79a; font: 600 1.1rem var(--display); letter-spacing: .06em; }

/* Mission: four steps on a rail that draws in from left to right. */
.mission { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin: 0; padding: 0; list-style: none; }
.mission::before { content: ""; position: absolute; top: 32px; left: 32px; right: 32px; height: 2px; background: linear-gradient(90deg, var(--lsia-green), #7fc79a); transform-origin: left; transition: transform 1.4s cubic-bezier(.6, 0, .2, 1); }
.will-reveal[data-reveal="mission"]::before { transform: scaleX(0); }
.will-reveal.is-in[data-reveal="mission"]::before { transform: none; }
.mission-step { position: relative; transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.mission-step:nth-child(2) { transition-delay: .25s; }
.mission-step:nth-child(3) { transition-delay: .5s; }
.mission-step:nth-child(4) { transition-delay: .75s; }
.will-reveal[data-reveal="mission"] .mission-step { opacity: 0; transform: translateY(18px); }
.will-reveal.is-in[data-reveal="mission"] .mission-step { opacity: 1; transform: none; }
.mission-step__dot { display: grid; place-items: center; width: 64px; height: 64px; border: 2px solid var(--lsia-green); border-radius: 50%; background: var(--paper); transition: background-color .3s ease, transform .3s ease; }
.section--tint .mission-step__dot { background: var(--lsia-green-soft); }
.mission-step__dot svg { width: 30px; height: 30px; fill: none; stroke: var(--lsia-green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s ease; }
.mission-step:hover .mission-step__dot { background: var(--lsia-green); transform: scale(1.06); }
.mission-step:hover .mission-step__dot svg { stroke: var(--white); }
.mission-step__index { position: absolute; top: 5.2rem; right: 0; color: transparent; font: 600 2.6rem/1 var(--display); -webkit-text-stroke: 1px #c9d6cd; }
.mission-step h3 { margin: 1.4rem 0 .5rem; font-size: 1.4rem; }
.mission-step p { margin: 0; color: var(--muted); }

/* Audiences: three doors, each a link to the page that serves it. */
.audiences { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.audiences > li { display: flex; }
.audience {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  padding: 2rem 1.8rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  transition: color .35s ease, border-color .35s ease;
}
.audience::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateY(101%); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.audience > * { position: relative; }
.audience__index { color: var(--lsia-green); font: 600 .85rem var(--display); letter-spacing: .14em; }
.audience h3 { margin: 2.5rem 0 .7rem; font-size: 1.5rem; line-height: 1.15; }
.audience p { margin: 0 0 1.6rem; color: var(--muted); transition: color .35s ease; }
.audience__cta { margin-top: auto; color: var(--lsia-green-dark); font-size: .9rem; font-weight: 800; transition: color .35s ease; }
.audience__cta span:last-child { display: inline-block; transition: transform .3s ease; }
.audience:hover, .audience:focus-visible { color: var(--white); border-color: var(--ink); }
.audience:hover::before, .audience:focus-visible::before { transform: none; }
.audience:hover p, .audience:focus-visible p { color: var(--footer-text); }
.audience:hover .audience__cta, .audience:hover .audience__index,
.audience:focus-visible .audience__cta, .audience:focus-visible .audience__index { color: #7fc79a; }
.audience:hover .audience__cta span:last-child { transform: translateX(6px); }

/* Student Lab: a wide door under the three, leading to /about/student-lab. */
.audience--wide { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto; gap: 2.5rem; align-items: center; margin-top: 1rem; padding: 0 2.4rem 0 0; }
.audience--wide img { position: relative; width: 100%; height: 100%; min-height: 150px; object-fit: cover; }
.audience--wide h3 { margin: .5rem 0 .4rem; }
.audience--wide p { margin: 0; }
.audience--wide .audience__cta { margin: 0; white-space: nowrap; }

/* Student Lab page. */
.crumb { color: inherit; border-bottom: 1px solid currentColor; }
.crumb:hover { color: var(--lsia-green-dark); }
.mission--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lab-model, .lab-strands, .lab-roadmap { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.lab-model { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lab-model li { padding-top: 1rem; border-top: 2px solid var(--lsia-green); }
.lab-model__index { color: var(--lsia-green); font: 600 .85rem var(--display); letter-spacing: .14em; }
.lab-model h3, .lab-strands h3, .lab-roadmap h3 { margin: .6rem 0 .4rem; font-size: 1.2rem; }
.lab-model p, .lab-strands p, .lab-roadmap p { margin: 0; color: var(--muted); }
.lab-strands { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.lab-strands li { padding: 1.6rem 1.4rem; border: 1px solid var(--line); background: var(--white); }
.lab-strands h3 { margin-top: 0; color: var(--lsia-green-dark); }
.lab-note { max-width: 70ch; margin: 1.8rem 0 0; color: var(--muted); font-size: .95rem; }
.lab-roadmap { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.lab-roadmap li { position: relative; padding-top: 1.6rem; border-top: 2px solid var(--line); }
.lab-roadmap li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border: 2px solid var(--lsia-green); border-radius: 50%; background: var(--paper); }
.lab-roadmap li.is-done { border-top-color: var(--lsia-green); }
.lab-roadmap li.is-done::before { background: var(--lsia-green); }
.lab-roadmap__when { color: var(--lsia-green-dark); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

/* EMSI band and the visit block. */
.emsi-band { background: var(--ink); color: var(--white); }
.emsi-band .eyebrow { color: #7fc79a; }
.emsi-band__grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 5rem; align-items: center; }
.emsi-band__logo { display: grid; place-items: center; margin: 28px; aspect-ratio: 1; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 14px rgba(255, 255, 255, .06), 0 0 0 28px rgba(255, 255, 255, .03); }
.emsi-band__logo img { width: 58%; height: auto; }
.emsi-band__grid > div > p:not(.eyebrow) { max-width: 60ch; color: var(--footer-text); }
.emsi-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0; }
.emsi-facts div { padding-top: .9rem; border-top: 1px solid rgba(255, 255, 255, .18); }
.emsi-facts dt { color: #7fc79a; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.emsi-facts dd { margin: .35rem 0 0; font: 600 1rem/1.35 var(--display); }
.emsi-band__link { color: var(--white); font-weight: 800; border-bottom: 2px solid #7fc79a; }
.emsi-band__link:hover { color: #7fc79a; }

.visit__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 3rem; align-items: center; }
.visit__grid h2 { margin: 0; }
.visit__card { display: grid; justify-items: start; gap: .8rem; padding: 2rem; border: 1px solid var(--line); border-left: 3px solid var(--lsia-green); background: var(--white); }
.visit__address { margin: 0; color: var(--ink); font: 600 1.15rem/1.45 var(--display); }
.visit__mail { color: var(--lsia-green-dark); font-weight: 700; }
.visit__card .button { margin-top: .6rem; }

@media (max-width: 900px) {
  .about-hero__grid, .emsi-band__grid, .visit__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-hero__photo { margin-right: 1.2rem; }
  .mission { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .mission::before { display: none; }
  .audiences, .emsi-facts { grid-template-columns: 1fr; }
  .audience--wide { grid-template-columns: 1fr; gap: 1rem; padding: 0 0 2rem; }
  .audience--wide img { aspect-ratio: 16 / 9; min-height: 0; }
  .audience--wide > div, .audience--wide .audience__cta { padding: 0 1.8rem; }
  .mission--three, .lab-model { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab-strands, .lab-roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
  .emsi-band__logo { width: 200px; }
}
@media (max-width: 560px) {
  .mission { grid-template-columns: 1fr; }
  .lab-model, .lab-strands, .lab-roadmap { grid-template-columns: 1fr; }
  .about-hero__photo figcaption { position: relative; left: 0; bottom: auto; max-width: none; }
}

.fact[data-reveal] { transition: background-size .9s cubic-bezier(.2, .8, .2, 1); }
.fact[data-reveal] > * { transition: opacity .6s ease .1s, transform .6s cubic-bezier(.2, .8, .2, 1) .1s; }
.fact[data-reveal]:nth-child(2) { transition-delay: .15s; }
.fact[data-reveal]:nth-child(2) > * { transition-delay: .25s; }
.fact[data-reveal]:nth-child(3) { transition-delay: .3s; }
.fact[data-reveal]:nth-child(3) > * { transition-delay: .4s; }
.fact.will-reveal { background-size: 0 1px; }
.fact.will-reveal > * { opacity: 0; transform: translateY(14px); }
.fact.will-reveal.is-in { background-size: 100% 1px; }
.fact.will-reveal.is-in > * { opacity: 1; transform: none; }

/* --------------------------------------------------------- EMSI network */

/* LSIA's sister laboratories as stops on a line: each stop draws its own
   stretch of the rail, so staggering them reads as one line being drawn
   from city to city. On narrow screens the rail runs down the left edge. */
.network { border-top: 1px solid var(--line); }
.network__intro { max-width: 640px; margin-bottom: 3rem; }
.network__intro h2 { margin-bottom: 0; }
.network__line { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.network__node { padding-right: 2.5rem; }
.network__logo {
  position: relative;
  display: block;
  width: min(230px, 100%);
  height: 110px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.network__logo:hover { border-color: var(--lsia-green); box-shadow: 0 18px 32px -22px rgba(13, 77, 42, .5); transform: translateY(-3px); }
.network__logo img { position: absolute; inset: 1.1rem 1.4rem; width: calc(100% - 2.8rem); height: calc(100% - 2.2rem); object-fit: contain; }
.network__rail { position: relative; display: block; height: 1px; margin: 2rem -2.5rem 1.6rem 0; background: #b7c8bc; transform-origin: left; }
.network__node:last-child .network__rail { margin-right: 0; }
.network__rail::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--lsia-green);
  box-shadow: 0 0 0 5px rgba(23, 107, 58, .14);
}
.network__city { margin: 0 0 .35rem; color: var(--lsia-green); font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.network__node h3 { margin: 0 0 .5rem; font-size: 1.6rem; }
.network__full { margin: 0; max-width: 30ch; color: var(--muted); font-size: .95rem; }

.network__line[data-reveal] .network__rail { transition: transform 1s cubic-bezier(.4, 0, .2, 1); }
.network__line[data-reveal] .network__rail::before { transition: transform .5s cubic-bezier(.2, 1.4, .4, 1); }
.network__line[data-reveal] .network__node > :not(.network__rail) { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.network__line[data-reveal] .network__node:nth-child(2) .network__rail { transition-delay: .7s; }
.network__line[data-reveal] .network__node:nth-child(3) .network__rail { transition-delay: 1.4s; }
.network__line[data-reveal] .network__node:nth-child(1) > :not(.network__rail) { transition-delay: .15s; }
.network__line[data-reveal] .network__node:nth-child(2) > :not(.network__rail) { transition-delay: .85s; }
.network__line[data-reveal] .network__node:nth-child(3) > :not(.network__rail) { transition-delay: 1.55s; }
.network__line.will-reveal .network__rail { transform: scaleX(0); }
.network__line.will-reveal .network__node > :not(.network__rail) { opacity: 0; transform: translateY(16px); }
.network__line.will-reveal.is-in .network__rail { transform: none; }
.network__line.will-reveal.is-in .network__node > :not(.network__rail) { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .network__intro { margin-bottom: 2.25rem; }
  .network__line { display: block; }
  .network__node { position: relative; padding: 0 0 2.5rem 2.25rem; }
  .network__node:last-child { padding-bottom: 0; }
  .network__rail { position: absolute; top: 0; bottom: 0; left: 5px; width: 1px; height: auto; margin: 0; transform-origin: top; }
  .network__node:last-child .network__rail { bottom: auto; height: 0; }
  .network__rail::before { top: 0; left: -5px; }
  .network__logo { margin-bottom: 1.1rem; }
  .network__line.will-reveal .network__rail { transform: scaleY(0); }
}

/* ---------------------------------------------------------- contact page */

/* One screen: title and contact details beside the form, with no footer.
   Sizes follow the window's height as well as its width, so on a laptop the
   whole page sits in view; a window too short for that simply scrolls. */
.contact-page { padding: calc(var(--nav) + 2rem) 0 2rem; }
.contact-page .contact-layout { grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: center; }
.contact-page h1 { margin-bottom: clamp(.5rem, 1.6vh, 1rem); font-size: clamp(2.1rem, min(4.2vw, 7.5vh), 3.6rem); }
.contact-page .lead { max-width: 44ch; margin-bottom: clamp(.8rem, 2.4vh, 1.6rem); font-size: clamp(.95rem, 1.9vh, 1.1rem); }
.contact-page .contact-list a, .contact-page .contact-list p { margin: 0; padding: clamp(.4rem, 1.3vh, .85rem) 0; font-size: .95rem; }
.contact-page .form { gap: clamp(.5rem, 1.4vh, .9rem); }
.contact-page .form input, .contact-page .form textarea { padding: clamp(.55rem, 1.5vh, .85rem) .85rem; }
.contact-page .form textarea { height: clamp(84px, 17vh, 170px); min-height: 84px; }
.contact-page .form__status:empty { display: none; }

@media (min-width: 901px) and (min-height: 560px) {
  body[data-page="contact"] main { display: flex; align-items: center; min-height: 100dvh; }
  .contact-page { width: 100%; padding: calc(var(--nav) + 1.25rem) 0 1.25rem; }
}

@media (max-width: 900px) {
  /* The header is in the page flow at this width, so no room is reserved for it. */
  .contact-page { padding: 1.1rem 0 1.1rem; }
  .contact-page .contact-layout { grid-template-columns: 1fr; gap: 1.1rem; }
  .contact-page .eyebrow { margin-bottom: .4rem; }
  .contact-page h1 { margin-bottom: .5rem; font-size: 2rem; }
  /* The details and the form say it all on a phone; the intro line is what
     would push the send button off the screen. */
  .contact-page .lead { display: none; }
  .contact-page .contact-list a, .contact-page .contact-list p { padding: .42rem 0; font-size: .88rem; }
  .contact-page .form { gap: .55rem; }
  .contact-page .form label > span { margin-bottom: .2rem; }
  .contact-page .form input, .contact-page .form textarea { padding: .6rem .75rem; }
  .contact-page .form textarea { height: 84px; }
}

/* ------------------------------------------------------- research: R&I */

/* Key figures for the whole EMSI group, on a dark band. Numbers count up
   from zero when the band comes into view (site.js); without JS they are
   simply the final values. */
.kpis { background: var(--ink); color: var(--white); }
.kpis .eyebrow { color: #7fc79a; }
.kpis__head { margin-bottom: 3rem; }
.kpis__head h2 { max-width: 18ch; margin: 0; }
.kpis__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .14); }
.kpi { display: grid; align-content: start; gap: .35rem; padding: 1.8rem 1.4rem 0 0; }
.kpi + .kpi { padding-left: 1.4rem; border-left: 1px solid rgba(255, 255, 255, .14); }
.kpi__value { font: 600 clamp(2.6rem, 5vw, 4.2rem)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi__label { margin-top: .6rem; font-weight: 700; }
.kpi__note { color: var(--footer-text); font-size: .82rem; }

/* Strategy: three circles that draw themselves in, beside the objectives. */
.strategy__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 5rem; align-items: center; }
.venn { margin: 0; }
.venn svg { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto; overflow: visible; }
.venn__circle { fill: rgba(23, 107, 58, .05); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s cubic-bezier(.6, 0, .2, 1), fill .8s ease; }
.venn__circle--rd { stroke: var(--lsia-green); }
.venn__circle--ind { stroke: #8a2f3c; transition-delay: .25s; }
.venn__circle--edu { stroke: var(--ink); transition-delay: .5s; }
.venn__core { fill: var(--lsia-green); }
.venn__label { fill: var(--ink); font: 700 17px var(--display); text-anchor: middle; }
.venn__overlap { fill: var(--muted); font: 600 10px var(--text); letter-spacing: .05em; text-anchor: middle; text-transform: uppercase; }
.venn text, .venn__core { transition: opacity .6s ease 1.3s; }
.will-reveal[data-reveal="draw"] .venn__circle { stroke-dashoffset: 1; fill: transparent; }
.will-reveal[data-reveal="draw"] text, .will-reveal[data-reveal="draw"] .venn__core { opacity: 0; }
.will-reveal.is-in[data-reveal="draw"] .venn__circle { stroke-dashoffset: 0; fill: rgba(23, 107, 58, .05); }
.will-reveal.is-in[data-reveal="draw"] text, .will-reveal.is-in[data-reveal="draw"] .venn__core { opacity: 1; }

.objectives { margin: 2rem 0 0; padding: 0; list-style: none; }
.objective { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1.2rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.objective__code { color: var(--lsia-green); font: 600 1.4rem var(--display); }
.objective h3 { margin: 0 0 .35rem; font-size: 1.2rem; }
.objective p { margin: 0; color: var(--muted); }

/* National deployment: the cities as a constellation placed by real
   longitude and latitude, next to the labs. Hovering a lab lights its city. */
.deploy__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 4rem; align-items: start; }
.labmap { position: sticky; top: calc(var(--nav) + 1.5rem); margin: 0; padding: 1.2rem; background: radial-gradient(circle at 48% 8%, rgba(23, 107, 58, .1), transparent 55%), var(--white); border: 1px solid var(--line); }
.labmap svg { display: block; width: 100%; height: auto; overflow: visible; }
.labmap__land { fill: url(#labmap-dots); }
#labmap-dots circle { fill: var(--lsia-green); opacity: .5; }
.labmap__coast { fill: none; stroke: var(--lsia-green); stroke-width: 1; opacity: .25; }
.labmap__sea { fill: var(--muted); font: italic 500 11px var(--text); letter-spacing: .18em; text-transform: uppercase; opacity: .7; }
.labmap__arc { fill: none; stroke: var(--lsia-green); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: .5; transition: stroke-dashoffset 1.4s cubic-bezier(.6, 0, .2, 1), opacity .3s ease, stroke-width .3s ease; }
.labmap__arc:nth-of-type(3) { transition-delay: .15s; }
.labmap__arc:nth-of-type(5) { transition-delay: .3s; }
.labmap__arc:nth-of-type(7) { transition-delay: .45s; }
.will-reveal[data-reveal="draw"] .labmap__arc { stroke-dashoffset: 1; }
.will-reveal.is-in[data-reveal="draw"] .labmap__arc { stroke-dashoffset: 0; }
/* A short dash travelling from Tanger along each link. */
.labmap__flow { fill: none; stroke: var(--lsia-green-dark); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 3 400; animation: labmap-flow 3.2s linear infinite; }
.labmap__flow:nth-of-type(4) { animation-delay: .8s; }
.labmap__flow:nth-of-type(6) { animation-delay: 1.6s; }
.labmap__flow:nth-of-type(8) { animation-delay: 2.4s; }
@keyframes labmap-flow { from { stroke-dashoffset: 3; } to { stroke-dashoffset: -400; } }
.labmap__arc.is-lit { opacity: 1; stroke-width: 2.6; }
.labmap__halo { fill: var(--lsia-green); opacity: 0; transition: opacity .3s ease; }
.labmap__dot { fill: var(--white); stroke: var(--lsia-green); stroke-width: 2.5; transition: fill .3s ease; }
.labmap__node--site .labmap__dot { stroke-dasharray: 3 2.5; }
.labmap__node text { fill: var(--ink); font: 700 14px var(--display); paint-order: stroke; stroke: var(--white); stroke-width: 5px; stroke-linejoin: round; }
.labmap__lab { fill: var(--lsia-green); font: 800 10px var(--text); letter-spacing: .12em; }
.labmap__node--home .labmap__dot, .labmap__node.is-lit .labmap__dot { fill: var(--lsia-green); }
.labmap__node--home .labmap__halo, .labmap__node.is-lit .labmap__halo { opacity: .14; }
.labmap__node--home text { font-size: 16px; }
.labmap__pulse { fill: none; stroke: var(--lsia-green); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: labmap-pulse 2.4s ease-out infinite; }
@keyframes labmap-pulse { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(3.2); } }

.labs { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.lab { padding: 1.4rem 1.5rem; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--line); transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.lab:hover, .lab.is-lit { border-left-color: var(--lsia-green); transform: translateX(6px); box-shadow: 0 16px 28px -22px rgba(29, 42, 35, .45); }
.lab--home { background: var(--ink); border-color: var(--ink); border-left-color: #7fc79a; color: var(--white); }
.lab--home:hover, .lab--home.is-lit { border-left-color: #7fc79a; }
.lab__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .8rem; }
.lab__city { font: 600 1.35rem var(--display); }
.lab__name { color: var(--lsia-green); font-size: .78rem; font-weight: 800; letter-spacing: .14em; }
.lab--home .lab__name { color: #7fc79a; }
.lab__badge { margin-left: auto; padding: .2rem .6rem; border-radius: 999px; background: #7fc79a; color: var(--ink); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.lab__theme { margin: .3rem 0 .9rem; color: var(--muted); font-size: .92rem; }
.lab--home .lab__theme { color: var(--footer-text); }
.lab__topics { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.lab__topics li { padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; }
.lab--home .lab__topics li { border-color: rgba(255, 255, 255, .22); }

/* LSIA: the three teams. */
.lsia__head { margin-bottom: 3rem; }
.lsia__head h2 { margin: 0; }

.lsia__lead { max-width: 60ch; margin: 1rem 0 0; color: var(--muted); }

/* Teams as an expanding deck: three photo panels share the row, and the one
   being hovered or focused widens to show its mission, topics and axes. The
   first panel is open until the visitor picks another. */
.teamdeck { display: flex; gap: .8rem; height: 540px; }
.team-panel {
  position: relative;
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  outline-offset: 4px;
  transition: flex-grow .7s cubic-bezier(.2, .8, .2, 1);
}
.team-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(29, 42, 35, .25) 0%, rgba(29, 42, 35, .55) 45%, rgba(13, 30, 20, .94) 100%);
  transition: background-color .5s ease;
}
.team-panel__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.6); transform: scale(1.08); transition: transform 1.2s cubic-bezier(.2, .8, .2, 1), filter .7s ease; }
.team-panel__index {
  position: absolute;
  z-index: 1;
  top: 1.2rem;
  left: 1.5rem;
  color: transparent;
  font: 600 clamp(4rem, 7vw, 6.5rem)/.85 var(--display);
  -webkit-text-stroke: 1px rgba(255, 255, 255, .55);
  transition: color .5s ease, -webkit-text-stroke-color .5s ease;
}
.team-panel__body { position: relative; z-index: 1; align-self: flex-end; width: 100%; padding: 1.6rem 1.5rem; }
.team-panel__kicker { margin: 0 0 .4rem; color: #7fc79a; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.team-panel h3 { max-width: 18ch; margin: 0; font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.15; }
.team-panel__more {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .6s cubic-bezier(.2, .8, .2, 1), opacity .4s ease;
}
.team-panel__more > div { min-height: 0; overflow: hidden; }
.team-panel__more p:first-child { margin: 1rem 0 0; max-width: 46ch; color: #d6e4da; }
.team-panel__topics { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.team-panel__topics li { padding: .35rem .75rem; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: .8rem; backdrop-filter: blur(4px); }
.team-panel__axis { margin: 1.1rem 0 0; color: #7fc79a; font-size: .78rem; font-weight: 700; letter-spacing: .06em; }

/* The open panel: the first by default, otherwise the hovered or focused one. */
.team-panel:hover, .team-panel:focus-within,
.teamdeck:not(:hover):not(:focus-within):not(:has(.team-panel:target)) .team-panel:first-child,
.teamdeck:not(:hover):not(:focus-within) .team-panel:target { flex-grow: 2.6; }
.team-panel:hover .team-panel__photo, .team-panel:focus-within .team-panel__photo,
.teamdeck:not(:hover):not(:focus-within):not(:has(.team-panel:target)) .team-panel:first-child .team-panel__photo,
.teamdeck:not(:hover):not(:focus-within) .team-panel:target .team-panel__photo { filter: none; transform: scale(1); }
.team-panel:hover .team-panel__index, .team-panel:focus-within .team-panel__index,
.teamdeck:not(:hover):not(:focus-within):not(:has(.team-panel:target)) .team-panel:first-child .team-panel__index,
.teamdeck:not(:hover):not(:focus-within) .team-panel:target .team-panel__index { color: #7fc79a; -webkit-text-stroke-color: #7fc79a; }
.team-panel:hover .team-panel__more, .team-panel:focus-within .team-panel__more,
.teamdeck:not(:hover):not(:focus-within):not(:has(.team-panel:target)) .team-panel:first-child .team-panel__more,
.teamdeck:not(:hover):not(:focus-within) .team-panel:target .team-panel__more { grid-template-rows: 1fr; opacity: 1; transition-delay: .15s; }
.team-panel { border-top: 3px solid transparent; scroll-margin-top: calc(var(--nav) + 1.5rem); }
.team-panel:hover, .team-panel:focus-within,
.teamdeck:not(:hover):not(:focus-within):not(:has(.team-panel:target)) .team-panel:first-child,
.teamdeck:not(:hover):not(:focus-within) .team-panel:target { border-top-color: #7fc79a; }

/* Tanger: the lab's regional themes, on a dark band. */
.tanger { background: var(--ink); color: var(--white); }
.tanger .eyebrow { color: #7fc79a; }
.tanger__intro { max-width: 720px; margin-bottom: 3rem; }
.tanger__intro p:last-child { margin: 0; color: var(--footer-text); }
.themes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.theme { position: relative; overflow: hidden; padding: 1.8rem 1.5rem; border: 1px solid rgba(255, 255, 255, .14); transition: background-color .3s ease, border-color .3s ease; }
.theme:hover { background: rgba(127, 199, 154, .08); border-color: #7fc79a; }
.theme__index { position: absolute; top: .5rem; right: 1rem; color: transparent; font: 600 3.6rem/1 var(--display); -webkit-text-stroke: 1px rgba(255, 255, 255, .22); }
.theme__icon { width: 44px; height: 44px; fill: none; stroke: #7fc79a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.theme:hover .theme__icon { transform: translateY(-4px); }
.theme h3 { margin: 1.2rem 0 .6rem; font-size: 1.2rem; }
.theme p { margin: 0; color: var(--footer-text); font-size: .9rem; line-height: 1.6; }

/* Network: LSIA first, partner labs as compact rows, group figures in a line. */
.labs__title { margin: 2rem 0 .8rem; color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.lab--compact { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; padding: 1rem 1.2rem; }
.lab--compact .lab__city { font-size: 1.1rem; }
.lab--compact .lab__theme { margin: 0 0 0 auto; }
.lab--home .lab__theme { margin-bottom: 0; }
.netstats { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.netstats__title { margin: 0 0 .8rem; color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.netstats__title { text-align: center; }
.netstats ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .8rem; text-align: center; }
.netstats li { display: grid; flex: 1 1 0; min-width: 5.5rem; gap: .15rem; }
.netstats li + li { border-left: 1px solid var(--line); }
.netstats strong { color: var(--ink); font: 600 1.6rem/1.1 var(--display); }

/* Charter: three values with line icons. */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.value { padding: 2rem 1.8rem; border: 1px solid var(--line); background: var(--white); transition: background-color .25s ease; }
.value:hover { background: var(--lsia-green-soft); }
.value__icon { width: 48px; height: 48px; fill: none; stroke: var(--lsia-green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.value h3 { margin: 1.2rem 0 1rem; font-size: 1.3rem; }
.value ul { margin: 0; padding: 0; list-style: none; color: var(--muted); }
.value li { position: relative; padding: .35rem 0 .35rem 1.1rem; }
.value li::before { content: ""; position: absolute; left: 0; top: .9rem; width: 6px; height: 6px; border-radius: 50%; background: var(--lsia-green); }

/* Vision: a compass with a slowly turning cycle around it. */
.vision { background: var(--lsia-green-dark); color: var(--white); overflow: hidden; }
.vision .eyebrow { color: #a9dcb9; }
.vision__grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 5rem; align-items: center; }
.vision__dial svg { display: block; width: 100%; height: auto; overflow: visible; }
.vision__ring { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 1; }
.vision__orbit { transform-origin: 120px 120px; animation: vision-turn 18s linear infinite; }
.vision__arc { fill: none; stroke: #a9dcb9; stroke-width: 3; stroke-linecap: round; }
.vision__head { fill: #a9dcb9; }
.vision__face { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .3); stroke-width: 1.5; }
.vision__needle { fill: rgba(255, 255, 255, .85); transform-origin: 120px 120px; animation: vision-needle 6s ease-in-out infinite; }
.vision__needle-tip { fill: #7fc79a; transform-origin: 120px 120px; animation: vision-needle 6s ease-in-out infinite; }
.vision__pin { fill: var(--lsia-green-dark); }
@keyframes vision-turn { to { transform: rotate(360deg); } }
@keyframes vision-needle { 0%, 100% { transform: rotate(38deg); } 50% { transform: rotate(52deg); } }
.vision h2 { max-width: 18ch; }
.vision__pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 1.5rem; align-items: center; margin-top: 2rem; }
.vision__pair > div { padding: 1.4rem 1.5rem; border: 1px solid rgba(255, 255, 255, .22); }
.vision__pair h3 { margin: 0 0 .4rem; font-size: 1.15rem; }
.vision__pair p { margin: 0; color: #cfe3d6; font-size: .92rem; }
.vision__swap { color: #a9dcb9; font-size: 1.8rem; }

@media (max-width: 1050px) {
  .kpis__list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2rem; }
  .kpi:nth-child(4) { padding-left: 0; border-left: 0; }
}
@media (max-width: 900px) {
  .strategy__grid, .deploy__grid, .vision__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .labmap { position: static; }
  .labmap svg { max-width: 420px; margin: 0 auto; }
  .values { grid-template-columns: 1fr; }
  .teamdeck { flex-direction: column; height: auto; }
  .team-panel { flex: none !important; flex-direction: column; }
  .team-panel__photo { filter: none; transform: none; }
  .team-panel__index { position: relative; top: auto; left: auto; padding: 1.4rem 1.5rem 0; color: #7fc79a; -webkit-text-stroke-color: #7fc79a; font-size: 3.6rem; }
  .team-panel__body { padding-top: 4rem; }
  .team-panel__more { grid-template-rows: 1fr; opacity: 1; }
  .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vision__dial { max-width: 220px; }
}
@media (max-width: 560px) {
  .kpis__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi, .kpi + .kpi { padding: 1.4rem 0 0; border-left: 0; }
  .kpi:nth-child(even) { padding-left: 1rem; border-left: 1px solid rgba(255, 255, 255, .14); }
  .objective { grid-template-columns: 3.4rem minmax(0, 1fr); }
  .vision__pair { grid-template-columns: 1fr; }
  .themes { grid-template-columns: 1fr; }
  .lab--compact .lab__theme { flex-basis: 100%; margin: 0; }
  .vision__swap { transform: rotate(90deg); justify-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  .is-explored .publication { animation: none; }
  .team-panel, .team-panel__photo, .team-panel__more { transition: none; }
  .labmap__flow { display: none; }
  .labmap__pulse, .vision__orbit, .vision__needle, .vision__needle-tip { animation: none; }
}

/* Approved partners, in the same language as the "One network" logos. auto-fill
   keeps empty columns, so a lone partner stays tile-sized instead of spanning the row. */
.ally-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2.75rem 2.5rem; }
.ally__logo {
  position: relative;
  display: block;
  width: min(230px, 100%);
  height: 110px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
a.ally__logo:hover { border-color: var(--lsia-green); box-shadow: 0 18px 32px -22px rgba(13, 77, 42, .5); transform: translateY(-3px); }
.ally__logo .published-image { position: absolute; inset: 1.1rem 1.4rem; width: calc(100% - 2.8rem); height: calc(100% - 2.2rem); margin: 0; padding: 0; border: 0; background: none; object-fit: contain; }
.ally__logo--text { display: grid; place-items: center; padding: 0 1rem; color: var(--lsia-green-dark); font-family: var(--display); font-size: 1.5rem; font-weight: 700; text-align: center; }
.ally__type { margin: 1.4rem 0 .35rem; color: var(--lsia-green); font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.ally h3 { margin: 0 0 .5rem; font-size: 1.6rem; }
.ally__text { margin: 0; max-width: 30ch; color: var(--muted); font-size: .95rem; }

/* ==========================================================================
   Doctoral follow-up (/phd)
   Built from the member-area pieces above: segmented tabs, review cards,
   status badges and forms. Only what they lack is here.
   ========================================================================== */

.choice-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.status--neutral { color: var(--muted); background: var(--paper); border-color: var(--line); }

.link-button--danger { color: var(--muted); }
.link-button--danger:hover { color: var(--danger); }

.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .8rem; }
.form .checkbox { display: flex; align-items: center; gap: .6rem; }
.form .checkbox input { width: auto; margin: 0; accent-color: var(--lsia-green); }
.form .checkbox > span { margin: 0; color: var(--ink); font-size: .92rem; font-weight: 700; }
.form [aria-invalid="true"] { border-color: var(--danger); }

/* List of theses */
.thesis-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.thesis-grid > .review-empty { grid-column: 1 / -1; border: 1px solid var(--line); }
.thesis-card { display: flex; flex-direction: column; gap: .7rem; padding: 1.4rem; background: var(--white); border: 1px solid var(--line); color: inherit; transition: background-color .2s ease, border-color .2s ease; }
.thesis-card:hover { border-color: var(--lsia-green); }
.thesis-card:hover { background: var(--lsia-green-soft); }
.thesis-card__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.thesis-card__name { color: var(--lsia-green-dark); font-weight: 800; }
.thesis-card h3 { margin: 0; color: var(--ink); font-size: 1.15rem; line-height: 1.35; }
.thesis-card__meta { margin: 0; color: var(--muted); font-size: .88rem; }
.thesis-card__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; margin: auto 0 0; color: var(--muted); font-size: .82rem; }
.thesis-card__foot strong { color: #6f5600; }

.progress { display: grid; gap: .35rem; }
.progress__bar { height: .5rem; border-radius: 99px; background: var(--lsia-green-soft); overflow: hidden; }
.progress__bar > span { display: block; height: 100%; border-radius: inherit; background: var(--lsia-green); transition: width .3s ease; }
.progress__text { color: var(--muted); font-size: .78rem; font-weight: 700; }

/* One thesis */
.phd-back { margin: 0 0 1.25rem; }
.phd-back a { color: var(--lsia-green-dark); font-weight: 700; }
.phd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; padding: 1.5rem; margin-bottom: 1.5rem; background: var(--white); border: 1px solid var(--line); }
.phd-head__main { display: grid; gap: .9rem; min-width: 0; flex: 1; }
.phd-head h2 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.phd-head__actions { display: flex; flex-direction: column; gap: .6rem; flex: none; }
.phd-tabs { margin-bottom: 1.5rem; }
.phd-panel { display: grid; gap: 1.5rem; }
.phd-intro { margin: 0; max-width: 70ch; color: var(--muted); }
.phd-form, .phd-dialog-form { padding: 1.4rem; background: var(--white); border: 1px solid var(--line); }
.phd-form h3, .phd-dialog-form h2 { margin: 0 0 .2rem; font-size: 1.15rem; }
.phd-dialog-form { margin: 0 0 1.5rem; }
.phd-dialog-form .form__group[hidden] { display: none; }
.inline-form { padding-top: .8rem; border-top: 1px solid var(--line); }
.inline-form textarea { min-height: 70px; }

.entry__text { margin: 0; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.entry__note { margin: 0; padding: .75rem 1rem; background: var(--paper); border-left: 3px solid var(--line); color: var(--ink); font-size: .92rem; white-space: pre-line; }
.entry__link { color: var(--lsia-green-dark); font-weight: 700; }
.entry__actions { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.review h3 a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Milestones: a numbered track, filled in as stages are done. */
.milestones { display: grid; margin: 0; padding: 0; list-style: none; background: var(--white); border: 1px solid var(--line); }
.milestone { position: relative; display: grid; grid-template-columns: 2.4rem 1fr; gap: 1rem; padding: 1.2rem 1.4rem; border-top: 1px solid var(--line); }
.milestone:first-child { border-top: 0; }
.milestone__step { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 2px solid var(--line); border-radius: 50%; background: var(--white); color: var(--muted); font-family: var(--display); font-weight: 700; }
.milestone--in_progress .milestone__step { border-color: #d6b34a; color: #6f5600; background: #fbf6e4; }
.milestone--done .milestone__step { border-color: var(--lsia-green); background: var(--lsia-green); color: var(--white); }
.milestone__body { display: grid; gap: .45rem; min-width: 0; }
.milestone__head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.milestone__head h3 { margin: 0; font-size: 1.05rem; }
.milestone__meta, .milestone__note { margin: 0; font-size: .88rem; }
.milestone__meta { color: var(--muted); }
.milestone__note { color: var(--ink); }

@media (max-width: 720px) {
  .phd-head { flex-direction: column; padding: 1.2rem; }
  .phd-head__actions { flex-direction: row; flex-wrap: wrap; }
  .thesis-grid { grid-template-columns: 1fr; }
  .milestone { grid-template-columns: 2rem 1fr; padding: 1rem; }
  .milestone__step { width: 2rem; height: 2rem; font-size: .85rem; }
}
