/* ============================================================
   SETTINGS — change colors and fonts here, nowhere else
   ============================================================ */
:root{
  /* Fonts: system stacks only, so the site needs no internet */
  --font-display: 'Segoe UI','SF Pro Display',-apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,sans-serif;
  --font-body: -apple-system,BlinkMacSystemFont,'Segoe UI','Helvetica Neue',Arial,sans-serif;
  --font-mono: 'SF Mono','Cascadia Code','Consolas','Courier New',monospace;

  /* Base palette */
  --bg: #121316;
  --panel: #1A1C20;
  --panel-2: #16181B;
  --line: #2B2E33;
  --accent: #5B8CFF;
  --text: #ECEDEE;
  --muted: #8A8D93;

  /* Project status colors — one per status */
  --st-active: #E8A33D;   /* IN PROGRESS */
  --st-shipped: #4FBE7B;  /* SHIPPED     */
  --st-built: #3FB6C4;    /* BUILT       */
  --st-writeup: #5B8CFF;  /* WRITE-UP    */
  --st-comp: #B07CFF;     /* COMPETITION */
  --st-draft: #6E737B;    /* NEEDS COPY  */
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  line-height:1.6;
  overflow-x:hidden;
}
h1,h2,h3,.display{font-family:var(--font-display);}
.mono{font-family:var(--font-mono);}
a{color:inherit; text-decoration:none;}
.wrap{max-width:1080px; margin:0 auto; padding:0 32px;}

/* Bracket / viewfinder motif */
.brackets{position:relative;}
.brackets::before, .brackets::after{
  content:''; position:absolute; width:22px; height:22px;
  border-color:var(--accent); border-style:solid; opacity:.85;
}
.brackets::before{top:-1px; left:-1px; border-width:2px 0 0 2px;}
.brackets::after{bottom:-1px; right:-1px; border-width:0 2px 2px 0;}


/* Nav */
header{
  position:fixed; top:0; left:0; right:0; z-index:100;
  background:rgba(11,15,20,0.85); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
nav{display:flex; align-items:center; justify-content:space-between; padding:18px 32px; max-width:1080px; margin:0 auto;}
.logo{font-weight:700; letter-spacing:1px; font-size:15px;}
.logo span{color:var(--accent);}
.navlinks{display:flex; gap:28px; font-size:13px; letter-spacing:.5px;}
.navlinks a{color:var(--muted); transition:color .2s;}
.navlinks a:hover{color:var(--text);}

/* Hero */
.hero{
  min-height:100vh; display:flex; flex-direction:column; justify-content:center;
  position:relative; padding:140px 32px 100px;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(91,140,255,0.09), transparent),
    radial-gradient(ellipse 55% 45% at 85% 75%, rgba(91,140,255,0.06), transparent);
}
.hero-inner{max-width:1080px; margin:0 auto; width:100%;}
.coords{font-size:12px; color:var(--muted); letter-spacing:2px; margin-bottom:28px;}
.coords .dot{color:var(--accent);}
h1.headline{
  font-size:clamp(34px,5.2vw,64px); font-weight:700; line-height:1.08;
  max-width:760px; margin-bottom:26px;
}
h1.headline .accent{color:var(--accent);}
.sub{color:var(--muted); font-size:17px; max-width:560px; margin-bottom:40px;}
.cta-row{display:flex; gap:16px; flex-wrap:wrap;}
.btn{
  padding:13px 26px; font-size:14px; font-weight:500; border-radius:2px;
  border:1px solid var(--line); transition:all .2s; display:inline-block;
}
.btn-primary{background:var(--accent); color:#0A1020; border-color:var(--accent);}
.btn-primary:hover{background:#5DCAA5;}
.btn-ghost:hover{border-color:var(--accent); color:var(--accent);}

/* Section shell */
section{padding:100px 0;}
.eyebrow{
  font-family:var(--font-mono); font-size:12px; color:var(--accent);
  letter-spacing:2px; margin-bottom:14px;
}
h2.title{font-size:clamp(26px,3.4vw,38px); font-weight:700; margin-bottom:14px;}
.section-sub{color:var(--muted); max-width:560px; margin-bottom:56px; font-size:15px;}

/* Filter bar */
.filter-bar{display:flex; flex-wrap:wrap; gap:10px; margin-bottom:16px;}
.filter-btn{
  font-family:var(--font-mono); font-size:12px; letter-spacing:.5px;
  background:transparent; color:var(--muted);
  border:1px solid var(--line); padding:8px 16px; cursor:pointer;
  transition:all .18s;
}
.filter-btn:hover{color:var(--text); border-color:var(--muted);}
.filter-btn.is-active{color:var(--bg); background:var(--text); border-color:var(--text);}
.filter-btn:focus-visible{outline:2px solid var(--accent); outline-offset:2px;}
.filter-count{font-size:12px; color:var(--muted); margin-bottom:32px;}

.proj-card[hidden]{display:none;}
/* Pinned cards sort to the top; the label is added by JS-free CSS so it can't drift */
.proj-card[data-pin] .proj-year::before{content:'PINNED · '; color:var(--accent);}

/* Status color coding */
.st-active{--st:var(--st-active);}
.st-shipped{--st:var(--st-shipped);}
.st-built{--st:var(--st-built);}
.st-writeup{--st:var(--st-writeup);}
.st-comp{--st:var(--st-comp);}
.st-draft{--st:var(--st-draft);}
.proj-card.st-draft{border-style:dashed;}
.proj-head{display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; gap:12px;}
.proj-year{font-family:var(--font-mono); font-size:11px; color:var(--muted); white-space:nowrap;}
.proj-card .proj-status{color:var(--st); border-color:var(--st);}
.proj-card.brackets::before, .proj-card.brackets::after{border-color:var(--st); transition:opacity .2s;}
/* On hover the whole border lights up, so the corner brackets get out of the way */
.proj-card.brackets:hover::before, .proj-card.brackets:hover::after{opacity:0;}
.proj-card:hover{border-color:var(--st);}

/* Projects */
.proj-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:24px;}
.proj-card{
  background:var(--panel); border:1px solid var(--line); padding:28px;
  position:relative; transition:border-color .2s, transform .2s;
}
.proj-card:hover{transform:translateY(-3px);}
.proj-status{
  display:inline-block; font-family:var(--font-mono); font-size:11px;
  border:1px solid currentColor; padding:3px 8px;
  letter-spacing:1px;
}
.proj-card h3{font-size:19px; margin-bottom:10px; font-weight:500;}
.proj-card p{color:var(--muted); font-size:14px; margin-bottom:18px;}
.proj-stack{display:flex; flex-wrap:wrap; gap:8px; font-family:var(--font-mono); font-size:11px; color:var(--muted);}
.proj-stack span{border:1px solid var(--line); padding:3px 8px;}

/* Renders */
/* align-items:start so a tall tile doesn't stretch its neighbours */
.render-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px; align-items:start;}
.render-card{
  background:var(--panel); border:1px solid var(--line);
  transition:border-color .2s, transform .2s;
}
.render-card:hover{border-color:var(--accent); transform:translateY(-3px);}
/* Let a card span the full row — suits an ultrawide/cinematic clip */
.render-card.wide{grid-column:1 / -1;}
/* Tile shape. Default 16:10; override per card with style="--ar:9/16" so the
   tile matches the clip and nothing gets cropped away. */
.render-media{position:relative; aspect-ratio:var(--ar, 16/10); overflow:hidden; background:var(--panel-2);}
.render-media video{width:100%; height:100%; object-fit:cover; display:block;}
.render-frame{position:absolute; inset:10px; z-index:2; pointer-events:none;}
.render-frame::before, .render-frame::after{
  content:''; position:absolute; width:14px; height:14px;
  border-color:rgba(255,255,255,0.7); border-style:solid;
}
.render-frame::before{top:0; left:0; border-width:1.5px 0 0 1.5px;}
.render-frame::after{bottom:0; right:0; border-width:0 1.5px 1.5px 0;}
.play-hint{
  position:absolute; inset:0; z-index:3; display:flex; align-items:center; justify-content:center;
  pointer-events:none; transition:opacity .25s;
}
.play-hint span{
  width:44px; height:44px; border-radius:50%; border:1px solid rgba(255,255,255,0.5);
  background:rgba(0,0,0,0.35); color:#fff; font-size:13px;
  display:flex; align-items:center; justify-content:center; padding-left:3px;
}
.render-card.playing .play-hint{opacity:0;}
.render-meta{padding:16px 18px; border-top:1px solid var(--line);}
.render-meta h3{font-size:15px; font-weight:500; margin-bottom:6px;}
.render-specs{display:flex; gap:8px; font-family:var(--font-mono); font-size:11px; color:var(--muted);}
.render-specs span{border:1px solid var(--line); padding:2px 7px;}

/* Photography */
.gallery{display:grid; grid-template-columns:repeat(3,1fr); gap:16px;}
.shot{
  position:relative; aspect-ratio:9/16; overflow:hidden; cursor:pointer;
}
.shot .art{width:100%; height:100%; position:relative;}
.shot .frame{position:absolute; inset:10px; z-index:2; pointer-events:none;}
.shot .frame::before, .shot .frame::after{
  content:''; position:absolute; width:16px; height:16px; border-color:rgba(255, 255, 255, 0.85); border-style:solid;
}
.shot .frame::before{top:0; left:0; border-width:1.5px 0 0 1.5px;}
.shot .frame::after{bottom:0; right:0; border-width:0 1.5px 1.5px 0;}
.shot .exif{
  position:absolute; bottom:14px; left:14px; right:14px; z-index:3;
  font-family:var(--font-mono); font-size:11px; color:#ffffff;
  opacity:0; transform:translateY(6px); transition:all .25s;
}
.shot:hover .exif{opacity:1; transform:translateY(0);}
.shot:hover .art{transform:scale(1.04);}
.art{transition:transform .4s;}
.exif .loc{font-weight:500; margin-bottom:2px; letter-spacing:.5px;}
.exif .meta{color:rgba(255, 255, 255, 0.7);}

/* About */
.about-grid{display:grid; grid-template-columns:1fr 1.4fr; gap:56px; align-items:start;}
.about-card{
  background:var(--panel); border:1px solid var(--line); padding:24px;
}
.about-card .row{display:flex; justify-content:space-between; padding:10px 0; border-bottom:1px solid var(--line); font-size:13px;}
.about-card .row:last-child{border-bottom:none;}
.about-card .row .k{color:var(--muted); font-family:var(--font-mono);}
.about-body p{color:var(--muted); margin-bottom:18px; font-size:15px;}
.timeline{margin-top:0px;}
.tl-item{display:flex; gap:16px; margin-bottom:20px;}
.tl-item .yr{font-family:var(--font-mono); font-size:12px; color:var(--accent); min-width:70px; padding-top:2px;}
.tl-item .body strong{font-weight:500;}
.tl-item .body span{display:block; color:var(--muted); font-size:14px;}

/* Contact */
.contact-box{
  background:var(--panel); border:1px solid var(--line); padding:48px;
  text-align:center; position:relative;
}
.contact-box h2{margin-bottom:14px;}
.contact-box p{color:var(--muted); margin-bottom:28px;}
.contact-links{display:flex; justify-content:center; gap:20px; flex-wrap:wrap;}
.contact-links a{
  font-family:var(--font-mono); font-size:13px; color:var(--text);
  border:1px solid var(--line); padding:10px 20px; transition:all .2s;
}
.contact-links a:hover{border-color:var(--accent); color:var(--accent);}

footer{padding:32px; text-align:center; color:var(--muted); font-size:12px; border-top:1px solid var(--line);}


/* ============================================================
   PROJECT CARDS AS LINKS
   ============================================================ */
a.proj-card{display:block; color:inherit;}
.proj-more{
  font-size:11px; letter-spacing:1px; color:var(--muted);
  margin-top:16px; transition:color .2s;
}
.proj-card:hover .proj-more{color:var(--st);}
.proj-card:focus-visible{outline:2px solid var(--st, var(--accent)); outline-offset:3px;}

/* Delete a card's href and it stops being a link: the VIEW PROJECT line
   disappears and every hover cue switches off, so it can't look clickable. */
.proj-card:not([href]) .proj-more{display:none;}
.proj-card:not([href]):hover{transform:none; border-color:var(--line);}
.proj-card:not([href]).brackets:hover::before,
.proj-card:not([href]).brackets:hover::after{opacity:.85;}

/* ============================================================
   PROJECT DETAIL PAGES  (projects/*.html)
   ============================================================ */
.detail{padding:132px 0 90px;}
.backlink{
  display:inline-block; font-family:var(--font-mono); font-size:12px;
  color:var(--muted); letter-spacing:1px; margin-bottom:34px; transition:color .2s;
}
.backlink:hover{color:var(--accent);}
.detail-head{display:flex; align-items:center; gap:14px; margin-bottom:20px;}
.detail .proj-status{color:var(--st); border-color:var(--st);}
.detail-title{font-size:clamp(30px,4.4vw,48px); font-weight:700; line-height:1.1; margin-bottom:18px;}
.detail-lead{font-size:18px; max-width:680px; margin-bottom:26px;}
.detail .proj-stack{margin-bottom:56px;}

/* Image grid — first tile spans both columns */
.detail-gallery{display:grid; grid-template-columns:repeat(2,1fr); gap:20px; margin-bottom:60px;}
.detail-shot{position:relative; background:var(--panel-2); border:1px solid var(--line);}
.detail-shot:first-child{grid-column:1 / -1;}
.detail-shot .shot-media{position:relative; overflow:hidden;}
.detail-shot .art{display:block; width:100%; aspect-ratio:16/9; object-fit:cover;}
.detail-shot:not(:first-child) .art{aspect-ratio:4/3;}
/* <video class="art"> works in these tiles too. Add "fit" to letterbox a clip
   whose shape does not match the tile, instead of cropping it. */
.detail-shot .art.fit{object-fit:contain; background:#0d0e11;}
.detail-shot .frame{position:absolute; inset:10px; pointer-events:none;}
.detail-shot .frame::before, .detail-shot .frame::after{
  content:''; position:absolute; width:16px; height:16px;
  border-color:rgba(255,255,255,0.55); border-style:solid;
}
.detail-shot .frame::before{top:0; left:0; border-width:1.5px 0 0 1.5px;}
.detail-shot .frame::after{bottom:0; right:0; border-width:0 1.5px 1.5px 0;}
.detail-shot figcaption{
  font-family:var(--font-mono); font-size:11px; color:var(--muted);
  padding:11px 14px; border-top:1px solid var(--line);
}

.detail-body{max-width:680px;}
.detail-body h2{font-size:20px; font-weight:600; margin:38px 0 12px;}
.detail-body h2:first-child{margin-top:0;}
.detail-body p{color:var(--muted); font-size:15px; margin-bottom:18px;}
.detail-body ul{color:var(--muted); font-size:15px; margin:0 0 18px 20px;}
.detail-body li{margin-bottom:7px;}

/* Delete this block once the page is written */
.draft-note{
  border:1px dashed var(--line); border-left:2px solid var(--st-draft);
  padding:16px 18px; margin-bottom:34px;
  font-family:var(--font-mono); font-size:12px; line-height:1.75; color:var(--muted);
}
.draft-note b{color:var(--text); font-weight:500;}

@media (prefers-reduced-motion: reduce){
  *{animation:none !important; transition:none !important;}
  html{scroll-behavior:auto;}
}

@media (max-width:760px){
  .render-grid{grid-template-columns:1fr;}
  .navlinks{display:none;}
  .proj-grid{grid-template-columns:1fr;}
  .gallery{grid-template-columns:repeat(2,1fr);}
  .about-grid{grid-template-columns:1fr;}
  .detail-gallery{grid-template-columns:1fr;}
  .detail-shot:not(:first-child) .art{aspect-ratio:16/9;}
}
