:root {
  --paper: #f3f1d8;
  --ink: #16281d;
  --muted: #64746a;
  --line: rgba(37, 68, 51, 0.2);
  --soft: #dfe3c5;
  --green: #29472d;
  --stem: #395f3d;
  --blue: #3e6370;
  --amber: #d7d3a6;
  --violet: #385760;
  --glass: rgba(244, 242, 220, 0.72);
  --shadow: 0 28px 80px rgba(16, 35, 28, 0.24);
  --paper-fiber: rgba(57, 76, 49, 0.08);
  --paper-edge: rgba(49, 82, 57, 0.28);
  --paper-warm: #f5f1d5;
  --scroll-depth: 0px;
  --pointer-x: 0px;
  --pointer-y: 0px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(216, 219, 181, 0.42), transparent 30%),
    radial-gradient(circle at 18% 86%, rgba(38, 78, 54, 0.24), transparent 30%),
    repeating-linear-gradient(102deg, transparent 0 10px, rgba(33, 69, 54, 0.04) 10px 11px, transparent 11px 28px),
    linear-gradient(180deg, #9fb7ba 0%, #dfe5cd 42%, #f5f1d5 100%);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(rgba(22, 60, 47, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 60, 47, 0.055) 1px, transparent 1px);
  background-size: 76px 76px;
  transform: perspective(900px) rotateX(64deg) translateY(calc(var(--scroll-depth) * -0.08));
  transform-origin: 50% 0;
}

body::after {
  z-index: -1;
  background:
    linear-gradient(120deg, transparent 0 44%, rgba(38, 79, 54, 0.08) 44% 45%, transparent 45% 100%),
    linear-gradient(60deg, transparent 0 58%, rgba(218, 218, 174, 0.14) 58% 59%, transparent 59% 100%);
  background-size: 420px 420px, 520px 520px;
  opacity: 0.6;
  transform: translate3d(0, calc(var(--scroll-depth) * -0.03), 0);
}

body.nav-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 18px 36px;
  color: var(--ink);
  transform: translateZ(80px);
  transition: background 180ms ease, border-color 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  border-bottom: 1px solid rgba(17, 17, 19, 0.1);
  background: rgba(241, 238, 210, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  gap: 26px;
  align-items: center;
  color: #222;
  font-size: 14px;
}

.site-nav a {
  position: relative;
  padding: 4px 0;
}

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

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(17, 17, 19, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 180ms ease;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  padding: 126px 36px 60px;
  border-bottom: 1px solid var(--line);
  perspective: 1300px;
}

.hero-webgl {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.92;
}

.hero-webgl canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.96;
}

.hero-photo-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at calc(74% + var(--pointer-x) * 0.02) calc(26% + var(--pointer-y) * 0.02), rgba(223, 227, 197, 0.5), transparent 22%),
    radial-gradient(circle at calc(62% + var(--pointer-x) * -0.025) calc(72% + var(--pointer-y) * -0.02), rgba(57, 95, 61, 0.2), transparent 30%),
    conic-gradient(from 218deg at 72% 50%, rgba(245, 242, 217, 0.62), rgba(62, 99, 112, 0.22), rgba(245, 242, 217, 0.18), rgba(57, 95, 61, 0.22), rgba(245, 242, 217, 0.62)),
    repeating-linear-gradient(90deg, rgba(245, 242, 217, 0.16) 0 1px, transparent 1px 34px),
    linear-gradient(90deg, rgba(245, 242, 217, 0.94) 0%, rgba(226, 231, 208, 0.72) 45%, rgba(62, 99, 112, 0.3) 100%);
  background-size: auto, auto, auto, 34px 100%, auto;
  filter: saturate(1.1) contrast(1.02);
  opacity: 0.9;
  transform: translate3d(calc(var(--pointer-x) * -0.018), calc(var(--pointer-y) * -0.018), 0) scale(1.04);
}

.hero::after {
  position: absolute;
  top: 9%;
  right: -6vw;
  z-index: -1;
  width: min(48vw, 620px);
  height: min(68vh, 760px);
  border: 1px solid rgba(216, 219, 181, 0.26);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, transparent 0 34px, rgba(245, 242, 217, 0.18) 35px 37px),
    conic-gradient(from 120deg, rgba(57, 95, 61, 0.16), rgba(62, 99, 112, 0.18), transparent, rgba(216, 219, 181, 0.16));
  content: "";
  pointer-events: none;
  transform: rotate(-7deg) translateZ(40px);
  animation: vj-orbit 18s linear infinite;
}

.hero-depth {
  position: absolute;
  border: 1px solid rgba(16, 16, 15, 0.16);
  transform-style: preserve-3d;
  pointer-events: none;
}

.hero-depth-a {
  top: 17%;
  right: 11%;
  width: min(560px, 46vw);
  aspect-ratio: 1.55;
  transform: rotateX(62deg) rotateZ(-17deg) translateZ(-20px);
}

.hero-depth-b {
  right: 7%;
  bottom: 14%;
  width: min(360px, 32vw);
  aspect-ratio: 1;
  border-color: rgba(39, 75, 50, 0.38);
  transform: rotateX(54deg) rotateY(18deg) rotateZ(19deg) translateZ(80px);
}

.hero-depth-c {
  top: 30%;
  left: 5%;
  width: min(260px, 22vw);
  aspect-ratio: 0.7;
  border-color: rgba(62, 99, 112, 0.34);
  transform: rotateX(12deg) rotateY(-42deg) rotateZ(-5deg) translateZ(130px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1296px, 100%);
  margin: 0 auto;
  grid-template-columns: minmax(0, 760px) minmax(340px, 438px);
  gap: clamp(40px, 7vw, 98px);
  align-items: center;
  padding-top: 6vh;
  transform-style: preserve-3d;
}

.hero-content {
  transform: none;
}

.eyebrow,
.section-kicker,
.work-type,
time {
  margin: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 26px;
  font-size: clamp(70px, 8vw, 112px);
  line-height: 0.94;
  font-weight: 950;
  text-shadow: 0 18px 42px rgba(18, 42, 34, 0.12);
}

.hero-copy {
  max-width: 680px;
  margin: 0;
  color: #263b32;
  font-size: clamp(19px, 1.8vw, 23px);
  line-height: 1.6;
}

.hero-side {
  display: grid;
  gap: 0;
  align-self: center;
  transform-style: preserve-3d;
}

.astro-card {
  --weather-a: rgba(245, 244, 211, 0.38);
  --weather-b: rgba(62, 99, 112, 0.28);
  --weather-c: rgba(223, 227, 197, 0.18);
  --weather-glow: rgba(216, 219, 181, 0.2);
  position: relative;
  overflow: hidden;
  width: min(100%, 520px);
  min-height: 0;
  justify-self: center;
  border: 1px solid rgba(245, 244, 211, 0.32);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  background:
    radial-gradient(circle at calc(18% + var(--pointer-x) * 0.02) 18%, rgba(245, 242, 217, 0.22), transparent 30%),
    repeating-linear-gradient(118deg, rgba(245, 242, 217, 0.07) 0 1px, transparent 1px 18px),
    linear-gradient(135deg, rgba(62, 99, 112, 0.86), rgba(22, 61, 47, 0.94), rgba(18, 42, 34, 0.98));
  box-shadow: 0 34px 86px rgba(16, 35, 28, 0.26);
  transform: rotateY(-5deg) rotateX(3deg) translateZ(96px);
  color: #fff;
}

.astro-card.weather-sunny {
  --weather-a: rgba(246, 245, 214, 0.44);
  --weather-b: rgba(216, 219, 181, 0.3);
  --weather-c: rgba(245, 242, 217, 0.22);
  --weather-glow: rgba(216, 219, 181, 0.24);
}

.astro-card.weather-cloudy {
  --weather-a: rgba(206, 218, 206, 0.36);
  --weather-b: rgba(62, 99, 112, 0.24);
  --weather-c: rgba(245, 242, 217, 0.2);
  --weather-glow: rgba(151, 176, 166, 0.2);
}

.astro-card.weather-rainy {
  --weather-a: rgba(120, 152, 145, 0.34);
  --weather-b: rgba(35, 70, 76, 0.36);
  --weather-c: rgba(223, 227, 197, 0.18);
  --weather-glow: rgba(62, 99, 112, 0.2);
}

.astro-card.weather-foggy {
  --weather-a: rgba(236, 238, 213, 0.5);
  --weather-b: rgba(129, 157, 145, 0.34);
  --weather-c: rgba(245, 242, 217, 0.28);
  --weather-glow: rgba(236, 238, 213, 0.28);
}

.astro-card::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, var(--weather-a), transparent 34%),
    radial-gradient(circle at 90% 85%, var(--weather-b), transparent 30%),
    linear-gradient(180deg, rgba(245, 242, 217, 0.08), rgba(13, 32, 26, 0.84));
  content: "";
  pointer-events: none;
}

.astro-card::after {
  position: absolute;
  inset: -34%;
  background:
    radial-gradient(circle at 22% 34%, var(--weather-a), transparent 25%),
    radial-gradient(circle at 76% 24%, var(--weather-b), transparent 28%),
    linear-gradient(112deg, transparent 18%, var(--weather-c) 42%, transparent 68%);
  content: "";
  filter: blur(18px);
  opacity: 0.82;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: astro-flow 14s ease-in-out infinite alternate;
}

.astro-card > * {
  position: relative;
  z-index: 1;
}

.astro-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.astro-topline span,
.astro-label {
  margin: 0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.astro-topline strong {
  font-size: 14px;
  text-align: right;
}

.astro-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
}

.astro-calendar,
.astro-weather {
  border: 1px solid rgba(245, 244, 211, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(245, 242, 217, 0.2), rgba(245, 242, 217, 0.065)),
    radial-gradient(circle at 20% 0%, var(--weather-c), transparent 38%);
  backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 22px 52px var(--weather-glow);
}

.astro-calendar {
  padding: clamp(12px, 2.5vw, 18px);
}

.astro-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.astro-calendar-head button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(245, 244, 211, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  font-size: 20px;
}

.astro-calendar-head button:hover,
.astro-day:hover,
.astro-day.is-selected {
  background: rgba(245, 242, 217, 0.92);
  color: var(--ink);
}

.astro-calendar-head strong {
  font-size: clamp(18px, 4vw, 24px);
  line-height: 1.2;
  text-align: center;
}

.astro-weekdays,
.astro-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(5px, 1.4vw, 8px);
}

.astro-weekdays {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  text-align: center;
}

.astro-day {
  aspect-ratio: 1;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font: inherit;
  font-size: clamp(12px, 3.2vw, 16px);
  font-weight: 800;
}

.astro-day.is-today {
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.astro-day.is-muted {
  opacity: 0.26;
  pointer-events: none;
}

.astro-weather {
  display: grid;
  grid-template-columns: minmax(86px, 118px) minmax(0, 1fr);
  gap: 12px 16px;
  align-items: center;
  padding: clamp(12px, 2.4vw, 16px);
}

.weather-dial {
  --score: 80;
  display: grid;
  width: min(118px, 100%);
  height: auto;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  margin: 2px auto 0;
  background:
    radial-gradient(circle, rgba(18, 42, 34, 0.78) 0 56%, transparent 57%),
    conic-gradient(var(--weather-a) calc(var(--score) * 1%), rgba(255, 255, 255, 0.16) 0);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.22),
    0 0 34px var(--weather-glow);
}

.weather-dial span {
  color: #fff;
  font-size: 30px;
  font-weight: 900;
}

.weather-meter {
  grid-column: 1 / -1;
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.weather-meter span {
  display: block;
  width: 80%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--weather-b), var(--weather-a), var(--weather-c));
  background-size: 220% 100%;
  animation: weather-meter-flow 4.8s linear infinite;
  transition: width 260ms ease;
}

.weather-state {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.weather-state strong {
  font-size: 26px;
}

.weather-state span,
.astro-note {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  line-height: 1.55;
}

.astro-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.astro-metrics div {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  padding: 9px 8px;
  background: rgba(255, 255, 255, 0.07);
  text-align: center;
}

.astro-metrics dt {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.astro-metrics dd {
  margin: 4px 0 0;
  color: #fff;
  font-weight: 900;
}

.astro-note {
  grid-column: 1 / -1;
  margin: 0;
}

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

.hero-primary-actions {
  margin-top: 28px;
}

.console-dock {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 812px;
  margin-top: 64px;
  perspective: 1200px;
}

.console-tile {
  position: relative;
  overflow: hidden;
  min-height: 142px;
  border: 1px solid rgba(11, 11, 12, 0.14);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(245, 242, 217, 0.9), rgba(238, 239, 210, 0.76)),
    radial-gradient(circle at 18% 18%, rgba(57, 95, 61, 0.09), transparent 34%);
  box-shadow: 0 18px 50px rgba(16, 35, 28, 0.1), inset 0 0 0 1px rgba(245, 242, 217, 0.44);
  backdrop-filter: blur(14px);
  transform: none;
}

.console-tile:nth-child(2) {
  transform: none;
}

.console-tile:nth-child(3) {
  transform: none;
}

.console-tile:nth-child(4) {
  transform: none;
}

.console-tile::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 45%, rgba(245, 242, 217, 0.38) 46% 48%, transparent 49%),
    linear-gradient(90deg, rgba(57, 95, 61, 0.045) 1px, transparent 1px);
  background-size: 160px 160px, 26px 26px;
  content: "";
  opacity: 0.72;
  pointer-events: none;
  transform: translateX(-18%);
  transition: transform 260ms ease;
}

.console-tile::after {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 34px;
  height: 34px;
  border-top: 1px solid var(--paper-edge);
  border-left: 1px solid var(--paper-edge);
  background: linear-gradient(135deg, rgba(245, 242, 217, 0.18), rgba(62, 99, 112, 0.24));
  box-shadow: -10px -10px 22px rgba(16, 35, 28, 0.08);
  content: "";
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
  pointer-events: none;
}

.console-tile:hover,
.console-tile:focus-visible {
  border-color: rgba(41, 71, 45, 0.42);
  transform: translateY(-6px) translateZ(90px);
}

.console-tile:hover::before,
.console-tile:focus-visible::before {
  transform: translateX(12%);
}

.console-tile span,
.console-tile strong,
.console-tile small {
  position: relative;
  z-index: 1;
  display: block;
}

.console-tile span {
  color: var(--stem);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.console-tile strong {
  margin-top: 30px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.25;
}

.console-tile small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px) translateZ(20px);
}

.button-dark {
  background: var(--green);
  color: #fff;
}

.button-light {
  background: rgba(245, 242, 217, 0.78);
  color: var(--ink);
}

.button-plain {
  background: transparent;
  color: var(--ink);
}

.depth-card,
.section-inner {
  transform-style: preserve-3d;
}

.depth-card {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.depth-card:hover {
  border-color: rgba(16, 16, 15, 0.32);
  box-shadow: 0 36px 88px rgba(16, 16, 15, 0.2);
}

.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotateX(0);
}

.section,
.intro-strip,
.contact-section {
  position: relative;
  padding: 96px 36px;
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.depth-section {
  transform-style: preserve-3d;
  perspective: 1100px;
}

@keyframes card-drift {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -16px;
  }
}

@keyframes astro-flow {
  0% {
    transform: translate3d(-2%, -1%, 0) rotate(0deg) scale(1);
  }

  50% {
    transform: translate3d(3%, 2%, 0) rotate(8deg) scale(1.05);
  }

  100% {
    transform: translate3d(-1%, 4%, 0) rotate(-6deg) scale(1.02);
  }
}

@keyframes weather-meter-flow {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 220% 50%;
  }
}

@keyframes vj-orbit {
  0% {
    rotate: 0deg;
  }

  100% {
    rotate: 360deg;
  }
}

.intro-strip {
  border-bottom: 1px solid var(--line);
  background: rgba(245, 242, 217, 0.66);
}

.intro-grid,
.education-grid,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.4fr);
  gap: 72px;
  align-items: start;
}

.intro-grid h2,
.section-heading h2,
.contact-layout h2 {
  margin: 10px 0 0;
  font-size: 38px;
  line-height: 1.25;
}

.intro-copy {
  color: #263b32;
  font-size: 18px;
  transform: translateZ(52px);
}

.intro-copy p {
  margin: 0 0 18px;
}

.intro-copy p:last-child {
  margin-bottom: 0;
}

.portrait-section {
  overflow: hidden;
  padding: 106px 36px 124px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 18% 22%, rgba(62, 99, 112, 0.18), transparent 30%),
    radial-gradient(circle at 82% 78%, rgba(57, 95, 61, 0.12), transparent 30%),
    rgba(232, 235, 211, 0.86);
}

.portrait-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.45fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
}

.portrait-layout h2 {
  max-width: 520px;
  margin: 10px 0 0;
  font-size: clamp(32px, 4.8vw, 62px);
  line-height: 1.08;
}

.portrait-stack {
  position: relative;
  min-height: 520px;
  perspective: 1300px;
  transform-style: preserve-3d;
}

.portrait-stack::before {
  position: absolute;
  inset: 80px 7% 60px 14%;
  border: 1px solid rgba(16, 16, 15, 0.14);
  content: "";
  transform: rotateX(62deg) rotateZ(-10deg) translateZ(-80px);
  pointer-events: none;
}

.portrait-card {
  position: absolute;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(16, 16, 15, 0.16);
  border-radius: 8px;
  background: rgba(245, 242, 217, 0.66);
  box-shadow: var(--shadow);
}

.portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms ease, filter 260ms ease;
}

.portrait-card span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
}

.portrait-card:hover img,
.portrait-card:focus-visible img {
  filter: saturate(1.12) contrast(1.05);
  transform: scale(1.08);
}

.portrait-card-a {
  top: 0;
  left: 2%;
  width: min(520px, 66%);
  height: 360px;
  transform: rotateY(-15deg) rotateX(8deg) translateZ(86px);
}

.portrait-card-b {
  right: 1%;
  bottom: 0;
  width: min(480px, 58%);
  height: 330px;
  transform: rotateY(14deg) rotateX(8deg) translateZ(160px);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
  align-items: end;
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  perspective: 1200px;
}

.direction-card {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(245, 242, 217, 0.6);
  box-shadow: 0 18px 52px rgba(16, 35, 28, 0.1);
  opacity: 1;
  transform: translateY(28px) rotateX(12deg);
}

.direction-card:nth-child(1) {
  transform: rotateY(8deg) translateY(28px);
}

.direction-card:nth-child(2) {
  transform: translateZ(64px) translateY(28px);
}

.direction-card:nth-child(3) {
  transform: rotateY(-8deg) translateY(28px);
}

.direction-card img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  transition: transform 520ms ease, filter 260ms ease;
}

.direction-card:hover img,
.direction-card:focus-within img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.045);
}

.direction-card div {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 1;
  color: #fff;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.54);
}

.direction-card span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 900;
}

.direction-card h3,
.work-card h3,
.education-list h3 {
  margin: 18px 0 10px;
  font-size: 22px;
  line-height: 1.35;
}

.direction-card p,
.work-card p,
.education-list p {
  margin: 0;
  color: #41544a;
}

.direction-card p {
  max-width: 320px;
  color: rgba(255, 255, 255, 0.82);
}

.section-muted {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(57, 95, 61, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(245, 242, 217, 0.28), rgba(224, 230, 208, 0.92));
  background-size: 72px 72px, auto;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  perspective: 1200px;
}

.work-card {
  overflow: hidden;
  min-height: 266px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(245, 242, 217, 0.94), rgba(231, 235, 209, 0.58));
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(30px) rotateX(13deg);
}

.work-card:nth-child(1) {
  transform: rotateY(10deg) translateY(30px);
}

.work-card:nth-child(2) {
  transform: translateZ(62px) translateY(30px);
}

.work-card:nth-child(3) {
  transform: rotateY(-10deg) translateY(30px);
}

.work-card::before {
  display: block;
  width: 52px;
  height: 4px;
  margin: 26px 28px 22px;
  background: var(--stem);
  content: "";
}

.work-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04);
}

.work-card .work-type,
.work-card h3,
.work-card p:not(.work-type) {
  margin-right: 28px;
  margin-left: 28px;
}

.work-card p:not(.work-type) {
  margin-bottom: 28px;
}

.work-type {
  color: var(--stem);
}

.work-engine {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.5fr) auto;
  gap: 16px;
  align-items: end;
  margin-top: 0;
  border: 1px solid rgba(37, 68, 51, 0.2);
  border-radius: 8px;
  padding: 18px;
  background: rgba(245, 242, 217, 0.76);
  color: #41544a;
  box-shadow: 0 16px 42px rgba(16, 35, 28, 0.08);
}

.work-search {
  display: grid;
  gap: 8px;
}

.work-search span,
.work-result-status {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.work-search input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(37, 68, 51, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(245, 242, 217, 0.82);
  color: var(--ink);
  font: inherit;
}

.work-search input:focus {
  border-color: rgba(41, 71, 45, 0.48);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(57, 95, 61, 0.14);
}

.work-filters,
.work-engine-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.work-filters button,
.work-engine-actions button {
  min-height: 34px;
  border: 1px solid rgba(37, 68, 51, 0.18);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(245, 242, 217, 0.78);
  color: #263b32;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.work-filters button.is-active,
.work-filters button:hover,
.work-engine-actions button:hover {
  border-color: rgba(41, 71, 45, 0.42);
  background: var(--green);
  color: #fff;
}

.work-result-status {
  grid-column: 1 / -1;
  min-height: 18px;
  margin: 0;
  color: var(--muted);
}

.work-accordion {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.work-group {
  overflow: clip;
  border: 1px solid rgba(37, 68, 51, 0.18);
  border-radius: 8px;
  background: rgba(245, 242, 217, 0.7);
  box-shadow: 0 20px 54px rgba(16, 35, 28, 0.1);
}

.work-group.is-empty {
  display: none;
}

.work-group summary {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  color: var(--ink);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  list-style: none;
}

.work-group summary::-webkit-details-marker {
  display: none;
}

.work-group summary::after {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(37, 68, 51, 0.22);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green);
  content: "+";
  flex: 0 0 auto;
}

.work-group[open] summary::after {
  content: "-";
}

.video-catalog {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0 16px 16px;
  perspective: 1200px;
}

.video-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(37, 68, 51, 0.18);
  border-radius: 8px;
  background: rgba(245, 242, 217, 0.82);
  box-shadow: 0 20px 46px rgba(16, 35, 28, 0.1);
  cursor: pointer;
  transform: translateY(24px) rotateX(8deg);
  transition:
    transform 260ms ease,
    box-shadow 260ms ease,
    border-color 260ms ease;
}

.video-card:focus-visible {
  outline: 3px solid rgba(57, 95, 61, 0.28);
  outline-offset: 4px;
}

.video-card.is-hidden,
.work-card.is-hidden {
  display: none;
}

.video-card:hover {
  border-color: rgba(41, 71, 45, 0.32);
  box-shadow: 0 26px 60px rgba(16, 35, 28, 0.16);
  transform: translateY(-4px) translateZ(44px);
}

.video-card img,
.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(18, 42, 34, 0.88), rgba(62, 99, 112, 0.72)),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(245, 242, 217, 0.12) 28px 30px);
}

.video-card video {
  background: #10100f;
}

.video-card > div {
  padding: 16px;
}

.video-card p {
  margin: 0 0 8px;
  color: var(--stem);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.video-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.3;
}

.video-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.video-card .video-play {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(18, 42, 34, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.video-card:hover .video-play,
.video-card:focus-visible .video-play {
  opacity: 1;
  transform: translateY(0);
}

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

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

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 18%, rgba(62, 99, 112, 0.32), transparent 34%),
    rgba(13, 32, 26, 0.78);
  backdrop-filter: blur(16px);
}

.video-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  max-height: min(86vh, 860px);
  border: 1px solid rgba(245, 244, 211, 0.24);
  border-radius: 10px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(245, 242, 217, 0.96), rgba(231, 235, 209, 0.94)),
    var(--paper-warm);
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.42);
  transform: translateY(18px) scale(0.98);
  transition: transform 180ms ease;
}

.video-modal.is-open .video-modal-panel {
  transform: translateY(0) scale(1);
}

.video-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.video-modal-head p {
  margin: 0 0 4px;
  color: var(--stem);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.video-modal-head h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 44px);
  line-height: 1.1;
}

.video-modal-head button {
  flex: 0 0 auto;
  border: 1px solid rgba(17, 17, 19, 0.18);
  border-radius: 999px;
  padding: 8px 14px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.video-modal video {
  display: block;
  width: 100%;
  max-height: calc(86vh - 128px);
  border-radius: 8px;
  background: #050505;
}

.video-fallback {
  margin: 14px 0 0;
  border: 1px solid rgba(11, 11, 12, 0.16);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(11, 11, 12, 0.06);
  color: #41544a;
  font-size: 14px;
  line-height: 1.7;
}

.portrait-card::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at calc(50% + var(--pointer-x) * 0.04) calc(50% + var(--pointer-y) * 0.04), rgba(255, 255, 255, 0.2), transparent 34%),
    linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.58));
  content: "";
  pointer-events: none;
}

.education-list {
  display: grid;
  gap: 18px;
}

.education-list article {
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--line);
}

.education-list article:first-child {
  padding-top: 0;
}

.education-list article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 28%, rgba(245, 244, 211, 0.14), transparent 32%),
    linear-gradient(135deg, rgba(18, 42, 34, 0.98), rgba(49, 78, 64, 0.96));
  color: #fff;
}

.contact-section::after {
  position: absolute;
  right: 6%;
  bottom: -140px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  content: "";
  transform: rotateX(68deg) rotateZ(-22deg);
}

.contact-section .section-kicker {
  color: rgba(255, 255, 255, 0.66);
}

.contact-actions {
  margin-top: 0;
  transform: translateZ(80px);
}

.contact-section .button {
  border-color: rgba(255, 255, 255, 0.3);
}

.contact-section .button-dark {
  background: #fff;
  color: var(--ink);
}

.contact-section .button-light,
.contact-section .button-plain {
  background: transparent;
  color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .depth-card:hover {
    transform: rotateX(0) rotateY(0) translate3d(0, -6px, 96px);
  }
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-side {
    max-width: 560px;
  }

  .console-dock {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .astro-card {
    transform: rotateY(-4deg) rotateX(3deg) translateZ(80px);
  }

  .intro-grid,
  .education-grid,
  .contact-layout,
  .portrait-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

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

  .work-engine {
    grid-template-columns: 1fr;
  }

  .video-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-rig {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  body::before {
    background-size: 52px 52px;
  }

  .site-header {
    padding: 14px 18px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    top: 70px;
    right: 16px;
    left: 16px;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid rgba(17, 17, 19, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    min-height: 46px;
    padding: 10px 12px;
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: 90vh;
    padding: 106px 20px 54px;
  }

  .hero-depth-a,
  .hero-depth-b,
  .hero-depth-c {
    opacity: 0.55;
  }

  .hero-depth-a {
    width: 78vw;
    right: -18%;
  }

  .hero-depth-b {
    width: 48vw;
    right: -6%;
  }

  .hero-depth-c {
    display: none;
  }

  .hero-inner {
    padding-top: 8vh;
  }

  .hero-content {
    transform: none;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .console-dock {
    grid-template-columns: 1fr;
  }

  .console-tile,
  .console-tile:nth-child(n) {
    min-height: 0;
    transform: translateY(18px);
  }

  .astro-card {
    min-height: 210px;
    padding: 16px;
    transform: none;
  }

  .astro-layout {
    grid-template-columns: 1fr;
  }

  .astro-calendar,
  .astro-weather {
    padding: 12px;
  }

  .astro-day {
    font-size: 12px;
  }

  .button {
    width: 100%;
    min-height: 46px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .section,
  .intro-strip,
  .portrait-section,
  .contact-section {
    padding: 68px 20px;
  }

  .intro-grid h2,
  .section-heading h2,
  .contact-layout h2 {
    font-size: 30px;
  }

  .section-heading {
    display: block;
    margin-bottom: 24px;
  }

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

  .portrait-stack {
    min-height: 0;
    display: grid;
    gap: 16px;
  }

  .portrait-stack::before {
    display: none;
  }

  .portrait-card,
  .portrait-card-a,
  .portrait-card-b {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    height: 260px;
    transform: none;
  }

  .direction-card,
  .direction-card:nth-child(n) {
    min-height: 0;
    transform: translateY(24px);
  }

  .direction-card img {
    min-height: 320px;
  }

  .work-card,
  .work-card:nth-child(n) {
    min-height: 0;
    transform: translateY(24px);
  }

  .work-card::before {
    margin-right: 20px;
    margin-left: 20px;
  }

  .work-card .work-type,
  .work-card h3,
  .work-card p:not(.work-type) {
    margin-right: 20px;
    margin-left: 20px;
  }

  .work-engine {
    grid-template-columns: 1fr;
  }

  .video-catalog {
    grid-template-columns: 1fr;
  }

  .video-card {
    transform: translateY(24px);
  }

}

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

  .direction-card,
  .work-card,
  .video-card {
    opacity: 1;
    transform: none;
  }
}
