/*
  Layout concept: a bold, print-proof-sheet take on the editorial layout —
  chunky ink-bordered cards with a hard colour-block "registration shadow"
  (like a misaligned print proof), numbered capability badges, scattered
  sticker-style tool tags, and a halftone-dot corner on every header, as a
  nod to offset-print production. Left-aligned, ragged right — nothing
  centered, nothing softly blurred.
*/
:root{
  --paper: #FAF6EA;      /* bright warm paper */
  --paper-2: #F1EAD6;    /* card surface, one notch deeper */
  --ink: #15130F;        /* warm near-black */
  --muted: #6B6350;      /* warm grey-brown for secondary text */
  --line: #DED2B2;       /* divider tone derived from paper */
  --anil: #2A3EF5;       /* bright "añil" indigo — the hero accent */
  --anil-ink: #fff;      /* text sitting on the indigo accent */
  --cochineal: #E8432E;  /* bright "cochineal" red — the second accent */
  --cochineal-ink: #fff;
  --shadow: var(--anil); /* the hard offset shadow every card/button casts */

  --font-display: 'Bricolage Grotesque', 'Arial Black', Arial, sans-serif;
  --font-body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  color-scheme: light;
}

@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --paper: #141210; --paper-2: #1E1B15; --ink: #F5F0E2; --muted: #B2A98E;
    --line: #38331F; --anil: #6C7DFF; --anil-ink: #0B0C1F; --cochineal: #FF8064; --cochineal-ink: #1A0804;
    color-scheme: dark;
  }
}
:root[data-theme="dark"]{
  --paper: #141210; --paper-2: #1E1B15; --ink: #F5F0E2; --muted: #B2A98E;
  --line: #38331F; --anil: #6C7DFF; --anil-ink: #0B0C1F; --cochineal: #FF8064; --cochineal-ink: #1A0804;
  color-scheme: dark;
}

*{box-sizing:border-box;}
html, body{ margin:0; padding:0; }
body{
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
img{ max-width: 100%; }
a{ color: inherit; }
::selection{ background: var(--anil); color: var(--anil-ink); }

.wrap{ max-width: 1120px; margin: 0 auto; }

/* reusable corner accent, used behind every page header —
   a crop of Ana's own signed illustration work, not a generated pattern */
.hero, .page-header{ position: relative; overflow: hidden; }

/* homepage hero: a faded preview of the three disciplines, sitting in the
   empty right-hand side next to the title */
.hero-showcase{
  position: absolute; top: 10px; right: -10px; width: 460px; height: 420px;
  pointer-events: none;
}
.hero-showcase img{
  position: absolute; top: 50%; left: 50%; width: 230px; height: 230px;
  margin: -115px 0 0 -115px; object-fit: cover; opacity: 0.4;
  border: 3px solid var(--paper); border-radius: 8px; box-shadow: 4px 4px 0 var(--ink);
}
@media (max-width: 960px){
  .hero-showcase{ display: none; }
}

/* ---------- nav ---------- */
.nav{
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  display:flex; align-items:center; justify-content:space-between;
  gap: 16px; padding-block: 18px;
  border-bottom: 2.5px solid var(--ink);
}
.nav-name{
  font-family: var(--font-display); text-decoration:none;
  font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em;
}
.nav-toggle{
  display:none; background: var(--paper-2); border:2px solid var(--ink); border-radius:7px;
  width:40px; height:40px; color: var(--ink); font-size:1.1rem; cursor:pointer;
  box-shadow: 3px 3px 0 var(--shadow);
}
.nav-links{ display:flex; gap: 8px; flex-wrap: wrap; align-items:center; }
.nav-links a{
  text-decoration:none; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.02em; color: var(--muted);
  padding: 7px 12px; border-radius: 999px; border: 2px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.nav-links a:hover, .nav-links a:focus-visible{ color: var(--ink); border-color: var(--ink); }
.nav-links a.is-active{ color: var(--anil-ink); background: var(--anil); border-color: var(--ink); }
.nav-cta{
  font-family: var(--font-mono); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em;
  font-size: 0.8rem; color: var(--ink); text-decoration:none; background: var(--paper);
  border: 2.5px solid var(--ink); border-radius: 999px;
  padding: 8px 18px; white-space: nowrap; box-shadow: 4px 4px 0 var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease;
  display: inline-block;
}
.nav-cta:hover, .nav-cta:focus-visible{ background: var(--cochineal); color: var(--cochineal-ink); border-color: var(--ink); }
.nav-cta:active{ transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--shadow); }

@media (max-width: 720px){
  .nav-toggle{ display:block; }
  .nav-links{
    display:none; position:absolute; top: 100%; left:0; right:0;
    background: var(--paper); border-bottom: 2.5px solid var(--ink);
    flex-direction: column; align-items: flex-start; gap: 6px;
    padding: 10px max(16px, env(safe-area-inset-left,0px)) 18px;
  }
  .nav-links.is-open{ display:flex; }
  .nav-links a{ width:100%; }
}

/* ---------- hero (home) ---------- */
.hero{ padding-block: 56px 44px; }
.hero-eyebrow{
  display: inline-block; font-family: var(--font-mono); font-weight: 700; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--anil-ink); background: var(--anil);
  border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px;
  transform: rotate(-2deg); margin: 0 0 22px;
}
.hero-name{
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3rem, 11vw, 7rem); line-height: 0.94;
  letter-spacing: -0.02em; margin: 0; text-wrap: balance;
}
.hero-name em{ font-style: normal; font-weight: 800; color: inherit; }
.hero-role{
  display:flex; gap: 10px 28px; flex-wrap: wrap;
  margin-top: 24px; padding-top: 20px; border-top: 2.5px solid var(--ink);
  font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted);
}
.hero-role b{ color: var(--ink); font-weight: 700; }

@keyframes rise{ from{ opacity:0; transform: translateY(14px);} to{opacity:1; transform:none;} }
.hero-name, .hero-eyebrow, .hero-role{ animation: rise .7s cubic-bezier(.2,.7,.3,1) both; }
.hero-name{ animation-delay: .08s; }
.hero-role{ animation-delay: .22s; }
@media (prefers-reduced-motion: reduce){ .hero-name, .hero-eyebrow, .hero-role{ animation: none; } }

/* ---------- page header (discipline pages) ---------- */
.page-header{ padding-block: 44px 38px; border-bottom: 2.5px solid var(--ink); }
.page-eyebrow{
  display: inline-block; font-family: var(--font-mono); font-weight: 700; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--cochineal-ink); background: var(--cochineal);
  border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px;
  transform: rotate(-2deg); margin: 0 0 16px;
}
.back-link{
  display: inline-block; font-family: var(--font-mono); font-weight: 700; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); text-decoration: none;
  margin-bottom: 18px; transition: color .15s ease;
}
.back-link:hover, .back-link:focus-visible{ color: var(--ink); }
.page-title{
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.2rem, 7vw, 4rem); line-height: 1; margin: 0 0 18px;
  text-wrap: balance;
}
.page-intro{ font-size: 1.05rem; color: var(--muted); max-width: 62ch; line-height: 1.6; }

/* ---------- case-study copy (project detail pages) ---------- */
.case-role{
  display: inline-block; font-family: var(--font-mono); font-weight: 700; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--paper);
  background: var(--ink); border-radius: 999px; padding: 6px 14px; margin: 0 0 18px;
}
.case-copy h2{
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem); margin: 0 0 14px;
}
.case-copy p{ color: var(--muted); line-height: 1.7; margin: 0 0 16px; font-size: 1.02rem; }
.case-copy p:last-child{ margin-bottom: 0; }

/* text sitting beside a piece, in the full-bleed margin either side of it */
.case-split{
  width: 100vw; position: relative; left: 50%; margin-left: -50vw;
  display: flex; align-items: stretch; min-height: 48vh;
  background: var(--paper-2);
  border-top: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
}
.case-split-art{
  flex: 1 1 56%; min-width: 0; display: flex; align-items: center; justify-content: center;
  padding: 40px clamp(16px, 4vw, 48px);
}
.case-split-art img{
  display: block; width: auto; height: auto; max-width: 100%; max-height: 64vh;
  box-shadow: 0 18px 40px rgba(21,19,15,0.18);
}
.case-split-copy{
  flex: 1 1 44%; min-width: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 48px clamp(20px, 5vw, 64px);
}
.case-split-copy .case-copy{ max-width: 48ch; }
.case-split.is-reverse{ flex-direction: row-reverse; }
@media (max-width: 860px){
  .case-split, .case-split.is-reverse{ flex-direction: column; min-height: 0; }
  .case-split-art{ padding: 28px 20px 0; }
  .case-split-copy{ padding: 28px 20px 40px; }
}

/* text sitting in the gap between two images in a full-bleed row */
.bleed-row .case-mid-copy{
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 32px clamp(16px, 3vw, 40px); overflow: auto;
}
.bleed-row .case-mid-copy .case-copy{ max-width: 42ch; }
@media (max-width: 760px){
  .bleed-row .case-mid-copy{ padding: 28px 20px; }
}

/* ---------- section scaffolding ---------- */
section{ padding-block: 52px; }
.section-head{
  display:flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 28px;
}
.section-head h2{
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 0;
}
.section-head span{ color: var(--muted); font-size: 0.9rem; max-width: 34ch; text-align: right; }

.done-tag{
  display: inline-block; vertical-align: middle; margin-left: 10px;
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 999px;
  background: var(--mint); color: var(--ink); border: 1.5px solid var(--ink);
}

/* ---------- work / link grid ---------- */
.work-grid{ display: grid; gap: 26px; grid-template-columns: repeat(6, 1fr); }
.tile{
  position: relative; border: 2.5px solid var(--ink); border-radius: 10px;
  overflow: hidden; background: var(--paper-2);
  display: flex; flex-direction: column; min-width: 0;
  box-shadow: 6px 6px 0 var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
a.tile{ text-decoration:none; }
a.tile:hover, a.tile:focus-visible,
button.tile-project:hover, button.tile-project:focus-visible{
  transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--shadow);
}
a.tile:active, button.tile-project:active{ transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--shadow); }

.tile.span-6{ grid-column: span 6; }
.tile.span-4{ grid-column: span 4; }
.tile.span-3{ grid-column: span 3; }
.tile.span-2{ grid-column: span 2; }
@media (max-width: 760px){
  .work-grid{ grid-template-columns: repeat(2, 1fr); }
  .tile.span-6, .tile.span-4, .tile.span-3, .tile.span-2{ grid-column: span 2; }
}

.tile-art{ aspect-ratio: 16 / 10; position: relative; display:block; overflow: hidden; border-bottom: 2.5px solid var(--ink); }
.tile.span-6 .tile-art{ aspect-ratio: 21 / 9; }

.tile-img{
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .25s ease;
}
button.tile-project:hover .tile-img,
button.tile-project:focus-visible .tile-img{ transform: scale(1.04); }

/* home-page tile art: a loose pile of real project photos that deals
   itself out one card at a time, each new one landing slightly off-kilter
   on top of the last, then clearing and dealing again. */
.img-stack{ background: var(--paper-2); }
.stack-frame{
  position: absolute; top: 70%; left: 50%;
  width: 66%; height: 66%; margin: -33% 0 0 -33%;
  object-fit: cover; display: block;
  border: 3px solid var(--paper); border-radius: 6px;
  box-shadow: 4px 4px 0 var(--ink);
  opacity: 0; pointer-events: none;
  transform: translate(0,0) rotate(0deg) scale(.858);
  transition: opacity .4s ease, transform .5s cubic-bezier(.22,.8,.3,1);
}
.stack-frame:nth-child(1){ z-index: 1; }
.stack-frame:nth-child(2){ z-index: 2; }
.stack-frame:nth-child(3){ z-index: 3; }
.stack-frame:nth-child(4){ z-index: 4; }
.stack-frame:nth-child(5){ z-index: 5; }
.stack-frame:nth-child(6){ z-index: 6; }
.stack-frame.is-shown{ opacity: 1; }
.stack-frame:nth-child(1).is-shown{ transform: translate(-10%, -5%) rotate(-7deg) scale(1.034); }
.stack-frame:nth-child(2).is-shown{ transform: translate(9%, -8%) rotate(5deg) scale(1.067); }
.stack-frame:nth-child(3).is-shown{ transform: translate(-6%, 8%) rotate(-4deg) scale(1.1); }
.stack-frame:nth-child(4).is-shown{ transform: translate(8%, 6%) rotate(7deg) scale(1.133); }
.stack-frame:nth-child(5).is-shown{ transform: translate(-8%, -3%) rotate(3deg) scale(1.166); }
.stack-frame:nth-child(6).is-shown{ transform: translate(7%, 4%) rotate(-6deg) scale(1.199); }
@media (prefers-reduced-motion: reduce){
  .stack-frame{ transition: none; }
}

.placeholder-tag{
  position: absolute; top: 10px; right: 10px;
  background: var(--cochineal); color: var(--cochineal-ink);
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 4px; font-weight: 700; z-index: 3;
  border: 1.5px solid var(--ink);
}

.gallery-tag{
  position: absolute; top: 10px; right: 10px;
  background: var(--anil); color: var(--anil-ink);
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 4px; font-weight: 700; z-index: 3;
  border: 1.5px solid var(--ink);
}

/* Project tiles are <button>s so they're clickable into the lightbox;
   reset the button chrome but keep every other .tile rule above. */
button.tile{
  font: inherit; text-align: left; padding: 0; margin: 0; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
button.tile:focus-visible{ outline: 3px solid var(--anil); outline-offset: 2px; }

/* ---------- lightbox ---------- */
.lightbox{
  position: fixed; inset: 0; z-index: 50;
  background: rgba(10,9,6,0.94);
  display: flex; align-items: center; justify-content: center;
  padding:
    max(56px, calc(env(safe-area-inset-top, 0px) + 24px))
    max(56px, calc(env(safe-area-inset-right, 0px) + 24px))
    max(24px, env(safe-area-inset-bottom, 0px))
    max(56px, calc(env(safe-area-inset-left, 0px) + 24px));
  opacity: 0; visibility: hidden; transition: opacity .2s ease;
}
.lightbox.is-open{ opacity: 1; visibility: visible; }
body.lightbox-open{ overflow: hidden; }

.lightbox-figure{
  max-width: min(1100px, 100%); max-height: 100%;
  display: flex; flex-direction: column; gap: 16px; margin: 0;
}
.lightbox-img{
  max-width: 100%; max-height: 66vh; width: auto; height: auto;
  object-fit: contain; border-radius: 8px; display: block; margin: 0 auto;
  background: var(--paper-2); border: 3px solid #EDE7DB; box-shadow: 8px 8px 0 var(--anil);
}
.lightbox-figcaption{ color: #F5F0E2; }
.lightbox-tag{
  display: inline-block; background: var(--cochineal); color: var(--cochineal-ink);
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.04em; text-transform: uppercase;
  font-weight: 700; padding: 4px 10px; border-radius: 4px; margin-bottom: 10px;
  border: 1.5px solid #F5F0E2;
}
.lightbox-tag[hidden]{ display: none; }
.lightbox-cat{ font-family: var(--font-mono); font-size: 0.74rem; color: #C9BFA0; font-weight: 700; text-transform: uppercase; }
.lightbox-count[hidden]{ display: none; }
.lightbox-count{
  display: inline-block; background: var(--anil); color: var(--anil-ink);
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.04em;
  font-weight: 700; padding: 4px 10px; border-radius: 4px; margin: 0 0 10px 8px;
  border: 1.5px solid #F5F0E2;
}
.lightbox-title{
  font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800; margin: 5px 0 6px;
}
.lightbox-meta{ font-size: 0.92rem; color: #C9BFA0; max-width: 70ch; line-height: 1.55; }

.lightbox-close, .lightbox-prev, .lightbox-next{
  position: absolute; background: #F5F0E2;
  border: 2.5px solid #F5F0E2; color: var(--ink);
  width: 46px; height: 46px; border-radius: 50%; font-size: 1.3rem;
  line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform .12s ease, background .12s ease;
  box-shadow: 4px 4px 0 var(--anil);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover{ background: var(--cochineal); color: var(--cochineal-ink); }
.lightbox-close:active, .lightbox-prev:active, .lightbox-next:active{ transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--anil); }
.lightbox-close{ top: max(16px, env(safe-area-inset-top,0px)); right: max(16px, env(safe-area-inset-right,0px)); }
.lightbox-prev{ left: max(12px, env(safe-area-inset-left,0px)); top: 50%; transform: translateY(-50%); }
.lightbox-next{ right: max(12px, env(safe-area-inset-right,0px)); top: 50%; transform: translateY(-50%); }
@media (max-width: 640px){
  .lightbox-prev, .lightbox-next{ width: 40px; height: 40px; font-size: 1.1rem; }
}

/* ---------- full-bleed project band (breaks out of .wrap) ---------- */
.bleed{
  width: 100vw; position: relative;
  left: 50%; margin-left: -50vw;
}
.bleed-link{
  display:block; text-decoration:none; color: inherit;
  font: inherit; text-align:left; padding:0; cursor:pointer;
  -webkit-appearance:none; appearance:none; background:none; border:none;
}
.bleed-attached + .bleed-attached .bleed-row{ border-top: none; }
.bleed-row{
  display:flex; height: 58vh; min-height: 280px; max-height: 560px;
  border-top: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
  overflow: hidden; background: var(--paper-2);
}
.bleed-row img{
  flex: 1 1 0; width: 100%; height: 100%; min-width: 0;
  object-fit: cover; display: block;
  transition: transform .5s cubic-bezier(.2,.8,.3,1);
}
.bleed-link:hover .bleed-row img, .bleed-link:focus-visible .bleed-row img{ transform: scale(1.04); }
.bleed-link:focus-visible{ outline: 3px solid var(--anil); outline-offset: -3px; }

/* a single image inside a static (non-link) .bleed-row, clickable to open
   the lightbox at full size for a closer look */
.bleed-row button.bleed-pic{
  all: unset; flex: 1 1 0; min-width: 0; height: 100%; cursor: pointer; display: block;
}
.bleed-row button.bleed-pic img{
  width: 100%; height: 100%; object-fit: contain; display: block;
  transition: transform .5s cubic-bezier(.2,.8,.3,1);
}
.bleed-row button.bleed-pic:hover img, .bleed-row button.bleed-pic:focus-visible img{ transform: scale(1.04); }
.bleed-row button.bleed-pic:focus-visible{ outline: 3px solid var(--anil); outline-offset: -3px; z-index: 1; position: relative; }

.bleed-single{
  display: block; width: 100%; height: auto;
  border-top: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
  transition: transform .5s cubic-bezier(.2,.8,.3,1);
}
button.bleed-single-wrap{
  all: unset; display: block; width: 100%; cursor: pointer;
}
button.bleed-single-wrap:focus-visible{ outline: 3px solid var(--anil); outline-offset: -3px; }
button.bleed-single-wrap:hover .bleed-single,
button.bleed-single-wrap:focus-visible .bleed-single{ transform: scale(1.015); }
/* for near-square/portrait hero shots: a wide full-bleed frame stretched to
   fit them would either crop away half the shot or letterbox it — instead,
   show the whole piece at a sane size, centered on the page's own paper tone */
.bleed-frame{
  width: 100%; display:flex; justify-content:center; align-items:center;
  background: var(--paper-2); padding: 48px max(16px, env(safe-area-inset-left,0px));
  border-top: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
}
.bleed-frame img{
  display:block; width:auto; height:auto;
  max-width: min(100%, 620px); max-height: 70vh;
  box-shadow: 0 18px 40px rgba(21,19,15,0.18);
}
@media (max-width: 760px){
  .bleed-frame{ padding: 32px 16px; }
  .bleed-frame img{ max-height: 54vh; }
}
.bleed-caption{
  display:flex; align-items:center; justify-content: space-between; gap: 14px 24px;
  flex-wrap: wrap; padding: 18px max(16px, env(safe-area-inset-left,0px)) 28px;
}
.bleed-info{ display:flex; align-items:center; gap: 14px; flex-wrap: wrap; }
.bleed-info .tile-title{ font-size: 1.22rem; }
.bleed-arrow{
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700;
  white-space: nowrap; flex-shrink: 0;
}
@media (max-width: 760px){
  .bleed-row{ flex-direction: column; height: auto; max-height: none; }
  .bleed-row img{ height: 240px; }
}

.tile-body{
  padding: 16px 18px 20px;
  display:flex; flex-direction: column; gap: 7px;
}
.tile-cat{
  display: inline-block; align-self: flex-start;
  font-family: var(--font-mono); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--anil-ink); background: var(--anil); border: 1.5px solid var(--ink); border-radius: 4px;
  padding: 3px 8px; transform: rotate(-1deg); font-weight: 700;
}
.tile-title{ font-family: var(--font-display); font-size: 1.18rem; font-weight: 700; }
.tile-meta{ font-size: 0.84rem; color: var(--muted); }
.tile-arrow{ font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink); font-weight: 700; margin-top: 4px; }

/* ---------- about ---------- */
.about-grid{ display:grid; grid-template-columns: 1.2fr 1fr; gap: 56px; }
@media (max-width: 760px){ .about-grid{ grid-template-columns: 1fr; gap: 36px; } }

.about-copy p{
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.4; max-width: 42ch; margin: 0 0 20px;
}
.about-copy p.small{
  font-family: var(--font-body); font-weight: 400; font-size: 0.98rem; color: var(--muted);
  max-width: 52ch; line-height: 1.6;
}

.cap-list{ display:flex; flex-direction: column; counter-reset: cap; }
.cap-row{
  position: relative; display:flex; justify-content: space-between; gap: 16px;
  padding: 14px 0 14px 46px; border-top: 2px solid var(--line); font-size: 0.98rem;
}
.cap-row:last-child{ border-bottom: 2px solid var(--line); }
.cap-row::before{
  counter-increment: cap; content: counter(cap, decimal-leading-zero);
  position: absolute; left: 0; top: 50%; transform: translateY(-50%) rotate(-5deg);
  width: 30px; height: 30px; border-radius: 7px; background: var(--anil); color: var(--anil-ink);
  border: 2px solid var(--ink); font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.cap-row:nth-child(3n+2)::before{ background: var(--cochineal); color: var(--cochineal-ink); transform: translateY(-50%) rotate(4deg); }
.cap-row:nth-child(3n+3)::before{ background: var(--ink); color: var(--paper); transform: translateY(-50%) rotate(-3deg); }
.cap-row b{ font-weight: 700; }
.cap-row span{ color: var(--muted); text-align: right; max-width: 24ch; font-size: 0.88rem; }

.tools{ margin-top: 30px; display:flex; flex-wrap: wrap; gap: 10px; }
.tool{
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; border: 2px solid var(--ink);
  border-radius: 7px; padding: 6px 13px; color: var(--ink); background: var(--paper-2);
  box-shadow: 3px 3px 0 var(--shadow);
  min-width: 150px; text-align: center;
}
.tool:nth-child(odd){ transform: rotate(-1.5deg); }
.tool:nth-child(even){ transform: rotate(1.5deg); }
.tool:nth-child(3n+1){ background: var(--anil); color: var(--anil-ink); }
.tool:nth-child(3n+2){ background: var(--cochineal); color: var(--cochineal-ink); }

/* ---------- history ---------- */
.history{ display:flex; flex-direction: column; }
.hist-row{ display:grid; grid-template-columns: 140px 1fr 160px; gap: 20px; padding: 18px 0; border-top: 2px solid var(--line); }
.history .hist-row:last-child{ border-bottom: 2px solid var(--line); }
.hist-when{ font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); padding-top: 2px; }
.hist-what b{ font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.hist-what div.role{ color: var(--muted); font-size: 0.9rem; margin-top: 2px; }
.hist-tag{
  justify-self: end; align-self: start; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink); background: var(--paper-2);
  border: 1.5px solid var(--ink); border-radius: 4px; padding: 4px 9px;
}
@media (max-width: 640px){
  .hist-row{ grid-template-columns: 1fr; gap: 6px; }
  .hist-tag{ justify-self: start; }
}

/* ---------- contact block (reused on every page footer) ---------- */
.contact{
  background: var(--ink); color: var(--paper);
  border-radius: 14px; padding: 48px clamp(20px, 5vw, 56px); margin-top: 8px;
  border: 2.5px solid var(--ink); box-shadow: 8px 8px 0 var(--cochineal);
}
.contact h2{
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.8rem, 4.4vw, 3rem); margin: 0 0 18px; text-wrap: balance; max-width: 20ch;
}
.contact p.lede{ color: rgba(245,240,226,0.78); max-width: 50ch; margin: 0 0 8px; font-size: 1.02rem; }
.contact-row{
  display:flex; flex-wrap:wrap; gap: 14px 28px; align-items: baseline;
  padding-top: 20px; border-top: 2px solid rgba(245,240,226,0.22);
}
.contact-item{ font-size: 0.98rem; }
.contact-row .contact-item:last-child{ align-self: flex-end; }
.contact-item .label{
  display:block; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.04em;
  color: rgba(245,240,226,0.55); font-size: 0.72rem; margin-bottom: 4px;
}
.copy-btn{
  background: var(--paper); border: 2px solid var(--paper); color: var(--ink);
  border-radius: 999px; padding: 5px 13px; font-size: 0.78rem; font-weight: 700;
  font-family: var(--font-mono); cursor: pointer; margin-left: 8px;
  box-shadow: 3px 3px 0 var(--anil); transition: transform .12s ease, box-shadow .12s ease;
}
.copy-btn:hover, .copy-btn:focus-visible{ background: var(--anil); color: var(--anil-ink); border-color: var(--paper); }
.copy-btn:active{ transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--anil); }

.foot{
  display:flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-block: 28px 48px; color: var(--muted); font-family: var(--font-mono); font-size: 0.76rem;
}
