/* ============================================================
   BUILD LOG — engineer's lab-notebook portfolio
   Vaibhav Vemani · AI Systems Engineer
   cool dot-grid paper · graphite + teal/navy ink · technical
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Architects+Daughter&display=swap');

:root{
  --paper:     #eef1f4;
  --paper-2:   #e3e8ec;
  --line:      #c2cdd4;          /* grid line */
  --line-bold: #aebcc4;
  --ink:       #1b2630;
  --ink-soft:  #44525c;
  --ink-faint: #7d8b93;
  --teal:      #15807f;
  --teal-soft: #d4e6e2;
  --navy:      #23456e;
  --amber:     #c98a2b;
  --note:      #e9e2b8;          /* post-it */
  --note-teal: #cfe4df;
  --shadow:    rgba(27,38,48,.20);
  --vig:       rgba(27,38,48,.085);
  --grain:     .5;
  --grain-blend: multiply;
  --maxw:      1180px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

/* ============================================================ BLUEPRINT (dark) MODE */
body.blueprint{
  --paper:#0e2340; --paper-2:#16304f; --line:#26456b; --line-bold:#3a6091;
  --ink:#e9f4ff; --ink-soft:#aac7e2; --ink-faint:#7295b6;
  --teal:#54d8ea; --teal-soft:rgba(84,216,234,.16); --navy:#c6e7f7;
  --amber:#e3b264; --note:#1d3c60; --note-teal:#16374d;
  --shadow:rgba(0,0,0,.55);
  --vig:rgba(0,0,0,.5); --grain:.2; --grain-blend:screen;
}
body, .sheet, .btn, .ach, .hobby, .note, .board, .nav{ transition:background-color .45s ease, color .45s ease, border-color .45s ease; }
body.blueprint .sheet{ box-shadow:6px 6px 0 rgba(0,0,0,.35); }
body.blueprint .btn{ box-shadow:4px 4px 0 rgba(0,0,0,.4); }
body.blueprint .btn.ghost{ box-shadow:4px 4px 0 rgba(0,0,0,.3); }
body.blueprint .ach, body.blueprint .hobby, body.blueprint .spec-badge{ box-shadow:4px 4px 0 rgba(0,0,0,.32); }
body.blueprint .nav.solid{ background:rgba(14,35,64,.94); }
body.blueprint .board{ box-shadow:inset 0 0 46px rgba(0,0,0,.4); }

/* mode toggle */
.mode{ font-family:'Space Mono',monospace; font-size:10.5px; letter-spacing:1.5px; text-transform:uppercase;
  color:var(--ink); background:transparent; border:1.5px solid var(--ink); padding:6px 11px; cursor:pointer;
  display:inline-flex; align-items:center; gap:7px; transition:background .18s, color .18s; white-space:nowrap; flex-shrink:0; }
.mode:hover{ background:var(--ink); color:var(--paper); }
.mode .gl{ font-size:12px; line-height:1; }
.nav .right{ display:flex; align-items:center; gap:18px; }

body{
  margin:0;
  font-family:'Space Mono', monospace;
  color:var(--ink);
  line-height:1.65;
  background-color:var(--paper);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
/* bolder major grid + vignette */
body::before{
  content:""; position:fixed; inset:0; z-index:0; pointer-events:none;
  background-image:
    linear-gradient(var(--line-bold) 1.4px, transparent 1.4px),
    linear-gradient(90deg, var(--line-bold) 1.4px, transparent 1.4px),
    radial-gradient(120% 90% at 50% 8%, transparent 42%, var(--vig) 100%);
  background-size:130px 130px, 130px 130px, cover;
  opacity:.62;
}
/* paper grain — sits under content (z1), over the grid (z0) */
body::after{
  content:""; position:fixed; inset:0; z-index:1; pointer-events:none;
  opacity:var(--grain); mix-blend-mode:var(--grain-blend);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
}

h1,h2,h3,h4{ font-family:'Space Mono',monospace; font-weight:700; margin:0; letter-spacing:-0.5px; }
.hand{ font-family:'Architects Daughter',cursive; }
a{ color:var(--teal); }
.mono-label{ text-transform:uppercase; letter-spacing:3px; font-size:11px; color:var(--ink-faint); }

.wrap{ position:relative; z-index:2; }
section.chapter{ max-width:var(--maxw); margin:0 auto; padding:120px 40px; position:relative; }
/* faint sheet number watermark behind each chapter head */
section.chapter::before{ content:attr(data-n); position:absolute; top:104px; right:40px; z-index:0;
  font-family:'Space Mono',monospace; font-weight:700; font-size:clamp(110px,13vw,196px); line-height:.8;
  letter-spacing:-10px; color:var(--ink); opacity:.055; pointer-events:none; }
section.chapter > *{ position:relative; z-index:1; }
@media (max-width:900px){ section.chapter::before{ display:none; } }
@media (max-width:760px){ section.chapter{ padding:78px 20px; } }

/* ---------- spec card (blueprint sheet) ---------- */
.sheet{
  position:relative; background:var(--paper);
  border:1.5px solid var(--ink);
  box-shadow: 6px 6px 0 rgba(27,38,48,.12);
  padding:30px 32px;
}
.sheet.dot{
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size:18px 18px;
}
/* corner ticks */
.sheet::before,.sheet::after{ content:""; position:absolute; width:11px; height:11px; border:1.5px solid var(--teal); }
.sheet::before{ top:-1px; left:-1px; border-right:0; border-bottom:0; }
.sheet::after{ bottom:-1px; right:-1px; border-left:0; border-top:0; }

/* title-block tag like an engineering drawing */
.titleblock{ position:absolute; bottom:0; right:0; border:1.5px solid var(--ink);
  border-right:0; border-bottom:0; background:var(--paper); font-size:10px;
  letter-spacing:1px; text-transform:uppercase; color:var(--ink-soft); padding:6px 12px; }

/* ---------- heading w/ drawn rule ---------- */
.chap-head{ margin-bottom:48px; }
.chap-head .row{ display:flex; align-items:baseline; gap:16px; }
.chap-num{ font-family:'Space Mono',monospace; font-size:14px; color:var(--teal); font-weight:700;
  border:1.5px solid var(--teal); padding:3px 9px; }
.chap-title{ font-size:clamp(28px,4.2vw,48px); color:var(--ink); }
.rule{ width:100%; height:10px; margin-top:10px; overflow:visible; display:block; }
.rule path{ fill:none; stroke:var(--teal); stroke-width:2.5; stroke-linecap:round;
  stroke-dasharray:680; stroke-dashoffset:680; transition:stroke-dashoffset 1.1s ease; }
.in-view .rule path{ stroke-dashoffset:0; }
.chap-note{ font-family:'Architects Daughter',cursive; font-size:20px; color:var(--navy); margin-top:8px; }

/* reveal */
.reveal{ opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in-view{ opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce){ .reveal{opacity:1;transform:none;} }

/* buttons */
.btn{ display:inline-flex; align-items:center; gap:9px; font-family:'Space Mono',monospace;
  font-weight:700; font-size:13px; letter-spacing:.5px; text-decoration:none;
  color:var(--paper); background:var(--ink); padding:13px 20px; border:1.5px solid var(--ink);
  box-shadow:4px 4px 0 rgba(27,38,48,.18); transition:transform .15s, box-shadow .15s; cursor:pointer; }
.btn:hover{ transform:translate(-2px,-2px); box-shadow:6px 6px 0 rgba(27,38,48,.22); }
.btn.ghost{ background:transparent; color:var(--ink); box-shadow:4px 4px 0 rgba(27,38,48,.10); }
.btn.teal{ background:var(--teal); border-color:var(--teal); }

/* image placeholder */
.ph{ position:relative; background:var(--paper-2);
  background-image: repeating-linear-gradient(-45deg, var(--line) 0 1px, transparent 1px 11px);
  display:flex; align-items:center; justify-content:center; text-align:center;
  color:var(--ink-faint); font-size:10px; letter-spacing:2px; text-transform:uppercase;
  border:1px dashed var(--ink-faint); }
.ph span{ background:var(--paper); padding:4px 8px; }
/* crosshair marks on placeholders */
.ph i{ position:absolute; width:9px; height:9px; border:1px solid var(--ink-faint); }
.ph i.tl{ top:6px; left:6px; border-right:0; border-bottom:0; }
.ph i.br{ bottom:6px; right:6px; border-left:0; border-top:0; }

/* chips / tags */
.chip{ font-size:10px; letter-spacing:1px; text-transform:uppercase; color:var(--teal);
  border:1.5px solid var(--teal); padding:3px 8px; background:var(--teal-soft); }

/* ============================================================ NAV */
.nav{ position:fixed; top:0; left:0; right:0; z-index:40; display:flex; align-items:center;
  justify-content:space-between; padding:14px 26px; transition:background .3s, box-shadow .3s; }
.nav.solid{ background:rgba(238,241,244,.94); border-bottom:1.5px solid var(--ink); backdrop-filter:blur(4px); }
.nav .brand{ font-family:'Space Mono',monospace; font-weight:700; font-size:16px; color:var(--ink); text-decoration:none; }
.nav .brand b{ color:var(--teal); }
.nav ul{ display:flex; gap:20px; list-style:none; margin:0; padding:0; flex-shrink:0; }
.nav ul li{ flex-shrink:0; }
.nav a.lk{ font-size:11px; letter-spacing:1.5px; text-transform:uppercase; color:var(--ink-soft); text-decoration:none; transition:color .2s; white-space:nowrap; }
.nav a.lk:hover{ color:var(--teal); }
@media (max-width:1000px){ .nav ul{ display:none; } }

/* ============================================================ HERO */
.hero{ position:relative; min-height:100vh; display:flex; align-items:center; padding:90px 40px 60px; overflow:hidden; }
@media (max-width:760px){ .hero{ padding:96px 20px 50px; } }
.hero-inner{ max-width:var(--maxw); margin:0 auto; width:100%; position:relative; z-index:3; }
.hero-meta{ display:flex; gap:18px; flex-wrap:wrap; font-size:11px; letter-spacing:2px;
  text-transform:uppercase; color:var(--ink-faint); margin-bottom:22px; }
.hero-meta b{ color:var(--teal); }
.cover-title{ font-size:clamp(44px,9.5vw,124px); line-height:.92; color:var(--ink); letter-spacing:-2px; }
.cover-title .out{ color:transparent; -webkit-text-stroke:2px var(--ink); paint-order:stroke fill; }
@supports not (-webkit-text-stroke:1px black){ .cover-title .out{ color:var(--ink-faint); } }
.cover-title .dim{ color:var(--ink-faint); }
.hero-sub{ font-family:'Architects Daughter',cursive; font-size:clamp(22px,3vw,34px); color:var(--navy); margin:14px 0 0; }
.hero-desc{ max-width:560px; margin:22px 0 30px; font-size:15px; color:var(--ink-soft); }
.hero-desc b{ color:var(--ink); }
.hero-cta{ display:flex; gap:14px; flex-wrap:wrap; }

/* floating annotation in hero */
.annot{ position:absolute; z-index:2; font-family:'Architects Daughter',cursive;
  font-size:19px; color:var(--navy); max-width:240px; }
@media (max-width:1080px){ .annot, .spec-badge{ display:none; } }
.annot .lead{ display:block; width:60px; height:1.5px; background:var(--navy); margin:6px 0; }
.dimline{ position:absolute; z-index:2; }
.spec-badge{ position:absolute; z-index:2; border:1.5px solid var(--ink); background:var(--paper);
  padding:10px 14px; box-shadow:4px 4px 0 rgba(27,38,48,.12); font-size:11px; letter-spacing:1px; }
.spec-badge .v{ font-size:24px; font-weight:700; color:var(--teal); display:block; }

.scroll-hint{ position:absolute; bottom:20px; left:38px; z-index:3;
  font-family:'Architects Daughter',cursive; font-size:16px; color:var(--ink-soft); text-align:left; }
.scroll-hint .bar{ display:block; width:1.5px; height:26px; margin:5px 0 0 8px; background:var(--ink-soft);
  animation:pulse 1.8s ease-in-out infinite; transform-origin:top; }
@media (max-width:760px){ .scroll-hint{ left:20px; } }
@media (max-height:640px){ .scroll-hint{ display:none; } }
@keyframes pulse{ 0%,100%{transform:scaleY(.35);opacity:.4} 50%{transform:scaleY(1);opacity:.9} }

/* ============================================================ INTERLUDES (between-section margin notes) */
.interlude{ position:relative; max-width:var(--maxw); margin:-70px auto; padding:6px 40px; min-height:0;
  display:flex; overflow:visible; z-index:3; }
@media (max-width:760px){ .interlude{ margin:-48px auto; padding:4px 20px; } }
.interlude.right{ justify-content:flex-end; }
.interlude.center{ justify-content:center; text-align:center; }
.scrawl{ position:relative; max-width:400px; will-change:transform; }
.scrawl .tag{ display:block; font-family:'Space Mono',monospace; font-size:9.5px; letter-spacing:2px;
  text-transform:uppercase; color:var(--ink-faint); margin-bottom:3px; opacity:.8; }
.scrawl .txt{ font-family:'Architects Daughter',cursive; font-size:clamp(15px,1.5vw,18px);
  line-height:1.32; color:var(--navy); }
.scrawl .txt b{ color:var(--teal); font-weight:400; background:linear-gradient(transparent 62%, var(--teal-soft) 0); padding:0 2px; }
.scrawl .doodle{ display:block; width:84px; height:14px; margin-top:5px; overflow:visible; }
.interlude.right .scrawl{ text-align:right; }
.interlude.right .doodle{ margin-left:auto; }
.scrawl .doodle path{ fill:none; stroke:var(--teal); stroke-width:2.2; stroke-linecap:round;
  stroke-dasharray:300; stroke-dashoffset:300; transition:stroke-dashoffset 1s ease .1s; }
.interlude.in-view .doodle path{ stroke-dashoffset:0; }
.scrawl.fade{ opacity:0; transition:opacity .8s ease; }
.interlude.in-view .scrawl.fade{ opacity:1; }
@media (prefers-reduced-motion:reduce){ .scrawl.fade{opacity:1;} }

/* ============================================================ ABOUT */
.about-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:46px; align-items:start; }
@media (max-width:820px){ .about-grid{ grid-template-columns:1fr; } }
.about-lead{ font-size:clamp(18px,2.1vw,23px); line-height:1.7; }
.about-lead .hl{ color:var(--teal); }
.about-body p{ color:var(--ink-soft); font-size:14.5px; }
.callout{ font-family:'Architects Daughter',cursive; font-size:21px; color:var(--navy); }
.spec-list{ list-style:none; margin:0; padding:0; font-size:13px; }
.spec-list li{ display:flex; justify-content:space-between; gap:14px; padding:9px 0; border-bottom:1px dotted var(--line-bold); }
.spec-list .k{ color:var(--ink-faint); text-transform:uppercase; letter-spacing:1px; font-size:11px; }
.spec-list .v{ color:var(--ink); text-align:right; }
.stack-tags{ display:flex; flex-wrap:wrap; gap:7px; margin-top:16px; }

/* ============================================================ PROJECTS */
.proj-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:34px; }
@media (max-width:820px){ .proj-grid{ grid-template-columns:1fr; } }
.proj .sheet{ height:100%; display:flex; flex-direction:column; transition:transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s; }
.proj .sheet:hover{ transform:translate(-3px,-3px); box-shadow:11px 11px 0 rgba(27,38,48,.14); }
body.blueprint .proj .sheet:hover{ box-shadow:11px 11px 0 rgba(0,0,0,.42); }
.proj .sheet::before,.proj .sheet::after{ transition:width .22s, height .22s; }
.proj .sheet:hover::before,.proj .sheet:hover::after{ width:20px; height:20px; }
.proj .fileno{ font-size:11px; letter-spacing:1px; color:var(--ink-faint); margin-bottom:10px; display:flex; justify-content:space-between; }
.proj .ph{ width:100%; aspect-ratio:16/9; margin-bottom:16px; }
.proj h3{ font-size:23px; margin-bottom:4px; }
.proj .what{ font-family:'Architects Daughter',cursive; font-size:19px; color:var(--navy); margin-bottom:12px; }
.proj p.desc{ font-size:13.5px; color:var(--ink-soft); margin:0 0 16px; }
.proj .tagrow{ display:flex; flex-wrap:wrap; gap:7px; margin-bottom:14px; }
.proj .foot{ margin-top:auto; display:flex; justify-content:space-between; align-items:center; font-size:12px; color:var(--ink-faint); border-top:1px dotted var(--line-bold); padding-top:12px; }
.proj .foot a{ text-decoration:none; font-weight:700; }

/* ---- expandable detail (modal spec sheet) ---- */
.proj-grid{ align-items:start; }
.proj .proj-detail{ display:none; }
.proj .foot .unfold{ font-family:'Space Mono',monospace; font-size:12px; font-weight:700; color:var(--teal);
  background:none; border:0; padding:0; cursor:pointer; letter-spacing:.5px; display:inline-flex; align-items:center; gap:6px; }
.proj .foot .unfold .cx{ display:inline-block; transition:transform .25s ease; }
.proj .foot .unfold:hover .cx{ transform:translate(2px,-2px); }
.detail-inner{ display:flex; flex-direction:column; gap:18px; }

/* ---- spec modal ---- */
.spec-modal{ position:fixed; inset:0; z-index:90; display:flex; align-items:center; justify-content:center;
  padding:34px 22px; visibility:hidden; opacity:0; transition:opacity .28s ease, visibility .28s; }
.spec-modal.on{ visibility:visible; opacity:1; }
.spec-modal .scrim{ position:absolute; inset:0; background:rgba(19,28,37,.62); backdrop-filter:blur(3px); }
.spec-modal .panel{ position:relative; z-index:2; width:min(820px,100%); max-height:88vh; overflow-y:auto;
  background:var(--paper); border:1.5px solid var(--ink); box-shadow:10px 12px 0 rgba(0,0,0,.28);
  padding:30px 34px 34px; transform:scale(.9) translateY(14px); opacity:0;
  transition:transform .34s cubic-bezier(.2,.9,.3,1), opacity .28s ease;
  background-image:radial-gradient(var(--line) 1px, transparent 1px); background-size:18px 18px; }
.spec-modal.on .panel{ transform:none; opacity:1; }
.spec-modal .panel::before,.spec-modal .panel::after{ content:""; position:absolute; width:13px; height:13px; border:1.5px solid var(--teal); }
.spec-modal .panel::before{ top:-1px; left:-1px; border-right:0; border-bottom:0; }
.spec-modal .panel::after{ bottom:-1px; right:-1px; border-left:0; border-top:0; }
.spec-modal .mhead{ display:flex; justify-content:space-between; align-items:flex-start; gap:20px;
  border-bottom:1.5px solid var(--ink); padding-bottom:14px; margin-bottom:20px; }
.spec-modal .mfile{ font-size:10.5px; letter-spacing:2px; text-transform:uppercase; color:var(--ink-faint); }
.spec-modal .mtitle{ font-size:clamp(24px,3.4vw,34px); margin:5px 0 3px; }
.spec-modal .mwhat{ font-family:'Architects Daughter',cursive; font-size:19px; color:var(--navy); }
.spec-modal .mclose{ flex:0 0 auto; width:34px; height:34px; border:1.5px solid var(--ink); background:transparent;
  color:var(--ink); font-family:'Space Mono',monospace; font-size:15px; cursor:pointer; line-height:1;
  transition:background .18s, color .18s; }
.spec-modal .mclose:hover{ background:var(--ink); color:var(--paper); }
body.modal-open{ overflow:hidden; }
@media (max-width:600px){ .spec-modal{ padding:16px 12px; } .spec-modal .panel{ padding:22px 20px 26px; max-height:92vh; } }
.dblock .dh{ display:block; font-family:'Space Mono',monospace; font-size:10px; letter-spacing:2px;
  text-transform:uppercase; color:var(--teal); margin-bottom:5px; }
.dblock p{ font-size:13px; color:var(--ink-soft); margin:0; }
.dlinks{ display:flex; gap:10px; flex-wrap:wrap; }
.dlink{ font-size:11px; letter-spacing:1px; text-transform:uppercase; text-decoration:none;
  color:var(--ink); border:1.5px solid var(--ink); padding:6px 11px; transition:background .18s, color .18s; }
.dlink:hover{ background:var(--ink); color:var(--paper); }

/* architecture diagram — layered/grouped language */
.arch{ width:100%; height:auto; color:var(--ink-faint); display:block; }
.arch .bound{ fill:none; stroke:var(--teal); stroke-width:1.2; stroke-dasharray:4 3; }
.arch .bx{ fill:var(--paper-2); stroke:var(--ink); stroke-width:1.3; }
.arch .ar{ fill:none; stroke:var(--teal); stroke-width:1.3; }
.arch text{ font-family:'Space Mono',monospace; fill:var(--ink); font-size:11px; }
.arch .lbl{ fill:var(--teal); font-size:9px; letter-spacing:1.4px; }
.arch .sm{ fill:var(--ink-faint); font-size:9.5px; }

/* ============================================================ EXPERIENCE — git log */
.gitlog{ position:relative; }
.commit{ position:relative; padding:0 0 30px 40px; }
.commit::before{ content:""; position:absolute; left:7px; top:6px; width:13px; height:13px;
  border-radius:50%; background:var(--paper); border:3px solid var(--teal); z-index:2; }
.commit::after{ content:""; position:absolute; left:12.5px; top:6px; bottom:-8px; width:2px; background:var(--line-bold); }
.commit:last-child::after{ display:none; }
.commit .hashline{ font-size:12px; color:var(--ink-faint); }
.commit .hashline b{ color:var(--amber); }
.commit .role{ font-size:20px; margin:4px 0 1px; }
.commit .org{ font-size:13px; color:var(--teal); }
.commit ul{ margin:10px 0 0; padding-left:18px; color:var(--ink-soft); font-size:13.5px; }
.commit ul li{ margin-bottom:5px; }
.commit ul li::marker{ content:"+ "; color:var(--teal); }

/* ============================================================ ACHIEVEMENTS */
.ach-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
@media (max-width:820px){ .ach-grid{ grid-template-columns:1fr; } }
.ach{ display:flex; gap:16px; align-items:flex-start; background:var(--paper); border:1.5px solid var(--ink);
  padding:18px 20px; box-shadow:4px 4px 0 rgba(27,38,48,.10); }
.ach .badge{ flex:0 0 auto; width:46px; height:46px; border:1.5px solid var(--teal); color:var(--teal);
  display:flex; align-items:center; justify-content:center; font-weight:700; font-size:11.5px;
  text-align:center; padding:0 3px; letter-spacing:-.3px; }
.ach h4{ font-size:16px; margin:0 0 4px; }
.ach .yr{ font-family:'Architects Daughter',cursive; font-size:18px; color:var(--amber); }
.ach p{ font-size:12.5px; color:var(--ink-soft); margin:4px 0 0; }

/* ============================================================ HOBBIES */
.hobby-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
@media (max-width:820px){ .hobby-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .hobby-grid{ grid-template-columns:1fr; } }
.hobby{ position:relative; border:1.5px solid var(--ink); background:var(--paper); padding:20px;
  min-height:138px; display:flex; flex-direction:column; justify-content:space-between;
  box-shadow:4px 4px 0 rgba(27,38,48,.10); transition:transform .18s; }
.hobby:hover{ transform:translateY(-3px); }
.hobby .no{ font-size:11px; letter-spacing:1px; color:var(--ink-faint); }
.hobby h4{ font-size:20px; }
.hobby .tag{ font-family:'Architects Daughter',cursive; font-size:17px; color:var(--navy); }
.hobby.fill{ background:var(--ink); color:var(--paper); }
.hobby.fill .no{ color:var(--teal-soft); }
.hobby.fill h4{ color:var(--paper); }
.hobby.fill .tag{ color:var(--note); }

/* ============================================================ PHOTO WALL — pinboard */
.board{ position:relative; min-height:560px; border:1.5px solid var(--ink); background:
  var(--paper-2); background-image: radial-gradient(var(--line) 1.5px, transparent 1.5px);
  background-size:22px 22px; padding:10px; box-shadow: inset 0 0 40px rgba(27,38,48,.06); }
.board .hint{ position:absolute; top:10px; left:14px; font-family:'Architects Daughter',cursive;
  font-size:18px; color:var(--ink-soft); z-index:1; }
.note{ position:absolute; cursor:grab; touch-action:none; width:200px; background:var(--note);
  padding:12px; box-shadow:5px 7px 14px -6px var(--shadow); z-index:4; }
.note:nth-child(odd){ background:var(--note-teal); }
.note:active{ cursor:grabbing; }
.note.lift{ z-index:30 !important; }
.note .ph{ width:100%; aspect-ratio:4/3; border-color:rgba(27,38,48,.25); }
.note .cap{ font-family:'Architects Daughter',cursive; font-size:18px; color:var(--ink); padding:8px 2px 2px; text-align:center; }
.tack{ position:absolute; top:-7px; left:50%; margin-left:-8px; width:16px; height:16px; border-radius:50%;
  background:radial-gradient(circle at 35% 30%, #3fa3a1, var(--teal)); box-shadow:0 3px 5px rgba(0,0,0,.3); z-index:6; }

/* ============================================================ CONTACT */
.contact .sheet{ max-width:720px; margin:0 auto; text-align:center; }
.contact h2{ font-size:clamp(28px,5vw,52px); }
.contact .scribble{ font-family:'Architects Daughter',cursive; font-size:24px; color:var(--navy); }
.contact-links{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin-top:24px; }
/* ============================================================ SHEET RAIL (left ruler / progress) */
.ruler{ position:fixed; left:24px; top:50%; transform:translateY(-50%); z-index:35;
  height:min(58vh,470px); display:flex; flex-direction:column; justify-content:space-between; }
.ruler .track{ position:absolute; left:0; top:-6px; bottom:-6px; width:1.5px; background:var(--line-bold); }
.ruler .track i{ display:block; position:absolute; left:0; top:0; width:1.5px; height:0; background:var(--teal); }
.ruler a{ position:relative; display:flex; align-items:center; gap:9px; text-decoration:none; }
.ruler .tk{ width:9px; height:1.5px; background:var(--line-bold); flex:0 0 auto; transition:width .22s, background .22s; }
.ruler .n{ font-size:9.5px; letter-spacing:1.5px; color:var(--ink-faint); transition:color .22s; }
.ruler .nm{ font-family:'Architects Daughter',cursive; font-size:15px; line-height:1; color:var(--teal);
  opacity:0; transform:translateX(-5px); transition:opacity .22s, transform .22s; white-space:nowrap; }
.ruler a:hover .nm{ opacity:1; transform:none; }
.ruler a:hover .tk, .ruler a.on .tk{ width:19px; background:var(--teal); }
.ruler a.on .n{ color:var(--teal); font-weight:700; }
@media (max-width:1439px){ .ruler{ display:none; } }

/* ============================================================ MOBILE NAV */
.navtoggle{ display:none; font-family:'Space Mono',monospace; font-size:14px; line-height:1; color:var(--ink);
  background:transparent; border:1.5px solid var(--ink); padding:8px 10px; cursor:pointer; flex-shrink:0; }
@media (max-width:1000px){
  .navtoggle{ display:inline-flex; }
  .nav{ padding:12px 18px; }
  .nav .right{ gap:10px; }
  .nav.open{ background:var(--paper); }
  .nav.open ul{ display:flex; flex-direction:column; gap:0; position:absolute; top:100%; left:0; right:0;
    background:var(--paper); border-bottom:1.5px solid var(--ink); padding:4px 18px 12px;
    box-shadow:0 16px 26px -20px var(--shadow); }
  .nav.open ul li{ border-top:1px dotted var(--line-bold); }
  .nav.open ul li a.lk{ display:block; padding:13px 0; font-size:12px; }
}

/* ============================================================ DROP-IN PHOTO SLOTS */
.ph.slot{ display:block; padding:0; border:0; }
.ph.slot i{ z-index:3; }
image-slot{ display:block; width:100%; height:100%; color:var(--ink-faint); }

/* ============================================================ FOOTER TITLE BLOCK */
.pagefoot{ max-width:var(--maxw); margin:0 auto; padding:26px 40px 74px; }
.pagefoot .endnote{ font-family:'Architects Daughter',cursive; font-size:21px; color:var(--ink);
  text-align:right; margin:0 0 10px; }
.tblock{ border:1.5px solid var(--ink); background:var(--paper); display:grid;
  grid-template-columns:1.7fr 1fr 1fr 1fr; box-shadow:5px 5px 0 rgba(27,38,48,.10); }
body.blueprint .tblock{ box-shadow:5px 5px 0 rgba(0,0,0,.36); }
.tblock > div{ border-left:1.5px solid var(--ink); padding:13px 15px; min-width:0; }
.tblock > div:first-child{ border-left:0; }
.tblock .k{ display:block; font-size:9px; letter-spacing:2px; text-transform:uppercase; color:var(--ink-faint); }
.tblock .v{ display:block; font-size:13px; font-weight:700; color:var(--ink); margin-top:3px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tblock .v.t{ color:var(--teal); }
.pagefoot .colophon{ display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-top:12px;
  font-size:10px; letter-spacing:2px; text-transform:uppercase; color:var(--ink-faint); }
.pagefoot .colophon a{ text-decoration:none; letter-spacing:2px; }
.pagefoot .colophon a:hover{ text-decoration:underline; }
@media (max-width:760px){ .tblock{ grid-template-columns:1fr 1fr; } .tblock > div:nth-child(3){ border-left:0; }
  .tblock > div:nth-child(n+3){ border-top:1.5px solid var(--ink); } .pagefoot{ padding:20px 20px 56px; }
  .pagefoot .endnote{ text-align:left; } }

/* ============================================================ POLISH: hover, focus, stagger */
.ach{ transition:transform .18s, box-shadow .18s; }
.ach:hover{ transform:translate(-2px,-2px); box-shadow:7px 7px 0 rgba(27,38,48,.13); }
body.blueprint .ach:hover{ box-shadow:7px 7px 0 rgba(0,0,0,.4); }
.ach .badge{ transition:background .18s, color .18s; }
.ach:hover .badge{ background:var(--teal); color:var(--paper); }
body.blueprint .ach:hover .badge{ color:#0e2340; }
a:focus-visible, button:focus-visible, image-slot:focus-visible{ outline:2px solid var(--teal); outline-offset:3px; }
.proj-grid > .reveal:nth-child(2){ transition-delay:.07s; }
.proj-grid > .reveal:nth-child(3){ transition-delay:.04s; }
.proj-grid > .reveal:nth-child(4){ transition-delay:.11s; }
.ach-grid > .reveal:nth-child(2){ transition-delay:.06s; }
.ach-grid > .reveal:nth-child(3){ transition-delay:.12s; }
.ach-grid > .reveal:nth-child(4){ transition-delay:.18s; }
.ach-grid > .reveal:nth-child(5){ transition-delay:.24s; }
.ach-grid > .reveal:nth-child(6){ transition-delay:.3s; }
@media (prefers-reduced-motion:reduce){
  .reveal, .proj-grid > .reveal, .ach-grid > .reveal{ transition:none !important; }
  html{ scroll-behavior:auto; }
  .scroll-hint .bar{ animation:none; }
}
