:root {
  --ui-scale: 1;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.76);
  --paper: #0b8db0;
  --paper-strong: rgba(255, 255, 255, 0.16);
  --line: rgba(255, 255, 255, 0.3);
  --accent: #f05a42;
  --accent-2: rgba(226, 252, 255, 0.95);
  --gold: #f2c879;
  --gold-soft: rgba(242, 200, 121, 0.62);
  --night: #0b2430;
  --night-soft: #123949;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.1);
  --glass-strong: rgba(255, 255, 255, 0.16);
  --glass-dark: rgba(255, 255, 255, 0.06);
  --shadow: 0 24px 80px rgba(0, 80, 110, 0.14);
}

.section-lead {
  max-width: 760px;
  margin: 14px auto 0;
  color: rgba(233, 238, 247, 0.72);
  font-size: 1rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 24px;
}

.resume-link.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #e9eef7;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

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

.engine-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 22px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04)),
    rgba(13, 19, 38, 0.86);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.26);
}

.engine-card.featured-engine {
  border-color: rgba(109, 242, 197, 0.42);
  box-shadow: 0 20px 70px rgba(72, 220, 181, 0.16);
}

.engine-head {
  display: grid;
  gap: 8px;
}

.engine-head span,
.vibe-card span {
  color: #6df2c5;
}

.engine-head span {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.engine-head strong {
  color: #fff;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.28;
}

.engine-card p {
  margin: 0;
  color: rgba(233, 238, 247, 0.72);
  line-height: 1.75;
}

.mini-flow {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 10px;
  margin-top: auto;
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.07);
}

.mini-flow b,
.mini-flow i {
  min-width: 0;
  font-size: 0.86rem;
  line-height: 1.55;
}

.mini-flow b {
  color: #fff;
}

.mini-flow i {
  color: rgba(233, 238, 247, 0.68);
  font-style: normal;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.card-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 10px 14px;
  color: #e9eef7;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.card-link:hover {
  transform: translateY(-2px);
  border-color: rgba(109, 242, 197, 0.46);
  background: rgba(109, 242, 197, 0.09);
}

.card-link.primary {
  border-color: transparent;
  background: #6df2c5;
  color: #081120;
}

.training-grid .vibe-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

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

@media (max-width: 1020px) {
  .engine-grid,
  .business-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .section-lead {
    text-align: left;
  }

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

  .engine-card {
    border-radius: 20px;
    padding: 18px;
  }

  .mini-flow {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Aptos", "Segoe UI", "Microsoft YaHei", sans-serif;
  isolation: isolate;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("assets/space-bg.png");
  background-position: center;
  background-size: cover;
  filter: brightness(0.88) saturate(1.04) contrast(1.05);
  animation: waterDrift 18s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 47% 42%, rgba(255, 207, 126, 0.12), transparent 28%),
    radial-gradient(circle at 50% 50%, transparent 34%, rgba(2, 9, 14, 0.28) 100%),
    linear-gradient(180deg, rgba(2, 7, 12, 0.14), rgba(3, 9, 14, 0.04) 42%, rgba(2, 7, 12, 0.2));
}

@keyframes waterDrift {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.05) translate3d(-2.4%, -1.6%, 0);
  }
}

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

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 24px;
  z-index: 20;
  width: min(1134px, calc(100% - 72px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 24px auto 0;
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  background: rgba(6, 14, 22, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -1px 0 rgba(255,255,255,0.08),
    0 18px 48px rgba(0, 75, 102, 0.1);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(6, 14, 22, 0.34);
  border-color: rgba(255, 255, 255, 0.3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #1d3440;
  background: linear-gradient(135deg, #ffe7b8, #f4cd8a);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(242, 200, 121, 0.16);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav-links a {
  position: relative;
  min-height: 36px;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
}

.nav-links a:first-child {
  color: var(--gold);
}

.nav-links a:first-child::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: 2px;
  left: 13px;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
}

.nav-links a:hover {
  border-color: rgba(255, 255, 255, 0.72);
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.section-shell {
  width: min(1188px, calc(100% - 96px));
  margin: 0 auto;
}

main,
.section-shell,
.hero {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(297px, 342px) minmax(0, 738px);
  gap: 46px;
  align-items: stretch;
  align-content: center;
  justify-content: center;
  min-height: calc(100vh - 132px);
  padding: clamp(8px, 2vh, 20px) 0 clamp(34px, 5vh, 58px);
  transform: translateY(-14px);
}

.hero-copy {
  width: 100%;
}

.hero-card {
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0, 42, 58, 0.34);
}

.hero-card,
.capability-card {
  padding: clamp(24px, 4vw, 42px);
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.capability-card {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 34px 0 34px 30px;
  color: var(--white);
  text-shadow: 0 2px 18px rgba(0, 20, 30, 0.52);
}

.capability-card::before {
  content: "";
  position: absolute;
  top: 54px;
  bottom: 24px;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(242, 200, 121, 0.64), transparent);
}

.capability-card::after {
  content: "";
  position: absolute;
  top: 72px;
  bottom: 36px;
  left: -4px;
  width: 9px;
  background:
    radial-gradient(circle, var(--gold) 0 2px, transparent 3px) center top / 9px 25% repeat-y;
  opacity: 0.9;
}

.capability-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 2px;
  color: rgba(255, 236, 197, 0.96);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.capability-title span {
  width: 18px;
  height: 1px;
  background: var(--gold-soft);
}

.capability-list {
  display: grid;
  flex: 1;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-content: stretch;
}

.capability-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 0;
  padding: 18px 20px;
  border: 1px solid rgba(255, 232, 184, 0.28);
  border-radius: 18px;
  background: rgba(10, 12, 14, 0.34);
  color: var(--white);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 16px 42px rgba(0, 0, 0, 0.18);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.capability-item:hover {
  transform: translateX(6px);
  background: rgba(24, 20, 16, 0.44);
  box-shadow:
    0 0 0 1px rgba(242, 200, 121, 0.18),
    0 20px 46px rgba(0, 0, 0, 0.22);
}

.capability-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 232, 184, 0.28);
  border-radius: 16px;
  color: rgba(255, 224, 170, 0.98);
  background: rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 24px rgba(242, 200, 121, 0.06);
}

.capability-icon svg,
.summary-icon svg,
.contact-icon svg,
.resume-link svg,
.script-link svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.capability-icon svg {
  width: 36px;
  height: 36px;
}

.capability-icon [href="#icon-video"] {
  fill: rgba(255, 224, 170, 0.22);
}

.capability-copy {
  display: grid;
  gap: 7px;
}

.capability-copy strong {
  font-size: 21px;
}

.capability-copy small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.5;
}

.capability-arrow {
  color: rgba(255, 226, 175, 0.92);
  font-size: 34px;
  line-height: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: rgba(255, 226, 175, 0.96);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4.6vw, 58px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.pixel-title {
  color: rgba(255, 248, 232, 0.98);
  font-family: "NSimSun", "SimSun", "Courier New", monospace;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.95),
    0 0 18px rgba(255, 219, 166, 0.36),
    0 8px 34px rgba(0, 0, 0, 0.58);
  -webkit-font-smoothing: none;
  font-smooth: never;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .pixel-title {
    color: transparent;
    background:
      linear-gradient(rgba(255, 250, 236, 0.98), rgba(255, 244, 218, 0.84)),
      repeating-linear-gradient(90deg, transparent 0 7px, rgba(255, 255, 255, 0.34) 7px 8px),
      repeating-linear-gradient(0deg, transparent 0 7px, rgba(255, 255, 255, 0.28) 7px 8px);
    background-clip: text;
    -webkit-background-clip: text;
    text-shadow:
      0 0 20px rgba(255, 219, 166, 0.36),
      0 8px 34px rgba(0, 0, 0, 0.62);
  }
}

h2 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 6vw, 80px);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.18;
}

.hero-subtitle {
  margin-bottom: 24px;
  font-size: clamp(21px, 2.4vw, 30px);
  color: var(--white);
  font-weight: 900;
}

.hero-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-text,
.section-heading p,
.about-copy p,
.contact-section p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.78;
}

.hero-summary {
  max-width: 820px;
  margin: 26px 0 26px;
  padding: 16px 34px;
  border: 1px solid rgba(255, 232, 184, 0.2);
  border-radius: 16px;
  background: rgba(10, 12, 14, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 46px rgba(0, 0, 0, 0.18);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero-summary p {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}

.hero-summary p:last-child {
  border-bottom: 0;
}

.summary-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--gold);
}

.summary-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.summary-icon [href="#icon-star"] {
  fill: rgba(242, 200, 121, 0.34);
}

.hero-summary mark {
  color: var(--gold);
  background: transparent;
}

.resume-link {
  position: absolute;
  top: clamp(92px, 14vh, 132px);
  right: 24px;
  display: inline-flex;
  min-width: 236px;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 14px 22px;
  border: 1px solid rgba(255, 232, 184, 0.3);
  border-radius: 16px;
  color: var(--white);
  background: rgba(10, 12, 14, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 18px 46px rgba(0, 0, 0, 0.18);
  font-size: 18px;
  font-weight: 900;
  text-shadow: 0 2px 18px rgba(0, 20, 30, 0.5);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.resume-link:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 200, 121, 0.58);
  background: rgba(24, 20, 16, 0.46);
}

.resume-link span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 232, 184, 0.28);
  border-radius: 10px;
  color: rgba(255, 224, 170, 0.98);
  background: rgba(255, 255, 255, 0.06);
}

.resume-link svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.9;
}

.contact-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(310px, 1.1fr);
  max-width: 820px;
  border: 1px solid rgba(255, 232, 184, 0.2);
  border-radius: 18px;
  background: rgba(10, 12, 14, 0.36);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: hidden;
}

.contact-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px 24px;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.contact-item + .contact-item {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: rgba(255, 232, 184, 0.96);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.contact-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.9;
}

.contact-item small {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 226, 175, 0.92);
  font-size: 13px;
  font-weight: 900;
}

.contact-item strong {
  color: var(--white);
  font-size: 18px;
  white-space: nowrap;
}

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

.button,
.filter-chip {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid rgba(255, 232, 184, 0.28);
  border-radius: 999px;
  background: rgba(10, 12, 14, 0.34);
  color: rgba(255, 255, 255, 0.88);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 24px rgba(0, 0, 0, 0.12);
  backdrop-filter: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.filter-chip:hover {
  transform: translateY(-2px);
}

.button.primary,
.filter-chip.active {
  color: rgba(255, 236, 197, 0.98);
  background: rgba(24, 20, 16, 0.46);
  border-color: rgba(242, 200, 121, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 0 18px rgba(242, 200, 121, 0.08),
    0 0 0 1px rgba(242, 200, 121, 0.12),
    0 0 24px rgba(242, 200, 121, 0.16);
}

.section-block {
  padding: 88px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.46);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading.compact {
  margin-bottom: 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

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

.work-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border: 1px solid rgba(255, 232, 184, 0.18);
  border-radius: 18px;
  background: rgba(10, 12, 14, 0.36);
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.16);
  backdrop-filter: none;
}

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

.media-placeholder {
  display: grid;
  min-height: 220px;
  place-items: center;
  color: rgba(255, 255, 255, 0.78);
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.46), transparent 20%),
    linear-gradient(135deg, rgba(8, 122, 134, 0.92), transparent 52%),
    linear-gradient(315deg, rgba(240, 90, 66, 0.78), transparent 46%),
    linear-gradient(135deg, var(--night), #17485a);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 900;
}

.work-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  background: #101416;
  cursor: pointer;
  overflow: hidden;
}

.work-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.work-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(0, 0, 0, 0.42));
  pointer-events: none;
}

.work-media:hover img {
  transform: scale(1.035);
  filter: brightness(1.06);
}

.work-media.image-only {
  cursor: default;
}

.work-media.image-only:hover img {
  transform: none;
  filter: none;
}

.play-badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  padding: 8px 13px;
  border: 1px solid rgba(255, 232, 184, 0.34);
  border-radius: 999px;
  color: var(--white);
  background: rgba(10, 12, 14, 0.42);
  font-size: 13px;
  font-weight: 900;
}

.work-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.tag {
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 6px 10px;
  border: 1px solid rgba(8, 122, 134, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
}

.work-content p,
.work-content li,
.tool-stack p,
.ability-showcase p,
.ability-showcase li {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.68;
}

.work-content ul {
  margin: auto 0 0;
  padding-left: 18px;
}

.script-link {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 10px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 232, 184, 0.3);
  border-radius: 999px;
  color: var(--white);
  background: rgba(10, 12, 14, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 34px rgba(0, 0, 0, 0.16);
  font-size: 13px;
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.script-link:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 200, 121, 0.58);
  background: rgba(24, 20, 16, 0.46);
}

.script-link span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(255, 232, 184, 0.28);
  border-radius: 7px;
  color: rgba(255, 224, 170, 0.98);
  background: rgba(255, 255, 255, 0.06);
  flex: 0 0 auto;
}

.script-link svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.9;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(1, 4, 7, 0.76);
}

.video-modal.is-open {
  display: flex;
}

.video-modal-panel {
  position: relative;
  width: min(1080px, 100%);
  padding: 22px;
  border: 1px solid rgba(255, 232, 184, 0.24);
  border-radius: 18px;
  background: rgba(10, 12, 14, 0.92);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.video-modal-panel h3 {
  margin: 0 44px 16px 0;
  color: var(--white);
}

.video-modal video {
  display: block;
  width: 100%;
  max-height: 76vh;
  border-radius: 12px;
  background: #000;
}

.video-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: start;
}

.text-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.tool-stack {
  display: grid;
  gap: 14px;
}

.tool-stack article,
.ability-panel {
  scroll-margin-top: 96px;
}

.tool-stack article,
.ability-panel {
  padding: 22px;
  border: 1px solid rgba(255, 232, 184, 0.2);
  border-radius: 16px;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.08), transparent 46%),
    rgba(10, 12, 14, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 46px rgba(0, 0, 0, 0.18);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.tool-stack span {
  display: block;
  margin-bottom: 16px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.vibe-section .section-heading {
  margin-bottom: 28px;
}

.vibe-section .eyebrow {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
  letter-spacing: 0.08em;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.42);
}

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

.vibe-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(255, 232, 184, 0.18);
  border-radius: 18px;
  background: rgba(10, 12, 14, 0.36);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.16);
}

.vibe-card:first-child {
  grid-column: span 2;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  grid-template-rows: none;
}

.vibe-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 238px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.vibe-card:not(:first-child) img {
  aspect-ratio: 16 / 9;
}

.vibe-card div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
}

.vibe-card span {
  display: block;
  margin-bottom: 14px;
  color: rgba(255, 226, 175, 0.96);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vibe-card h3 {
  margin-bottom: 12px;
}

.vibe-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  line-height: 1.72;
}

.ability-showcase {
  display: grid;
  gap: 22px;
}

.ability-panel {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: center;
}

.operation-panel {
  grid-template-columns: minmax(0, 1.35fr) minmax(180px, 0.45fr);
}

.ability-copy span {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 226, 175, 0.96);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ability-copy h3 {
  margin-bottom: 16px;
  font-size: 30px;
}

.ability-copy ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.ability-copy li::marker {
  color: var(--gold);
}

.ability-copy mark {
  color: #ffdd8a;
  background: transparent;
  font-weight: 900;
}

.ability-copy strong {
  color: var(--white);
}

.ability-media {
  min-width: 0;
  justify-self: end;
  width: 100%;
}

.ability-media.single img,
.ability-media figure img {
  display: block;
  width: 100%;
  border: 1px solid rgba(255, 232, 184, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
}

.ability-media.single img {
  max-height: 340px;
  object-fit: contain;
  object-position: top center;
}

#data-analysis .ability-media.single img {
  max-width: 320px;
}

.ability-media.pair {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 16px;
  align-items: start;
  justify-self: end;
}

.ability-media figure {
  margin: 0;
}

.ability-media.pair img {
  height: 200px;
  object-fit: contain;
  object-position: top center;
}

.ability-media.pair img.doc-image {
  height: auto;
  max-height: none;
  aspect-ratio: 1280 / 624;
}

.ability-media.pair figure:first-child img {
  object-fit: contain;
}

.ability-media.single {
  display: flex;
  justify-content: flex-end;
}

.ability-media.single img {
  width: auto;
  max-width: 100%;
}

.operation-panel .ability-media.single img {
  max-height: 330px;
}

.ability-media figcaption {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  text-align: center;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.6fr) minmax(0, 1.4fr);
  gap: 40px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 30px;
  align-items: center;
  padding: 76px 0 96px;
}

.contact-card {
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(8, 122, 134, 0.82), rgba(11, 36, 48, 0.92)),
    var(--night);
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.contact-card button,
.contact-card span {
  padding-bottom: 12px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: inherit;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.contact-card span {
  border-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  cursor: default;
}

.copy-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  padding: 11px 16px;
  border: 1px solid rgba(255, 232, 184, 0.28);
  border-radius: 999px;
  color: var(--white);
  background: rgba(10, 12, 14, 0.74);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
  font-size: 14px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

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

@media (min-width: 961px) {
  :root {
    --ui-scale: 0.9;
  }

  .site-header,
  main {
    zoom: var(--ui-scale);
  }

  .hero {
    min-height: calc((100vh - 76px) / var(--ui-scale));
  }
}

@media (max-width: 960px) {
  .hero,
  .split-section,
  .about-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    order: 1;
  }

  .capability-card {
    order: 2;
  }

  .vibe-grid,
  .vibe-card:first-child {
    grid-template-columns: 1fr;
  }

  .ability-panel,
  .ability-media.pair {
    grid-template-columns: 1fr;
  }

  .vibe-card:first-child {
    grid-column: span 1;
  }

  .capability-card {
    width: 100%;
    padding-left: 30px;
  }

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

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

  .contact-strip {
    grid-template-columns: 1fr;
  }

  .resume-link {
    position: static;
    width: fit-content;
    margin-bottom: 8px;
  }

  .contact-item + .contact-item {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: center;
    flex-direction: row;
    gap: 10px;
    width: min(100% - 28px, 1180px);
    padding: 10px 12px;
  }

  .nav-links {
    flex: 1;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 4px;
  }

  .brand {
    flex-shrink: 0;
    gap: 8px;
    font-size: 11px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .nav-links a {
    min-height: 30px;
    padding: 7px 5px;
    font-size: 11px;
    white-space: nowrap;
  }

  .nav-links a:first-child::after {
    right: 5px;
    left: 5px;
  }

  .section-shell {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    min-height: auto;
    padding-top: 32px;
    transform: none;
  }

  .hero-card,
  .capability-card {
    padding-right: 0;
    padding-left: 0;
  }

  .hero-summary {
    padding: 14px 18px;
  }

  .hero-summary p {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    font-size: 15px;
  }

  .contact-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 16px;
  }

  .contact-icon {
    width: 38px;
    height: 38px;
  }

  .contact-icon svg {
    width: 22px;
    height: 22px;
  }

  .work-grid,
  .vibe-grid,
  .ability-showcase {
    grid-template-columns: 1fr;
  }

  .vibe-card img,
  .vibe-card:first-child img {
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .vibe-card div {
    padding: 20px;
  }

  .ability-panel {
    padding: 20px;
  }

  .ability-media,
  .ability-media.single,
  .ability-media.pair {
    width: 100%;
    justify-self: stretch;
  }

  .ability-media.single img,
  #data-analysis .ability-media.single img,
  .operation-panel .ability-media.single img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
  }

  .ability-media.pair img,
  .ability-media.pair img.doc-image {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
  }

  .capability-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .capability-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
  }

  .capability-icon {
    width: 40px;
    height: 40px;
  }

  .capability-icon svg {
    width: 25px;
    height: 25px;
  }

  .capability-copy {
    gap: 3px;
  }

  .capability-copy strong {
    font-size: 15px;
    line-height: 1.2;
  }

  .capability-copy small {
    font-size: 11px;
    line-height: 1.3;
  }

  .capability-arrow {
    display: none;
  }

  .media-placeholder {
    min-height: 190px;
  }
}

.hero-actions .resume-link {
  position: static;
  top: auto;
  right: auto;
  min-width: auto;
  min-height: 48px;
  padding: 12px 18px;
  font-size: 16px;
}

.hero-actions .resume-link.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #e9eef7;
  border-color: rgba(255, 255, 255, 0.16);
}

.hero-copy .pixel-title {
  max-width: 780px;
  letter-spacing: 0;
}

.hero-copy .hero-subtitle {
  max-width: 820px;
}

.hero-summary p {
  grid-template-columns: minmax(132px, 0.34fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.hero-summary strong {
  color: #fff6db;
  line-height: 1.45;
}

.hero-summary span {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

@media (max-width: 720px) {
  .hero-summary p {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
