:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f1fbf9;
  --surface: #ffffff;
  --tint: #e0f7f3;
  --ink: #0a0a0a;
  --muted: #4b5557;
  --line: #d9e6e4;
  --tq: #22d3c1;
  --tq-soft: #9cf0e6;
  --tq-deep: #0b756d;
  --yw: #ffd60a;
  --on-accent: #0a0a0a;
  --night: #0a0a0a;
  --night-2: #161a1a;
  --foot: #000000;
  --on-dark: #ffffff;
  --on-dark-muted: #b4bdbe;
  --on-dark-subtle: #8f9a9b;
  --glass: rgba(255, 255, 255, 0.78);
  --glass-strong: rgba(255, 255, 255, 0.94);
  --radius: 18px;
  --shadow: 0 1px 2px rgba(10, 10, 10, 0.06), 0 12px 32px -12px rgba(10, 40, 38, 0.2);
  --shadow-lg: 0 2px 6px rgba(10, 10, 10, 0.08), 0 30px 60px -20px rgba(10, 60, 56, 0.38);
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0a;
  --bg-alt: #0e1413;
  --surface: #141616;
  --tint: #11302d;
  --ink: #f5f5f5;
  --muted: #a2adae;
  --line: #262d2d;
  --tq: #2ee6d1;
  --tq-deep: #2ee6d1;
  --night: #000000;
  --night-2: #131616;
  --glass: rgba(14, 16, 16, 0.74);
  --glass-strong: rgba(14, 16, 16, 0.94);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 32px -12px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.5), 0 30px 60px -20px rgba(0, 0, 0, 0.85);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--tq);
  outline-offset: 3px;
  border-radius: 6px;
}

.i {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

.wrap {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

.wrap.narrow {
  width: min(860px, 100% - 48px);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 10px;
  transition: top 0.2s;
}

::selection {
  background: var(--yw);
  color: #0a0a0a;
}

.skip-link:focus {
  top: 16px;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 60;
  background: transparent;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--tq), var(--yw));
  transform-origin: left;
  transform: scaleX(0);
}

.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 50;
  transform: translateX(-50%);
  width: min(1180px, 100% - 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 10px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  transition: box-shadow 0.3s var(--ease), background 0.3s;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow);
  background: var(--glass-strong);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--tq);
}

.brand span {
  display: grid;
  line-height: 1.2;
}

.brand strong {
  font-size: 0.95rem;
  font-weight: 700;
}

.brand small {
  font-size: 0.74rem;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 2px;
}

.nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}

.nav a:hover {
  color: var(--ink);
  background: var(--tint);
}

.nav a.is-active {
  color: var(--ink);
  background: var(--tint);
}

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 16px;
  height: 3px;
  margin-left: -8px;
  border-radius: 3px;
  background: var(--tq);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}

.menu-toggle span:first-child {
  top: 16px;
}

.menu-toggle span:last-child {
  top: 24px;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  top: 20px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  top: 20px;
  transform: rotate(-45deg);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  line-height: 1;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
  will-change: transform;
}

.btn .i {
  transition: transform 0.25s var(--ease);
}

.btn:hover .i {
  transform: translateX(3px);
}

.btn:active {
  transform: scale(0.97);
}

.btn-sm {
  padding: 11px 20px;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--yw);
  color: var(--on-accent);
  box-shadow: 0 8px 22px -8px rgba(255, 214, 10, 0.7);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
}

.btn-primary:hover {
  box-shadow: 0 14px 30px -8px rgba(255, 214, 10, 0.9);
}

.btn-primary:hover::before {
  transform: translateX(120%);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--tq);
  background: var(--tint);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--on-dark);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--tq);
}

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s, color 0.2s;
}

.link-btn:hover {
  color: var(--tq-soft);
  text-decoration-color: currentColor;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tq-deep);
}

.pulse {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--tq);
}

.pulse::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--tq);
  animation: ping 2s ease-out infinite;
}

@keyframes ping {
  from {
    transform: scale(0.5);
    opacity: 0.9;
  }
  to {
    transform: scale(1.4);
    opacity: 0;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tq-deep);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--tq);
  border-radius: 2px;
}

.eyebrow-light {
  color: var(--tq);
}

.hero {
  position: relative;
  padding: 150px 0 72px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
}

.orb-a {
  width: 560px;
  height: 560px;
  right: -120px;
  top: -140px;
  background: radial-gradient(circle, rgba(34, 211, 193, 0.55), transparent 65%);
}

.orb-b {
  width: 420px;
  height: 420px;
  left: -140px;
  top: 220px;
  background: radial-gradient(circle, rgba(255, 214, 10, 0.26), transparent 65%);
}

.grid-fade {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 70%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.hero-copy h1 {
  margin-top: 22px;
  font-size: clamp(2.5rem, 5.4vw, 4.35rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-copy h1 em {
  font-style: normal;
  padding: 0 0.08em;
  background: linear-gradient(transparent 58%, var(--yw) 58%, var(--yw) 92%, transparent 92%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  color: inherit;
  animation: marker 0.9s 0.5s var(--ease) forwards;
}

@keyframes marker {
  to {
    background-size: 100% 100%;
  }
}

.lede {
  margin-top: 24px;
  max-width: 54ch;
  font-size: 1.15rem;
  color: var(--muted);
}

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

.proof {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 0;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.proof > div {
  padding-right: 32px;
  margin-right: 32px;
  border-right: 1px solid var(--line);
}

.proof > div:last-child {
  border: 0;
  margin: 0;
  padding: 0;
}

.proof dt {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.proof dd {
  margin-top: 8px;
  max-width: 17ch;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.35;
}

.hero-visual {
  position: relative;
  perspective: 1200px;
}

.frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--night);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform-style: preserve-3d;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  will-change: transform;
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: var(--night-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.frame-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.frame-bar i:first-child {
  background: var(--yw);
}

.frame-bar i:nth-child(2) {
  background: var(--tq);
}

.frame-bar i:nth-child(3) {
  background: rgba(255, 255, 255, 0.7);
}

.frame-bar span {
  margin-left: 10px;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.75rem;
}

.frame img {
  width: 100%;
  height: auto;
}

.float-chip {
  position: absolute;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass-strong);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}

.float-chip b {
  display: inline-block;
  margin-right: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--tq);
  color: var(--on-accent);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fc-1 {
  left: -22px;
  top: 14%;
}

.fc-2 {
  right: -14px;
  bottom: 22%;
  animation-delay: -2s;
}

.fc-3 {
  left: 8%;
  bottom: -18px;
  animation-delay: -4s;
}

@keyframes bob {
  50% {
    translate: 0 -9px;
  }
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--surface);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll-x 38s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  padding: 18px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.marquee-track span::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 56px;
  border-radius: 50%;
  background: var(--tq);
  vertical-align: middle;
}

@keyframes scroll-x {
  to {
    transform: translateX(-50%);
  }
}

.section {
  position: relative;
  padding: 112px 0;
}

.section-tint {
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
}

.section-dark {
  background: var(--night);
  color: var(--on-dark);
}

.section-head {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin-bottom: 56px;
}

.section-head h2,
.contact h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-head > p:last-child {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 62ch;
}

.section-head-light > p:last-child {
  color: var(--on-dark-muted);
}

.section-head-light .eyebrow {
  color: var(--tq);
}

.flagship {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 56px;
  padding-block: 40px;
}

.flagship + .flagship {
  border-top: 1px solid var(--line);
}

.flagship.flip .flagship-media {
  order: 2;
}

.flagship-media {
  position: relative;
  display: block;
  perspective: 1200px;
  border-radius: var(--radius);
}

.flagship-media .frame:hover {
  box-shadow: 0 40px 80px -24px rgba(34, 211, 193, 0.4);
}

.match-art svg {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
}

.ma-pulse {
  animation: glow 3.4s ease-in-out infinite;
  transform-origin: 300px 170px;
}

.ma-flame {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: flicker 0.9s ease-in-out infinite alternate;
}

.ma-flame-b {
  animation-duration: 0.7s;
}

.ma-ember {
  animation: rise 4s ease-in infinite;
  opacity: 0;
}

.ma-ember.e2 {
  animation-delay: -1s;
}

.ma-ember.e3 {
  animation-delay: -2s;
}

.ma-ember.e4 {
  animation-delay: -3s;
}

@keyframes glow {
  50% {
    opacity: 0.65;
    transform: scale(1.06);
  }
}

@keyframes flicker {
  from {
    transform: scale(1, 1) skewX(-2deg);
  }
  to {
    transform: scale(0.92, 1.1) skewX(3deg);
  }
}

@keyframes rise {
  0% {
    opacity: 0;
    transform: translate(0, 0);
  }
  15% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: translate(12px, -110px);
  }
}

.flagship-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.flagship-meta .num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--yw);
  color: var(--on-accent);
  font-weight: 800;
  font-size: 0.8rem;
}

.flagship-copy h3 {
  margin-top: 16px;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.summary {
  margin-top: 14px;
  font-size: 1.08rem;
  color: var(--muted);
}

.points {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.points li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  font-size: 0.97rem;
}

.points .i {
  width: 22px;
  height: 22px;
  padding: 4px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--tq-deep);
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.stack li {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tq-deep);
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}

.stack li:hover {
  background: var(--tint);
  border-color: var(--tq);
  transform: translateY(-2px);
}

.stack-sm {
  margin-top: 16px;
}

.stack-sm li {
  font-size: 0.74rem;
  padding: 3px 10px;
}

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

.spot {
  position: relative;
  --mx: 50%;
  --my: 50%;
}

.card.spot::before,
.skill.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(34, 211, 193, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.card.spot:hover::before,
.skill.spot:hover::before {
  opacity: 1;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.2s var(--ease);
}

.filter:hover {
  border-color: var(--tq);
  color: var(--ink);
  transform: translateY(-1px);
}

.filter.is-active {
  background: var(--yw);
  border-color: var(--yw);
  color: var(--on-accent);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s, opacity 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--tq);
  box-shadow: var(--shadow-lg);
}

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

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--tint);
  color: var(--tq-deep);
  font-weight: 800;
  font-size: 1.1rem;
  transition: transform 0.35s var(--ease), background 0.3s;
}

.card:hover .card-icon {
  transform: rotate(-6deg) scale(1.08);
  background: var(--tq);
  color: var(--on-accent);
}

.card-icon:not([class*="card-icon-"]) {
  grid-template-columns: repeat(2, 9px);
  gap: 3px;
  align-content: center;
  justify-content: center;
}

.card-icon:not([class*="card-icon-"]) i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: currentColor;
}

.card-icon-breath b,
.card-icon-orbit b {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid currentColor;
  animation: breathe 4s ease-in-out infinite;
}

.card-icon-orbit b {
  border-radius: 50%;
  border-style: dashed;
  animation: spin 10s linear infinite;
}

@keyframes breathe {
  50% {
    transform: scale(0.6);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tq);
}

.card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card p {
  margin-top: 8px;
  font-size: 0.93rem;
  color: var(--muted);
}

.card-links {
  display: flex;
  gap: 18px;
  margin-top: auto;
  padding-top: 22px;
  font-size: 0.9rem;
  font-weight: 600;
}

.card-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--tq-deep);
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.card-links a:hover {
  border-color: var(--tq);
}

.card-links .i {
  transition: transform 0.25s var(--ease);
}

.card-links a:hover .i {
  transform: translate(2px, -2px);
}

.card-cta {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px 28px;
  background: var(--night);
  border-color: var(--night);
  color: var(--on-dark);
}

.card-cta h3 {
  grid-column: 2;
  grid-row: 1;
}

.card-cta p {
  grid-column: 2;
  grid-row: 2;
  margin-top: 0;
}

.card-cta p {
  color: var(--on-dark-muted);
}

.card-cta-kicker {
  grid-row: 1 / span 2;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tq);
}

.card-cta-arrow {
  display: grid;
  place-items: center;
  grid-column: 3;
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tq);
  color: var(--on-accent);
  transition: transform 0.35s var(--ease);
}

.card-cta:hover .card-cta-arrow {
  transform: rotate(45deg) scale(1.1);
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.3s;
}

.skill:hover {
  transform: translateY(-4px);
  border-color: var(--tq);
  box-shadow: var(--shadow);
}

.skill h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.skill p {
  margin-top: 8px;
  font-size: 0.93rem;
  color: var(--muted);
}

.skill .stack {
  margin-top: 18px;
}

.skill-note {
  background: linear-gradient(135deg, var(--night-2), var(--night));
  border-color: var(--night);
  color: var(--on-dark);
}

.skill-note p {
  color: var(--on-dark-muted);
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.vision-card {
  position: relative;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  background: var(--night-2);
  text-align: left;
  aspect-ratio: 3 / 5;
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
}

.vision-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.4s;
}

.vision-card:hover {
  transform: translateY(-5px);
  border-color: var(--tq);
  box-shadow: 0 24px 50px -20px rgba(34, 211, 193, 0.45);
}

.vision-card:hover img {
  transform: scale(1.07);
}

.vision-cap {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: 2px;
  padding: 48px 16px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  color: var(--on-dark);
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s;
}

.vision-cap small {
  color: var(--tq);
  font-weight: 600;
}

.vision-card:hover .vision-cap,
.vision-card:focus-visible .vision-cap {
  transform: none;
  opacity: 1;
}

@media (hover: none) {
  .vision-cap {
    transform: none;
    opacity: 1;
  }
}

.timeline {
  position: relative;
  display: grid;
  gap: 8px;
  padding-left: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 135px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}

.timeline::after {
  content: "";
  position: absolute;
  left: 135px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--tq), var(--yw));
  transform-origin: top;
  transform: scaleY(var(--tl, 0));
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  padding: 18px 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 128px;
  top: 28px;
  width: 16px;
  height: 16px;
  border: 3px solid var(--tq);
  border-radius: 50%;
  background: var(--bg);
  z-index: 1;
  transition: background 0.3s, transform 0.3s var(--ease);
}

.timeline li:hover::before,
.timeline li.is-now::before {
  background: var(--tq);
  transform: scale(1.2);
}

.t-year {
  padding-top: 2px;
  font-weight: 700;
  color: var(--tq-deep);
  text-align: right;
}

.timeline h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.timeline p {
  margin-top: 4px;
  color: var(--muted);
}

.link-row {
  margin-top: 28px;
  padding-left: 175px;
  font-weight: 600;
}

.link-row a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tq-deep);
  border-bottom: 2px solid var(--tq);
  padding-bottom: 2px;
}

.link-row a:hover .i {
  transform: translate(2px, -2px);
}

.link-row .i {
  transition: transform 0.25s var(--ease);
}

.contact {
  background: var(--night);
  color: var(--on-dark);
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb-c {
  width: 620px;
  height: 620px;
  right: -160px;
  top: -200px;
  background: radial-gradient(circle, rgba(34, 211, 193, 0.4), transparent 65%);
}

.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.contact h2 {
  margin-top: 18px;
}

.contact .lede {
  color: var(--on-dark-muted);
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}

a.contact-row:hover {
  transform: translateX(6px);
  border-color: var(--tq);
  background: rgba(34, 211, 193, 0.1);
}

.contact-row > span:nth-child(2) {
  display: grid;
  flex: 1;
  min-width: 0;
}

.contact-row small {
  color: var(--on-dark-subtle);
  font-size: 0.78rem;
}

.contact-row strong {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(34, 211, 193, 0.14);
  color: var(--tq);
}

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

.contact-row .go {
  color: var(--tq);
  opacity: 0.6;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

a.contact-row:hover .go {
  opacity: 1;
  transform: translate(3px, -3px);
}

.site-footer {
  background: var(--foot);
  color: var(--on-dark-subtle);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px;
}

.footer-inner a:hover {
  color: var(--tq-soft);
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--yw);
  color: var(--on-accent);
  box-shadow: 0 10px 26px -8px rgba(255, 214, 10, 0.8);
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  transform: translateY(-3px);
}

.lightbox {
  width: min(1040px, 94vw);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--night);
  color: var(--on-dark);
  overflow: hidden;
}

.lightbox[open] {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  animation: pop 0.35s var(--ease);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
}

.lb-image {
  position: relative;
  display: grid;
  place-items: center;
  background: #000;
  max-height: 92vh;
}

.lb-image img {
  max-height: 92vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.lb-copy {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 36px;
}

.lb-copy span {
  color: var(--tq);
  font-weight: 700;
  font-size: 0.85rem;
}

.lb-copy h3 {
  font-size: 1.8rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lb-copy p {
  color: var(--on-dark-muted);
}

.lb-close,
.lb-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--on-dark);
  backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.2s var(--ease);
}

.lb-close {
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  line-height: 1;
}

.lb-nav {
  top: 50%;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  font-size: 1.8rem;
  line-height: 1;
}

.lb-prev {
  left: 14px;
}

.lb-next {
  right: 14px;
}

.lb-close:hover,
.lb-nav:hover {
  background: var(--tq);
  color: var(--on-accent);
  transform: scale(1.08);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 90;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--night);
  color: var(--on-dark);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.noscript {
  padding: 12px 24px;
  background: var(--tint);
  text-align: center;
  font-size: 0.9rem;
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.recruiter-view #visuals,
.recruiter-view [data-visuals],
.recruiter-view .marquee {
  display: none;
}

@media (max-width: 1020px) {
  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero {
    padding-top: 128px;
  }

  .hero-visual {
    max-width: 640px;
  }

  .flagship {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .flagship.flip .flagship-media {
    order: 0;
  }

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

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

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--glass-strong);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s var(--ease);
  }

  .nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav a {
    padding: 14px 16px;
  }

  .nav a.is-active::after {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 680px) {
  .wrap,
  .wrap.narrow {
    width: calc(100% - 32px);
  }

  .section {
    padding: 80px 0;
  }

  .brand small {
    display: none;
  }

  .btn-sm {
    display: none;
  }

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

  .proof > div {
    padding-right: 0;
    margin-right: 0;
    border-right: 0;
  }

  .proof dd {
    max-width: none;
    font-size: 0.74rem;
  }

  .float-chip {
    display: none;
  }

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

  .card-cta {
    grid-template-columns: 1fr auto;
  }

  .card-cta-kicker {
    grid-row: 1;
    grid-column: 1 / -1;
  }

  .card-cta h3,
  .card-cta p {
    grid-column: 1;
  }

  .card-cta h3 {
    grid-row: 2;
  }

  .card-cta p {
    grid-row: 3;
  }

  .card-cta-arrow {
    grid-column: 2;
    grid-row: 2 / span 2;
  }

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

  .timeline::before,
  .timeline::after {
    left: 7px;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-left: 32px;
  }

  .timeline li::before {
    left: 0;
  }

  .t-year {
    text-align: left;
  }

  .link-row {
    padding-left: 32px;
  }

  .lightbox[open] {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .lb-copy {
    padding: 22px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .marquee-track {
    animation: none;
  }
}

@media print {
  .site-header,
  .to-top,
  .scroll-progress,
  .marquee,
  .toast {
    display: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

.theme-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.3s var(--ease), background 0.3s;
}

.theme-toggle:hover {
  border-color: var(--yw);
  transform: rotate(18deg);
}

.theme-toggle svg {
  position: absolute;
  width: 20px;
  height: 20px;
  transition: transform 0.5s var(--ease), opacity 0.3s;
}

.theme-toggle .i-moon {
  transform: translateY(150%) rotate(-60deg);
  opacity: 0;
}

:root[data-theme="dark"] .theme-toggle .i-sun {
  transform: translateY(-150%) rotate(60deg);
  opacity: 0;
}

:root[data-theme="dark"] .theme-toggle .i-moon {
  transform: none;
  opacity: 1;
}

.theme-anim,
.theme-anim *,
.theme-anim *::before,
.theme-anim *::after {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, fill 0.4s ease !important;
}

:root[data-theme="dark"] .hero-copy h1 em {
  background-image: linear-gradient(transparent 82%, var(--yw) 82%, var(--yw) 96%, transparent 96%);
}
