@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Syne:wght@500;600;700;800&display=swap');
:root { color-scheme: dark; --bg:#0b0f17; --surface:#111827; --card:#161d2e; --accent2:#7c3aed; --grid:rgba(0,212,255,.035); --text:#e2e8f0; --muted:#9cacc1; --accent:#00d4ff; --border:#1e2d47; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:90px; }
body { margin:0; background:var(--bg); color:var(--text); font:14px/1.8 'JetBrains Mono',monospace; }
body::before { content:''; position:fixed; inset:0; pointer-events:none; z-index:0; background-image:radial-gradient(circle at 18% 18%,rgba(0,212,255,.08),transparent 26%),radial-gradient(circle at 82% 12%,rgba(124,58,237,.06),transparent 24%),linear-gradient(var(--grid) 1px,transparent 1px),linear-gradient(90deg,var(--grid) 1px,transparent 1px); background-size:auto,auto,48px 48px,48px 48px; }
.page, footer { position:relative; z-index:1; }

a { color:inherit; } button { font:inherit; } a,button { -webkit-tap-highlight-color:transparent; }
a:focus-visible,button:focus-visible { outline:2px solid var(--accent); outline-offset:5px; }
.page { padding-top:var(--site-navigation-height,64px); }
.content { width:min(1440px,calc(100% - 48px)); margin:auto; }
.back-link { display:inline-block; margin:20px 0 16px; color:var(--muted); text-decoration:none; font-size:12px; }
.back-link:hover { color:var(--accent); }
.project-hero { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); gap:28px; align-items:center; padding:28px; border:1px solid rgba(0,212,255,.16); border-radius:10px; background:linear-gradient(135deg,rgba(0,212,255,.045),rgba(124,58,237,.03)),rgba(13,20,33,.9); box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 12px 34px rgba(0,0,0,.22); }
.eyebrow { color:var(--accent); font-size:11px; letter-spacing:.13em; text-transform:uppercase; margin:0 0 12px; }
.eyebrow::before { content:'//'; color:#64748b; margin-right:10px; }
h1,h2,h3,p,figure { margin:0; } h1,h2,h3 { font-family:Syne,sans-serif; line-height:1.12; }
h1 { font-size:clamp(28px,3.3vw,44px); font-weight:800; letter-spacing:-.025em; overflow-wrap:anywhere; } h1 span { color:var(--accent); }
.project-name { font-size:15px; margin:12px 0; font-weight:600; color:#c3d0e1; }
.lead { color:var(--muted); max-width:540px; }
.tags { display:flex; flex-wrap:wrap; gap:8px; margin:20px 0; } .tags span { border:1px solid var(--border); border-radius:5px; padding:4px 9px; font-size:11px; color:#c3d0e1; }
.actions { display:flex; gap:12px; flex-wrap:wrap; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:14px; min-height:46px; padding:10px 16px; border:1px solid var(--border); border-radius:6px; text-decoration:none; font-size:13px; background:linear-gradient(135deg,rgba(0,212,255,.065),rgba(124,58,237,.04)),rgba(13,20,33,.88); transition:transform .18s,border-color .18s; }
.button.primary { color:#05131a; background:var(--accent); border-color:var(--accent); font-weight:600; }
.button:hover { transform:translateY(-2px); border-color:var(--accent); }
.hero-photo { border:1px solid var(--border); border-radius:8px; overflow:hidden; background:var(--surface); }
.hero-photo img { display:block; width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; }
.hero-photo figcaption { display:flex; gap:8px; align-items:center; font-size:10px; padding:12px 16px; color:var(--muted); }
.photo-dot { width:6px; height:6px; border-radius:50%; background:var(--accent); }
.specs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin:18px 0; gap:14px; }
.specs>div { padding:18px 20px; border:1px solid rgba(0,212,255,.14); border-radius:8px; background:linear-gradient(135deg,rgba(0,212,255,.045),rgba(124,58,237,.03)),rgba(13,20,33,.9); }
.specs strong { display:block; font:800 24px Syne,sans-serif; color:var(--accent); margin-bottom:5px; }.specs span { color:var(--muted); font-size:11px; }
.section { margin:20px 0; padding:26px; scroll-margin-top:88px; border:1px solid rgba(0,212,255,.16); border-radius:10px; background:linear-gradient(135deg,rgba(0,212,255,.045),rgba(124,58,237,.03)),rgba(13,20,33,.9); box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 12px 34px rgba(0,0,0,.16); }
h2 { font-size:clamp(23px,2.3vw,30px); font-weight:800; letter-spacing:-.025em; }
.story { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.4fr); gap:36px; border-left:3px solid var(--accent); }.body-copy { color:var(--muted); }.body-copy p+p { margin-top:16px; }.body-copy strong { color:var(--accent); font-weight:600; }
.section-heading { display:flex; justify-content:space-between; align-items:end; gap:24px; margin-bottom:22px; }.section-heading>p { max-width:420px; font-size:12px; color:var(--muted); }.section-heading strong { color:var(--accent); }
.demo-layout { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:28px; padding:24px 0 0; border-top:1px solid var(--border); align-items:center; }
.device { background:#090e17; border:1px solid #34445a; border-radius:8px; padding:18px; box-shadow:0 12px 24px #0003; }.device-label,.device-bottom { display:flex; align-items:center; justify-content:space-between; gap:8px; color:var(--muted); font-size:10px; }.simulation-badge { color:var(--accent); font-size:9px; letter-spacing:.12em; }.device-bottom { padding-top:12px; font-size:9px; }
.screen { margin-top:16px; padding:24px; min-height:270px; background:#071a39; border:1px solid #194170; border-radius:3px; color:#e0eeff; box-shadow:inset 0 0 35px #0004; }.screen-label { font-size:11px; color:#8dbeff; margin-bottom:22px; }.screen-title { font-size:22px; line-height:1.4; }.screen-help { color:#a8c6ef; margin-top:22px; font-size:12px; }.screen-options { display:grid; grid-template-columns:1fr 1fr; gap:4px 16px; font-size:12px; }.screen-price { font-size:38px; color:#82e5ff; font-weight:600; line-height:1.4; }.sample-label { color:#a8c6ef; font-size:10px; margin-top:12px; }
.keypad { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; }.keypad button { min-height:51px; color:var(--text); background:#182338; border:1px solid #34445a; border-radius:7px; cursor:pointer; font-size:17px; box-shadow:0 3px 0 #060c16; transition:transform .12s,border-color .12s; }.keypad button:hover { border-color:var(--accent); }.keypad button:active { transform:translateY(2px); }.keypad button[data-key='#'] { color:var(--accent); border-color:#007d96; }.keypad button:disabled { opacity:.3; cursor:default; }
.demo-controls { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:20px; font-size:11px; color:var(--muted); }.demo-controls button { border:0; background:transparent; color:var(--accent); padding:8px 0; font-size:11px; cursor:pointer; }.demo-note { color:var(--muted); font-size:11px; margin-top:16px; }
.flow { list-style:none; padding:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin:24px 0 0; }.flow li { border:1px solid rgba(0,212,255,.14); border-radius:8px; padding:18px; background:rgba(11,15,23,.35); }.flow li>span { color:var(--accent); font-size:10px; letter-spacing:.1em; }.flow h3 { margin:14px 0 12px; font-size:19px; }.flow p { font-size:12px; color:var(--muted); }
.gallery { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }.gallery figure { border:1px solid var(--border); border-radius:9px; overflow:hidden; background:var(--surface); }.gallery a { display:block; overflow:hidden; }.gallery img { display:block; width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; transition:transform .25s; }.gallery a:hover img { transform:scale(1.025); }.gallery figcaption { padding:18px; display:flex; gap:14px; font-size:12px; }.gallery figcaption>span { color:var(--accent); }.gallery figcaption p { color:var(--muted); margin-top:5px; font-size:11px; }
.build-panel { display:grid; grid-template-columns:1fr 1.2fr; gap:36px; padding:26px; border:1px solid var(--border); background:linear-gradient(135deg,rgba(0,212,255,.045),rgba(124,58,237,.03)),rgba(13,20,33,.9); border-radius:10px; }.build-panel>div>p:not(.eyebrow) { color:var(--muted); font-size:12px; margin:20px 0; }.build-list { margin:0; }.build-list>div { border-bottom:1px solid var(--border); padding:16px 0; }.build-list>div:first-child { padding-top:0; }.build-list>div:last-child { border-bottom:0; }.build-list dt { font-size:11px; color:var(--accent); }.build-list dd { margin:6px 0 0; color:var(--muted); font-size:12px; }
.next-project { display:flex; justify-content:space-between; align-items:center; gap:24px; padding:24px; border:1px solid rgba(0,212,255,.16); border-radius:10px; background:var(--surface); text-decoration:none; margin:20px 0 32px; }.next-project .eyebrow { display:block; margin-bottom:10px; }.next-project strong { font:700 24px Syne,sans-serif; }.next-project p { color:var(--muted); font-size:12px; margin-top:8px; }.next-project>span { font-size:32px; color:var(--accent); }
footer { border-top:1px solid var(--border); padding:24px max(24px,calc((100% - 1440px)/2)); display:flex; justify-content:space-between; gap:16px; color:var(--muted); font-size:11px; }footer a { text-decoration:none; }
@media(max-width:1000px) { .project-hero { gap:28px; } .actions { gap:8px; }.story { gap:32px; }.flow { grid-template-columns:repeat(2,minmax(0,1fr)); }.demo-layout { gap:24px; } }
@media(max-width:760px) { .content { width:calc(100% - 24px); }.project-hero,.story,.demo-layout,.build-panel { grid-template-columns:minmax(0,1fr); }.project-hero { padding:22px; }.hero-photo { transform:none; }.specs { grid-template-columns:repeat(2,minmax(0,1fr)); }.section { margin:16px 0; padding:22px; }.section-heading { display:block; }.section-heading>p { margin-top:18px; }.gallery { grid-template-columns:minmax(0,1fr); }.gallery figure { display:grid; grid-template-columns:1fr 1fr; align-items:center; }.build-panel { padding:22px; gap:28px; }.keypad-panel { max-width:420px; width:100%; justify-self:center; }footer { flex-wrap:wrap; } }
@media(max-width:400px) { .demo-layout { padding-top:18px; }.device { padding:12px; }.screen { padding:16px; }.screen-price { font-size:32px; }.simulation-badge { font-size:8px; }.flow { grid-template-columns:1fr; }.gallery figure { display:block; }.button { width:100%; }.project-hero,.section { padding:18px; }.specs>div { padding:14px; }.specs strong { font-size:21px; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; }*,*::before,*::after { transition:none!important; animation:none!important; } }

/* Shared portfolio cursor appearance. */
#cursor {
  display: none;
  will-change: transform;
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .15s, height .15s, background .15s, opacity .2s;
  box-shadow: 0 0 14px var(--accent);
}

#cursor-ring {
  display: none;
  will-change: transform;
  position: fixed; top: 0; left: 0; z-index: 9998;
  width: 36px; height: 36px;
  border: 1px solid rgba(0, 212, 255, .35);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s, border-color .2s;
}

.cursor-active, .cursor-active * { cursor: none !important; }
.cursor-active #cursor, .cursor-active #cursor-ring { display: block; }
a, button { cursor: pointer; }

body.cursor-hover #cursor { width: 6px; height: 6px; background: #fff; }
body.cursor-hover #cursor-ring { width: 52px; height: 52px; border-color: rgba(0, 212, 255, .6); }
