:root {
  --paper: #f5f7f8;
  --paper-strong: #ffffff;
  --ink: #111417;
  --muted: #5f6870;
  --line: rgba(17, 20, 23, 0.12);
  --line-strong: rgba(17, 20, 23, 0.22);
  --mint: #a7f06d;
  --teal: #0a8f9a;
  --clay: #ff7a59;
  --sky: #7fc7ff;
  --violet: #a99cff;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.74);
  --glass-dark: rgba(17, 20, 23, 0.72);
  --glass-border: rgba(255, 255, 255, 0.62);
  --shadow: 0 24px 80px rgba(21, 23, 19, 0.12);
  --glass-shadow:
    0 28px 90px rgba(22, 29, 36, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(17, 20, 23, 0.06);
  --radius: 8px;
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  --paper: #0d1117;
  --paper-strong: #151b23;
  --ink: #f4f7fb;
  --muted: #a7b2bf;
  --line: rgba(244, 247, 251, 0.12);
  --line-strong: rgba(244, 247, 251, 0.22);
  --mint: #b8ff7c;
  --teal: #4bd7d0;
  --clay: #ff8c6a;
  --sky: #8dd5ff;
  --violet: #c8b8ff;
  --glass: rgba(16, 22, 31, 0.58);
  --glass-strong: rgba(20, 27, 38, 0.84);
  --glass-dark: rgba(7, 10, 15, 0.78);
  --glass-border: rgba(255, 255, 255, 0.14);
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.34);
  --glass-shadow:
    0 28px 90px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.26);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 104px;
  scroll-snap-type: y proximity;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #fbfcff 0%, var(--paper) 44%, #edf2f4 100%);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at 18% 8%, rgba(75, 215, 208, 0.11), transparent 26rem),
    radial-gradient(circle at 84% 16%, rgba(200, 184, 255, 0.1), transparent 24rem),
    linear-gradient(180deg, #080b10 0%, var(--paper) 48%, #090d13 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(21, 23, 19, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 23, 19, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
  z-index: -2;
}

body::after {
  content: none;
}

.ink-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.62;
  mix-blend-mode: normal;
  z-index: 0;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

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

a,
button {
  cursor: pointer;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(10, 143, 154, 0.42);
  outline-offset: 4px;
}

button {
  font: inherit;
}

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

.site-header {
  position: fixed;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 20;
  width: min(1180px, calc(100% - 28px));
  margin: 0;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.34)),
    var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  backdrop-filter: blur(26px) saturate(1.65);
  -webkit-backdrop-filter: blur(26px) saturate(1.65);
  box-shadow: var(--glass-shadow);
}

.brand,
.nav-links,
.header-actions,
.header-cta,
.theme-toggle {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 8px 22px rgba(17, 20, 23, 0.08);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  position: relative;
  gap: 8px;
}

.header-actions {
  gap: 8px;
}

.nav-links a,
.header-cta,
.theme-toggle {
  min-height: 38px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--muted);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.theme-toggle {
  justify-content: center;
  width: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.38);
}

.theme-toggle span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset -5px -4px 0 var(--paper-strong);
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

:root[data-theme="dark"] .theme-toggle span {
  background: var(--mint);
  box-shadow:
    0 0 18px rgba(184, 255, 124, 0.36),
    inset 0 0 0 5px var(--mint);
  transform: scale(0.82);
}

.nav-links a:hover,
.nav-links a.is-active,
.header-cta:hover,
.theme-toggle:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

.header-cta {
  border: 1px solid rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.38);
  color: var(--ink);
  font-weight: 720;
}

.hero {
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 56px;
  padding: 136px 0 64px;
  perspective: 1200px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 980px;
  margin-bottom: 24px;
  font-size: clamp(3.8rem, 7.6vw, 8.2rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h3 {
  font-size: 1.32rem;
  line-height: 1.08;
}

.hero-lede {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.65;
}

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

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  font-weight: 780;
  will-change: transform;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 180ms ease, background 180ms ease;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--button-x, 50%) var(--button-y, 50%), rgba(185, 240, 111, 0.38), transparent 42%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.button:hover::before {
  opacity: 1;
}

.button > * {
  position: relative;
}

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

.button.primary {
  background:
    linear-gradient(135deg, rgba(17, 20, 23, 0.96), rgba(45, 52, 58, 0.86)),
    var(--ink);
  color: var(--paper-strong);
  box-shadow: 0 18px 34px rgba(21, 23, 19, 0.18);
}

.button.secondary {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  color: var(--ink);
}

.hero-card {
  position: relative;
  display: grid;
  gap: 18px;
  transform-style: preserve-3d;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 8% -8% auto auto;
  width: 220px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--mint);
  filter: blur(28px);
  opacity: 0.45;
  z-index: -1;
}

.portrait-stack {
  position: relative;
}

.avatar-frame {
  padding: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.38)),
    var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  box-shadow: var(--glass-shadow);
  transform: rotate(4.5deg) translateZ(0);
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-card:hover .avatar-frame {
  transform: rotate(1.2deg) translateY(-4px);
}

.avatar-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  filter: saturate(0.92) contrast(1.04);
}

.terminal-card {
  margin-left: 36px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), transparent 32%),
    var(--glass-dark);
  color: #f6f9ef;
  backdrop-filter: blur(24px) saturate(1.45);
  -webkit-backdrop-filter: blur(24px) saturate(1.45);
  box-shadow: 0 26px 82px rgba(17, 20, 23, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(-40px) rotate(-1.6deg);
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-card:hover .terminal-card {
  transform: translateY(-46px) rotate(-0.5deg);
}

.terminal-bar {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--clay);
}

.terminal-bar span:nth-child(2) {
  background: #e4c44a;
}

.terminal-bar span:nth-child(3) {
  background: var(--mint);
}

.mono {
  margin-bottom: 10px;
  color: var(--mint);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.terminal-card h2 {
  margin-bottom: 10px;
  font-size: 1.7rem;
  line-height: 1;
}

.terminal-card p:not(.mono) {
  color: rgba(246, 249, 239, 0.72);
  line-height: 1.5;
}

.terminal-tags,
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.terminal-tags span,
.project-meta span {
  padding: 7px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
}

.terminal-tags span {
  background: rgba(255, 255, 255, 0.1);
  color: #f6f9ef;
}

.marquee-band {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
  padding: 20px 0;
  animation: marquee 72s linear infinite;
  will-change: transform;
}

.marquee-group {
  display: flex;
  flex: 0 0 auto;
  gap: 18px;
  padding-right: 18px;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.intro-grid,
.work-section,
.contact-section {
  padding: 110px 0;
}

.section-heading {
  max-width: 820px;
}

.section-heading.wide {
  max-width: 980px;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.capability-grid article,
.project-card,
.contact-section {
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.34)),
    var(--glass);
  backdrop-filter: blur(24px) saturate(1.45);
  -webkit-backdrop-filter: blur(24px) saturate(1.45);
  box-shadow: var(--glass-shadow);
}

.project-card {
  background:
    linear-gradient(135deg, rgba(127, 199, 255, 0.22), transparent 36%),
    linear-gradient(155deg, rgba(167, 240, 109, 0.22), transparent 52%),
    var(--glass-strong);
}

.capability-grid article {
  position: relative;
  overflow: hidden;
  padding: 24px;
  min-height: 246px;
  transition: transform 260ms ease, border-color 260ms ease, background 260ms ease;
}

.capability-grid article::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--sky), var(--mint));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.capability-grid article:hover::after {
  transform: scaleX(1);
}

.capability-grid article:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.86);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.46)),
    var(--glass-strong);
}

.capability-index {
  display: inline-flex;
  margin-bottom: 62px;
  color: var(--teal);
  font-weight: 820;
}

.capability-grid p,
.project-card p,
.contact-section p {
  color: var(--muted);
  line-height: 1.62;
}

.project-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-bottom: 120px;
}

.project-card {
  position: sticky;
  top: 96px;
  scroll-snap-align: start;
  scroll-margin-top: 112px;
  min-height: min(560px, calc(100vh - 132px));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 42vh;
  padding: clamp(24px, 4vw, 44px);
  overflow: hidden;
  border-color: rgba(17, 20, 23, 0.08);
  background:
    linear-gradient(135deg, rgba(127, 199, 255, 0.16), transparent 34%),
    linear-gradient(155deg, rgba(167, 240, 109, 0.14), transparent 54%),
    #fbfcfb;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    inset 0 -1px 0 rgba(17, 20, 23, 0.04);
  backface-visibility: hidden;
  contain: paint;
  isolation: isolate;
  transition:
    box-shadow 260ms ease,
    border-color 260ms ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 82px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0));
  opacity: 0.72;
  z-index: 0;
}

.project-card:nth-child(1) {
  --stack-index: 0;
  z-index: 21;
}

.project-card:nth-child(2) {
  --stack-index: 1;
  z-index: 22;
}

.project-card:nth-child(3) {
  --stack-index: 2;
  z-index: 23;
}

.project-card:nth-child(4) {
  --stack-index: 3;
  z-index: 24;
}

.project-card:nth-child(5) {
  --stack-index: 4;
  z-index: 25;
}

.project-card:nth-child(6) {
  --stack-index: 5;
  z-index: 26;
}

.project-card:nth-child(7) {
  --stack-index: 6;
  z-index: 27;
}

.project-card:nth-child(8) {
  --stack-index: 7;
  z-index: 28;
}

.project-card:hover {
  border-color: rgba(17, 20, 23, 0.1);
}

.project-card.is-stack-shadow {
  box-shadow:
    0 28px 72px rgba(17, 20, 23, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(17, 20, 23, 0.04);
}

.project-number {
  position: absolute;
  top: 18px;
  right: 20px;
  color: rgba(21, 23, 19, 0.18);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0;
  z-index: 1;
}

.project-card > div,
.project-card > p {
  position: relative;
  z-index: 1;
}

.project-kicker {
  margin-bottom: 18px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-card h3 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4.4vw, 5.2rem);
  line-height: 0.92;
  max-width: 880px;
}

.project-card > div:first-of-type p:not(.project-kicker) {
  max-width: 760px;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
}

.project-card a {
  align-self: flex-start;
  font-weight: 820;
  color: var(--ink);
  border-bottom: 2px solid var(--mint);
  transition: transform 180ms ease, border-color 180ms ease;
  position: relative;
  z-index: 1;
}

.project-card a:hover {
  border-color: var(--teal);
  transform: translateX(4px);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.project-meta span {
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.58);
  color: var(--muted);
}

.project-outcome {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  position: relative;
  z-index: 1;
}

.contact-section {
  margin-top: 110px;
  margin-bottom: 110px;
  padding: 44px;
  background:
    radial-gradient(circle at 88% 20%, rgba(127, 199, 255, 0.24), transparent 18rem),
    radial-gradient(circle at 18% 80%, rgba(167, 240, 109, 0.24), transparent 18rem),
    var(--glass-strong);
}

.contact-section h2 {
  max-width: 850px;
  margin-bottom: 20px;
}

.contact-section p {
  max-width: 720px;
  font-size: 1.1rem;
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

:root[data-theme="dark"] body::before {
  background-image:
    linear-gradient(rgba(244, 247, 251, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 247, 251, 0.028) 1px, transparent 1px);
}

:root[data-theme="dark"] .ink-canvas {
  opacity: 0.42;
  mix-blend-mode: screen;
}

:root[data-theme="dark"] .site-header {
  background:
    linear-gradient(135deg, rgba(24, 32, 44, 0.82), rgba(14, 19, 28, 0.52)),
    var(--glass);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

:root[data-theme="dark"] .brand-mark,
:root[data-theme="dark"] .header-cta,
:root[data-theme="dark"] .theme-toggle {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .nav-links a:hover,
:root[data-theme="dark"] .nav-links a.is-active,
:root[data-theme="dark"] .header-cta:hover,
:root[data-theme="dark"] .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .button.primary {
  background:
    linear-gradient(135deg, rgba(244, 247, 251, 0.96), rgba(188, 202, 220, 0.9)),
    var(--ink);
  color: #071018;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .button.secondary,
:root[data-theme="dark"] .signal-card,
:root[data-theme="dark"] .marquee-band {
  background: rgba(17, 24, 34, 0.54);
}

:root[data-theme="dark"] .button::before {
  background: radial-gradient(circle at var(--button-x, 50%) var(--button-y, 50%), rgba(75, 215, 208, 0.28), transparent 42%);
}

:root[data-theme="dark"] .hero-card::before {
  background: var(--teal);
  opacity: 0.2;
}

:root[data-theme="dark"] .avatar-frame,
:root[data-theme="dark"] .capability-grid article,
:root[data-theme="dark"] .contact-section {
  background:
    linear-gradient(135deg, rgba(27, 36, 50, 0.86), rgba(15, 21, 31, 0.58)),
    var(--glass);
  border-color: rgba(255, 255, 255, 0.12);
}

:root[data-theme="dark"] .terminal-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), transparent 32%),
    rgba(3, 6, 10, 0.82);
  border-color: rgba(255, 255, 255, 0.12);
}

:root[data-theme="dark"] .terminal-tags span {
  background: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .marquee-track span {
  background: rgba(19, 27, 38, 0.64);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .capability-grid article:hover {
  background:
    linear-gradient(135deg, rgba(34, 45, 62, 0.92), rgba(17, 24, 35, 0.68)),
    var(--glass-strong);
  border-color: rgba(255, 255, 255, 0.18);
}

:root[data-theme="dark"] .project-card {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(75, 215, 208, 0.12), transparent 34%),
    linear-gradient(155deg, rgba(184, 255, 124, 0.08), transparent 54%),
    #111821;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .project-card::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
}

:root[data-theme="dark"] .project-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

:root[data-theme="dark"] .project-card.is-stack-shadow {
  box-shadow:
    0 32px 82px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

:root[data-theme="dark"] .project-number {
  color: rgba(244, 247, 251, 0.13);
}

:root[data-theme="dark"] .project-meta span {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .contact-section {
  background:
    radial-gradient(circle at 88% 20%, rgba(75, 215, 208, 0.14), transparent 18rem),
    radial-gradient(circle at 18% 80%, rgba(184, 255, 124, 0.1), transparent 18rem),
    var(--glass-strong);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-33.333333%);
  }
}

@media (max-width: 920px) {
  html {
    scroll-snap-type: none;
  }

  .site-header {
    position: sticky;
    top: 10px;
    margin-top: 10px;
    transform: none;
    align-items: center;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    display: flex;
    width: 100%;
    gap: 6px;
    overflow-x: auto;
    padding-top: 4px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
  }

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

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .hero-card {
    max-width: 520px;
  }

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

  .project-grid {
    display: grid;
    gap: 14px;
    padding-bottom: 0;
  }

  .project-card {
    position: relative;
    top: auto;
    min-height: 360px;
    margin-bottom: 0;
  }
}

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

  h1 {
    font-size: clamp(2.9rem, 14vw, 5.2rem);
  }

  h2 {
    font-size: clamp(2rem, 12vw, 3.3rem);
  }

  .site-header {
    width: min(100% - 20px, 1180px);
    left: 10px;
    right: 10px;
  }

  .nav-links a,
  .header-cta {
    min-height: 36px;
    padding: 9px 11px;
    font-size: 0.92rem;
  }

  .brand span:last-child {
    display: none;
  }

  .hero-actions,
  .contact-actions,
  .button {
    width: 100%;
  }

  .button {
    min-height: 50px;
  }

  .terminal-card {
    margin-left: 0;
    transform: translateY(-24px) rotate(-1deg);
  }

  .intro-grid,
  .work-section,
  .contact-section {
    padding: 76px 0;
  }

  .contact-section {
    margin-block: 76px;
    padding: 28px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-snap-type: none;
  }

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

}
