
:root{
  --text-muted:#3c4045;
  --text-dim:#5a5646;
  --text-faint:#8a8578;
  --text-soft:#33363a;
  --text-cell:#4a4640;
  --text-caption:#6b6656;
  --surface-lights:#4b4f56;
  --contact-text:#c9c6bd;
  --toast-text:#d8d5cc;
  --link-hover-amber:#f0c169;
  --card-overlay:rgba(255,255,255,0.35);
  --grid-bg-line:rgba(218,213,200,0.4);
  --contact-grid-line:rgba(255,255,255,0.04);
  --overlay-dim:rgba(20,23,28,0.45);
  --header-bg:rgba(247,245,240,0.88);
  --tint-rust-soft:rgba(196,80,46,0.04);
  --tint-rust-strong:rgba(196,80,46,0.08);
  --tint-ledger-soft:rgba(31,111,92,0.05);
  --tint-ledger-strong:rgba(31,111,92,0.1);
  --tint-ledger-glow:rgba(31,111,92,0.15);
  --shadow-card:rgba(20,23,28,0.28);
  --shadow-fab:rgba(20,23,28,0.35);
  --shadow-drawer:rgba(20,23,28,0.4);
  --shadow-toast:rgba(20,23,28,0.5);
  --contact-bg-line:rgba(255,255,255,0.14);
  --input-bg:rgba(255,255,255,0.55);
}@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,500&family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');
:root{
  /* Colors come from the site-wide 'YikesPixel Ledger' Bricks palette (--ink, --paper, --paper-dim, --ledger, --ledger-dim, --amber, --rust, --grid, --grid-strong), not redeclared here. */
  --maxw:1120px;
  --chrome-bg:#14171C;
  --chrome-text:#F7F5F0;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important;}
}
body{
  background:var(--paper); color:var(--ink); font-family:'IBM Plex Sans',sans-serif; font-size:16px; line-height:1.55;
  background-image:linear-gradient(var(--grid-bg-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-bg-line) 1px, transparent 1px);
  background-size:48px 48px; background-position:-1px -1px;
}
a{color:inherit;}
::selection{background:var(--amber); color:var(--ink);}
a:focus-visible, button:focus-visible, .focusable:focus-visible{outline:2px solid var(--ledger); outline-offset:3px; border-radius:2px;}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 28px;}
header.site{position:sticky; top:0; z-index:40; background:var(--header-bg); backdrop-filter:blur(6px); border-bottom:1px solid var(--grid-strong);}
.navrow{display:flex; align-items:center; justify-content:space-between; padding:16px 28px; max-width:var(--maxw); margin:0 auto;}
.wordmark{font-family:'IBM Plex Mono',monospace; font-weight:600; font-size:15px; letter-spacing:0.02em; text-decoration:none; display:flex; align-items:center; gap:8px;}
.wordmark .dot{width:8px; height:8px; border-radius:50%; background:var(--ledger); box-shadow:0 0 0 3px var(--tint-ledger-glow);}
nav.links{display:flex; gap:28px; font-family:'IBM Plex Mono',monospace; font-size:13px;}
nav.links a{text-decoration:none; opacity:0.75; transition:opacity .15s;}
nav.links a:hover{opacity:1;}
.status-tag{font-family:'IBM Plex Mono',monospace; font-size:11px; color:var(--ledger); display:flex; align-items:center; gap:6px;}
@media (max-width:720px){nav.links{display:none;}}
.hero{padding:88px 0 64px; max-width:var(--maxw); margin:0 auto; padding-left:28px; padding-right:28px; display:grid; grid-template-columns:1.1fr 0.9fr; gap:56px; align-items:center;}
@media (max-width:900px){.hero{grid-template-columns:1fr; padding-top:56px;}}
.eyebrow{font-family:'IBM Plex Mono',monospace; font-size:13px; color:var(--ledger); text-transform:uppercase; letter-spacing:0.06em; margin:0 0 18px; display:flex; align-items:center; gap:10px;}
.eyebrow::before{content:''; width:22px; height:1px; background:var(--ledger);}
h1.headline{font-family:'Fraunces',serif; font-weight:500; font-size:clamp(2.1rem,4.4vw,3.4rem); line-height:1.08; margin:0 0 22px; letter-spacing:-0.01em;}
h1.headline em{font-style:italic; font-weight:500; color:var(--ledger);}
h1.headline .strike{text-decoration:line-through; text-decoration-color:var(--rust); text-decoration-thickness:2px; color:var(--text-faint);}
.lede{font-size:1.05rem; color:var(--text-muted); max-width:46ch; margin:0 0 30px;}
.cta-row{display:flex; gap:14px; flex-wrap:wrap;}
.btn{font-family:'IBM Plex Mono',monospace; font-size:13.5px; font-weight:500; text-decoration:none; padding:13px 22px; border-radius:3px; display:inline-flex; align-items:center; gap:8px; transition:transform .15s ease, box-shadow .15s ease;}
.btn-primary{background:var(--ink); color:var(--paper);}
.btn-primary:hover{transform:translateY(-2px); box-shadow:0 6px 0 0 var(--ledger);}
.btn-ghost{border:1px solid var(--ink); color:var(--ink);}
.btn-ghost:hover{background:var(--ink); color:var(--paper);}
.ledger-card{background:var(--paper-dim); border:1px solid var(--grid-strong); border-radius:6px; box-shadow:0 22px 44px -18px var(--shadow-card); overflow:hidden;}
.ledger-card__bar{background:var(--ink); color:var(--paper); font-family:'IBM Plex Mono',monospace; font-size:11.5px; padding:9px 14px; display:flex; align-items:center; justify-content:space-between;}
.ledger-card__bar .lights{display:flex; gap:6px;}
.ledger-card__bar .lights span{width:8px; height:8px; border-radius:50%; background:var(--surface-lights);}
.lgrid{display:grid; grid-template-columns:34px repeat(3, 1fr); font-family:'IBM Plex Mono',monospace; font-size:12px;}
.lgrid .hcell{background:var(--grid); color:var(--text-dim); text-align:center; padding:7px 4px; font-weight:600; border-right:1px solid var(--grid-strong); border-bottom:1px solid var(--grid-strong);}
.lgrid .rownum{background:var(--grid); color:var(--text-dim); text-align:center; padding:9px 4px; border-right:1px solid var(--grid-strong); border-bottom:1px solid var(--grid-strong);}
.lgrid .cell{padding:9px 10px; border-right:1px solid var(--grid); border-bottom:1px solid var(--grid); min-height:34px; display:flex; align-items:center; color:var(--text-cell);}
.lgrid .cell.messy{color:var(--rust); position:relative; overflow:hidden;}
.lgrid .cell.messy .txt{transition:opacity .5s ease;}
.lgrid .cell.messy.resolved .txt.before{display:none;}
.lgrid .cell.messy .txt.after{display:none; color:var(--ledger); font-weight:600;}
.lgrid .cell.messy.resolved .txt.after{display:inline;}
.lgrid .cell.messy:not(.resolved) .txt.before{text-decoration:line-through; text-decoration-color:var(--rust); text-decoration-thickness:1.5px;}
.flag{font-family:'IBM Plex Mono',monospace; font-size:10.5px; background:var(--amber); color:var(--ink); padding:1px 6px; border-radius:2px; margin-left:6px; white-space:nowrap;}
.caption-row{display:flex; align-items:center; justify-content:space-between; padding:10px 14px; font-family:'IBM Plex Mono',monospace; font-size:11px; color:var(--text-caption); border-top:1px solid var(--grid-strong);}
.caption-row .dot-live{width:6px; height:6px; border-radius:50%; background:var(--ledger); display:inline-block; margin-right:6px; animation:pulse 2s infinite;}
@keyframes pulse{0%,100%{opacity:1;} 50%{opacity:0.35;}}
section{padding:84px 0;}
.section-head{display:flex; align-items:baseline; gap:16px; margin-bottom:44px; border-bottom:1px solid var(--grid-strong); padding-bottom:18px;}
.section-head .no{font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--ledger); font-weight:600;}
.section-head h2{font-family:'Fraunces',serif; font-weight:500; font-size:clamp(1.5rem,2.6vw,2.1rem); margin:0;}
.section-head p.sub{margin:0 0 0 auto; font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--text-faint); text-align:right;}
@media (max-width:640px){.section-head{flex-wrap:wrap;} .section-head p.sub{margin-left:0; text-align:left;}}
.work-item{border:1px solid var(--grid-strong); background:var(--card-overlay); border-radius:6px; margin-bottom:20px; overflow:hidden;}
.work-item__head{display:flex; align-items:center; justify-content:space-between; padding:18px 22px; gap:16px; flex-wrap:wrap;}
.work-item__id{font-family:'IBM Plex Mono',monospace; font-size:11px; color:var(--text-faint);}
.work-item__title{font-family:'Fraunces',serif; font-size:1.4rem; font-weight:500; margin:2px 0 0;}
.work-item__tag{font-family:'IBM Plex Mono',monospace; font-size:11px; color:var(--ledger); border:1px solid var(--ledger); border-radius:20px; padding:4px 12px; white-space:nowrap;}
.work-item__body{border-top:1px solid var(--grid); display:grid; grid-template-columns:1fr 1fr;}
@media (max-width:760px){.work-item__body{grid-template-columns:1fr;}}
.before-col, .after-col{padding:20px 22px;}
.before-col{border-right:1px solid var(--grid); background:var(--tint-rust-soft);}
.after-col{background:var(--tint-ledger-soft);}
@media (max-width:760px){.before-col{border-right:none; border-bottom:1px solid var(--grid);}}
.col-label{font-family:'IBM Plex Mono',monospace; font-size:10.5px; letter-spacing:0.08em; text-transform:uppercase; display:flex; align-items:center; gap:6px; margin-bottom:10px;}
.before-col .col-label{color:var(--rust);}
.after-col .col-label{color:var(--ledger);}
.work-item ul{margin:0; padding-left:18px; font-size:14.5px; color:var(--text-muted);}
.work-item li{margin-bottom:6px;}
.work-item__link{display:flex; padding:12px 22px; font-family:'IBM Plex Mono',monospace; font-size:12px; border-top:1px solid var(--grid); text-decoration:none; color:var(--ink); justify-content:space-between; align-items:center; transition:background .15s;}
.work-item__link:hover{background:var(--paper-dim);}
.build-grid{display:grid; grid-template-columns:repeat(3, 1fr); gap:1px; background:var(--grid-strong); border:1px solid var(--grid-strong);}
@media (max-width:760px){.build-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:480px){.build-grid{grid-template-columns:1fr;}}
.build-cell{background:var(--paper); padding:26px 22px;}
.build-cell .k{font-family:'IBM Plex Mono',monospace; font-size:11px; color:var(--text-faint); display:block; margin-bottom:8px;}
.build-cell h3{font-family:'Fraunces',serif; font-weight:500; font-size:1.15rem; margin:0 0 8px;}
.build-cell p{margin:0; font-size:13.5px; color:var(--text-dim);}
.fix-table{border:1px solid var(--grid-strong); border-radius:6px; overflow:hidden; background:var(--card-overlay);}
.fix-row{display:flex; align-items:center; gap:16px; padding:18px 22px; border-bottom:1px solid var(--grid);}
.fix-row:last-child{border-bottom:none;}
.fix-row .qmark{font-family:'IBM Plex Mono',monospace; color:var(--amber); font-size:18px; font-weight:600; flex:0 0 auto;}
.fix-row p{margin:0; font-size:15.5px;}
.fix-verdict{margin-top:0; padding:20px 22px; background:var(--ink); color:var(--paper); font-family:'Fraunces',serif; font-size:1.1rem; font-style:italic; display:flex; align-items:center; gap:10px;}
.fix-verdict .tag{font-family:'IBM Plex Mono',monospace; font-style:normal; font-size:11px; background:var(--amber); color:var(--ink); padding:2px 8px; border-radius:2px;}
.about-wrap{display:grid; grid-template-columns:0.8fr 1.2fr; gap:48px; align-items:start;}
@media (max-width:820px){.about-wrap{grid-template-columns:1fr;}}
.about-card{border:1px solid var(--grid-strong); border-radius:6px; padding:22px; background:var(--card-overlay); font-family:'IBM Plex Mono',monospace; font-size:12.5px;}
.about-card .row{display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px dashed var(--grid-strong);}
.about-card .row:last-child{border-bottom:none;}
.about-card .row span:first-child{color:var(--text-faint);}
.about-text p{font-size:16px; color:var(--text-soft); max-width:60ch;}
.about-text p.lead{font-family:'Fraunces',serif; font-size:1.3rem; font-weight:500; color:var(--ink);}
.contact{background:var(--ink); color:var(--paper); border-radius:10px; padding:56px 44px; background-image:linear-gradient(var(--contact-grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--contact-grid-line) 1px, transparent 1px); background-size:36px 36px; display:grid; grid-template-columns:1.1fr 0.9fr; gap:40px;}
@media (max-width:820px){.contact{grid-template-columns:1fr; padding:40px 26px;}}
.contact h2{font-family:'Fraunces',serif; font-weight:500; font-size:clamp(1.7rem,3vw,2.4rem); margin:0 0 14px;}
.contact p{color:var(--contact-text); max-width:44ch;}
.contact-links{display:flex; flex-direction:column; gap:0; font-family:'IBM Plex Mono',monospace; font-size:14px;}
.contact-links a{text-decoration:none; color:var(--paper); padding:14px 0; border-bottom:1px solid var(--contact-bg-line); display:flex; justify-content:space-between; align-items:center; transition:padding-left .15s ease, color .15s ease;}
.contact-links a:hover{padding-left:8px; color:var(--amber);}
.contact-links a .arrow{opacity:0.5;}
footer.site{padding:32px 0 60px; font-family:'IBM Plex Mono',monospace; font-size:11.5px; color:var(--text-faint); display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;}
/* --- Scroll reveal system --- */
.reveal{
  opacity:0;
  transform:translateY(28px);
  transition:opacity .6s ease, transform .6s ease;
  transition-delay:var(--d,0ms);
  will-change:opacity, transform;
}
.reveal.is-visible{ opacity:1; transform:translateY(0); }
.fix-verdict.reveal{ transform:translateY(28px) rotate(-1.4deg); transition:opacity .5s ease, transform .55s cubic-bezier(0.34,1.56,0.64,1); transition-delay:var(--d,0ms); }
.fix-verdict.reveal.is-visible{ transform:translateY(0) rotate(-1.4deg); }
@media (prefers-reduced-motion: reduce){
  .reveal, .fix-verdict.reveal{ opacity:1 !important; transform:none !important; transition:none !important; }
}

/* --- Nav scroll-spy --- */
nav.links a{ position:relative; transition:opacity .15s, color .15s; }
nav.links a.active{ opacity:1; color:var(--ledger); }
nav.links a.active::after{
  content:''; position:absolute; left:0; right:0; bottom:-6px; height:2px; background:var(--ledger); border-radius:2px;
}
/* --- Shared components added for the multi-page expansion --- */
.page-hero{ padding:88px 0 56px; max-width:1120px; margin:0 auto; }
.page-hero .wrap{ padding:0 28px; }
.page-hero h1{ font-family:'Fraunces',serif; font-weight:500; font-size:clamp(2rem,4vw,3.1rem); line-height:1.1; margin:0 0 20px; letter-spacing:-0.01em; color:var(--ink); max-width:18ch; }
.page-hero h1 em{ font-style:italic; font-weight:500; color:var(--ledger); }
.page-hero .lede{ margin-bottom:0; }

.ledger-index{ border:1px solid var(--grid-strong); border-radius:6px; overflow:hidden; background:var(--card-overlay); font-family:'IBM Plex Mono',monospace; font-size:13px; }
.ledger-index a{ display:flex; justify-content:space-between; align-items:center; padding:14px 18px; text-decoration:none; color:var(--ink); border-bottom:1px solid var(--grid); transition:background .15s, padding-left .15s; }
.ledger-index a:last-child{ border-bottom:none; }
.ledger-index a:hover{ background:var(--paper-dim); padding-left:22px; }
.ledger-index .idx-no{ color:var(--ledger); font-weight:600; margin-right:10px; }
.ledger-index .idx-arrow{ opacity:.5; }

.process-list{ border:1px solid var(--grid-strong); border-radius:6px; overflow:hidden; background:var(--card-overlay); }
.process-row{ display:flex; align-items:flex-start; gap:20px; padding:24px 22px; border-bottom:1px solid var(--grid); }
.process-row:last-child{ border-bottom:none; }
.process-row .step-no{ font-family:'Fraunces',serif; font-size:2rem; font-weight:500; color:var(--ledger); line-height:1; flex:0 0 auto; min-width:48px; }
.process-row h3{ font-family:'Fraunces',serif; font-weight:500; font-size:1.2rem; margin:0 0 6px; color:var(--ink); }
.process-row p{ margin:0; font-size:14.5px; color:var(--text-muted); max-width:60ch; }

.timeline{ border:1px solid var(--grid-strong); border-radius:6px; overflow:hidden; background:var(--card-overlay); }
.timeline-item{ display:grid; grid-template-columns:130px 1fr; gap:18px; padding:20px 22px; border-bottom:1px solid var(--grid); }
@media (max-width:600px){ .timeline-item{ grid-template-columns:1fr; } }
.timeline-item:last-child{ border-bottom:none; }
.timeline-item .t-when{ font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--ledger); padding-top:3px; }
.timeline-item h3{ font-family:'Fraunces',serif; font-weight:500; font-size:1.1rem; margin:0 0 4px; color:var(--ink); }
.timeline-item p{ margin:0; font-size:14px; color:var(--text-muted); }

.closing-cta{ padding:0 0 100px; }
.contact-links-panel{ background:var(--ink); border-radius:10px; padding:32px; }
.contact-links-panel .contact-links a{ font-size:15px; }
.contact-form .cf-row{ margin-bottom:18px; }
.contact-form label{ display:block; font-family:'IBM Plex Mono',monospace; font-size:11.5px; color:var(--text-dim); margin-bottom:6px; text-transform:uppercase; letter-spacing:0.05em; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form textarea{ width:100%; font-family:'IBM Plex Sans',sans-serif; font-size:15px; padding:12px 14px; border:1px solid var(--grid-strong); border-radius:6px; background:var(--input-bg); color:var(--ink); }
.contact-form input:focus, .contact-form textarea:focus{ outline:2px solid var(--ledger); outline-offset:2px; border-color:var(--ledger); }
.contact-form textarea{ min-height:150px; resize:vertical; font-family:'IBM Plex Sans',sans-serif; }
.cf-honeypot{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.contact-form .cf-submit{ font-family:'IBM Plex Mono',monospace; font-size:13.5px; font-weight:500; padding:13px 26px; border-radius:3px; background:var(--ink); color:var(--paper); border:none; cursor:pointer; display:inline-flex; align-items:center; gap:8px; transition:background .15s; }
.contact-form .cf-submit:hover{ background:var(--ledger-dim); }
.contact-form .cf-submit:disabled{ opacity:0.6; cursor:not-allowed; }
.cf-status{ margin-top:16px; font-family:'IBM Plex Mono',monospace; font-size:13px; padding:12px 16px; border-radius:6px; display:none; }
.cf-status.cf-success{ display:block; background:var(--tint-ledger-strong); color:var(--ledger-dim); border:1px solid var(--ledger); }
.cf-status.cf-error{ display:block; background:var(--tint-rust-strong); color:var(--rust); border:1px solid var(--rust); }
/* --- Mobile nav drawer --- */
.gr-hambtn{ display:none; flex-direction:column; justify-content:space-between; width:22px; height:16px; cursor:pointer; background:none; border:none; padding:0; }
@media (max-width:720px){ .gr-hambtn{ display:flex; } }
.gr-hbar{ height:2px; width:100%; background:var(--ink); border-radius:2px; transition:transform .25s ease, opacity .25s ease; }
body.gr-drawer-open .gr-hbar:nth-child(1){ transform:translateY(7px) rotate(45deg); }
body.gr-drawer-open .gr-hbar:nth-child(2){ opacity:0; }
body.gr-drawer-open .gr-hbar:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.gr-drawer-backdrop{ position:fixed; inset:0; background:var(--overlay-dim); opacity:0; visibility:hidden; transition:opacity .3s ease, visibility .3s ease; z-index:65; }
body.gr-drawer-open .gr-drawer-backdrop{ opacity:1; visibility:visible; }
body.gr-drawer-open{ overflow:hidden; }

.gr-drawer{ position:fixed; top:0; right:0; height:100vh; width:min(82vw,320px); background:var(--paper); z-index:70; transform:translateX(100%); transition:transform .4s cubic-bezier(0.16,1,0.3,1); box-shadow:-16px 0 44px -20px var(--shadow-fab); display:flex; flex-direction:column; padding:22px 24px; border-left:1px solid var(--grid-strong); }
body.gr-drawer-open .gr-drawer{ transform:translateX(0); }

.gr-drawer-head{ display:flex; align-items:center; justify-content:space-between; padding-bottom:18px; border-bottom:1px solid var(--grid-strong); margin-bottom:10px; }
.gr-drawer-wordmark{ font-family:'IBM Plex Mono',monospace; font-weight:600; font-size:14px; letter-spacing:0.02em; color:var(--ink); }
.gr-drawer-close{ font-family:'IBM Plex Mono',monospace; font-size:24px; line-height:1; color:var(--ink); background:none; border:none; cursor:pointer; padding:4px; }
.gr-drawer-close:focus-visible{ outline:2px solid var(--ledger); outline-offset:3px; border-radius:2px; }

.gr-drawer-nav{ display:flex; flex-direction:column; margin-top:6px; }
.gr-drawer-nav a{ display:block; font-family:'IBM Plex Mono',monospace; font-size:17px; color:var(--ink); text-decoration:none; padding:16px 2px; border-bottom:1px solid var(--grid); opacity:0; transform:translateX(14px); transition:opacity .35s ease, transform .35s ease, color .15s; }
.gr-drawer-nav a:last-child{ border-bottom:none; }
.gr-drawer-nav a:hover, .gr-drawer-nav a:focus-visible{ color:var(--ledger); }
body.gr-drawer-open .gr-drawer-nav a{ opacity:1; transform:translateX(0); }
.gr-drawer-nav a:nth-child(1){ transition-delay:.06s; }
.gr-drawer-nav a:nth-child(2){ transition-delay:.11s; }
.gr-drawer-nav a:nth-child(3){ transition-delay:.16s; }
.gr-drawer-nav a:nth-child(4){ transition-delay:.21s; }
.gr-drawer-nav a:nth-child(5){ transition-delay:.26s; }

.gr-drawer-status{ margin-top:auto; padding-top:18px; font-family:'IBM Plex Mono',monospace; font-size:11px; color:var(--ledger); display:flex; align-items:center; gap:6px; }
.gr-drawer-status::before{ content:''; width:6px; height:6px; border-radius:50%; background:var(--ledger); display:inline-block; }

@media (prefers-reduced-motion: reduce){
  .gr-drawer, .gr-drawer-backdrop, .gr-hbar, .gr-drawer-nav a{ transition:none !important; }
}
/* --- Legal page prose --- */
.legal-meta{ font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--text-faint); margin-bottom:8px; }
.legal-content{ max-width:72ch; }
.legal-content h2{ font-family:'Fraunces',serif; font-weight:500; font-size:1.5rem; color:var(--ink); margin:44px 0 14px; padding-bottom:10px; border-bottom:1px solid var(--grid-strong); }
.legal-content h2:first-child{ margin-top:0; }
.legal-content p{ font-size:16px; line-height:1.7; color:var(--text-soft); margin:0 0 16px; }
.legal-content ul{ margin:0 0 16px; padding-left:22px; }
.legal-content li{ font-size:16px; line-height:1.7; color:var(--text-soft); margin-bottom:8px; }
.legal-content a{ color:var(--ledger); text-decoration:underline; text-underline-offset:2px; }
.legal-content a:hover{ color:var(--ledger-dim); }
.legal-content strong{ color:var(--ink); }
.legal-content table{ width:100%; border-collapse:collapse; margin:20px 0 28px; font-size:14.5px; }
.legal-content th{ font-family:'IBM Plex Mono',monospace; font-size:11.5px; text-transform:uppercase; letter-spacing:0.04em; text-align:left; color:var(--text-dim); padding:10px 12px; border-bottom:1px solid var(--grid-strong); }
.legal-content td{ padding:12px; border-bottom:1px solid var(--grid); vertical-align:top; color:var(--text-soft); }
.legal-content tr:last-child td{ border-bottom:none; }
.legal-content .status-off{ color:var(--text-faint); font-family:'IBM Plex Mono',monospace; font-size:12.5px; }
.legal-content .status-on{ color:var(--ledger); font-family:'IBM Plex Mono',monospace; font-size:12.5px; font-weight:600; }
.manage-cookies-btn{ font-family:'IBM Plex Mono',monospace; font-size:13.5px; font-weight:500; padding:12px 22px; border-radius:3px; background:var(--ink); color:var(--paper); border:none; cursor:pointer; display:inline-flex; align-items:center; gap:8px; margin:8px 0 24px; }
.manage-cookies-btn:hover{ background:var(--ledger-dim); }
/* --- Cookie consent: modal-first, minimizes to a floating badge --- */
.gr-cookie-modal-backdrop{ position:fixed; inset:0; background:var(--shadow-toast); z-index:1300; opacity:0; visibility:hidden; transition:opacity .25s ease, visibility .25s ease; display:flex; align-items:center; justify-content:center; padding:20px; }
.gr-cookie-modal-backdrop.gr-visible{ opacity:1; visibility:visible; }
.gr-cookie-modal{ background:var(--paper); border-radius:10px; border:1px solid var(--grid-strong); max-width:560px; width:100%; max-height:88vh; overflow-y:auto; padding:30px; }
.gr-cookie-modal-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:6px; }
.gr-cookie-modal h2{ font-family:'Fraunces',serif; font-weight:500; font-size:1.5rem; color:var(--ink); margin:0; }
.gr-cookie-modal-close{ background:none; border:none; cursor:pointer; font-family:'IBM Plex Mono',monospace; font-size:20px; color:var(--text-faint); line-height:1; padding:2px 6px; flex-shrink:0; }
.gr-cookie-modal-close:hover{ color:var(--ink); }
.gr-cookie-modal > p.gr-cookie-desc{ font-size:14.5px; color:var(--text-muted); line-height:1.6; margin:0 0 18px; }
.gr-cookie-modal > p.gr-cookie-desc a{ color:var(--ledger); text-decoration:underline; }

.gr-consent-meta-box{ border:1px solid var(--grid-strong); border-radius:6px; background:var(--paper-dim); padding:14px 16px; margin-bottom:18px; font-family:'IBM Plex Mono',monospace; font-size:12px; }
.gr-consent-meta-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:6px 0; }
.gr-consent-meta-row + .gr-consent-meta-row{ border-top:1px dashed var(--grid-strong); }
.gr-consent-meta-label{ color:var(--text-faint); }
.gr-consent-meta-value{ color:var(--ink); display:flex; align-items:center; gap:8px; }
.gr-consent-copy-btn{ background:none; border:none; color:var(--ledger); cursor:pointer; font-family:'IBM Plex Mono',monospace; font-size:11px; text-decoration:underline; padding:0; }
.gr-consent-copy-btn:hover{ color:var(--ledger-dim); }

.gr-cookie-row{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:16px 0; border-bottom:1px solid var(--grid); }
.gr-cookie-row:last-of-type{ border-bottom:none; }
.gr-cookie-row-label{ font-weight:600; color:var(--ink); font-size:14.5px; margin-bottom:4px; }
.gr-cookie-row-desc{ font-size:13px; color:var(--text-dim); line-height:1.5; }
.gr-toggle{ position:relative; width:42px; height:24px; flex-shrink:0; }
.gr-toggle input{ opacity:0; width:0; height:0; }
.gr-toggle-track{ position:absolute; inset:0; background:var(--grid-strong); border-radius:24px; cursor:pointer; transition:background .2s; }
.gr-toggle-track::before{ content:''; position:absolute; width:18px; height:18px; left:3px; top:3px; background:var(--paper); border-radius:50%; transition:transform .2s; }
.gr-toggle input:checked + .gr-toggle-track{ background:var(--ledger); }
.gr-toggle input:checked + .gr-toggle-track::before{ transform:translateX(18px); }
.gr-toggle input:disabled + .gr-toggle-track{ opacity:0.55; cursor:not-allowed; }
.gr-toggle input:focus-visible + .gr-toggle-track{ outline:2px solid var(--ledger); outline-offset:2px; }

.gr-cookie-modal-actions{ display:grid; grid-template-columns:repeat(3, 1fr); gap:10px; margin-top:22px; }
.gr-cookie-modal-actions .gr-cookie-btn{ text-align:center; padding:12px 8px; white-space:normal; line-height:1.3; }
.gr-cookie-btn{ font-family:'IBM Plex Mono',monospace; font-size:12.5px; font-weight:500; padding:11px 18px; border-radius:3px; cursor:pointer; border:1px solid var(--grid-strong); background:transparent; color:var(--ink); transition:background .15s, color .15s; }
.gr-cookie-btn:hover{ background:var(--ink); color:var(--paper); border-color:var(--ink); }
.gr-cookie-btn.gr-primary{ background:var(--ledger); border-color:var(--ledger); color:var(--paper); }
.gr-cookie-btn.gr-primary:hover{ background:var(--ledger-dim); border-color:var(--ledger-dim); }

/* Floating cookie badge - shown once a choice has been made, reopens the modal */
.gr-cookie-fab{ position:fixed; left:24px; bottom:24px; width:54px; height:54px; border-radius:50%; background:var(--chrome-bg); border:1px solid var(--grid-strong); display:flex; align-items:center; justify-content:center; cursor:pointer; z-index:1260; box-shadow:0 10px 28px -12px var(--overlay-dim); opacity:0; visibility:hidden; transform:scale(0.85); transition:opacity .3s ease, transform .3s ease, visibility .3s ease; }
.gr-cookie-fab.gr-visible{ opacity:1; visibility:visible; transform:scale(1); }
.gr-cookie-fab:hover{ transform:scale(1.06); }
.gr-cookie-fab:focus-visible{ outline:2px solid var(--ledger); outline-offset:3px; }
.gr-cookie-fab svg{ width:26px; height:26px; }

@media (prefers-reduced-motion: reduce){
  .gr-cookie-modal-backdrop, .gr-cookie-fab{ transition:none !important; }
}
.gr-footer-links{ display:flex; gap:18px; flex-wrap:wrap; }
.gr-footer-links a{ font-family:'IBM Plex Mono',monospace; font-size:11px; color:var(--text-faint); text-decoration:none; background:none; border:none; cursor:pointer; padding:0; }
.gr-footer-links a:hover, .gr-footer-links button:hover{ color:var(--ledger); }
.gr-footer-links button{ font-family:'IBM Plex Mono',monospace; font-size:11px; color:var(--text-faint); text-decoration:none; background:none; border:none; cursor:pointer; padding:0; }
/* --- Compact first-visit cookie toast (bottom-left), separate from the full modal --- */
.gr-cookie-toast{ position:fixed; left:24px; bottom:24px; max-width:380px; width:calc(100% - 48px); background:var(--chrome-bg); color:var(--chrome-text); border-radius:10px; padding:22px 24px; z-index:1280; box-shadow:0 16px 40px -16px var(--shadow-drawer); opacity:0; visibility:hidden; transform:translateY(16px); transition:opacity .35s ease, transform .35s ease, visibility .35s ease; }
.gr-cookie-toast.gr-visible{ opacity:1; visibility:visible; transform:translateY(0); }
.gr-cookie-toast p{ font-size:13.5px; color:var(--chrome-text); line-height:1.6; margin:0 0 16px; }
.gr-cookie-toast a{ color:var(--amber); text-decoration:underline; }
.gr-cookie-toast a:hover{ color:var(--link-hover-amber); }
.gr-toast-actions{ display:flex; gap:10px; flex-wrap:wrap; }
.gr-toast-btn{ font-family:'IBM Plex Mono',monospace; font-size:12.5px; font-weight:500; padding:10px 18px; border-radius:3px; cursor:pointer; transition:background .15s, color .15s; }
.gr-toast-btn-ghost{ border:1px solid var(--chrome-text); background:transparent; color:var(--chrome-text); }
.gr-toast-btn-ghost:hover{ background:var(--chrome-text); color:var(--chrome-bg); }
.gr-toast-btn-primary{ border:1px solid var(--ledger); background:var(--ledger); color:var(--paper); }
.gr-toast-btn-primary:hover{ background:var(--ledger-dim); border-color:var(--ledger-dim); }

@media (prefers-reduced-motion: reduce){
  .gr-cookie-toast{ transition:none !important; }
}
/* --- Dark mode: the ledger's ink and paper swap. Accent blocks (Contact, cookie toast/badge) that were
   "paper stamped on ink" invert into "ink stamped on paper" - same contrast logic, reversed. --- */
html[data-theme="dark"]{
  --chrome-bg:#1E2228;
  --chrome-text:#F2EFE7;
  --ink:#F2EFE7;
  --paper:#14171C;
  --paper-dim:#1E2228;
  --ledger:#3AA187;
  --ledger-dim:#4FB89C;
  --amber:#F0B94E;
  --rust:#D96B47;
  --grid:#34383F;
  --grid-strong:#454A52;

  --text-muted:#C9C6BD;
  --text-dim:#A9A495;
  --text-faint:#8F8A7C;
  --text-soft:#D8D5CC;
  --text-cell:#B8B3A5;
  --text-caption:#948F80;
  --surface-lights:#5C6068;
  --contact-text:#3c4045;
  --toast-text:#3c4045;
  --link-hover-amber:#F7CE7A;

  --card-overlay:rgba(255,255,255,0.05);
  --grid-bg-line:rgba(255,255,255,0.05);
  --contact-grid-line:rgba(20,23,28,0.05);
  --overlay-dim:rgba(0,0,0,0.6);
  --header-bg:rgba(20,23,28,0.85);
  --tint-rust-soft:rgba(217,107,71,0.08);
  --tint-rust-strong:rgba(217,107,71,0.14);
  --tint-ledger-soft:rgba(58,161,135,0.1);
  --tint-ledger-strong:rgba(58,161,135,0.16);
  --tint-ledger-glow:rgba(58,161,135,0.2);
  --shadow-card:rgba(0,0,0,0.5);
  --shadow-fab:rgba(0,0,0,0.55);
  --shadow-drawer:rgba(0,0,0,0.6);
  --shadow-toast:rgba(0,0,0,0.65);
  --contact-bg-line:rgba(20,23,28,0.1);
  --input-bg:rgba(255,255,255,0.06);
}

html{ transition:background-color .25s ease; }
body{ transition:background-color .25s ease, color .25s ease; }
/* --- Dark mode toggle --- */
.gr-theme-toggle{ background:none; border:none; cursor:pointer; display:flex; align-items:center; justify-content:center; width:30px; height:30px; padding:0; color:var(--ink); font-size:15px; line-height:1; }
@media (max-width:720px){ .gr-navrow > .gr-theme-toggle{ display:none; } }
.gr-drawer-head .gr-theme-toggle{ margin-left:auto; margin-right:14px; }
.gr-theme-toggle:hover{ color:var(--ledger); }
.gr-theme-toggle:focus-visible{ outline:2px solid var(--ledger); outline-offset:3px; border-radius:50%; }
.gr-theme-toggle .icon-sun{ display:none; }
html[data-theme="dark"] .gr-theme-toggle .icon-sun{ display:block; }
html[data-theme="dark"] .gr-theme-toggle .icon-moon{ display:none; }
/* Cookie modal actions: 2-up on top + full-width primary on bottom, small screens only */
@media (max-width:480px){
  .gr-cookie-modal-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    grid-template-areas:"save reject" "accept accept";
  }
  .gr-cookie-modal-actions #grCookieSaveSettings{ grid-area:save; }
  .gr-cookie-modal-actions #grCookieReject{ grid-area:reject; }
  .gr-cookie-modal-actions #grCookieAccept{ grid-area:accept; }
}
/* --- Case study pages --- */
.case-meta-row{ display:flex; align-items:center; gap:14px; margin:10px 0 0; flex-wrap:wrap; }
.case-meta-row a{ font-family:'IBM Plex Mono',monospace; font-size:13px; color:var(--ledger); text-decoration:underline; text-underline-offset:2px; }
.case-content img{ width:100%; height:auto; display:block; border-radius:8px; border:1px solid var(--grid-strong); margin:8px 0 6px; }
.case-img-caption{ font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--text-faint); margin:0 0 32px; }
.case-tech-tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.case-tech-tag{ font-family:'IBM Plex Mono',monospace; font-size:12px; padding:6px 12px; border-radius:20px; border:1px solid var(--grid-strong); color:var(--text-dim); background:var(--paper-dim); }
.case-nav{ display:flex; justify-content:space-between; align-items:center; margin-top:56px; padding-top:24px; border-top:1px solid var(--grid); }
.case-nav a{ font-family:'IBM Plex Mono',monospace; font-size:13px; color:var(--ledger); text-decoration:underline; text-underline-offset:2px; }

/* --- About hero identity: Glen stands BEHIND the ledger card --- */
/* The overlap only reads as depth if the card is opaque; with the translucent
   --card-overlay his shirt shows straight through it. Scoped to this card only,
   so the homepage About card keeps its translucent fill. */
:root{--card-solid:#FFFEFB;}
html[data-theme="dark"]{--card-solid:#1E2228;}

.about-identity{display:flex; flex-direction:column; align-items:center; max-width:400px; margin-left:auto; margin-right:auto;}
.about-portrait{display:block; width:100%; max-width:330px; height:auto; margin:0;}
.about-identity .about-card{width:100%; position:relative; z-index:1; background:var(--card-solid); margin-top:-62px;}
/* The card is far narrower here than in its full-width use, so a long value
   can collide with its label. Let the value wrap under instead, still right-aligned. */
.about-identity .about-card .row{flex-wrap:wrap; gap:2px 16px;}
.about-identity .about-card .row span:last-child{margin-left:auto; text-align:right;}

@media (max-width:900px){
  .about-identity{max-width:372px;}
  .about-portrait{max-width:280px;}
  .about-identity .about-card{margin-top:-52px;}
}
