/* ===========================================================
   Spatial Cognition Lab — shared stylesheet

   Fonts: Degular (body/UI) and Omnes (headings/titles), loaded
   locally from /fonts. Note: the Degular file on hand is a
   limited demo (~66 characters — no quotes, dashes, ampersands,
   parentheses, etc.), so those specific characters will silently
   fall back to Poppins/Inter per-glyph. Omnes is the full font.

   Black     : #0A0A0B   page background
   Black-2   : #16161A   cards / photo placeholders / dropdown bg
   Pill-bg   : #232326   filter-pill background
   Text      : #F1EEE7   default off-white text (headings + body)
   Muted     : #8B8B8F   greyer secondary text (dates, subtext, captions)
   Line      : #232326   hairline rule (header border only)

   Category colors (publication filters):
   Space=teal, Topology=orange, Time=red, Number=blue,
   Adaptation=near-black/ink, Other=neutral gray
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@400;500&display=swap');

@font-face{ font-family:'Degular'; src:url('../fonts/degular/Degular-Regular.otf') format('opentype'); font-weight:400; font-style:normal; font-display:swap; }
@font-face{ font-family:'Degular'; src:url('../fonts/degular/Degular-Italic.otf') format('opentype'); font-weight:400; font-style:italic; font-display:swap; }
@font-face{ font-family:'Degular'; src:url('../fonts/degular/Degular-Medium.otf') format('opentype'); font-weight:500; font-style:normal; font-display:swap; }
@font-face{ font-family:'Degular'; src:url('../fonts/degular/Degular-Semibold.otf') format('opentype'); font-weight:600; font-style:normal; font-display:swap; }
@font-face{ font-family:'Degular'; src:url('../fonts/degular/Degular-Bold.otf') format('opentype'); font-weight:700; font-style:normal; font-display:swap; }

@font-face{ font-family:'Omnes'; src:url('../fonts/omnes/Omnes-Regular.ttf') format('truetype'); font-weight:400; font-style:normal; font-display:swap; }
@font-face{ font-family:'Omnes'; src:url('../fonts/omnes/Omnes-Medium.ttf') format('truetype'); font-weight:500; font-style:normal; font-display:swap; }
@font-face{ font-family:'Omnes'; src:url('../fonts/omnes/Omnes-SemiBold.ttf') format('truetype'); font-weight:600; font-style:normal; font-display:swap; }
@font-face{ font-family:'Omnes'; src:url('../fonts/omnes/Omnes-Bold.ttf') format('truetype'); font-weight:700; font-style:normal; font-display:swap; }
@font-face{ font-family:'Omnes'; src:url('../fonts/omnes/Omnes-Black.ttf') format('truetype'); font-weight:900; font-style:normal; font-display:swap; }

:root{
  --black:#0A0A0B;
  --black-2:#16161A;
  --pill-bg:#232326;
  --text:#F1EEE7;
  --muted:#8B8B8F;
  --line:#232326;
  --max:1080px;
  --content-width:760px;

  --font-main:'Degular','Poppins',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --font-heading:'Omnes','Poppins',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}

/* Branch pages get a ~15% wider text column than the site default,
   scoped here so it doesn't affect content width anywhere else. */
body[data-page="research-branches"],
body[data-page="space"],
body[data-page="time"],
body[data-page="adaptation"],
body[data-page="number"]{
  --content-width:875px;
}

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

html{ scroll-behavior:smooth; height:100%; }

body{
  margin:0;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  background-color:var(--black);
  background-image:
    radial-gradient(ellipse 900px 500px at 50% 0%, rgba(255,255,255,.05), transparent 65%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-attachment:fixed, fixed;
  color:var(--text);
  font-family:var(--font-main);
  font-size:17px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3,h4{
  font-family:var(--font-heading);
  font-weight:700;
  line-height:1.15;
  margin:0 0 0.5em;
  color:var(--text);
}

h1{ font-size:clamp(2.2rem, 4.2vw, 3.1rem); }
h2{ font-size:clamp(1.6rem, 3vw, 2.1rem); }
h3{ font-size:1.15rem; font-weight:600; }
h4{ font-size:1.15rem; font-weight:600; text-transform:none; color:var(--text); letter-spacing:0; }

p{ margin:0 0 1.1em; color:var(--text); }
a{ color:inherit; text-decoration:underline; text-decoration-color:rgba(255,255,255,.4); text-underline-offset:3px; }
a:hover{ text-decoration-color:currentColor; }

strong{ color:var(--text); font-weight:700; }

blockquote{
  margin:20px 0;
  padding:4px 22px;
  border-left:3px solid var(--line);
  color:var(--muted);
}
blockquote p{ margin-bottom:0.6em; }
hr{ border:none; border-top:1px solid var(--line); margin:32px 0; }
.blog-post-nav{ margin-top:36px; font-size:.9rem; }
.blog-post-nav a{ color:var(--text); }

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

.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:0 24px;
}
.wrap-narrow{ max-width:760px; }

/* ---------- Header / nav ---------- */

.site-header{
  background:var(--black);
  position:sticky;
  top:0;
  z-index:50;
  border-bottom:1px solid rgba(255,255,255,.3);
  flex-shrink:0;
}

.nav-inner{
  max-width:var(--max);
  margin:0 auto;
  padding:22px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--text);
  text-decoration:none;
  flex-shrink:0;
}
.brand:hover{ color:var(--text); }
.brand-mark{
  height:60px;
  width:auto;
  object-fit:contain;
  flex-shrink:0;
  transition:transform .2s ease;
}
.brand:hover .brand-mark{ transform:scale(1.08); }

.primary-nav{
  display:flex;
  align-items:center;
  gap:28px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.primary-nav > a{
  color:var(--text);
  text-decoration:none;
  font-size:.95rem;
  font-weight:500;
  padding:4px 0;
  border-bottom:1px solid transparent;
  white-space:nowrap;
}
.primary-nav > a:hover{ border-bottom-color:rgba(255,255,255,.5); }
.primary-nav > a[aria-current="page"]{ border-bottom-color:#fff; }
.nav-dropdown-trigger[aria-current="page"]{ border-bottom-color:#fff; }

.nav-cta{ /* Contact keeps the same plain style as the rest, no special box */ }

.nav-dropdown{ position:relative; }
.nav-dropdown-trigger{
  background:none;
  border:none;
  color:var(--text);
  font-family:inherit;
  font-size:.95rem;
  font-weight:500;
  padding:4px 0;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:4px;
  border-bottom:1px solid transparent;
}
.nav-dropdown-trigger:hover{ border-bottom-color:rgba(255,255,255,.5); }
.caret{ font-size:.7em; position:relative; top:1px; }

.nav-dropdown-menu{
  position:absolute;
  top:calc(100% + 14px);
  left:50%;
  transform:translateX(-50%);
  background:var(--black-2);
  border:1px solid var(--line);
  border-radius:8px;
  min-width:160px;
  padding:6px;
  display:none;
  flex-direction:column;
  box-shadow:0 12px 28px rgba(0,0,0,.6);
}
.nav-dropdown.open .nav-dropdown-menu{ display:flex; }
.nav-dropdown-menu a{
  color:var(--text);
  text-decoration:none;
  font-size:.9rem;
  padding:8px 10px;
  border-radius:6px;
  text-align:center;
}
.nav-dropdown-menu a:hover{ background:rgba(255,255,255,.08); }

.nav-toggle{
  display:none;
  background:none;
  border:none;
  cursor:pointer;
  padding:6px;
  flex-direction:column;
  gap:5px;
}
.nav-toggle span{
  width:24px; height:2px; background:var(--text); display:block; border-radius:2px;
}

@media (max-width: 880px){
  .nav-toggle{ display:flex; }
  .primary-nav{
    display:none;
    position:absolute;
    top:100%;
    left:0; right:0;
    background:var(--black);
    flex-direction:column;
    align-items:flex-start;
    gap:4px;
    padding:8px 24px 22px;
    border-bottom:1px solid var(--line);
  }
  .primary-nav.open{ display:flex; }
  .primary-nav > a, .nav-dropdown-trigger{ width:100%; }
  .nav-dropdown-menu{ position:static; transform:none; box-shadow:none; display:none; margin:0 0 4px; text-align:left; }
  .nav-dropdown-menu a{ text-align:left; }
  .nav-dropdown.open .nav-dropdown-menu{ display:flex; }
}

/* ---------- Hero (home) ---------- */

.hero{ padding:64px 24px 90px; position:relative; overflow:hidden; }
.starfield-canvas{ position:absolute; inset:0; z-index:0; pointer-events:none; }
.hero > .wrap{ position:relative; z-index:1; }
.hero-head-wrap{
  width:fit-content;
  max-width:100%;
  margin:0 auto 44px;
  text-align:right;
}
.hero-head-wrap h1{ margin:0; text-align:right; }
.hero-kicker{
  color:var(--muted);
  font-size:1.15rem;
  white-space:nowrap;
  margin:0;
}
.hero-kicker strong{ color:#fff; font-weight:400; letter-spacing:.03em; }

.hero-graphic{ margin:0 auto 44px; max-width:900px; width:100%;}

.hero-copy{
  max-width:640px;
  margin:0 auto 1.1em;
  text-align:justify;
  text-justify:inter-word;
  hyphens:auto;
  font-size:1.05rem;
  color:var(--text);
}

.hero-links{ text-align:center; margin-top:36px; }
.hero-links .btn{ margin-bottom:16px; }
.hero-subtext{ color:var(--muted); font-size:.98rem; margin:0; }
.hero-subtext a{ color:var(--text); text-decoration-color:rgba(255,255,255,.5); }

.btn{
  display:inline-block;
  padding:16px 34px;
  border-radius:8px;
  font-weight:600;
  font-size:1rem;
  text-decoration:none;
}
.btn-primary{
  background:#EDEAE3;
  color:#171717;
}
.btn-primary:hover{ background:#fff; }
.btn-cta{ color:#171717; }

.btn-ghost{ border:1px solid rgba(255,255,255,.3); color:#fff; }
.btn-ghost:hover{ border-color:#fff; background:rgba(255,255,255,.06); }
.btn-ghost-light{ border:1px solid rgba(255,255,255,.3); color:#fff; }
.btn-ghost-light:hover{ background:rgba(255,255,255,.06); }

/* ---------- Generic sections ---------- */

main{ display:block; flex:1 0 auto; }

.page-hero{
  padding:70px 24px 4px;
  text-align:center;
}
.page-hero .page-icon{ width:90px; margin:0 auto 22px; }
.page-hero .eyebrow{
  color:var(--muted);
  font-size:1rem;
  margin-bottom:6px;
}
.page-hero .team-subtitle{
  color:var(--muted);
  font-size:1.3rem;
  margin-top:-0.55em;
  margin-bottom:6px;
}

section{ padding:36px 0; }

/* Stylized hand-drawn underline for section headings (Join us page) */
.section-heading{
  position:relative;
  display:inline-block;
  font-size:1.5rem;
  padding-bottom:16px;
  margin-bottom:28px;
}
.section-heading::after{
  content:"";
  position:absolute;
  left:-6px;
  right:-6px;
  bottom:0;
  height:11px;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 22' preserveAspectRatio='none'><path d='M3,13 C35,4 65,20 95,11 C130,2 160,19 217,9' stroke='%23F1EEE7' stroke-width='4.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat:no-repeat;
  background-size:100% 100%;
}

.lede{
  font-size:1.15rem;
  color:var(--text);
  max-width:760px;
}

.feature{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:44px;
  align-items:center;
  padding:40px 0;
}
.feature img{ border-radius:10px; width:85%; }
.feature h4{ font-size:2.3rem; }
.feature.reverse .feature-media{ order:2; }
@media (max-width: 760px){
  .feature{ grid-template-columns:1fr; }
  .feature.reverse .feature-media{ order:0; }
}

.branch-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:2px;
  background:var(--line);
  border-radius:10px;
  overflow:hidden;
  margin:28px 0;
}
.branch-grid a{
  background:var(--black-2);
  color:var(--text);
  text-decoration:none;
  padding:22px 10px;
  text-align:center;
  font-weight:600;
  letter-spacing:.05em;
  font-size:.95rem;
}
.branch-grid a:hover{ background:#1e1e22; }
@media (max-width: 640px){ .branch-grid{ grid-template-columns:repeat(2,1fr);} }

.branch-detail{ padding:34px 0; }
.branch-detail-inner{
  display:flex;
  align-items:flex-start;
  gap:32px;
  max-width:var(--content-width);
  margin:0 auto;
}
.branch-detail-thumb{
  width:350px; height:350px; object-fit:contain; flex-shrink:0;
  border-radius:12px;
}
.branch-detail-inner h2{ font-size:1.5rem; }
.branch-detail-inner p{ color:var(--text); }
@media (max-width:640px){
  .branch-detail-inner{ flex-direction:column; align-items:center; text-align:center; }
}

/* Closing white banner (Overview / Branches pages) */
.outro-banner{
  background:#F5F4F1;
  padding:70px 24px;
  margin-top:20px;
}
.outro-lede{
  font-weight:700;
  font-size:1.25rem;
  color:#141416;
  max-width:640px;
  margin:0 auto 32px;
}
.outro-lede em{ color:#141416; }
.btn-outro-primary{ background:#141416; color:#fff; }
.btn-outro-primary:hover{ background:#2A2A2C; }
.outro-link{ margin:16px 0 0; }
.outro-link a{ color:#8B2E2E; font-size:.92rem; text-decoration-color:rgba(139,46,46,.5); }

/* People — one consistent row layout for every person, in every
   section (team lead, lab managers, undergrads, friends): a photo
   (when there is one) beside a name + bio, stacked vertically down
   the page rather than wrapped into narrow grid columns. */
.person-group{ margin-bottom:8px; }
.person-group h4{ margin-bottom:26px; }
.person-group + .person-group{ margin-top:44px; }

.person-row{
  display:flex;
  gap:28px;
  align-items:flex-start;
  padding:0 0 40px;
}
.person-row:last-child{ padding-bottom:0; }
.person-row img{
  width:130px; height:130px; object-fit:cover; border-radius:16px;
  flex-shrink:0; background:var(--black-2);
  transition:opacity .2s ease;
}
.person-row a:has(img):hover img{ opacity:.8; }
.person-row h3{ margin-bottom:8px; font-size:1.1rem; color:var(--text); }
.person-row p{ max-width:600px; margin:0; color:var(--text); }

@media (max-width: 560px){
  .person-row{ flex-direction:column; gap:16px; }
  .person-row img{ width:110px; height:110px; }
}

/* News */
.news-list{ list-style:disc; margin:0 auto; padding-left:22px; max-width:var(--content-width); }
.simple-list{ list-style:disc; padding-left:22px; margin:0 0 1.1em; }
.simple-list li{ margin-bottom:8px; color:var(--text); }
.simple-list li::marker{ color:var(--text); }
.news-list li{ padding:8px 0; }
.news-list li p{ margin:0; }
.news-list li::marker{ color:var(--text); }
.news-date{ color:var(--muted); font-size:.88rem; }
.btn-news-archive{ background:#C7C7CA; color:#141416; }
.btn-news-archive:hover{ background:#D6D6D9; }

/* Blog */
.blog-list{ margin-top:24px; }
.blog-post{
  display:flex; gap:24px; align-items:flex-start;
  padding:26px 0; border-top:1px solid var(--line);
}
.blog-post:first-child{ border-top:none; }
.blog-post img{ width:140px; height:100px; object-fit:cover; border-radius:10px; flex-shrink:0; }
.blog-post h3{ margin-bottom:6px; }
.blog-post h3 a{ color:var(--text); text-decoration:none; }
.blog-post h3 a:hover{ text-decoration:underline; }
.blog-meta{ color:var(--muted); font-size:.85rem; margin-bottom:6px; }
.blog-readmore{ font-size:.9rem; }
@media (max-width:560px){
  .blog-post{ flex-direction:column; }
  .blog-post img{ width:100%; height:auto; aspect-ratio:16/9; }
}

/* Publications */
.pub-filters{
  display:flex; gap:10px; flex-wrap:wrap; margin:4px 0 8px; justify-content:center;
}
.pub-filters button{
  background:#C7C7CA; border:1px solid #C7C7CA; border-radius:6px;
  padding:8px 18px; font-size:.88rem; font-weight:400; cursor:pointer;
  font-family:var(--font-main); color:#141416;
}
.pub-filters button.active{ background:#6E6E72; border-color:#6E6E72; color:#141416; }
.pub-filters button:hover{ background:#D6D6D9; border-color:#D6D6D9; }
.pub-filters button.active:hover{ background:#6E6E72; border-color:#6E6E72; }

.pub-year{ margin-top:34px; }
.pub-year h3{ color:var(--text); margin-bottom:16px; }
.pub-list{ list-style:none; margin:0; padding:0; }
.pub-list li{ padding:14px 0; font-size:.98rem; color:var(--muted); }
.pub-list li strong{ color:var(--text); }
.pub-list li em{ color:var(--muted); }
.pub-list .links a{ font-size:.86rem; margin-right:10px; color:var(--muted); text-decoration-color:rgba(138,138,142,.5); }

/* PSYC 3310 syllabus page */
.join-content.psyc-content{ max-width:860px; }

.syllabus-grid{
  display:grid;
  grid-template-columns:1fr 1.6fr;
  gap:24px;
  align-items:start;
}
.info-card{
  background:var(--black-2);
  border:1px solid var(--line);
  border-radius:16px;
  padding:26px 28px;
  margin-bottom:24px;
  box-shadow:0 0 24px rgba(255,255,255,.08);
}
.info-card h3{ margin-bottom:16px; font-size:1.2rem; }
.info-card p{ color:var(--text); }
.who-row{ display:flex; align-items:center; gap:16px; }
.who-row img{ width:64px; height:64px; object-fit:cover; border-radius:12px; flex-shrink:0; }
.who-name{ font-weight:600; color:var(--text); margin:0; }
.who-title{ color:var(--muted); font-size:.9rem; margin:2px 0 0; }
.pill-btn{
  display:inline-block;
  background:var(--pill-bg);
  color:var(--text);
  border-radius:999px;
  padding:8px 18px;
  font-size:.85rem;
  text-decoration:none;
  margin-right:8px;
}
.pill-btn:hover{ background:#2A2A2E; }

.section-heading{ text-align:left; }
.course-outline-heading{
  text-align:center;
  font-size:2.1rem;
  margin-top:56px;
  margin-bottom:8px;
}
.syllabus-divider{
  grid-column:1 / -1;
  margin:8px 0 0;
  padding-bottom:10px;
  border-bottom:1px solid var(--line);
  font-size:1.6rem;
}
.day-grid{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-top:28px;
}
.day-card{
  display:flex;
  align-items:flex-start;
  gap:20px;
  background:var(--black-2);
  border:1px solid var(--line);
  border-radius:14px;
  padding:16px 24px;
  box-shadow:0 0 22px rgba(255,255,255,.08);
}
.day-label{ color:var(--muted); font-size:.82rem; margin:0; flex-shrink:0; width:170px; padding-top:2px; }
.day-content{ flex:1; display:flex; flex-direction:column; gap:8px; }
.day-title{ font-weight:600; color:var(--text); margin:0; }
.reading-chip{
  background:var(--pill-bg);
  border-radius:8px;
  padding:8px 12px;
  font-size:.78rem;
  color:var(--muted);
  margin:0;
  width:fit-content;
  max-width:100%;
}
@media (max-width:760px){
  .syllabus-grid{ grid-template-columns:1fr; }
}
@media (max-width:640px){
  .day-card{ flex-direction:column; align-items:flex-start; gap:8px; }
  .day-label{ width:auto; }
  .reading-chip{ max-width:100%; }
}

/* Individual branch pages (Space / Time / Adaptation / Number) */
.branch-subtitle{
  text-align:center;
  color:var(--muted);
  font-size:1.1rem;
  font-weight:600;
  margin-bottom:36px;
}
.branch-copy{
  max-width:var(--content-width);
  margin:0 auto 1.1em;
  text-align:justify;
  text-justify:inter-word;
  hyphens:auto;
  color:var(--text);
}
.branch-copy:last-child{ margin-bottom:0; }

.frames-block{ margin:40px auto 0; max-width:var(--content-width); }
.frames-row{
  display:flex;
  align-items:center;
  gap:18px;
  padding:20px 0;
  border-top:1px dotted var(--line);
}
.frames-row:first-of-type{ border-top:none; }
.frames-label{ width:70px; flex-shrink:0; color:var(--muted); font-size:.95rem; }
.frames-media-placeholder{
  flex:1;
  background:var(--black-2);
  border:1px dashed var(--line);
  border-radius:8px;
  padding:22px 16px;
  text-align:center;
  color:var(--muted);
  font-size:.85rem;
}

/* Resources sub-pages: bibliography list + video demo blocks */
.biblio-list{ list-style:none; margin:24px 0 0; padding:0; }
.biblio-list li{ padding:14px 0; border-top:1px solid var(--line); color:var(--muted); font-size:.95rem; }
.biblio-list li:first-child{ border-top:none; }
.biblio-list li strong{ color:var(--text); display:block; margin-bottom:-24px; font-weight:600; }

.demo-block{ margin:40px 0; }
.demo-block h3{ margin-bottom:14px; font-size:1.05rem; text-align:center;}
.demo-placeholder{
  background:var(--black-2);
  border:1px dashed var(--line);
  border-radius:8px;
  padding:50px 20px;
  text-align:center;
  color:var(--muted);
  font-size:.85rem;
  margin-bottom:14px;
}
.demo-duration{ display:block; margin-top:6px; font-size:.8rem; opacity:.7; }
.demo-video{
  width:100%;
  max-width:var(--content-width);
  border-radius:8px;
  background:var(--black-2);
  margin-bottom:14px;
  display:block;
}

/* White "Featured Review(s)" banner */
.featured-banner{
  background:#F5F4F1;
  padding:56px 24px;
}
.featured-banner h2{ color:#141416; font-size:1.3rem; margin-bottom:20px; }
.featured-banner .citation{ color:#3a3a3c; margin-bottom:18px; }
.featured-banner .citation strong{ color:#141416; }
.featured-banner .citation em{ color:#3a3a3c; }
.featured-banner .citation a{ color:#3a3a3c; text-decoration-color:rgba(58,58,60,.5); }
.featured-banner-link{ text-align:center; margin-top:24px; }
.featured-banner-link a{ color:#141416; font-style:italic; font-weight:600; font-size:.95rem; }

/* Explore other branches + closing CTA */
.explore-branches{ padding:60px 0 70px; text-align:center; }
.explore-branches-lede{ font-style:italic; font-weight:600; color:var(--text); font-size:1.15rem; margin-bottom:32px; }
.branch-icons-row{ display:flex; gap:0px; flex-wrap:wrap; margin-bottom:20px; justify-content:center; }
.branch-icon-item{ text-align:center; }
.branch-icon-item .label{
  display:block; font-weight:700; letter-spacing:.04em; font-size:1.2rem;
  color:var(--text); margin-bottom:0px; text-transform:uppercase;
}
.branch-icon-item img{
  width:200px; height:200px; object-fit:contain;
  transition:transform .2s ease;
}
.branch-icon-item:hover img{ transform:scale(1.08); }
.explore-branches .btn-primary{ margin-bottom:14px; }
.explore-branches-team-link{ font-style:italic; font-size:.92rem; }
.explore-branches-team-link a{ color:var(--text); }

/* Spacetime demo page */
.figure-block{ margin:36px 0; }
.figure-media-placeholder{
  background:var(--black-2);
  border:1px dashed var(--line);
  border-radius:10px;
  padding:60px 20px;
  text-align:center;
  color:var(--muted);
  font-size:.9rem;
  margin-bottom:16px;
}

/* Resources */
.resource-block{ margin-bottom:30px; }
.resource-block h3{ color:var(--text); }
.resource-block ul{ padding-left:20px; }
.resource-block li{ margin-bottom:6px; }

/* Join / Contact */
.join-content{ max-width:var(--content-width); margin:0 auto; }

/* Justify actual body prose (article text, bios, citations, callouts)
   without touching short labels or anything meant to stay centered --
   those either have their own text-align already, or inherit centering
   from a page-hero-style container, which this deliberately doesn't
   touch. */
.join-content p,
.info-card p,
.person-row p,
.friend p,
.callout p,
.resource-block p,
.feature p,
.news-list li p,
.pub-list li,
.biblio-list li,
.featured-banner .citation{
  text-align:justify;
  text-justify:inter-word;
  hyphens:auto;
}
.callout{
  background:var(--black-2); border:1px solid var(--line); border-radius:12px; padding:24px 26px; margin:20px 0;
}
.contact-block{ padding:90px 0; }
.contact-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:70px;
  flex-wrap:wrap;
}
.contact-mark{ width:260px; flex-shrink:0; }
.contact-copy{ max-width:440px; text-align:left; }
.contact-copy h1{ margin-bottom:22px; }
.contact-copy p{ margin-bottom:16px; }
.contact-email{ font-family:var(--font-heading); font-weight:600; font-size:1.3rem; }
.contact-email a{ color:var(--text); }
.contact-links a{ color:var(--text); }
@media (max-width:640px){
  .contact-wrap{ text-align:center; justify-content:center; }
  .contact-copy{ text-align:center; }
  .contact-mark{ width:180px; }
}

/* Footer */
.site-footer{
  color:var(--muted);
  text-align:center;
  padding:44px 24px;
  margin-top:60px;
  font-size:.9rem;
  flex-shrink:0;
}
.footer-title{ font-family:var(--font-heading); color:#fff; font-weight:700; font-size:1.4rem; margin-bottom:10px; }
.footer-credit{
  display:none;
  font-size:.78rem;
  color:#6E6E72;
  max-width:640px;
  white-space:nowrap;
  margin:0 auto;
}
.footer-credit a{ color:#6E6E72; }
body[data-page="home"] .footer-credit,
body[data-page="overview"] .footer-credit,
body[data-page="research-branches"] .footer-credit,
body[data-page="resources"] .footer-credit,
body[data-page="contact"] .footer-credit{
  display:block;
}

/* Focus visibility */
a:focus-visible, button:focus-visible{
  outline:2px solid var(--text);
  outline-offset:2px;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
}
