:root{
  --bg:#0a0b0d;
  --bg-2:#101216;
  --surface:#15181e;
  --surface-2:#1b1f27;
  --border:#262b34;
  --border-2:#333a45;
  --text:#eceef2;
  --muted:#9aa1ac;
  --muted-2:#6b7280;
  --accent:#ff6a1a;
  --accent-soft:#ff8a4a;
  --cyan:#22c3ff;
  --radius:14px;
  --maxw:1180px;
  --mono:"Chakra Petch",ui-monospace,"Cascadia Mono",Consolas,monospace;
  --sans:"Inter",system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;background:var(--bg);color:var(--text);
  font-family:var(--sans);line-height:1.6;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
h1,h2,h3,h4{font-family:var(--mono);font-weight:600;line-height:1.1;margin:0;letter-spacing:.01em}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 22px}
.accent{color:var(--accent)}
.mono{font-family:var(--mono)}

/* digital camo texture used behind sections */
.camo{
  background-image:
    linear-gradient(135deg,#ffffff08 25%,transparent 25%),
    linear-gradient(225deg,#ffffff08 25%,transparent 25%),
    linear-gradient(45deg,#ffffff05 25%,transparent 25%),
    linear-gradient(315deg,#ffffff05 25%,transparent 25%);
  background-size:22px 22px;background-position:0 0,11px 0,11px -11px,0 11px;
}

/* ---------- NAV ---------- */
header.nav{
  position:sticky;top:0;z-index:50;
  background:rgba(10,11,13,.72);backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border);
  transition:background .3s;
}
.nav-inner{display:flex;align-items:center;gap:18px;height:66px}
.brand{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.brand img{height:34px;width:auto;filter:drop-shadow(0 0 8px #0008)}
.nav-links{display:flex;gap:26px;margin-left:auto;align-items:center}
.nav-links a.link{
  font-family:var(--mono);font-size:.82rem;text-transform:uppercase;
  letter-spacing:.14em;color:var(--muted);padding:6px 0;position:relative;
  transition:color .2s;
}
.nav-links a.link:hover{color:var(--text)}
.nav-links a.link.active{color:var(--accent)}
.nav-links a.link::after{
  content:"";position:absolute;left:0;bottom:-2px;height:2px;width:0;
  background:var(--accent);transition:width .25s;
}
.nav-links a.link:hover::after,.nav-links a.link.active::after{width:100%}
.nav-social{display:flex;gap:14px;align-items:center;padding-left:22px;border-left:1px solid var(--border)}
.nav-social a{color:var(--muted);transition:color .2s,transform .2s;display:flex}
.nav-social a:hover{color:var(--accent);transform:translateY(-2px)}
.nav-social svg{width:18px;height:18px;fill:currentColor}
.burger{display:none;margin-left:auto;background:none;border:1px solid var(--border);
  color:var(--text);border-radius:8px;padding:8px 10px;cursor:pointer}
.burger svg{width:20px;height:20px;fill:currentColor;display:block}

/* ---------- HERO ---------- */
.hero{position:relative;min-height:92vh;display:flex;align-items:flex-end;overflow:hidden}
.hero-bg{position:absolute;inset:0;z-index:0}
.hero-bg img{width:100%;height:100%;object-fit:cover;object-position:center 40%}
.hero-bg::after{
  content:"";position:absolute;inset:0;
  background:
    linear-gradient(180deg,rgba(10,11,13,.55) 0%,rgba(10,11,13,.15) 35%,rgba(10,11,13,.75) 78%,var(--bg) 100%),
    radial-gradient(120% 80% at 80% 20%,transparent 40%,rgba(10,11,13,.6) 100%);
}
.hero-inner{position:relative;z-index:2;width:100%;padding:0 0 62px}
.eyebrow{
  display:inline-flex;align-items:center;gap:9px;font-family:var(--mono);
  font-size:.78rem;letter-spacing:.22em;text-transform:uppercase;color:var(--accent-soft);
  border:1px solid #ff6a1a55;background:#ff6a1a12;padding:6px 12px;border-radius:100px;margin-bottom:20px;
}
.eyebrow .dot{width:7px;height:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 10px var(--accent)}
.hero h1{
  font-size:clamp(2.6rem,7vw,5.6rem);font-weight:700;letter-spacing:.02em;
  text-shadow:0 4px 40px rgba(0,0,0,.6);margin-bottom:14px;
}
.hero h1 .sub{display:block;font-size:clamp(1rem,2.4vw,1.7rem);color:var(--muted);font-weight:500;margin-top:10px;letter-spacing:.05em}
.stat-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}
.stat{
  background:rgba(21,24,30,.72);backdrop-filter:blur(6px);
  border:1px solid var(--border-2);border-radius:12px;padding:12px 18px;min-width:120px;
}
.stat .n{font-family:var(--mono);font-size:1.5rem;font-weight:700;color:#fff;line-height:1}
.stat .n small{color:var(--accent);font-size:1rem}
.stat .l{font-size:.72rem;text-transform:uppercase;letter-spacing:.14em;color:var(--muted);margin-top:6px}
.cta-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}
.cta{display:inline-flex;align-items:center;gap:10px;padding:13px 22px;border-radius:12px;
  font-family:var(--mono);font-weight:600;letter-spacing:.02em;font-size:.95rem;color:#fff;
  box-shadow:0 6px 20px rgba(0,0,0,.35);transition:transform .2s,filter .2s,box-shadow .2s}
.cta svg{width:20px;height:20px;fill:currentColor}
.cta:hover{transform:translateY(-3px);filter:brightness(1.08);box-shadow:0 12px 28px rgba(0,0,0,.45)}
.cta-ig{background:linear-gradient(135deg,#feda75,#fa7e1e 24%,#d62976 54%,#962fbf 78%,#4f5bd5)}
.cta-fb{background:#1877f2}
.scroll-cue{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);z-index:2;color:var(--muted-2);animation:bob 2s infinite}
.scroll-cue svg{width:22px;height:22px;fill:currentColor}
@keyframes bob{0%,100%{transform:translate(-50%,0)}50%{transform:translate(-50%,8px)}}

/* ---------- SECTIONS ---------- */
section.block{padding:78px 0;position:relative}
.sec-head{margin-bottom:38px}
.sec-kicker{font-family:var(--mono);font-size:.8rem;letter-spacing:.24em;text-transform:uppercase;color:var(--accent);display:block;margin-bottom:10px}
.sec-title{font-size:clamp(1.8rem,4vw,2.7rem);font-weight:700}
.sec-sub{color:var(--muted);max-width:640px;margin-top:12px}

/* press */
.press-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.press-card{
  display:flex;flex-direction:column;justify-content:space-between;gap:18px;
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);
  padding:26px 24px;transition:transform .25s,border-color .25s,background .25s;min-height:190px;
}
.press-card:hover{transform:translateY(-4px);border-color:var(--accent);background:var(--surface-2)}
.press-src{font-family:var(--mono);font-size:.74rem;letter-spacing:.18em;text-transform:uppercase;color:var(--accent-soft)}
.press-card h3{font-size:1.18rem;line-height:1.25;font-family:var(--sans);font-weight:600}
.press-more{font-family:var(--mono);font-size:.8rem;letter-spacing:.1em;color:var(--muted);display:inline-flex;align-items:center;gap:7px}
.press-card:hover .press-more{color:var(--accent)}
.press-more svg{width:14px;height:14px;fill:currentColor}

/* build switcher (links between the three build pages) */
.tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:34px}
.tab{
  font-family:var(--mono);letter-spacing:.06em;cursor:pointer;
  background:var(--surface);border:1px solid var(--border);color:var(--muted);
  border-radius:100px;padding:11px 20px;display:flex;flex-direction:column;gap:2px;
  transition:all .2s;text-align:left;
}
.tab .tv{font-size:.7rem;letter-spacing:.16em;text-transform:uppercase;color:var(--muted-2)}
.tab .tn{font-size:.98rem;font-weight:600;color:var(--text)}
.tab:hover{border-color:var(--border-2);transform:translateY(-2px)}
.tab.active{background:linear-gradient(180deg,#ff6a1a,#e8560c);border-color:transparent;color:#fff}
.tab.active .tv,.tab.active .tn{color:#fff}
.tab.active:hover{transform:none}

/* spec cards */
.spec-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:18px}
.spec-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:24px;transition:border-color .2s}
.spec-card:hover{border-color:var(--border-2)}
.spec-card .sc-head{display:flex;align-items:center;gap:12px;margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid var(--border)}
.sc-ico{width:38px;height:38px;flex:0 0 auto;border-radius:10px;background:#ff6a1a15;border:1px solid #ff6a1a33;display:grid;place-items:center;color:var(--accent)}
.sc-ico svg{width:20px;height:20px;fill:currentColor}
.spec-card h4{font-size:1.05rem;letter-spacing:.02em}
.spec-card ul{list-style:none;margin:0;padding:0}
.spec-card li{font-size:.92rem;padding:5px 0 5px 18px;position:relative;color:var(--text)}
.spec-card li::before{content:"";position:absolute;left:0;top:.85em;width:6px;height:6px;background:var(--accent);transform:rotate(45deg)}
.spec-card li a{color:var(--cyan);border-bottom:1px dotted #22c3ff66;transition:color .15s}
.spec-card li a:hover{color:#7ddcff}
.spec-card.wide{grid-column:1/-1}
.times-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
.time-item{background:var(--bg-2);border:1px solid var(--border);border-left:3px solid var(--accent);border-radius:10px;padding:14px 16px}
.time-item .t{font-family:var(--mono);font-size:1.4rem;font-weight:700;color:#fff}
.time-item .m{font-size:.82rem;color:var(--muted);margin-top:4px}

/* gallery */
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px;grid-auto-rows:170px;grid-auto-flow:dense}
.gallery a{overflow:hidden;border-radius:12px;border:1px solid var(--border);position:relative;cursor:pointer}
.gallery a img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.gallery a:hover img{transform:scale(1.07)}
.gallery a::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#0009,transparent 55%);opacity:0;transition:opacity .3s}
.gallery a:hover::after{opacity:1}
/* first photo is the feature tile; a lone photo spans the full row */
.gallery a:first-child{grid-column:span 2;grid-row:span 2}
.gallery a:only-child{grid-column:1/-1;grid-row:span 2}

/* lightbox */
.lb{position:fixed;inset:0;z-index:100;background:rgba(6,7,9,.94);display:none;align-items:center;justify-content:center;padding:24px}
.lb.open{display:flex}
.lb img{max-width:94vw;max-height:88vh;border-radius:10px;box-shadow:0 20px 80px #000}
.lb-close{position:absolute;top:20px;right:26px;color:#fff;background:none;border:none;font-size:2rem;cursor:pointer;line-height:1;font-family:var(--mono)}
.lb-nav{position:absolute;top:50%;transform:translateY(-50%);background:rgba(255,255,255,.08);border:1px solid #ffffff22;color:#fff;width:48px;height:48px;border-radius:50%;font-size:1.4rem;cursor:pointer;display:grid;place-items:center}
.lb-nav.prev{left:20px}.lb-nav.next{right:20px}
.lb-nav:hover{background:var(--accent);border-color:var(--accent)}

/* footer */
footer.site{border-top:1px solid var(--border);background:var(--bg-2);padding:56px 0 34px}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:36px;margin-bottom:38px}
.foot-brand img{height:40px;margin-bottom:16px}
.foot-brand p{color:var(--muted);max-width:340px;font-size:.95rem}
.foot-col h5{font-family:var(--mono);font-size:.78rem;letter-spacing:.18em;text-transform:uppercase;color:var(--muted-2);margin-bottom:14px}
.foot-col a{display:flex;align-items:center;gap:9px;color:var(--muted);padding:5px 0;font-size:.94rem;transition:color .18s}
.foot-col a:hover{color:var(--accent)}
.foot-col a svg{width:15px;height:15px;fill:currentColor;flex:0 0 auto}
.foot-bottom{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-top:24px;border-top:1px solid var(--border);flex-wrap:wrap}
.foot-bottom .cc{color:var(--muted-2);font-size:.85rem;font-family:var(--mono);letter-spacing:.05em}
.foot-bottom .cc a,.hub-foot a{color:inherit;transition:color .18s}
.foot-bottom .cc a:hover,.hub-foot a:hover{color:var(--accent)}
.foot-social{display:flex;gap:16px}
.foot-social a{color:var(--muted);transition:color .2s,transform .2s}
.foot-social a:hover{color:var(--accent);transform:translateY(-2px)}
.foot-social svg{width:20px;height:20px;fill:currentColor}
.dev-tag{font-family:var(--mono);font-size:.7rem;letter-spacing:.14em;color:var(--accent);border:1px solid #ff6a1a44;background:#ff6a1a10;padding:3px 9px;border-radius:6px}

.to-top{position:fixed;right:22px;bottom:22px;z-index:40;width:46px;height:46px;border-radius:12px;
  background:var(--accent);color:#fff;border:none;display:none;place-items:center;cursor:pointer;
  box-shadow:0 8px 24px #ff6a1a44;transition:transform .2s}
.to-top:hover{transform:translateY(-3px)}
.to-top.show{display:grid}
.to-top svg{width:22px;height:22px;fill:currentColor}

/* responsive */
@media(max-width:900px){
  .press-grid{grid-template-columns:1fr}
  .foot-grid{grid-template-columns:1fr;gap:28px}
  .gallery{grid-template-columns:repeat(2,1fr);grid-auto-rows:150px}
  .gallery a:first-child{grid-column:span 2;grid-row:span 1}
}
@media(max-width:720px){
  .nav-links{display:none}
  .nav-links.open{
    display:flex;flex-direction:column;position:absolute;top:66px;left:0;right:0;
    background:var(--bg-2);border-bottom:1px solid var(--border);padding:16px 22px;gap:14px;align-items:flex-start;
  }
  .nav-links.open .nav-social{border-left:none;padding-left:0;padding-top:6px}
  .burger{display:block}
  section.block{padding:56px 0}
  .hero{min-height:82vh}
}

/* Wide banners over-crop when the viewport is portrait (tall relative to
   width) — the full-bleed cover zooms into a narrow central slice. This
   triggers on portrait/narrow viewports regardless of device pixel ratio
   (a phone's ~412 CSS-px width can still be a 1080-px screen), so it also
   catches "Desktop site" mode. Landscape keeps the full-bleed hero. */
@media (max-aspect-ratio: 1/1), (max-width: 720px){
  .hero{min-height:auto;display:block}
  .hero-bg{position:relative;inset:auto;aspect-ratio:16/9}
  .hero-bg img{object-position:center}
  .hero-bg::after{background:linear-gradient(180deg,transparent 58%,var(--bg))}
  .hero-inner{position:static;padding:24px 0 4px}
  .scroll-cue{display:none}
}

/* ============ hub page (projects.html) ============ */
/* `safe center` so the taller two-section hub can't overflow past the top of
   the scroll box; browsers without it fall back to the plain centring above */
.hub{min-height:100vh;display:flex;flex-direction:column;justify-content:center;justify-content:safe center;padding:72px 0}
.hub-head{text-align:center;margin-bottom:44px}
.hub-head img{width:190px;margin:0 auto 20px}
.hub-head h1{font-size:clamp(2rem,5vw,2.8rem)}
.hub-head p{color:var(--muted);margin:14px auto 0;max-width:54ch}
/* section rule dividing the pages from the tools that live inside them */
.hub-sec{
  display:flex;align-items:center;gap:16px;margin:0 0 20px;
  font-family:var(--mono);font-size:.8rem;font-weight:500;letter-spacing:.24em;text-transform:uppercase;color:var(--accent);
}
.hub-sec::after{content:"";flex:1;height:1px;background:var(--border)}
.hub-sec:not(:first-of-type){margin-top:52px}
/* explicit steps so four tiles never land as an unbalanced 3 + 1 */
.hub-grid{display:grid;grid-template-columns:1fr;gap:18px}
@media(min-width:600px){.hub-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1040px){.hub-grid{grid-template-columns:repeat(4,1fr)}}

.hub-tile{
  --tile:var(--accent);
  display:flex;flex-direction:column;overflow:hidden;
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);
  transition:border-color .3s,transform .3s,box-shadow .3s;
}
.hub-tile:hover{
  border-color:color-mix(in srgb,var(--tile) 60%,transparent);
  transform:translateY(-4px);
  box-shadow:0 14px 34px -12px color-mix(in srgb,var(--tile) 45%,transparent);
}
/* brand-tinted art panel carrying each project's own motif */
.hub-art{
  position:relative;aspect-ratio:16/10;display:grid;place-items:center;
  background:
    radial-gradient(120% 100% at 50% 0%,color-mix(in srgb,var(--tile) 26%,transparent),transparent 70%),
    var(--bg-2);
  border-bottom:1px solid var(--border);
}
.hub-art::before{                       /* digital-camo texture, same motif as the site sections */
  content:"";position:absolute;inset:0;opacity:.5;
  background-image:
    linear-gradient(135deg,#ffffff08 25%,transparent 25%),
    linear-gradient(225deg,#ffffff08 25%,transparent 25%);
  background-size:18px 18px;
}
.hub-art svg{position:relative;width:56px;height:56px;color:var(--tile);transition:transform .3s}
.hub-tile:hover .hub-art svg{transform:scale(1.12)}
.hub-art::after{                        /* accent rule that fills across on hover */
  content:"";position:absolute;left:0;bottom:-1px;height:2px;width:0;
  background:var(--tile);transition:width .35s ease;
}
.hub-tile:hover .hub-art::after{width:100%}

.hub-body{display:flex;flex-direction:column;gap:7px;padding:20px;flex:1}
.hub-domain{font-family:var(--mono);font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--tile)}
.hub-tile h3{font-size:1.16rem}
.hub-tile p{margin:0;color:var(--muted);font-size:.9rem;line-height:1.55}
.hub-go{
  margin-top:auto;padding-top:14px;display:inline-flex;align-items:center;gap:7px;
  font-family:var(--mono);font-size:.76rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted-2);
  transition:color .25s;
}
.hub-tile:hover .hub-go{color:var(--tile)}
.hub-go svg{width:14px;height:14px;transition:transform .25s}
.hub-tile:hover .hub-go svg{transform:translateX(4px)}

/* tools are smaller things than the sites, so they get a denser tile —
   no art panel, icon beside the text, and one more column when there's room */
.tool-grid{display:grid;grid-template-columns:1fr;gap:14px}
@media(min-width:600px){.tool-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:900px){.tool-grid{grid-template-columns:repeat(3,1fr)}}
@media(min-width:1240px){.tool-grid{grid-template-columns:repeat(4,1fr)}}

.tool-tile{
  --tile:var(--accent);
  display:flex;gap:14px;padding:16px;
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);
  transition:border-color .3s,transform .3s,box-shadow .3s;
}
.tool-tile:hover{
  border-color:color-mix(in srgb,var(--tile) 60%,transparent);
  transform:translateY(-3px);
  box-shadow:0 12px 28px -14px color-mix(in srgb,var(--tile) 45%,transparent);
}
.tool-ico{
  flex:none;width:42px;height:42px;display:grid;place-items:center;border-radius:11px;
  background:color-mix(in srgb,var(--tile) 15%,var(--bg-2));
  border:1px solid color-mix(in srgb,var(--tile) 30%,transparent);
}
.tool-ico svg{width:22px;height:22px;color:var(--tile);transition:transform .3s}
.tool-tile:hover .tool-ico svg{transform:scale(1.12)}
.tool-body{min-width:0}
.tool-src{font-family:var(--mono);font-size:.68rem;letter-spacing:.1em;text-transform:uppercase;color:var(--tile)}
.tool-tile h3{
  display:flex;align-items:center;gap:7px;
  margin:4px 0 6px;font-size:1rem;line-height:1.3;
}
.tool-tile h3 svg{flex:none;width:13px;height:13px;color:var(--muted-2);transition:transform .25s,color .25s}
.tool-tile:hover h3 svg{color:var(--tile);transform:translateX(3px)}
.tool-tile p{margin:0;color:var(--muted);font-size:.85rem;line-height:1.5}

.hub-foot{margin-top:44px;text-align:center;color:var(--muted-2);font-size:.85rem}
@media(max-width:720px){
  .hub{padding:44px 0}
  .hub-head img{width:150px}
  .hub-art{aspect-ratio:16/7}
  .hub-sec:not(:first-of-type){margin-top:40px}
}
@media(prefers-reduced-motion:reduce){
  .hub-tile,.hub-art svg,.hub-art::after,.hub-go,.hub-go svg,
  .tool-tile,.tool-ico svg,.tool-tile h3 svg{transition:none}
  .hub-tile:hover,.tool-tile:hover{transform:none}
}
