:root {
  --ink: #10100f;
  --coal: #0d0d0d;
  --paper: #f3efe6;
  --paper-2: #e8e1d6;
  --white: #fffaf2;
  --muted: #696761;
  --line: rgba(16, 16, 15, 0.14);
  --line-dark: rgba(255, 250, 242, 0.16);
  --gold: #c79b4b;
  --olive: #6e7563;
  --blue: #6f8da9;
  --radius: 8px;
  --shadow: 0 34px 90px rgba(11, 11, 10, 0.22);
  --serif: "Playfair Display", "Noto Serif SC", serif;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(16, 16, 15, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, #f6f2ea 0%, #e6ded1 46%, #f5f0e7 100%);
  background-size: calc(100% / 8) 100%, auto;
  font-family: var(--sans);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background:
    radial-gradient(circle at calc(50% + var(--scroll, 0) * 28%) 8%, rgba(199, 155, 75, 0.18), transparent 28%),
    linear-gradient(rgba(16, 16, 15, 0.035) 1px, transparent 1px);
  background-size: auto, 100% 82px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 20px;
  padding: 13px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(13, 13, 13, 0.72), rgba(13, 13, 13, 0.28));
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold), var(--blue));
}

.brand {
  display: grid;
  gap: 3px;
}

.brand span {
  font-weight: 850;
}

.brand small,
.lang {
  color: rgba(255, 250, 242, 0.68);
  font-size: 13px;
}

.nav-links,
.footer nav,
.dock {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links {
  min-width: 0;
}

.nav-links a,
.dock a {
  padding: 10px 13px;
  border-radius: 999px;
  color: rgba(255, 250, 242, 0.76);
  font-size: 14px;
  white-space: nowrap;
}

.nav-links a[aria-current="page"],
.dock a[aria-current="page"] {
  color: var(--ink);
  background: rgba(255, 250, 242, 0.92);
}

.lang {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang select {
  height: 38px;
  min-width: 122px;
  padding: 0 32px 0 14px;
  border: 1px solid rgba(255, 250, 242, 0.22);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 250, 242, 0.1);
}

.home-stage {
  --cx: 0;
  --cy: 0;
  position: relative;
  min-height: 0;
  height: auto;
  overflow: hidden;
  display: block;
  padding: 0;
  color: var(--white);
  background: #060504;
  border-bottom: 1px solid rgba(255, 250, 242, 0.12);
  isolation: isolate;
}

.home-stage::before,
.home-stage::after {
  display: none;
}

.home-hero {
  position: relative;
  min-height: max(780px, 100svh);
  display: flex;
  align-items: center;
  padding: 96px clamp(24px, 5.8vw, 96px) clamp(96px, 10vh, 142px);
  overflow: hidden;
  isolation: isolate;
}

.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-hero::before {
  z-index: 1;
  background:
    radial-gradient(circle at 28% 48%, rgba(199, 155, 75, 0.2), transparent 28%),
    linear-gradient(90deg, rgba(6, 5, 4, 0.56) 0%, rgba(6, 5, 4, 0.42) 30%, rgba(6, 5, 4, 0.14) 54%, rgba(6, 5, 4, 0.03) 74%, rgba(6, 5, 4, 0.12) 100%);
  mix-blend-mode: multiply;
}

.home-hero::after {
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(6, 5, 4, 0.48) 0%, transparent 21%, transparent 70%, rgba(6, 5, 4, 0.38) 86%, #060504 100%),
    linear-gradient(90deg, rgba(6, 5, 4, 0.38), rgba(6, 5, 4, 0.08) 42%, rgba(6, 5, 4, 0.03) 68%, rgba(6, 5, 4, 0.16));
}

.hero-matrix {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  pointer-events: none;
}

.hero-matrix i {
  border-right: 1px solid rgba(255, 250, 242, 0.1);
  transform: translateY(calc(var(--scroll, 0) * -120px));
}

.home-title {
  position: relative;
  z-index: 3;
  grid-column: 1 / 3;
  grid-row: 2;
  align-self: center;
  width: min(1120px, 100%);
  padding-left: clamp(20px, 6vw, 132px);
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 0.74;
  transform: translate3d(calc(var(--cx) * -38px), calc(var(--cy) * -24px), 0);
  transition: transform 0.32s ease-out;
}

.home-title span {
  display: block;
  font-size: clamp(92px, 18vw, 264px);
  color: rgba(255, 250, 242, 0.94);
  text-shadow: 0 18px 68px rgba(0, 0, 0, 0.34);
}

.home-title em {
  display: inline-block;
  margin-left: -0.03em;
  font-family: var(--serif);
  font-size: clamp(72px, 12vw, 174px);
  line-height: 0.66;
  color: rgba(255, 250, 242, 0.9);
}

.home-title small {
  display: inline-block;
  margin-left: 0.08em;
  font-family: var(--serif);
  font-size: clamp(42px, 8vw, 128px);
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0;
  color: rgba(255, 250, 242, 0.86);
  text-shadow: 0 12px 52px rgba(0, 0, 0, 0.42);
}

.home-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  opacity: 1;
  filter: saturate(0.98) contrast(1.05) brightness(0.98);
  box-shadow: none;
  background: radial-gradient(circle at 70% 42%, rgba(199, 155, 75, 0.18), transparent 34%), #060504;
  transform: translate3d(calc(var(--cx) * 10px), calc(var(--cy) * 8px), 0) scale(calc(1 + var(--scroll, 0) * 0.012));
  transition: transform 0.32s ease-out;
}

.home-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 48%, rgba(232, 178, 87, 0.12), transparent 28%),
    linear-gradient(90deg, rgba(6, 5, 4, 0.54) 0%, rgba(6, 5, 4, 0.36) 28%, rgba(6, 5, 4, 0.1) 58%, rgba(6, 5, 4, 0.02) 78%, rgba(6, 5, 4, 0.06) 100%),
    linear-gradient(180deg, rgba(6, 5, 4, 0.08) 0%, transparent 46%, rgba(6, 5, 4, 0.5) 100%);
}

.home-photo img {
  object-fit: var(--fit, contain);
  object-position: var(--pos, 64% 50%);
  filter: saturate(1.08) contrast(1.05) brightness(1.24);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 97%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 97%, transparent 100%);
}

.home-copy {
  position: relative;
  z-index: 7;
  width: min(760px, 52vw);
  margin-top: clamp(8px, 2vh, 34px);
  transform: translate3d(calc(var(--cx) * -26px), calc(var(--cy) * -16px), 0);
  transition: transform 0.32s ease-out;
}

.home-kicker {
  display: block;
  margin-bottom: clamp(16px, 2.2vh, 26px);
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.28em;
}

.home-copy h1 {
  margin: 0 0 clamp(18px, 2.4vh, 28px);
  font-family: var(--serif);
  font-size: clamp(54px, 6.1vw, 94px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: 0;
  color: rgba(255, 250, 242, 0.94);
  text-shadow: 0 22px 80px rgba(0, 0, 0, 0.5);
}

.home-copy p {
  width: min(560px, 100%);
  margin-bottom: clamp(22px, 3vh, 34px);
  color: rgba(255, 250, 242, 0.82);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.8;
}

.home-signature {
  display: block;
  margin: 0 0 clamp(22px, 3vh, 34px);
  font-family: var(--serif);
  color: var(--gold);
  font-size: clamp(28px, 3.8vw, 54px);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  position: relative;
  z-index: 8;
}

.home-cta,
.home-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.08em;
  transition: color 0.22s ease, transform 0.22s ease;
}

.home-cta span,
.home-link span {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(199, 155, 75, 0.62);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(5, 4, 3, 0.18);
  transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.home-cta:hover,
.home-link:hover {
  color: var(--white);
  transform: translateY(-2px);
}

.home-cta:hover span,
.home-link:hover span,
.home-film button:hover {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

.home-film {
  position: relative;
  z-index: 5;
  width: 100%;
  margin: 0;
  padding: clamp(34px, 4.5vw, 64px) clamp(24px, 5.8vw, 96px) clamp(26px, 3.6vw, 48px);
  display: grid;
  grid-template-columns: 50px minmax(0, 1380px) 50px;
  justify-content: center;
  gap: 24px;
  align-items: center;
  background:
    radial-gradient(circle at 70% 0%, rgba(199, 155, 75, 0.12), transparent 28%),
    linear-gradient(180deg, #060504 0%, #0b0907 100%);
  overflow: hidden;
  isolation: isolate;
}

.home-film::before,
.home-values::before {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.16;
  background:
    linear-gradient(180deg, rgba(6, 5, 4, 0.1), rgba(6, 5, 4, 0.72)),
    url("../assets/images/hero-horse-wide-20260701.png") center 72% / cover no-repeat;
  filter: blur(18px) saturate(0.95) contrast(1.05);
  mix-blend-mode: screen;
  transform: scale(1.06);
}

.home-film > *,
.home-values > * {
  position: relative;
  z-index: 1;
}

.home-film button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(199, 155, 75, 0.58);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(5, 4, 3, 0.18);
  font-size: 34px;
  line-height: 1;
  transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.home-film-track {
  min-height: 102px;
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  border: 1px solid rgba(199, 155, 75, 0.32);
  background: rgba(8, 7, 6, 0.34);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.home-film-card {
  position: relative;
  min-height: 102px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 18px 20px;
  overflow: hidden;
  border-right: 1px solid rgba(199, 155, 75, 0.24);
  transform: translateY(0);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.home-film-card:last-child {
  border-right: 0;
}

.home-film-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 6, 5, 0.95), rgba(7, 6, 5, 0.68) 46%, rgba(7, 6, 5, 0.08)),
    linear-gradient(180deg, rgba(7, 6, 5, 0.1), rgba(7, 6, 5, 0.72));
}

.home-film-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: var(--fit, cover);
  object-position: var(--pos, 50% 50%);
  opacity: 0.72;
  filter: saturate(0.86) contrast(1.08) brightness(0.78);
  transform: scale(1.01);
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.home-film-card:hover img {
  opacity: 0.94;
  transform: scale(1.06);
}

.home-film-card:hover {
  z-index: 2;
  transform: translateY(-8px) scale(1.018);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.42);
}

.home-film-card span,
.home-film-card strong,
.home-film-card small {
  position: relative;
  z-index: 1;
}

.home-film-card span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.home-film-card strong {
  color: rgba(255, 250, 242, 0.92);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}

.home-film-card small {
  max-width: 180px;
  color: rgba(255, 250, 242, 0.68);
  font-size: 12px;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.home-values {
  position: relative;
  z-index: 5;
  margin: 0;
  padding: 30px clamp(24px, 8vw, 148px) 36px;
  display: grid;
  grid-template-columns: 1.05fr 1.65fr;
  gap: clamp(28px, 5vw, 84px);
  align-items: center;
  background:
    radial-gradient(circle at 18% 0%, rgba(199, 155, 75, 0.1), transparent 30%),
    linear-gradient(180deg, #0b0907, #080807);
  border-top: 1px solid rgba(199, 155, 75, 0.16);
  overflow: hidden;
  isolation: isolate;
}

.home-values::before {
  opacity: 0.12;
  background:
    linear-gradient(90deg, rgba(6, 5, 4, 0.78), rgba(6, 5, 4, 0.34), rgba(6, 5, 4, 0.78)),
    url("../assets/images/hero-horse-wide-20260701.png") center 78% / cover no-repeat;
}

.home-values blockquote {
  margin: 0;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  color: rgba(255, 250, 242, 0.86);
  font-family: var(--serif);
}

.home-values blockquote b {
  color: var(--gold);
  font-size: 80px;
  line-height: 0.8;
}

.home-values blockquote span {
  font-size: clamp(26px, 2.5vw, 44px);
  line-height: 1.35;
  text-wrap: balance;
}

.home-values cite {
  grid-column: 2;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.home-values > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.home-values article {
  min-height: 132px;
  padding: 8px clamp(18px, 2vw, 32px);
  border-left: 1px solid rgba(199, 155, 75, 0.28);
}

.home-values svg {
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  padding: 10px;
  border-radius: 999px;
  color: var(--gold);
  background: rgba(199, 155, 75, 0.08);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-values h2 {
  margin-bottom: 8px;
  color: rgba(255, 250, 242, 0.92);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

.home-values p {
  margin: 0;
  color: rgba(255, 250, 242, 0.62);
  font-size: 13px;
  line-height: 1.65;
}

.home-photo img,
.page-hero-image img,
.portrait-slice img,
.story-card figure img,
.connect-stage figure img {
  width: 100%;
  height: 100%;
  object-fit: var(--fit, cover);
  object-position: var(--pos, 50% 50%);
}

body[data-page="home"] .home-stage .home-photo img {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: var(--pos, 50% 56%);
  opacity: 0.98;
  filter: saturate(1.05) contrast(1.04) brightness(0.95);
  transform: scale(1.002);
  -webkit-mask-image: none;
  mask-image: none;
}

.archive-panel {
  position: relative;
  z-index: 4;
  grid-column: 2;
  grid-row: 2 / 4;
  align-self: end;
  margin: 0 28px 48px 0;
  padding: 22px;
  color: var(--white);
  background: rgba(13, 12, 11, 0.58);
  border: 1px solid rgba(255, 250, 242, 0.16);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.archive-panel b,
.index-label,
.section-title span {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.archive-panel p {
  color: rgba(255, 250, 242, 0.76);
  line-height: 1.78;
}

.archive-panel div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 20px;
}

.archive-panel a,
.print-button,
.filter-tabs button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 250, 242, 0.22);
  border-radius: 999px;
  color: var(--white);
  background: transparent;
  font-weight: 800;
}

.archive-panel a:hover {
  color: var(--ink);
  background: var(--white);
}

.identity-strip {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(16, 16, 15, 0.52);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.metric-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  padding: clamp(34px, 5vw, 72px) clamp(20px, 5.8vw, 96px) clamp(58px, 7vw, 96px);
  color: var(--white);
  background: linear-gradient(180deg, #080807 0%, #14110e 42%, #ede6da 100%);
}

.metric-wall article {
  min-height: 154px;
  position: relative;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: clamp(20px, 3vw, 42px);
  background: linear-gradient(135deg, rgba(22, 22, 21, 0.92), rgba(13, 13, 13, 0.82));
  border: 1px solid rgba(255, 250, 242, 0.1);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  overflow: hidden;
  cursor: pointer;
  transform: translate3d(var(--mx, 0), var(--my, 0), 0) scale(1);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.metric-wall article::after {
  content: "";
  position: absolute;
  inset: -40%;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--px, 50%) var(--py, 50%), rgba(255, 250, 242, 0.34), transparent 32%);
  transition: opacity 0.25s ease;
}

.metric-wall article:hover {
  color: var(--ink);
  background: linear-gradient(135deg, rgba(255, 250, 242, 0.96), rgba(232, 225, 214, 0.86));
  border-color: rgba(199, 155, 75, 0.38);
  box-shadow: 0 34px 88px rgba(0, 0, 0, 0.3);
  transform: translate3d(var(--mx, 0), var(--my, 0), 0) scale(1.045);
}

.metric-wall article:hover::after {
  opacity: 1;
}

.metric-wall article:active {
  transform: translate3d(var(--mx, 0), var(--my, 0), 0) scale(1.018);
}

.metric-wall article.is-tapped {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(199, 155, 75, 0.5), 0 0 54px rgba(199, 155, 75, 0.34);
  animation: metric-pop 0.52s ease both;
}

@keyframes metric-pop {
  0% {
    transform: translate3d(var(--mx, 0), var(--my, 0), 0) scale(1);
  }

  46% {
    transform: translate3d(var(--mx, 0), var(--my, 0), 0) scale(1.075);
  }

  100% {
    transform: translate3d(var(--mx, 0), var(--my, 0), 0) scale(1.045);
  }
}

.metric-wall strong {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: clamp(38px, 5.2vw, 76px);
  line-height: 1;
}

.metric-wall span {
  position: relative;
  z-index: 1;
  color: rgba(255, 250, 242, 0.68);
  transition: color 0.25s ease;
}

.metric-wall article:hover span {
  color: rgba(16, 16, 15, 0.62);
}

.metric-wall article.is-tapped span {
  color: rgba(16, 16, 15, 0.64);
}

.home-bridge {
  padding: clamp(78px, 10vw, 140px) clamp(20px, 6vw, 88px);
  background:
    linear-gradient(180deg, #ede6da 0%, var(--paper) 42%, #f7f2ea 100%);
}

.home-bridge .section-title {
  width: min(1080px, 100%);
  margin-bottom: clamp(30px, 4vw, 58px);
}

.home-bridge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 24px);
}

.home-bridge article {
  min-height: 310px;
  padding: clamp(26px, 3.6vw, 44px);
  border: 1px solid rgba(16, 16, 15, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.7), rgba(255, 250, 242, 0.42));
  box-shadow: 0 24px 72px rgba(28, 24, 18, 0.1);
}

.home-bridge article span {
  display: block;
  margin-bottom: clamp(42px, 7vw, 92px);
  color: var(--gold);
  font-weight: 900;
}

.home-bridge article h3 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.08;
}

.home-bridge article p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.chapter-lab,
.manifesto,
.room-grid,
.split-lab,
.voice-board,
.journey-console,
.evidence-system,
.skills-theater,
.project-rail,
.award-archive,
.resume-shell {
  padding: clamp(78px, 10vw, 150px) clamp(20px, 6vw, 88px);
}

.section-title {
  width: min(920px, 100%);
  margin-bottom: clamp(34px, 5vw, 70px);
}

.section-title h2,
.page-hero h1,
.room-card h2,
.trait-lab h2,
.skills-copy h2,
.resume-sidebar h2,
.connect-card h1 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1.04;
  letter-spacing: 0;
}

.chapter-list {
  border-top: 1px solid var(--line);
}

.chapter-row,
.project-row {
  display: grid;
  grid-template-columns: 72px minmax(180px, 260px) minmax(220px, 0.78fr) minmax(0, 1.08fr) 42px;
  gap: 24px;
  align-items: center;
  min-height: 184px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transform: translate3d(var(--mx, 0), var(--my, 0), 0);
  transition: transform 0.22s ease, background 0.22s ease;
}

.project-row {
  grid-template-columns: 88px minmax(220px, 0.75fr) minmax(0, 1.3fr) 42px;
  min-height: 142px;
}

.chapter-row:hover {
  background: rgba(255, 250, 242, 0.46);
}

.chapter-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(16, 16, 15, 0.08);
  box-shadow: 0 18px 46px rgba(16, 16, 15, 0.16);
}

.chapter-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  filter: saturate(0.96) contrast(1.03);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.chapter-row:hover .chapter-media img {
  transform: scale(1.045);
  filter: saturate(1.04) contrast(1.05);
}

.chapter-row b,
.project-row b {
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 60px);
}

.chapter-row h3,
.project-row h3,
.pillar h3,
.voice-board h3 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.12;
}

.chapter-row p,
.project-row p,
.pillar p,
.room-card p,
.trait-grid span,
.voice-board p,
.page-hero p,
.story-card p,
.award-item p,
.resume-section p,
.resume-sidebar p,
.connect-card p,
.connect-card small {
  color: var(--muted);
  line-height: 1.9;
}

.chapter-row i {
  width: 32px;
  height: 32px;
  border-top: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  transform: rotate(45deg);
}

.manifesto {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding-top: 0;
}

.manifesto p {
  min-height: 360px;
  margin: 0;
  padding: clamp(28px, 4vw, 52px);
  color: var(--white);
  background: var(--coal);
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.26;
}

.manifesto span {
  display: block;
  margin-bottom: 34px;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 850;
}

.page-hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: end;
  padding: clamp(130px, 14vw, 190px) clamp(20px, 6vw, 88px) clamp(58px, 8vw, 96px);
}

.page-hero-copy {
  max-width: 940px;
}

.page-hero-image {
  height: min(68vh, 720px);
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: rgba(0, 0, 0, 0.08);
}

body[data-page="about"] .page-hero,
body[data-page="work"] .page-hero,
body[data-page="resume"] .page-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(76px, 10vw, 132px);
  overflow: hidden;
  color: var(--white);
  background: #070605;
  isolation: isolate;
}

body[data-page="about"] .page-hero::before,
body[data-page="about"] .page-hero::after,
body[data-page="work"] .page-hero::before,
body[data-page="work"] .page-hero::after,
body[data-page="resume"] .page-hero::before,
body[data-page="resume"] .page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

body[data-page="about"] .page-hero::before,
body[data-page="work"] .page-hero::before,
body[data-page="resume"] .page-hero::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 6, 5, 0.86) 0%, rgba(7, 6, 5, 0.62) 38%, rgba(7, 6, 5, 0.2) 70%, rgba(7, 6, 5, 0.56) 100%),
    linear-gradient(180deg, rgba(7, 6, 5, 0.54) 0%, transparent 42%, #070605 100%);
}

body[data-page="about"] .page-hero::after,
body[data-page="work"] .page-hero::after,
body[data-page="resume"] .page-hero::after {
  z-index: 2;
  background:
    radial-gradient(circle at 72% 42%, rgba(199, 155, 75, 0.14), transparent 34%),
    linear-gradient(180deg, transparent 72%, var(--coal) 100%);
}

body[data-page="about"] .page-hero-copy,
body[data-page="work"] .page-hero-copy,
body[data-page="resume"] .page-hero-copy {
  position: relative;
  z-index: 3;
  max-width: 980px;
}

body[data-page="about"] .page-hero p,
body[data-page="work"] .page-hero p,
body[data-page="resume"] .page-hero p {
  max-width: 760px;
  color: rgba(255, 250, 242, 0.76);
}

body[data-page="about"] .page-hero-image,
body[data-page="work"] .page-hero-image,
body[data-page="resume"] .page-hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
  background: #070605;
}

body[data-page="about"] .page-hero-image img,
body[data-page="work"] .page-hero-image img,
body[data-page="resume"] .page-hero-image img {
  opacity: 0.68;
  filter: saturate(0.92) contrast(1.08) brightness(1.04);
}

body[data-page="journey"] .page-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(76px, 10vw, 132px);
  overflow: hidden;
  color: var(--white);
  background: #070605;
  isolation: isolate;
}

body[data-page="journey"] .page-hero::before,
body[data-page="journey"] .page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

body[data-page="journey"] .page-hero::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 6, 5, 0.84) 0%, rgba(7, 6, 5, 0.62) 34%, rgba(7, 6, 5, 0.18) 68%, rgba(7, 6, 5, 0.62) 100%),
    linear-gradient(180deg, rgba(7, 6, 5, 0.54) 0%, transparent 38%, #070605 100%);
}

body[data-page="journey"] .page-hero::after {
  z-index: 2;
  background:
    radial-gradient(circle at 72% 42%, rgba(199, 155, 75, 0.16), transparent 34%),
    linear-gradient(180deg, transparent 72%, var(--coal) 100%);
}

body[data-page="journey"] .page-hero-copy {
  position: relative;
  z-index: 3;
  max-width: 980px;
}

body[data-page="journey"] .page-hero p {
  max-width: 760px;
  color: rgba(255, 250, 242, 0.76);
}

body[data-page="journey"] .page-hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
  background: #070605;
}

body[data-page="journey"] .page-hero-image img {
  opacity: 0.72;
  filter: saturate(0.94) contrast(1.06) brightness(1.18);
  mix-blend-mode: normal;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--coal);
}

.room-card {
  min-height: 430px;
  padding: clamp(26px, 4vw, 48px);
  color: var(--white);
  background: #141414;
  transform: translate3d(var(--mx, 0), var(--my, 0), 0);
  transition: transform 0.22s ease, background 0.22s ease;
}

.room-card:hover {
  background: #1f1f1d;
}

.room-card span {
  color: var(--gold);
  font-weight: 900;
}

.room-card h2 {
  margin: 58px 0 24px;
  font-size: clamp(30px, 3.6vw, 56px);
}

.room-card p {
  color: rgba(255, 250, 242, 0.72);
}

.split-lab {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(30px, 6vw, 88px);
  align-items: center;
}

.portrait-slice {
  height: min(72vh, 780px);
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.trait-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.trait-grid article,
.pillar,
.voice-board article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.52);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.trait-grid b {
  display: block;
  margin-bottom: 7px;
}

.voice-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 0;
}

.journey-console {
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
  gap: clamp(22px, 3vw, 42px);
  padding-left: clamp(22px, 4vw, 64px);
  padding-right: clamp(22px, 4vw, 64px);
  color: var(--white);
  background: var(--coal);
}

.journey-index {
  position: sticky;
  top: 94px;
  height: calc(100svh - 116px);
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.06);
  overflow: auto;
}

.journey-index a {
  display: grid;
  gap: 4px;
  padding: 13px 12px 13px 15px;
  border-radius: 6px;
  color: rgba(255, 250, 242, 0.64);
  border: 1px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.journey-index a:hover {
  color: var(--white);
  background: rgba(255, 250, 242, 0.08);
}

.journey-index a[aria-current="true"] {
  color: var(--white);
  background: linear-gradient(135deg, rgba(255, 250, 242, 0.25), rgba(199, 155, 75, 0.2));
  border-color: rgba(199, 155, 75, 0.58);
  box-shadow: inset 8px 0 0 var(--gold), 0 18px 48px rgba(0, 0, 0, 0.28);
  transform: translateX(10px);
}

.journey-index span {
  color: var(--gold);
  font-weight: 900;
}

.journey-index b {
  color: inherit;
  font-size: 13px;
  font-weight: 720;
  transition: font-weight 0.25s ease, color 0.25s ease;
}

.journey-index a[aria-current="true"] span,
.journey-index a[aria-current="true"] b {
  font-weight: 950;
}

.journey-index a[aria-current="true"] b {
  color: var(--white);
  font-size: 14.5px;
  letter-spacing: 0.01em;
}

.journey-index a[aria-current="true"] span {
  text-shadow: 0 0 18px rgba(199, 155, 75, 0.7);
}

.story-stack {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.story-card {
  min-height: calc(100svh - 120px);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: clamp(24px, 2.6vw, 42px);
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-dark);
  min-width: 0;
  scroll-margin-top: 118px;
}

.story-card > * {
  min-width: 0;
}

.story-card figure {
  position: relative;
  aspect-ratio: 16 / 10;
  height: auto;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 30px 86px rgba(0, 0, 0, 0.38);
  background: rgba(255, 255, 255, 0.04);
  isolation: isolate;
  transform: translateZ(0);
  transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
}

.story-card figure::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 250, 242, 0.18) 42%, transparent 58%),
    radial-gradient(circle at var(--mx, 60%) var(--my, 42%), rgba(199, 155, 75, 0.18), transparent 36%);
  mix-blend-mode: screen;
  transition: opacity 0.35s ease;
}

.story-card figure:hover {
  transform: translateY(-8px) scale(1.012);
  box-shadow: 0 42px 110px rgba(0, 0, 0, 0.48);
}

.story-card figure:hover::after {
  opacity: 1;
}

.story-card figure img {
  transition: transform 0.65s ease, filter 0.65s ease;
}

.story-card figure:hover img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.05) brightness(1.02);
}

.story-card figure.media-contain,
.story-card figure.media-portrait {
  justify-self: center;
  max-width: 100%;
  min-height: 0;
  background: none !important;
  box-shadow: none !important;
  border-radius: 0;
  overflow: visible;
  isolation: auto;
}

.story-card figure.media-contain {
  display: block;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: max-content;
  max-width: min(100%, 900px);
  height: auto;
  aspect-ratio: auto !important;
  padding: 0;
  border-radius: 0;
}

.story-card figure.media-contain::after {
  content: none;
}

.story-card figure.media-contain:hover {
  transform: none;
  box-shadow: none;
}

.story-card figure.media-portrait {
  width: min(44vw, 560px);
  aspect-ratio: 3 / 4;
}

.story-card figure.media-portrait::before {
  content: none;
}

.story-card figure.media-contain img,
.story-card figure.media-portrait img {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(72svh, 720px);
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38);
  filter: none;
}

.story-card figure.media-contain:hover img,
.story-card figure.media-portrait:hover img {
  transform: scale(1.012);
}

.story-card span {
  color: var(--gold);
  font-weight: 900;
}

.story-card h2 {
  margin: 14px 0 22px;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(34px, 4.2vw, 68px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.story-card p {
  color: rgba(255, 250, 242, 0.72);
  font-size: 17px;
}

blockquote {
  margin: 28px 0 0;
  padding-left: 20px;
  border-left: 2px solid var(--gold);
  color: rgba(255, 250, 242, 0.94);
  font-family: var(--serif);
  font-size: clamp(22px, 2.8vw, 36px);
  line-height: 1.32;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pillar {
  min-height: 310px;
  transform: translate3d(var(--mx, 0), var(--my, 0), 0);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.pillar:hover,
.trait-grid article:hover,
.voice-board article:hover {
  box-shadow: 0 22px 60px rgba(12, 12, 12, 0.12);
}

.skills-theater {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(30px, 6vw, 90px);
  color: var(--white);
  background: var(--coal);
}

.skills-copy h2 {
  color: var(--white);
}

.skill-bars {
  display: grid;
  gap: 18px;
}

.skill-bars article {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(120px, 280px) 48px;
  align-items: center;
  gap: 16px;
}

.skill-bars i {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.14);
}

.skill-bars b {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  transition: width 1.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.skill-bars article.is-visible b {
  width: var(--target);
}

.project-rail {
  padding-bottom: 70px;
}

.award-archive {
  padding-top: 40px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.filter-tabs button {
  min-height: 40px;
  padding: 0 16px;
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 250, 242, 0.34);
}

.filter-tabs button[aria-pressed="true"] {
  color: var(--white);
  background: var(--coal);
}

.award-list {
  display: grid;
  gap: 10px;
}

.award-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.58);
  overflow: hidden;
}

.award-item summary {
  min-height: 74px;
  display: grid;
  grid-template-columns: 132px 1fr 160px;
  gap: 16px;
  align-items: center;
  padding: 0 22px;
  cursor: pointer;
}

.award-item summary span,
.award-item summary em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.award-item summary strong {
  font-size: 18px;
}

.award-item p {
  margin: 0;
  padding: 0 22px 24px 170px;
}

.resume-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: start;
}

.resume-pdf {
  padding: clamp(78px, 10vw, 140px) clamp(20px, 6vw, 88px) 0;
}

.pdf-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.28fr) minmax(0, 0.72fr);
  gap: clamp(20px, 4vw, 54px);
  align-items: stretch;
}

.pdf-copy {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.72), rgba(255, 250, 242, 0.42));
  box-shadow: 0 24px 72px rgba(28, 24, 18, 0.1);
}

.pdf-copy p {
  color: var(--muted);
  line-height: 1.9;
}

.pdf-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.pdf-actions a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 850;
  background: rgba(255, 250, 242, 0.62);
}

.pdf-actions a:hover {
  color: var(--white);
  background: var(--coal);
}

.pdf-frame {
  width: 100%;
  height: min(84vh, 920px);
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 32px 96px rgba(12, 12, 12, 0.16);
}

.pdf-fallback {
  min-height: 420px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: clamp(28px, 5vw, 62px);
  text-align: center;
  color: var(--ink);
}

.pdf-fallback strong {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 56px);
}

.pdf-fallback a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 22px;
  border-radius: 999px;
  color: var(--white);
  background: var(--coal);
  font-weight: 850;
}

.resume-sidebar {
  position: sticky;
  top: 96px;
  padding: 28px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--coal);
  box-shadow: var(--shadow);
}

.resume-sidebar h2 {
  font-size: clamp(34px, 4vw, 56px);
}

.resume-sidebar p {
  color: rgba(255, 250, 242, 0.74);
}

.mail-button,
.print-button {
  width: 100%;
  margin-top: 16px;
  border: 0;
  color: var(--ink);
  background: var(--white);
}

.mail-button {
  min-height: 76px;
  display: grid;
  align-content: center;
  padding: 14px 18px;
  border-radius: var(--radius);
}

.mail-button span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mail-button strong {
  overflow-wrap: anywhere;
}

.print-button {
  border-radius: 999px;
}

.print-button.inline {
  width: 100%;
  margin-top: 0;
  border: 1px solid var(--line);
}

.resume-content {
  display: grid;
  gap: 18px;
}

.resume-section {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.64);
}

.resume-section h2 {
  margin-bottom: 22px;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 42px);
}

.resume-section article {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.resume-section time {
  color: var(--gold);
  font-weight: 850;
}

.resume-section h3 {
  margin-bottom: 8px;
}

.connect-stage {
  min-height: 100svh;
  height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 96px clamp(22px, 6vw, 88px) 44px;
  overflow: hidden;
  color: var(--white);
  background: #060504;
  isolation: isolate;
}

.connect-stage::before,
.connect-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.connect-stage::before {
  z-index: 1;
  background:
    radial-gradient(circle at 72% 36%, rgba(236, 190, 123, 0.18), transparent 28%),
    radial-gradient(circle at 22% 48%, rgba(199, 155, 75, 0.13), transparent 32%),
    linear-gradient(90deg, rgba(6, 5, 4, 0.82) 0%, rgba(6, 5, 4, 0.52) 32%, rgba(6, 5, 4, 0.16) 58%, rgba(6, 5, 4, 0.02) 100%);
  mix-blend-mode: multiply;
}

.connect-stage::after {
  z-index: 2;
  background:
    linear-gradient(180deg, #060504 0%, rgba(6, 5, 4, 0.04) 17%, rgba(6, 5, 4, 0.02) 76%, #060504 100%),
    linear-gradient(90deg, rgba(6, 5, 4, 0.42), rgba(6, 5, 4, 0.16) 38%, rgba(6, 5, 4, 0.04) 70%, rgba(6, 5, 4, 0.16) 100%);
}

.connect-stage figure {
  position: absolute;
  inset: 0;
  z-index: 0;
  min-height: 100%;
  height: 100%;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  background:
    linear-gradient(90deg, rgba(6, 5, 4, 0.82), rgba(6, 5, 4, 0.36) 44%, rgba(6, 5, 4, 0.12)),
    #060504;
  isolation: isolate;
}

.connect-stage figure::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 52%, rgba(255, 232, 178, 0.08), transparent 30%),
    linear-gradient(90deg, rgba(6, 5, 4, 0.58) 0%, rgba(6, 5, 4, 0.34) 28%, rgba(6, 5, 4, 0.06) 60%, rgba(6, 5, 4, 0.14) 100%),
    linear-gradient(180deg, rgba(6, 5, 4, 0.68) 0%, rgba(6, 5, 4, 0.02) 18%, rgba(6, 5, 4, 0.08) 78%, #060504 100%);
}

.connect-stage figure img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: var(--fit, cover);
  object-position: var(--pos, 52% 52%);
  opacity: 0.94;
  filter: saturate(1.03) contrast(1.03) brightness(0.9);
  mix-blend-mode: normal;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.22) 16%, #000 36%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.22) 16%, #000 36%, #000 100%);
}

.connect-card {
  position: relative;
  z-index: 3;
  width: min(700px, 48vw);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  text-shadow: 0 20px 58px rgba(0, 0, 0, 0.78);
}

.connect-card::before {
  content: "";
  position: absolute;
  inset: -46px -56px -44px -44px;
  z-index: -1;
  pointer-events: none;
  border-radius: 20px;
  background:
    radial-gradient(circle at 34% 45%, rgba(6, 5, 4, 0.5), rgba(6, 5, 4, 0.22) 48%, transparent 74%);
}

.connect-card p,
.connect-card small {
  color: rgba(255, 250, 242, 0.74);
}

.connect-card .mail-button {
  border: 1px solid rgba(255, 250, 242, 0.22);
  color: var(--white);
  background: rgba(255, 250, 242, 0.08);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.connect-card .mail-button span {
  color: rgba(255, 250, 242, 0.62);
}

.connect-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 12px;
}

.connect-actions a {
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 250, 242, 0.18);
  border-radius: 999px;
  color: rgba(255, 250, 242, 0.78);
  background: rgba(255, 250, 242, 0.06);
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.22s ease, color 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.connect-actions a:hover {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
}

.footer {
  padding: 42px clamp(28px, 6vw, 112px) 104px;
  color: #5f5f5f;
  background: #f5f5f7;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1440px;
  margin: 0 auto 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  color: #3b3b3b;
  font-size: 13px;
}

.footer-grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1fr 0.9fr;
  gap: clamp(34px, 5vw, 88px);
}

.footer-grid nav {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.footer-grid h2 {
  margin: 0 0 2px;
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 850;
}

.footer-grid a,
.footer-bottom a {
  color: #5f5f5f;
  font-size: 12.5px;
  line-height: 1.45;
}

.footer-grid a:hover,
.footer-bottom a:hover {
  color: #1d1d1f;
  text-decoration: underline;
}

.footer-bottom {
  max-width: 1440px;
  margin: 30px auto 0;
  padding-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
  gap: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.footer-bottom strong {
  color: #1d1d1f;
}

.footer-bottom p {
  margin: 5px 0 0;
  color: #727272;
  font-size: 12px;
  line-height: 1.6;
}

.dock {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 60;
  max-width: calc(100% - 24px);
  overflow-x: auto;
  padding: 8px;
  border: 1px solid rgba(255, 250, 242, 0.16);
  border-radius: 999px;
  background: rgba(13, 13, 13, 0.72);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

body.is-scrolled .dock {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

body[data-page="home"] .dock {
  display: none;
}

body[data-page="resume"] .dock {
  display: none;
}

body[data-page="connect"] {
  overflow: hidden;
  background: #050505;
}

body[data-page="connect"] #site {
  height: 100svh;
  overflow: hidden;
}

body[data-page="connect"] .footer,
body[data-page="connect"] .dock {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    gap: 6px;
    max-width: 100%;
    margin: 0 -2px;
    padding: 2px 2px 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    padding: 8px 11px;
    font-size: 13px;
    background: rgba(255, 250, 242, 0.08);
  }

  .lang {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .home-stage,
  .page-hero,
  .split-lab,
  .journey-console,
  .story-card,
  .skills-theater,
  .connect-stage,
  .pdf-layout,
  .resume-shell {
    grid-template-columns: 1fr;
  }

  .home-stage {
    min-height: 0;
    padding: 0;
  }

  .home-hero {
    min-height: max(720px, 100svh);
    padding: 104px 22px 76px;
  }

  .home-copy {
    width: min(620px, 72vw);
  }

  .home-photo {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  body[data-page="home"] .home-stage .home-photo img {
    inset: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    max-height: none;
    object-fit: cover;
    object-position: 50% 54%;
  }

  .home-pager {
    right: 24px;
  }

  .home-film {
    grid-template-columns: 42px 1fr 42px;
    gap: 12px;
    padding: 30px 22px 28px;
  }

  .home-film-track {
    overflow-x: auto;
    grid-template-columns: repeat(5, minmax(220px, 1fr));
    scrollbar-width: none;
  }

  .home-film-track::-webkit-scrollbar {
    display: none;
  }

  .home-values {
    grid-template-columns: 1fr;
  }

  .home-values > div {
    grid-template-columns: repeat(3, 1fr);
  }

  .home-bridge-grid {
    grid-template-columns: 1fr;
  }

  .home-bridge article {
    min-height: auto;
  }

  .metric-wall,
  .room-grid,
  .pillar-grid,
  .manifesto,
  .voice-board {
    grid-template-columns: repeat(2, 1fr);
  }

  .journey-index,
  .resume-sidebar {
    position: relative;
    top: auto;
    height: auto;
  }

  .journey-console {
    display: block;
  }

  .journey-index {
    position: sticky;
    top: 118px;
    z-index: 20;
    display: flex;
    gap: 10px;
    margin: 0 0 30px;
    padding: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    background: rgba(20, 19, 18, 0.84);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    scrollbar-width: none;
  }

  .journey-index::-webkit-scrollbar {
    display: none;
  }

  .journey-index a {
    flex: 0 0 min(260px, 72vw);
  }

  .journey-index a[aria-current="true"] {
    transform: translateY(-2px);
    box-shadow: inset 0 -5px 0 var(--gold), 0 18px 48px rgba(0, 0, 0, 0.28);
  }

  .story-card {
    min-height: auto;
  }

  .story-card figure {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-bottom {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 118px;
    align-items: center;
    padding: 13px 16px 10px;
    background: linear-gradient(180deg, rgba(13, 13, 13, 0.86), rgba(13, 13, 13, 0.54));
  }

  .brand span {
    font-size: 16px;
    line-height: 1.2;
  }

  .lang select {
    min-width: 104px;
    height: 42px;
    padding-left: 13px;
    padding-right: 28px;
  }

  .nav-links {
    gap: 5px;
    padding: 4px 0 2px;
  }

  .nav-links a {
    padding: 7px 8px;
    font-size: 12.5px;
    background: rgba(255, 250, 242, 0.1);
  }

  .brand small,
  .lang span,
  .identity-strip {
    display: none;
  }

  .home-title span {
    font-size: clamp(70px, 23vw, 128px);
  }

  .home-title em {
    font-size: clamp(52px, 18vw, 90px);
  }

  .home-title small {
    font-size: clamp(34px, 14vw, 70px);
  }

  .home-copy {
    width: 100%;
  }

  .home-hero {
    min-height: max(700px, 100svh);
    align-items: flex-end;
    padding: 146px 18px 58px;
  }

  .home-copy h1 {
    font-size: clamp(44px, 13vw, 68px);
  }

  .home-copy p {
    font-size: 14px;
  }

  .home-actions {
    gap: 10px;
  }

  .home-link {
    display: none;
  }

  .home-photo {
    inset: 0;
    width: 100%;
    opacity: 0.82;
  }

  .home-photo img {
    object-position: 62% 50%;
  }

  body[data-page="home"] .home-stage .home-photo img {
    inset: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    max-height: none;
    object-fit: cover;
    object-position: 68% 50%;
  }

  .home-pager {
    display: none;
  }

  .home-film {
    grid-template-columns: 1fr;
    padding: 24px 18px 28px;
  }

  .home-film button {
    display: none;
  }

  .home-film-track {
    grid-template-columns: repeat(5, minmax(210px, 1fr));
  }

  .home-values {
    padding: 28px 18px 36px;
  }

  .home-values blockquote {
    grid-template-columns: 34px 1fr;
  }

  .home-values blockquote b {
    font-size: 54px;
  }

  .home-values > div {
    grid-template-columns: 1fr;
  }

  .home-values article {
    min-height: auto;
    border-left: 0;
    border-top: 1px solid rgba(199, 155, 75, 0.24);
    padding: 18px 0;
  }

  .home-stage {
    padding-left: 0;
  }

  .metric-wall,
  .room-grid,
  .pillar-grid,
  .manifesto,
  .voice-board,
  .trait-grid {
    grid-template-columns: 1fr;
  }

  .chapter-lab,
  .manifesto,
  .room-grid,
  .split-lab,
  .voice-board,
  .journey-console,
  .evidence-system,
  .skills-theater,
  .project-rail,
  .award-archive,
  .resume-shell {
    padding: 70px 18px;
  }

  .journey-console {
    padding: 48px 18px 72px;
    overflow: hidden;
  }

  .journey-index {
    position: relative;
    top: auto;
    margin: 0 -18px 34px;
    padding: 10px 18px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .journey-index a {
    flex-basis: min(260px, 78vw);
    min-height: 96px;
    padding: 12px 13px;
  }

  .story-stack {
    gap: 46px;
  }

  .story-card {
    display: block;
    padding-bottom: 44px;
    scroll-margin-top: 170px;
  }

  .story-card h2 {
    margin: 10px 0 18px;
    font-size: clamp(34px, 10vw, 52px);
    line-height: 1.08;
  }

  .story-card p {
    font-size: 15px;
    line-height: 1.86;
  }

  .story-card blockquote {
    margin-top: 22px;
    font-size: clamp(22px, 7vw, 30px);
  }

  .chapter-row,
  .project-row,
  .award-item summary,
  .resume-section article,
  .skill-bars article {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-breadcrumb,
  .footer-bottom {
    align-items: start;
  }

  .pdf-frame {
    min-height: 520px;
  }

  .chapter-row i {
    display: none;
  }

  .page-hero {
    min-height: auto;
    padding: 154px 18px 58px;
  }

  body[data-page="about"] .page-hero,
  body[data-page="work"] .page-hero,
  body[data-page="resume"] .page-hero,
  body[data-page="journey"] .page-hero {
    min-height: 100svh;
    padding: 154px 18px 70px;
  }

  .connect-stage {
    justify-content: flex-start;
    padding: 138px 20px 38px;
  }

  .connect-stage::before {
    background:
      radial-gradient(circle at 38% 42%, rgba(255, 214, 154, 0.16), transparent 28%),
      linear-gradient(180deg, rgba(5, 5, 5, 0.18), rgba(5, 5, 5, 0.48) 52%, rgba(5, 5, 5, 0.82));
  }

  .connect-stage::after {
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0.58), transparent 24%, rgba(5, 5, 5, 0.84)),
      linear-gradient(90deg, rgba(5, 5, 5, 0.08), rgba(5, 5, 5, 0.36) 54%, rgba(5, 5, 5, 0.78));
  }

  .connect-stage figure img {
    width: 100%;
    margin-left: 0;
    object-fit: cover;
    object-position: 68% 4%;
  }

  .connect-card {
    align-self: flex-end;
    width: min(620px, 100%);
  }

  .page-hero-image,
  .portrait-slice {
    height: 360px;
    min-height: 0;
  }

  .story-card figure:not(.media-contain):not(.media-portrait) {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    margin-bottom: 22px;
  }

  .story-card figure.media-contain,
  .story-card figure.media-portrait {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-bottom: 22px;
  }

  .story-card figure.media-contain img,
  .story-card figure.media-portrait img {
    width: 100%;
    max-height: none;
  }

  .dock {
    display: none;
  }

  .award-item p {
    padding: 0 22px 24px;
  }

  .dock a {
    font-size: 13px;
  }
}

html[dir="rtl"] body {
  text-align: right;
}

html[dir="rtl"] .site-header,
html[dir="rtl"] .footer-bottom,
html[dir="rtl"] .footer-breadcrumb,
html[dir="rtl"] .page-hero,
html[dir="rtl"] .connect-stage,
html[dir="rtl"] .resume-shell,
html[dir="rtl"] .journey-console {
  direction: rtl;
}

html[dir="rtl"] .nav-links,
html[dir="rtl"] .dock,
html[dir="rtl"] .filter-tabs,
html[dir="rtl"] .pdf-actions {
  direction: rtl;
}

html[dir="rtl"] .brand,
html[dir="rtl"] .identity-strip,
html[dir="rtl"] .home-title {
  direction: ltr;
}

@media print {
  .site-header,
  .footer,
  .dock,
  .page-hero,
  .print-button {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .resume-shell {
    display: block;
    padding: 0;
  }

  .resume-sidebar,
  .resume-section {
    box-shadow: none;
    color: #000;
    background: #fff;
    border-color: #ddd;
  }

  .resume-sidebar {
    position: static;
    margin-bottom: 18px;
  }
}
