/* Homepage fold — served from /public so Turbopack can't stale-cache it */

/* —— Step 1: full-bleed fold (no top white gap) —— */
.test-fold-scene {
  position: fixed;
  inset: 0;
  z-index: 20;
  width: 100%;
  height: 100svh;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  background: #0a0a0c;
}

/* After seal: fold sits in document flow so page can scroll to next cards */
html.test-fold-sealed .test-fold-scene,
.test-fold-scene.is-sealed {
  position: relative !important;
  inset: auto !important;
  z-index: 10;
  height: auto;
  min-height: 100svh;
  overflow: visible;
  background: #fdfcfc;
}

.test-fold-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  background: #0a0a0c;
}

.test-fold-bg canvas {
  width: 100%;
  height: 100%;
}

.test-fold-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.test-fold-content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

/* Full viewport — including under the transparent nav */
.test-fold-shutter {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 30;
  width: 0;
  background: var(--background);
  pointer-events: none;
  will-change: width;
}

.test-fold-shutter--left {
  left: 0;
}

.test-fold-shutter--right {
  right: 0;
}

/* Second scroll view — white under nav (no dark strip), dark projects below */
.test-fold-second {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  box-sizing: border-box;
  padding: 0;
  overflow: auto;
  background: #fdfcfc;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

html.test-fold-sealed .test-fold-second {
  position: relative;
  inset: auto;
  min-height: 100svh;
  overflow: visible;
  pointer-events: auto;
}

html.test-fold-sealed .test-fold-stage,
html.test-fold-sealed .test-fold-bg,
html.test-fold-sealed .test-fold-shutter {
  display: none !important;
}

/* Title card — white; same top height as Shayla Singh lockup */
.test-fold-recent {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  box-sizing: border-box;
  width: 100%;
  min-height: 100svh;
  padding: calc(4.5rem + 168px) var(--page-padding) 2rem;
  background: #fdfcfc;
  overflow: visible;
}

.test-fold-recent-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  overflow: visible;
}

.test-fold-recent-label {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin: 0;
  color: #161519;
  font-family: ReviewWide, Review, Arial, sans-serif;
  font-weight: 900;
  font-size: min(6.2vw, calc((100vw - 2 * var(--page-padding)) / 15));
  line-height: 80%;
  letter-spacing: -0.03125rem;
  text-transform: uppercase;
  text-align: right;
  overflow: visible;
}

.test-fold-recent-label > span {
  display: block;
  white-space: nowrap;
  will-change: transform;
}

.test-fold-recent-mark {
  display: block;
  align-self: center;
  margin-top: 96px;
  color: #161519;
  font-family: var(--font-switzer), "Switzer", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(4.5rem, 12vw, 9rem);
  line-height: 1;
  will-change: transform;
}

/* White lead — keeps dark cards below the fold during the Recent Work pin */
.test-fold-projects-lead {
  position: relative;
  z-index: 1;
  width: 100%;
  height: min(48vh, 22rem);
  background: #fdfcfc;
  pointer-events: none;
}

/* Block stack (not flex) so sticky projects work and research can cover */
.test-fold-stack {
  position: relative;
  display: block;
  width: 100%;
}

/* Project cards — same horizontal inset as header/footer/research */
.test-fold-projects {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  background: #000000;
  padding: calc(var(--page-padding) * 2) var(--page-padding);
  overflow: visible;
  scroll-margin-top: 5.5rem;
}

.glass-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--page-padding);
  width: 100%;
  max-width: var(--page-max-width);
  margin: 0 auto;
  perspective: 1200px;
}

.glass-project-card {
  position: relative;
  min-width: 0;
  width: 100%;
  height: 100%;
  will-change: transform, opacity, filter;
  transform-origin: center bottom;
}

/* Bottom-edge glow — contained to the hover line width */
.glass-project-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 1.375rem;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
  background: radial-gradient(
    ellipse 90% 100% at 50% 0%,
    rgba(255, 255, 255, 0.32) 0%,
    rgba(255, 255, 255, 0.12) 45%,
    transparent 72%
  );
  transition: opacity 0.3s ease;
  z-index: 0;
}

.glass-project-card:has(.glass-project-card-link:hover)::after,
.glass-project-card:has(.glass-project-card-link:focus-visible)::after {
  opacity: 1;
}

.glass-project-card-link {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 0.375rem 0.375rem 0 0;
  border: 1px solid transparent;
  background: #000000;
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.3s ease,
    background 0.3s ease;
}

.glass-project-card-link:hover,
.glass-project-card-link:focus-visible {
  border-color: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.55);
  background: #000000;
}

.glass-project-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.375rem;
  background: #111;
}

.glass-project-card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition:
    transform 0.5s ease,
    opacity 0.4s ease;
}

.glass-project-card-img--hover {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.glass-project-card-link:hover .glass-project-card-img,
.glass-project-card-link:focus-visible .glass-project-card-img {
  transform: scale(1.1);
}

.glass-project-card-link:hover .glass-project-card-img--hover,
.glass-project-card-link:focus-visible .glass-project-card-img--hover {
  opacity: 1;
}

.glass-project-card-link:has(.glass-project-card-img--hover):hover
  .glass-project-card-img:not(.glass-project-card-img--hover),
.glass-project-card-link:has(.glass-project-card-img--hover):focus-visible
  .glass-project-card-img:not(.glass-project-card-img--hover) {
  opacity: 0;
}

.glass-project-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    transparent 55%
  );
  opacity: 0.6;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.glass-project-card-link:hover .glass-project-card-gradient {
  opacity: 0.35;
}

.glass-project-card-tags {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.glass-project-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 0.25rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: var(--font-switzer), "Switzer", system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.glass-project-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.25rem 1.25rem 0.75rem;
}

.glass-project-card-title {
  margin: 0;
  color: #f5f5f2;
  font-family: var(--font-switzer), "Switzer", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
  text-transform: none;
  transition: color 0.3s ease;
}

.glass-project-card-link:hover .glass-project-card-title {
  color: #ffffff;
}

.glass-project-card-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-switzer), "Switzer", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

@media (max-width: 767px) {
  .glass-project-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.test-hero-wrapper,
.test-hero-lockup {
  /* Visible so letter-swap vertical travel isn't clipped */
  overflow: visible;
}

.test-hero-rule {
  transform-origin: left center;
}

/* Sealed nav: fixed above pin/cards, solid bar, can slide away on scroll */
html.test-fold-sealed header[data-nav-tone] {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Light nav (projects / research — dark surfaces) */
html.test-fold-sealed header[data-nav-tone="light"] {
  background: #000000 !important;
  background-color: #000000 !important;
}

/* Dark nav (Recent Work / About — light surfaces) */
html.test-fold-sealed header[data-nav-tone="default"] {
  background: #fdfcfc !important;
  background-color: #fdfcfc !important;
}

/* Slide nav away / back (avoid Tailwind transform fights with fixed header) */
html.test-fold-sealed header[data-nav-tone] {
  transition: transform 300ms ease-out;
  transform: translateY(0);
}

html.test-fold-sealed header[data-nav-hidden="1"] {
  transform: translateY(-100%);
}

/* After + exits: fold 2 surfaces match project cards (#000) */
html.test-fold-dark.test-fold-sealed,
html.test-fold-dark.test-fold-sealed body,
html.test-fold-dark.test-fold-sealed .test-fold-scene,
html.test-fold-dark .test-fold-scene.is-sealed,
html.test-fold-dark .test-fold-second,
html.test-fold-dark .test-fold-recent,
html.test-fold-dark .test-fold-projects-lead {
  background: #000000 !important;
  background-color: #000000 !important;
}

/* Lock document scroll while the fold wheel-drives the shutters */
html.test-fold-locked,
html.test-fold-locked body {
  overflow: hidden !important;
  height: 100% !important;
  overscroll-behavior: none;
  background: #0a0a0c !important;
}

html.test-fold-locked.test-fold-sealed,
html.test-fold-locked.test-fold-sealed body {
  background: #fdfcfc !important;
}

/* Sealed: restore normal document scroll — white so nav stays clean on Recent Work */
html.test-fold-sealed,
html.test-fold-sealed body {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  background: #fdfcfc !important;
}

/* Freeze homepage behind open project windows */
html.project-window-open,
html.project-window-open body,
html.test-fold-sealed.project-window-open,
html.test-fold-sealed.project-window-open body {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

html.test-fold-sealed footer {
  display: block !important;
}

html.test-fold-locked footer {
  display: none !important;
}

/* Footer visibility — white on black regardless of theme */
footer.site-footer,
footer.site-footer p,
footer.site-footer a,
footer.site-footer span,
footer.site-footer svg {
  color: #ffffff !important;
  fill: currentColor;
}

footer.site-footer {
  background-color: #000000 !important;
  border-top-color: rgba(255, 255, 255, 0.14) !important;
}

/* Natural scroll section — next project pair (flush to first pair) */
.test-fold-next {
  position: relative;
  z-index: 10;
  box-sizing: border-box;
  width: 100%;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
  margin: 0;
  background: var(--background);
}

html.test-fold-sealed .test-fold-next {
  display: flex;
}

.test-fold-next .test-fold-shell {
  transform: none;
}

.test-fold-next .test-fold-card-media {
  clip-path: none;
}

.test-fold-next .test-fold-card-copy {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* Nav overlays the fixed fold; stay transparent, no layout gap */
html.test-fold-locked header[data-nav-tone] {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* First fold content — clear the fixed nav; same side inset as projects/research */
.test-page-fold {
  position: relative;
  z-index: 20;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-padding);
  padding-right: var(--page-padding);
  /* Cap vertical offset so short / landscape viewports keep tagline+body visible */
  padding-top: calc(4.5rem + min(168px, 16vh));
  padding-bottom: clamp(1rem, 3vh, 2rem);
}

/* Same content column as project cards / research archive */
.test-page-fold > .test-hero-wrapper {
  width: 100%;
  max-width: var(--page-max-width);
  margin-left: auto;
  margin-right: auto;
}

/* Keep copy on the right edge of that same column */
.test-page-fold > .test-page-hero-block {
  width: min(40rem, 100%);
  margin-left: auto;
  margin-right: max(0px, calc((100% - var(--page-max-width)) / 2));
}

.test-hero-wrapper {
  pointer-events: none;
  position: relative;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.test-hero-decors {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  width: 100%;
}

.test-hero-decor {
  color: #ffffff !important;
  font-family: Review, Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.test-hero-lockup {
  margin: 0;
  width: 100%;
  max-width: 100%;
  color: #ffffff !important;
  opacity: 0.88;
  font-family: ReviewWide, Review, Arial, sans-serif;
  font-weight: 900;
  font-size: min(6.2vw, calc((100vw - 2 * var(--page-padding)) / 15));
  line-height: 80%;
  letter-spacing: -0.03125rem;
  text-transform: uppercase;
}

.test-hero-line {
  display: flex !important;
  align-items: center;
  width: 100%;
  max-width: 100%;
  color: #ffffff !important;
  white-space: nowrap;
  box-sizing: border-box;
}

.test-hero-line-name {
  justify-content: flex-start;
  gap: 0;
}

.test-hero-line-role {
  justify-content: space-between;
  gap: 0;
  align-items: baseline;
  opacity: 0.9;
}

.test-hero-words {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  /* Usual word spacing between Shayla / Singh */
  gap: 0.28em;
}

.test-hero-line > span:not(.test-hero-rule):not(.test-hero-words),
.test-hero-words > span {
  flex: 0 0 auto;
}

/* Stretched rule after Singh — right edge matches Designer */
.test-hero-rule {
  flex: 1 1 auto;
  align-self: center;
  height: 0.06em;
  min-width: 1.5rem;
  margin-left: 0.28em;
  margin-right: 0;
  background: currentColor;
  opacity: 0.92;
}

.test-page-hero-block {
  position: relative;
  z-index: 30;
  width: min(40rem, 100%);
  margin-top: clamp(1.75rem, 10vh, 128px);
  margin-left: auto;
  margin-right: 0;
  flex-shrink: 0;
  text-align: right !important;
}

.test-page-hero-block,
.test-page-hero-block * {
  text-align: right !important;
}

.test-page-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.test-page-hero-tagline {
  margin: 0;
  color: #ffffff !important;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: normal;
  text-transform: none;
}

.test-page-hero-body {
  margin: 0;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: normal;
  text-transform: none;
  white-space: pre-line;
}

@media (max-width: 767px) {
  .test-hero-lockup {
    font-size: min(7vw, calc((100vw - 2 * var(--page-padding)) / 15.5));
  }

  .test-page-fold {
    padding-top: calc(3.5rem + min(144px, 12vh));
  }

  .test-page-hero-block {
    margin-top: clamp(1.25rem, 6vh, 5rem);
  }

  .test-page-hero-copy {
    gap: clamp(0.75rem, 2vh, 1.25rem);
  }

  .test-fold-recent {
    padding-top: calc(3.5rem + min(144px, 14vh));
  }
}

/* Short / landscape viewports — compress first-fold spacing so hero stays in frame */
@media (max-height: 700px) {
  .test-page-fold {
    padding-top: calc(3.5rem + min(72px, 8vh));
    padding-bottom: 0.75rem;
  }

  .test-page-hero-block {
    margin-top: clamp(0.75rem, 3.5vh, 2.5rem);
  }

  .test-page-hero-copy {
    gap: 0.65rem;
  }

  .test-page-hero-tagline,
  .test-page-hero-body {
    font-size: clamp(0.9375rem, 1.8vw, 1.125rem);
    line-height: 1.25;
  }

  .test-fold-recent {
    padding-top: calc(3.5rem + min(72px, 8vh));
  }

  .test-fold-recent-mark {
    margin-top: clamp(2rem, 8vh, 96px);
  }
}

@media (max-height: 520px) {
  .test-page-fold {
    padding-top: calc(3.25rem + 4vh);
  }

  .test-hero-lockup {
    font-size: min(5.5vw, calc((100vw - 2 * var(--page-padding)) / 16.5));
    line-height: 0.85;
  }

  .test-page-hero-block {
    margin-top: 0.5rem;
  }
}

/* —— Research fold —— */
.test-fold-research {
  position: relative;
  z-index: 5;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  background: #000000;
  color: #f5f5f2;
  padding: calc(var(--page-padding) * 2) var(--page-padding)
    calc(var(--page-padding) * 2);
  isolation: isolate;
  scroll-margin-top: 5.5rem;
}

/* Instant open state used only while measuring reserved hover height */
.test-fold-research.is-measuring,
.test-fold-research.is-measuring * {
  transition: none !important;
}

/* Force closed during measure, even if a row is hovered/focused */
.test-fold-research.is-measuring .research-archive-item.is-open .research-archive-panel {
  grid-template-rows: 0fr;
}

.test-fold-research.is-measuring
  .research-archive-item.is-open
  .research-archive-panel-inner {
  opacity: 0;
  transform: translateY(-6px);
  padding: 0;
}

.test-fold-research.is-measuring
  .research-archive-item.is-measure-open
  .research-archive-panel {
  grid-template-rows: 1fr;
}

.test-fold-research.is-measuring
  .research-archive-item.is-measure-open
  .research-archive-panel-inner {
  opacity: 1;
  transform: none;
  padding: 0 0 2rem;
}

.research-archive {
  width: 100%;
  max-width: var(--page-max-width);
  margin: 0 auto;
  will-change: transform, opacity;
}

.research-archive-lockup {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
  color: #dedede;
  font-family: ReviewWide, Review, Arial, sans-serif;
  font-weight: 900;
  font-size: min(6.2vw, calc((100vw - 2 * var(--page-padding)) / 15));
  line-height: 80%;
  letter-spacing: -0.03125rem;
  text-transform: uppercase;
  text-align: left;
  will-change: transform, opacity;
}

.research-archive-lockup-word {
  flex: 0 0 auto;
}

.research-archive-rule {
  position: relative;
  flex: 1 1 auto;
  align-self: center;
  height: 0.06em;
  min-width: 1.5rem;
  margin-left: 0.28em;
  background: #dedede;
  opacity: 1;
  overflow: hidden;
  transform-origin: left center;
  will-change: transform;
}

.research-archive-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.research-archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  container-type: inline-size;
  container-name: research-col;
}

.research-archive-item {
  border-bottom: 1px solid rgba(245, 245, 242, 0.12);
}

.research-archive-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1.75rem 0;
  cursor: default;
}

.research-archive-card {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.research-archive-card:focus-visible {
  outline: none;
}

.research-archive-card:focus-visible .research-archive-name {
  outline: 2px solid rgba(245, 245, 242, 0.45);
  outline-offset: 4px;
  border-radius: 2px;
}

.research-archive-card .research-archive-row {
  cursor: pointer;
}

.research-archive-index {
  font-family: var(--font-switzer), "Switzer", system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(245, 245, 242, 0.35);
  letter-spacing: 0.04em;
  transition: color 0.25s ease;
}

.research-archive-name {
  margin: 0;
  font-family: var(--font-switzer), "Switzer", system-ui, sans-serif;
  font-size: clamp(1.375rem, 2.8vw, 1.875rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #f5f5f2;
  text-decoration: none;
  transition: color 0.25s ease;
}

.research-archive-external {
  justify-self: end;
  font-family: var(--font-switzer), "Switzer", system-ui, sans-serif;
  font-size: clamp(1.375rem, 2.8vw, 1.875rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #f5f5f2;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.research-archive-item:hover .research-archive-external,
.research-archive-item.is-open .research-archive-external,
.research-archive-card:focus-visible .research-archive-external {
  opacity: 1;
}

.research-archive-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-switzer), "Switzer", system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(245, 245, 242, 0.35);
  white-space: nowrap;
  transition: color 0.25s ease;
}

.research-archive-arrow {
  font-size: 0.9em;
  line-height: 1;
}

.research-archive-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}

.research-archive-panel-inner {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(12.5rem, 20rem) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  min-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.3s ease,
    transform 0.35s ease,
    padding 0.35s ease;
  padding: 0;
}

.research-archive-item.is-open .research-archive-panel {
  grid-template-rows: 1fr;
}

.research-archive-item.is-open .research-archive-panel-inner {
  opacity: 1;
  transform: translateY(0);
  padding: 0 0 2rem;
}

.research-archive-media {
  width: 100%;
  border-radius: 0.35rem;
  overflow: hidden;
  background: #eceae6;
}

.research-archive-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.research-archive-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding-top: 0.15rem;
  max-width: 28rem;
}

.research-archive-tag {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(245, 245, 242, 0.55);
  border-radius: 0.25rem;
  background: transparent;
  color: rgba(245, 245, 242, 0.82);
  font-family: var(--font-switzer), "Switzer", system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.research-archive-desc {
  margin: 0;
  color: rgba(245, 245, 242, 0.72);
  font-family: var(--font-switzer), "Switzer", system-ui, sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

/* When a research column is narrow, stack image → copy instead of squeezing */
@container research-col (max-width: 34rem) {
  .research-archive-panel-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .research-archive-media {
    max-width: none;
  }

  .research-archive-copy {
    max-width: none;
    padding-top: 0;
  }
}

@media (hover: none) {
  .research-archive-item.is-open .research-archive-panel,
  .research-archive-item:focus-within .research-archive-panel {
    grid-template-rows: 1fr;
  }
}

@media (max-width: 767px) {
  .research-archive-lockup {
    font-size: min(7vw, calc((100vw - 2 * var(--page-padding)) / 15.5));
    margin-bottom: 2rem;
  }

  .research-archive-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .research-archive-panel-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .research-archive-media {
    max-width: none;
  }

  .research-archive-copy {
    max-width: none;
  }

  .research-archive-row {
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    gap: 0.75rem;
  }

  .research-archive-name {
    font-size: clamp(1.25rem, 6vw, 1.75rem);
  }
}

/* —— About fold —— */
.test-fold-about {
  position: relative;
  z-index: 6;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  --color: rgba(22, 21, 25, 0.055);
  background-color: #fdfcfc;
  background-image:
    linear-gradient(
      0deg,
      transparent 24%,
      var(--color) 25%,
      var(--color) 26%,
      transparent 27%,
      transparent 74%,
      var(--color) 75%,
      var(--color) 76%,
      transparent 77%,
      transparent
    ),
    linear-gradient(
      90deg,
      transparent 24%,
      var(--color) 25%,
      var(--color) 26%,
      transparent 27%,
      transparent 74%,
      var(--color) 75%,
      var(--color) 76%,
      transparent 77%,
      transparent
    );
  background-size: 55px 55px;
  color: #161519;
  padding: calc(var(--page-padding) * 2.25) var(--page-padding)
    calc(var(--page-padding) * 2.75);
  scroll-margin-top: 5.5rem;
}

.test-fold-about-inner {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--page-max-width);
  margin: 0 auto;
  background: transparent;
  padding: 0;
}

.test-fold-about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.74fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.test-fold-about-name {
  display: block;
  margin: 0;
  padding-top: clamp(0.35rem, 1vw, 0.75rem);
  color: #161519;
  font-family: ReviewWide, Review, Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  letter-spacing: -0.04em;
  line-height: 0.92;
  text-transform: uppercase;
}

.test-fold-about-name > div {
  width: 100%;
}

.test-fold-about-main {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 3.5vw, 2.5rem);
  min-width: 0;
  width: 100%;
  max-width: 100%;
  justify-self: end;
  background: #fdfcfc;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  box-shadow:
    0 1px 2px rgba(22, 21, 25, 0.04),
    0 8px 24px rgba(22, 21, 25, 0.06),
    0 24px 48px rgba(22, 21, 25, 0.05);
}

.test-fold-about-copy {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  width: 66.666%;
  max-width: 66.666%;
}

.test-fold-about-lead {
  margin: 0;
  width: 100%;
  max-width: none;
  color: #161519;
  font-family: var(--font-switzer), "Switzer", system-ui, sans-serif;
  font-size: clamp(1.1875rem, 1.9vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.35;
}

.test-fold-about-principle {
  margin: 0;
  width: 100%;
  max-width: none;
  color: rgba(22, 21, 25, 0.55);
  font-family: var(--font-switzer), "Switzer", system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.test-fold-about-meta-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  column-gap: clamp(1.5rem, 3vw, 2.5rem);
  row-gap: 0.4rem;
  padding-top: clamp(1.35rem, 2.5vw, 1.75rem);
  border-top: 1px solid rgba(22, 21, 25, 0.12);
  align-items: end;
}

.test-fold-about-aside {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  min-width: 0;
  align-items: end;
}

.test-fold-about-aside-label {
  margin: 0 0 0.45rem;
  align-self: start;
  color: rgba(22, 21, 25, 0.4);
  font-family: var(--font-switzer), "Switzer", system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.test-fold-about-degree {
  margin: 0;
  color: #161519;
  font-family: var(--font-switzer), "Switzer", system-ui, sans-serif;
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.test-fold-about-school {
  margin: 0;
  color: rgba(22, 21, 25, 0.55);
  font-family: var(--font-switzer), "Switzer", system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.test-fold-about-contact-list {
  display: contents;
  list-style: none;
  margin: 0;
  padding: 0;
}

.test-fold-about-contact-list > li {
  display: contents;
}

.test-fold-about-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  text-decoration: none;
  color: inherit;
}

.test-fold-about-contact-icon {
  width: 0.9375rem;
  height: 0.9375rem;
  flex-shrink: 0;
  color: rgba(22, 21, 25, 0.7);
  display: block;
}

.test-fold-about-contact-icon--email {
  transform: scale(1.12);
  transform-origin: center;
}

.test-fold-about-contact-text {
  min-width: 0;
  overflow-wrap: anywhere;
  color: rgba(22, 21, 25, 0.55);
  font-family: var(--font-switzer), "Switzer", system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.4;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.test-fold-about-contact-link:hover .test-fold-about-contact-text {
  color: #161519;
  border-bottom-color: #161519;
}

.test-fold-about-contact-link:hover .test-fold-about-contact-icon {
  color: #161519;
}

@media (max-width: 767px) {
  .test-fold-about-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }

  .test-fold-about-name {
    padding-top: 0;
    font-size: clamp(2.25rem, 12vw, 3.25rem);
  }

  .test-fold-about-main {
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .test-fold-about-copy {
    width: 100%;
    max-width: 100%;
  }

  .test-fold-about-meta-row {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    gap: 1.5rem;
  }

  .test-fold-about-aside {
    display: block;
    grid-row: auto;
  }

  .test-fold-about-aside-label {
    margin-bottom: 0.85rem;
  }

  .test-fold-about-degree {
    margin-bottom: 0.4rem;
  }

  .test-fold-about-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
  }

  .test-fold-about-contact-list > li {
    display: list-item;
    list-style: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .test-fold-about-layout {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
  }
}
