:root {
  --page: #f6f9fc;
  --card: rgba(255, 255, 255, 0.88);
  --card-solid: #ffffff;
  --ink: #101828;
  --ink-soft: #344054;
  --muted: #667085;
  --subtle: #98a2b3;
  --line: rgba(16, 24, 40, 0.1);
  --line-strong: rgba(16, 24, 40, 0.18);
  --accent: #d64b35;
  --accent-soft: rgba(214, 75, 53, 0.1);
  --accent-line: rgba(214, 75, 53, 0.3);
  --cool: #dff2fb;
  --warm: #f7e7e2;
  --shadow: 0 20px 46px rgba(29, 41, 57, 0.08), 0 44px 120px rgba(29, 41, 57, 0.06);
  --panel-radius: 28px;
  --inner-radius: 18px;
  --font-sans: "Manrope", "Noto Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  color-scheme: light;
}

html.dark {
  --page: #0d141d;
  --card: rgba(21, 30, 42, 0.82);
  --card-solid: #151e2a;
  --ink: #f5f7fb;
  --ink-soft: #d5ddeb;
  --muted: #a5b4c7;
  --subtle: #718198;
  --line: rgba(226, 232, 240, 0.13);
  --line-strong: rgba(226, 232, 240, 0.22);
  --accent: #ff725b;
  --accent-soft: rgba(255, 114, 91, 0.13);
  --accent-line: rgba(255, 114, 91, 0.36);
  --cool: rgba(56, 189, 248, 0.16);
  --warm: rgba(255, 114, 91, 0.14);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.3), 0 48px 140px rgba(0, 0, 0, 0.26);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at 15% 10%, rgba(91, 193, 232, 0.18), transparent 30rem),
    radial-gradient(circle at 88% 30%, rgba(214, 75, 53, 0.12), transparent 28rem),
    linear-gradient(180deg, #f9fbfe 0%, var(--page) 54%, #edf6fb 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

html.dark body {
  background:
    radial-gradient(circle at 13% 12%, rgba(56, 189, 248, 0.14), transparent 30rem),
    radial-gradient(circle at 88% 28%, rgba(255, 114, 91, 0.14), transparent 30rem),
    linear-gradient(180deg, #111b28 0%, var(--page) 58%, #081019 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.08));
}

html.dark body::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
  cursor: pointer;
}

button:active,
a:active {
  transform: translateY(1px);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(214, 75, 53, 0.42);
  outline-offset: 4px;
}

.material-symbols-rounded {
  direction: ltr;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0 !important;
  font-style: normal;
  font-weight: 800;
  letter-spacing: normal;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  -webkit-font-smoothing: antialiased;
}

.material-symbols-rounded::before {
  content: attr(data-symbol);
  font-size: var(--icon-size, 18px);
  line-height: 1;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 50;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card-solid);
  box-shadow: var(--shadow);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(72, 90, 112, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 90, 112, 0.055) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, black 0%, rgba(0, 0, 0, 0.88) 64%, transparent 100%);
}

html.dark .page-grid {
  background-image:
    linear-gradient(rgba(226, 232, 240, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 232, 240, 0.05) 1px, transparent 1px);
}

.floating-controls {
  position: fixed;
  top: clamp(70px, 7.5vh, 94px);
  right: clamp(16px, 2.8vw, 42px);
  z-index: 20;
  display: grid;
  gap: 12px;
}

.control-button {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  background: var(--card);
  box-shadow: 0 14px 34px rgba(29, 41, 57, 0.08);
  backdrop-filter: blur(18px) saturate(150%);
  transition:
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 220ms ease,
    color 220ms ease,
    background 220ms ease;
}

.control-button:hover {
  color: var(--accent);
  border-color: var(--accent-line);
  transform: translateY(-2px);
}

.stage-shell {
  width: min(1360px, calc(100% - 80px));
  min-height: calc(100dvh - 110px);
  margin: 0 auto;
  padding-top: clamp(44px, 7.4vh, 88px);
  display: grid;
  grid-template-columns: 420px minmax(440px, 1fr) 410px;
  gap: 22px;
  align-items: start;
}

.panel-card {
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(145%);
}

.profile-card {
  min-height: clamp(780px, calc(100dvh - 176px), 960px);
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 40px;
}

.portrait-shell {
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.26)),
    rgba(255, 255, 255, 0.44);
}

html.dark .portrait-shell {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(15, 23, 42, 0.54);
}

.portrait-window {
  position: relative;
  height: clamp(330px, 37vh, 400px);
  overflow: hidden;
  border-radius: 16px;
  background:
    radial-gradient(circle at 24% 16%, rgba(91, 193, 232, 0.28), transparent 11rem),
    radial-gradient(circle at 82% 18%, rgba(214, 75, 53, 0.16), transparent 12rem),
    linear-gradient(135deg, #eef8fd, #ffffff 52%, #faeae5);
}

html.dark .portrait-window {
  background:
    radial-gradient(circle at 20% 18%, rgba(56, 189, 248, 0.18), transparent 11rem),
    radial-gradient(circle at 82% 18%, rgba(255, 114, 91, 0.16), transparent 12rem),
    linear-gradient(135deg, #172536, #16202c 52%, #291a18);
}

.portrait-window::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(16, 24, 40, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 40, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mix-blend-mode: multiply;
}

html.dark .portrait-window::before {
  opacity: 0.34;
  mix-blend-mode: screen;
}

.portrait-window::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.08);
}

.portrait-image {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.98) contrast(1.02);
}

.portrait-chip {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 3;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(12px);
}

html.dark .portrait-chip {
  background: rgba(21, 30, 42, 0.74);
}

.identity-area {
  display: grid;
  gap: 22px;
}

.identity-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
}

.identity-row h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(48px, 4.4vw, 72px);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.86;
}

.identity-row p {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.tag-row span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  background: rgba(248, 250, 252, 0.72);
}

html.dark .tag-row span {
  background: rgba(255, 255, 255, 0.05);
}

.profile-lines {
  display: grid;
  gap: 14px;
}

.profile-lines p {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: center;
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.45;
}

.profile-lines .material-symbols-rounded {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--accent);
  font-size: 20px;
  background: rgba(255, 255, 255, 0.7);
}

html.dark .profile-lines .material-symbols-rounded {
  background: rgba(255, 255, 255, 0.05);
}

.profile-lines strong {
  font-weight: 800;
}

.metric-strip {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.metric-strip article {
  min-height: 68px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.66);
  text-align: center;
}

html.dark .metric-strip article {
  background: rgba(255, 255, 255, 0.045);
}

.metric-strip strong {
  color: var(--accent);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.metric-strip span,
.metric-strip small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

.metric-strip .material-symbols-rounded {
  color: var(--accent);
}

.center-column,
.right-column {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.right-column {
  padding-top: 0;
}

.intro-card {
  min-height: 140px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  gap: 22px;
  align-items: center;
  padding: 30px 34px;
}

.intro-card h2,
.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 2.2vw, 34px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.intro-card p,
.section-heading p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.65;
}

.brand-mark {
  justify-self: end;
  color: rgba(100, 116, 139, 0.34);
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.08em;
  transform: skewX(-6deg);
}

.hero-proof {
  display: grid;
  gap: 8px;
}

.hero-proof span {
  min-height: 42px;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.72);
}

html.dark .hero-proof span {
  background: rgba(255, 255, 255, 0.05);
}

.hero-proof b {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.hero-proof small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
}

.timeline-card {
  padding: 28px;
}

.section-heading {
  margin-bottom: 20px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
}

.timeline::before {
  position: absolute;
  top: 45px;
  bottom: 45px;
  left: 26px;
  content: "";
  border-left: 1px dashed var(--accent-line);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
}

.timeline-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 24px rgba(29, 41, 57, 0.08);
}

html.dark .timeline-icon {
  background: rgba(21, 30, 42, 0.9);
}

.timeline-copy {
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
}

.timeline-item + .timeline-item {
  margin-top: 10px;
}

.timeline-item:last-child .timeline-copy {
  border-bottom: 0;
  padding-bottom: 0;
}

.timeline-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 8px;
}

.timeline-meta div,
.timeline-meta p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
}

.serial,
.timeline-meta p span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(248, 250, 252, 0.76);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

html.dark .serial,
html.dark .timeline-meta p span {
  background: rgba(255, 255, 255, 0.05);
}

.serial {
  color: var(--accent);
}

.timeline-meta strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.timeline-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.timeline-copy > p {
  display: -webkit-box;
  overflow: hidden;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.58;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.skill-pills span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  background: rgba(248, 250, 252, 0.72);
}

html.dark .skill-pills span {
  background: rgba(255, 255, 255, 0.05);
}

.projects-card {
  padding: 28px;
}

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

.project-item {
  width: 100%;
  min-height: 96px;
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: stretch;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
  transition:
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 260ms ease,
    background 260ms ease,
    box-shadow 260ms ease;
}

html.dark .project-item {
  background: rgba(255, 255, 255, 0.05);
}

.project-item:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: var(--card-solid);
  box-shadow: 0 18px 40px rgba(29, 41, 57, 0.08);
}

.project-cover {
  position: relative;
  display: grid;
  min-height: 96px;
  place-items: center;
  overflow: hidden;
  color: rgba(16, 24, 40, 0.78);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.08em;
  isolation: isolate;
}

.project-cover::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(16, 24, 40, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 40, 0.07) 1px, transparent 1px);
  background-size: 18px 18px;
}

.project-cover::after {
  position: absolute;
  inset: 12px;
  z-index: -1;
  content: "";
  border-radius: 10px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.project-video .project-cover {
  background: linear-gradient(135deg, #eff8ff, #fbf1ed);
}

.project-relay .project-cover {
  background: linear-gradient(135deg, #e8f7ff, #fff0e8);
}

.project-job .project-cover {
  background: linear-gradient(135deg, #eef7f1, #fff0ec);
}

.project-image .project-cover {
  background: linear-gradient(135deg, #eaf7f9, #fff4ed);
}

.project-harness .project-cover {
  background: linear-gradient(135deg, #f3f6ff, #f9edea);
}

.project-runtime .project-cover {
  background: linear-gradient(135deg, #e7f6ff, #fff1ee);
}

.project-agent .project-cover {
  background: linear-gradient(135deg, #eef3ff, #f9edea);
}

html.dark .project-cover {
  color: rgba(245, 247, 251, 0.78);
}

html.dark .project-cover::before {
  background-image:
    linear-gradient(rgba(226, 232, 240, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 232, 240, 0.07) 1px, transparent 1px);
}

html.dark .project-relay .project-cover,
html.dark .project-job .project-cover,
html.dark .project-video .project-cover,
html.dark .project-image .project-cover,
html.dark .project-harness .project-cover,
html.dark .project-runtime .project-cover,
html.dark .project-agent .project-cover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(255, 114, 91, 0.12));
}

.project-copy {
  display: grid;
  align-content: center;
  gap: 7px;
  min-width: 0;
  padding: 12px 0;
}

.project-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.project-head strong {
  min-width: 0;
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.22;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.project-head em {
  flex: 0 0 auto;
  width: max-content;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 999px;
  color: #047857;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.09);
}

html.dark .project-head em {
  color: #7dd3c7;
  border-color: rgba(125, 211, 199, 0.28);
  background: rgba(20, 184, 166, 0.1);
}

.project-head em.live {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.project-copy > span:last-child {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.project-item .arrow {
  align-self: center;
  justify-self: center;
  color: var(--muted);
  font-size: 21px;
  transition:
    color 220ms ease,
    transform 220ms ease;
}

.project-item:hover .arrow {
  color: var(--accent);
  transform: translateX(3px);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.quick-card {
  min-height: 82px;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: center;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink-soft);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(145%);
  text-align: left;
  transition:
    transform 240ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 240ms ease,
    background 240ms ease;
}

.quick-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: var(--card-solid);
}

.quick-card .material-symbols-rounded {
  color: var(--subtle);
}

.quick-card strong {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 800;
}

.personal-ai-card {
  min-height: 92px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 46px;
  gap: 14px;
  align-items: center;
  padding: 22px 26px;
  color: var(--ink-soft);
  text-align: left;
  transition:
    transform 240ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 240ms ease,
    background 240ms ease;
}

.personal-ai-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: var(--card-solid);
}

.personal-ai-card > .material-symbols-rounded {
  color: var(--accent);
}

.personal-ai-card strong,
.personal-ai-card small {
  display: block;
}

.personal-ai-card strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.personal-ai-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.personal-ai-card i {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-soft);
  font-style: normal;
  background: rgba(16, 24, 40, 0.05);
}

html.dark .personal-ai-card i {
  background: rgba(255, 255, 255, 0.06);
}

.stage-footer {
  width: min(1360px, calc(100% - 80px));
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 20px auto 0;
  padding: 0 0 34px;
  color: var(--subtle);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.stage-footer span + span::before {
  content: "·";
  margin-right: 14px;
}

.site-dialog {
  width: min(560px, calc(100% - 32px));
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
}

.site-dialog::backdrop {
  background: rgba(9, 13, 20, 0.42);
  backdrop-filter: blur(12px);
}

.dialog-panel {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card-solid);
  box-shadow: var(--shadow);
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(248, 250, 252, 0.74);
}

html.dark .dialog-close {
  background: rgba(255, 255, 255, 0.05);
}

.dialog-kicker {
  width: max-content;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.dialog-panel h2 {
  max-width: calc(100% - 42px);
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.dialog-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.75;
}

.dialog-link {
  width: max-content;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  background: var(--accent-soft);
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

html.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 620ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

html.reveal-ready [data-reveal].is-visible,
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.center-column [data-reveal]:nth-child(2),
.right-column [data-reveal]:nth-child(2) {
  transition-delay: 90ms;
}

.right-column [data-reveal]:nth-child(3) {
  transition-delay: 150ms;
}

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

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

@media (prefers-reduced-transparency: reduce) {
  .panel-card,
  .quick-card,
  .control-button {
    backdrop-filter: none;
    background: var(--card-solid);
  }
}

@media (max-width: 1460px) {
  .floating-controls {
    position: static;
    width: min(1360px, calc(100% - 80px));
    display: flex;
    justify-content: flex-end;
    margin: 10px auto -10px;
  }

  .stage-shell {
    padding-top: 24px;
  }
}

@media (max-width: 1280px) {
  .stage-shell {
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  }

  .right-column {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
    padding-top: 0;
  }

  .projects-card {
    grid-row: span 2;
  }
}

@media (max-width: 980px) {
  .stage-shell {
    width: min(100% - 34px, 760px);
    min-height: auto;
    padding-top: 24px;
    grid-template-columns: 1fr;
  }

  .profile-card {
    min-height: 0;
  }

  .right-column {
    grid-template-columns: 1fr;
  }

  .floating-controls {
    position: static;
    width: min(100% - 34px, 760px);
    display: flex;
    justify-content: flex-end;
    margin: 14px auto -8px;
  }

  .control-button {
    width: 56px;
    height: 56px;
    border-radius: 18px;
  }

  .stage-footer {
    width: min(100% - 34px, 760px);
    flex-wrap: wrap;
    padding-bottom: 34px;
    text-align: center;
  }
}

@media (max-width: 680px) {
  .profile-card,
  .intro-card,
  .timeline-card,
  .projects-card,
  .dialog-panel {
    border-radius: 22px;
  }

  .profile-card,
  .timeline-card,
  .projects-card {
    padding: 20px;
  }

  .portrait-window {
    height: 300px;
  }

  .identity-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .identity-row h1 {
    font-size: clamp(52px, 18vw, 72px);
  }

  .identity-row p {
    margin: 0;
  }

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

  .intro-card {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 26px;
  }

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

  .hero-proof span {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .brand-mark {
    justify-self: start;
    font-size: 28px;
  }

  .timeline-item {
    grid-template-columns: 44px 1fr;
    gap: 14px;
  }

  .timeline::before {
    left: 21px;
  }

  .timeline-icon {
    width: 44px;
    height: 44px;
    font-size: 19px;
  }

  .timeline-meta {
    display: grid;
    gap: 10px;
  }

  .project-item {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    min-height: 96px;
  }

  .project-cover {
    min-height: 96px;
    font-size: 16px;
  }

  .project-item .arrow {
    display: none;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .stage-shell {
    width: min(100% - 22px, 760px);
  }

  .portrait-window {
    height: 260px;
  }

  .tag-row span {
    max-width: 100%;
  }

  .profile-lines p {
    grid-template-columns: 34px 1fr;
    font-size: 14px;
  }

  .profile-lines .material-symbols-rounded {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 18px;
  }

  .intro-card h2,
  .section-heading h2 {
    font-size: clamp(27px, 8vw, 34px);
  }

  .project-item {
    grid-template-columns: 1fr;
  }

  .project-cover {
    min-height: 92px;
  }

  .project-copy {
    padding: 0 14px 14px;
  }
}
