:root {
  color-scheme: dark;
  --ink: #f4f1ec;
  --ink-muted: #a9a6a6;
  --ink-faint: #74747a;
  --paper: #080a0f;
  --paper-soft: #0e1118;
  --paper-raised: #131720;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --rose: #d4869f;
  --rose-bright: #f0a8bd;
  --green: #9eba91;
  --accent: var(--rose-bright);
  --accent-hover: #f7b9ca;
  --accent-ink: #1b1115;
  --header-bg: rgba(7, 9, 14, 0.72);
  --header-bg-scrolled: rgba(7, 9, 14, 0.92);
  --header-height: 76px;
  --page-pad: clamp(22px, 4.8vw, 82px);
  --content-max: 1540px;
  --radius: 6px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.home-page {
  color-scheme: dark;
  --ink: #f4f1ec;
  --ink-muted: #c3bcc0;
  --ink-faint: #8b878d;
  --paper: #07090e;
  --paper-soft: #0c1017;
  --paper-raised: #11151e;
  --line: rgba(244, 241, 236, 0.13);
  --line-strong: rgba(244, 241, 236, 0.24);
  --rose: #d4869f;
  --rose-bright: #f0a8bd;
  --green: #9eba91;
  --accent: var(--rose-bright);
  --accent-hover: #f7b9ca;
  --accent-ink: #1b1115;
  --header-bg: rgba(7, 9, 14, 0.72);
  --header-bg-scrolled: rgba(7, 9, 14, 0.93);
  --radius: 8px;
  --shadow: 0 28px 72px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  color: var(--accent-ink);
  background: var(--accent);
}

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

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

button,
a,
input,
textarea,
label {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

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

h1,
h2,
h3,
p,
dl,
dd,
ol,
ul,
fieldset {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

fieldset {
  min-width: 0;
  padding: 0;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (pointer: fine) {
  .site-shell[data-current-view="home"],
  .site-shell[data-current-view="home"] * {
    cursor: url("assets/jayden-arrow-cursor.svg") 4 4, auto;
  }

  .site-shell[data-current-view="home"] a,
  .site-shell[data-current-view="home"] button,
  .site-shell[data-current-view="home"] label,
  .site-shell[data-current-view="home"] input,
  .site-shell[data-current-view="home"] textarea {
    cursor: url("assets/jayden-cursor.svg") 10 4, pointer;
  }
}

.site-shell {
  position: relative;
  min-height: 100dvh;
  isolation: isolate;
}

.home-page .site-shell {
  overflow-x: clip;
}

.home-entry-pending .home-page .site-header,
.home-entry-pending .home-page [data-home-entry],
.home-entry-pending .home-page [data-hero-copy] > * {
  visibility: hidden;
}

.home-entry-pending .home-page .hero-night-veil {
  opacity: 0;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  width: 100%;
  height: var(--header-height);
  padding: 0 var(--page-pad);
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  transition: background 240ms ease, border-color 240ms ease, transform 240ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line-strong);
  background: var(--header-bg-scrolled);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  width: fit-content;
  transition: transform 220ms var(--ease-out);
}

.brand:hover {
  transform: translateY(-2px);
}

.brand-orbit {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transform: rotate(-24deg);
}

.brand-orbit::after {
  position: absolute;
  width: 48px;
  height: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 72%, transparent);
  border-radius: 50%;
  content: "";
}

.brand-orbit i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.1;
}

.brand-copy small {
  color: var(--ink-muted);
  font-size: 10px;
  line-height: 1.2;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 3.4vw, 52px);
}

.site-nav a {
  position: relative;
  padding: 9px 0;
  color: var(--ink-muted);
  font-size: 13px;
  transition: color 180ms ease, transform 220ms var(--ease-out);
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms var(--ease-out);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
  transform: translateY(-1px);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.header-actions a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  transition: transform 220ms var(--ease-out), border-color 180ms ease, background 180ms ease;
}

.header-actions a:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-3px);
}

.header-note {
  color: var(--accent-ink);
  border-color: var(--accent) !important;
  background: var(--accent);
}

.header-note:hover {
  background: var(--accent-hover) !important;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(520px, 1.08fr);
  gap: clamp(56px, 6vw, 110px);
  height: 100dvh;
  min-height: 100dvh;
  align-items: center;
  padding: calc(var(--header-height) + 48px) var(--page-pad) 54px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  isolation: isolate;
}

.hero-night,
.hero-night-image,
.hero-night-veil {
  position: absolute;
  inset: 0;
}

.hero-night {
  z-index: -1;
  overflow: hidden;
  background: #080b12;
}

.hero-night-image {
  inset: -2%;
  background-image: url("assets/shanghai-night-hero.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.04);
  will-change: transform;
}

.hero-night-veil {
  background:
    radial-gradient(circle at 71% 48%, rgba(8, 10, 16, 0.1) 0%, rgba(8, 10, 16, 0.48) 58%, rgba(8, 10, 16, 0.72) 100%),
    linear-gradient(180deg, rgba(5, 7, 12, 0.32), rgba(5, 7, 12, 0.16) 42%, rgba(5, 7, 12, 0.68) 100%),
    linear-gradient(90deg, rgba(5, 7, 12, 0.5), rgba(5, 7, 12, 0.26) 42%, rgba(5, 7, 12, 0.58));
  will-change: opacity;
}

.header-sentinel {
  position: absolute;
  top: 18px;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.hero-portrait {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  width: min(100%, 500px);
  min-width: 0;
  margin: 0;
  perspective: 1200px;
  will-change: transform, opacity;
}

.hero-portrait::before {
  position: absolute;
  top: 9%;
  bottom: 9%;
  left: -17px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #3b3f46, #d8dadd 18%, #565b63 52%, #f0a8bd 76%, #343840);
  box-shadow: -6px 0 20px rgba(240, 168, 189, 0.16), 2px 0 8px rgba(255, 255, 255, 0.24);
  content: "";
  pointer-events: none;
}

.portrait-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  padding: clamp(13px, 1.4vw, 19px);
  overflow: hidden;
  border: 1px solid rgba(239, 241, 243, 0.58);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0, rgba(255, 255, 255, 0.05) 15%, transparent 32%),
    linear-gradient(112deg, #232830 0%, #b9bdc1 8%, #3f454d 20%, #e1e3e4 34%, #4c525a 48%, #9a9fa5 66%, #292e36 82%, #747981 100%);
  box-shadow:
    0 34px 74px rgba(0, 0, 0, 0.46),
    0 0 0 5px rgba(4, 6, 10, 0.54),
    0 0 0 6px rgba(240, 168, 189, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(0, 0, 0, 0.7);
  transform-style: preserve-3d;
  will-change: transform;
}

.portrait-frame::before {
  position: absolute;
  z-index: 2;
  inset: 7px;
  border: 1px solid rgba(18, 21, 27, 0.76);
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.26),
    0 0 18px rgba(0, 0, 0, 0.42);
  content: "";
  pointer-events: none;
}

.portrait-frame::after {
  position: absolute;
  z-index: 4;
  right: 10%;
  bottom: 5px;
  left: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 168, 189, 0.82), transparent);
  box-shadow: 0 0 12px rgba(240, 168, 189, 0.38);
  content: "";
  pointer-events: none;
}

.portrait-window {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(4, 6, 10, 0.88);
  border-radius: 6px;
  background: #11141a;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 0 38px rgba(0, 0, 0, 0.4);
}

.portrait-window::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 28%),
    linear-gradient(180deg, transparent 62%, rgba(6, 8, 13, 0.24));
  content: "";
  pointer-events: none;
}

.portrait-window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 47% 32%;
  filter: saturate(0.88) contrast(1.02);
  transform: scale(1.16);
  will-change: transform;
}

.portrait-frame-shine {
  position: absolute;
  z-index: 5;
  top: -24%;
  bottom: -24%;
  left: -42%;
  width: 28%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.74), rgba(240, 168, 189, 0.26), transparent);
  mix-blend-mode: screen;
  pointer-events: none;
  transform: skewX(-18deg);
  will-change: transform, opacity;
}

.portrait-fastener {
  position: absolute;
  z-index: 6;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(10, 12, 17, 0.74);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, #ffffff 0 8%, #b8bcc1 24%, #4a5058 58%, #171b21 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.36), 0 2px 4px rgba(0, 0, 0, 0.52);
}

.portrait-fastener-tl,
.portrait-fastener-bl {
  left: 5px;
}

.portrait-fastener-tr,
.portrait-fastener-br {
  right: 5px;
}

.portrait-fastener-tl,
.portrait-fastener-tr {
  top: 5px;
}

.portrait-fastener-bl,
.portrait-fastener-br {
  bottom: 5px;
}

.hero-copy {
  position: relative;
  z-index: 3;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: start;
  width: min(100%, 680px);
  padding: 18px 0 10px;
}

.eyebrow,
.section-index {
  color: var(--ink-muted);
  font-size: 11px;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 24px;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.hero h1 {
  max-width: 100%;
  font-size: clamp(74px, 8.6vw, 132px);
  font-weight: 310;
  letter-spacing: -0.065em;
  line-height: 0.88;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.hero-lede {
  max-width: 510px;
  margin-top: 30px;
  color: var(--ink-muted);
  font-size: clamp(18px, 1.55vw, 24px);
  font-weight: 390;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-width: 176px;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 13px;
  transition: transform 240ms var(--ease-out), box-shadow 240ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

.button:active {
  transform: translateY(-1px) scale(0.985);
}

.button-primary {
  color: var(--accent-ink);
  border-color: var(--accent);
  background: var(--accent);
}

.button-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 18px 38px rgba(240, 168, 189, 0.18);
}

.button-quiet {
  color: var(--ink);
  background: rgba(7, 9, 14, 0.48);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.button-quiet:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
}

.work-band,
.path-band,
.profile-band {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(90px, 11vw, 170px) var(--page-pad);
}

.work-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(560px, 1.4fr);
  gap: clamp(56px, 8vw, 132px);
}

.section-heading {
  align-self: start;
  position: sticky;
  top: calc(var(--header-height) + 46px);
}

.section-heading h2,
.path-intro h2,
.profile-statement h2,
.board-intro h1 {
  margin-top: 0;
  font-size: clamp(40px, 4.8vw, 76px);
  font-weight: 280;
  line-height: 1.02;
}

.board-intro .section-index + h1 {
  margin-top: 24px;
}

.section-heading > p:last-child {
  max-width: 440px;
  margin-top: 30px;
  color: var(--ink-muted);
  font-size: 15px;
}

.featured-work,
.secondary-work,
.path-list li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  transition: transform 260ms var(--ease-out), border-color 220ms ease, background 220ms ease, box-shadow 260ms ease;
}

.interactive-surface:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
  transform: translateY(-7px);
}

.interactive-surface:active {
  transform: translateY(-2px) scale(0.995);
}

.featured-work {
  position: relative;
  display: grid;
  min-height: 440px;
  padding: clamp(28px, 4vw, 58px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(240, 168, 189, 0.075), rgba(255, 255, 255, 0.025) 45%, rgba(7, 9, 14, 0.22));
}

.featured-work::after {
  display: none;
}

.featured-status {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-muted);
  font-size: 10px;
  text-transform: uppercase;
}

.status-light {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.featured-main {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 600px;
  padding: 46px 0;
}

.project-kicker {
  color: var(--accent);
  font-size: 10px;
  text-transform: uppercase;
}

.featured-main h3 {
  margin-top: 10px;
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 300;
  line-height: 1.05;
}

.featured-main > p:last-child {
  max-width: 520px;
  margin-top: 22px;
  color: var(--ink-muted);
}

.featured-facts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: calc(100% - 100px);
  border-top: 1px solid var(--line);
}

.featured-facts div {
  padding: 18px 12px 0 0;
}

.featured-facts dt {
  color: var(--ink-faint);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

.featured-facts dd {
  margin-top: 4px;
  font-size: 12px;
}

.project-arrow {
  position: absolute;
  z-index: 2;
  right: clamp(28px, 4vw, 58px);
  bottom: clamp(28px, 4vw, 58px);
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-muted);
  font-size: 11px;
  transition: color 180ms ease, transform 220ms var(--ease-out);
}

.project-arrow span:last-child {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.project-arrow:hover {
  color: var(--ink);
  transform: translateY(-4px);
}

.secondary-work {
  display: grid;
  grid-column: 2;
  grid-template-columns: minmax(190px, 0.8fr) minmax(260px, 1.2fr) auto;
  align-items: center;
  gap: 32px;
  margin-top: 18px;
  padding: 28px 30px;
}

.secondary-work h3 {
  margin-top: 5px;
  font-size: 21px;
  font-weight: 430;
}

.secondary-work > p {
  color: var(--ink-muted);
  font-size: 13px;
}

.secondary-work > a,
.text-link {
  color: var(--accent);
  font-size: 12px;
  white-space: nowrap;
}

.secondary-work > a {
  transition: transform 220ms var(--ease-out);
}

.secondary-work > a:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.path-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(560px, 1.4fr);
  gap: clamp(56px, 8vw, 132px);
  border-top: 1px solid var(--line);
}

.path-intro h2 {
  max-width: 540px;
  font-size: clamp(38px, 4vw, 62px);
}

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

.path-list li {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: start;
  gap: 24px;
  margin-top: -1px;
  padding: 28px 22px;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}

.path-list li > span {
  color: var(--ink-faint);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.path-list h3 {
  font-size: 19px;
  font-weight: 450;
}

.path-list p {
  max-width: 550px;
  margin-top: 8px;
  color: var(--ink-muted);
  font-size: 13px;
}

.path-list small {
  color: var(--ink-faint);
  font-size: 10px;
  text-transform: uppercase;
}

.profile-band {
  display: grid;
  grid-template-columns: minmax(420px, 1.1fr) minmax(400px, 0.9fr);
  gap: clamp(70px, 11vw, 170px);
  border-top: 1px solid var(--line);
}

.profile-statement > p:not(.section-index) {
  max-width: 660px;
  margin-top: 28px;
  color: var(--ink-muted);
  font-size: 15px;
}

.profile-statement .text-link {
  display: inline-flex;
  gap: 20px;
  margin-top: 36px;
}

.profile-ledger {
  border-top: 1px solid var(--line-strong);
}

.profile-ledger > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 220ms var(--ease-out), background 220ms ease;
}

.profile-ledger > div:hover {
  padding-right: 18px;
  padding-left: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.profile-ledger span {
  grid-row: 1 / span 2;
  color: var(--ink-faint);
  font-size: 10px;
  text-transform: uppercase;
}

.profile-ledger strong {
  font-size: 17px;
  font-weight: 470;
}

.profile-ledger p {
  color: var(--ink-muted);
  font-size: 12px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 124px;
  padding: 28px var(--page-pad);
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 10px;
  text-transform: uppercase;
}

.site-footer a {
  color: var(--ink);
  font-size: 11px;
  transition: color 180ms ease, transform 220ms var(--ease-out);
}

.site-footer a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.site-footer p:last-child {
  justify-self: end;
}

.page-transition {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  overflow: hidden;
  place-items: center;
  pointer-events: none;
  visibility: hidden;
  color: #f4f1ec;
  background: #151a16;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.page-transition[data-transition-mode="profile"] {
  color: #f4f1ec;
  background: #07090e;
}

.transition-night,
.transition-veil {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.transition-night {
  background-image: url("assets/shanghai-night-hero.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.045);
  will-change: transform, opacity;
}

.transition-veil {
  background:
    linear-gradient(180deg, rgba(6, 8, 13, 0.18), rgba(6, 8, 13, 0.76)),
    linear-gradient(90deg, rgba(6, 8, 13, 0.7), rgba(6, 8, 13, 0.18) 48%, rgba(6, 8, 13, 0.52));
  will-change: opacity;
}

.transition-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  color: rgba(244, 241, 236, 0.68);
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  will-change: transform, opacity;
}

.transition-copy span {
  color: var(--rose-bright);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.transition-copy strong {
  color: #f4f1ec;
  font-size: clamp(36px, 6vw, 84px);
  font-weight: 280;
  letter-spacing: -0.055em;
  line-height: 0.95;
  text-transform: none;
}

.transition-line {
  position: absolute;
  z-index: 2;
  top: calc(50% + clamp(48px, 6vw, 76px));
  left: 50%;
  width: min(440px, 72vw);
  height: 1px;
  background: rgba(244, 241, 236, 0.22);
  transform: translate(-50%, -50%) scaleX(0);
  will-change: transform;
}

.page-transition[data-transition-mode="profile"] .transition-line {
  background: rgba(240, 168, 189, 0.42);
}

/* Profile message wall */
.profile-page {
  position: relative;
  background: #07090e;
  isolation: isolate;
}

.profile-page .site-shell {
  overflow-x: clip;
}

.profile-page::before {
  position: fixed;
  z-index: -3;
  inset: 0;
  background-image: url("assets/shanghai-night-hero.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  content: "";
}

.profile-page::after {
  position: fixed;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 8, 13, 0.18), rgba(6, 8, 13, 0.76)),
    linear-gradient(90deg, rgba(6, 8, 13, 0.7), rgba(6, 8, 13, 0.18) 48%, rgba(6, 8, 13, 0.52));
  content: "";
}

.profile-entry-pending .profile-page [data-profile-entry] {
  visibility: hidden;
}

.profile-page .site-header {
  position: sticky;
}

.board-main {
  width: min(var(--content-max), 100%);
  margin: 0 auto;
  padding: clamp(68px, 8vw, 118px) var(--page-pad) clamp(90px, 12vw, 170px);
}

.board-intro {
  display: grid;
  grid-template-columns: minmax(420px, 1.15fr) minmax(280px, 0.6fr);
  align-items: end;
  gap: 80px;
  margin-bottom: 56px;
}

.board-intro h1 {
  max-width: 820px;
  font-size: clamp(56px, 7vw, 108px);
  line-height: 0.94;
}

.board-title-line {
  display: block;
  will-change: transform, opacity;
}

.board-intro h1 .title-accent {
  color: var(--rose-bright);
}

.board-intro-copy {
  max-width: 430px;
  padding-bottom: 8px;
  color: var(--ink-muted);
  font-size: 14px;
}

.board-intro-copy p + p {
  margin-top: 16px;
}

.local-note {
  color: var(--ink-faint);
  font-size: 10px;
  text-transform: uppercase;
}

.danmaku-panel {
  border-top: 0;
}

.danmaku-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
  color: var(--ink-muted);
  font-size: 10px;
  text-transform: uppercase;
}

.toolbar-meta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.toolbar-meta span:first-child {
  color: var(--rose-bright);
}

.motion-toggle {
  display: inline-flex;
  min-width: 82px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 10, 15, 0.58);
  font-size: 10px;
  text-transform: uppercase;
  transition: transform 220ms var(--ease-out), border-color 180ms ease, background 180ms ease;
}

.motion-toggle:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}

.danmaku-stage {
  position: relative;
  min-height: clamp(360px, 47vw, 650px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(4, 6, 10, 0.54);
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.28);
  isolation: isolate;
}

.danmaku-stage::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 73% 28%, rgba(212, 134, 159, 0.14), transparent 28%),
    linear-gradient(90deg, rgba(5, 7, 11, 0.68), transparent 25%, transparent 75%, rgba(5, 7, 11, 0.72));
  content: "";
}

.stage-empty {
  position: absolute;
  top: 50%;
  left: 50%;
  color: var(--ink-faint);
  font-size: 12px;
  transform: translate(-50%, -50%);
}

.danmaku-item {
  position: absolute;
  z-index: 2;
  top: var(--lane-top, 20px);
  left: 100%;
  display: inline-flex;
  width: max-content;
  max-width: min(680px, 86vw);
  align-items: center;
  gap: 10px;
  padding: 8px 13px;
  border: 1px solid color-mix(in srgb, var(--bullet-color) 40%, transparent);
  border-radius: 999px;
  color: var(--bullet-color, #f4f1ec);
  background: rgba(7, 9, 14, 0.72);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
  font-size: clamp(12px, 1.1vw, 15px);
  white-space: nowrap;
  will-change: transform;
  animation: danmaku-travel var(--duration, 18s) linear var(--delay, 0s) infinite;
}

.danmaku-item strong {
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
}

.danmaku-stage.is-paused .danmaku-item,
.danmaku-stage.is-entering .danmaku-item {
  animation-play-state: paused;
}

@keyframes danmaku-travel {
  to { transform: translate3d(calc(-1 * var(--travel, 1800px)), 0, 0); }
}

.message-compose {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(44px, 8vw, 120px);
  padding: clamp(62px, 8vw, 110px) 0;
  border-bottom: 1px solid var(--line);
}

.compose-heading h2,
.recent-heading h2 {
  margin-top: 0;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.05;
}

.compose-heading > p:last-child {
  max-width: 520px;
  margin-top: 20px;
  color: var(--ink-muted);
  font-size: 13px;
}

.message-form {
  display: grid;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-label,
.message-form legend {
  color: var(--ink-muted);
  font-size: 10px;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
  background: rgba(8, 10, 15, 0.7);
  transition: border-color 180ms ease, background 180ms ease, transform 220ms var(--ease-out);
}

.field input {
  height: 48px;
  padding: 0 14px;
}

.field textarea {
  min-height: 104px;
  padding: 13px 14px;
  resize: vertical;
}

.field input:hover,
.field textarea:hover,
.field input:focus,
.field textarea:focus {
  border-color: var(--line-strong);
  background: rgba(14, 17, 24, 0.88);
  transform: translateY(-2px);
}

.message-field-meta {
  display: flex;
  justify-content: space-between;
  color: var(--ink-faint);
  font-size: 9px;
}

.tag-options,
.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
}

.tag-options input,
.color-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.tag-options label {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-muted);
  font-size: 10px;
  transition: transform 220ms var(--ease-out), border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.tag-options label:hover {
  border-color: var(--line-strong);
  color: var(--ink);
  transform: translateY(-3px);
}

.tag-options input:checked + label {
  color: #1b1115;
  border-color: var(--rose-bright);
  background: var(--rose-bright);
}

.color-options label {
  position: relative;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform 220ms var(--ease-out), border-color 180ms ease;
}

.color-options label::after {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--swatch);
  content: "";
}

.color-options label:hover {
  transform: translateY(-3px);
}

.color-options input:checked + label {
  border-color: var(--swatch);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--swatch) 22%, transparent);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.form-status {
  min-height: 20px;
  color: var(--ink-muted);
  font-size: 11px;
}

.form-status.is-error {
  color: #f4a3a3;
}

.submit-message {
  display: inline-flex;
  min-width: 168px;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 0 17px;
  border-radius: var(--radius);
  color: #1b1115;
  background: var(--rose-bright);
  font-size: 12px;
  transition: transform 220ms var(--ease-out), background 180ms ease, box-shadow 220ms ease;
}

.submit-message:hover {
  background: #f7b9ca;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
  transform: translateY(-4px);
}

.recent-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.48fr) minmax(520px, 1.2fr);
  gap: clamp(50px, 9vw, 140px);
  padding-top: clamp(62px, 8vw, 110px);
}

.recent-heading h2 {
  font-size: clamp(31px, 3.4vw, 48px);
}

.clear-local-messages {
  margin-top: 24px;
  padding: 0 0 4px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-faint);
  background: transparent;
  font-size: 9px;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease, transform 220ms var(--ease-out);
}

.clear-local-messages:hover {
  color: var(--ink);
  border-color: var(--rose-bright);
  transform: translateY(-2px);
}

.recent-messages {
  border-top: 1px solid var(--line-strong);
}

.recent-message {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) auto;
  gap: 24px;
  padding: 20px 8px;
  border-bottom: 1px solid var(--line);
  transition: padding 220ms var(--ease-out), background 180ms ease, transform 220ms var(--ease-out);
}

.recent-message:hover {
  padding-right: 16px;
  padding-left: 16px;
  background: rgba(255, 255, 255, 0.035);
  transform: translateY(-2px);
}

.recent-message > span:first-child {
  color: var(--message-color, var(--rose-bright));
  font-size: 10px;
  text-transform: uppercase;
}

.recent-message p {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.recent-message time {
  color: var(--ink-faint);
  font-size: 9px;
  white-space: nowrap;
}

.board-footer {
  background: rgba(7, 9, 14, 0.62);
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(300px, 0.86fr) minmax(420px, 1.14fr);
    gap: clamp(38px, 5vw, 64px);
  }

  .hero-portrait {
    width: min(100%, 430px);
  }

  .hero-copy {
    width: min(100%, 610px);
    padding-right: 0;
    padding-left: 0;
  }

  .work-band,
  .path-band {
    grid-template-columns: 1fr;
  }

  .section-heading {
    position: static;
  }

  .section-heading > p:last-child {
    max-width: 600px;
  }

  .profile-band {
    gap: 72px;
  }

  .secondary-work {
    grid-column: auto;
    grid-template-columns: 1fr 1.3fr;
  }

  .secondary-work > a {
    grid-column: 2;
  }

  .board-intro,
  .message-compose,
  .recent-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
    --page-pad: 20px;
  }

  .site-header {
    height: var(--header-height);
    padding-right: 14px;
  }

  .brand-copy small,
  .header-github {
    display: none !important;
  }

  .brand-orbit {
    width: 34px;
    height: 34px;
  }

  .brand-orbit::after {
    width: 42px;
  }

  .header-actions a {
    min-height: 36px;
    padding: 0 13px;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 28px;
    min-height: 100dvh;
    height: auto;
    max-height: none;
    align-content: center;
    align-items: center;
    padding: calc(var(--header-height) + 30px) var(--page-pad) 38px;
    background: var(--paper);
  }

  .hero-night-image {
    background-position: 28% center;
  }

  .hero-night-veil {
    background:
      linear-gradient(180deg, rgba(5, 7, 12, 0.5), rgba(5, 7, 12, 0.36) 45%, rgba(5, 7, 12, 0.78) 100%),
      linear-gradient(90deg, rgba(5, 7, 12, 0.48), rgba(5, 7, 12, 0.3) 50%, rgba(5, 7, 12, 0.58));
  }

  .hero-portrait {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    width: min(74vw, 300px);
  }

  .hero-portrait::before {
    left: -12px;
    width: 3px;
  }

  .portrait-frame {
    padding: 12px;
    border-radius: 10px;
  }

  .portrait-window img {
    object-position: 47% 31%;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .eyebrow {
    margin-bottom: 15px;
  }

  .hero h1 {
    font-size: clamp(54px, 17vw, 72px);
  }

  .hero-lede {
    max-width: 480px;
    margin-top: 18px;
    font-size: 18px;
  }

  .hero-actions {
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: 24px;
  }

  .button {
    min-height: 48px;
    min-width: 0;
    flex: 1 1 0;
    gap: 12px;
    padding: 0 16px;
  }

  .work-band,
  .path-band,
  .profile-band {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .section-heading h2,
  .path-intro h2,
  .profile-statement h2 {
    font-size: clamp(36px, 11vw, 52px);
  }

  .featured-work {
    min-height: 510px;
    padding: 26px 22px;
  }

  .featured-main {
    padding: 42px 0 74px;
  }

  .featured-facts {
    grid-template-columns: 1fr;
    width: 60%;
  }

  .featured-facts div:not(:first-child) {
    display: none;
  }

  .project-arrow {
    right: 22px;
    bottom: 24px;
  }

  .secondary-work {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 22px;
  }

  .secondary-work > a {
    grid-column: auto;
  }

  .path-list li {
    grid-template-columns: 32px 1fr;
    gap: 14px;
    padding: 24px 8px;
  }

  .path-list small {
    display: none;
  }

  .profile-band {
    grid-template-columns: 1fr;
  }

  .profile-ledger > div {
    grid-template-columns: 74px 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    min-height: 110px;
  }

  .site-footer p:first-child {
    display: none;
  }

  .board-main {
    padding-top: 54px;
  }

  .profile-page::before {
    background-position: 28% center;
  }

  .transition-night {
    background-position: 28% center;
  }

  .board-intro {
    gap: 28px;
    margin-bottom: 42px;
  }

  .board-intro h1 {
    font-size: clamp(52px, 16vw, 78px);
  }

  .danmaku-stage {
    min-height: 430px;
  }

  .danmaku-item {
    max-width: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .submit-message {
    width: 100%;
  }

  .recent-message {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
  }

  .recent-message time {
    grid-column: 2;
  }
}

@media (max-width: 420px) {
  .brand-copy strong {
    font-size: 12px;
  }

  .header-note {
    font-size: 10px !important;
  }

  .hero-actions {
    flex-direction: row;
  }

  .button {
    width: auto;
    flex-basis: 0;
  }

  .danmaku-toolbar {
    align-items: flex-start;
    gap: 12px;
  }

  .toolbar-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 350px) {
  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
    flex-basis: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-portrait img {
    transform: none !important;
  }

  .danmaku-stage.is-reduced {
    display: grid;
    align-content: center;
    gap: 10px;
    padding: 24px;
  }

  .danmaku-stage.is-reduced .danmaku-item {
    position: static;
    width: fit-content;
    max-width: 100%;
    white-space: normal;
    animation: none !important;
    transform: none !important;
  }
}
