:root {
  --bg: #050505;
  --panel: rgba(255, 255, 255, 0.07);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.13);
  --text: #f7f7f4;
  --muted: rgba(255, 255, 255, 0.52);
  --soft: rgba(255, 255, 255, 0.32);
  --accent: #b7ff2a;
  --accent-2: #ff6534;
  --header-height: 80px;
  color-scheme: dark;
  font-family: "Space Mono", "Courier New", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Mono", "Courier New", monospace;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img, svg, video { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #060606; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 999;
  transform: translateY(-180%);
  border-radius: 999px;
  background: #fff;
  color: #000;
  padding: 10px 16px;
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.glass {
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(12,12,12,.42);
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 12px 40px rgba(0,0,0,.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 0 26px;
  transition: background .3s ease, border-color .3s ease;
}
.site-header.is-scrolled {
  background: rgba(4,4,4,.7);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(20px);
}
.brand {
  min-width: 150px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 17px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.04em;
}
.brand-mark { width: 19px; height: 19px; }
.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: 15px;
}
.site-nav a {
  padding: 10px 14px;
  border-radius: 10px;
  color: rgba(255,255,255,.7);
  font-size: 12px;
  transition: color .2s ease, background .2s ease;
}
.site-nav a:hover, .site-nav a:focus-visible { background: rgba(255,255,255,.1); color: #fff; }
.header-cta {
  height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 20px;
  border-radius: 999px;
  background: #fff;
  color: #070707;
  font-size: 12px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}
.header-cta:hover { transform: translateY(-2px); background: var(--accent); }
.menu-button { display: none; }

.section-video { position: relative; overflow: hidden; isolation: isolate; }
.video-bg, .video-fallback, .video-shade, .dot-grid, .noise {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.video-bg { z-index: -5; object-fit: cover; }
.video-fallback {
  z-index: -6;
  background:
    radial-gradient(circle at 20% 20%, rgba(128,63,255,.32), transparent 30%),
    radial-gradient(circle at 78% 65%, rgba(255,77,43,.23), transparent 33%),
    linear-gradient(135deg, #07070b 0%, #10121b 48%, #050505 100%);
}
.fallback-blue { background: radial-gradient(circle at 50% 40%, #27366a, transparent 38%), linear-gradient(145deg,#07070b,#050505 70%); }
.fallback-purple { background: radial-gradient(circle at 62% 42%, #4b235f, transparent 35%), linear-gradient(130deg,#07070a,#0b0810 65%,#050505); }
.fallback-red { background: radial-gradient(circle at 70% 34%, #5e221b, transparent 30%), radial-gradient(circle at 20% 75%, #263252, transparent 30%), #060606; }
.fallback-footer { background: radial-gradient(circle at 60% 50%, #76301f, transparent 36%), linear-gradient(135deg,#12131d,#050505); }
.video-shade { z-index: -3; background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.42) 65%, rgba(0,0,0,.82)); }
.dot-grid {
  z-index: -2;
  opacity: .06;
  pointer-events: none;
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 24px 24px;
}
.noise {
  z-index: -1;
  pointer-events: none;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--header-height) + 36px) 32px 34px;
  display: flex;
}
.hero-inner {
  width: min(1600px, 100%);
  margin: auto;
  display: flex;
  min-height: calc(100dvh - var(--header-height) - 70px);
  flex-direction: column;
}
.hero-kicker {
  width: fit-content;
  margin: 6vh auto 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border-radius: 999px;
  color: rgba(255,255,255,.6);
  font-size: 10px;
  letter-spacing: .12em;
}
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 7px rgba(183,255,42,.08); animation: pulse 1.9s infinite; }
@keyframes pulse { 50% { transform: scale(.7); opacity: .5; } }
.watermark {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: -1;
  transform: translate(-50%,-50%);
  font-family: "Anton SC", Impact, sans-serif;
  font-size: clamp(120px, 29vw, 500px);
  line-height: .8;
  letter-spacing: -.06em;
  white-space: nowrap;
  color: transparent;
  background: radial-gradient(circle, rgba(185,170,195,0) 0%, rgba(184,171,190,.95) 76%);
  background-clip: text;
  -webkit-background-clip: text;
  opacity: .12;
  user-select: none;
}
.hero-bottom {
  margin-top: auto;
  display: grid;
  grid-template-columns: minmax(0,1.12fr) minmax(330px,.88fr);
  align-items: end;
  gap: clamp(32px, 7vw, 110px);
}
.eyebrow {
  margin-bottom: 18px;
  color: rgba(255,255,255,.42);
  font-size: 10px;
  letter-spacing: .23em;
  text-transform: uppercase;
}
.center { text-align: center; }
.hero h1 {
  max-width: 950px;
  font-size: clamp(55px, 9.8vw, 144px);
  font-weight: 400;
  line-height: .86;
  letter-spacing: -.075em;
}
.hero-description {
  max-width: 620px;
  margin-top: 25px;
  color: rgba(255,255,255,.57);
  font-size: clamp(12px, 1.15vw, 15px);
  line-height: 1.75;
}
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 19px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-3px); }
.button-primary { background: #fff; color: #050505; border-color: #fff; }
.button-primary:hover { background: var(--accent); border-color: var(--accent); }
.button-ghost { background: rgba(255,255,255,.05); backdrop-filter: blur(12px); }
.button-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); }
.hero-side { text-align: right; }
.side-label { color: rgba(255,255,255,.35); font-size: 9px; letter-spacing: .2em; }
.hero-side h2 {
  margin-top: 12px;
  font-size: clamp(34px, 5.6vw, 84px);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.06em;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1px;
  margin-top: 28px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.1);
  text-align: left;
}
.hero-stats div { min-height: 84px; padding: 14px; background: rgba(4,4,4,.5); backdrop-filter: blur(12px); }
.hero-stats strong { display: block; font-size: 22px; font-weight: 400; letter-spacing: -.06em; }
.hero-stats span { display: block; margin-top: 7px; color: var(--soft); font-size: 9px; line-height: 1.4; }

.about {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 100px 24px;
}
.about-shade { background: linear-gradient(180deg,#050505 0,rgba(0,0,0,.28) 26%,rgba(0,0,0,.38) 75%,#050505 100%); }
.about-content { width: min(1100px,100%); }
.statement {
  text-align: center;
  font-size: clamp(24px, 4vw, 58px);
  line-height: 1.28;
  letter-spacing: -.05em;
  text-wrap: balance;
  text-shadow: 0 4px 30px rgba(0,0,0,.4);
}

.metrics { min-height: 100vh; display: grid; place-items: center; padding: 120px 24px; }
.metrics-shade { background: rgba(0,0,0,.38); }
.metrics-inner { width: min(1200px,100%); }
.metric-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 70px; }
.metric { text-align: center; padding: 28px 12px; }
.metric strong { display: block; font-size: clamp(58px, 9vw, 128px); line-height: 1; font-weight: 400; letter-spacing: -.08em; }
.metric span { display: block; margin-top: 15px; color: rgba(255,255,255,.43); font-size: 12px; }

.skills { min-height: 100vh; padding: 110px 0; }
.skills-shade { background: linear-gradient(180deg,rgba(0,0,0,.35),rgba(0,0,0,.58)); }
.section-shell { position: relative; width: min(1500px, calc(100% - 48px)); margin: 0 auto; }
.section-heading { margin-bottom: 62px; }
.split-heading { display: grid; grid-template-columns: 1fr minmax(280px,420px); gap: 40px; align-items: end; }
.section-heading h2, .process-heading h2, .contact h2 {
  font-size: clamp(44px, 7.4vw, 105px);
  line-height: .9;
  font-weight: 400;
  letter-spacing: -.07em;
}
.split-heading > p { color: rgba(255,255,255,.46); font-size: 12px; line-height: 1.8; text-align: right; }
.skill-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); border-radius: 20px; overflow: hidden; }
.skill-card {
  min-height: 250px;
  padding: 28px;
  background: rgba(4,4,4,.58);
  backdrop-filter: blur(18px);
  transition: background .25s ease, transform .25s ease;
}
.skill-card:hover { background: rgba(255,255,255,.1); }
.card-top { display: flex; align-items: center; justify-content: space-between; color: rgba(255,255,255,.32); font-size: 10px; }
.card-icon { font-size: 18px; }
.skill-card h3 { margin-top: 76px; font-size: 17px; font-weight: 400; letter-spacing: -.03em; }
.skill-card p { margin-top: 13px; color: rgba(255,255,255,.42); font-size: 11px; line-height: 1.75; }

.work { position: relative; isolation: isolate; padding: 120px 0; background: #050505; }
.work-shell { z-index: 1; }
.featured-grid { display: grid; grid-template-columns: 1.15fr .85fr .85fr; gap: 14px; }
.featured-card {
  position: relative;
  min-height: 260px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(183,255,42,.13), transparent 25%),
    linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.015));
  transition: transform .3s ease, border-color .3s ease;
}
.featured-card::before { content:""; position:absolute; inset:auto -15% -55% 25%; height:240px; border-radius:50%; background:var(--accent-2); filter:blur(90px); opacity:.12; }
.featured-card:hover { transform: translateY(-7px); border-color: rgba(183,255,42,.5); }
.featured-main { min-height: 330px; }
.featured-number { color: rgba(255,255,255,.3); font-size: 10px; }
.featured-card div { position: relative; }
.featured-card p { color: rgba(255,255,255,.36); font-size: 9px; letter-spacing: .18em; }
.featured-card h3 { margin-top: 10px; font-size: clamp(27px, 3vw, 45px); font-weight: 400; letter-spacing: -.055em; }
.featured-card div span { display: block; margin-top: 12px; color: rgba(255,255,255,.42); font-size: 10px; }

.library-panel { margin-top: 42px; }
.library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.search-box {
  min-width: 300px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}
.search-box span { color: var(--soft); font-size: 20px; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: #fff; font-size: 11px; }
.search-box input::placeholder { color: rgba(255,255,255,.28); }
.filters { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter {
  min-height: 43px;
  padding: 0 14px;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,.45);
  font-size: 9px;
  cursor: pointer;
  transition: .2s ease;
}
.filter:hover, .filter.is-active { background: #fff; color: #050505; border-color: #fff; }
.result-count { margin-bottom: 12px; color: rgba(255,255,255,.28); font-size: 10px; }
.website-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.website-card {
  min-height: 112px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 17px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
  transition: transform .22s ease, background .22s ease, border-color .22s ease;
}
.website-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.07); border-color: rgba(183,255,42,.45); }
.website-card > span { color: var(--accent); font-size: 10px; }
.website-card h3 { font-size: 13px; font-weight: 400; letter-spacing: -.025em; }
.website-card p { margin-top: 6px; color: rgba(255,255,255,.34); font-size: 9px; }
.website-card b { color: rgba(255,255,255,.3); font-size: 15px; transition: transform .2s ease, color .2s ease; }
.website-card:hover b { color: var(--accent); transform: translate(2px,-2px); }
.website-card.is-hidden { display: none; }
.empty-state { padding: 70px 20px; text-align: center; color: rgba(255,255,255,.4); }

.process { padding: 130px 0; background: #080808; }
.process-shell { width: min(1100px, calc(100% - 48px)); }
.process-heading { max-width: 850px; margin: 0 auto 75px; text-align: center; }
.process-heading h2 { font-size: clamp(42px, 6.8vw, 84px); }
.process-heading > p:last-child { max-width: 620px; margin: 24px auto 0; color: rgba(255,255,255,.4); font-size: 12px; line-height: 1.8; }
.process-list { display: flex; flex-direction: column; gap: 10px; }
.process-card {
  min-height: 105px;
  display: grid;
  grid-template-columns: 90px 220px 1fr;
  align-items: center;
  gap: 20px;
  padding: 20px 26px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
  transition: background .2s ease, transform .2s ease;
}
.process-card:hover { background: rgba(255,255,255,.065); transform: translateX(5px); }
.process-card span { color: var(--accent); font-size: 10px; }
.process-card h3 { font-size: 20px; font-weight: 400; letter-spacing: -.04em; }
.process-card p { color: rgba(255,255,255,.4); font-size: 11px; line-height: 1.7; }

.contact { position: relative; overflow: hidden; padding: 155px 0; background: #050505; }
.contact-glow { position: absolute; left: 50%; bottom: -260px; width: 680px; height: 680px; transform: translateX(-50%); border-radius: 50%; background: var(--accent-2); filter: blur(170px); opacity: .18; }
.contact-shell { text-align: center; }
.contact h2 { font-size: clamp(45px, 8.5vw, 118px); }
.contact-shell > p:not(.eyebrow) { max-width: 670px; margin: 25px auto 0; color: rgba(255,255,255,.43); font-size: 12px; line-height: 1.8; }
.contact-actions { justify-content: center; }

.footer { min-height: 430px; display: grid; grid-template-columns: 1fr 1fr; background: #040404; }
.footer-visual { position: relative; overflow: hidden; min-height: 430px; }
.footer-shade { background: rgba(0,0,0,.26); }
.footer-copy { padding: clamp(38px, 6vw, 85px); display: flex; flex-direction: column; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.08); }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.footer-copy > div:first-child > p { max-width: 460px; margin-top: 30px; color: rgba(255,255,255,.38); font-size: 11px; line-height: 1.8; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 70px; color: rgba(255,255,255,.25); font-size: 9px; }
.footer-bottom a:hover { color: #fff; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

@media (max-width: 1100px) {
  .hero-bottom { grid-template-columns: 1fr; }
  .hero-side { display: grid; grid-template-columns: 1fr 1.3fr; align-items: end; gap: 25px; text-align: left; }
  .hero-side h2 { grid-column: 1; }
  .hero-stats { grid-column: 2; }
  .skill-grid, .website-grid { grid-template-columns: repeat(2,1fr); }
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .featured-main { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  :root { --header-height: 68px; }
  .site-header { grid-template-columns: auto 1fr auto; padding: 0 14px; }
  .brand { min-width: auto; height: 40px; padding: 0 13px; border-radius: 11px; font-size: 12px; }
  .brand-mark { width: 15px; height: 15px; }
  .header-cta { height: 40px; padding: 0 14px; font-size: 10px; }
  .menu-button {
    justify-self: end;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 11px;
  }
  .menu-button span { width: 16px; height: 1px; background: #fff; transition: transform .25s ease, opacity .2s ease; }
  .menu-button.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .menu-button.is-open span:nth-child(2) { opacity: 0; }
  .menu-button.is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
  .site-nav {
    position: fixed;
    top: 76px;
    left: 14px;
    right: 14px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    transition: .25s ease;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .site-nav a { padding: 15px; font-size: 12px; }
  .hero { padding: calc(var(--header-height) + 30px) 18px 23px; }
  .hero-kicker { display: none; }
  .hero-bottom { margin-top: auto; }
  .hero-side { display: block; }
  .hero-side h2, .side-label { display: none; }
  .hero-stats { margin-top: 25px; }
  .split-heading { grid-template-columns: 1fr; }
  .split-heading > p { text-align: left; }
  .metric-grid { grid-template-columns: 1fr; gap: 5px; margin-top: 35px; }
  .metric { padding: 25px 8px; }
  .skill-grid { grid-template-columns: 1fr 1fr; }
  .library-toolbar { align-items: stretch; flex-direction: column; }
  .filters { width: 100%; }
  .search-box { min-width: 0; width: 100%; }
  .process-card { grid-template-columns: 48px 140px 1fr; }
  .footer { grid-template-columns: 1fr; }
  .footer-visual { min-height: 310px; }
}

@media (max-width: 620px) {
  .site-header { grid-template-columns: auto auto 1fr; gap: 8px; }
  .header-cta { justify-self: end; }
  .hero { min-height: 760px; }
  .hero h1 { font-size: clamp(48px, 17vw, 77px); }
  .hero-description { font-size: 11px; line-height: 1.65; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero-stats div { min-height: 74px; padding: 11px; }
  .hero-stats strong { font-size: 18px; }
  .watermark { top: 34%; }
  .section-shell, .process-shell { width: min(100% - 28px, 1500px); }
  .statement { font-size: 24px; }
  .skills, .work, .process { padding: 92px 0; }
  .skill-grid, .website-grid, .featured-grid { grid-template-columns: 1fr; }
  .featured-main { grid-column: auto; min-height: 260px; }
  .skill-card { min-height: 220px; }
  .skill-card h3 { margin-top: 58px; }
  .website-card { min-height: 102px; }
  .process-card { grid-template-columns: 35px 1fr; gap: 12px; padding: 20px; }
  .process-card p { grid-column: 2; }
  .contact { padding: 105px 0; }
  .footer-copy { padding: 35px 22px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .video-bg { display: none; }
}
