/* PATH Lab visual system: restrained academic, high-contrast, responsive. */
:root {
  color-scheme: light;
  --bg: #f7fafb;
  --bg-2: #e9f2f5;
  --bg-3: #dfeaf0;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: rgba(248, 252, 254, 0.98);
  --surface-soft: rgba(231, 241, 246, 0.68);
  --text: #183040;
  --text-soft: #3d5464;
  --muted: #5b7280;
  --muted-2: #7a8d99;
  --accent: #3f7f8f;
  --accent-strong: #2b6878;
  --accent-deep: #244f61;
  --gold: #8c7446;
  --border: rgba(37, 75, 95, 0.18);
  --border-strong: rgba(63, 127, 143, 0.32);
  --shadow-sm: 0 8px 24px rgba(38, 70, 88, 0.08);
  --shadow-md: 0 18px 44px rgba(38, 70, 88, 0.12);
  --shadow-focus: 0 0 0 3px rgba(63, 127, 143, 0.22);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --container: 1120px;
  --measure: 68ch;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.68;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-deep);
}

a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  width: min(var(--container), calc(100% - 2rem));
}

.section {
  position: relative;
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  background: #ffffff;
}

.alt {
  background:
    linear-gradient(180deg, rgba(223, 234, 240, 0.82), rgba(233, 242, 245, 0.88)),
    var(--bg-2);
  border-block: 1px solid rgba(37, 75, 95, 0.12);
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 9ch;
  margin-bottom: var(--space-5);
  font-size: clamp(3.1rem, 8vw, 6rem);
  font-weight: 700;
}

h2 {
  margin-bottom: var(--space-5);
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 700;
}

h3 {
  margin-bottom: var(--space-3);
  font-size: clamp(1.08rem, 1vw + 0.8rem, 1.25rem);
  font-weight: 700;
}

h4 {
  font-size: 0.85rem;
}

p {
  max-width: var(--measure);
  margin-bottom: var(--space-4);
  color: var(--muted);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(37, 75, 95, 0.11);
  background: rgba(250, 253, 254, 0.86);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: var(--space-3);
  color: var(--text);
  font-weight: 700;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #7ba6b2, var(--accent-strong));
  box-shadow: 0 0 0 7px rgba(63, 127, 143, 0.11);
}

.brand-text {
  letter-spacing: 0.01em;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.6vw, 1.35rem);
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 160ms var(--ease), transform 160ms var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--text);
  transition: transform 180ms var(--ease), opacity 180ms var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  min-height: clamp(500px, 60vh, 660px);
  display: grid;
  align-items: center;
  padding-top: clamp(5rem, 10vw, 8rem);
  padding-bottom: clamp(6rem, 11vw, 9rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 22%, rgba(125, 160, 172, 0.24), transparent 24rem),
    linear-gradient(180deg, #f1f7f9 0%, #e7f1f5 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(63, 127, 143, 0.18), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
}

#mission {
  padding-top: clamp(5.5rem, 9vw, 8rem);
  background: #ffffff;
}

#mission::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 75, 95, 0.2), transparent);
}

#vision {
  padding-block: clamp(3.5rem, 6vw, 5.25rem);
}

.mission-layout,
.statement-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(18rem, 0.78fr);
  align-items: stretch;
  gap: clamp(var(--space-8), 6vw, var(--space-16));
}

.mission-copy p,
.statement-copy p {
  max-width: 760px;
  font-size: 1.07rem;
}

.mission-copy p:last-child,
.statement-copy p:last-child {
  margin-bottom: 0;
}

.mission-visual,
.statement-visual {
  position: relative;
  display: flex;
  align-self: start;
  margin: 0;
}

.mission-visual {
  height: calc(100% - 1rem);
}

.statement-visual {
  height: calc(100% - 4rem);
}

.mission-visual::before,
.statement-visual::before {
  content: none;
}

.mission-visual img,
.statement-visual img {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 1px solid rgba(63, 127, 143, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 26px rgba(38, 70, 88, 0.07);
  object-fit: cover;
  object-position: center;
}

#research,
#publications {
  background: #f8fbfc;
}

#partners {
  background:
    linear-gradient(180deg, rgba(239, 246, 249, 0.96), rgba(247, 251, 252, 0.98)),
    var(--bg-2);
  border-block: 1px solid rgba(37, 75, 95, 0.1);
}

#team {
  background: #ffffff;
}

#join {
  background:
    linear-gradient(180deg, rgba(220, 233, 239, 0.88), rgba(233, 242, 245, 0.92)),
    var(--bg-3);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: var(--space-4);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-subtitle {
  max-width: 720px;
  margin-bottom: var(--space-3);
  color: var(--text);
  font-size: clamp(1.24rem, 2.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.22;
}

.hero-tagline {
  max-width: 680px;
  color: var(--text-soft);
  font-size: clamp(1.02rem, 1vw + 0.85rem, 1.22rem);
  font-weight: 500;
}

.hero-accent {
  position: absolute;
  right: max(-9rem, -10vw);
  top: clamp(1rem, 4vw, 4rem);
  width: clamp(18rem, 32vw, 31rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 34%, rgba(143, 174, 184, 0.28), transparent 30%),
    radial-gradient(circle at 50% 50%, rgba(117, 154, 166, 0.16), rgba(117, 154, 166, 0.04) 64%, transparent 70%);
  filter: saturate(0.85);
  pointer-events: none;
}

.section .container > h2 {
  max-width: 760px;
}

.narrow p,
.narrow .join-intro {
  max-width: 760px;
}

.narrow p {
  font-size: 1.07rem;
}

.card-grid,
.team-grid,
.join-roles {
  display: grid;
  gap: var(--space-5);
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.team-grid--core {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-section + .team-section {
  margin-top: var(--space-10);
}

.team-subhead {
  margin-bottom: var(--space-5);
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.join-roles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.profile-card,
.join-card,
.pub-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.card,
.profile-card {
  min-height: 100%;
  padding: var(--space-6);
  transition:
    transform 180ms var(--ease),
    border-color 180ms var(--ease),
    background 180ms var(--ease),
    box-shadow 180ms var(--ease);
}

.card h3,
.profile-card h3 {
  margin-bottom: var(--space-3);
}

.profile-card h3 {
  overflow-wrap: anywhere;
}

.card h3 {
  line-height: 1.1;
}

.card p,
.profile-card p {
  margin-bottom: 0;
  font-size: 0.96rem;
  line-height: 1.58;
}

.card:hover,
.profile-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-strong);
  box-shadow: var(--shadow-md);
}

.team-avatar,
.avatar-placeholder {
  width: 4.4rem;
  height: 4.4rem;
  margin-bottom: var(--space-4);
  border: 1px solid rgba(63, 127, 143, 0.24);
  border-radius: 50%;
  background: #edf5f8;
  box-shadow: 0 10px 24px rgba(38, 70, 88, 0.1);
  overflow: hidden;
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.avatar-placeholder {
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.72), transparent 31%),
    linear-gradient(135deg, rgba(125, 160, 172, 0.34), rgba(217, 232, 238, 0.96));
}

.role {
  margin-bottom: var(--space-3);
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--accent-strong);
  color: #ffffff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.78rem 1.05rem;
  text-align: center;
  transition:
    transform 160ms var(--ease),
    filter 160ms var(--ease),
    box-shadow 160ms var(--ease),
    background 160ms var(--ease);
}

.btn:hover,
.btn:focus-visible {
  background: var(--accent-deep);
  color: #ffffff;
  filter: none;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(38, 70, 88, 0.12);
}

.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--border-strong);
  background: #eef6f8;
  color: var(--text);
}

.join-intro,
.section-lead {
  max-width: 720px;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.join-intro {
  margin-bottom: var(--space-8);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: var(--space-8);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--border);
  box-shadow: var(--shadow-sm);
}

.partner-logo {
  display: grid;
  min-height: 8.25rem;
  place-items: center;
  padding: var(--space-6);
  background: #ffffff;
  transition: background 180ms var(--ease);
}

.partner-logo:hover {
  background: #f8fbfc;
}

.partner-logo img {
  width: min(100%, 17rem);
  max-height: 4.6rem;
  object-fit: contain;
}

.join-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: var(--space-6);
  transition:
    transform 180ms var(--ease),
    border-color 180ms var(--ease),
    background 180ms var(--ease);
}

.join-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--surface-strong);
}

.join-card__title {
  margin-bottom: var(--space-2);
  font-size: 1.14rem;
}

.join-card__track {
  margin-bottom: var(--space-4);
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.join-card__teaser {
  flex: 1 1 auto;
  margin-bottom: var(--space-5);
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.join-card__btn {
  width: 100%;
}

.join-collaborate {
  display: flex;
  justify-content: center;
  margin-top: var(--space-8);
}

.join-modal {
  width: 100%;
  max-width: 100vw;
  height: 100%;
  max-height: 100dvh;
  padding: var(--space-4);
  margin: 0;
  border: none;
  background: transparent;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  overscroll-behavior: contain;
}

.join-modal:not([open]) {
  display: none;
}

.join-modal::backdrop {
  background: rgba(24, 48, 64, 0.22);
  backdrop-filter: blur(5px);
}

.join-modal__inner {
  position: relative;
  width: min(100%, 32rem);
  max-height: min(90dvh, 44rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-10) var(--space-6) var(--space-6);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: #fbfdfe;
  box-shadow: var(--shadow-md);
}

.join-modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #eef5f8;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-size: 1.45rem;
  line-height: 1;
  transition: background 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}

.join-modal__close:hover,
.join-modal__close:focus-visible {
  border-color: var(--border-strong);
  background: #e1eef3;
  color: var(--accent-strong);
}

.join-modal__title {
  margin-bottom: var(--space-2);
  padding-right: var(--space-12);
  font-size: 1.55rem;
}

.join-modal__subtitle {
  margin-bottom: var(--space-5);
  color: var(--accent-strong);
  font-weight: 700;
}

.join-modal__desc,
.join-modal__app {
  color: var(--text-soft);
}

.join-modal__h {
  margin: var(--space-6) 0 var(--space-3);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.join-modal__list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.58;
}

.join-modal__list li {
  margin-bottom: var(--space-2);
}

.join-modal__list li:last-child {
  margin-bottom: 0;
}

.join-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

body.modal-open {
  overflow: hidden;
}

.section-lead {
  margin: calc(var(--space-2) * -1) 0 var(--space-8);
}

.publications-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

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

.pub-accordion-item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.pub-accordion-trigger {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border: none;
  background: #edf5f8;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}

.pub-accordion-trigger:hover,
.pub-accordion-trigger:focus-visible {
  background: #e4f0f4;
}

.pub-accordion-trigger[aria-expanded="true"] {
  border-bottom: 1px solid var(--border);
  background: #dcebf0;
}

.pub-accordion-label {
  line-height: 1.35;
}

.pub-accordion-icon {
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  color: var(--accent-strong);
}

.pub-accordion-icon::after {
  content: "\25BE";
  display: block;
  font-size: 0.85rem;
  line-height: 1;
  transition: transform 180ms var(--ease);
}

.pub-accordion-trigger[aria-expanded="true"] .pub-accordion-icon::after {
  transform: rotate(-180deg);
}

.pub-accordion-panel-inner {
  padding: var(--space-5);
}

.pub-panel-subhead {
  margin: var(--space-2) 0 0;
  color: var(--muted-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pub-panel-subhead:first-child {
  margin-top: 0;
}

.pub-card {
  padding: var(--space-5);
  background: #ffffff;
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
}

.pub-card:hover {
  border-color: rgba(63, 127, 143, 0.22);
  background: #f8fbfc;
}

.pub-card--flagship {
  border-color: rgba(140, 116, 70, 0.24);
  background:
    linear-gradient(135deg, rgba(140, 116, 70, 0.06), transparent 46%),
    #ffffff;
}

.pub-authors {
  margin-bottom: var(--space-2);
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

.pub-title {
  margin-bottom: var(--space-2);
  color: var(--text);
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.42;
}

.pub-venue {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.journal {
  color: #35596a;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 500;
}

.journal--flagship {
  color: #6f5b34;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(140, 116, 70, 0.42);
  text-underline-offset: 0.18em;
}

.journal--muted {
  color: var(--muted-2);
  font-family: inherit;
  font-style: normal;
  font-weight: 600;
}

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

.pub-highlight {
  border: 1px solid rgba(140, 116, 70, 0.26);
  border-radius: var(--radius-sm);
  background: rgba(140, 116, 70, 0.08);
  color: #66522f;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  padding: 0.4rem 0.65rem;
}

.site-footer {
  padding-top: var(--space-16);
  padding-bottom: max(var(--space-10), env(safe-area-inset-bottom));
  border-top: 1px solid rgba(37, 75, 95, 0.14);
  background: #dfeaf0;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-6) var(--space-12);
}

.footer-grid p {
  margin-bottom: 0;
}

.copyright {
  max-width: none;
  margin: var(--space-10) 0 0;
  color: var(--muted-2);
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 1020px) {
  .card-grid,
  .team-grid,
  .join-roles,
  .partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card h3 {
    min-height: 2.2em;
  }
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: 78px;
  }

  .mission-layout,
  .statement-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .mission-visual,
  .statement-visual {
    height: auto;
    max-width: 40rem;
  }

  .mission-visual img,
  .statement-visual img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .nav-toggle {
    display: inline-block;
    flex: 0 0 auto;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1rem;
    display: none;
    width: min(18rem, calc(100vw - 2rem));
    padding: var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(250, 253, 254, 0.98);
    box-shadow: var(--shadow-md);
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
  }

  .site-nav a {
    width: 100%;
    padding: 0 var(--space-3);
    border-radius: var(--radius-sm);
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: rgba(63, 127, 143, 0.08);
    transform: none;
  }
}

@media (max-width: 640px) {
  .container,
  .narrow {
    width: min(calc(100% - 1.25rem), var(--container));
  }

  .section {
    padding: var(--space-16) 0;
  }

  .hero {
    min-height: 500px;
    padding-top: var(--space-16);
    padding-bottom: var(--space-20);
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.75rem, 15vw, 4.2rem);
  }

  .hero-subtitle,
  .hero-tagline,
  .narrow p,
  .mission-copy p,
  .join-intro,
  .section-lead {
    font-size: 1rem;
  }

  .hero-accent {
    right: -10rem;
    top: 0.5rem;
    width: 22rem;
    opacity: 0.72;
  }

  .card-grid,
  .team-grid,
  .join-roles,
  .partner-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .card,
  .profile-card,
  .join-card,
  .pub-card {
    padding: var(--space-5);
  }

  .team-avatar,
  .avatar-placeholder {
    width: 4rem;
    height: 4rem;
  }

  .partner-logo {
    min-height: 7.2rem;
    padding: var(--space-5);
  }

  .join-collaborate .btn,
  .join-modal__actions .btn {
    width: 100%;
  }

  .pub-accordion-trigger {
    padding: var(--space-4);
  }

  .pub-accordion-panel-inner {
    padding: var(--space-4);
  }

  .footer-grid {
    display: grid;
    gap: var(--space-5);
  }
}

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