/* Always dark. All artwork is made with CSS; no external assets are loaded. */
:root {
  color-scheme: dark;
  --background: #000;
  --surface: #1d1d1f;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --line: #303033;
  --accent: #2997ff;
  --accent-hover: #70baff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--background); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
p, h1, h2, h3 { margin: 0; }
a { color: var(--accent); text-underline-offset: .25em; }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
button { font: inherit; }
.wrap { width: min(100% - 80px, 1120px); margin-inline: auto; }
.skip-link { position: absolute; top: -80px; left: 20px; z-index: 10; padding: 12px 20px; background: var(--surface); border-radius: 10px; }
.skip-link:focus { top: 12px; }
.site-header { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.wordmark { color: var(--text); font-size: 17px; font-weight: 600; letter-spacing: -.5px; text-decoration: none; }
.wordmark span { color: var(--accent); }
nav { display: flex; gap: 34px; }
nav a { color: #c5c5ca; font-size: 13px; text-decoration: none; padding-block: 12px; }
.nav-toggle { cursor: pointer; background: var(--surface); border: 1px solid #55555a; border-radius: 30px; color: var(--text); padding: 8px 16px; }
.hero { position: relative; isolation: isolate; text-align: center; padding: 116px 0 104px; }
.hero::before { content: ''; position: absolute; z-index: -1; inset: 4% -30px -2%; pointer-events: none; background: radial-gradient(ellipse at 50% 48%, #15335855 0%, #18133138 29%, transparent 66%); }
.eyebrow { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.hero .eyebrow { color: #c3c3cb; }
.status-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }
h1 { margin-top: 25px; font-size: clamp(56px, 8.6vw, 108px); line-height: 1.02; letter-spacing: -.065em; font-weight: 650; }
.hero-gradient { color: #c8dfff; background: linear-gradient(110deg, #eef3ff 10%, #a8cfff 53%, #8a8fe3 94%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.tagline { margin-top: 30px; font-size: clamp(18px, 2vw, 23px); line-height: 1.45; color: var(--muted); letter-spacing: -.025em; }
.button { display: inline-flex; align-items: center; gap: 22px; margin-top: 30px; padding: 12px 24px; border-radius: 999px; background: var(--accent); color: #001426; font-size: 15px; font-weight: 600; text-decoration: none; transition: background .2s; }
.button:hover { background: var(--accent-hover); color: #001426; }
.hero-note { margin-top: 24px; font-size: 12px; color: var(--muted); }
.section { padding-block: 88px; border-top: 1px solid var(--line); }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; letter-spacing: -.045em; font-weight: 600; margin-top: 14px; }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.bio { font-size: 20px; line-height: 1.5; letter-spacing: -.025em; }
.bio p + p { margin-top: 20px; font-size: 16px; color: var(--muted); letter-spacing: -.01em; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.section-heading > p { color: var(--muted); font-size: 14px; max-width: 150px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.project-card { min-width: 0; overflow: hidden; background: var(--surface); border-radius: 24px; }
.project-visual { position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 1.35; }
.visual-label { position: absolute; bottom: 20px; left: 26px; font-size: 9px; color: #c2c9d6; letter-spacing: .18em; }
.visual-art { display: block; position: relative; transition: transform .6s ease; }
.project-card:hover .visual-art { transform: scale(1.04); }
.visual-orbit { background: radial-gradient(ellipse at 50% 70%, #184b79 0, #0b1a30 45%, #080d18 90%); }
.visual-orbit .visual-art { width: 58%; aspect-ratio: 1; border-radius: 50%; border: 1px solid #9cd8ff; background: radial-gradient(circle at 30% 22%, #79caff55, #0b1c3400 60%); box-shadow: inset 6px 4px 25px #8acaff66, inset -15px -20px 35px #000, 0 0 35px #2997ff33; }
.visual-orbit .visual-art::after { content: ''; position: absolute; inset: 30% -24%; border: 1px solid #91c9ff99; border-radius: 50%; transform: rotate(-28deg); box-shadow: 0 0 14px #499bff55; }
.visual-glass { background: radial-gradient(ellipse at 55% 50%, #41345a, #17131e 65%, #121015); }
.visual-glass .visual-art { width: 44%; aspect-ratio: .76; border-radius: 24px; transform: rotate(-14deg); background: linear-gradient(135deg, #f4d9ff77, #7d6bc522 45%, #8977b977); border: 1px solid #d7c5ef88; box-shadow: 22px 30px 45px #0006, inset 2px 2px 4px #fff5; }
.visual-glass .visual-art::after { content: ''; position: absolute; inset: 24px; border-top: 2px solid #e4d8ff99; border-bottom: 1px solid #e4d8ff55; border-radius: 8px; background: linear-gradient(transparent 60%, #e1d4fa15); }
.visual-waves { background: radial-gradient(ellipse at 50% 70%, #274f49, #0b201e 56%, #0c1515); }
.visual-waves .visual-art { width: 66%; aspect-ratio: 1.4; border-radius: 50%; transform: rotate(-28deg); background: repeating-radial-gradient(ellipse at center, transparent 0 9px, #89d1be88 10px 11px, transparent 12px 19px); box-shadow: 0 0 60px #75b9ad14; }
.visual-sphere { background: radial-gradient(ellipse at 50% 60%, #513522, #21160e 55%, #17100d); }
.visual-sphere .visual-art { width: 53%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 31% 25%, #ffe4b9, #d39c67 24%, #8b532c 48%, #29130d 73%); box-shadow: 12px 30px 40px #0008, 0 0 50px #cd814b1a; }
.project-copy { padding: 26px 28px 28px; }
h3 { font-size: 23px; font-weight: 600; letter-spacing: -.03em; }
h3 a { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--text); text-decoration: none; }
h3 a span { font-size: 20px; color: var(--accent); }
.project-copy > p { color: var(--muted); margin-top: 9px; font-size: 14px; max-width: 43ch; }
.tags { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 20px 0 0; padding: 0; }
.tags li { color: #b6b6bc; font-size: 10px; letter-spacing: .04em; }
.tags li + li::before { content: '·'; margin-right: 12px; }
.contact { text-align: center; padding-block: 108px; }
.contact h2 { font-size: clamp(36px, 5vw, 60px); }
.contact > p:not(.eyebrow) { max-width: 44ch; margin: 20px auto 0; color: var(--muted); font-size: 18px; }
.contact-link { display: inline-flex; gap: 12px; margin-top: 26px; font-size: 21px; text-decoration: none; }
.contact-link:hover { text-decoration: underline; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.social-links { display: flex; gap: 24px; }
.site-footer a { color: var(--muted); text-decoration: none; padding-block: 10px; }
.site-footer a:hover { color: var(--accent); }
@media (max-width: 760px) {
  .about { gap: 32px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 16px; max-width: none; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { min-height: 76px; flex-wrap: wrap; padding-block: 16px; gap: 12px; }
  nav { width: 100%; gap: 28px; padding-block: 4px; }
  .js-nav nav { display: none; }
  .js-nav nav.is-open { display: flex; }
  .hero { padding-block: 88px 76px; }
  .hero::before { inset-inline: -20px; }
  .hero .eyebrow { font-size: 9px; letter-spacing: .1em; }
  h1 { font-size: clamp(49px, 10.5vw, 68px); }
  .tagline { max-width: 29ch; margin-inline: auto; }
  .desktop-break { display: none; }
  .section { padding-block: 60px; }
  .about { grid-template-columns: 1fr; }
  .bio { font-size: 19px; }
  .project-grid { grid-template-columns: 1fr; gap: 24px; }
  .project-copy { padding: 24px; }
  .contact { padding-block: 76px; }
  .contact > p:not(.eyebrow) { font-size: 16px; }
  .site-footer { justify-content: flex-start; gap: 10px 24px; }
  .site-footer > p { width: 100%; }
  .social-links { gap: 18px; }
  .back-top { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .project-card:hover .visual-art { transform: none; }
}

/* Featured project with a real screenshot */
.visual-photo { background: #0b0b0d; }
.visual-photo picture, .visual-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.visual-photo img { object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.visual-photo::after { content: ''; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(to top, rgba(0,0,0,.55), transparent); pointer-events: none; }
.visual-photo .visual-label { z-index: 1; color: #e8ecf3; }
.project-card:hover .visual-photo img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .project-card:hover .visual-photo img { transform: none; } }

/* Featured project spans the full row, image beside copy */
@media (min-width: 761px) {
  .project-featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .project-featured .project-visual { aspect-ratio: auto; min-height: 420px; }
  .project-featured .project-copy { display: flex; flex-direction: column; justify-content: center; }
}
.visual-photo .visual-label { bottom: 16px; left: 18px; padding: 6px 10px; border-radius: 999px; background: rgba(0,0,0,.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
