:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --c-blue: #f5f5f7;
  --c-blue-deep: #d2d2d7;
  --c-teal: #f5f5f7;
  --c-violet: #f5f5f7;
  --c-green: #30d158;

  --r-xs: 12px;
  --r-sm: 16px;
  --r-md: 22px;
  --r-lg: 28px;
  --r-xl: 32px;
  --r-pill: 999px;

  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #fbfbfd;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, .1);
  --hover: rgba(0, 0, 0, .045);
  --pill-active: rgba(0, 0, 0, .06);

  --glass-bg: rgba(255, 255, 255, .72);
  --glass-border: rgba(0, 0, 0, .08);
  --glass-blur: 24px;
  --glass-sat: 130%;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 16px 40px -26px rgba(0, 0, 0, .18);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 26px -20px rgba(0, 0, 0, .16);
  --spec: inset 0 1px 0 rgba(255, 255, 255, .9);
  --rim-op: .4;
  --chip-bg: rgba(0, 0, 0, .035);
  --chip-border: rgba(0, 0, 0, .08);
  --gauge-core: #ffffff;
  --gauge-track: rgba(0, 0, 0, .08);
  --btn-bg: #1d1d1f;
  --btn-fg: #ffffff;

  --c-blue: #1d1d1f;
  --c-blue-deep: #000000;
  --c-teal: #1d1d1f;
  --c-violet: #1d1d1f;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --text: #f5f5f7;
  --muted: #86868b;
  --line: rgba(255, 255, 255, .1);
  --hover: rgba(255, 255, 255, .06);
  --pill-active: rgba(255, 255, 255, .1);

  --glass-bg: rgba(255, 255, 255, .05);
  --glass-border: rgba(255, 255, 255, .11);
  --glass-blur: 24px;
  --glass-sat: 120%;
  --shadow: inset 0 1px 0 rgba(255, 255, 255, .02), 0 30px 70px -40px rgba(0, 0, 0, .95);
  --shadow-sm: 0 12px 34px -26px rgba(0, 0, 0, .9);
  --spec: inset 0 1px 0 rgba(255, 255, 255, .12);
  --rim-op: .45;
  --chip-bg: rgba(255, 255, 255, .045);
  --chip-border: rgba(255, 255, 255, .09);
  --gauge-core: #0a0a0b;
  --gauge-track: rgba(255, 255, 255, .12);
  --btn-bg: #f5f5f7;
  --btn-fg: #000000;

  --c-blue: #f5f5f7;
  --c-blue-deep: #d2d2d7;
  --c-teal: #f5f5f7;
  --c-violet: #f5f5f7;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .55s ease, color .45s ease;
}

h1, h2, h3, h4, p, ul, dl, dd, figure {
  margin: 0;
  padding: 0;
}

h1, h2, h3, .hero-tagline, .contact-title {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

ul {
  list-style: none;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

::selection {
  background: color-mix(in srgb, var(--text) 22%, transparent);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: .65rem 1rem;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  font-size: .85rem;
  font-weight: 600;
  transform: translateY(-180%);
  transition: transform .35s var(--ease);
}

.skip-link:focus {
  transform: none;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}

.grain {
  position: absolute;
  inset: 0;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
}

.glass {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow), var(--spec);
  isolation: isolate;
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, .85),
    rgba(255, 255, 255, .08) 30%,
    rgba(255, 255, 255, 0) 58%,
    rgba(255, 255, 255, .4) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: var(--rim-op);
  pointer-events: none;
  z-index: 3;
}

.glass::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 0;
  height: 1px;
  border-radius: inherit;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, .95) 22%,
    rgba(255, 255, 255, .95) 78%,
    transparent);
  opacity: .8;
  pointer-events: none;
  z-index: 4;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass {
    background: color-mix(in srgb, var(--bg) 82%, var(--text) 5%);
  }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--muted);
}

.pulse {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-green) 55%, transparent);
  animation: pulse 2.6s ease-out infinite;
  flex: none;
}

.nav-wrap {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding-inline: 14px;
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  --r: var(--r-pill);
  --glass-blur: 22px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px;
  max-width: calc(100vw - 28px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 3px 11px 3px 3px;
  border-radius: var(--r-pill);
  font-size: .93rem;
  font-weight: 600;
  letter-spacing: -.015em;
  transition: background-color .3s var(--ease);
}

.nav-brand:hover {
  background: var(--hover);
}

.nav-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--bg);
  background: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
  flex: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1px;
  margin-left: 2px;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: -.008em;
  color: var(--muted);
  transition: color .3s var(--ease), background-color .3s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
  background: var(--hover);
}

.nav-links a.is-active {
  color: var(--text);
  background: var(--pill-active);
  box-shadow: var(--spec), 0 1px 3px rgba(0, 0, 0, .06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 2px;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-pill);
  color: var(--muted);
  transition: color .3s var(--ease), background-color .3s var(--ease), transform .3s var(--ease);
}

.theme-toggle:hover {
  color: var(--text);
  background: var(--hover);
}

.theme-toggle:active {
  transform: scale(.92);
}

.icon {
  width: 18px;
  height: 18px;
}

html[data-theme="dark"] .icon-sun { display: block; }
html[data-theme="dark"] .icon-moon { display: none; }
html[data-theme="light"] .icon-sun { display: none; }
html[data-theme="light"] .icon-moon { display: block; }

.nav-toggle {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: var(--r-pill);
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 15px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  transform: translateX(-50%);
  transition: transform .35s var(--ease), opacity .25s;
}

.nav-toggle span:first-child { top: 14px; }
.nav-toggle span:last-child { top: 19px; }

.nav[data-open="true"] .nav-toggle span:first-child {
  transform: translateX(-50%) translateY(2.5px) rotate(45deg);
}
.nav[data-open="true"] .nav-toggle span:last-child {
  transform: translateX(-50%) translateY(-2.5px) rotate(-45deg);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.35rem;
  border-radius: var(--r-pill);
  font-size: .93rem;
  font-weight: 590;
  letter-spacing: -.012em;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background-color .3s, color .3s, border-color .3s;
}

.btn .icon {
  width: 17px;
  height: 17px;
  flex: none;
}

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

.btn-primary {
  color: var(--btn-fg);
  background: var(--btn-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.btn-primary:hover {
  transform: translateY(-2px);
  opacity: .88;
}

.btn-primary:active {
  transform: scale(.97);
}

.btn-glass {
  color: var(--text);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  box-shadow: var(--shadow-sm), var(--spec);
}

.btn-glass:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow), var(--spec), inset 0 0 0 100px color-mix(in srgb, var(--text) 5%, transparent);
}

.btn-glass:active {
  transform: scale(.97);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: .4rem .78rem;
  border-radius: var(--r-pill);
  font-size: .79rem;
  font-weight: 520;
  letter-spacing: -.004em;
  color: var(--text);
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  box-shadow: var(--spec);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
}

.hero {
  padding: clamp(120px, 16vh, 190px) 0 clamp(52px, 8vh, 92px);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-title {
  margin-top: 18px;
  font-size: clamp(3.3rem, 1.3rem + 8.6vw, 7.3rem);
  font-weight: 700;
  line-height: .94;
  letter-spacing: -.045em;
  color: var(--text);
}

.hero-tagline {
  margin-top: 20px;
  max-width: 18ch;
  font-size: clamp(1.3rem, .95rem + 1.35vw, 1.9rem);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -.028em;
}

.hero-tagline .accent {
  color: var(--muted);
}

.hero-bio {
  margin-top: 20px;
  max-width: 50ch;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.66;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 30px;
}

.hero-note {
  margin-top: 20px;
  font-size: .88rem;
  color: var(--muted);
}

.hero-note a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--text) 30%, transparent);
  text-underline-offset: 3px;
  transition: text-decoration-color .3s;
}

.hero-note a:hover {
  text-decoration-color: var(--c-blue);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 470px;
}

.mock-window {
  position: relative;
  z-index: 2;
  width: min(420px, 100%);
  border-radius: 24px;
  overflow: hidden;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}

.tl {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}

.tl:nth-child(1) { background: #ff5f57; }
.tl:nth-child(2) { background: #febc2e; }
.tl:nth-child(3) { background: #28c840; }

.mock-title {
  margin-left: 7px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: -.012em;
  color: var(--text);
}

.mock-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--muted);
}

.mock-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 9px var(--c-green);
}

.mock-body {
  padding: 26px 22px 22px;
  display: grid;
  gap: 20px;
}

.gauge-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.gauge {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.gauge-ring {
  position: relative;
  width: 76px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(from -90deg, var(--tone) calc(var(--p) * 1%), var(--gauge-track) 0);
}

.gauge-ring::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--gauge-core);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}

.gauge-ring span {
  position: relative;
  z-index: 1;
  font-size: .93rem;
  font-weight: 650;
  letter-spacing: -.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.gauge-ring span i {
  font-style: normal;
  font-size: .62rem;
  font-weight: 550;
  color: var(--muted);
  margin-left: 1px;
}

.gauge-label {
  font-size: .71rem;
  font-weight: 550;
  letter-spacing: .03em;
  color: var(--muted);
}

.mock-controls {
  display: flex;
  gap: 8px;
}

.mock-pill {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  border-radius: 12px;
  font-size: .74rem;
  font-weight: 550;
  color: var(--muted);
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
}

.mock-pill b {
  margin-left: auto;
  font-weight: 650;
  color: inherit;
}

.mock-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .45;
  flex: none;
}

.mock-pill.is-on {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 10%, transparent);
  border-color: color-mix(in srgb, var(--text) 22%, transparent);
}

.mock-pill.is-on .dot {
  opacity: 1;
  box-shadow: 0 0 8px currentColor;
}

.waveform {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 2px;
  opacity: .85;
}

.waveform span {
  flex: 1;
  height: 100%;
  border-radius: 3px;
  background: color-mix(in srgb, var(--text) 52%, transparent);
  transform-origin: center;
  transform: scaleY(calc(.5 * var(--amp, 1)));
  animation: wave 1.7s ease-in-out infinite;
}

.waveform span:nth-child(2n) { animation-delay: -.35s; animation-duration: 2.1s; --amp: .68; }
.waveform span:nth-child(3n) { animation-delay: -.7s; animation-duration: 1.45s; --amp: .85; }
.waveform span:nth-child(4n) { animation-delay: -1.05s; animation-duration: 2.4s; --amp: .55; }
.waveform span:nth-child(5n) { animation-delay: -.2s; animation-duration: 1.85s; --amp: 1; }

.tilt {
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .35s var(--ease);
  will-change: transform;
}

.section {
  position: relative;
  padding: clamp(54px, 9vh, 104px) 0;
  scroll-margin-top: 96px;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 46px);
}

.section-title {
  margin-top: 14px;
  font-size: clamp(1.95rem, 1.25rem + 2.4vw, 3.1rem);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -.034em;
}

.section-sub {
  margin-top: 16px;
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.6;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.45fr .92fr;
  gap: 16px;
  align-items: stretch;
}

.about-panel {
  padding: clamp(24px, 3.2vw, 42px);
  border-radius: var(--r-lg);
  font-size: 1.03rem;
  line-height: 1.72;
  color: color-mix(in srgb, var(--text) 82%, var(--muted));
}

.about-panel p + p {
  margin-top: 1em;
}

.about-panel strong {
  color: var(--text);
  font-weight: 600;
}

.facts {
  padding: 12px;
  border-radius: var(--r-lg);
  display: grid;
  align-content: center;
}

.fact {
  padding: 15px 18px;
  display: grid;
  gap: 4px;
  border-radius: 14px;
}

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

.fact dt {
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}

.fact dd {
  font-size: .96rem;
  font-weight: 530;
  letter-spacing: -.012em;
  line-height: 1.4;
}

.project {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: clamp(18px, 3vw, 42px);
  align-items: center;
  padding: clamp(18px, 2.4vw, 30px);
  border-radius: var(--r-xl);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
}

.project:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow), var(--spec), 0 0 0 1px color-mix(in srgb, var(--text) 10%, transparent);
}

.project + .project {
  margin-top: clamp(18px, 3vw, 28px);
}

.project-reverse {
  grid-template-columns: .94fr 1.06fr;
}

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

.project-body {
  padding: clamp(6px, 1.4vw, 16px);
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
}

.project-index {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .05em;
  color: var(--muted);
}

.tag {
  padding: 5px 10px;
  border-radius: var(--r-pill);
  font-size: .66rem;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
}

.project-title {
  font-size: clamp(1.62rem, 1.15rem + 1.9vw, 2.45rem);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -.036em;
}

.project-tagline {
  margin-top: 10px;
  font-size: 1.01rem;
  font-weight: 550;
  letter-spacing: -.012em;
}

.project-desc {
  margin-top: 14px;
  max-width: 54ch;
  color: var(--muted);
  font-size: .965rem;
  line-height: 1.66;
}

.feature-list {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.feature-list li {
  position: relative;
  padding-left: 26px;
  font-size: .905rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--text) 76%, var(--muted));
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: .16em;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c-blue) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--c-blue) 22%, transparent);
}

.feature-list li::after {
  content: "";
  position: absolute;
  left: 5.5px;
  top: .44em;
  width: 5px;
  height: 3px;
  border-left: 1.5px solid var(--c-blue);
  border-bottom: 1.5px solid var(--c-blue);
  transform: rotate(-45deg);
}

.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.tech-row .chip {
  font-size: .75rem;
  padding: .34rem .7rem;
}

.project-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .89rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text);
  transition: opacity .3s;
}

.link-arrow .icon {
  width: 14px;
  height: 14px;
  transition: transform .35s var(--ease);
}

.link-arrow:hover .icon {
  transform: translate(2px, -2px);
}

.link-arrow:hover {
  opacity: .65;
}

.link-muted {
  color: var(--muted);
}

.link-muted:hover {
  color: var(--text);
}

.project-visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: 6px;
  min-width: 0;
}

.viz-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  border-radius: var(--r-md);
  overflow: hidden;
}

.viz-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.viz-name {
  margin-left: 6px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: -.01em;
}

.badge-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .6rem;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-green);
}

.badge-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

.viz-rings {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  gap: 8px;
  padding: 28px 16px 22px;
}

.viz-rings .gauge-ring {
  width: 82px;
}

.viz-signal {
  padding: 0 20px 22px;
}

.signal-label {
  display: block;
  margin-bottom: 10px;
  font-size: .63rem;
  font-weight: 650;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 46px;
}

.bars span {
  flex: 1;
  height: 100%;
  border-radius: 2px;
  background: color-mix(in srgb, var(--text) 42%, transparent);
  opacity: 1;
  transform-origin: bottom;
  transform: scaleY(calc(.52 * var(--amp, 1)));
  animation: bars 1.9s ease-in-out infinite;
}

.bars span:nth-child(2n) { animation-delay: -.4s; animation-duration: 2.3s; --amp: .75; }
.bars span:nth-child(3n) { animation-delay: -.8s; animation-duration: 1.5s; --amp: .92; }
.bars span:nth-child(4n) { animation-delay: -1.2s; animation-duration: 2.7s; --amp: .6; }

.viz-caption b {
  color: var(--text);
  font-weight: 600;
}

.skills-panel {
  padding: 4px clamp(20px, 3.2vw, 34px);
  border-radius: var(--r-lg);
}

.skill-row {
  display: grid;
  grid-template-columns: minmax(150px, 210px) 1fr;
  align-items: center;
  gap: 14px 32px;
  padding: clamp(18px, 2.4vw, 26px) 0;
}

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

.skill-row h3 {
  margin: 0;
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.chips .chip {
  transition: transform .35s var(--ease), border-color .35s, background-color .35s;
}

.chips .chip:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--text) 28%, var(--chip-border));
}

.contact-section {
  padding-bottom: clamp(56px, 9vh, 108px);
}

.contact-panel {
  padding: clamp(38px, 6.4vw, 78px) clamp(24px, 5vw, 56px);
  border-radius: var(--r-xl);
  text-align: center;
  display: grid;
  justify-items: center;
  overflow: hidden;
}

.contact-panel .eyebrow {
  justify-content: center;
}

.contact-title {
  margin-top: 16px;
  font-size: clamp(2.15rem, 1.4rem + 3vw, 3.55rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
}

.contact-sub {
  margin-top: 18px;
  max-width: 50ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px;
  margin-top: 30px;
}

.contact-fine {
  margin-top: 20px;
  font-size: .79rem;
  letter-spacing: .01em;
  color: var(--muted);
}

.footer {
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
  font-size: .81rem;
  color: var(--muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: -.012em;
  color: var(--text);
}

.footer .nav-mark {
  width: 25px;
  height: 25px;
  border-radius: 8px;
  font-size: .6rem;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity .75s var(--ease) var(--d, 0s),
    transform .75s var(--ease) var(--d, 0s);
}

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

.hero .reveal {
  animation: rise .8s var(--ease) both;
  animation-delay: var(--d, 0s);
}

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-old(root) {
  z-index: 1;
}

::view-transition-new(root) {
  z-index: 2;
}

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--text) 16%, transparent);
  border: 3px solid transparent;
  background-clip: padding-box;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--text) 28%, transparent);
  background-clip: padding-box;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes wave {
  0%, 100% { transform: scaleY(calc(.16 * var(--amp, 1))); }
  50% { transform: scaleY(calc(.94 * var(--amp, 1))); }
}

@keyframes bars {
  0%, 100% { transform: scaleY(calc(.18 * var(--amp, 1))); }
  50% { transform: scaleY(calc(.95 * var(--amp, 1))); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-green) 55%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: clamp(40px, 7vw, 64px);
  }

  .hero-visual {
    min-height: 400px;
  }

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

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

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

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

  .project-body {
    order: -1;
    padding: 6px clamp(4px, 2vw, 14px) 10px;
  }

  .project-visual {
    padding: 4px;
  }

  .viz-frame {
    max-width: 520px;
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav[data-open="true"] .nav-links {
    display: flex;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 8px;
    border-radius: var(--r-md);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    box-shadow: var(--shadow), var(--spec);
  }

  .nav[data-open="true"] .nav-links a {
    padding: 11px 14px;
    font-size: .95rem;
    border-radius: 14px;
  }

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

  .hero {
    padding-top: clamp(108px, 17vh, 150px);
  }

  .hero-tagline {
    max-width: 22ch;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .gauge-ring {
    width: 66px;
  }

  .viz-rings .gauge-ring {
    width: 70px;
  }

  .mock-body {
    padding: 22px 18px 18px;
  }

  .hero-cta .btn {
    flex: 1;
    justify-content: center;
  }

  .contact-actions {
    width: 100%;
    flex-direction: column;
  }

  .contact-actions .btn {
    justify-content: center;
    width: 100%;
  }
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: .07em;
  margin-bottom: -.07em;
}

.hero-title .line > span {
  display: block;
  animation: line-rise 1.05s var(--ease) .05s both;
}

.hero-title .line:nth-child(2) > span {
  animation-delay: .16s;
}

.eyebrow-num {
  font-family: var(--font-mono);
  font-size: .67rem;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--muted);
  opacity: .65;
}

.section-head .eyebrow {
  gap: .55rem;
}

.section-head .eyebrow::after {
  content: "";
  width: clamp(24px, 5vw, 64px);
  height: 1px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .9s var(--ease) .15s;
}

.section-head.in .eyebrow::after {
  transform: scaleX(1);
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 120;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--text);
  opacity: .26;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .1s linear;
}

.spot {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s var(--ease);
  background: radial-gradient(circle 280px at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--text) 7%, transparent),
    transparent 72%);
}

.spotlight:hover .spot {
  opacity: 1;
}

.contact-panel .spot {
  background: radial-gradient(circle 460px at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--text) 8%, transparent),
    transparent 70%);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -6% -4%;
  z-index: 0;
  background-image: radial-gradient(circle,
    color-mix(in srgb, var(--text) 13%, transparent) 1px,
    transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 58% 58% at 50% 50%, #000 8%, transparent 74%);
  mask-image: radial-gradient(ellipse 58% 58% at 50% 50%, #000 8%, transparent 74%);
  opacity: .5;
  pointer-events: none;
}

.ticker {
  position: relative;
  overflow: hidden;
  padding: 15px 0;
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 54s linear infinite;
  will-change: transform;
}

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

.ticker-group {
  display: flex;
  align-items: center;
  flex: none;
}

.ticker-group span {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--muted);
}

.ticker-group span::after {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: .45;
  margin: 0 1.6rem;
}

.project.in .feature-list li {
  animation: item-in .65s var(--ease) both;
}

.project.in .feature-list li:nth-child(2) { animation-delay: .06s; }
.project.in .feature-list li:nth-child(3) { animation-delay: .12s; }
.project.in .feature-list li:nth-child(4) { animation-delay: .18s; }

.skills-panel.in .chip {
  animation: item-in .55s var(--ease) both;
}

.skills-panel.in .chip:nth-child(2) { animation-delay: .03s; }
.skills-panel.in .chip:nth-child(3) { animation-delay: .06s; }
.skills-panel.in .chip:nth-child(4) { animation-delay: .09s; }
.skills-panel.in .chip:nth-child(5) { animation-delay: .12s; }

.nav {
  animation: nav-in .9s var(--ease) .1s both;
  transition: padding .5s var(--ease), background-color .4s var(--ease), box-shadow .4s var(--ease);
}

.nav.is-scrolled {
  padding: 5px 6px;
}

.viz-frame {
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}

.project:hover .viz-frame {
  transform: translateY(-5px);
}

.tilt {
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--shift, 0px));
}

.section-title {
  font-size: clamp(2rem, 1.2rem + 2.9vw, 3.5rem);
}

.project-title {
  font-size: clamp(1.7rem, 1.15rem + 2vw, 2.6rem);
}

.hero-cta .btn-primary .icon {
  transition: transform .35s var(--ease);
}

.hero-cta .btn-primary:hover .icon {
  transform: translateY(2px);
}

#clock {
  font-variant-numeric: tabular-nums;
}

@keyframes line-rise {
  from { transform: translateY(110%); }
  to { transform: translateY(0); }
}

@keyframes item-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}

@keyframes marquee {
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes nav-in {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: none; }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }

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

  .ticker {
    overflow-x: auto;
  }

  .ticker-track {
    animation: none;
  }

  .ticker-group + .ticker-group {
    display: none;
  }

  .hero-title .line > span,
  .project.in .feature-list li,
  .skills-panel.in .chip,
  .nav {
    animation: none;
  }
}

.shot-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: #08090d;
  box-shadow: var(--shadow), var(--spec);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}

.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.project:hover .shot-frame {
  transform: translateY(-5px);
}

.section-head.in .section-title {
  animation: title-wipe .95s var(--ease) .05s both;
}

.project-year {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .06em;
  color: var(--muted);
}

.shot-frame {
  display: block;
}

.shot-frame img {
  transition: transform .9s var(--ease);
}

.shot-frame:hover img {
  transform: scale(1.015);
}

.shot-frame:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.shot-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, .58);
  border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .01em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  pointer-events: none;
}

.shot-hint .icon {
  width: 12px;
  height: 12px;
}

.shot-frame:hover .shot-hint,
.shot-frame:focus-visible .shot-hint {
  opacity: 1;
  transform: none;
}

.project.in .shot-frame {
  animation: shot-in .95s var(--ease) .12s both;
}

#email-btn {
  min-width: 248px;
  justify-content: center;
}

#email-btn .icon-check {
  display: none;
}

#email-btn[data-copied="true"] .icon-mail {
  display: none;
}

#email-btn[data-copied="true"] .icon-check {
  display: block;
}

.footer-top {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color .3s var(--ease), border-color .3s var(--ease), transform .4s var(--ease);
}

.footer-top:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--text) 30%, var(--line));
  transform: translateY(-2px);
}

.footer-top .icon {
  width: 15px;
  height: 15px;
}

html {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--text) 22%, transparent) transparent;
}

body {
  font-optical-sizing: auto;
}

@keyframes title-wipe {
  from { clip-path: inset(0 0 100% 0); opacity: 0; transform: translateY(14px); }
  to { clip-path: inset(0 0 -0.3em 0); opacity: 1; transform: none; }
}

@keyframes shot-in {
  from { opacity: 0; clip-path: inset(7% 5% 7% 5% round 18px); }
  to { opacity: 1; clip-path: inset(0 0 0 0 round 18px); }
}

@media (max-width: 520px) {
  #email-btn {
    min-width: 0;
    width: 100%;
  }
}
