@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  color-scheme: dark;
  --bg: #0b0a10;
  --panel: #15131f;
  --ink: #faf8ff;
  --muted: #beb8cc;
  --line: #302a40;
  --violet: #b59aff;
  --cyan: #8beff0;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.6 var(--sans); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; padding-bottom: 5rem; }
.wrap { width: min(100% - 3rem, 1160px); margin-inline: auto; }
a { color: inherit; }
a:hover { color: var(--violet); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
img, video { display: block; max-width: 100%; }
figure, p { margin: 0; }
p { color: var(--muted); }
h1,h2,h3 { line-height: 1.06; margin: 0; letter-spacing: -.045em; }
h1 { font-size: clamp(2.75rem, 6vw, 5rem); }
h2 { font-size: clamp(1.75rem, 3.8vw, 2.8rem); }
h3 { font-size: clamp(1.45rem, 2.5vw, 2.1rem); }
.skip { position: fixed; z-index: 5; top: 1rem; left: 1rem; transform: translateY(-180%); background: var(--bg); padding: .75rem; }
.skip:focus { transform: none; }
.header { border-bottom: 1px solid var(--line); background: #100e17; }
.topbar { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.25rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand b { color: var(--violet); }
.brand img { object-fit: contain; }
nav { display: flex; gap: clamp(.8rem, 2vw, 1.8rem); align-items: center; }
nav a { text-decoration: none; font-weight: 600; }
nav a[aria-current] { color: var(--cyan); }
.menu-toggle { background: var(--panel); border: 1px solid var(--line); color: var(--ink); padding: .65rem 1rem; font: inherit; cursor: pointer; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; min-height: 46px; padding: .65rem 1.05rem; border: 1px solid transparent; border-radius: 5px; text-decoration: none; font: 700 .96rem/1.25 var(--sans); text-align: center; }
.button span { font-size: 1rem; }
button.button { cursor: pointer; }
button:disabled { opacity: .7; cursor: wait; }
.primary { background: #ab88ff; color: #120b21; }
.primary:hover { background: #c5adff; color: #120b21; }
.outline { border-color: #554768; background: #151020a8; color: var(--ink); }
.outline:hover { border-color: var(--violet); }
.pending { background: var(--panel); border-color: var(--line); color: var(--violet); }
.eyebrow { display: flex; align-items: center; gap: .6rem; color: var(--violet); font: 500 .72rem/1.5 var(--mono); letter-spacing: .02em; }
.hero { border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: clamp(1.5rem, 5vw, 4rem); padding-block: clamp(3rem, 7vw, 6rem); }
.hero-copy { display: grid; gap: 1rem; }
.hero-preview { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--panel); }
.hero-preview img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #1e1e1e; }
.hero-preview figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .25rem .75rem; padding: .65rem .85rem; font-size: .875rem; color: var(--muted); }
.hero-preview figcaption a { color: var(--ink); text-underline-offset: .2em; }
.lede { font-size: clamp(1.12rem, 2.3vw, 1.4rem); max-width: 39rem; }
.hero .lede { max-width: 29rem; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.art figcaption { font: .68rem var(--mono); color: var(--muted); background: #0b0a10ec; padding: .4rem .65rem; position: absolute; right: .7rem; bottom: .7rem; border: 1px solid var(--line); border-radius: 4px; }
.intro { padding-block: clamp(3.2rem, 9vw, 7.5rem) 2.7rem; display: grid; gap: .9rem; }
.section { margin-top: clamp(2.5rem, 7vw, 5.5rem); }
.section h2 + p, .prose h2 + p { margin-top: .85rem; }
.section-head { margin-bottom: 1.45rem; display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.section-head .eyebrow { margin-bottom: .55rem; }
.projects,.cards,.gallery { display: grid; gap: 1rem; }
.projects,.gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
.cards { grid-template-columns: repeat(3,minmax(0,1fr)); }
.card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.art { position: relative; background: #110d1c; overflow: hidden; }
.art img { width: 100%; aspect-ratio: 2.35; object-fit: cover; }
.card .art img { aspect-ratio: 2.4; }
.projects .art img { aspect-ratio: 2; }
.screenshot img { object-position: top; }
.card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: .8rem; padding: clamp(1rem, 3vw, 1.6rem); }
.card-body strong { color: var(--ink); }
.card-body .button { margin-top: auto; }
.gallery { margin-top: 1rem; align-items: start; }
.gallery figure { border: 1px solid var(--line); background: var(--panel); border-radius: 7px; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #171717; }
.gallery figcaption { padding: .65rem 1rem; }
.image-viewer { max-width: calc(100vw - 1rem); max-height: calc(100dvh - 1rem); padding: .75rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; }
.image-viewer::backdrop { background: #06050aed; }
.image-viewer form { position: sticky; top: 0; display: flex; justify-content: flex-end; padding: 0 0 .75rem; background: var(--bg); border: 0; }
.image-viewer img { width: auto; height: auto; max-height: calc(100dvh - 6rem); object-fit: contain; }

.download, form { padding: clamp(1rem, 4vw, 2.3rem); border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.download { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
dl { margin-bottom: 0; }
dl div { display: grid; grid-template-columns: minmax(0, 12rem) 1fr; gap: .6rem; padding: .35rem 0; }
dd { margin: 0; color: var(--muted); }
.steps { padding-left: 1.6rem; }
.steps li { padding: .5rem .35rem; }
.steps li::marker { color: var(--cyan); font-family: var(--mono); }
.faq details { border-bottom: 1px solid var(--line); padding: .9rem 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin-top: .65rem; }
.prose { max-width: min(100% - 3rem, 760px); }
.prose h2:not(:first-child), .prose .actions { margin-top: 1.6rem; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.8fr; gap: 2rem; }
.contact-layout > div p { margin-top: .7rem; }
.email { overflow-wrap: anywhere; }
form label { display: block; font-weight: 600; margin-bottom: 1rem; }
form small { color: var(--muted); }
input,select,textarea { width: 100%; display: block; margin-top: .3rem; padding: .7rem; border: 1px solid #554768; border-radius: 4px; background: var(--bg); color: var(--ink); font: inherit; }
textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
#form-status:not(:empty) { margin-top: .8rem; }
#form-status[data-state="error"] { color: #ffb0bb; }
#form-status[data-state="success"] { color: var(--cyan); }
.footer { border-top: 1px solid var(--line); padding-block: 2rem; background: #100e17; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.3rem; flex-wrap: wrap; }
@media (max-width: 780px) {
  .topbar { flex-wrap: wrap; gap: .7rem; padding-block: .75rem; }
  .topbar nav { width: 100%; flex-direction: column; align-items: stretch; gap: .25rem; }
  .topbar nav a { padding: .6rem .75rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 510px) {
  .wrap { width: calc(100% - 2rem); }
  .projects,.cards,.gallery,.form-grid { grid-template-columns: 1fr; }
  .form-grid { gap: 0; }
}

