/* Home page layout. The global cortical canvas, navigation, themes, and
   publication data remain in the site's shared styles and scripts. */
body[data-page="home"] .home-hero {
  min-height: 0;
  padding: calc(var(--nav-height) + 74px) 0 112px;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.75fr);
  align-items: center;
  gap: clamp(52px, 7vw, 118px);
}

.home-hero-copy { min-width: 0; }
.home-hero-copy .parsec-identity { max-width: 530px; margin-bottom: 42px; }
.home-hero-name { font-size: 13px; letter-spacing: 0.15em; margin-bottom: 19px; }

.home-display-title {
  max-width: 850px;
  margin: 0;
  color: var(--text);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(53px, 5.7vw, 86px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.home-display-title em { color: var(--accent); font-weight: 400; }
.home-hero-copy .hero-intro { max-width: 690px; margin-top: 28px; font-size: 19px; }
.home-hero-copy .role-line { max-width: 630px; }
.home-hero-copy .hero-actions { margin-top: 30px; }
.home-hero-copy .profile-link-row { margin-top: 28px; }

.home-portrait.profile-portrait {
  grid-area: auto;
  width: 100%;
  max-width: 425px;
  aspect-ratio: 4 / 4.65;
  border-radius: 18px;
  justify-self: end;
  box-shadow: 22px 22px 0 color-mix(in srgb, var(--accent) 11%, transparent), var(--shadow);
}
.home-portrait.profile-portrait::before { border-radius: 25px; }
.home-portrait.profile-portrait img,
.home-portrait.profile-portrait .profile-portrait-placeholder { border-radius: 12px; }
.home-portrait.profile-portrait::after { z-index: 4; right: 6%; bottom: 6%; }
.home-portrait-caption {
  position: absolute;
  z-index: 3;
  inset: auto 7px 7px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 56px 22px 19px;
  border-radius: 0 0 12px 12px;
  color: #f8fffd;
  background: linear-gradient(transparent, rgb(4 19 23 / 0.86));
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
}
.home-portrait-caption span { max-width: 120px; font-size: 10px; text-align: right; opacity: 0.86; }

.home-question {
  position: relative;
  z-index: 1;
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-strong) 77%, transparent);
  backdrop-filter: blur(14px);
}
.home-question-grid {
  display: grid;
  grid-template-columns: 175px minmax(0, 1fr) 170px;
  align-items: center;
  gap: 40px;
  min-height: 166px;
  padding-block: 30px;
}
.home-question .section-kicker { margin: 0; }
.home-question-grid > p:nth-child(2) {
  max-width: 820px;
  margin: 0;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: clamp(23px, 2.4vw, 34px);
  line-height: 1.35;
  letter-spacing: -0.025em;
}
.home-question svg { color: var(--accent); opacity: 0.75; }

body[data-page="home"] .home-section { padding-block: clamp(80px, 9vw, 118px); }
body[data-page="home"] .home-section .section-header { margin-bottom: 42px; }
body[data-page="home"] .home-section .section-title { font-size: clamp(40px, 4.5vw, 62px); }
body[data-page="home"] .home-section .section-copy { max-width: 690px; font-size: 17px; }
body[data-page="home"] .theme-grid { gap: 16px; }
body[data-page="home"] .theme-card {
  padding: 28px 30px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-strong) 86%, transparent);
}
body[data-page="home"] .theme-card::after { display: none; }
body[data-page="home"] .theme-card-heading h3 { font-size: clamp(25px, 2.4vw, 32px); }
body[data-page="home"] .theme-card p { font-size: 16px; line-height: 1.65; }
body[data-page="home"] .theme-card .tag { font-size: 12px; }
body[data-page="home"] .theme-paper-links > span { font-size: 12px; }
body[data-page="home"] .theme-paper-links a { font-size: 14px; }

body[data-page="home"] .home-focus-section {
  position: relative;
  padding: 80px 0 88px;
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-strong) 89%, transparent);
  overflow: hidden;
  backdrop-filter: blur(16px);
}
.home-focus-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 90px; }
.home-focus-heading,.home-focus-detail { position: relative; z-index: 1; }
.home-focus-heading .section-title { max-width: 620px; font-size: clamp(39px, 4.3vw, 61px); }
.home-focus-detail { padding-top: 39px; }
.home-focus-detail > p:first-child { max-width: 540px; margin: 0; color: var(--text-soft); font-size: 18px; line-height: 1.72; }
.home-focus-detail .tag-list { margin-top: 25px; }
.home-focus-detail .tag { font-size: 12px; }
.home-focus-location { color: var(--accent); font-size: 13px; font-weight: 700; }
.home-focus-trace { position: absolute; width: 46%; right: -4%; bottom: -130px; opacity: .15; color: var(--accent); pointer-events: none; }
.home-focus-trace svg { width: 100%; height: 190px; }
.home-focus-trace path { fill: none; stroke: currentColor; stroke-width: 1.5; }

body[data-page="home"] .publication-list { border-top: 1px solid var(--line); gap: 0; }
body[data-page="home"] .publication-card {
  min-height: 0;
  padding: 28px 4px;
  grid-template-columns: 90px minmax(0, 1fr) 44px;
  gap: 22px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
body[data-page="home"] .publication-card:hover { transform: translateX(3px); background: color-mix(in srgb, var(--surface) 35%, transparent); }
body[data-page="home"] .publication-card::after { display: none; }
body[data-page="home"] .publication-year { font-size: 26px; }
body[data-page="home"] .publication-type { font-size: 12px; }
body[data-page="home"] .publication-title { font-size: clamp(23px, 2.6vw, 32px); }
body[data-page="home"] .publication-venue { font-size: 15px; max-width: 760px; }
body[data-page="home"] .publication-card .card-arrow { margin-top: 7px; }

body[data-page="home"] .home-program-section { border-block: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 56%, transparent); }
body[data-page="home"] .principles { border-radius: 16px; }
body[data-page="home"] .principle { grid-template-columns: 55px minmax(180px, .7fr) minmax(0, 1.3fr); gap: 28px; }
body[data-page="home"] .principle h3 { font-size: 19px; }
body[data-page="home"] .principle p { font-size: 16px; }
body[data-page="home"] .research-timeline { border-radius: 16px; }
body[data-page="home"] .home-question-in-progress { padding-top: 24px; }
body[data-page="home"] .home-question-in-progress .current-question { max-width: 950px; margin: 0 auto; }
body[data-page="home"] .home-question-in-progress h2 { max-width: 780px; }

@media (max-width: 1050px) {
  .home-hero-grid { grid-template-columns: minmax(0,1.2fr) minmax(230px,.8fr); gap: 45px; }
  .home-display-title { font-size: clamp(45px, 5.5vw, 70px); }
  .home-question-grid { grid-template-columns: 130px minmax(0,1fr); }
  .home-question svg { display: none; }
  .home-focus-grid { gap: 40px; }
}

@media (max-width: 760px) {
  body[data-page="home"] .home-hero { padding: calc(var(--nav-height) + 50px) 0 76px; }
  .home-hero-grid { display: flex; flex-direction: column; gap: 58px; align-items: stretch; }
  .home-hero-copy .parsec-identity { margin-bottom: 31px; }
  .home-display-title { font-size: clamp(44px, 9vw, 66px); }
  .home-hero-copy .hero-intro { font-size: 17px; }
  .home-portrait.profile-portrait { width: min(100%, 390px); max-width: 390px; align-self: center; justify-self: auto; }
  .home-question-grid { display: block; min-height: auto; }
  .home-question .section-kicker { margin-bottom: 12px; }
  .home-question-grid > p:nth-child(2) { font-size: 23px; }
  body[data-page="home"] .home-section { padding-block: 77px; }
  body[data-page="home"] .theme-grid { grid-template-columns: 1fr; }
  body[data-page="home"] .home-focus-section { padding-block: 75px; }
  .home-focus-grid { display: block; }
  .home-focus-detail { padding-top: 23px; }
  .home-focus-detail > p:first-child { font-size: 16px; }
  .home-focus-trace { width: 80%; opacity: .09; }
  body[data-page="home"] .publication-card { grid-template-columns: 1fr auto; gap: 13px; }
  body[data-page="home"] .publication-year { grid-column: 1 / -1; font-size: 22px; }
  body[data-page="home"] .publication-card .card-arrow { grid-column: 2; grid-row: 2; }
  body[data-page="home"] .principle { grid-template-columns: 44px 1fr; gap: 14px; }
  body[data-page="home"] .principle p { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .home-portrait.profile-portrait::before { animation: none; }
}
