/* ==========================================================================
   IEEE GRSS at UT Arlington — site.css

   One stylesheet. The page is night until the Join section, where it turns
   to day. Colour comes from the imagery; the only accent is the warm amber
   of a sodium streetlight, used for Arlington and very little else.
   ========================================================================== */

:root {
  --night:     #0d0e10;
  --night-2:   #16171a;
  --night-line: rgba(238, 235, 229, 0.14);
  --ink-n:     #eeebe5;
  --ink-n2:    #b3aea6;   /* 9.4:1 on night */
  --ink-n3:    #8f8a82;   /* 5.6:1 on night */

  --day:       #ebe7df;
  --day-2:     #e1dcd2;
  --day-line:  rgba(20, 20, 20, 0.16);
  --ink-d:     #161616;
  --ink-d2:    #4b4841;   /* 8.4:1 on day */
  --ink-d3:    #635f57;   /* 5.1:1 on day, 4.6:1 on day-2 */

  --lamp:      #f0a646;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans:  "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:  ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --gut: clamp(20px, 5vw, 72px);
  --col: clamp(16px, 2vw, 32px);
  --max: 1360px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: dark;
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink-n);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: inherit; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: text-decoration-color 0.2s;
}
a:hover { text-decoration-color: currentColor; }

::selection { background: var(--lamp); color: #141210; }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; }
.day :focus-visible { outline-color: var(--ink-d); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--ink-n); color: var(--night); padding: 10px 16px; border-radius: 3px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* --------------------------------------------------------------- themes -- */
.night {
  --bg: var(--night); --fg: var(--ink-n); --fg2: var(--ink-n2); --fg3: var(--ink-n3); --line: var(--night-line);
  background: var(--bg); color: var(--fg);
}
.day {
  --bg: var(--day); --fg: var(--ink-d); --fg2: var(--ink-d2); --fg3: var(--ink-d3); --line: var(--day-line);
  background: var(--bg); color: var(--fg);
  color-scheme: light;
}

/* ------------------------------------------------------------ night sky --
   ui/sky.js draws stars on one fixed canvas under the page. While it runs
   (html.has-sky) the night sections let it show through; the day sections stay
   opaque and cover it. Without JavaScript nothing here applies. */
.sky {
  position: fixed; left: 0; top: 0; z-index: -1;
  width: 100%; height: 100vh;
  pointer-events: none;
  opacity: 0; transition: opacity 1.8s ease;
}
.sky.is-on { opacity: 1; }
.has-sky .night { background: transparent; }
.has-sky .dawn {
  background: linear-gradient(180deg, rgba(13, 14, 16, 0) 0%, rgba(13, 14, 16, 0.75) 12%, #1c1b1a 26%, #4b463f 52%, #a69d90 80%, var(--day) 100%);
}
/* The still Earth is a square photo on black; round it off so the sky shows past its corners. */
.has-sky .hero__still img {
  -webkit-mask-image: radial-gradient(closest-side, #000 97%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 97%, transparent 100%);
}

/* ----------------------------------------------------------- typography -- */
.display {
  font-family: var(--serif);
  font-size: clamp(3.1rem, 7.4vw, 7.4rem);
  line-height: 0.96;
  letter-spacing: -0.028em;
}
.h2 {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4.8vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.h3 {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.3vw, 2.1rem);
  line-height: 1.12;
  letter-spacing: -0.012em;
}
.lede {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.8vw, 2.5rem);
  line-height: 1.22;
  letter-spacing: -0.014em;
}
.display em, .h2 em, .lede em { font-style: italic; }
/* Even out ragged serif lines so a headline never ends on a lone word. */
.display, .h2, .h3, .tl__what, .prow__name { text-wrap: balance; }
.lede { text-wrap: pretty; }
.body { font-size: 1.0625rem; line-height: 1.62; color: var(--fg2); max-width: 34em; }
.meta { font-size: 0.875rem; line-height: 1.5; color: var(--fg3); }
.meta a { color: var(--fg2); }

/* --------------------------------------------------------------- layout -- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.section { position: relative; padding-block: clamp(88px, 12vw, 184px); }

/* a hairline between consecutive sections of the same tone, held to the text column */
.night + .night::before,
.day + .day::before {
  content: "";
  position: absolute; top: 0; left: 50%;
  width: calc(min(100%, var(--max)) - 2 * var(--gut));
  transform: translateX(-50%);
  border-top: 1px solid var(--line);
}

.section__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col);
  row-gap: 22px;
  align-items: end;
  margin-bottom: clamp(56px, 7vw, 104px);
}
.section__head .h2 { grid-column: 1 / span 6; }
.section__head .body { grid-column: 8 / span 5; }
@media (max-width: 900px) {
  .section__head { grid-template-columns: minmax(0, 1fr); }
  .section__head .h2, .section__head .body { grid-column: auto; }
}

/* --------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  padding: 0.95rem 1.4rem;
  border-radius: 3px;
  background: var(--fg); color: var(--bg);
  font-weight: 500; font-size: 1rem; line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn:hover { background: var(--lamp); color: #141210; }
.day .btn:hover { background: #000; color: var(--day); }
.btn--line { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.btn--line:hover, .day .btn--line:hover { background: var(--fg); color: var(--bg); }

.arrow { display: inline-flex; align-items: baseline; gap: 0.45em; font-weight: 500; text-decoration: none; }
.arrow::after { content: "\2192"; transition: transform 0.25s var(--ease); }
.arrow:hover::after { transform: translateX(4px); }

/* ------------------------------------------------------------- top bar -- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--ink-n);
  transition: background-color 0.35s, color 0.35s, box-shadow 0.35s;
}
.top.is-scrolled {
  background: color-mix(in srgb, var(--night) 88%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--night-line);
}
.top.is-day {
  background: color-mix(in srgb, var(--day) 92%, transparent);
  color: var(--ink-d);
  box-shadow: 0 1px 0 var(--day-line);
}
.top__in { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.mark {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 0.98rem; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap;
}
.mark__logo { height: 40px; width: auto; flex: none; }
@media (max-width: 480px) { .mark__logo { height: 34px; } }
.mark__sub { font-weight: 400; opacity: 0.66; }

.menu { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.menu a { text-decoration: none; font-size: 0.95rem; opacity: 0.74; transition: opacity 0.2s; }
.menu a:hover, .menu a[aria-current="true"] { opacity: 1; }
.menu a[aria-current="true"] { text-decoration: underline; text-underline-offset: 0.5em; text-decoration-color: currentColor; }
.menu .menu__join { opacity: 1; font-weight: 600; }

.menu-btn { display: none; position: relative; z-index: 2; font-weight: 500; padding: 8px 0; }

@media (max-width: 860px) {
  .menu-btn { display: inline-block; }
  .menu {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px;
    padding: 96px var(--gut) 48px;
    background: var(--night); color: var(--ink-n);
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }
  .menu a { font-family: var(--serif); font-size: clamp(2.3rem, 10vw, 3.3rem); line-height: 1.16; opacity: 1; }
  .menu a[aria-current="true"] { text-decoration: none; }
  .menu .menu__join { color: var(--lamp); font-weight: 400; }
  html.menu-open { overflow: hidden; }
  html.menu-open .menu { opacity: 1; visibility: visible; }
  html.menu-open .top { background: var(--night); color: var(--ink-n); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ----------------------------------------------------------------- hero -- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  overflow: hidden;
  isolation: isolate;
}
.hero__stage { position: absolute; inset: 0; z-index: -2; }
.hero__stage canvas {
  position: absolute; inset: 0;
  width: 100% !important; height: 100% !important;
  opacity: 0; transition: opacity 2.2s ease;
}
.hero__stage.has-globe canvas { opacity: 1; }

.hero__still { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity 1.6s ease; }
.hero__still img {
  width: min(116vh, 118%); max-width: none;
  transform: translate(24%, 3%);
  opacity: 0; transition: opacity 2.6s ease;
}
.hero__still img.is-in { opacity: 0.95; }
.hero__stage.has-globe .hero__still { opacity: 0; }

.hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--night) 0%, rgba(13, 14, 16, 0.84) 26%, rgba(13, 14, 16, 0.22) 56%, rgba(13, 14, 16, 0) 72%),
    linear-gradient(0deg, var(--night) 0%, rgba(13, 14, 16, 0) 36%);
}

.hero__copy { align-self: end; padding-top: 128px; padding-bottom: clamp(36px, 6vh, 72px); }
.hero__h1 { display: block; }
.hero__org {
  display: block;
  font: 500 1rem/1.45 var(--sans);
  color: var(--ink-n2);
  margin-bottom: clamp(20px, 3vh, 34px);
}
.hero__title { display: block; max-width: 9.2ch; }
.hero__sub {
  margin-top: clamp(22px, 3vh, 32px);
  max-width: 29em;
  font-size: clamp(1.06rem, 1.35vw, 1.25rem); line-height: 1.5;
  color: var(--ink-n2);
}
.hero__actions { margin-top: clamp(28px, 4vh, 40px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }

.hero__caption { padding-bottom: 24px; font-size: 0.8125rem; line-height: 1.5; color: var(--ink-n3); }
.hero__caption > span:first-child { display: block; max-width: 50em; }
.hero__pass { display: block; margin-top: 4px; color: var(--lamp); opacity: 0; transition: opacity 0.5s; }
.hero__pass.is-on { opacity: 1; }

.globe-label {
  position: absolute; left: 0; top: 0; z-index: 1;
  display: flex; align-items: center; gap: 9px;
  margin: -0.75em 0 0 -3.5px;
  white-space: nowrap; pointer-events: none;
  font-size: 0.8125rem; color: var(--ink-n);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.95);
  opacity: 0; transition: opacity 0.6s;
}
.globe-label.is-on { opacity: 0.92; }
.globe-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 0 4px rgba(240, 166, 70, 0.2); }
.hero__stage:not(.has-globe) .globe-label { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .hero__h1, .hero__sub, .hero__actions, .hero__caption { animation: rise 1.3s var(--ease) both; }
  .hero__h1 { animation-delay: 0.3s; }
  .hero__sub { animation-delay: 0.65s; }
  .hero__actions { animation-delay: 0.85s; }
  .hero__caption { animation-delay: 1.4s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .hero__still { place-items: start center; }
  .hero__still img { width: 150%; transform: translate(0, -8%); }
  .hero__shade {
    background: linear-gradient(0deg, var(--night) 32%, rgba(13, 14, 16, 0.86) 52%, rgba(13, 14, 16, 0.3) 76%, rgba(13, 14, 16, 0.08) 100%);
  }
  .hero__title { max-width: none; }
  .globe-label { font-size: 0.75rem; }
}

/* ---------------------------------------------------------------- about -- */
.about__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col);
  row-gap: clamp(36px, 5vw, 64px);
}
.about__lede { grid-column: 1 / span 10; }
.about__body { grid-column: 6 / span 6; }
.facts {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--col);
  margin-top: clamp(16px, 3vw, 40px);
  border-top: 1px solid var(--line); padding-top: 22px;
}
.facts dt { font-size: 0.875rem; color: var(--fg3); margin-bottom: 6px; }
.facts dd { font-size: 1.0625rem; }
@media (max-width: 900px) {
  .about__lede, .about__body { grid-column: 1 / -1; }
  .facts { grid-template-columns: 1fr 1fr; row-gap: 24px; }
}

/* ------------------------------------------------------ seeing: story -- */
.story {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col);
}
.story__figure {
  grid-column: 6 / -1; grid-row: 1;
  position: sticky; top: 96px; align-self: start;
  height: calc(100svh - 140px);
  display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 18px;
}
.story__plates { position: relative; }
.story__plate { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; }
.story__plate.is-on { opacity: 1; }
.story__plate img { width: 100%; height: 100%; object-fit: contain; }

.story__nav { display: flex; flex-wrap: wrap; gap: 6px 24px; border-top: 1px solid var(--line); padding-top: 14px; }
.story__tab { display: inline-flex; align-items: baseline; gap: 8px; font-size: 0.875rem; color: var(--fg3); transition: color 0.25s; }
.story__tab span { font-variant-numeric: tabular-nums; opacity: 0.7; }
.story__tab:hover, .story__tab[aria-current="true"] { color: var(--fg); }

.story__steps { grid-column: 1 / span 4; grid-row: 1; }
.step {
  min-height: calc(100svh - 140px);
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
  opacity: 0.26; transition: opacity 0.6s ease;
}
.step.is-active { opacity: 1; }
.step .body { max-width: none; }
.step__band { font-size: 0.875rem; color: var(--fg3); font-variant-numeric: tabular-nums; }
.step__img { display: none; }
html[data-motion="reduced"] .step { opacity: 1; }

@media (max-width: 900px) {
  .story { display: block; }
  .story__figure { display: none; }
  .step { min-height: 0; opacity: 1; padding-block: 36px; border-top: 1px solid var(--line); }
  .step:first-child { border-top: 0; padding-top: 0; }
  .step__img { display: block; width: 100%; max-height: 72svh; object-fit: contain; background: #070809; margin-bottom: 8px; }
}

/* ---------------------------------------------------- seeing: compare -- */
.compare {
  margin-top: clamp(96px, 12vw, 176px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--col); row-gap: 72px;
}
@media (max-width: 900px) { .compare { grid-template-columns: minmax(0, 1fr); } }

.cmp__stage {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--night-2);
  cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.cmp[data-mode="lens"] .cmp__stage { cursor: crosshair; }
.cmp__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cmp__reveal { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--x, 50%)); }
.cmp[data-mode="lens"] .cmp__reveal { clip-path: circle(var(--r, 110px) at var(--x, 50%) var(--y, 50%)); }

.cmp__handle { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 1px; background: #fff; pointer-events: none; }
.cmp__knob {
  position: absolute; top: 50%; left: 50%;
  width: 42px; height: 42px; margin: -21px 0 0 -21px;
  display: grid; place-items: center;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.92);
  background: rgba(13, 14, 16, 0.5); color: #fff;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.cmp__knob svg { width: 18px; height: 18px; }
.cmp__ring {
  position: absolute; left: var(--x, 50%); top: var(--y, 50%);
  width: calc(var(--r, 110px) * 2); height: calc(var(--r, 110px) * 2);
  transform: translate(-50%, -50%); border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9), 0 0 0 3px rgba(0, 0, 0, 0.22);
  pointer-events: none;
}
.cmp[data-mode="slider"] .cmp__ring, .cmp[data-mode="lens"] .cmp__handle { display: none; }

.cmp__label {
  position: absolute; top: 14px;
  font-size: 0.8125rem; font-weight: 500; color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9); pointer-events: none;
}
.cmp__label--l { left: 16px; }
.cmp__label--r { right: 16px; }
.cmp__hint {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  font-size: 0.8125rem; color: #fff; white-space: nowrap;
  background: rgba(13, 14, 16, 0.6); padding: 5px 11px; border-radius: 2px;
  pointer-events: none; transition: opacity 0.4s;
}
.cmp__hint.is-gone { opacity: 0; }
.cmp__stage:has(.cmp__range:focus-visible) { outline: 2px solid var(--lamp); outline-offset: 3px; }
.cmp figcaption { margin-top: 24px; display: grid; gap: 12px; }

/* ----------------------------------------------------- seeing: places -- */
.places {
  margin-top: clamp(96px, 12vw, 168px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col); row-gap: 32px; align-items: start;
}
.places__head { grid-column: 1 / span 4; display: grid; gap: 24px; }
.places__list li { position: relative; padding: 9px 0 9px 18px; border-top: 1px solid var(--line); color: var(--fg2); font-size: 0.9375rem; }
.places__list li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 6px; height: 6px; border-radius: 50%; background: var(--fg3); }
.places__list li.is-home { color: var(--fg); }
.places__list li.is-home::before { background: var(--lamp); }
.places__map { grid-column: 6 / -1; position: relative; aspect-ratio: 2 / 1; background: #070809; overflow: hidden; }
.places__map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; opacity: 0.6; filter: saturate(0.7); }
.pin { position: absolute; width: 24px; height: 24px; transform: translate(-50%, -50%); display: grid; place-items: center; }
.pin::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-n); box-shadow: 0 0 0 3px rgba(238, 235, 229, 0.18); }
.pin--home::before { background: var(--lamp); box-shadow: 0 0 0 4px rgba(240, 166, 70, 0.26); }
.pin__tip {
  position: absolute; bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%);
  white-space: nowrap; font-size: 0.75rem;
  background: var(--ink-n); color: var(--night); padding: 3px 8px; border-radius: 2px;
  opacity: 0; transition: opacity 0.15s; pointer-events: none;
}
.pin:hover .pin__tip { opacity: 1; }
@media (max-width: 900px) {
  .places__head, .places__map { grid-column: 1 / -1; }
  .places__map { grid-row: 2; }
}

/* ------------------------------------------------------------- projects -- */
.plist { border-bottom: 1px solid var(--line); }
.prow { border-top: 1px solid var(--line); }
.prow__btn {
  width: 100%; text-align: left;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col);
  align-items: baseline;
  padding-top: clamp(24px, 2.8vw, 36px);
}
.prow__name {
  grid-column: 1 / span 6;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.9vw, 3.3rem); line-height: 1.04; letter-spacing: -0.02em;
  transition: transform 0.4s var(--ease);
}
.prow__btn:hover .prow__name { transform: translateX(8px); }
.prow__status { grid-column: 8 / span 4; font-size: 1rem; color: var(--fg2); }
.prow__status em { font-style: normal; color: var(--lamp); }
.prow__icon { grid-column: 12; justify-self: end; align-self: center; position: relative; width: 18px; height: 18px; }
.prow__icon::before, .prow__icon::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px;
  background: currentColor; transition: transform 0.35s var(--ease);
}
.prow__icon::after { transform: rotate(90deg); }
.prow__btn[aria-expanded="true"] .prow__icon::after { transform: rotate(0deg); }

.prow__sum {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col);
  padding: 12px 0 clamp(24px, 2.8vw, 36px);
}
.prow__sum p { grid-column: 1 / span 6; color: var(--fg2); max-width: 36em; }

.prow__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease); }
.prow__more.is-open { grid-template-rows: 1fr; }
.prow__more > div { overflow: hidden; min-height: 0; }
.prow__inner {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col); row-gap: 28px;
  padding-bottom: clamp(36px, 4vw, 60px);
}
.prow__detail { grid-column: 1 / span 6; }
.prow__groups { grid-column: 8 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; }
.prow__groups h4 { font-size: 0.875rem; font-weight: 600; margin-bottom: 8px; }
.prow__groups li { font-size: 0.9375rem; line-height: 1.45; color: var(--fg2); padding: 3px 0; }
.prow__links { grid-column: 1 / span 6; display: flex; flex-wrap: wrap; gap: 10px 28px; }

@media (max-width: 760px) {
  .prow__btn { grid-template-columns: minmax(0, 1fr) auto; row-gap: 10px; }
  .prow__name { grid-column: 1; }
  .prow__icon { grid-column: 2; grid-row: 1; }
  .prow__status { grid-column: 1 / -1; grid-row: 2; }
  .prow__sum p, .prow__detail, .prow__groups, .prow__links { grid-column: 1 / -1; }
}

/* ----------------------------------------------------------------- year -- */
.year__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col); row-gap: 80px;
}
.year__history { grid-column: 1 / span 6; }
.year__side { grid-column: 8 / -1; display: grid; gap: 72px; align-content: start; padding-top: 0.6rem; }
.side .h3 { margin-bottom: 20px; }
.side .body + ul, .side .body + .aff { margin-top: 20px; }

.timeline { margin-top: clamp(40px, 5vw, 64px); }
.tl { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); column-gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); }
.tl__when { font-size: 0.9375rem; color: var(--fg3); font-variant-numeric: tabular-nums; padding-top: 0.45em; }
.tl__what { font-family: var(--serif); font-size: 1.65rem; line-height: 1.15; letter-spacing: -0.01em; }
.tl__detail { margin-top: 8px; color: var(--fg2); }
.tl--now .tl__when { color: var(--lamp); }
.tl--now .tl__when::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lamp); margin-right: 9px; vertical-align: 0.08em; }

.lines li { padding: 13px 0; border-top: 1px solid var(--line); color: var(--fg2); }
.event { padding: 16px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 8rem 1fr; gap: 4px 20px; }
.event__date { color: var(--fg3); font-variant-numeric: tabular-nums; }
.event__title { font-weight: 500; }
.aff li { padding: 14px 0; border-top: 1px solid var(--line); }
.aff a { font-weight: 500; }
.aff span { display: block; color: var(--fg3); font-size: 0.9375rem; margin-top: 2px; }

@media (max-width: 900px) {
  .year__history, .year__side { grid-column: 1 / -1; }
  .tl { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .event { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------- people -- */
.roles {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(40px, 4.5vw, 64px) var(--col);
}
.role { display: grid; gap: 16px; align-content: start; }
.role__photo, .role__blank {
  width: 100%; aspect-ratio: 4 / 5; border-radius: 2px;
  background: var(--night-2);
}
.role__photo { object-fit: cover; object-position: 50% 30%; }
.role__blank {
  display: grid; place-items: center;
  font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.2rem); letter-spacing: -0.02em; color: var(--fg3);
}
.role__title { font-size: 0.875rem; color: var(--fg3); }
.role__name { margin-top: 3px; font-family: var(--serif); font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
.role__name--tba { font-style: italic; color: var(--fg3); }
.role__more { margin-top: 6px; font-size: 0.9375rem; color: var(--fg2); display: flex; flex-wrap: wrap; gap: 4px 14px; overflow-wrap: anywhere; }
@media (max-width: 900px) { .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) {
  .roles { grid-template-columns: minmax(0, 1fr); }
  .role { grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 18px; }
}

.faculty__head {
  margin: clamp(64px, 8vw, 112px) 0 clamp(28px, 3vw, 40px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.previous {
  margin-top: clamp(56px, 7vw, 96px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col); row-gap: 14px;
}
.previous__head { grid-column: 1 / span 4; color: var(--fg3); }
.previous__body { grid-column: 6 / -1; display: grid; gap: 16px; }
.previous__list { color: var(--fg2); line-height: 1.85; }
@media (max-width: 900px) { .previous__head, .previous__body { grid-column: 1 / -1; } }

/* ------------------------------------------------------ night to day ---- */
.dawn {
  height: clamp(150px, 28vh, 320px);
  background: linear-gradient(180deg, var(--night) 0%, #1c1b1a 24%, #4b463f 52%, #a69d90 80%, var(--day) 100%);
}

/* ----------------------------------------------------------------- join -- */
.join__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col); row-gap: 64px; align-items: start;
}
.join__main { grid-column: 1 / span 7; }
.join__aside { grid-column: 9 / -1; position: sticky; top: 104px; }
.join__title { max-width: 9ch; }
.join .lede { margin-top: clamp(28px, 4vw, 44px); max-width: 21em; }

.steps { counter-reset: step; margin-top: clamp(52px, 6vw, 84px); }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); column-gap: 14px;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.steps li::before {
  content: counter(step); grid-row: 1 / span 2;
  font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--fg3);
}
.steps h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.steps p { margin-top: 6px; color: var(--fg2); max-width: 34em; }

.btn--big { width: 100%; justify-content: space-between; padding: 1.25rem 1.4rem; font-size: 1.0625rem; }
.btn--big::after { content: "\2192"; }
.contact { margin-top: 32px; border-top: 1px solid var(--line); }
.contact div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.contact dt { color: var(--fg3); font-size: 0.9375rem; }
.contact dd { overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .join__main, .join__aside { grid-column: 1 / -1; }
  .join__aside { position: static; }
  .join__title { max-width: none; }
}

/* -------------------------------------------------------------- archive -- */
.archive__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col); row-gap: 48px;
}
.archive__intro { grid-column: 1 / span 5; display: grid; gap: 26px; align-content: start; justify-items: start; }
.archive__list { grid-column: 7 / -1; border-top: 1px solid var(--line); }
.archive__list a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.archive__list a::after { content: "\2192"; grid-column: 2; grid-row: 1 / span 2; color: var(--fg3); transition: transform 0.25s var(--ease), color 0.25s; }
.archive__list a:hover::after { transform: translateX(4px); color: var(--fg); }
.archive__list b { font-weight: 500; }
.archive__list span { color: var(--fg3); font-size: 0.9375rem; }
@media (max-width: 900px) { .archive__intro, .archive__list { grid-column: 1 / -1; } }

/* --------------------------------------------------------------- footer -- */
.foot { background: var(--day-2); padding: clamp(56px, 7vw, 96px) 0 32px; }
.foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px var(--col); }
.foot__logo { width: auto; height: 84px; margin-bottom: 22px; }
.foot__name { font-family: var(--serif); font-size: 1.4rem; line-height: 1.3; letter-spacing: -0.01em; }
.foot__where { margin-top: 14px; color: var(--fg2); font-size: 0.9375rem; line-height: 1.6; }
.foot h2 { font-size: 0.875rem; font-weight: 600; margin-bottom: 12px; }
.foot li { padding: 3px 0; }
.foot li a, .foot li button { font-size: 0.9375rem; color: var(--fg2); text-decoration: none; }
.foot li a:hover, .foot li button:hover { color: var(--fg); text-decoration: underline; }
.coord { font-variant-numeric: tabular-nums; color: var(--fg2); font-size: 0.9375rem; text-align: left; }
.coord:hover { color: var(--fg); text-decoration: underline; }
.foot__base {
  margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px;
  font-size: 0.8125rem; line-height: 1.65; color: var(--fg3);
}
.foot__base p { max-width: 72em; }
@media (max-width: 900px) {
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__about { grid-column: 1 / -1; }
}

/* -------------------------------------------------------------- credits -- */
.credits {
  width: min(720px, calc(100% - 32px)); max-height: min(86svh, 920px);
  padding: 0; border: 0; border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.credits::backdrop { background: rgba(8, 8, 9, 0.64); }
.credits__head {
  position: sticky; top: 0; z-index: 1;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 28px; background: var(--day); border-bottom: 1px solid var(--line);
}
.credits__head button { font-weight: 500; text-decoration: underline; text-underline-offset: 0.2em; }
.credits__body { padding: 20px 28px 32px; }
.credits__stmt { color: var(--fg2); font-size: 0.9375rem; line-height: 1.6; padding-bottom: 12px; }
.credit { padding: 16px 0; border-top: 1px solid var(--line); }
.credit__title { font-family: var(--serif); font-size: 1.2rem; line-height: 1.25; }
.credit p + p { margin-top: 3px; font-size: 0.9375rem; color: var(--fg2); }

/* ------------------------------------------------------ hidden console -- */
.term {
  position: fixed; left: 50%; bottom: 24px; z-index: 80;
  width: min(640px, calc(100% - 24px));
  transform: translate(-50%, 12px); opacity: 0; visibility: hidden;
  transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  background: #0a0a0b; color: #d9d6cf; border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
  font: 13px/1.6 var(--mono);
}
.term.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.term__head { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; color: #8d897f; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.term__head button { color: #8d897f; font: inherit; }
.term__out { max-height: min(44vh, 320px); overflow: auto; padding: 12px 14px; white-space: pre-wrap; word-break: break-word; }
.term__out b { color: var(--lamp); font-weight: 400; }
.term__out i { color: #fff; font-style: normal; }
.term__out .e { color: #e8806a; }
.term__in { display: flex; gap: 10px; padding: 10px 14px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.term__in span { color: var(--lamp); }
.term__in input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font: inherit; color: #fff; }

/* --------------------------------------------------------------- reveal -- */
.rv { opacity: 0; transform: translateY(10px); }
.rv.is-in { opacity: 1; transform: none; transition: opacity 1s ease, transform 1s var(--ease); transition-delay: var(--rv-d, 0ms); }
html[data-motion="reduced"] .rv { opacity: 1; transform: none; }

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