:root {
  color-scheme: light;
  --bg: #f6f7f5;
  --paper: #ffffff;
  --ink: #141414;
  --ink-soft: #3d3d3a;
  --muted: #73736c;
  --line: #dfe1de;
  --line-strong: #aeb2ad;
  --accent: #ff4d24;
  --accent-2: #006dff;
  --ok: #0a8f62;
  --grid: rgba(20, 20, 20, 0.038);
  --radius: 6px;
  --max: 1600px;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", SimSun, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-y: auto;
  scrollbar-color: rgba(20, 20, 20, 0.2) transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.2);
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(20, 20, 20, 0.34);
  background-clip: content-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: var(--bg);
  overflow-x: hidden;
}

body::selection {
  color: #fff;
  background: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px);
  background-size: 72px 72px;
}

.page-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(20, 20, 20, 0.045) calc(50% - 1px), rgba(20, 20, 20, 0.045) 50%, transparent 50%),
    linear-gradient(180deg, rgba(247, 247, 244, 0) 0%, var(--bg) 88%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  min-height: 60px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 244, 0.9);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.header-action {
  display: flex;
  align-items: center;
}

.brand {
  gap: 14px;
  padding: 0 20px;
  border-right: 1px solid var(--line);
}

.brand-mark,
.mono-portrait {
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-weight: 900;
}

.brand-mark {
  width: 38px;
  height: 38px;
  font-size: 12px;
}

.brand span:last-child {
  display: grid;
  gap: 3px;
  line-height: 1;
}

.brand strong {
  font-size: 15px;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.site-logo {
  display: block;
  width: 92px;
  height: 36px;
  object-fit: contain;
  filter: invert(1);
}

.site-nav {
  justify-content: flex-end;
  gap: 4px;
  padding: 0 12px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:first-child {
  border-left: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.header-action {
  justify-content: center;
  min-width: 82px;
  border-left: 1px solid var(--line);
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

main,
.site-footer {
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
}

.hero {
  position: relative;
  isolation: isolate;
  padding: 32px 0 0;
}

.hero-kicker,
.metric-rail,
.hero-layout,
.section,
.project-grid,
.capability-grid,
.award-grid,
.identity-grid,
.stack-row,
.footer-actions {
  display: grid;
}

.hero-kicker {
  display: none;
}

.hero-kicker span {
  min-height: 0;
  padding: 0;
  border-right: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-kicker span:last-child {
  border-right: 0;
}

.hero-layout {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: clamp(34px, 5vw, 74px);
  min-height: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.hero-layout::before {
  display: none;
}

.hero-layout > * {
  position: relative;
  z-index: 1;
}

.hero-photo {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 100%;
  height: 410px;
  margin: 0;
  align-self: start;
  overflow: hidden;
  background: #eef0ed;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(0.92) contrast(1.02);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 82%, transparent 100%);
}

.hero-copy {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 10px 0 0;
  border-right: 0;
  border-bottom: 0;
  background: var(--paper);
}

.eyebrow,
.system-label,
.section-index,
.card-meta span,
.experience-head span,
.capability-card span,
.metric-rail span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p,
dl,
dd {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(44px, 4.4vw, 66px);
  line-height: 1;
  letter-spacing: 0;
}

.intent {
  display: block;
  width: fit-content;
  margin-bottom: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 780;
}

.hero-summary {
  max-width: 850px;
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 2px solid var(--accent);
  color: var(--ink-soft);
  font-size: clamp(15px, 1vw, 17px);
  line-height: 1.9;
}

.identity-panel {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(0, 1.28fr);
  grid-template-rows: auto auto;
  gap: 12px 28px;
  padding: 16px 0 0;
  background: var(--paper);
}

.identity-line {
  display: flex;
  align-items: center;
  gap: 16px;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  padding: 0;
  border-bottom: 0;
}

.mono-portrait {
  width: 76px;
  height: 76px;
  background: var(--ink);
  color: #fff;
  font-size: 22px;
}

.identity-line div:last-child {
  display: grid;
  gap: 8px;
}

.identity-line strong {
  font-size: 18px;
}

.identity-grid {
  grid-column: 2;
  grid-row: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 0;
  border-left: 1px solid var(--line);
  align-self: start;
  align-content: start;
  grid-auto-rows: minmax(70px, auto);
}

.identity-grid div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  min-height: 70px;
  grid-template-columns: 64px minmax(0, 1fr);
  padding: 10px 12px 10px 18px;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

.identity-grid div:last-child {
  min-height: 70px;
  border-bottom: 0;
}

.identity-grid div:nth-child(even) {
  border-left: 1px solid var(--line);
}

.agent-console {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 0 0 150px;
  padding: 8px 12px 8px 0;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.console-head span {
  display: block;
  max-width: 92px;
  line-height: 1.1;
  color: var(--accent);
  font-size: 10px;
  font-weight: 950;
}

.console-head strong {
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
}

.console-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  flex: 1 1 auto;
  gap: 4px 8px;
  padding: 0;
}

.console-flow span {
  position: relative;
  min-height: 0;
  padding: 0 0 0 12px;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  font-size: 10px;
  white-space: nowrap;
  font-weight: 880;
}

.console-flow span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  background: var(--accent);
  transform: translateY(-50%);
}

.console-flow span:last-child {
  grid-column: auto;
}

.console-metrics {
  display: flex;
  flex: 0 0 210px;
  border-top: 0;
  border-left: 1px solid var(--line);
}

.console-metrics div {
  display: grid;
  align-content: center;
  padding: 6px 10px;
  border-right: 1px solid var(--line);
}

.console-metrics div:last-child {
  border-right: 0;
}

.console-metrics strong,
.console-metrics span {
  display: block;
}

.console-metrics strong {
  margin-bottom: 2px;
  font-size: 16px;
}

.console-metrics span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.identity-grid dt {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.identity-grid dd {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 820;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.metric-rail {
  grid-template-columns: repeat(4, 1fr);
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.metric-rail article {
  min-height: 124px;
  padding: 20px 24px;
  border-right: 1px solid var(--line);
}

.metric-rail article:last-child {
  border-right: 0;
}

.metric-rail strong {
  display: block;
  margin: 16px 0 9px;
  color: var(--ink);
  font-size: clamp(30px, 3vw, 48px);
  line-height: 0.9;
  letter-spacing: 0;
}

.metric-rail p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}

/* Keep the desktop opening composition on one shared vertical rhythm. */
@media (min-width: 1061px) {
  :root {
    --hero-height: clamp(450px, calc(100svh - 230px), 560px);
  }

  .hero-layout {
    grid-template-columns: minmax(360px, 0.64fr) minmax(0, 1.36fr);
    column-gap: 0;
    min-height: var(--hero-height);
    border: 1px solid var(--line);
    border-bottom: 0;
  }

  .hero-photo {
    height: var(--hero-height);
    border-right: 1px solid var(--line);
  }

  .hero-copy {
    padding: 24px clamp(34px, 4vw, 64px) 0;
  }

  h1 {
    margin-bottom: 14px;
    font-size: clamp(50px, 3.8vw, 62px);
  }

  .intent {
    font-size: clamp(18px, 1.35vw, 21px);
  }

  .hero-summary {
    margin-top: 18px;
    padding-top: 14px;
    font-size: clamp(14px, 0.95vw, 16px);
    line-height: 1.65;
  }

  .identity-panel {
    grid-template-columns: 184px minmax(0, 1fr);
    grid-template-rows: minmax(108px, auto) auto;
    gap: 0 26px;
    padding: 14px clamp(34px, 4vw, 64px) 0;
  }

  .identity-line {
    align-self: stretch;
    gap: 12px;
    padding: 0 14px 0 0;
    border-right: 1px solid var(--line);
  }

  .mono-portrait {
    width: 68px;
    height: 68px;
    font-size: 20px;
  }

  .identity-line strong {
    font-size: 15px;
    white-space: nowrap;
  }

  .identity-grid {
    border-top: 1px solid var(--line);
  }

  .identity-grid div {
    grid-template-columns: 54px minmax(0, 1fr);
    min-height: 52px;
    padding: 7px 0 7px 16px;
  }

  .identity-grid div:nth-child(even) {
    padding-left: 16px;
  }

  .identity-grid div:last-child {
    min-height: 52px;
  }

  .identity-grid dd {
    font-size: 11.5px;
  }

  .identity-grid dd a {
    white-space: nowrap;
  }

  .agent-console {
    grid-template-columns: 146px minmax(0, 1fr) 206px;
    gap: 0;
    min-height: 84px;
    margin-top: 14px;
    border: 1px solid var(--line);
    border-right: 0;
    border-left: 0;
  }

  .console-head {
    flex: 0 0 auto;
    gap: 8px;
    padding: 10px 18px 10px 0;
  }

  .console-head span {
    max-width: 112px;
  }

  .console-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: center;
    gap: 6px 14px;
    padding: 10px 18px;
  }

  .console-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    flex: initial;
  }

  .console-metrics div {
    padding: 8px 10px;
  }

  .metric-rail {
    min-height: 118px;
  }

  .metric-rail article {
    min-height: 118px;
    padding: 14px 24px;
  }

  .metric-rail strong {
    margin: 10px 0 5px;
    font-size: clamp(30px, 3vw, 40px);
  }
}

.section {
  grid-template-columns: 190px minmax(0, 1fr);
  margin-top: 84px;
  border-top: 1px solid var(--line-strong);
}

.section-index {
  position: sticky;
  top: 84px;
  align-self: start;
  padding-top: 22px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
}

.section-body {
  border-left: 1px solid var(--line);
  padding: 22px 0 0 32px;
}

.section-heading {
  position: relative;
  margin-bottom: 26px;
  padding-left: 16px;
}

.section-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 4px;
  width: 3px;
  background: var(--accent);
}

.section-heading h2,
.project-top h2 {
  margin: 10px 0 0;
  font-size: clamp(30px, 3vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.line-card,
.capability-card,
.experience-card,
.project-shell,
.award-grid span,
.evidence-matrix {
  border: 1px solid var(--line);
  background: var(--paper);
}

.line-card {
  display: grid;
  grid-template-columns: 250px 1fr;
}

.card-meta {
  padding: 20px;
  border-right: 1px solid var(--line);
}

.card-meta strong {
  display: block;
  margin-top: 20px;
  font-size: 20px;
  line-height: 1.35;
}

.card-content {
  padding: 20px 24px;
}

.card-content h3,
.capability-card h3,
.project-grid h3 {
  margin-bottom: 14px;
  font-size: 22px;
}

.card-content p,
.capability-card p,
.experience-body p,
.project-top p,
.project-grid p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.capability-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.capability-card {
  min-height: 224px;
  padding: 24px;
}

.capability-card span {
  display: block;
  margin-bottom: 26px;
  color: var(--accent-2);
}

.timeline {
  display: grid;
  gap: 16px;
}

.experience-card {
  display: block;
}

.experience-head {
  display: grid;
  grid-template-columns: minmax(420px, 1.35fr) 190px minmax(220px, 0.85fr);
  align-items: center;
  gap: 28px;
  min-height: 124px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(20, 20, 20, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(20, 20, 20, 0.045) 1px, transparent 1px),
    #fbfbf7;
  background-size: 22px 22px;
  color: var(--ink);
}

.experience-head h3 {
  margin: 0 0 5px;
  font-size: 24px;
  line-height: 1.25;
}

.experience-brandline {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.experience-brandline.text-only {
  grid-template-columns: 1fr;
}

.experience-brandline img {
  width: 132px;
  height: 84px;
  padding: 9px;
  border: 1px solid var(--line);
  background: #fff;
  object-fit: contain;
}

.experience-brandline img.logo-heykool {
  padding: 0;
  object-fit: cover;
  object-position: 50% 54%;
}

.experience-brandline strong {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 860;
  line-height: 1.35;
  text-transform: uppercase;
}

.experience-brandline em {
  display: inline-block;
  width: fit-content;
  margin-top: 4px;
  padding: 3px 0 3px 10px;
  border: 0;
  border-left: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.45;
}

.experience-brandline em span {
  display: block;
}

.experience-head > span {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  width: 100%;
  padding: 0 18px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  border-left: 0;
  border-right: 0;
  background: transparent;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.experience-head p {
  justify-self: end;
  margin-bottom: 0;
  max-width: 280px;
  padding: 4px 0 4px 20px;
  border: 0;
  border-left: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
  text-align: right;
}

.experience-body {
  padding: 26px 28px;
}

.project-name {
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 780;
  line-height: 1.75;
}

.detail-block {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 28px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.detail-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.detail-block h4 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.compact .experience-body {
  display: flex;
  align-items: center;
}

.evidence-matrix {
  margin-top: 24px;
  overflow: hidden;
}

.evidence-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.evidence-shot {
  position: relative;
  margin: 0;
  min-width: 0;
  border-right: 1px solid var(--line);
  background: #0d0d0d;
}

.evidence-shot:last-child,
.evidence-shot.wide {
  border-right: 0;
}

.evidence-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.8;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
  transition: filter 180ms ease;
}

.evidence-shot.wide img {
  aspect-ratio: 16 / 5.8;
  object-fit: cover;
  object-position: center top;
}

.evidence-shot:hover img {
  filter: saturate(1) contrast(1.03);
}

.evidence-shot figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11px;
  font-weight: 860;
  line-height: 1.35;
  text-transform: uppercase;
}

.project-shell {
  background:
    linear-gradient(90deg, rgba(20, 20, 20, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(20, 20, 20, 0.05) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
}

.project-top {
  padding: clamp(26px, 4vw, 46px);
  border-bottom: 1px solid var(--line);
}

.project-top h2 {
  max-width: 980px;
  margin-bottom: 22px;
}

.project-top p {
  max-width: 980px;
  font-size: 16px;
  line-height: 1.8;
}

.stack-row {
  grid-template-columns: repeat(9, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.stack-row span {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 9px;
  border-right: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.stack-row span:last-child {
  border-right: 0;
}

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-grid article {
  min-height: 270px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 251, 0.78);
}

.project-grid article:nth-child(even) {
  border-right: 0;
}

.project-grid article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.award-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.award-grid span {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 16px;
  color: var(--ink-soft);
  font-weight: 820;
  line-height: 1.45;
}

.site-footer {
  display: grid;
  gap: 18px;
  margin-top: 90px;
  padding: 28px 0 46px;
  border-top: 1px solid var(--line-strong);
}

.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-main > div:first-child {
  display: grid;
  gap: 6px;
}

.site-footer span {
  color: var(--muted);
}

.footer-actions {
  grid-auto-flow: column;
  gap: 10px;
}

.footer-actions a {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.icp-link {
  width: fit-content;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.icp-link:hover {
  color: var(--accent);
}

.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero-layout,
  .section,
  .experience-card,
  .line-card {
    grid-template-columns: 1fr;
  }

  .hero-kicker {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    row-gap: 0;
  }

  .hero-photo {
    grid-column: 1;
    grid-row: 1;
    width: min(100%, 340px);
    height: 360px;
    margin-bottom: 26px;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 2;
    padding: 0 0 24px;
  }

  .identity-panel {
    grid-column: 1;
    grid-row: 3;
  }

  .agent-console {
    grid-template-columns: 1fr;
  }

  .console-head {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .console-metrics {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .experience-head {
    grid-template-columns: 1fr;
  }

  .experience-head p {
    text-align: left;
    border-left: 0;
    padding-left: 0;
  }

  .hero-copy,
  .experience-head,
  .card-meta {
    border-right: 0;
  }

  .section-index {
    position: static;
    padding-bottom: 16px;
  }

  .section-body {
    border-left: 0;
    padding-left: 0;
  }

  .detail-block {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stack-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .stack-row span:nth-child(3n) {
    border-right: 0;
  }
}

@media (max-width: 720px) {
  .hero-layout,
  .hero-layout > *,
  .hero-copy,
  .identity-panel,
  .identity-grid,
  .agent-console,
  .console-flow,
  .metric-rail {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  main,
  .site-footer {
    width: min(100% - 24px, var(--max));
  }

  .site-header {
    min-height: 58px;
  }

  .brand {
    padding: 0 12px;
  }

  .brand span:last-child {
    display: none;
  }

  .header-action {
    min-width: 58px;
  }

  .hero {
    padding-top: 18px;
  }

  .hero-kicker,
  .metric-rail,
  .capability-grid,
  .project-grid,
  .award-grid {
    grid-template-columns: 1fr;
  }

  .hero-kicker span,
  .metric-rail article,
  .project-grid article {
    border-right: 0;
  }

  .hero-copy {
    padding: 24px;
  }

  .hero-photo {
    width: 100%;
    height: min(108vw, 390px);
    margin-bottom: 24px;
  }

  .identity-panel {
    grid-template-columns: 1fr;
    padding: 22px 0 24px;
  }

  .identity-line {
    grid-column: 1;
    grid-row: 1;
  }

  .agent-console {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
  }

  .identity-grid {
    grid-column: 1;
    grid-row: 3;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .identity-grid div:nth-child(even) {
    border-left: 0;
  }

  h1 {
    font-size: clamp(44px, 16vw, 68px);
  }

  .hero-summary,
  .project-top p {
    font-size: 16px;
  }

  .identity-grid dd {
    font-size: 13px;
  }

  .identity-grid,
  .console-flow {
    grid-template-columns: 1fr;
  }

  .identity-grid div,
  .identity-grid div:nth-child(even),
  .identity-grid div:last-child {
    grid-column: auto;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .identity-grid div:last-child {
    border-bottom: 0;
  }

  .agent-console {
    margin: 0;
  }

  .console-flow span:last-child {
    grid-column: auto;
  }

  .metric-rail article {
    min-height: 132px;
  }

  .section {
    margin-top: 56px;
  }

  .capability-card {
    min-height: auto;
  }

  .capability-card span {
    margin-bottom: 28px;
  }

  .experience-body,
  .experience-head,
  .project-grid article,
  .card-content,
  .card-meta {
    padding: 20px;
  }

  .evidence-duo {
    grid-template-columns: 1fr;
  }

  .evidence-shot,
  .evidence-shot.wide {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .evidence-shot:last-child {
    border-bottom: 0;
  }

  .evidence-shot img,
  .evidence-shot.wide img {
    aspect-ratio: 16 / 10;
  }

  .project-grid article:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .project-grid article:last-child {
    border-bottom: 0;
  }

  .stack-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .stack-row span,
  .stack-row span:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .stack-row span:nth-child(even) {
    border-right: 0;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* The opening page owns the first viewport; later sections take over on scroll. */
html {
  scroll-padding-top: 60px;
  scroll-snap-type: y proximity;
}

body {
  background: #f5f6f3;
}

.page-grid {
  display: none;
}

main,
.site-footer {
  width: min(1440px, calc(100% - 96px));
}

.hero {
  min-height: calc(100svh - 60px);
  padding: clamp(28px, 5vh, 64px) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(24px, 3.5vh, 40px);
  background: transparent;
  scroll-snap-align: start;
  overflow: visible;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  background-image:
    radial-gradient(circle, rgba(0, 0, 0, 0.28) 7px, transparent 7.8px);
  background-size: 84px 84px;
  background-position: 0 0;
  opacity: 1;
  mask-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, #000 22%, #000 84%, rgba(0, 0, 0, 0.45) 100%),
    radial-gradient(ellipse at 50% 48%, rgba(0, 0, 0, 0.18) 0%, #000 66%);
  -webkit-mask-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, #000 22%, #000 84%, rgba(0, 0, 0, 0.45) 100%),
    radial-gradient(ellipse at 50% 48%, rgba(0, 0, 0, 0.18) 0%, #000 66%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
  animation: hero-dot-slide 12s linear infinite;
}

.hero::after {
  background-image:
    radial-gradient(circle, rgba(255, 77, 36, 0.72) 7px, transparent 7.8px);
  background-size: 84px 84px;
  background-position: 0 0;
  opacity: var(--hero-pointer-opacity, 0);
  mask-image:
    radial-gradient(circle at var(--hero-pointer-x, 50%) var(--hero-pointer-y, 50%), #000 0 118px, rgba(0, 0, 0, 0.65) 146px, transparent 210px),
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, #000 22%, #000 84%, rgba(0, 0, 0, 0.45) 100%);
  -webkit-mask-image:
    radial-gradient(circle at var(--hero-pointer-x, 50%) var(--hero-pointer-y, 50%), #000 0 118px, rgba(0, 0, 0, 0.65) 146px, transparent 210px),
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, #000 22%, #000 84%, rgba(0, 0, 0, 0.45) 100%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
  transition: opacity 160ms ease;
  animation: hero-dot-slide 12s linear infinite;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-layout {
  grid-template-columns: minmax(340px, 0.68fr) minmax(0, 1.32fr);
  grid-template-rows: 1fr auto;
  column-gap: clamp(36px, 5vw, 72px);
  min-height: 0;
  border: 0;
  overflow: visible;
  background: var(--paper);
}

.hero-layout::before {
  display: none;
}

.hero-photo {
  grid-row: 1 / 3;
  height: min(62svh, 620px);
  border: 0;
  background: #eef0ed;
}

.hero-photo img {
  object-position: center 24%;
  filter: none;
  -webkit-mask-image: none;
  mask-image: none;
}

.hero-copy {
  align-self: center;
  padding: 0;
  border: 0;
  background: transparent;
}

.hero-copy .eyebrow {
  margin-bottom: 18px;
}

.hero-copy h1 {
  margin-bottom: 12px;
  font-size: clamp(50px, 4vw, 68px);
}

.intent {
  font-size: clamp(18px, 1.4vw, 22px);
}

.hero-summary {
  max-width: 820px;
  margin: 30px 0 0;
  padding: 18px 0 0;
  border-top: 4px solid var(--accent);
  font-size: clamp(14px, 0.95vw, 16px);
  line-height: 1.85;
}

.identity-panel {
  grid-column: 2;
  grid-row: 2;
  display: block;
  position: relative;
  top: -28px;
  padding: 28px 0 0;
  border-top: 0;
  background: transparent;
}

.identity-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border: 0;
}

.identity-grid div,
.identity-grid div:last-child {
  grid-template-columns: 76px minmax(0, 1fr);
  min-height: 52px;
  padding: 14px 22px 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.identity-grid div:nth-child(even) {
  padding-left: 22px;
  padding-right: 0;
  border-left: 0;
}

.identity-grid div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.identity-grid dt {
  color: var(--muted);
  font-size: 10px;
}

.identity-grid dd {
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: normal;
}

.identity-grid dd a {
  white-space: nowrap;
}

.identity-grid .email-list {
  display: grid;
  gap: 3px;
  line-height: 1.35;
}

.metric-rail {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 0;
  box-shadow: none;
  background: var(--paper);
}

.metric-rail article {
  min-height: 118px;
  padding: 22px 24px;
  border-right: 0;
}

.metric-rail article:last-child {
  border-right: 0;
}

.metric-rail span {
  color: var(--muted);
  font-size: 11px;
}

.metric-rail strong {
  margin: 14px 0 6px;
  font-size: clamp(30px, 3vw, 42px);
}

.metric-rail p {
  font-size: 13px;
  line-height: 1.45;
}

.section {
  position: relative;
  margin-top: 38px;
  scroll-snap-align: start;
  background: var(--bg);
}

.section + .section::before {
  content: "";
  position: absolute;
  top: -38px;
  left: 190px;
  width: 1px;
  height: 38px;
  background: var(--line);
  pointer-events: none;
}

@media (max-width: 1060px) and (min-width: 721px) {
  main,
  .site-footer {
    width: min(100% - 64px, var(--max));
  }

  .hero {
    min-height: calc(100svh - 60px);
  }

  .hero-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 0;
  }

  .hero-photo {
    grid-column: 1;
    grid-row: 1;
    width: min(100%, 440px);
    height: min(58svh, 500px);
    margin: 0 auto 30px;
  }

  .hero-copy,
  .identity-panel {
    grid-column: 1;
  }

  .hero-copy {
    grid-row: 2;
    padding: 0 8%;
  }

  .identity-panel {
    grid-row: 3;
    top: 0;
    padding: 30px 8% 0;
  }
}

@media (max-width: 1060px) {
  .section + .section::before {
    display: none;
  }
}

@media (min-width: 721px) {
  .site-header {
    grid-template-columns: 1fr auto 1fr;
  }

  .brand {
    justify-self: start;
    padding: 0 22px;
    border-right: 0;
  }

  .site-logo {
    display: block;
    width: 92px;
    height: 36px;
    object-fit: contain;
    filter: invert(1);
  }

  .site-nav {
    grid-column: 2;
    justify-content: center;
    padding: 0 12px;
  }

  .site-nav a,
  .site-nav a:hover,
  .site-nav a.active {
    border-color: transparent;
    background: transparent;
    font-weight: 400;
  }

  .header-action {
    justify-self: end;
  }

  .identity-grid {
    position: static;
  }

  .identity-grid div,
  .identity-grid div:nth-child(even),
  .identity-grid div:nth-last-child(-n + 2) {
    position: relative;
    z-index: 1;
    border: 0;
  }
}

@media (min-width: 721px) {
  main,
  .site-footer {
    width: min(1296px, calc(100% - 96px));
  }

  .hero-photo {
    height: min(56svh, 558px);
    overflow: hidden;
  }

  .hero-photo img {
    height: 110%;
    object-position: center top;
  }

  .hero-copy h1 {
    font-size: clamp(43px, 3.35vw, 56px);
  }

  .intent {
    font-size: clamp(17px, 1.25vw, 20px);
  }

  .hero-copy h1,
  .hero-copy .intent {
    word-spacing: 0;
    white-space: nowrap;
  }

  .hero-copy h1 span,
  .hero-copy .intent span {
    display: inline-block;
  }

  .hero-copy h1 span:not(:last-child),
  .hero-copy .intent span:not(:last-child) {
    margin-right: 1.5px;
  }

  .hero-copy,
  .identity-panel {
    padding-right: clamp(24px, 3vw, 48px);
  }

  .hero-summary {
    font-size: clamp(13px, 0.85vw, 14.5px);
  }

  .identity-grid dd {
    font-size: 12px;
  }

  .metric-rail article {
    min-height: 106px;
    padding: 20px 22px;
  }

  .metric-rail strong {
    margin: 12px 0 5px;
    font-size: clamp(28px, 2.7vw, 38px);
  }
}

@media (max-width: 720px) {
  html {
    scroll-snap-type: none;
  }

  main,
  .site-footer {
    width: calc(100% - 32px);
  }

  .hero {
    min-height: calc(100svh - 58px);
    padding: 16px 0 32px;
    justify-content: flex-start;
    gap: 24px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 0;
  }

  .hero-photo {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: min(108vw, 390px);
    margin: 0;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 2;
    padding: 28px 20px 0;
  }

  .hero-copy .eyebrow {
    margin-bottom: 14px;
  }

  .hero-copy h1 {
    font-size: clamp(46px, 14vw, 58px);
  }

  .hero-summary {
    margin-top: 22px;
    padding-top: 16px;
    font-size: 15px;
    line-height: 1.8;
  }

  .identity-panel {
    grid-column: 1;
    grid-row: 3;
    top: 0;
    padding: 24px 20px 0;
  }

  .identity-grid {
    grid-template-columns: 1fr;
  }

  .identity-grid div,
  .identity-grid div:last-child,
  .identity-grid div:nth-child(even) {
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: 52px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }

  .identity-grid div:last-child {
    border-bottom: 0;
  }

  .metric-rail {
    grid-template-columns: 1fr;
  }

  .metric-rail article,
  .metric-rail article:last-child {
    min-height: 112px;
    padding: 18px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-rail article:last-child {
    border-bottom: 0;
  }
}

@keyframes hero-dot-slide {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 84px 84px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after {
    animation: none !important;
  }
}

.intro-cover {
  position: relative;
  height: 225svh;
  min-height: 1320px;
  background: #10100f;
  scroll-snap-align: start;
  z-index: 30;
}

.intro-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  color: #f7f6f1;
  background: #10100f;
  perspective: 1400px;
}

.intro-sticky::before,
.intro-sticky::after,
.intro-next-preview {
  content: "";
  position: absolute;
  pointer-events: none;
}

.intro-sticky::before {
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: var(--intro-grid-opacity, 0.12);
  transform: translateY(var(--intro-grid-shift, 0));
}

.intro-sticky::after {
  inset: 0;
  z-index: 4;
  background:
    linear-gradient(90deg, rgba(16, 16, 15, 0.88) 0%, rgba(16, 16, 15, 0.56) 35%, rgba(16, 16, 15, 0.08) 70%),
    linear-gradient(180deg, rgba(16, 16, 15, 0.36) 0%, rgba(16, 16, 15, 0.04) 52%, rgba(16, 16, 15, 0.76) 100%);
  opacity: var(--intro-shade-opacity, 1);
}

.intro-image,
.intro-panels {
  position: absolute;
  inset: 0;
}

.intro-image {
  z-index: 1;
  opacity: var(--intro-base-opacity, 0.34);
  filter: grayscale(1) contrast(1.04) brightness(0.74);
  transform: scale(var(--intro-base-scale, 1.04)) translate3d(var(--intro-base-x, 0), 0, 0);
  transform-origin: 70% 50%;
}

.intro-image img,
.intro-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-image img {
  object-position: 78% 42%;
}

.intro-panels {
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  transform-style: preserve-3d;
  pointer-events: none;
}

.intro-panel {
  position: relative;
  min-width: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  background: #151514;
  opacity: var(--intro-panel-opacity, 0);
  transform: translate3d(var(--intro-panel-x, 0), var(--intro-panel-y, 0), 0) rotateY(var(--intro-panel-rotate, 0deg)) scale(var(--intro-panel-scale, 1));
  transform-origin: center;
  transition: filter 120ms ease;
}

.intro-panel:first-child {
  border-left: 0;
}

.intro-panel img {
  filter: grayscale(1) contrast(1.06) brightness(0.84);
  object-position: center 38%;
}

.intro-panel:nth-child(1) img {
  object-position: 54% 42%;
}

.intro-panel:nth-child(2) img {
  object-position: 56% 35%;
}

.intro-panel:nth-child(3) img {
  object-position: 52% 36%;
}

.intro-panel:nth-child(4) img {
  object-position: 58% 38%;
}

.intro-quote {
  position: absolute;
  left: clamp(26px, 7vw, 132px);
  top: 50%;
  z-index: 6;
  display: grid;
  gap: clamp(10px, 1.6vh, 18px);
  width: min(680px, calc(100% - 52px));
  margin: 0;
  color: #f8f7f2;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: clamp(32px, 4.6vw, 78px);
  font-weight: 560;
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
  transform: translateY(calc(-50% + var(--intro-quote-y, 0px)));
  opacity: var(--intro-quote-opacity, 1);
}

.intro-quote span {
  display: block;
  transform: translate3d(var(--intro-line-x, 0), var(--intro-line-y, 0), 0);
  opacity: var(--intro-line-opacity, 1);
}

.intro-quote span:nth-child(2) {
  color: #f8f7f2;
}

.intro-next-preview {
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  height: clamp(42px, 8vh, 82px);
  border-top: 1px solid rgba(223, 225, 222, 0.64);
  background:
    linear-gradient(90deg, rgba(20, 20, 20, 0.075) 1px, transparent 1px),
    linear-gradient(rgba(20, 20, 20, 0.075) 1px, transparent 1px),
    #f6f7f5;
  background-size: 48px 48px;
  opacity: var(--intro-preview-opacity, 0.08);
  transform: translateY(var(--intro-preview-y, 62%));
}

@media (max-width: 900px) {
  .intro-cover {
    height: 205svh;
    min-height: 1120px;
  }

  .intro-sticky {
    min-height: 560px;
  }

  .intro-sticky::after {
    background:
      linear-gradient(180deg, rgba(16, 16, 15, 0.68) 0%, rgba(16, 16, 15, 0.22) 44%, rgba(16, 16, 15, 0.82) 100%),
      linear-gradient(90deg, rgba(16, 16, 15, 0.58) 0%, rgba(16, 16, 15, 0.06) 100%);
  }

  .intro-image img {
    object-position: 62% 42%;
  }

  .intro-panels {
    grid-template-columns: repeat(2, 1fr);
  }

  .intro-panel:nth-child(n + 3) {
    display: none;
  }

  .intro-quote {
    left: 22px;
    right: 22px;
    top: auto;
    bottom: clamp(86px, 14vh, 132px);
    width: auto;
    font-size: clamp(38px, 12vw, 68px);
    transform: translateY(var(--intro-quote-y, 0px));
  }
}

@media (max-width: 520px) {
  .intro-sticky {
    min-height: 540px;
  }

  .intro-quote {
    left: 18px;
    right: 18px;
    gap: 11px;
    width: calc(100% - 36px);
    font-size: clamp(29px, 9.2vw, 38px);
    line-height: 1.05;
  }

  .intro-next-preview {
    height: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-cover {
    height: 100svh;
    min-height: 620px;
  }

  .intro-panel {
    transform: none !important;
  }
}

body.has-opening {
  overflow: hidden;
}

body.has-opening main,
body.has-opening .site-footer {
  opacity: 0.18;
  transform: translateY(-8px);
  transition: opacity 520ms ease, transform 520ms ease;
}

body.opening-active main,
body.opening-active .site-footer,
body.opening-done main,
body.opening-done .site-footer {
  opacity: 1;
  transform: none;
}

.site-header {
  z-index: 80;
}

.opening-cover {
  position: fixed;
  inset: 60px 0 0;
  z-index: 50;
  display: grid;
  background: var(--bg);
  transition: opacity 260ms ease 760ms, visibility 0s linear 1020ms;
}

body.opening-done .opening-cover {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.opening-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.54fr) minmax(360px, 0.46fr);
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  perspective: 1500px;
}

.opening-stage::before,
.opening-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.opening-stage::before {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, #10100f 0 54%, #ecece7 54% 100%);
  background-size: 64px 64px, 64px 64px, auto;
}

.opening-stage::after {
  z-index: 4;
  background: linear-gradient(180deg, transparent 0%, rgba(16, 16, 15, 0.08) 76%, rgba(16, 16, 15, 0.22) 100%);
  opacity: 1;
  transition: opacity 420ms ease;
}

body.opening-active .opening-stage::after {
  opacity: 0;
}

.opening-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-self: center;
  gap: clamp(10px, 1.45vh, 16px);
  width: 100%;
  min-width: 0;
  max-width: 700px;
  margin-left: clamp(32px, 7vw, 132px);
  padding-right: clamp(28px, 5vw, 84px);
  color: #f8f7f2;
  font-size: clamp(34px, 4.8vw, 82px);
  font-weight: 560;
  line-height: 1.02;
  letter-spacing: 0;
  transition: opacity 360ms ease, transform 520ms ease;
}

.opening-copy span {
  display: block;
  min-width: 0;
  white-space: normal;
}

.opening-portrait {
  position: relative;
  z-index: 2;
  display: block;
  align-self: center;
  justify-self: center;
  width: min(70%, 460px);
  height: min(72svh, 690px);
  overflow: hidden;
  border: 1px solid rgba(20, 20, 20, 0.16);
  background: #d7d8d4;
  box-shadow: 0 24px 70px rgba(16, 16, 15, 0.18);
  transition: opacity 360ms ease, transform 560ms ease;
}

.opening-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  filter: grayscale(1) contrast(1.04) brightness(0.96);
}

body.opening-active .opening-copy {
  opacity: 0;
  transform: translateY(-14px);
}

body.opening-active .opening-portrait {
  opacity: 0;
  transform: translateX(18px) scale(0.985);
}

.opening-slats {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  pointer-events: none;
  transform-style: preserve-3d;
}

body.opening-active .opening-slats {
  z-index: 5;
}

.opening-slat {
  position: relative;
  min-width: 0;
  overflow: hidden;
  transform-origin: left center;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  transition: transform 860ms cubic-bezier(0.76, 0, 0.24, 1), opacity 180ms ease 720ms;
}

.opening-slat > span,
.opening-slat::after {
  position: absolute;
  inset: 0;
  display: block;
  backface-visibility: hidden;
}

.opening-slat > span {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.052) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.052) 1px, transparent 1px),
    linear-gradient(90deg, #10100f 0 54%, #ecece7 54% 100%);
  background-size: 64px 64px, 64px 64px, 600% 100%;
}

.opening-slat::after {
  content: "";
  background:
    linear-gradient(90deg, rgba(246, 247, 245, 0.96), rgba(246, 247, 245, 0.88)),
    url("./assets/portraits/portrait-close.jpg");
  background-size: cover;
  background-position: center 28%;
  transform: rotateY(180deg);
}

.opening-slat:nth-child(1) > span {
  background-position: 0 0, 0 0, 0 0;
}

.opening-slat:nth-child(2) > span {
  background-position: 0 0, 0 0, 20% 0;
}

.opening-slat:nth-child(3) > span {
  background-position: 0 0, 0 0, 40% 0;
}

.opening-slat:nth-child(4) > span {
  background-position: 0 0, 0 0, 60% 0;
}

.opening-slat:nth-child(5) > span {
  background-position: 0 0, 0 0, 80% 0;
}

.opening-slat:nth-child(6) > span {
  background-position: 0 0, 0 0, 100% 0;
}

body.opening-active .opening-slat {
  transform: rotateY(-96deg);
  opacity: 0;
}

.opening-slat:nth-child(1) {
  transition-delay: 0ms, 720ms;
}

.opening-slat:nth-child(2) {
  transition-delay: 55ms, 775ms;
}

.opening-slat:nth-child(3) {
  transition-delay: 110ms, 830ms;
}

.opening-slat:nth-child(4) {
  transition-delay: 165ms, 885ms;
}

.opening-slat:nth-child(5) {
  transition-delay: 220ms, 940ms;
}

.opening-slat:nth-child(6) {
  transition-delay: 275ms, 995ms;
}

@media (max-width: 920px) {
  .opening-stage {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 0.46fr) minmax(280px, 0.54fr);
  }

  .opening-stage::before,
  .opening-slat > span {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
      linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
      linear-gradient(180deg, #10100f 0 48%, #ecece7 48% 100%);
    background-size: 48px 48px, 48px 48px, auto;
  }

  .opening-copy {
    align-self: end;
    width: 100%;
    max-width: 620px;
    margin: 0;
    padding: 42px 26px 28px;
    font-size: clamp(32px, 8vw, 58px);
  }

  .opening-portrait {
    align-self: start;
    width: min(62vw, 360px);
    height: min(50svh, 500px);
  }

  .opening-slats {
    grid-template-columns: repeat(4, 1fr);
  }

  .opening-slat:nth-child(n + 5) {
    display: none;
  }
}

@media (max-width: 520px) {
  .opening-cover {
    top: 58px;
  }

  .opening-copy {
    gap: 8px;
    max-width: 100%;
    padding: 34px 20px 22px;
    font-size: clamp(26px, 7.6vw, 31px);
    line-height: 1.06;
  }

  .opening-portrait {
    width: min(72vw, 290px);
    height: min(48svh, 410px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.has-opening {
    overflow: auto;
  }

  .opening-cover {
    display: none;
  }

  body.has-opening main,
  body.has-opening .site-footer {
    opacity: 1;
    transform: none;
  }
}

/* Single reversible cover board. It replaces the earlier slat treatment. */
body.has-opening main,
body.has-opening .site-footer {
  opacity: 1;
  transform: none;
}

body.opening-open main,
body.opening-open .site-footer {
  opacity: 1;
  transform: none;
}

.opening-cover {
  position: fixed;
  top: 60px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  display: block;
  background:
    linear-gradient(90deg, rgba(20, 20, 20, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(20, 20, 20, 0.045) 1px, transparent 1px),
    var(--bg);
  background-size: 72px 72px;
  opacity: 1;
  visibility: visible;
  transition: opacity 260ms ease 760ms, visibility 0s linear 1040ms;
}

body.opening-open .opening-cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.opening-stage {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: clamp(22px, 3.5vw, 54px);
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  perspective: 1600px;
}

.opening-stage::before,
.opening-stage::after {
  display: none;
}

.opening-board {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform-origin: center center;
  transition: transform 960ms cubic-bezier(0.76, 0, 0.24, 1), filter 960ms ease;
}

body.opening-open .opening-board {
  filter: brightness(1.02);
  transform: rotateY(-180deg);
}

.opening-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.opening-front {
  display: grid;
  grid-template-columns: minmax(0, 0.54fr) minmax(360px, 0.46fr);
  background:
    linear-gradient(90deg, rgba(20, 20, 20, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(20, 20, 20, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, #e4e8df 0 54%, #f2f1eb 54% 100%);
  background-size: 64px 64px, 64px 64px, auto;
}

.opening-back {
  background:
    linear-gradient(90deg, rgba(20, 20, 20, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(20, 20, 20, 0.06) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
  transform: rotateY(180deg);
}

.opening-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-self: center;
  gap: clamp(10px, 1.45vh, 16px);
  width: min(720px, 100%);
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0 clamp(38px, 6vw, 106px);
  color: var(--ink);
  font-size: clamp(34px, 4.5vw, 78px);
  font-weight: 580;
  line-height: 1.02;
  letter-spacing: 0;
  transition: transform 420ms ease, opacity 360ms ease;
}

.opening-copy span {
  display: block;
  min-width: 0;
  white-space: normal;
}

body.opening-open .opening-copy {
  opacity: 0;
  transform: translateY(-12px);
}

.opening-portrait {
  position: relative;
  z-index: 2;
  display: block;
  align-self: center;
  justify-self: center;
  width: min(70%, 460px);
  height: min(72svh, 690px);
  overflow: hidden;
  border: 1px solid rgba(20, 20, 20, 0.18);
  background: #d7d8d4;
  box-shadow: 0 24px 70px rgba(20, 20, 20, 0.12);
  transition: transform 500ms ease, opacity 380ms ease;
}

.opening-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  filter: grayscale(1) contrast(1.04) brightness(0.98);
}

body.opening-open .opening-portrait {
  opacity: 0.08;
  transform: translateX(12px) scale(0.98);
}

.opening-slats,
.opening-slat {
  display: none;
}

@media (max-width: 920px) {
  .opening-stage {
    padding: 16px;
  }

  .opening-front {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 0.44fr) minmax(280px, 0.56fr);
    background:
      linear-gradient(90deg, rgba(20, 20, 20, 0.05) 1px, transparent 1px),
      linear-gradient(rgba(20, 20, 20, 0.05) 1px, transparent 1px),
      linear-gradient(180deg, #e4e8df 0 44%, #f2f1eb 44% 100%);
    background-size: 48px 48px, 48px 48px, auto;
  }

  .opening-copy {
    align-self: center;
    width: 100%;
    padding: 26px;
    font-size: clamp(30px, 8vw, 56px);
  }

  .opening-portrait {
    align-self: center;
    width: min(62vw, 360px);
    height: min(49svh, 500px);
  }
}

@media (max-width: 520px) {
  .opening-cover {
    top: 58px;
  }

  .opening-stage {
    padding: 0;
  }

  .opening-face {
    border-right: 0;
    border-left: 0;
  }

  .opening-copy {
    gap: 8px;
    padding: 22px 20px;
    font-size: clamp(23px, 6.8vw, 27px);
    line-height: 1.08;
  }

  .opening-copy span:first-child {
    max-width: 18ch;
  }

  .opening-portrait {
    width: min(72vw, 292px);
    height: min(48svh, 410px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.opening-open .opening-board,
  .opening-board {
    transform: none !important;
  }
}

/* Refinement: flip the whole board vertically and keep the opening visually tied to the hero dots. */
.opening-cover {
  background:
    radial-gradient(circle, rgba(0, 0, 0, 0.18) 6px, transparent 6.8px),
    var(--bg);
  background-size: 84px 84px;
  background-position: 0 0;
  transition: opacity 220ms ease 700ms, visibility 0s linear 940ms;
}

.opening-stage {
  perspective: 1800px;
}

.opening-board {
  transform-origin: center center;
  transition: transform 880ms cubic-bezier(0.78, 0, 0.22, 1), filter 880ms ease;
  will-change: transform;
}

body.opening-open .opening-board {
  transform: rotateX(-180deg);
}

.opening-front {
  grid-template-columns: minmax(0, 0.54fr) minmax(380px, 0.46fr);
  background:
    linear-gradient(90deg, rgba(226, 232, 222, 0.92) 0 54%, rgba(246, 247, 245, 0.86) 54% 100%),
    radial-gradient(circle, rgba(0, 0, 0, 0.16) 6px, transparent 6.8px),
    var(--bg);
  background-size: auto, 84px 84px, auto;
  background-position: 0 0;
}

.opening-back {
  background:
    radial-gradient(circle, rgba(0, 0, 0, 0.18) 6px, transparent 6.8px),
    var(--bg);
  background-size: 84px 84px;
  transform: rotateX(180deg);
}

.opening-portrait {
  width: min(76%, 540px);
  height: min(76svh, 760px);
  border: 0;
  box-shadow: 0 26px 78px rgba(20, 20, 20, 0.13);
}

.opening-portrait img {
  object-fit: cover;
  object-position: center 24%;
}

body.opening-open .opening-copy {
  opacity: 0;
  transform: translateY(-22px);
}

body.opening-open .opening-portrait {
  opacity: 0.1;
  transform: translateY(18px) scale(0.985);
}

@media (max-width: 920px) {
  .opening-front {
    background:
      linear-gradient(180deg, rgba(226, 232, 222, 0.92) 0 44%, rgba(246, 247, 245, 0.86) 44% 100%),
      radial-gradient(circle, rgba(0, 0, 0, 0.16) 5px, transparent 5.8px),
      var(--bg);
    background-size: auto, 72px 72px, auto;
  }

  .opening-cover,
  .opening-back {
    background-size: 72px 72px;
  }

  .opening-portrait {
    width: min(70vw, 380px);
    height: min(52svh, 520px);
  }
}

@media (max-width: 520px) {
  .opening-cover,
  .opening-back {
    background-size: 64px 64px;
  }

  .opening-front {
    background:
      linear-gradient(180deg, rgba(226, 232, 222, 0.92) 0 44%, rgba(246, 247, 245, 0.86) 44% 100%),
      radial-gradient(circle, rgba(0, 0, 0, 0.15) 4.5px, transparent 5.2px),
      var(--bg);
    background-size: auto, 64px 64px, auto;
  }

  .opening-portrait {
    width: min(78vw, 310px);
    height: min(49svh, 430px);
  }
}

/* Final opening behavior: the same-size hero card flips with scroll progress over the real dotted hero base. */
.opening-cover {
  background: transparent;
  transition: opacity 160ms ease, visibility 0s linear 160ms;
}

body.opening-open .opening-cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.opening-stage {
  width: min(1296px, calc(100% - 96px));
  height: calc(100% - clamp(56px, 10vh, 128px));
  min-height: 0;
  margin: clamp(28px, 5vh, 64px) auto;
  padding: 0;
  overflow: visible;
  perspective: 1700px;
}

.opening-board {
  width: 100%;
  height: 100%;
  transition: none;
  transform: rotateX(var(--opening-angle, 0deg));
}

body.opening-open .opening-board {
  transform: rotateX(-180deg);
}

.opening-face {
  border: 0;
  background: var(--paper);
  box-shadow: none;
}

.opening-front {
  grid-template-columns: minmax(0, 0.54fr) minmax(380px, 0.46fr);
  background:
    linear-gradient(90deg, rgba(226, 232, 222, 0.9) 0 54%, rgba(246, 247, 245, 0.72) 54% 100%),
    radial-gradient(circle, rgba(0, 0, 0, 0.24) 7px, transparent 7.8px),
    var(--bg);
  background-size: auto, 84px 84px, auto;
  background-position: 0 0;
}

.opening-back {
  background:
    radial-gradient(circle, rgba(0, 0, 0, 0.24) 7px, transparent 7.8px),
    var(--bg);
  background-size: 84px 84px;
  transform: rotateX(180deg);
}

.opening-copy {
  padding: 0 clamp(42px, 6.2vw, 118px);
  font-size: clamp(48px, 5.6vw, 92px);
  font-weight: 650;
  line-height: 1.02;
}

.opening-portrait {
  width: min(78%, 560px);
  height: min(78svh, 760px);
  border: 0;
  background: #d7d8d4;
  box-shadow: 0 24px 72px rgba(20, 20, 20, 0.14);
}

.opening-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

body.opening-open .opening-copy,
body.opening-open .opening-portrait {
  opacity: 1;
  transform: none;
}

@media (max-width: 1060px) {
  .opening-stage {
    width: min(100% - 64px, var(--max));
  }
}

@media (max-width: 720px) {
  .opening-stage {
    width: calc(100% - 32px);
    height: calc(100% - 32px);
    margin: 16px auto;
  }

  .opening-front {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(210px, 0.42fr) minmax(0, 0.58fr);
    background:
      linear-gradient(180deg, rgba(226, 232, 222, 0.9) 0 42%, rgba(246, 247, 245, 0.72) 42% 100%),
      radial-gradient(circle, rgba(0, 0, 0, 0.2) 5.5px, transparent 6.2px),
      var(--bg);
    background-size: auto, 72px 72px, auto;
  }

  .opening-back {
    background-size: 72px 72px;
  }

  .opening-copy {
    align-self: center;
    gap: 8px;
    padding: 24px;
    font-size: clamp(24px, 7vw, 32px);
    line-height: 1.08;
  }

  .opening-copy span:first-child {
    max-width: 19ch;
  }

  .opening-portrait {
    align-self: center;
    width: min(76vw, 320px);
    height: 100%;
    max-height: 430px;
  }
}

/* Card-size pass: match the opening face to the real homepage hero card. */
@media (min-width: 721px) {
  .opening-stage {
    width: min(1296px, calc(100% - 96px));
    height: min(66svh, 640px);
    min-height: 600px;
    margin: clamp(28px, 5vh, 64px) auto 0;
  }

  .opening-front {
    grid-template-columns: minmax(0, 0.54fr) minmax(0, 0.46fr);
    background:
      linear-gradient(90deg, rgba(226, 232, 222, 0.9) 0 54%, rgba(246, 247, 245, 0.78) 54% 100%),
      radial-gradient(circle, rgba(0, 0, 0, 0.2) 7px, transparent 7.8px),
      var(--bg);
    background-size: auto, 84px 84px, auto;
  }

  .opening-copy {
    align-self: center;
    width: min(560px, 100%);
    padding: 0 clamp(48px, 5.6vw, 92px);
    font-size: clamp(24px, 2.35vw, 38px);
    font-weight: 620;
    line-height: 1.18;
  }

  .opening-copy span:first-child {
    max-width: 18ch;
  }

  .opening-portrait {
    align-self: stretch;
    justify-self: stretch;
    width: 100%;
    height: 100%;
    max-height: none;
    box-shadow: none;
  }

  .opening-portrait img {
    object-position: center 22%;
  }
}

@media (max-width: 720px) {
  .opening-stage {
    width: calc(100% - 32px);
    height: min(calc(100svh - 112px), 680px);
    margin: 16px auto 0;
  }

  .opening-front {
    grid-template-rows: minmax(184px, 0.38fr) minmax(0, 0.62fr);
  }

  .opening-copy {
    align-self: center;
    padding: 22px 24px;
    font-size: clamp(20px, 5.8vw, 25px);
    line-height: 1.16;
  }

  .opening-copy span:first-child {
    max-width: 17ch;
  }

  .opening-portrait {
    align-self: stretch;
    justify-self: stretch;
    width: 100%;
    height: 100%;
    max-height: none;
    box-shadow: none;
  }

  .opening-portrait img {
    object-position: center 20%;
  }
}

/* Final architecture: the hero card itself flips; front and back now share one exact box. */
body.has-opening {
  overflow: hidden;
}

.opening-cover,
.opening-stage,
.opening-board,
.opening-face,
.opening-back {
  display: contents;
}

.hero {
  perspective: 1800px;
}

.hero::before,
.hero::after {
  opacity: 1;
}

.opening-front,
.hero-layout {
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform;
}

.opening-front {
  position: absolute;
  inset: clamp(28px, 5vh, 64px) 0 auto;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(0, 0.54fr) minmax(0, 0.46fr);
  width: 100%;
  height: min(66svh, 640px);
  min-height: 600px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(226, 232, 222, 0.9) 0 54%, rgba(246, 247, 245, 0.78) 54% 100%),
    radial-gradient(circle, rgba(0, 0, 0, 0.2) 7px, transparent 7.8px),
    var(--bg);
  background-size: auto, 84px 84px, auto;
  transform: rotateX(var(--opening-angle, 0deg));
  transform-origin: center center;
  pointer-events: auto;
}

.hero-layout {
  transform: rotateX(calc(var(--opening-angle, 0deg) + 180deg));
  transform-origin: center center;
}

body.opening-open .opening-front {
  pointer-events: none;
}

.opening-copy {
  align-self: center;
  width: min(560px, 100%);
  padding: 0 clamp(48px, 5.6vw, 92px);
  color: var(--ink);
  font-size: clamp(24px, 2.35vw, 38px);
  font-weight: 620;
  line-height: 1.18;
}

.opening-copy span:first-child {
  max-width: 18ch;
}

.opening-portrait {
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #d7d8d4;
}

.opening-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: grayscale(1) contrast(1.04) brightness(0.98);
}

@media (max-width: 720px) {
  .opening-front {
    inset: 16px 0 auto;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(184px, 0.38fr) minmax(0, 0.62fr);
    height: min(calc(100svh - 112px), 680px);
    min-height: 0;
    background:
      linear-gradient(180deg, rgba(226, 232, 222, 0.9) 0 38%, rgba(246, 247, 245, 0.78) 38% 100%),
      radial-gradient(circle, rgba(0, 0, 0, 0.2) 5.5px, transparent 6.2px),
      var(--bg);
    background-size: auto, 72px 72px, auto;
  }

  .opening-copy {
    padding: 22px 24px;
    font-size: clamp(20px, 5.8vw, 25px);
    line-height: 1.16;
  }

  .opening-copy span:first-child {
    max-width: 17ch;
  }
}

/* Dark-to-light full hero card: front collage, back homepage + metrics. */
.hero {
  background: var(--opening-bg, var(--bg));
}

.hero::before {
  background-image: radial-gradient(circle, var(--opening-dot, rgba(0, 0, 0, 0.28)) 7px, transparent 7.8px);
  opacity: 1;
}

.opening-front,
.hero-back {
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transform-origin: center center;
  will-change: transform, opacity;
}

.hero-back {
  position: relative;
  z-index: 7;
  opacity: var(--opening-back-opacity, 0);
  transform: rotateX(calc(var(--opening-angle, 0deg) + 180deg)) translateZ(0.2px);
}

.hero-back .hero-layout {
  opacity: 1;
  transform: none;
  backface-visibility: visible;
}

body.opening-open .hero-back {
  opacity: 1;
}

.opening-front {
  inset: clamp(28px, 5vh, 64px) 0 auto;
  height: calc(100% - clamp(28px, 5vh, 64px) - clamp(28px, 5vh, 64px));
  min-height: 690px;
  grid-template-columns: minmax(0, 1fr);
  background: #0f1111;
  color: #fff;
  opacity: var(--opening-front-opacity, 1);
  transform: rotateX(var(--opening-angle, 0deg)) translateZ(0.2px);
}

.opening-collage {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: 1fr;
  gap: 1px;
  background: #111;
}

.opening-shot {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #181818;
}

.opening-shot-main {
  grid-row: auto;
}

.opening-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  filter: grayscale(1) saturate(1) contrast(1.08) brightness(0.82);
  transition: filter 200ms cubic-bezier(0.33, 0, 0.18, 1);
}

.opening-shot:hover img {
  filter: grayscale(0) saturate(1.02) contrast(1.04) brightness(0.84);
}

.opening-shot-main img {
  object-position: center 24%;
}

.opening-shot:nth-child(2) img {
  object-position: 62% 30%;
}

.opening-shot:nth-child(3) img {
  object-position: center 24%;
}

.opening-shot:nth-child(4) img {
  object-position: center 28%;
}

.opening-front::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 28% 66%, rgba(255, 255, 255, 0.08) 0%, transparent 28%),
    linear-gradient(90deg, rgba(10, 11, 11, 0.9) 0%, rgba(10, 11, 11, 0.62) 34%, rgba(10, 11, 11, 0.16) 70%, rgba(10, 11, 11, 0.3) 100%);
  background-size: auto, auto;
}

.opening-copy {
  position: relative;
  z-index: 3;
  align-self: end;
  width: min(720px, 60%);
  margin-bottom: clamp(56px, 8vh, 104px);
  padding: 0 clamp(34px, 4.4vw, 68px);
  color: #f7f7f3;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", SimSun, serif;
  font-size: clamp(20px, 1.72vw, 28px);
  font-weight: 500;
  line-height: 1.46;
  letter-spacing: 0.035em;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.36);
}

.opening-copy:hover {
  color: var(--accent);
  text-shadow: 0 10px 30px rgba(255, 77, 36, 0.22);
}

.opening-copy::before,
.opening-copy::after {
  display: none;
  content: none;
}

.opening-copy span {
  display: block;
  min-height: 1.46em;
  margin: 0 0 10px;
  transition: color 220ms ease, text-shadow 220ms ease;
}

.opening-copy b {
  font-weight: inherit;
}

.opening-typewriter-caret {
  display: none;
  width: 0.08em;
  height: 0.92em;
  margin-left: 0.12em;
  transform: translateY(0.08em);
  background: currentColor;
  vertical-align: baseline;
  animation: opening-typewriter-caret 760ms steps(1, end) infinite;
}

.opening-copy span.typing .opening-typewriter-caret,
.opening-copy span.typed:last-child .opening-typewriter-caret {
  display: inline-block;
}

@keyframes opening-typewriter-caret {
  50% {
    opacity: 0;
  }
}

.opening-copy span:last-child {
  margin-bottom: 0;
}

.opening-copy span:nth-child(1) {
  max-width: none;
}

.opening-copy span:nth-child(2),
.opening-copy span:nth-child(3),
.opening-copy span:nth-child(4) {
  margin-left: 0;
}

.metric-rail {
  position: relative;
  z-index: 1;
}

@media (min-width: 721px) {
  .hero-back {
    min-height: 0;
  }

  .opening-front {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .opening-front {
    inset: 16px 0 auto;
    height: calc(100% - 32px);
    min-height: 0;
  }

  .opening-collage {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr 1fr;
  }

  .opening-shot-main {
    grid-row: auto;
  }

  .opening-front::after {
    background:
      linear-gradient(180deg, rgba(10, 11, 11, 0.86) 0%, rgba(10, 11, 11, 0.58) 42%, rgba(10, 11, 11, 0.2) 100%);
    background-size: auto;
  }

  .opening-copy {
    align-self: end;
    justify-self: start;
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    margin-bottom: 38px;
    padding: 0 24px;
    font-size: clamp(17px, 4.8vw, 21px);
    line-height: 1.42;
    letter-spacing: 0.025em;
  }

  .opening-copy span:nth-child(n) {
    display: block;
    width: 100%;
    max-width: calc(100vw - 80px);
    margin-left: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-all;
  }
}

body.has-opening .site-header {
  border-bottom-color: rgba(255, 255, 255, 0.12);
  background: color-mix(in srgb, var(--opening-bg, #0f1111) 92%, transparent);
}

body.has-opening {
  background: var(--opening-bg, #0f1111);
}

body.has-opening .site-nav a {
  color: rgba(255, 255, 255, 0.72);
}

body.has-opening .site-nav a:hover,
body.has-opening .site-nav a.active {
  color: #fff;
}

body.has-opening .header-action {
  border-left-color: rgba(255, 255, 255, 0.12);
  background: #111;
  color: #fff;
}

@media (min-width: 721px) {
  .hero {
    display: grid;
    align-content: center;
  }

  .opening-front,
  .hero-back {
    grid-area: 1 / 1;
    width: 100%;
  }

  .opening-front {
    position: relative;
    inset: auto;
    align-self: stretch;
    height: auto;
    min-height: 0;
  }
}

/* Hide face bleed-through around the half-flip and let the eased JS progress drive visibility. */
.opening-front {
  opacity: var(--opening-front-opacity, 1);
  transform: rotateX(var(--opening-angle, 0deg)) translateZ(0.2px);
}

.hero-layout {
  opacity: var(--opening-back-opacity, 0);
  transform: rotateX(calc(var(--opening-angle, 0deg) + 180deg)) translateZ(0.2px);
}

body.opening-open .hero-layout {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .opening-shot img {
    transition-duration: 200ms !important;
  }
}

/* Personal-site homepage pass: keep the first formal card as an About entry, not a resume summary. */
.hero-copy h1 {
  margin-bottom: 0;
}

.hero-summary {
  max-width: 780px;
  margin-top: clamp(24px, 3.2vh, 34px);
  padding-top: 20px;
  border-top: 4px solid var(--accent);
  color: var(--ink-soft);
}

@media (min-width: 721px) {
  .hero-back .hero-layout {
    min-height: min(68svh, 680px);
  }

  .hero-photo {
    height: min(68svh, 680px);
  }
}

@media (max-width: 720px) {
  .hero-summary {
    padding-top: 16px;
  }
}

.identity-grid .identity-wide {
  grid-column: 1 / -1;
}

.identity-grid .identity-wide:nth-child(n) {
  padding-left: 0;
  padding-right: 0;
  border-left: 0;
}

.education-lockup dd {
  display: flex;
  align-items: center;
  gap: 12px;
}

.edu-mark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 26px;
  border: 1px solid var(--line-strong);
  color: var(--accent);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.social-list a,
.social-list-item {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 860;
  white-space: nowrap;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.social-list a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff;
}

@media (max-width: 720px) {
  .education-lockup dd {
    align-items: flex-start;
  }

  .social-list {
    gap: 8px;
  }
}

/* Homepage identity block: tighter, balanced matrix for the formal first card. */
.identity-panel {
  top: -32px;
  padding-top: 16px;
}

.identity-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;
  column-gap: clamp(26px, 4vw, 56px);
  row-gap: 0;
  border: 0;
}

.identity-grid div,
.identity-grid div:last-child,
.identity-grid div:nth-child(even),
.identity-grid div:nth-last-child(-n + 2) {
  grid-template-columns: 70px minmax(0, 1fr);
  column-gap: 16px;
  min-height: 58px;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.identity-grid div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.identity-grid .identity-wide,
.identity-grid .identity-wide:nth-child(n) {
  grid-column: 1 / -1;
  grid-template-columns: 70px minmax(0, 1fr);
  min-height: 58px;
  margin-bottom: 2px;
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.identity-grid dt {
  color: color-mix(in srgb, var(--ink) 42%, var(--muted));
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.identity-grid dd {
  color: var(--ink);
  font-size: clamp(12px, 0.82vw, 13px);
  font-weight: 820;
  line-height: 1.48;
}

.identity-grid .email-list a {
  overflow-wrap: anywhere;
  white-space: normal;
}

.education-lockup dd {
  gap: 14px;
}

.edu-mark {
  width: 44px;
  height: 28px;
}

.edu-logo {
  display: block;
  flex: 0 0 auto;
  width: 84px;
  height: auto;
  max-height: 20px;
  object-fit: contain;
}

.social-list {
  gap: 7px;
}

.social-list-item {
  cursor: default;
}

.social-list a,
.social-list-item {
  justify-content: center;
  width: 30px;
  min-width: 30px;
  min-height: 28px;
  padding: 0;
  background: color-mix(in srgb, var(--paper) 82%, #fff);
}

.social-icon {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
  opacity: 0.84;
  filter: brightness(0) saturate(100%);
  transition: opacity 160ms ease, filter 160ms ease;
}

.social-icon-bilibili {
  width: 18px;
  height: 18px;
}

.social-icon-xiaohongshu {
  width: 17px;
  height: 17px;
}

.social-icon-wechat {
  width: 17px;
  height: 17px;
}

.social-list a:hover .social-icon {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(43%) sepia(99%) saturate(1801%) hue-rotate(343deg) brightness(102%) contrast(102%);
}

@media (max-width: 920px) {
  .identity-grid {
    column-gap: 24px;
  }

  .identity-grid div,
  .identity-grid div:last-child,
  .identity-grid div:nth-child(even),
  .identity-grid div:nth-last-child(-n + 2),
  .identity-grid .identity-wide,
  .identity-grid .identity-wide:nth-child(n) {
    grid-template-columns: 64px minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .identity-panel {
    top: 0;
    padding-top: 24px;
  }

  .identity-grid {
    grid-template-columns: 1fr;
  }

  .identity-grid div,
  .identity-grid div:last-child,
  .identity-grid div:nth-child(even),
  .identity-grid div:nth-last-child(-n + 2),
  .identity-grid .identity-wide,
  .identity-grid .identity-wide:nth-child(n) {
    grid-column: 1;
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: 52px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }

  .identity-grid div:last-child {
    border-bottom: 0;
  }
}

/* Six-unit structure: Social and Visual sections. */
.social-page-grid,
.visual-grid {
  display: grid;
}

.social-page-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.social-page-card {
  display: grid;
  align-content: start;
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.social-page-card img {
  width: 28px;
  height: 28px;
  margin-bottom: 28px;
  object-fit: contain;
  filter: brightness(0) saturate(100%);
  opacity: 0.88;
  transition: opacity 180ms ease, filter 180ms ease;
}

.social-page-card span,
.visual-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.social-page-card strong {
  display: block;
  min-height: 48px;
  margin-bottom: 22px;
  font-size: clamp(18px, 1.35vw, 22px);
  line-height: 1.28;
}

.social-page-card em {
  display: block;
  margin-top: auto;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.social-page-card-static {
  cursor: default;
}

.social-page-card[href]:hover {
  border-color: var(--accent);
  background: #fff;
  color: var(--accent);
}

.social-page-card[href]:hover img {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(43%) sepia(99%) saturate(1801%) hue-rotate(343deg) brightness(102%) contrast(102%);
}

.visual-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
  gap: 10px;
}

.visual-card {
  position: relative;
  display: grid;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink);
  color: #fff;
}

.visual-card-large {
  grid-row: span 2;
  min-height: 610px;
}

.visual-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  opacity: 0.86;
  filter: grayscale(0.18) contrast(1.03);
}

.visual-card-large img {
  object-position: 50% 0;
}

.visual-card:not(.visual-card-large) img {
  position: absolute;
  inset: 0;
}

.visual-card div {
  position: absolute;
  inset: auto 0 0;
  padding: 24px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.visual-card h3 {
  margin: 0 0 10px;
  font-size: clamp(20px, 1.55vw, 28px);
  line-height: 1.18;
}

.visual-card p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.75;
}

@media (max-width: 920px) {
  .social-page-grid,
  .visual-grid {
    grid-template-columns: 1fr;
  }

  .social-page-card {
    min-height: 168px;
  }

  .visual-card,
  .visual-card-large {
    min-height: 420px;
  }
}

@media (max-width: 720px) {
  .social-page-card {
    min-height: auto;
    padding: 20px;
  }

  .social-page-card strong {
    min-height: 0;
  }

  .visual-card,
  .visual-card-large {
    min-height: 360px;
  }

  .visual-card div {
    padding: 20px;
  }
}

/* Card-led section pass: preview first, detail on demand. */
.visual-carousel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  min-height: min(64svh, 640px);
  border: 1px solid var(--line);
  background: var(--paper);
}

.visual-stage {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #111827;
}

.visual-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.visual-slide.active {
  opacity: 1;
  visibility: visible;
}

.visual-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-slide[data-visual-slide="1"] img {
  object-position: 50% 0;
}

.visual-notes {
  display: grid;
  align-content: end;
  padding: clamp(24px, 4vw, 42px);
  border-left: 1px solid var(--line);
}

.visual-copy {
  display: none;
}

.visual-copy.active {
  display: block;
}

.visual-copy span {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.visual-copy h3 {
  margin: 0 0 18px;
  font-size: clamp(28px, 2.2vw, 40px);
  line-height: 1.12;
}

.visual-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.85;
}

.visual-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
}

.visual-controls button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 32px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.visual-controls button:hover,
.visual-controls button.active {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff;
}

#experience > .section-body > .timeline,
#project > .section-body > .project-shell {
  display: none;
}

.story-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 38%);
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: 14px;
}

.project-rail {
  grid-auto-columns: minmax(520px, 68%);
}

.story-card {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 420px;
  padding: 24px;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(246, 247, 245, 0.95) 66%),
    var(--paper);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.story-card::after {
  content: "OPEN";
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
}

.story-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 62%;
  object-fit: cover;
  opacity: 0.78;
  filter: grayscale(0.18) contrast(1.04);
}

.story-card > * {
  position: relative;
  z-index: 1;
}

.story-card span {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.story-card strong {
  display: block;
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.12;
}

.story-card em {
  display: block;
  max-width: 720px;
  color: var(--ink-soft);
  font-size: 14px;
  font-style: normal;
  font-weight: 760;
  line-height: 1.7;
}

.story-card:hover {
  border-color: var(--accent);
  color: var(--accent);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.97) 66%),
    #fff;
}

.story-card:hover em {
  color: var(--ink-soft);
}

.story-card-product {
  min-height: 360px;
  background: var(--paper);
}

.story-card-product::after {
  display: none;
}

.story-card-product img {
  height: 50%;
  opacity: 1;
  filter: saturate(0.96) contrast(1.02);
  object-position: center center;
}

.story-card-wide strong {
  font-size: clamp(30px, 3vw, 48px);
}

.story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.story-tags small {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink);
  font-size: 11px;
  font-weight: 860;
}

.story-dialog {
  width: min(1120px, calc(100vw - 48px));
  max-height: min(86svh, 860px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
}

.story-dialog::backdrop {
  background: rgba(15, 17, 17, 0.62);
  backdrop-filter: blur(5px);
}

.story-dialog-panel {
  position: relative;
  max-height: min(86svh, 860px);
  overflow: auto;
  scrollbar-color: rgba(20, 20, 20, 0.2) transparent;
  scrollbar-width: thin;
}

.story-dialog-panel::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.story-dialog-panel::-webkit-scrollbar-thumb {
  border-color: var(--paper);
  background: rgba(20, 20, 20, 0.22);
}

.story-dialog-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(20, 20, 20, 0.36);
}

.story-dialog-close {
  position: sticky;
  top: 0;
  z-index: 10;
  float: right;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.story-dialog-body {
  clear: both;
}

.story-dialog-body > .experience-card,
.story-dialog-body > .project-shell,
.story-dialog-body > .internship-summary {
  display: block;
  border: 0;
}

.story-dialog-body .reveal {
  opacity: 1;
  transform: none;
}

.story-dialog-body .experience-card {
  background: var(--paper);
}

.story-dialog-body .experience-body {
  max-height: none;
}

.internship-summary {
  background: var(--paper);
}

.internship-summary-head {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: center;
  min-height: 172px;
  padding: clamp(24px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(20, 20, 20, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(20, 20, 20, 0.045) 1px, transparent 1px),
    #fbfbf7;
  background-size: 22px 22px;
}

.internship-summary-head img,
.internship-summary-logo-text {
  display: grid;
  width: 118px;
  height: 82px;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  object-fit: contain;
}

.internship-summary-logo-text {
  padding: 0 12px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  text-align: center;
}

.internship-summary-head span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 950;
}

.internship-summary-head h3 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.15;
}

.internship-summary-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 850;
}

.internship-summary-body {
  display: grid;
  gap: 0;
  padding: clamp(24px, 4vw, 42px);
}

.internship-summary-group {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.internship-summary-group:first-child {
  padding-top: 0;
}

.internship-summary-group h4 {
  margin: 4px 0 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.internship-summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.internship-summary-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.internship-summary-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  margin-top: 22px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.internship-summary-contact:hover {
  border-color: var(--accent);
  background: var(--accent);
}

body.dialog-open {
  overflow: hidden;
}

@media (max-width: 920px) {
  .visual-carousel {
    grid-template-columns: 1fr;
  }

  .visual-stage {
    min-height: 420px;
  }

  .visual-notes {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .story-rail,
  .project-rail {
    grid-auto-columns: minmax(300px, 82%);
  }
}

@media (max-width: 720px) {
  .visual-stage {
    min-height: 360px;
  }

  .story-card,
  .story-card-product {
    min-height: 340px;
    padding: 20px;
  }

  .story-card strong,
  .story-card-wide strong {
    font-size: clamp(22px, 8vw, 32px);
  }

  .story-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100svh - 20px);
  }

  .story-dialog-panel {
    max-height: calc(100svh - 20px);
  }
}

/* Refinement: fixed 16:9 visual frame and quieter internship logo cards. */
.visual-carousel {
  align-items: stretch;
  grid-template-columns: minmax(0, 0.62fr) minmax(320px, 0.38fr);
  min-height: clamp(640px, 62svh, 760px);
}

.visual-stage {
  align-self: stretch;
  aspect-ratio: auto;
  min-height: clamp(640px, 62svh, 760px);
  height: 100%;
  background: #111827;
}

.visual-slide {
  display: grid;
  place-items: center;
  overflow: hidden;
}

.visual-slide::before {
  content: "";
  position: absolute;
  inset: -24px;
  z-index: 0;
  background-image: var(--visual-bg);
  background-position: center;
  background-size: cover;
  filter: blur(28px) saturate(1.02) brightness(0.56);
  transform: scale(1.04);
}

.visual-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(17, 24, 39, 0.36);
}

.visual-slide img {
  position: relative;
  z-index: 2;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  max-height: none;
  object-fit: contain !important;
  object-position: center !important;
  opacity: 1;
  filter: none;
}

.visual-slide .visual-image {
  display: block;
  position: absolute !important;
  inset: 0 !important;
  z-index: 3;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  opacity: 1 !important;
  filter: none !important;
}

.visual-slide[data-visual-slide="1"] img {
  object-position: center;
}

.visual-notes {
  min-height: 0;
}

.internship-rail {
  grid-auto-columns: minmax(300px, 31%);
}

.internship-rail .story-card {
  align-content: stretch;
  grid-template-rows: minmax(190px, 1fr) auto auto auto;
  min-height: 360px;
  padding: 24px;
  background: var(--paper);
}

.internship-rail .story-card::after {
  content: none;
}

.internship-rail .story-card:hover {
  background: #fff;
}

.internship-rail .story-card-logo {
  position: relative;
  inset: auto;
  z-index: 1;
  align-self: center;
  justify-self: center;
  width: min(340px, 78%);
  height: auto;
  max-height: 168px;
  margin: 0 auto 32px;
  object-fit: contain;
  opacity: 0.94;
  filter: none;
}

.internship-rail .story-card-logo-mark {
  width: min(230px, 48%);
  max-height: 190px;
}

.internship-rail .story-card-logo-cover {
  width: min(330px, 76%);
  max-height: 150px;
  object-fit: contain;
  transform: scale(1.32);
  transform-origin: center;
}

.story-card-logo-text {
  display: inline-grid;
  place-items: center;
  width: fit-content;
  min-width: 216px;
  min-height: 84px;
  padding: 0 28px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.internship-rail .story-card span {
  margin-bottom: 12px;
  font-size: 10.5px;
}

.internship-rail .story-card strong {
  max-width: 100%;
  margin-bottom: 12px;
  font-size: clamp(22px, 1.45vw, 27px);
  line-height: 1.18;
}

.internship-rail .story-card em {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 14px;
  max-width: 100%;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.internship-rail .story-card em span {
  display: block;
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-weight: 780;
}

.internship-rail .story-card em span:last-child {
  color: var(--ink);
  font-weight: 880;
  text-align: right;
  white-space: nowrap;
}

.internship-rail .story-card:hover em,
.internship-rail .story-card:hover em span {
  color: var(--muted);
}

.internship-rail .story-card:hover em span:last-child {
  color: var(--ink);
}

@media (max-width: 920px) {
  .visual-carousel {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .visual-stage {
    min-height: min(720px, 86svh);
    height: min(720px, 86svh);
  }

  .internship-rail {
    grid-auto-columns: minmax(280px, 76%);
  }
}

@media (max-width: 720px) {
  .visual-stage {
    min-height: min(560px, 76svh);
    height: min(560px, 76svh);
  }

  .internship-rail .story-card {
    min-height: 300px;
  }

  .internship-rail .story-card strong {
    font-size: clamp(20px, 6.5vw, 27px);
  }
}

/* Paged personal-site pass: each unit behaves like a focused screen. */
@media (min-width: 721px) {
  html {
    scroll-padding-top: 60px;
    scroll-snap-type: y mandatory;
  }

  .hero,
  .section {
    min-height: calc(100svh - 60px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .section {
    align-content: center;
    margin-top: 0;
    padding: clamp(24px, 4svh, 48px) 0;
    border-top: 1px solid var(--line-strong);
  }

  .section + .section::before {
    display: none;
  }

  .section-index {
    position: static;
    align-self: start;
    padding-top: clamp(18px, 4svh, 36px);
  }

  .section-body {
    align-self: center;
    padding: 0 0 0 clamp(24px, 3vw, 42px);
  }

  .section-heading {
    margin-bottom: clamp(18px, 2.6svh, 30px);
  }

  .section-heading h2 {
    font-size: clamp(42px, 5.4svh, 64px);
  }

  .line-card {
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: 190px;
  }

  .social-page-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .social-page-card {
    min-height: clamp(180px, 24svh, 250px);
    padding: clamp(18px, 2.4vw, 28px);
  }

  .social-page-card img {
    width: 26px;
    height: 26px;
    margin-bottom: clamp(18px, 3svh, 28px);
  }

  .social-page-card strong {
    min-height: 0;
    margin-bottom: 18px;
    font-size: clamp(18px, 2.25svh, 24px);
  }

  .visual-carousel {
    width: min(100%, calc((100svh - 260px) * 16 / 9));
    max-width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
    height: auto;
    grid-template-columns: minmax(0, 0.64fr) minmax(300px, 0.36fr);
    align-items: stretch;
  }

  .visual-stage {
    min-height: 0;
    height: auto;
    aspect-ratio: auto;
    align-self: stretch;
  }

  .visual-notes {
    align-content: center;
    padding: clamp(22px, 3vw, 42px);
  }

  .visual-copy h3 {
    margin-bottom: 14px;
    font-size: clamp(28px, 4.1svh, 46px);
  }

  .visual-copy p {
    font-size: clamp(13px, 1.7svh, 15px);
    line-height: 1.75;
  }

  .visual-controls {
    margin-top: clamp(22px, 3.4svh, 36px);
  }

  .story-rail {
    grid-auto-columns: minmax(280px, 31%);
    gap: 12px;
    padding-bottom: 10px;
  }

  .internship-rail .story-card,
  .story-card {
    min-height: clamp(300px, 42svh, 390px);
    padding: clamp(18px, 2vw, 24px);
  }

  .internship-rail .story-card {
    grid-template-rows: minmax(130px, 1fr) auto auto auto;
  }

  .internship-rail .story-card-logo {
    width: min(300px, 70%);
    max-height: 132px;
    margin-bottom: 22px;
  }

  .internship-rail .story-card-logo-mark {
    width: min(210px, 46%);
    max-height: 158px;
  }

  .internship-rail .story-card-logo-cover {
    width: min(300px, 72%);
    max-height: 120px;
    transform: scale(1.24);
  }

  .story-card-logo-text {
    min-width: 172px;
    min-height: 62px;
    font-size: 24px;
  }

  .internship-rail .story-card span,
  .story-card span {
    margin-bottom: 10px;
    font-size: 10.5px;
  }

  .internship-rail .story-card strong,
  .story-card strong,
  .story-card-wide strong {
    max-width: 100%;
    margin-bottom: 10px;
    font-size: clamp(21px, 3.1svh, 31px);
    line-height: 1.15;
  }

  .internship-rail .story-card em,
  .story-card em {
    font-size: clamp(12px, 1.7svh, 14px);
    line-height: 1.58;
  }

  .project-rail {
    grid-auto-columns: minmax(360px, 48%);
  }

  .story-card-product {
    min-height: clamp(420px, 55svh, 500px);
    background: var(--paper);
  }

  .story-tags {
    gap: 6px;
    margin-top: 20px;
  }

  .story-tags small {
    min-height: 24px;
    padding: 0 8px;
    font-size: 10px;
  }

  .award-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .award-grid span {
    min-height: clamp(54px, 8svh, 72px);
    padding: 12px;
    font-size: clamp(12px, 1.55svh, 14px);
    line-height: 1.38;
  }

  .site-footer {
    scroll-snap-align: start;
  }
}

@media (max-width: 720px) {
  html {
    scroll-snap-type: y proximity;
  }

  .hero,
  .section {
    scroll-snap-align: start;
  }
}

/* Journey timeline: school path first, internships as a university branch. */
.journey-section .section-body {
  width: 100%;
}

.journey-panel {
  position: relative;
  overflow: visible;
  background: transparent;
}

.journey-track {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 0.92fr) minmax(0, 0.92fr) minmax(270px, 1.3fr);
  gap: clamp(10px, 1.2vw, 16px);
  min-height: clamp(430px, 55svh, 560px);
  padding: clamp(22px, 3.2vw, 42px);
}

.journey-track::before {
  content: "";
  position: absolute;
  top: clamp(86px, 10.5svh, 118px);
  left: clamp(58px, 6.5vw, 92px);
  right: clamp(58px, 6.5vw, 92px);
  height: 1px;
  background: linear-gradient(90deg, rgba(194, 58, 31, 0.15), rgba(194, 58, 31, 0.72), rgba(16, 24, 39, 0.18));
}

.journey-node {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  padding: clamp(18px, 2vw, 24px);
  border: 1px solid rgba(17, 24, 39, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(251, 250, 247, 0.72)),
    var(--paper);
  box-shadow: 0 20px 46px rgba(17, 24, 39, 0.07);
}

.journey-node::before {
  content: "";
  position: absolute;
  top: clamp(63px, 8svh, 88px);
  left: 50%;
  width: 10px;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #c63a20;
  box-shadow: 0 0 0 9px rgba(198, 58, 32, 0.12);
}

.journey-logo {
  position: relative;
  z-index: 1;
  display: grid;
  width: clamp(66px, 7.4svh, 92px);
  height: clamp(66px, 7.4svh, 92px);
  margin: 0 0 clamp(24px, 4svh, 42px);
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 22px;
  background: #fbfaf7;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.09);
}

.journey-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.journey-year {
  display: block;
  margin-bottom: 10px;
  color: #b83a22;
  font-family: "Inter", "Arial", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journey-node h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(18px, 2.3svh, 24px);
  line-height: 1.18;
  letter-spacing: 0;
}

.journey-node p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(12px, 1.58svh, 14px);
  line-height: 1.75;
}

.journey-node-campus {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(252, 250, 246, 0.82)),
    var(--paper);
}

.journey-branch {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: clamp(18px, 2.6svh, 28px);
}

.journey-branch > span {
  color: rgba(17, 24, 39, 0.52);
  font-family: "Inter", "Arial", sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.journey-branch a {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.68);
  transition: border-color 180ms ease, background 180ms ease;
}

.journey-branch a:hover {
  border-color: rgba(184, 58, 34, 0.42);
  background: rgba(255, 248, 244, 0.86);
}

.journey-branch strong {
  color: var(--ink);
  font-size: clamp(13px, 1.7svh, 15px);
  line-height: 1.25;
}

.journey-branch em {
  color: var(--muted);
  font-size: clamp(11px, 1.45svh, 13px);
  font-style: normal;
  line-height: 1.35;
}

@media (min-width: 721px) {
  .journey-section .section-heading {
    margin-bottom: clamp(14px, 2svh, 22px);
  }

  .journey-section .section-heading h2 {
    font-size: clamp(40px, 5svh, 58px);
  }
}

@media (max-width: 1040px) {
  .journey-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
  }

  .journey-track::before,
  .journey-node::before {
    display: none;
  }

  .journey-node {
    min-height: 280px;
  }

  .journey-node-campus {
    grid-column: span 2;
    min-height: 340px;
  }
}

@media (max-width: 720px) {
  .journey-panel {
    overflow: visible;
  }

  .journey-track {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 18px;
  }

  .journey-node {
    min-height: 0;
  }

  .journey-node-campus {
    grid-column: auto;
  }

  .journey-logo {
    margin-bottom: 22px;
  }
}

/* Journey branch timeline refinement: a continuous path instead of cards. */
.journey-panel {
  min-height: clamp(420px, 52svh, 560px);
}

.journey-track {
  position: relative;
  display: block;
  min-height: clamp(420px, 52svh, 560px);
  padding: clamp(28px, 4vw, 54px) clamp(20px, 4.8vw, 68px);
}

.journey-track::before {
  display: none;
}

.journey-mainline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 52px);
  min-height: clamp(210px, 26svh, 280px);
  align-items: start;
}

.journey-mainline::before {
  content: "";
  position: absolute;
  top: clamp(44px, 5.2svh, 66px);
  left: clamp(52px, 5vw, 76px);
  right: clamp(52px, 5vw, 76px);
  height: 2px;
  background: linear-gradient(90deg, rgba(184, 58, 34, 0.12), rgba(184, 58, 34, 0.72), rgba(17, 24, 39, 0.24));
}

.journey-mainline::after {
  content: "";
  position: absolute;
  top: clamp(46px, 5.4svh, 68px);
  right: clamp(49px, 4.7vw, 71px);
  width: clamp(150px, 16vw, 220px);
  height: clamp(126px, 16svh, 178px);
  border-right: 2px solid rgba(184, 58, 34, 0.48);
  border-bottom: 2px solid rgba(184, 58, 34, 0.48);
  border-bottom-right-radius: 64px;
  pointer-events: none;
}

.journey-node {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  justify-items: center;
  text-align: center;
}

.journey-node::before {
  display: none;
}

.journey-node::after {
  content: "";
  position: absolute;
  top: clamp(41px, 5svh, 63px);
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: #c63a20;
  box-shadow: 0 0 0 10px rgba(198, 58, 32, 0.11);
}

.journey-logo {
  z-index: 1;
  width: clamp(70px, 8svh, 94px);
  height: clamp(70px, 8svh, 94px);
  margin: 0 0 clamp(28px, 4.4svh, 44px);
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.1);
}

.journey-year {
  margin-bottom: 8px;
  font-size: 11px;
}

.journey-node h3 {
  max-width: 9em;
  font-size: clamp(18px, 2.4svh, 24px);
}

.journey-node em {
  display: block;
  max-width: 15em;
  margin-top: 10px;
  color: var(--muted);
  font-size: clamp(11px, 1.5svh, 13px);
  font-style: normal;
  line-height: 1.45;
}

.journey-node p {
  display: none;
}

.journey-branch {
  position: relative;
  display: grid;
  grid-template-columns: auto repeat(3, minmax(118px, 1fr));
  gap: clamp(10px, 1.6vw, 18px);
  margin: clamp(34px, 6svh, 70px) 0 0 auto;
  width: min(74%, 780px);
  padding: clamp(16px, 2vw, 22px) 0 0;
}

.journey-branch::before {
  content: "";
  position: absolute;
  top: clamp(45px, 5.4svh, 60px);
  left: clamp(98px, 9.5vw, 150px);
  right: clamp(42px, 4vw, 64px);
  height: 2px;
  background: linear-gradient(90deg, rgba(184, 58, 34, 0.55), rgba(17, 24, 39, 0.2));
}

.journey-branch > span {
  align-self: center;
  max-width: 5.5em;
  color: rgba(17, 24, 39, 0.58);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.35;
}

.journey-branch a {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  justify-items: center;
  text-align: center;
  text-decoration: none;
}

.journey-branch a::after {
  content: "";
  position: absolute;
  top: clamp(37px, 4.7svh, 52px);
  left: 50%;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: #c63a20;
  box-shadow: 0 0 0 8px rgba(198, 58, 32, 0.1);
}

.journey-branch a:hover {
  background: transparent;
}

.journey-branch img {
  z-index: 1;
  display: block;
  width: clamp(58px, 6.4svh, 76px);
  height: clamp(58px, 6.4svh, 76px);
  margin-bottom: clamp(18px, 3svh, 30px);
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 999px;
  background: #fbfaf7;
  object-fit: contain;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.09);
}

.journey-branch strong {
  font-size: clamp(13px, 1.75svh, 16px);
  line-height: 1.25;
}

.journey-branch em {
  margin-top: 5px;
  color: var(--muted);
  font-size: clamp(10.5px, 1.42svh, 12px);
  font-style: normal;
  line-height: 1.3;
}

@media (max-width: 1040px) {
  .journey-track {
    min-height: 0;
    padding-inline: 24px;
  }

  .journey-mainline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .journey-mainline::after {
    width: 130px;
  }

  .journey-node-campus {
    grid-column: auto;
    min-height: 0;
  }

  .journey-branch {
    width: min(82%, 680px);
    grid-template-columns: auto repeat(3, minmax(90px, 1fr));
  }
}

@media (max-width: 720px) {
  .journey-panel,
  .journey-track {
    min-height: 0;
  }

  .journey-track {
    padding: 10px 6px 0;
  }

  .journey-mainline,
  .journey-branch {
    grid-template-columns: 1fr;
    width: 100%;
    margin: 0;
    gap: 22px;
  }

  .journey-mainline::before,
  .journey-mainline::after,
  .journey-branch::before {
    display: none;
  }

  .journey-logo,
  .journey-branch img {
    margin-bottom: 14px;
  }

  .journey-node::after,
  .journey-branch a::after {
    display: none;
  }

  .journey-branch {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(184, 58, 34, 0.22);
  }

  .journey-branch > span {
    max-width: none;
    text-align: center;
  }
}

/* Journey map polish: quieter, tighter, less resume-like. */
.journey-section .section-heading {
  margin-bottom: clamp(10px, 1.8svh, 18px);
}

.journey-section .section-heading h2 {
  font-size: clamp(38px, 5svh, 56px);
}

.journey-panel {
  display: grid;
  min-height: clamp(420px, 52svh, 540px);
  align-items: center;
}

.journey-track {
  width: min(100%, 1080px);
  min-height: clamp(360px, 46svh, 500px);
  margin: 0 auto;
  padding: clamp(26px, 4svh, 44px) clamp(18px, 3.6vw, 48px) clamp(12px, 2svh, 24px);
  isolation: isolate;
}

.journey-path {
  position: absolute;
  inset: clamp(22px, 4svh, 42px) clamp(18px, 3.6vw, 48px) auto;
  z-index: 0;
  width: calc(100% - clamp(36px, 7.2vw, 96px));
  height: clamp(255px, 32svh, 335px);
  overflow: visible;
}

.journey-path path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.journey-path-main {
  stroke: rgba(184, 58, 34, 0.42);
  stroke-width: 1.8;
}

.journey-path-drop,
.journey-path-branch {
  stroke: rgba(184, 58, 34, 0.34);
  stroke-width: 1.6;
}

.journey-mainline {
  z-index: 1;
  gap: clamp(20px, 3.4vw, 58px);
  min-height: clamp(156px, 20svh, 198px);
  padding-top: clamp(8px, 1svh, 14px);
}

.journey-mainline::before,
.journey-mainline::after,
.journey-branch::before {
  display: none;
}

.journey-node {
  align-content: start;
}

.journey-node::after,
.journey-branch a::after {
  display: none;
}

.journey-logo,
.journey-branch img {
  width: clamp(54px, 6.2svh, 70px);
  height: clamp(54px, 6.2svh, 70px);
  margin-bottom: clamp(18px, 2.7svh, 28px);
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow:
    0 18px 42px rgba(17, 24, 39, 0.08),
    0 0 0 12px rgba(255, 255, 255, 0.86);
}

.journey-year {
  margin-bottom: 6px;
  color: #b83a22;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.journey-node h3 {
  max-width: 8.4em;
  font-size: clamp(16px, 2.05svh, 21px);
  line-height: 1.16;
}

.journey-node-campus h3 {
  max-width: 9em;
}

.journey-node em {
  max-width: 14em;
  margin-top: 8px;
  font-size: clamp(10.5px, 1.35svh, 12px);
  line-height: 1.35;
}

.journey-branch {
  z-index: 1;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: clamp(18px, 4vw, 72px);
  width: min(58%, 620px);
  margin: clamp(44px, 6.6svh, 74px) 0 0 auto;
  padding: 0;
}

.journey-branch img {
  width: clamp(48px, 5.4svh, 62px);
  height: clamp(48px, 5.4svh, 62px);
  margin-bottom: clamp(14px, 2.2svh, 22px);
}

.journey-branch strong {
  font-size: clamp(14px, 1.75svh, 17px);
  line-height: 1.2;
}

.journey-branch em {
  margin-top: 6px;
  font-size: clamp(10px, 1.3svh, 11.5px);
}

@media (max-width: 1040px) {
  .journey-track {
    padding-inline: 18px;
  }

  .journey-path {
    inset-inline: 18px;
    width: calc(100% - 36px);
  }

  .journey-mainline {
    gap: 10px;
  }

  .journey-node h3 {
    font-size: clamp(14px, 2vw, 18px);
  }

  .journey-branch {
    width: min(66%, 560px);
    gap: 18px;
  }
}

@media (max-width: 720px) {
  .journey-path {
    display: none;
  }

  .journey-mainline,
  .journey-branch {
    gap: 20px;
  }

  .journey-branch {
    width: 100%;
    margin-top: 26px;
  }
}

/* Final loop timeline: smooth return path with internships read from right to left. */
.journey-panel {
  min-height: clamp(430px, 52svh, 560px);
}

.journey-track {
  width: min(100%, 1120px);
  min-height: clamp(380px, 47svh, 510px);
  padding: clamp(30px, 4.2svh, 48px) clamp(18px, 3.6vw, 48px) 0;
}

.journey-path {
  inset: clamp(24px, 4.2svh, 44px) clamp(18px, 3.6vw, 48px) auto;
  width: calc(100% - clamp(36px, 7.2vw, 96px));
  height: clamp(250px, 32svh, 330px);
}

.journey-path-main {
  stroke: rgba(184, 58, 34, 0.46);
  stroke-width: 1.7;
}

.journey-mainline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 3.2vw, 56px);
  min-height: clamp(172px, 21svh, 220px);
  padding-top: 0;
}

.journey-node {
  justify-items: center;
  text-align: center;
}

.journey-logo {
  width: clamp(52px, 5.9svh, 66px);
  height: clamp(52px, 5.9svh, 66px);
  margin-bottom: clamp(18px, 2.6svh, 26px);
  box-shadow:
    0 16px 38px rgba(17, 24, 39, 0.075),
    0 0 0 10px rgba(255, 255, 255, 0.88);
}

.journey-year {
  margin-bottom: 5px;
  font-size: 10px;
  letter-spacing: 0.02em;
}

.journey-node h3 {
  max-width: 8.2em;
  font-size: clamp(15px, 1.95svh, 19px);
  line-height: 1.15;
}

.journey-node-campus em {
  max-width: 13em;
  margin-top: 7px;
  font-size: clamp(10px, 1.26svh, 11.5px);
}

.journey-branch {
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  width: min(64%, 680px);
  margin: clamp(48px, 7svh, 78px) 0 0 clamp(90px, 16%, 188px);
  gap: clamp(24px, 4.8vw, 78px);
  align-items: start;
}

.journey-branch a {
  position: relative;
  padding-top: clamp(22px, 3svh, 34px);
}

.journey-branch a::before {
  content: "";
  position: absolute;
  top: clamp(-38px, -4.2svh, -28px);
  left: 50%;
  width: 1.5px;
  height: clamp(34px, 4.7svh, 48px);
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(184, 58, 34, 0.52);
}

.journey-branch img {
  width: clamp(46px, 5.1svh, 58px);
  height: clamp(46px, 5.1svh, 58px);
  margin-bottom: clamp(12px, 1.9svh, 18px);
  box-shadow:
    0 14px 32px rgba(17, 24, 39, 0.075),
    0 0 0 9px rgba(255, 255, 255, 0.88);
}

.journey-branch strong {
  font-size: clamp(13px, 1.58svh, 15.5px);
}

.journey-branch em {
  margin-top: 5px;
  font-size: clamp(9.8px, 1.22svh, 11px);
}

.journey-intern-efficiency {
  grid-column: 1;
}

.journey-intern-heiku {
  grid-column: 2;
}

.journey-intern-xingze {
  grid-column: 3;
}

@media (max-width: 1040px) {
  .journey-track {
    padding-inline: 16px;
  }

  .journey-path {
    inset-inline: 16px;
    width: calc(100% - 32px);
  }

  .journey-mainline {
    gap: 8px;
  }

  .journey-node h3 {
    font-size: clamp(13.5px, 1.7vw, 17px);
  }

  .journey-branch {
    width: min(70%, 620px);
    margin-left: clamp(62px, 12%, 130px);
    gap: 18px;
  }
}

@media (max-width: 720px) {
  .journey-branch a {
    padding-top: 0;
  }

  .journey-branch a::before {
    display: none;
  }
}

/* Aligned loop timeline: line and nodes share the same coordinate system. */
.journey-panel {
  min-height: clamp(430px, 52svh, 550px);
}

.journey-track {
  --school-y: 25%;
  --intern-y: 76.7%;
  --school-size: clamp(56px, 6.4svh, 70px);
  --intern-size: clamp(50px, 5.6svh, 62px);
  --intern-stem: clamp(30px, 4.1svh, 42px);
  position: relative;
  width: min(100%, 1120px);
  height: clamp(390px, 48svh, 500px);
  min-height: 0;
  margin: 0 auto;
  padding: 0;
}

.journey-path {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.journey-path-main {
  stroke: rgba(184, 58, 34, 0.5);
  stroke-width: 1.55;
}

.journey-mainline,
.journey-branch {
  display: contents;
}

.journey-node,
.journey-branch a {
  position: absolute;
  z-index: 1;
  display: grid;
  width: clamp(132px, 12vw, 178px);
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  justify-items: center;
  text-align: center;
  text-decoration: none;
}

.journey-mainline .journey-node:nth-child(1) {
  left: 10%;
  top: var(--school-y);
}

.journey-mainline .journey-node:nth-child(2) {
  left: 35%;
  top: var(--school-y);
}

.journey-mainline .journey-node:nth-child(3) {
  left: 60%;
  top: var(--school-y);
}

.journey-mainline .journey-node:nth-child(4) {
  left: 85%;
  top: var(--school-y);
}

.journey-node {
  transform: translate(-50%, calc(var(--school-size) / -2));
}

.journey-branch a {
  top: calc(var(--intern-y) + var(--intern-stem));
  transform: translateX(-50%);
}

.journey-intern-efficiency {
  left: 28%;
}

.journey-intern-heiku {
  left: 56.5%;
}

.journey-intern-xingze {
  left: 82%;
}

.journey-logo,
.journey-branch img {
  display: block;
  width: var(--school-size);
  height: var(--school-size);
  margin: 0 0 clamp(16px, 2.2svh, 22px);
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 999px;
  background: #fbfaf7;
  object-fit: contain;
  box-shadow:
    0 16px 36px rgba(17, 24, 39, 0.075),
    0 0 0 10px rgba(255, 255, 255, 0.9);
}

.journey-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journey-branch img {
  width: var(--intern-size);
  height: var(--intern-size);
  margin-bottom: clamp(12px, 1.8svh, 18px);
  box-shadow:
    0 14px 32px rgba(17, 24, 39, 0.07),
    0 0 0 9px rgba(255, 255, 255, 0.9);
}

.journey-branch a::before {
  content: "";
  position: absolute;
  top: calc(var(--intern-stem) * -1);
  left: 50%;
  width: 1.5px;
  height: var(--intern-stem);
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(184, 58, 34, 0.56);
}

.journey-node::before,
.journey-node::after,
.journey-branch a::after {
  display: none;
}

.journey-year {
  margin: 0 0 5px;
  color: #b83a22;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.journey-node h3,
.journey-branch strong {
  max-width: 9em;
  margin: 0;
  color: var(--ink);
  font-size: clamp(14.5px, 1.78svh, 18px);
  line-height: 1.15;
}

.journey-node-campus em,
.journey-branch em {
  max-width: 13em;
  margin-top: 6px;
  color: var(--muted);
  font-size: clamp(9.8px, 1.18svh, 11px);
  font-style: normal;
  line-height: 1.35;
}

@media (max-width: 1040px) {
  .journey-track {
    --school-size: clamp(50px, 5.6svh, 62px);
    --intern-size: clamp(46px, 5svh, 56px);
    height: clamp(380px, 47svh, 480px);
  }

  .journey-node,
  .journey-branch a {
    width: clamp(108px, 13vw, 148px);
  }

  .journey-node h3,
  .journey-branch strong {
    font-size: clamp(12.5px, 1.55vw, 16px);
  }
}

@media (max-width: 720px) {
  .journey-track {
    height: auto;
    min-height: 0;
  }

  .journey-path {
    display: none;
  }

  .journey-mainline,
  .journey-branch {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .journey-branch {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid rgba(184, 58, 34, 0.22);
  }

  .journey-node,
  .journey-branch a,
  .journey-mainline .journey-node:nth-child(n),
  .journey-intern-efficiency,
  .journey-intern-heiku,
  .journey-intern-xingze {
    position: static;
    width: 100%;
    transform: none;
  }

  .journey-branch a::before {
    display: none;
  }
}

/* Clean card timeline: stable cards connected by a quiet line. */
.journey-section .section-heading {
  margin-bottom: clamp(14px, 2.2svh, 26px);
}

.journey-panel {
  display: grid;
  min-height: clamp(430px, 52svh, 560px);
  align-items: center;
  overflow: visible;
  background: transparent;
}

.journey-track {
  position: relative;
  width: min(100%, 1120px);
  height: auto;
  min-height: 0;
  margin: 0 auto;
  padding: 0;
}

.journey-path,
.journey-branch {
  display: none;
}

.journey-mainline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(300px, 1.16fr);
  gap: clamp(18px, 2vw, 24px);
  min-height: 0;
  padding: clamp(14px, 2.4svh, 26px) 0 0;
}

.journey-mainline::before {
  display: none;
}

.journey-node,
.journey-mainline .journey-node:nth-child(n) {
  position: relative;
  left: auto;
  top: auto;
  z-index: 1;
  display: grid;
  width: auto;
  min-height: clamp(190px, 24svh, 250px);
  padding: clamp(18px, 2vw, 24px);
  transform: none;
  border: 1px solid rgba(17, 24, 39, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(251, 250, 247, 0.76)),
    var(--paper);
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.055);
  align-content: center;
  justify-items: start;
  text-align: left;
}

.journey-node-campus {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 250, 247, 0.86)),
    var(--paper);
  box-shadow: 0 24px 64px rgba(17, 24, 39, 0.075);
  align-content: start;
}

.journey-node:not(:last-child)::after {
  content: "";
  position: absolute;
  top: clamp(44px, 5.2svh, 56px);
  left: 100%;
  display: block;
  width: clamp(14px, 1.8vw, 22px);
  height: 1.5px;
  transform: none;
  border-radius: 999px;
  background: rgba(184, 58, 34, 0.44);
  box-shadow: none;
}

.journey-logo {
  width: clamp(50px, 5.7svh, 64px);
  height: clamp(50px, 5.7svh, 64px);
  margin: 0 0 clamp(22px, 3.4svh, 34px);
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 999px;
  background: #fbfaf7;
  box-shadow:
    0 16px 34px rgba(17, 24, 39, 0.075),
    0 0 0 10px rgba(255, 255, 255, 0.9);
}

.journey-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journey-year {
  margin: 0 0 7px;
  color: #b83a22;
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.journey-node h3 {
  max-width: 9em;
  margin: 0;
  color: var(--ink);
  font-size: clamp(18px, 2.05svh, 22px);
  line-height: 1.14;
}

.journey-node-campus h3 {
  max-width: 10em;
}

.journey-node-campus em {
  display: block;
  max-width: 16em;
  margin-top: 8px;
  color: var(--muted);
  font-size: clamp(11px, 1.45svh, 13px);
  font-style: normal;
  line-height: 1.45;
}

.journey-mini-interns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin-top: clamp(18px, 2.7svh, 28px);
  padding-top: 0;
}

.journey-mini-interns a {
  display: grid;
  min-width: 0;
  gap: 7px;
  min-height: clamp(64px, 7.8svh, 78px);
  padding: 9px 7px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.66);
  color: inherit;
  justify-items: center;
  text-align: center;
  text-decoration: none;
}

.journey-mini-interns img {
  display: block;
  width: clamp(24px, 3svh, 32px);
  height: clamp(24px, 3svh, 32px);
  border-radius: 999px;
  object-fit: contain;
}

.journey-mini-interns span {
  max-width: 100%;
  color: var(--ink);
  font-size: clamp(9.5px, 1.12svh, 11px);
  font-weight: 800;
  line-height: 1.15;
}

@media (max-width: 1040px) {
  .journey-mainline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-mainline::before {
    display: none;
  }

  .journey-node,
  .journey-mainline .journey-node:nth-child(n) {
    min-height: 240px;
  }

  .journey-node-campus {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  .journey-mainline {
    grid-template-columns: 1fr;
    padding-top: 0;
  }

  .journey-node,
  .journey-mainline .journey-node:nth-child(n) {
    min-height: 0;
  }

  .journey-node-campus {
    grid-column: auto;
  }
}

/* Visual section: concise captions and compact category tabs. */
.visual-notes {
  align-content: center;
}

.visual-copy span {
  margin-bottom: 14px;
}

.visual-copy h3 {
  margin-bottom: 10px;
  font-size: clamp(22px, 3svh, 32px);
  line-height: 1.12;
}

.visual-copy p {
  max-width: 22em;
  font-size: clamp(12px, 1.45svh, 14px);
  line-height: 1.55;
}

.visual-categories {
  display: grid;
  gap: 6px;
  width: min(100%, 210px);
  margin-top: clamp(24px, 4svh, 44px);
}

.visual-categories button {
  display: grid;
  grid-template-columns: 34px 1fr;
  min-height: 38px;
  padding: 0 12px 0 0;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  text-align: left;
}

.visual-categories button:hover,
.visual-categories button.active {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.visual-categories button:disabled {
  cursor: default;
  opacity: 0.42;
}

.visual-categories button span {
  color: inherit;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
}

.visual-categories + .visual-controls {
  margin-top: clamp(18px, 3svh, 30px);
}

/* Visual library layout: category tabs are a separate left-side card. */
.visual-carousel {
  grid-template-columns: minmax(96px, 0.1fr) minmax(0, 0.64fr) minmax(220px, 0.26fr);
}

.visual-category-card {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: clamp(16px, 2.2vw, 24px) 10px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.44);
}

.visual-category-card button {
  display: grid;
  min-height: 38px;
  padding: 0 10px;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.visual-category-card button:hover,
.visual-category-card button.active {
  color: var(--ink);
}

.visual-category-card button:disabled {
  cursor: default;
  opacity: 0.36;
}

.visual-category-card span {
  position: relative;
  width: fit-content;
  color: inherit;
  font-size: clamp(11px, 1.32svh, 13px);
  font-weight: 800;
  line-height: 1.15;
}

.visual-category-card span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.visual-category-card button:hover span::after,
.visual-category-card button.active span::after {
  transform: scaleX(1);
}

.visual-notes {
  padding: clamp(22px, 3vw, 36px);
}

.visual-copy h3 {
  font-size: clamp(20px, 2.8svh, 28px);
}

.visual-copy p {
  max-width: 18em;
}

.visual-controls {
  display: none;
}

.visual-board {
  padding: clamp(12px, 1.8vw, 22px);
}

.visual-frame {
  position: absolute;
  inset: clamp(12px, 1.8vw, 22px);
  z-index: 3;
  display: grid;
  margin: 0;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.visual-frame-single,
.visual-frame.active {
  opacity: 1;
  visibility: visible;
}

.visual-board .visual-frame .visual-image {
  position: relative !important;
  inset: auto !important;
  display: block;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.visual-gallery-controls {
  position: absolute;
  left: 50%;
  bottom: clamp(22px, 3vw, 34px);
  z-index: 5;
  display: inline-flex;
  gap: 9px;
  padding: 7px 9px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(17, 24, 39, 0.42);
  backdrop-filter: blur(10px);
}

.visual-gallery-controls button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
}

.visual-gallery-controls button.active,
.visual-gallery-controls button:hover {
  background: #fff;
}

@media (max-width: 920px) {
  .visual-carousel {
    grid-template-columns: 1fr;
  }

  .visual-category-card {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .visual-category-card button {
    min-width: 132px;
  }
}

/* Visual final sizing: keep the photo library inside one screen and show portraits fully. */
@media (min-width: 921px) {
  .visual-section .section-body {
    align-self: center;
  }

  .visual-section .section-heading {
    margin-bottom: clamp(14px, 2svh, 22px);
  }

  .visual-carousel {
    width: 100%;
    height: clamp(440px, 56svh, 620px);
    min-height: 0;
    grid-template-columns: minmax(104px, 0.1fr) minmax(0, 0.66fr) minmax(210px, 0.24fr);
    overflow: hidden;
  }

  .visual-stage {
    min-height: 0;
    height: 100%;
  }

  .visual-notes {
    min-height: 0;
    height: 100%;
  }
}

.visual-frame {
  inset: clamp(12px, 1.6vw, 20px);
}

.visual-board .visual-frame .visual-image {
  max-width: 100% !important;
  max-height: 100% !important;
}

/* Final visual image contract: category photos are contained, never cover-cropped. */
.visual-slide.visual-board::before,
.visual-slide.visual-board::after {
  display: none !important;
}

.visual-slide.visual-board .visual-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #111827;
}

.visual-slide.visual-board .visual-frame > img.visual-image {
  position: static !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}

/* Contact page and final footer polish. */
.contact-section {
  position: relative;
}

.contact-section .section-body {
  display: grid;
  grid-template-rows: auto auto auto auto;
  align-content: stretch;
  width: min(100%, 1120px);
  justify-self: center;
}

.contact-section .section-heading {
  margin-bottom: clamp(16px, 2.4svh, 26px);
}

.contact-section .section-heading::before {
  top: 0;
  bottom: 0;
  height: auto;
}

.contact-slogan {
  position: relative;
  z-index: 1;
  max-width: min(1120px, 96%);
  margin: clamp(10px, 2svh, 20px) auto clamp(20px, 3.2svh, 34px);
  color: var(--ink);
  min-height: calc(clamp(30px, 4.1svh, 44px) * 1.28);
  font-size: clamp(30px, 4.1svh, 44px);
  font-weight: 760;
  line-height: 1.18;
  letter-spacing: 0;
  text-align: center;
  text-shadow:
    0 0 18px rgba(255, 77, 36, 0.08),
    0 0 34px rgba(0, 109, 255, 0.06);
}

.contact-slogan::before {
  content: "";
  position: absolute;
  inset: -30px -24px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 42%, rgba(255, 77, 36, 0.18), transparent 31%),
    radial-gradient(circle at 82% 50%, rgba(0, 109, 255, 0.14), transparent 34%),
    radial-gradient(circle at 54% 14%, rgba(10, 143, 98, 0.11), transparent 28%);
  filter: blur(22px);
  opacity: 0.8;
  transform: translate3d(0, 0, 0);
  animation: contact-slogan-aurora 6.5s ease-in-out infinite alternate;
}

.typewriter-caret {
  display: inline-block;
  width: 0.08em;
  height: 0.9em;
  margin-left: 0.08em;
  transform: translateY(0.08em);
  background: var(--accent);
  animation: typewriter-caret-blink 780ms steps(1, end) infinite;
}

@keyframes typewriter-caret-blink {
  50% {
    opacity: 0;
  }
}

@keyframes contact-slogan-aurora {
  from {
    opacity: 0.48;
    transform: translate3d(-10px, 4px, 0) scale(0.98);
  }

  to {
    opacity: 0.88;
    transform: translate3d(10px, -6px, 0) scale(1.03);
  }
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.25fr);
  gap: clamp(18px, 2.2vw, 30px);
  width: min(100%, 1020px);
  margin: 0 auto;
  min-height: 0;
}

.contact-primary {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}

.contact-primary a {
  display: grid;
  grid-template-columns: minmax(120px, 0.2fr) minmax(0, 1fr);
  align-items: center;
  min-height: clamp(48px, 5.7svh, 62px);
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.contact-primary span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.contact-primary strong {
  overflow-wrap: anywhere;
  font-size: clamp(17px, 2.05svh, 22px);
  line-height: 1.12;
}

.contact-social {
  display: grid;
  align-content: start;
  gap: 10px;
}

.contact-social a,
.contact-social-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: clamp(42px, 5.1svh, 50px);
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-weight: 860;
  text-decoration: none;
}

.contact-social-item {
  cursor: default;
}

.contact-social img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.contact-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Final internship card metadata: company title left, role right. */
.internship-rail .story-card em {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: end;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--accent) !important;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.internship-rail .story-card em span {
  display: block;
  margin: 0;
  color: var(--accent) !important;
  font-weight: 850;
}

.internship-rail .story-card em span:last-child {
  color: var(--ink) !important;
  font-weight: 880;
  text-align: right;
  white-space: nowrap;
}

.experience-brandline em span:first-child {
  color: var(--accent);
}

.experience-brandline em span:last-child {
  color: var(--ink);
}

body,
body *,
body *::before,
body *::after,
button,
input,
textarea,
select {
  font-family: var(--font-serif) !important;
}

.opening-copy,
.opening-copy *,
.opening-copy::before,
.opening-copy::after {
  font-family: var(--font-serif) !important;
}

.contact-section > .site-footer {
  align-self: end;
  justify-items: center;
  text-align: center;
}

.contact-section > .site-footer .icp-link {
  width: auto;
  margin-inline: auto;
}

@media (max-width: 920px) {
  .contact-section > .site-footer {
    margin-top: 28px;
  }

  .contact-slogan {
    max-width: 100%;
    margin-inline: auto;
    min-height: calc(clamp(24px, 7vw, 34px) * 2.2);
    font-size: clamp(24px, 7vw, 34px);
    text-align: center;
  }

  .internship-summary-group {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .internship-summary-group h4 {
    margin-top: 0;
  }

  .contact-panel {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .contact-primary a {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 82px;
    align-content: center;
  }

  .contact-primary strong {
    font-size: clamp(18px, 5.4vw, 27px);
  }
}

@media (max-width: 920px) {
  .visual-carousel {
    min-height: 0;
  }

  .visual-stage {
    height: min(68svh, 560px);
    min-height: 360px;
  }
}

/* Final scroll behavior: fixed header, sticky section index, and magnetic desktop sections. */
@media (min-width: 721px) {
  html {
    scroll-padding-top: 60px;
    scroll-snap-type: y mandatory;
  }

  body {
    padding-top: 60px;
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 120;
  }

  main > .hero,
  main > .section {
    height: calc(100svh - 60px);
    min-height: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  main > .hero {
    overflow: visible;
  }

  main > .section {
    overflow: visible;
  }

  main > .section {
    align-content: center;
  }

  main > .hero::before,
  main > .hero::after {
    position: absolute;
    top: 0;
    right: auto;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    z-index: 0;
  }

  main > .section > .section-body {
    max-height: calc(100svh - 120px);
    overflow: visible;
  }

  .section-index {
    position: sticky;
    top: 84px;
    z-index: 2;
    align-self: start;
    padding-top: 22px;
  }

  .contact-section > .site-footer {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 190px;
    width: auto;
    margin: 0;
    padding: clamp(12px, 1.6svh, 18px) 0 clamp(18px, 2.4svh, 26px);
    scroll-snap-align: none;
  }

  .contact-section .section-heading {
    margin-bottom: clamp(12px, 2svh, 22px);
  }

  .contact-section .section-body {
    align-self: center;
    grid-template-rows: auto auto auto auto;
    padding-top: 0;
    transform: translateY(clamp(16px, 3.2svh, 30px));
  }

  .contact-section .contact-slogan {
    margin-top: clamp(22px, 3.4svh, 34px);
  }

  .contact-section .contact-panel {
    margin-bottom: 0;
  }
}
