:root {
  color-scheme: dark;
  --bg: #050507;
  --bg-2: #0a0b0d;
  --ink: #f7f2e8;
  --muted: #b9b1a4;
  --soft: rgba(247, 242, 232, 0.72);
  --line: rgba(247, 242, 232, 0.16);
  --line-strong: rgba(247, 242, 232, 0.32);
  --panel: rgba(11, 11, 12, 0.78);
  --panel-strong: rgba(19, 18, 17, 0.92);
  --gold: #f2b75b;
  --gold-2: #fff0b8;
  --ember: #da6e3d;
  --cyan: #7ddde8;
  --pink: #e96cc8;
  --max: 1180px;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  font-family:
    "Segoe UI",
    "Microsoft YaHei",
    "PingFang SC",
    "Noto Sans CJK SC",
    system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(5, 5, 7, 0) 0, rgba(5, 5, 7, 0.95) 760px),
    linear-gradient(135deg, #050507 0%, #0e0b09 42%, #09090a 100%);
  font-size: 16px;
  line-height: 1.68;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 75%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(118deg, transparent 0 16%, rgba(242, 183, 91, 0.1) 17%, transparent 22%),
    linear-gradient(122deg, transparent 0 20%, rgba(125, 221, 232, 0.08) 21%, transparent 25%),
    linear-gradient(124deg, transparent 0 23%, rgba(233, 108, 200, 0.06) 24%, transparent 27%);
  opacity: 0.74;
}

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

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

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

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #101010;
  color: var(--ink);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(148px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 24px;
  width: min(100% - 32px, 1260px);
  min-height: 72px;
  margin: 14px auto 0;
  padding: 0 16px;
  border: 1px solid rgba(247, 242, 232, 0.13);
  border-radius: var(--radius);
  background: rgba(5, 5, 7, 0.72);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-weight: 700;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-2);
  box-shadow:
    0 0 10px rgba(255, 240, 184, 0.9),
    0 0 28px rgba(242, 183, 91, 0.8);
  flex: 0 0 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.site-nav a,
.language-switch,
.ghost-button,
.solid-button {
  min-height: 38px;
  border-radius: var(--radius);
  white-space: nowrap;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--soft);
  font-size: 14px;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(247, 242, 232, 0.08);
  color: var(--ink);
  outline: none;
}

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

.language-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  flex: 0 0 auto;
  width: 74px;
  height: 38px;
  min-height: 38px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.09), transparent 35%),
    rgba(5, 6, 8, 0.42);
  color: rgba(247, 242, 232, 0.66);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  outline: none;
}

.language-switch::before {
  position: absolute;
  top: 3px;
  left: 3px;
  z-index: 0;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  border-radius: calc(var(--radius) - 2px);
  background:
    linear-gradient(180deg, rgba(255, 240, 184, 0.96), rgba(212, 139, 61, 0.86));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 8px 22px rgba(242, 183, 91, 0.24);
  content: "";
  transform: translateX(0);
  transition: transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

body[data-language="en"] .language-switch::before {
  transform: translateX(calc(100% + 0px));
}

.language-switch span {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  height: 100%;
  place-items: center;
  border-radius: calc(var(--radius) - 2px);
  transition:
    color 180ms ease,
    opacity 180ms ease;
}

.language-switch span.is-active {
  color: #170f07;
}

.language-switch:hover,
.language-switch:focus-visible {
  border-color: rgba(255, 240, 184, 0.32);
  transform: translateY(-1px);
}

.ghost-button,
.solid-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 14px;
}

.ghost-button {
  min-width: 52px;
  padding: 0 14px;
  background: rgba(247, 242, 232, 0.04);
  color: var(--ink);
}

.solid-button {
  height: 38px;
  padding: 0 16px;
  border-color: rgba(242, 183, 91, 0.62);
  background: linear-gradient(180deg, #ffdc8e, #d48b3d);
  color: #160f08;
  font-weight: 700;
  box-shadow: 0 10px 32px rgba(242, 183, 91, 0.22);
}

.ghost-button:hover,
.ghost-button:focus-visible,
.solid-button:hover,
.solid-button:focus-visible {
  outline: none;
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media,
.hero-scrim,
.hero-orbits {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: 0;
}

.hero-video,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
  filter: saturate(1.08) contrast(1.08);
  transform: scale(1.02);
}

.hero-media img {
  z-index: 0;
}

.hero-video {
  z-index: 1;
  opacity: 0.98;
}

.hero-scrim {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(5, 5, 7, 0.94) 0%, rgba(5, 5, 7, 0.74) 42%, rgba(5, 5, 7, 0.22) 100%),
    linear-gradient(180deg, rgba(5, 5, 7, 0.1) 0%, rgba(5, 5, 7, 0.88) 100%);
}

.hero-orbits {
  z-index: 3;
  pointer-events: none;
}

.hero-orbits span {
  position: absolute;
  left: -14%;
  width: 84%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 240, 184, 0.92), rgba(125, 221, 232, 0.64), transparent);
  box-shadow:
    0 0 16px rgba(255, 240, 184, 0.62),
    0 0 36px rgba(242, 183, 91, 0.3);
  transform: rotate(-19deg);
  opacity: 0.78;
}

.hero-orbits span:nth-child(1) {
  top: 33%;
}

.hero-orbits span:nth-child(2) {
  top: 40%;
  left: -10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233, 108, 200, 0.64), rgba(255, 240, 184, 0.86), transparent);
  opacity: 0.48;
}

.hero-orbits span:nth-child(3) {
  top: 48%;
  left: -4%;
  width: 70%;
  height: 1px;
  opacity: 0.35;
}

.hero-inner {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: end;
  gap: 54px;
  width: min(100% - 48px, var(--max));
  min-height: 620px;
  margin: 0 auto;
  padding: 124px 0 42px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: 76px;
  text-shadow: 0 0 34px rgba(255, 240, 184, 0.16);
}

h2 {
  font-size: 38px;
}

h3 {
  font-size: 22px;
}

.hero-role {
  margin: 14px 0 0;
  color: var(--cyan);
  font-size: 24px;
  font-weight: 700;
}

.hero-tagline {
  max-width: 720px;
  margin: 28px 0 0;
  color: rgba(247, 242, 232, 0.88);
  font-size: 21px;
}

.hero-availability {
  display: inline-flex;
  margin: 28px 0 0;
  padding: 8px 12px;
  border: 1px solid rgba(255, 240, 184, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 240, 184, 0.08);
  color: #ffe4a3;
  font-weight: 700;
}

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

.contact-link {
  display: grid;
  gap: 2px;
  min-width: 180px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 5, 7, 0.58);
  backdrop-filter: blur(14px);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  border-color: rgba(255, 240, 184, 0.48);
  background: rgba(15, 13, 11, 0.78);
  outline: none;
  transform: translateY(-2px);
}

.contact-link span {
  color: var(--muted);
  font-size: 12px;
}

.contact-link strong {
  color: var(--ink);
  font-size: 14px;
}

.contact-link[href^="http"] strong {
  color: var(--gold-2);
  text-decoration: underline;
  text-decoration-color: rgba(255, 240, 184, 0.42);
  text-underline-offset: 3px;
}

.hero-profile {
  display: grid;
  gap: 18px;
}

.portrait {
  width: 164px;
  height: 164px;
  border: 1px solid rgba(255, 240, 184, 0.3);
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow:
    0 24px 72px rgba(0, 0, 0, 0.4),
    0 0 56px rgba(242, 183, 91, 0.2);
}

.stat-grid {
  display: grid;
  gap: 10px;
}

.stat-item {
  display: grid;
  gap: 2px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 5, 7, 0.64);
  backdrop-filter: blur(16px);
}

.stat-item strong {
  color: var(--gold-2);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.stat-item span {
  color: var(--muted);
  font-size: 13px;
}

.section-band {
  position: relative;
  padding: 92px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 7, 0.9);
}

.profile-section {
  padding-top: 58px;
}

.section-band:nth-of-type(odd) {
  background: rgba(10, 10, 10, 0.94);
}

.section-shell {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
}

.two-column {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.section-lead {
  margin: 0;
  color: rgba(247, 242, 232, 0.84);
  font-size: 20px;
}

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

.heading-with-copy {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 42px;
  align-items: end;
}

.heading-with-copy p:last-child {
  margin: 0;
  color: var(--soft);
}

.skills-layout {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 24px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.skill-panel,
.timeline-content,
.project-copy,
.education-detail {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.skill-panel {
  min-height: 224px;
  padding: 22px;
}

.skill-panel h3 {
  margin-bottom: 16px;
  font-size: 18px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-row span {
  padding: 6px 9px;
  border: 1px solid rgba(247, 242, 232, 0.14);
  border-radius: var(--radius);
  background: rgba(247, 242, 232, 0.055);
  color: rgba(247, 242, 232, 0.84);
  font-size: 13px;
  line-height: 1.3;
}

.signal-list {
  display: grid;
  align-content: start;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.signal-list li {
  position: relative;
  min-height: 64px;
  padding: 16px 16px 16px 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 242, 232, 0.045);
  color: var(--soft);
}

.signal-list li::before {
  position: absolute;
  top: 22px;
  left: 18px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 18px rgba(242, 183, 91, 0.44);
}

.timeline-band {
  background:
    linear-gradient(180deg, rgba(5, 5, 7, 0.94), rgba(12, 11, 10, 0.98)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 90px);
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.timeline-date {
  position: sticky;
  top: 106px;
  padding-top: 20px;
  color: var(--gold-2);
  font-weight: 800;
}

.timeline-content {
  position: relative;
  padding: 26px;
}

.project-timeline-content {
  padding: 0;
}

.timeline-content::before {
  position: absolute;
  left: -34px;
  top: 30px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold-2);
  box-shadow:
    0 0 14px rgba(255, 240, 184, 0.88),
    0 0 32px rgba(242, 183, 91, 0.52);
  content: "";
}

.role-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.role-line h3 {
  font-size: 24px;
}

.role-line span,
.muted {
  color: var(--muted);
}

.timeline-content ul,
.project-copy ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 20px;
  color: rgba(247, 242, 232, 0.82);
}

.timeline-content li::marker,
.project-copy li::marker {
  color: var(--gold);
}

.experience-projects {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.experience-project {
  display: grid;
  gap: 9px;
  padding-top: 18px;
  border-top: 1px solid rgba(247, 242, 232, 0.13);
}

.experience-project h4 {
  margin: 0;
  color: #fff5d2;
  font-size: 18px;
  line-height: 1.35;
}

.experience-project p {
  margin: 0;
  color: rgba(247, 242, 232, 0.82);
}

.experience-project p strong {
  color: var(--gold-2);
  font-weight: 800;
}

.experience-project ul {
  margin-top: 6px;
}

.experience-project-visual {
  padding-top: 22px;
}

.experience-project-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
  align-items: start;
}

.experience-project-layout .project-copy {
  display: grid;
  gap: 9px;
}

.experience-project-layout .project-copy h4 {
  margin: 0;
  color: #fff5d2;
  font-size: 18px;
}

.experience-project-layout .project-copy p {
  margin: 0;
  color: rgba(247, 242, 232, 0.82);
}

.experience-project-layout .project-copy p strong {
  color: var(--gold-2);
  font-weight: 800;
}

@media (max-width: 900px) {
  .experience-project-layout {
    grid-template-columns: 1fr;
  }
}

.projects-band .section-lead {
  max-width: 760px;
  margin: 0 0 36px;
}

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

.project-section {
  display: grid;
  gap: 24px;
}

.project-section + .project-section {
  margin-top: 22px;
}

.project-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 0 2px 8px;
  border-bottom: 1px solid var(--line);
}

.project-section-heading span {
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-section-heading h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.95;
  text-align: right;
}

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

.project-item {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 24px;
  align-items: center;
}

.project-reverse {
  grid-template-columns: minmax(340px, 0.95fr) minmax(0, 1.05fr);
}

.project-reverse .project-visual {
  order: 2;
}

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

.project-image-button {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  overflow: hidden;
}

.project-image-button::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.48));
  content: "";
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.project-image-button:hover::after,
.project-image-button:focus-visible::after {
  opacity: 1;
}

.project-image-button:focus-visible {
  outline: 2px solid rgba(255, 240, 184, 0.9);
  outline-offset: 3px;
}

.image-zoom-label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 240, 184, 0.4);
  border-radius: 50%;
  background: rgba(5, 5, 7, 0.76);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  pointer-events: none;
}

.image-zoom-label::before,
.image-zoom-label::after {
  position: absolute;
  background: var(--gold-2);
  content: "";
}

.image-zoom-label::before {
  width: 14px;
  height: 2px;
}

.image-zoom-label::after {
  width: 2px;
  height: 14px;
}

.project-image-button:hover .image-zoom-label,
.project-image-button:focus-visible .image-zoom-label {
  opacity: 1;
  transform: translateY(0);
}

.project-image-button img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  object-fit: cover;
  object-position: top left;
  background: #111;
  box-shadow: var(--shadow);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.project-gallery .project-image-button img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
  object-position: top left;
  background: #111;
}

.project-link {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 12px;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  word-break: break-word;
}

.project-link:hover,
.project-link:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 34px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.84);
  cursor: zoom-out;
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(100%, 1180px);
  max-height: calc(100vh - 68px);
}

.lightbox-panel img {
  width: 100%;
  max-height: calc(100vh - 130px);
  border: 1px solid rgba(255, 240, 184, 0.28);
  border-radius: var(--radius);
  background: #0b0b0c;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -18px;
  right: -18px;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 240, 184, 0.34);
  border-radius: 50%;
  background: rgba(5, 5, 7, 0.92);
  color: var(--ink);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  outline: none;
  background: rgba(242, 183, 91, 0.18);
}

#lightbox-caption {
  margin: 0;
  color: rgba(247, 242, 232, 0.76);
  text-align: center;
}

.project-copy {
  padding: 28px;
  background: var(--panel-strong);
}

.project-period {
  margin: 0 0 10px;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-copy h3 {
  margin-bottom: 12px;
  font-size: 28px;
}

.project-stack {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 700;
}

.project-copy p {
  color: var(--soft);
}

.education-band {
  padding-bottom: 110px;
}

.education-layout {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 42px;
  align-items: center;
}

.education-detail {
  padding: 28px;
}

.education-detail h3 {
  margin-bottom: 10px;
}

.education-detail p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  padding: 28px 0;
  background: #030304;
  color: rgba(247, 242, 232, 0.58);
  font-size: 14px;
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-layout p {
  margin: 0;
}

.liquid-glass,
.liquid-glass-strong {
  --mx: 50%;
  --my: 50%;
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.105);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.075), transparent 34%),
    linear-gradient(145deg, rgba(12, 14, 18, 0.52), rgba(6, 7, 9, 0.32) 48%, rgba(22, 16, 10, 0.24));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    inset 0 -1px 0 rgba(255, 255, 255, 0.035),
    0 18px 54px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  isolation: isolate;
}

.liquid-glass:not(.project-image-button)::after,
.liquid-glass-strong::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 241, 198, 0.18), rgba(125, 221, 232, 0.07) 20%, transparent 48%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 42%);
  content: "";
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.tilt-card.is-tilting:not(.project-image-button)::after,
.liquid-glass:not(.project-image-button):hover::after,
.liquid-glass:not(.project-image-button):focus-visible::after,
.liquid-glass-strong:hover::after,
.liquid-glass-strong:focus-visible::after {
  opacity: 1;
}

.liquid-glass-strong {
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.24), transparent 36%),
    linear-gradient(145deg, rgba(255, 222, 150, 0.9), rgba(213, 139, 61, 0.78) 58%, rgba(128, 68, 28, 0.72));
  border-color: rgba(255, 240, 184, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(63, 30, 8, 0.2),
    0 18px 48px rgba(242, 183, 91, 0.19);
  backdrop-filter: blur(28px) saturate(1.34);
  -webkit-backdrop-filter: blur(28px) saturate(1.34);
}

.site-header.liquid-glass {
  border-radius: var(--radius);
  border-color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.085), transparent 30%),
    rgba(5, 6, 8, 0.52);
}

.site-nav a {
  border: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.16), transparent 48%),
    rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.ghost-button.liquid-glass,
.language-switch.liquid-glass,
.solid-button.liquid-glass-strong,
.hero-availability.liquid-glass {
  overflow: hidden;
}

.solid-button.liquid-glass-strong {
  color: #170f07;
}

.contact-link.liquid-glass,
.stat-item.liquid-glass,
.skill-panel.liquid-glass,
.timeline-content.liquid-glass,
.project-copy.liquid-glass,
.education-detail.liquid-glass,
.signal-list li.liquid-glass {
  border-color: rgba(255, 255, 255, 0.095);
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 255, 255, 0.07), transparent 32%),
    linear-gradient(145deg, rgba(10, 12, 15, 0.5), rgba(5, 6, 8, 0.28) 54%, rgba(17, 12, 8, 0.22));
}

.project-copy.liquid-glass {
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.072), transparent 34%),
    linear-gradient(145deg, rgba(11, 13, 16, 0.56), rgba(5, 6, 8, 0.34) 54%, rgba(18, 12, 8, 0.26));
}

.project-image-button.liquid-glass {
  border-radius: var(--radius);
  padding: 1px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.025) 48%, rgba(255, 240, 184, 0.1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 54px rgba(0, 0, 0, 0.28);
}

.project-image-button.liquid-glass img {
  border: 0;
}

.pill-row span {
  border-color: rgba(255, 255, 255, 0.13);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.13), transparent 48%),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.tilt-card {
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)) translate3d(0, 0, 0);
  transform-style: preserve-3d;
  transition:
    transform 260ms cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 220ms ease,
    box-shadow 220ms ease,
    filter 220ms ease;
  will-change: transform;
}

.tilt-card.is-tilting,
.tilt-card:focus-visible {
  border-color: rgba(255, 240, 184, 0.22);
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)) translate3d(0, -5px, 0);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(255, 255, 255, 0.045),
    0 24px 70px rgba(0, 0, 0, 0.42),
    0 0 34px rgba(125, 221, 232, 0.055);
}

.tilt-card.is-tilting h3,
.tilt-card.is-tilting strong {
  color: #fff5d2;
}

.tilt-card,
.liquid-glass,
.liquid-glass-strong {
  backface-visibility: hidden;
}

body.pdf-render-mode {
  width: 1280px;
  min-width: 1280px;
  overflow: visible;
}

body.pdf-render-mode .site-header,
body.pdf-render-mode .skip-link,
body.pdf-render-mode .hero-video,
body.pdf-render-mode .lightbox,
body.pdf-render-mode .image-zoom-label {
  display: none !important;
}

body.pdf-render-mode .hero {
  min-height: 720px;
}

body.pdf-render-mode .hero-inner {
  min-height: 720px;
  padding-top: 86px;
}

body.pdf-render-mode .hero-media img {
  z-index: 1;
}

body.pdf-render-mode .hero-scrim {
  z-index: 2;
}

body.pdf-render-mode .hero-orbits,
body.pdf-render-mode .hero-inner {
  z-index: 3;
}

body.pdf-render-mode .tilt-card,
body.pdf-render-mode .tilt-card.is-tilting,
body.pdf-render-mode .tilt-card:focus-visible {
  transform: none !important;
}

body.pdf-render-mode {
  background: #070708 !important;
}

body.pdf-render-mode::before,
body.pdf-render-mode::after,
body.pdf-render-mode .hero-media,
body.pdf-render-mode .hero-scrim,
body.pdf-render-mode .hero-orbits,
body.pdf-render-mode .liquid-glass::after,
body.pdf-render-mode .liquid-glass-strong::after,
body.pdf-render-mode .project-image-button::after {
  display: none !important;
}

body.pdf-render-mode .hero {
  background:
    linear-gradient(135deg, rgba(16, 16, 18, 0.96), rgba(7, 7, 8, 0.98) 54%, rgba(18, 13, 9, 0.96)),
    #070708 !important;
  border-bottom: 1px solid rgba(247, 242, 232, 0.18);
}

body.pdf-render-mode .liquid-glass,
body.pdf-render-mode .liquid-glass-strong,
body.pdf-render-mode .site-header,
body.pdf-render-mode .contact-link,
body.pdf-render-mode .stat-item,
body.pdf-render-mode .skill-panel,
body.pdf-render-mode .timeline-content,
body.pdf-render-mode .project-copy,
body.pdf-render-mode .education-detail,
body.pdf-render-mode .signal-list li,
body.pdf-render-mode .pill-row span {
  background: rgba(11, 12, 13, 0.92) !important;
  border-color: rgba(247, 242, 232, 0.18) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
}

body.pdf-render-mode .project-image-button.liquid-glass {
  background: rgba(247, 242, 232, 0.12) !important;
  box-shadow: none !important;
}

body.pdf-render-mode .project-image-button img {
  box-shadow: none !important;
}

body.pdf-render-mode .brand-dot,
body.pdf-render-mode .timeline-dot {
  box-shadow: none !important;
}

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

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .header-actions {
    grid-column: 2;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    align-items: end;
    min-height: 690px;
    padding-top: 148px;
  }

  .hero-profile {
    grid-template-columns: auto 1fr;
    align-items: stretch;
    max-width: 640px;
  }

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

  .skills-layout,
  .two-column,
  .heading-with-copy,
  .education-layout {
    grid-template-columns: 1fr;
  }

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

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

  .project-reverse .project-visual {
    order: 0;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .site-header {
    width: calc(100% - 20px);
    margin-top: 10px;
    gap: 8px;
    min-height: 0;
    padding: 8px 10px;
  }

  .brand-mark {
    font-size: 14px;
  }

  .header-actions {
    gap: 6px;
  }

  .solid-button {
    padding: 0 10px;
  }

  .ghost-button {
    min-width: 46px;
    padding: 0 10px;
  }

  .site-nav a {
    min-height: 32px;
    padding: 0 10px;
    font-size: 13px;
  }

  .hero,
  .hero-inner {
    min-height: 650px;
  }

  .hero-inner,
  .section-shell {
    width: calc(100% - 28px);
  }

  .hero-inner {
    gap: 22px;
    padding: 126px 0 34px;
  }

  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(5, 5, 7, 0.94) 0%, rgba(5, 5, 7, 0.72) 100%),
      linear-gradient(180deg, rgba(5, 5, 7, 0.08) 0%, rgba(5, 5, 7, 0.93) 100%);
  }

  .hero-orbits span {
    left: -42%;
    width: 130%;
    transform: rotate(-27deg);
  }

  h1 {
    font-size: 50px;
  }

  h2 {
    font-size: 30px;
  }

  h3 {
    font-size: 21px;
  }

  .project-section-heading {
    display: grid;
    align-items: start;
  }

  .project-section-heading h3 {
    text-align: left;
  }

  .hero-role {
    font-size: 20px;
  }

  .hero-tagline,
  .section-lead {
    font-size: 18px;
  }

  .hero-availability {
    display: flex;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .contact-link {
    min-width: 0;
    padding: 10px 11px;
  }

  .hero-profile {
    display: none;
  }

  .portrait {
    width: 132px;
    height: 132px;
  }

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

  .section-band {
    padding: 68px 0;
  }

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

  .timeline-date {
    position: static;
    padding-top: 0;
  }

  .timeline-content::before {
    display: none;
  }

  .role-line {
    display: grid;
  }

  .timeline-content,
  .project-copy,
  .education-detail,
  .skill-panel {
    padding: 20px;
  }

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

  .footer-layout {
    display: grid;
  }
}

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

  .header-actions {
    grid-column: 1;
    justify-content: stretch;
  }

  .ghost-button,
  .solid-button {
    flex: 1;
  }

  h1 {
    font-size: 42px;
  }

  .hero,
  .hero-inner {
    min-height: 700px;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page {
    size: A4;
    margin: 10mm;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html,
  body {
    background: #050507 !important;
    color: var(--ink) !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  body {
    min-width: 0;
    font-size: 11pt;
    line-height: 1.48;
  }

  body::before,
  body::after,
  .skip-link,
  .site-header,
  .hero-video,
  .hero-orbits,
  .lightbox,
  .image-zoom-label,
  .site-footer {
    display: none !important;
  }

  .hero {
    min-height: 168mm;
    border: 1px solid rgba(247, 242, 232, 0.12);
    border-radius: var(--radius);
    overflow: hidden;
    break-after: page;
  }

  .hero-media,
  .hero-scrim {
    position: absolute;
    inset: 0;
  }

  .hero-media img {
    display: block !important;
    object-position: center center;
    transform: none;
  }

  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(5, 5, 7, 0.96) 0%, rgba(5, 5, 7, 0.76) 48%, rgba(5, 5, 7, 0.3) 100%),
      linear-gradient(180deg, rgba(5, 5, 7, 0.02) 0%, rgba(5, 5, 7, 0.9) 100%);
  }

  .hero-inner {
    width: 100%;
    min-height: 168mm;
    grid-template-columns: minmax(0, 1fr) 56mm !important;
    gap: 8mm;
    align-items: end;
    padding: 22mm 8mm 10mm;
    overflow: hidden;
  }

  .hero-copy {
    max-width: none;
    min-width: 0;
  }

  .hero-profile {
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-items: start !important;
    justify-items: stretch;
    justify-self: end;
    gap: 4mm;
    width: 56mm;
    max-width: none !important;
    min-width: 0;
  }

  h1 {
    font-size: 42pt;
  }

  h2 {
    font-size: 23pt;
  }

  h3 {
    font-size: 15pt;
  }

  .hero-role {
    font-size: 16pt;
  }

  .hero-tagline {
    max-width: 122mm;
    font-size: 13pt;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 92mm);
    gap: 2.6mm;
  }

  .contact-link {
    min-width: 0;
    padding: 3.2mm;
  }

  .contact-link strong {
    overflow-wrap: anywhere;
    font-size: 9.5pt;
    line-height: 1.25;
  }

  .portrait {
    width: 42mm;
    height: 42mm;
    justify-self: center;
  }

  .stat-grid {
    grid-template-columns: 1fr !important;
    gap: 3mm;
    width: 100%;
  }

  .stat-item {
    min-width: 0;
    padding: 4mm;
  }

  .stat-item strong {
    max-width: 100%;
    font-size: 16pt;
    line-height: 1;
    overflow-wrap: normal;
    white-space: nowrap;
    word-break: normal;
  }

  .stat-item span {
    display: block;
    margin-top: 2mm;
    overflow-wrap: normal;
    word-break: keep-all;
  }

  .section-band {
    padding: 12mm 0;
    background: rgba(5, 5, 7, 0.96) !important;
    border-bottom: 1px solid rgba(247, 242, 232, 0.14);
  }

  .section-shell {
    width: 100%;
  }

  .section-heading {
    margin-bottom: 7mm;
  }

  .section-lead {
    font-size: 12.5pt;
  }

  .skills-layout,
  .two-column,
  .heading-with-copy,
  .education-layout {
    grid-template-columns: 1fr;
    gap: 7mm;
  }

  .skills-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4mm;
  }

  .skill-panel {
    min-height: 0;
    padding: 5mm;
  }

  .pill-row {
    gap: 2.2mm;
  }

  .pill-row span {
    padding: 1.4mm 2.2mm;
    font-size: 8.5pt;
  }

  .signal-list {
    gap: 3mm;
  }

  .signal-list li {
    min-height: 0;
    padding: 4mm 4mm 4mm 10mm;
  }

  .timeline {
    gap: 5mm;
  }

  .timeline-item {
    grid-template-columns: 34mm minmax(0, 1fr);
    gap: 5mm;
  }

  .timeline-date {
    position: static;
    padding-top: 4mm;
  }

  .timeline-content,
  .project-copy,
  .education-detail {
    padding: 6mm;
  }

  .timeline-content::before {
    left: -7.5mm;
  }

  .project-list {
    gap: 9mm;
  }

  .project-item,
  .project-reverse {
    grid-template-columns: minmax(0, 1fr) minmax(58mm, 0.9fr);
    gap: 6mm;
  }

  .project-reverse .project-visual {
    order: 2;
  }

  .project-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5mm;
  }

  .project-image-button {
    cursor: default;
  }

  .project-image-button::after {
    display: none;
  }

  .project-image-button img {
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.34);
  }

  .liquid-glass,
  .liquid-glass-strong {
    backdrop-filter: blur(12px) saturate(1.08);
    -webkit-backdrop-filter: blur(12px) saturate(1.08);
  }

  .liquid-glass::after,
  .liquid-glass-strong::after {
    display: none !important;
  }

  .tilt-card,
  .tilt-card.is-tilting,
  .tilt-card:focus-visible {
    transform: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .timeline-item,
  .project-item,
  .skill-panel,
  .signal-list li,
  .education-detail {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

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

  .hero-video {
    display: none;
  }
}
