*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --bg:#0f0e17;
  --bg-alt:#1a1925;
  --text:#e0dcdc;
  --text-dim:#8a8a9a;
  --accent:#e8533f;
  --accent-dim:#c44530;
  --border:#2a2838;
}
html{scroll-behavior:smooth}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;background:var(--bg);color:var(--text);line-height:1.6;overflow-x:hidden}
/* The starfield belongs to Discovery Islands only - every other page is the plain dark ground. */
body.page-islands{background:var(--bg) url('Assets/page_background.png') no-repeat center center fixed;background-size:cover}
body.page-islands::before{content:'';position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(15,14,23,.8);z-index:-1}

/* Nav */
nav{position:fixed;top:0;width:100%;background:rgba(15,14,23,.95);backdrop-filter:blur(8px);border-bottom:1px solid var(--border);z-index:100;padding:1rem 2rem;display:flex;justify-content:space-between;align-items:center}
.nav-logo{font-weight:700;font-size:1.2rem;color:var(--text);text-decoration:none}
.nav-links{display:flex;gap:2rem}
.nav-links a{color:var(--text-dim);text-decoration:none;font-size:.95rem;transition:color .2s}
.nav-links a:hover{color:var(--accent)}

/* Hero */
.hero{display:flex;align-items:center;justify-content:center;text-align:center;padding:6rem 2rem 0}
.hero-inner{max-width:700px}
.hero h1{font-size:3rem;font-weight:800;margin-bottom:1rem;letter-spacing:-.03em}
.hero h1 span{color:var(--accent)}
.hero p{font-size:1.2rem;color:var(--text-dim)}

/* Sections */
section{padding:2.68rem 2rem;max-width:960px;margin:0 auto}
.section-label{color:var(--accent);font-size:.85rem;font-weight:600;text-transform:uppercase;letter-spacing:.1em;margin-bottom:.5rem}
h2{font-size:2rem;font-weight:700;margin-bottom:2rem;letter-spacing:-.02em}

/* Discovery Islands */
.di-status{display:inline-block;background:var(--accent);color:var(--bg);font-size:.8rem;font-weight:600;padding:.3rem .8rem;border-radius:4px;margin-bottom:1.5rem}
.di-title{display:flex;align-items:baseline;gap:.5rem;margin-bottom:.5rem}
.di-title h3{font-size:1.8rem;font-weight:700}
.di-title span{font-size:1rem;color:var(--text-dim)}
.di-tagline{color:var(--text-dim);font-size:1.1rem;margin-bottom:1.5rem}
.di-description{margin-bottom:2rem;font-size:1.05rem}
.di-description p{margin-bottom:1rem}
.di-features{list-style:none;margin-bottom:2rem}
.di-features li{padding:.4rem 0;font-size:1rem}
.di-features li::before{content:"→ ";color:var(--accent)}
.di-platforms{display:flex;gap:1rem;margin-bottom:2rem}
.platform-badge{background:var(--bg-alt);border:1px solid var(--border);padding:.4rem 1rem;border-radius:4px;font-size:.85rem;font-weight:500}
.di-cta{display:flex;gap:1rem;flex-wrap:wrap;margin-bottom:3rem}
.di-cta a{display:inline-block;padding:.7rem 1.5rem;border-radius:6px;font-weight:600;text-decoration:none;font-size:.95rem;transition:all .2s}
.btn-steam{background:var(--accent);color:var(--bg)}
.btn-steam:hover{background:var(--accent-dim)}
.btn-outline{border:1px solid var(--border);color:var(--text)}
.btn-outline:hover{border-color:var(--accent);color:var(--accent)}
/* The pitch deck borrows the hire page's cyan so it is not a second grey button next to
   the Steam one. */
.btn-deck{background:linear-gradient(135deg,#22d3ee,#0891b2);color:#062029;box-shadow:0 0 0 1px rgba(34,211,238,.45),0 6px 18px rgba(34,211,238,.22)}
.btn-deck:hover{background:linear-gradient(135deg,#31dcf5,#0a9dbd);transform:translateY(-2px);box-shadow:0 0 0 1px rgba(34,211,238,.8),0 10px 24px rgba(34,211,238,.35)}

/* Trailer */
.trailer{margin-bottom:3rem;aspect-ratio:16/9;width:100%;border-radius:8px;overflow:hidden;border:1px solid var(--border)}
.trailer iframe{width:100%;height:100%;border:none}

/* Screenshots */
.screenshots{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:3rem}
.screenshots img,.screenshots video{width:100%;height:auto;border-radius:6px;border:1px solid var(--border);display:block}
.screenshot-full{grid-column:1/-1}
.screenshots.thumbs{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:.6rem}
.screenshots.thumbs img{border-radius:4px}
.di-logo{width:100%;max-width:600px;margin:0 auto 2rem;display:block;border-radius:8px}

/* GIFs */
.gifs{display:flex;gap:1rem;margin-bottom:3rem;flex-wrap:wrap}
.gifs img{flex:1;min-width:200px;max-width:33%;border-radius:6px;border:1px solid var(--border);height:auto}

/* Hire */
.hire{background:var(--bg-alt);border-radius:12px;padding:3rem;margin:3rem 0}
.hire h3{font-size:1.5rem;margin-bottom:1rem}
.hire p{color:var(--text-dim);margin-bottom:1.5rem}
.hire-services{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem;margin-bottom:2rem}
.hire-card{padding:1.5rem;background:var(--bg);border-radius:8px;border:1px solid var(--border)}
.hire-card h4{font-size:1.1rem;margin-bottom:.5rem}
.hire-card p{font-size:.95rem;color:var(--text-dim);margin:0}

/* Contact */
.contact{text-align:center;padding:2.68rem 2rem}
.contact h2{margin-bottom:1rem}
.contact p{color:var(--text-dim);margin-bottom:1.5rem;font-size:1.1rem}
.contact > a{color:var(--accent);font-size:1.3rem;font-weight:600;text-decoration:none}
.contact > a:hover{text-decoration:underline}

/* Footer */
footer{border-top:1px solid var(--border);padding:2rem;text-align:center;color:var(--text-dim);font-size:.85rem}
footer a{color:var(--text-dim);text-decoration:none;margin:0 .5rem}
footer a:hover{color:var(--accent)}

/* Mobile */
@media(max-width:640px){
  .nav-links{gap:1rem}
  .nav-links a{font-size:.85rem}
  .hero h1{font-size:2rem}
  .hero p{font-size:1rem}
  .screenshots{grid-template-columns:1fr}
  .gifs img{max-width:100%}
  .hire{padding:1.5rem}
  section{padding:2rem 1rem}
}

/* Impressum */
.impressum{padding:6rem 2rem 4rem;min-height:100vh}
.impressum .container{max-width:600px;margin:0 auto}
.impressum h1{font-size:1.8rem;font-weight:700;margin-bottom:2rem}
.impressum h2{font-size:1.1rem;font-weight:600;margin-top:2rem;margin-bottom:.5rem;color:var(--accent)}
.impressum p{margin-bottom:.5rem;color:var(--text-dim)}
.impressum a{color:var(--accent);text-decoration:none}
.impressum a:hover{text-decoration:underline}
.impressum .back{display:inline-block;margin-bottom:2rem;font-size:.9rem;color:var(--text-dim)}
.impressum .back:hover{color:var(--accent)}

/* Pitch deck page */
.top{max-width:960px;margin:0 auto;padding:6rem 2rem 0}
.deck-cover{background:var(--bg-alt);border:1px solid var(--border);border-radius:16px;padding:3.5rem 2rem;text-align:center}
.deck-cover h1{font-size:clamp(1.8rem,5vw,2.8rem);font-weight:800;letter-spacing:-.02em;text-transform:uppercase;color:#fff}
.deck-cover .deck-sub{color:var(--accent);font-size:clamp(1.1rem,3vw,1.5rem);font-weight:700;margin-top:.5rem}
.deck-cover .deck-brand{color:var(--text-dim);font-size:.8rem;margin-top:1.8rem;letter-spacing:.1em;text-transform:uppercase}
.facts{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:1.5rem}
.fact{background:var(--bg-alt);border:1px solid var(--border);border-radius:8px;padding:1rem 1.2rem}
.fact dt{color:var(--accent);font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.08em}
.fact dd{margin-top:.35rem;font-size:.95rem;font-weight:600}
.split{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:stretch}
.stack{display:grid;gap:1rem}
.stack img{width:100%;height:auto;border-radius:8px;border:1px solid var(--border);display:block}
.stack-fill{grid-template-rows:repeat(3,1fr)}
.stack-fill img{height:100%;object-fit:contain;border:0}
.split .di-cta{margin-bottom:0}
.split-media{position:relative}
.split-media .stack-fill{position:absolute;inset:0}
.callout{border-left:3px solid var(--accent);padding-left:1.2rem;font-size:1.15rem;font-weight:600;margin-bottom:2rem}
.compare{width:100%;border-collapse:collapse;font-size:.95rem;background:var(--bg-alt);border:1px solid var(--border);border-radius:8px;overflow:hidden}
.compare th{color:var(--accent);text-align:left;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.08em;padding:1rem 1.2rem;border-bottom:1px solid var(--border)}
.compare td{padding:.85rem 1.2rem;border-bottom:1px solid var(--border);color:var(--text-dim)}
.compare td:first-child{color:var(--text);font-weight:600}
.compare tr:last-child td{border-bottom:none}
.compare-title a{display:inline-block}
.compare-title img{display:block;width:187px;max-width:100%;height:auto;border-radius:4px;border:1px solid var(--border);transition:border-color .2s}
.compare-title a:hover img{border-color:var(--accent)}
.timeline{list-style:none;margin-bottom:2rem}
.timeline li{display:flex;gap:2rem;padding:.9rem 0;border-bottom:1px solid var(--border)}
.timeline li:last-child{border-bottom:none}
.timeline .when{color:var(--accent);font-weight:600;flex:0 0 11rem}
.hire-card .di-features{margin-bottom:0}
.hire-card .di-features li{font-size:.95rem;color:var(--text-dim);padding:.35rem 0}

@media(max-width:800px){
  .split{grid-template-columns:1fr;gap:2rem}
  .stack-fill{grid-template-rows:auto}
  .stack-fill img{height:auto}
  .split-media .stack-fill{position:static}
  .facts{grid-template-columns:repeat(2,1fr)}
  .deck-cover{padding:2.5rem 1.2rem}
  .compare{font-size:.8rem}
  .compare th,.compare td{padding:.6rem .6rem}
  .compare-title img{width:121px}
  .timeline li{flex-direction:column;gap:.3rem}
  .timeline .when{flex:none}
}

@media(max-width:520px){
  .facts{grid-template-columns:1fr}
}

/* Hire page - cyan accent on a solid dark background, its own palette */
body.page-hire{
  --bg:#0a1017;
  --bg-alt:#0f1a24;
  --border:#1d2b38;
  --text:#dce6ee;
  --text-dim:#8ea3b2;
  --accent:#22d3ee;
  --accent-dim:#0fa8c4;
  background:#0a1017;
}
body.page-hire::before{display:none}
body.page-hire nav{background:rgba(10,16,23,.95)}

.hire-hero{padding:7rem 2rem 0;text-align:center}
.hire-hero .section-label{margin-bottom:1rem}
.hire-hero h1{font-size:clamp(2rem,5vw,3rem);font-weight:800;letter-spacing:-.03em;margin:0 auto 1rem;max-width:900px}
.hire-hero .lead{color:var(--text-dim);font-size:1.15rem;max-width:720px;margin:0 auto 2rem}
.cta-center{justify-content:center}

.svc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.25rem}
.svc-grid.cols-2{grid-template-columns:repeat(2,1fr)}
.svc-card{background:var(--bg-alt);border:1px solid var(--border);border-radius:10px;padding:1.5rem}
.svc-card h4{font-size:1.1rem;margin-bottom:.5rem}
.svc-card p{font-size:.95rem;color:var(--text-dim);margin:0}

.work-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.25rem}
.work{background:var(--bg-alt);border:1px solid var(--border);border-left:3px solid var(--accent);border-radius:10px;padding:1.6rem}
.work h4{font-size:1.2rem;margin-bottom:.3rem}
.work .meta{color:var(--text-dim);font-size:.8rem;text-transform:uppercase;letter-spacing:.08em;margin-bottom:.7rem}
.work p{color:var(--text-dim);font-size:.97rem;margin:0}
.work a{color:var(--accent);text-decoration:none}
.work a:hover{text-decoration:underline}

.agent-shot{margin-top:2rem;border-radius:10px;border:1px solid var(--border);overflow:hidden;background:var(--bg-alt)}
.agent-shot img{display:block;width:100%;height:auto}
.agent-shot a{display:block;cursor:zoom-in}

.note{color:var(--text-dim);font-size:.95rem}
.ai-act li strong{color:var(--text)}
#ai-act .note{max-width:760px}

@media(max-width:640px){
  .hire-hero{padding:6rem 1rem 0}
  .hire-hero h1{font-size:1.9rem}
  .work-grid{grid-template-columns:1fr}
  .svc-grid.cols-2{grid-template-columns:1fr}
  .work{padding:1.2rem}
}

/* Sub-page hero (Work, Projects, About) */
.sub-hero{padding:7rem 2rem 0;max-width:960px;margin:0 auto}
.sub-hero h1{font-size:clamp(2rem,5vw,2.8rem);font-weight:800;letter-spacing:-.03em;margin-bottom:.8rem}
.sub-hero .lead{color:var(--text-dim);font-size:1.1rem;max-width:760px}
.back{display:inline-block;margin-bottom:1.5rem;font-size:.9rem;color:var(--text-dim);text-decoration:none}
.back:hover{color:var(--accent)}

/* On-this-page links (hire page) */
.page-nav{display:flex;justify-content:center;flex-wrap:wrap;gap:1.4rem;max-width:960px;margin:2rem auto 0;padding:0 2rem;font-size:.9rem}
.page-nav a{color:var(--text-dim);text-decoration:none;transition:color .2s}
.page-nav a:hover{color:var(--accent)}

/* Project cards */
.pcard-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.25rem;margin-bottom:2rem}
.pcard{display:block;background:var(--bg-alt);border:1px solid var(--border);border-radius:10px;overflow:hidden;text-decoration:none;transition:border-color .2s,transform .2s}
.pcard:hover{border-color:var(--accent);transform:translateY(-2px)}
.pcard img,.pcard video{width:100%;aspect-ratio:16/10;object-fit:contain;background:var(--bg);display:block}
.pcard-body{padding:1rem 1.2rem 1.3rem}
.pcard h4{font-size:1.05rem;margin-bottom:.3rem}
.pcard .meta{color:var(--text-dim);font-size:.8rem;text-transform:uppercase;letter-spacing:.08em}
.pcard p{color:var(--text-dim);font-size:.92rem;margin-top:.5rem}

/* Detail table (Platform / Engine / Role / ...) */
.details-table{width:100%;border-collapse:collapse;margin:0 0 2rem;background:var(--bg-alt);border:1px solid var(--border);border-radius:8px;overflow:hidden}
.details-table th{color:var(--accent);text-align:left;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.08em;padding:1rem 1.2rem;border-bottom:1px solid var(--border)}
.details-table td{padding:.85rem 1.2rem;border-bottom:1px solid var(--border);color:var(--text-dim)}
.details-table tr:last-child td{border-bottom:none}
@media(max-width:640px){.details-table{font-size:.85rem}.details-table th,.details-table td{padding:.6rem .7rem}}

/* Inline video */
.video-embed{width:100%;border-radius:8px;border:1px solid var(--border);display:block;margin-bottom:1rem}

/* Body copy */
.prose p{margin-bottom:1rem}
.prose p:last-child{margin-bottom:0}

/* Six nav entries do not fit one row below 640px: the nav wraps to a logo row and two
   link rows, and the heroes get the extra top padding that costs. */
@media(max-width:640px){
  nav{flex-wrap:wrap;justify-content:center;gap:.45rem 1rem;padding:.85rem 1rem}
  .nav-logo{font-size:1.05rem}
  .nav-links{width:100%;flex-wrap:wrap;justify-content:center;gap:.5rem 1rem}
  .nav-links a{font-size:.8rem}
  .hero{padding-top:9rem}
  .sub-hero{padding-top:10rem}
  .hire-hero{padding-top:9.5rem}
}

/* Links. This stylesheet styles every anchor by context and has no reset, so a bare <a> was
   rendering browser-blue - visible the moment a card wrapped its content in one. */
a{color:inherit;text-decoration:none}
.prose a,.note a{color:var(--accent)}
.prose a:hover,.note a:hover{text-decoration:underline}

/* p5 sketches. The sketch itself parents its canvas to #sketch-holder, and its controls are
   handed the same container, so this is the one place that decides where a canvas sits. */
#sketch-holder{display:flex;flex-direction:column;align-items:center;gap:.75rem;margin:1.5rem 0}
#sketch-holder canvas{display:block;max-width:100%;height:auto;border-radius:8px;border:1px solid var(--border)}
.sketch-controls{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:1rem;margin-top:.5rem}
.sketch-controls label{display:flex;align-items:center;gap:.5rem;color:var(--text-dim);font-size:.9rem}
.sketch-controls select,.sketch-controls input[type=button],.sketch-controls input[type=range]{background:var(--bg-alt);color:var(--text);border:1px solid var(--border);border-radius:6px;padding:.5rem .9rem;font-family:inherit;font-size:.9rem}
.sketch-controls select:hover,.sketch-controls input[type=button]:hover{border-color:var(--accent);color:var(--accent)}
.sketch-controls input[type=button]{cursor:pointer}
.sketch-controls input[type=range]{padding:.2rem .3rem;accent-color:var(--accent)}
/* A sketch parents its own slider into #sketch-holder, so that one needs its own sizing
   rather than the .sketch-controls one above. */
#sketch-holder input[type=range]{width:min(420px,80%);height:26px;margin-top:.4rem;accent-color:var(--accent)}
.sketch-hint{margin-top:.6rem;text-align:center;color:var(--text-dim);font-size:.9rem}

/* The nav entry for the page you are on. */
.nav-links a[aria-current=page]{color:var(--accent)}

/* Unity WebGL player. Unity's own template stylesheet absolutely centres the canvas on the
   document and hides its loading bar, so the player is laid out here instead. */
.unity-wrap{display:flex;flex-direction:column;align-items:center;margin:1.5rem 0}
#unity-container{position:relative;display:flex;flex-direction:column;align-items:center;width:100%}
/* Unity's loader sets an inline width and height on desktop; height:auto is what stops a
   capped width from squashing the canvas out of its aspect ratio. */
#unity-canvas{background:#231F20;max-width:100%;height:auto !important;border-radius:8px;border:1px solid var(--border)}
#unity-loading-bar{display:none;margin:.5rem 0 0;text-align:center}
#unity-progress-bar-empty{width:220px;height:10px;margin:.6rem auto 0;background:var(--bg-alt);border:1px solid var(--border);border-radius:5px;overflow:hidden}
#unity-progress-bar-full{width:0;height:100%;background:var(--accent)}
#unity-logo,#unity-webgl-logo{display:none}
.unity-loading-label{color:var(--text-dim);font-size:.9rem}
#unity-footer{display:flex;align-items:center;justify-content:flex-end;gap:.75rem;width:100%;margin-top:.7rem}
#unity-build-title{color:var(--text-dim);font-size:.85rem}
#unity-fullscreen-button{position:relative;width:28px;height:28px;border:1px solid var(--border);border-radius:6px;cursor:pointer;transition:border-color .2s}
#unity-fullscreen-button::after{content:'\26F6';position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--text-dim);font-size:15px}
#unity-fullscreen-button:hover{border-color:var(--accent)}
#unity-fullscreen-button:hover::after{color:var(--accent)}
#unity-warning{position:static;display:none;margin-top:1rem;padding:.8rem 1rem;background:var(--bg-alt);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:.9rem}