:root {
  color-scheme: dark;
  --bg: #020202;
  --bg-2: #070707;
  --panel: rgba(255,255,255,.045);
  --panel-2: rgba(255,255,255,.075);
  --text: #f7f7f7;
  --muted: #b5b5b5;
  --soft: #777;
  --line: rgba(255,255,255,.14);
  --line-strong: rgba(255,255,255,.55);
  --white: #fff;
  --black: #000;
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shell: min(1160px, calc(100% - 44px));
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 82% -10%, rgba(255,255,255,.12), transparent 28rem),
    radial-gradient(circle at 12% 24%, rgba(255,255,255,.055), transparent 24rem),
    linear-gradient(180deg, #050505 0%, #000 48%, #070707 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 76%);
}
body.nav-open { overflow: hidden; }

.site-noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .14;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
}
.cursor-glow {
  position: fixed;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  pointer-events: none;
  opacity: .22;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,.2), transparent 64%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(255,255,255,.18); }

.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 100;
  padding: .8rem 1rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

.section-shell, .nav-shell, .footer-shell { width: var(--shell); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .22s ease, border-color .22s ease, backdrop-filter .22s ease;
}
.site-header.scrolled, .site-header.menu-open {
  border-color: var(--line);
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(18px);
}
.nav-shell {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .85rem; }
.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.025));
  font-weight: 900;
  letter-spacing: -.06em;
}
.brand-copy { display: grid; gap: .12rem; }
.brand-copy strong { letter-spacing: -.02em; }
.brand-copy small { color: var(--muted); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: .42rem; }
.nav-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .72rem .95rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: .91rem;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--white);
  border-color: var(--line);
  background: rgba(255,255,255,.06);
}
.nav-links a:hover { transform: translateY(-1px); }
.nav-links .nav-cta {
  color: var(--black);
  background: var(--white);
  border-color: var(--white);
}
.nav-links .nav-cta:hover, .nav-links .nav-cta[aria-current="page"] { color: var(--black); background: var(--white); }
.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 1px; margin: 5px auto; background: var(--white); transition: transform .2s ease; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

main { min-height: calc(100vh - 168px); }
.hero { padding: clamp(5rem, 8vw, 9rem) 0 5rem; }
.hero-grid, .page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, .58fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.eyebrow span { width: 46px; height: 2px; border-radius: 999px; background: var(--white); box-shadow: 0 0 16px rgba(255,255,255,.34); }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 900px;
  margin-bottom: 1.25rem;
  font-size: clamp(3.25rem, 8vw, 7.4rem);
  line-height: .88;
  letter-spacing: -.08em;
  text-wrap: balance;
}
h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4.2vw, 4.3rem);
  line-height: .95;
  letter-spacing: -.065em;
  text-wrap: balance;
}
h3 { margin-bottom: .65rem; font-size: 1.08rem; letter-spacing: -.02em; }
.lede, .hero-lede, .page-lede, .section-heading p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .88rem 1.14rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .22s var(--ease), border-color .22s ease, background .22s ease, box-shadow .22s ease;
}
.button:hover { transform: translateY(-2px); }
.button-light { background: var(--white); color: var(--black); border-color: var(--white); box-shadow: 0 0 34px rgba(255,255,255,.12); }
.button-dark { background: rgba(255,255,255,.04); color: var(--white); }
.button-dark:hover { border-color: var(--line-strong); background: rgba(255,255,255,.08); }

.visual-card, .page-card, .panel-card, .work-card, .metric-card, .resume-block, .resume-sidebar, .contact-card, .contact-side, .process-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  box-shadow: 0 24px 90px rgba(0,0,0,.32);
}
.visual-card {
  position: relative;
  min-height: 530px;
  overflow: hidden;
}
.visual-card::before, .panel-card::before, .resume-sidebar::before, .contact-card::before, .page-card::before {
  content: "";
  display: block;
  width: 68%;
  height: 8px;
  background: var(--white);
  border-radius: 0 0 999px 0;
}
.visual-card::before { position: absolute; top: 0; left: 0; }
.visual-grid {
  position: absolute;
  inset: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.visual-grid::before {
  content: "";
  position: absolute;
  inset: -35%;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(255,255,255,.035) 23px 24px);
  transform: rotate(-10deg);
}
.core-mark {
  position: relative;
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: radial-gradient(circle at 32% 24%, rgba(255,255,255,.35), transparent 32%), linear-gradient(145deg, #1b1b1b, #050505);
  font-size: 2.6rem;
  font-weight: 950;
  letter-spacing: -.08em;
  box-shadow: inset 0 0 42px rgba(255,255,255,.06), 0 0 80px rgba(255,255,255,.12);
}
.visual-menu {
  position: absolute;
  left: 36px;
  right: 36px;
  bottom: 34px;
  display: grid;
  gap: .65rem;
}
.visual-menu a, .page-card a {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .86rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0,0,0,.26);
  color: var(--muted);
  transition: transform .22s var(--ease), border-color .22s ease, background .22s ease, color .22s ease;
}
.visual-menu a::after, .page-card a::after { content: "→"; color: var(--white); }
.visual-menu a:hover, .page-card a:hover { transform: translateX(4px); color: var(--white); border-color: var(--line-strong); background: rgba(255,255,255,.075); }

.section { padding: clamp(3.5rem, 6vw, 6rem) 0; }
.strip-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .85rem; padding-bottom: 2rem; }
.strip-link {
  position: relative;
  min-height: 136px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .35rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.035);
  transition: transform .22s var(--ease), border-color .22s ease, background .22s ease;
}
.strip-link::before { content: ""; position: absolute; top: 1.1rem; left: 1.1rem; width: 52%; height: 6px; border-radius: 999px; background: var(--white); }
.strip-link::after { content: "→"; position: absolute; top: .9rem; right: 1.1rem; }
.strip-link:hover { transform: translateY(-4px); border-color: var(--line-strong); background: rgba(255,255,255,.07); }
.strip-link span { font-weight: 900; }
.strip-link strong { color: var(--muted); font-size: .92rem; font-weight: 500; line-height: 1.45; }

.section-heading { max-width: 820px; margin-bottom: 2rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.panel-card {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  transition: transform .22s var(--ease), border-color .22s ease, background .22s ease;
}
.panel-card::before { position: absolute; top: 0; left: 0; }
.panel-card::after { content: "→"; position: absolute; right: 1.35rem; bottom: 1.25rem; }
.panel-card:hover { transform: translateY(-6px); border-color: var(--line-strong); background: rgba(255,255,255,.065); }
.panel-card .number { margin-bottom: 1.75rem; color: var(--soft); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; }
.panel-card h3 { padding-right: 1.6rem; font-size: clamp(1.25rem, 2vw, 1.85rem); line-height: 1; }
.panel-card p { max-width: 330px; margin-bottom: 0; color: var(--muted); line-height: 1.65; }

.statement { padding: 2rem 0 6rem; }
.statement-frame {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
}
.statement-frame::before { content: ""; position: absolute; top: 0; left: 0; width: min(520px,70%); height: 8px; border-radius: 0 0 999px 0; background: var(--white); }
.statement-frame p { max-width: 940px; margin-bottom: 1.4rem; font-size: clamp(1.45rem, 3vw, 3rem); line-height: 1.12; letter-spacing: -.055em; text-wrap: balance; }
.statement-frame a { border-bottom: 1px solid var(--white); padding-bottom: .2rem; font-weight: 800; }

.page-hero { padding: clamp(4.5rem, 8vw, 8rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-card { padding: .85rem; }
.page-card::before { margin: -.85rem 0 .85rem -.85rem; }
.page-section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.split { display: grid; grid-template-columns: minmax(0,.95fr) minmax(300px,.7fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.copy-block p:not(.eyebrow) { color: var(--muted); line-height: 1.75; font-size: 1.04rem; }

.work-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 1rem; }
.work-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.35rem;
  background: radial-gradient(circle at 80% 10%, rgba(255,255,255,.13), transparent 18rem), linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  transition: transform .24s var(--ease), border-color .24s ease, background .24s ease;
}
.work-card.large { grid-row: span 2; min-height: 680px; }
.work-card::before { content: ""; position: absolute; top: 1.35rem; left: 1.35rem; width: min(360px,62%); height: 8px; border-radius: 999px; background: var(--white); }
.work-card:hover { transform: translateY(-6px); border-color: var(--line-strong); background: rgba(255,255,255,.066); }
.work-tag { width: fit-content; margin-bottom: 1.2rem; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.work-card h3 { max-width: 620px; font-size: clamp(1.6rem, 3vw, 3rem); line-height: 1; letter-spacing: -.055em; }
.work-card p { max-width: 560px; color: var(--muted); line-height: 1.65; }
.work-meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); }

.process-stack { display: grid; gap: .85rem; }
.process-card { padding: 1.2rem; }
.process-card span, .timeline-item span, .contact-side span, .resume-card span, .metric-card span { display: inline-flex; margin-bottom: .65rem; color: var(--soft); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
.process-card strong { display: block; margin-bottom: .35rem; font-size: 1.05rem; }
.process-card p, .contact-side p, .resume-sidebar p, .metric-card p { margin-bottom: 0; color: var(--muted); line-height: 1.65; }
.mini-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .85rem; }
.mini-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.035);
  transition: transform .22s var(--ease), border-color .22s ease, background .22s ease;
}
.mini-card::before { content: ""; width: 56%; height: 6px; border-radius: 999px; background: var(--white); }
.mini-card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: rgba(255,255,255,.07); }
.mini-card span { font-weight: 850; font-size: 1.08rem; }
.mini-card strong { color: var(--muted); font-size: .86rem; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .85rem; }
.metric-card { min-height: 155px; padding: 1.1rem; }
.metric-card strong { display: block; margin-bottom: 2.6rem; font-size: 1.05rem; letter-spacing: .14em; color: var(--soft); }

.profile-panel { padding: 1.4rem; }
.profile-mark { width: 122px; height: 122px; display: grid; place-items: center; margin-bottom: 1.3rem; border: 1px solid var(--line-strong); border-radius: 999px; background: linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.025)); font-size: 2rem; font-weight: 950; letter-spacing: -.08em; }
.profile-panel p { margin-bottom: .25rem; font-weight: 850; font-size: 1.15rem; }
.profile-panel span { color: var(--muted); }

.resume-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px,.38fr); gap: 1rem; align-items: start; }
.resume-main { display: grid; gap: 1rem; }
.resume-block, .resume-sidebar, .contact-card, .contact-side { padding: clamp(1.3rem, 3vw, 2rem); }
.resume-block h2 { font-size: clamp(1.75rem, 3vw, 3rem); }
.resume-block p:not(.eyebrow) { color: var(--muted); line-height: 1.75; }
.timeline { display: grid; gap: 1rem; margin-top: 1.5rem; }
.timeline-item { position: relative; padding: 0 0 1.3rem 1.35rem; border-bottom: 1px solid var(--line); }
.timeline-item:last-child { border-bottom: 0; padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: 0; top: .25rem; width: 8px; height: 8px; border-radius: 999px; background: var(--white); box-shadow: 0 0 18px rgba(255,255,255,.35); }
.resume-sidebar { position: sticky; top: 104px; display: grid; gap: 1rem; }
.resume-sidebar::before, .contact-card::before { margin: -2rem 0 0 -2rem; }
.resume-sidebar article + article, .contact-side article + article { padding-top: 1rem; border-top: 1px solid var(--line); }
.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill-list span { padding: .48rem .68rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.035); font-size: .88rem; }
.resume-card strong { display: block; margin-bottom: .75rem; font-size: clamp(1.4rem, 2vw, 2rem); line-height: 1; letter-spacing: -.045em; }
.resume-card p { color: var(--muted); line-height: 1.65; }

.contact-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.38fr); gap: 1rem; align-items: start; }
.contact-form { display: grid; gap: .9rem; margin-top: 1.5rem; }
.contact-form label { display: grid; gap: .45rem; }
.contact-form label span { color: var(--muted); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.contact-form input, .contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
  color: var(--white);
  padding: 1rem;
  outline: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--line-strong); background: rgba(255,255,255,.07); box-shadow: 0 0 0 4px rgba(255,255,255,.055); }
.contact-side { display: grid; gap: 1rem; }
.contact-side a { display: inline-flex; border-bottom: 1px solid var(--white); padding-bottom: .2rem; font-weight: 760; word-break: break-word; }

.site-footer { border-top: 1px solid var(--line); background: rgba(0,0,0,.42); }
.footer-shell { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .92rem; }
.footer-shell p { margin: 0; }
.footer-shell div { display: flex; gap: 1rem; }
.footer-shell a:hover { color: var(--white); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }

@media print {
  .site-header, .site-footer, .cursor-glow, .site-noise, .hero-actions, .page-card { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .section-shell { width: 100% !important; }
  .page-hero, .page-section { padding: 1rem 0 !important; }
  .resume-layout { display: block !important; }
  .resume-sidebar, .resume-block { box-shadow: none !important; border-color: #bbb !important; color: #000 !important; page-break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
}
@media (max-width: 920px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    position: fixed;
    inset: 82px 16px auto 16px;
    display: grid;
    gap: .5rem;
    padding: .8rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(0,0,0,.94);
    box-shadow: 0 30px 80px rgba(0,0,0,.5);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .22s var(--ease), opacity .22s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { justify-content: flex-start; padding: .95rem 1rem; }
  .hero-grid, .page-hero-grid, .strip-grid, .card-grid, .split, .resume-layout, .contact-layout, .work-grid { grid-template-columns: 1fr; }
  .visual-card { min-height: 500px; }
  .work-card.large { min-height: 430px; }
  .resume-sidebar { position: static; }
  .metric-grid, .mini-card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  :root { --shell: min(100% - 28px, 1160px); }
  .brand-copy small { display: none; }
  h1 { font-size: clamp(3rem, 17vw, 4.5rem); }
  .hero { padding-top: 3.8rem; }
  .hero-actions, .footer-shell, .footer-shell div { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .visual-card { min-height: 430px; }
  .visual-menu { left: 22px; right: 22px; bottom: 22px; }
  .metric-grid, .mini-card-grid { grid-template-columns: 1fr; }
  .work-card, .work-card.large { min-height: 360px; }
}
