/* debughive.com — the hive: the logo's black frame, honey and circuit cyan,
   on a honeycomb ground. Dark first; a paper-white light theme follows the OS. */
:root {
  color-scheme: dark;
  --ground: #050708;
  --paper: #0c1012;
  --faint: #131a1d;
  --ink: #eef3f2;
  --muted: #93a3a6;
  --line: #253236;
  --honey: #ffe600;
  --honey-soft: #2e2a07;
  --honey-ink: #ffee55;
  --circuit: #22e5ea;
  --circuit-soft: #0b3133;
  --bug: #ff5d4f;
  --violet: #b892ff;
  --violet-soft: #2a1e43;
  --on-honey: #050708;
  --comb: rgba(255, 230, 0, 0.06);
  --display: "Saira Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 48px);
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --ground: #eef0ec; --paper: #ffffff; --faint: #f5f6f2; --ink: #0b0f10; --muted: #56656a; --line: #d6dcd8;
    --honey: #e8c700; --honey-soft: #fff8c2; --honey-ink: #6e5e00; --circuit: #00838a; --circuit-soft: #d3f3f3;
    --bug: #c93a2e; --violet: #6b45b8; --violet-soft: #ece4fa; --on-honey: #0b0f10; --comb: rgba(11, 15, 16, 0.05);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--ground); color: var(--ink);
  font: 400 1.0625rem/1.55 var(--body);
}
img { max-width: 100%; height: auto; }
a { color: var(--circuit); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--honey); }
:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.02; margin: 0; text-wrap: balance; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--honey); color: var(--on-honey); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* The honeycomb ground. The bees (Post-MVP, Q17) will live in #hive. */
#hive {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16v32L28 64 0 48V16zM28 64v33M0 48l-28 16M56 48l28 16' fill='none' stroke='%23888' stroke-opacity='.12' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 97px;
  mask-image: radial-gradient(ellipse at 70% 10%, #000 0%, transparent 70%);
}

/* Header */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  padding: 0.8rem var(--gutter);
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.mark { display: flex; align-items: center; gap: 0.1rem; color: var(--ink); text-decoration: none; font: 800 1.5rem/1 var(--display); }
.mark b { color: var(--circuit); font-weight: 800; }
.top nav { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-right: auto; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); }
.top nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--honey); }
.tools { display: flex; align-items: center; gap: 0.7rem; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; text-decoration: none; font: 600 0.75rem/1 var(--mono); }
.lang span { padding: 0.4rem 0.5rem; color: var(--muted); }
.lang span.on { background: var(--honey); color: var(--on-honey); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; justify-content: center;
  background: var(--honey); color: var(--on-honey); border: 0; border-radius: 4px;
  padding: 0.75rem 1.2rem; font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer;
}
.btn:hover { color: var(--on-honey); filter: brightness(1.08); }
.btn small { font-weight: 500; opacity: 0.75; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--honey); color: var(--ink); }
.btn.small { padding: 0.5rem 0.8rem; font-size: 0.9rem; }
.soft { font-weight: 600; text-decoration: none; }
.row { display: flex; gap: 0.8rem; flex-wrap: wrap; }

main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 2.5rem var(--gutter) 4rem; display: grid; gap: 3.5rem; }

/* Home */
.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; padding-top: 1.5rem; }
.hero > div { display: grid; gap: 1.2rem; }
.hero h1 span { color: var(--honey); }
.eyebrow { font: 600 0.8rem/1.3 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--circuit); }
.badge-hex { justify-self: center; width: min(100%, 320px); filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45)); }
.band { display: grid; gap: 1.2rem; }
.band .head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.band .head a { font-weight: 600; text-decoration: none; }

.grid { display: grid; gap: 1rem; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.scard { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 1.1rem; display: grid; gap: 0.6rem; align-content: start; }
.scard.tall p { color: var(--muted); font-size: 0.98rem; }
.shead { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0.8rem; align-items: center; }
.shead h3 { margin: 0; }
.hex {
  width: 44px; height: 50px; display: grid; place-items: center;
  background: var(--honey); color: var(--on-honey); font: 800 0.95rem/1 var(--display);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chips li { border: 1px solid var(--line); background: var(--faint); border-radius: 3px; padding: 0.35rem 0.6rem; font: 500 0.85rem/1 var(--mono); }

/* Projects */
.pcard { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1.1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 1.1rem; }
.pbody { display: grid; gap: 0.5rem; align-content: start; min-width: 0; }
.prow { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.prow h3 a { color: var(--ink); text-decoration: none; }
.prow h3 a:hover { color: var(--honey); }
.pbody p { color: var(--muted); font-size: 0.98rem; }
.stack { font: 500 0.8rem/1.4 var(--mono); color: var(--circuit) !important; }
.applink { font-weight: 600; }
/* Whole tile is the link (review 2026-10-12): the title's link covers the card. */
.pcard { position: relative; transition: border-color 0.15s; }
.pcard:hover, .pcard:focus-within { border-color: var(--honey); }
.tile-link::after { content: ""; position: absolute; inset: 0; border-radius: 6px; }
.tile-link:focus-visible { outline: none; }
.pcard:has(.tile-link:focus-visible) { outline: 2px solid var(--honey); outline-offset: 2px; }
.pcard .applink, .pcard .hx { position: relative; z-index: 1; }

/* Hexagon badges with a short code; the full name shows on hover or focus.
   The wrapper carries the label because the clipped hexagon would cut it off. */
.hx { position: relative; display: inline-grid; outline: none; }
.hx[data-tip]::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; translate: -50% 0;
  background: var(--ink); color: var(--ground); font: 600 0.78rem/1.2 var(--body); padding: 0.35rem 0.55rem; border-radius: 4px;
  white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.12s; z-index: 5;
}
.hx:hover::after, .hx:focus-visible::after { opacity: 1; }
.hx:focus-visible > span { outline: 2px solid var(--ink); }
.hexes { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.hex.sm { width: 30px; height: 34px; font-size: 0.72rem; }
/* Status: an outlined hexagon so it doesn't read as a service or a button. */
.shex {
  position: relative; width: 44px; height: 50px; display: grid; place-items: center;
  font: 800 0.72rem/1 var(--display); letter-spacing: 0.02em; text-transform: uppercase;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--tone); color: var(--tone); isolation: isolate;
}
.shex::before {
  content: ""; position: absolute; inset: 2px; z-index: -1; background: var(--paper);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.shex.live { --tone: var(--circuit); }
.shex.dev { --tone: var(--honey); }
.shex.new { --tone: var(--violet); }
.shex.hold { --tone: var(--muted); }

/* The fanned deck: decorative, never opened (Q4, Q25). */
.deck { position: relative; width: 120px; height: 120px; }
.deck i {
  position: absolute; left: 30px; top: 12px; width: 62px; height: 92px; border-radius: 5px;
  border: 1px solid var(--line); background: linear-gradient(var(--circuit-soft) 0 20%, var(--faint) 20% 100%);
  transform-origin: 50% 100%; transition: transform 0.25s ease;
}
.deck i:nth-child(1) { transform: rotate(-16deg); }
.deck i:nth-child(2) { background: linear-gradient(var(--honey-soft) 0 20%, var(--faint) 20% 100%); }
.deck i:nth-child(3) { transform: rotate(16deg); background: linear-gradient(var(--violet-soft) 0 20%, var(--faint) 20% 100%); }
.pcard:hover .deck i:nth-child(1) { transform: rotate(-22deg); }
.pcard:hover .deck i:nth-child(3) { transform: rotate(22deg); }
.project .split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.project .split > div { display: grid; gap: 1rem; justify-items: start; }
.project .deck { width: 220px; height: 220px; justify-self: center; }
.project .deck i { left: 55px; top: 20px; width: 112px; height: 170px; }
.project .desc { margin: 0; color: var(--muted); max-width: 64ch; }
.project h2 { margin: 0.4rem 0 0; font-size: 1.3rem; }
.project .hex.sm { width: 38px; height: 44px; font-size: 0.85rem; }

/* Pages */
.page { display: grid; gap: 1.3rem; align-content: start; }
.page.narrow { max-width: 720px; }
.cvrow { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; border-left: 2px solid var(--line); }
.timeline li { padding-left: 1.2rem; position: relative; display: grid; gap: 0.25rem; }
.timeline li::before {
  content: ""; position: absolute; left: -9px; top: 0.35rem; width: 16px; height: 18px; background: var(--honey);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.timeline .when { font: 600 0.8rem/1 var(--mono); color: var(--circuit); }
.timeline small { font: 500 0.95rem var(--body); color: var(--muted); }
.timeline .role { font-weight: 600; }
.timeline p:last-child { color: var(--muted); max-width: 70ch; }
.edu { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.edu li { display: grid; gap: 0.1rem; }
.edu span { color: var(--muted); font-size: 0.95rem; }
.empty { border: 1px dashed var(--line); border-radius: 6px; padding: 2rem; display: grid; gap: 1rem; justify-items: start; background: var(--paper); }

/* Forms */
form { display: grid; gap: 1rem; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field span { font: 700 0.75rem/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 4px;
  padding: 0.7rem 0.8rem; font: 400 1rem/1.4 var(--body);
}
.field select option, .field select optgroup { background: var(--paper); color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--honey); }
.field [aria-invalid="true"] { border-color: var(--bug); }
form .btn { justify-self: start; }
.status { color: var(--circuit); min-height: 1.4em; }

/* Signed-in project area (/app/). */
.notice { border: 1px solid var(--honey); border-radius: 4px; padding: 0.7rem 0.9rem; }
.rooms { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); margin-top: 1rem; }
.room-card {
  display: grid; gap: 0.5rem; padding: 1.1rem 1.2rem; background: var(--paper); border: 1px solid var(--line);
  border-radius: 6px; color: var(--ink); text-decoration: none;
}
.room-card:hover { border-color: var(--honey); color: var(--ink); }
.room-name { font: 800 1.5rem/1.1 var(--display); }
.room-tabs { display: grid; gap: 0.35rem; margin-top: 0.3rem; font-size: 0.9rem; }
.room-tabs b { display: inline-block; min-width: 8.5rem; font-weight: 600; }
.pill { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 999px; font: 600 0.75rem/1.4 var(--mono); border: 1px solid currentColor; white-space: nowrap; }
.pill.approved { color: var(--circuit); }
.pill.ready { color: var(--honey); }
.pill.modified { color: var(--muted); }
.room { padding: 1.2rem clamp(16px, 3vw, 2.5rem) 1.5rem; display: grid; gap: 0.8rem; }
.room-head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.room-head h1 { margin: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 0.6rem; }
.tabs [role="tab"] {
  display: grid; gap: 0.3rem; justify-items: start; background: var(--paper); color: var(--ink); border: 1px solid var(--line);
  border-radius: 6px; padding: 0.55rem 0.8rem; font: 500 0.95rem/1.2 var(--body); cursor: pointer;
}
.tabs [role="tab"][aria-selected="true"] { border-color: var(--honey); box-shadow: inset 0 -3px 0 var(--honey); }
.tab-tools { margin-left: auto; display: flex; gap: 0.8rem; align-items: center; }
#tab-frame { width: 100%; height: calc(100dvh - 15rem); min-height: 480px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.outbox article { border: 1px solid var(--line); border-radius: 6px; padding: 0.9rem 1.1rem; margin: 1rem 0; background: var(--paper); }
.outbox h2 { margin: 0.2rem 0 0.5rem; font-size: 1.2rem; }
.outbox pre { white-space: pre-wrap; font: 400 0.9rem/1.5 var(--mono); margin: 0 0 0.8rem; }
.outbox .meta { margin: 0; color: var(--muted); font: 400 0.8rem/1.3 var(--mono); }

/* Contact pop-up (Q77). */
.pop {
  width: min(720px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto;
  background: var(--ground); color: var(--ink); border: 1px solid var(--line); border-radius: 6px;
  padding: 1.6rem 1.8rem 1.2rem;
}
.pop::backdrop { background: rgba(0, 0, 0, 0.7); }
.pop h2 { margin: 0 2rem 0.4rem 0; }
.pop .lede { margin-top: 0; }
.pop-close { position: absolute; top: 0.6rem; right: 0.6rem; }
.pop-close button {
  background: none; border: 0; color: var(--muted); font: 400 1.8rem/1 var(--body);
  width: 2.2rem; height: 2.2rem; cursor: pointer; border-radius: 4px;
}
.pop-close button:hover, .pop-close button:focus-visible { color: var(--honey); }
@media (max-width: 560px) { .pop { padding: 1.2rem 1rem 1rem; } }
.status.err { color: var(--bug); }

.foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.2rem var(--gutter); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }

/* The bug hunter. The layer never takes clicks; only the spider itself does. */
#spider-layer { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.spider { position: absolute; left: 0; top: 0; width: 58px; height: 58px; pointer-events: auto; cursor: pointer; color: var(--ink); will-change: transform; }
.spider svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.5)); }
.spider .legs path { transform-box: fill-box; transform-origin: 50% 50%; }
.spider.moving .legs .a { animation: step 0.18s ease-in-out infinite alternate; }
.spider.moving .legs .b { animation: step 0.18s ease-in-out infinite alternate-reverse; }
.spider.twitch svg { animation: twitch 0.07s linear 4; }
@keyframes step { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
@keyframes twitch { 0% { transform: translate(-2px, 1px) rotate(-6deg); } 100% { transform: translate(2px, -1px) rotate(6deg); } }
.thread { position: absolute; top: 0; width: 1px; background: color-mix(in srgb, var(--ink) 55%, transparent); pointer-events: none; }

@media (max-width: 860px) {
  .hero, .project .split { grid-template-columns: minmax(0, 1fr); }
  .project .split .deck { order: -1; }
  .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.two, .pair { grid-template-columns: minmax(0, 1fr); }
  .badge-hex { width: 200px; }
}
@media (max-width: 560px) {
  .grid.three { grid-template-columns: minmax(0, 1fr); }
  .pcard { grid-template-columns: minmax(0, 1fr); }
  .top nav { order: 3; width: 100%; gap: 0.9rem; }
}

/* The build process (home) */
.process .steps { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: none; }
.process .steps li { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 1.1rem; display: grid; gap: 0.55rem; align-content: start; }
.process .steps li:not(:last-child)::after {
  content: ""; position: absolute; right: -1rem; top: 2.1rem; width: 1rem; height: 2px; background: var(--circuit);
}
.process .steps p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 860px) { .process .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .process .steps li::after { display: none; } }
@media (max-width: 560px) { .process .steps { grid-template-columns: minmax(0, 1fr); } }

/* Home: compact recent work and a one-line services list (review 2026-10-11) */
.minis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; }
.mini {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 0.7rem; row-gap: 0.35rem; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 0.7rem 0.8rem; color: var(--ink); text-decoration: none;
}
.mini:hover { border-color: var(--honey); color: var(--ink); }
.mini .deck { grid-row: span 2; width: 52px; height: 52px; }
.mini .deck i { left: 14px; top: 5px; width: 26px; height: 40px; }
.mini:hover .deck i:nth-child(1) { transform: rotate(-22deg); }
.mini:hover .deck i:nth-child(3) { transform: rotate(22deg); }
.mini b { font: 700 1.05rem/1.1 var(--display); }
.mini .hx { justify-self: start; }
.mini .shex { width: 34px; height: 38px; font-size: 0.6rem; }
.services-line { gap: 0.8rem; }
.services-line h2 { font-size: 1.4rem; }
.services-line .chips a { color: var(--ink); text-decoration: none; }
.services-line .chips li:hover { border-color: var(--honey); }
.pcard { scroll-margin-top: 90px; }
@media (max-width: 860px) { .minis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .minis { grid-template-columns: minmax(0, 1fr); } }
/* A single row: whatever doesn't fit is hidden, never wrapped. */
.chips.one-row { flex-wrap: nowrap; overflow: hidden; mask-image: linear-gradient(90deg, #000 85%, transparent); }
.chips.one-row li { flex: none; }

/* The build process as honeycomb cells (reviews 2026-10-11). Small cells show
   only the title; hover, focus, a tap, or the idle sequence (process.ts)
   lifts one cell and grows it to show its description. Cells are absolutely
   placed, so growing never moves anything else. A zig-zag sideways on wide
   screens, downward on phones; arrows (cell = 100 units) guide the eye, each
   in the colour of the cell it leaves. */
@property --cw { syntax: "<length>"; inherits: true; initial-value: 0px; }
@property --lift { syntax: "<length>"; inherits: true; initial-value: 0px; }
.process { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 4.5rem; }
.process .intro { display: grid; gap: 1rem; align-content: center; }
.combs {
  --w: 172px; --big: 262px; --h: calc(var(--w) * 1.1547); --gap: calc(var(--w) * 0.024);
  position: relative; justify-self: center; margin-block: 2.5rem;
  width: calc(var(--w) * 2.572); height: calc(var(--w) * 2.045);
}
.combs ol { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.combs li {
  --cw: var(--w); --lift: 0px;
  --L: calc(var(--i) * (var(--w) / 2 + var(--gap)));
  --T: calc(var(--odd) * (var(--h) * 0.75 + var(--gap)));
  position: absolute; z-index: 0; cursor: pointer;
  width: var(--cw); height: calc(var(--cw) * 1.1547);
  left: calc(var(--L) - (var(--cw) - var(--w)) / 2);
  top: calc(var(--T) - (var(--cw) - var(--w)) * 0.57735 - var(--lift));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: color-mix(in srgb, var(--circuit) 55%, var(--line));
  transition: --cw 0.35s ease, --lift 0.35s ease;
}
.combs li:nth-child(odd) { background: color-mix(in srgb, var(--honey) 60%, var(--line)); }
.combs li:focus-visible { outline: none; background: var(--ink); }
.combs li:hover, .combs li:focus-visible, .combs li.on { --cw: var(--big); --lift: 12px; z-index: 3; }
.combs li > div {
  position: absolute; inset: 2px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: color-mix(in srgb, var(--circuit-soft) 45%, var(--paper));
  display: grid; align-content: center; justify-items: center; gap: 0.45rem;
  padding: 22% 15%; text-align: center;
}
.combs li:nth-child(odd) > div { background: color-mix(in srgb, var(--honey-soft) 60%, var(--paper)); }
.combs h3 { font-size: 1.2rem; color: var(--honey); transition: font-size 0.35s ease; }
.combs li:nth-child(even) h3 { color: var(--circuit); }
.combs p { font-size: 0.86rem; line-height: 1.4; color: var(--muted); opacity: 0; max-height: 0; overflow: hidden; transition: opacity 0.25s ease, max-height 0.35s ease; }
.combs li:hover h3, .combs li:focus-visible h3, .combs li.on h3 { font-size: 1.45rem; }
.combs li:hover p, .combs li:focus-visible p, .combs li.on p { opacity: 1; max-height: 9em; transition-delay: 0.12s; }
.arrows { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.arrows.down { display: none; }
@media (max-width: 1140px) {
  .process { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .combs { --w: min(160px, 42vw); --big: min(262px, 72vw); width: calc(var(--w) * 1.524); height: calc(var(--w) * 3.825); }
  .combs li { --L: calc(var(--odd) * (var(--w) / 2 + var(--gap))); --T: calc(var(--i) * (var(--h) * 0.75 + var(--gap))); }
  .arrows.across { display: none; }
  .arrows.down { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .combs li, .combs h3, .combs p { transition: none; }
}
/* All arrows step aside while any cell is open (review 2026-10-11). */
.arrows { transition: opacity 0.2s ease; }
.combs:has(li:hover, li:focus-visible, li.on) .arrows { opacity: 0; }

/* Cell colours, shared by the cells and the arrows that grow out of them. */
.combs {
  --honey-edge: color-mix(in srgb, var(--honey) 60%, var(--line));
  --honey-fill: color-mix(in srgb, var(--honey-soft) 60%, var(--paper));
  --circuit-edge: color-mix(in srgb, var(--circuit) 55%, var(--line));
  --circuit-fill: color-mix(in srgb, var(--circuit-soft) 45%, var(--paper));
}
.combs li { background: var(--circuit-edge); }
.combs li:nth-child(odd) { background: var(--honey-edge); }
.combs li > div { background: var(--circuit-fill); }
.combs li:nth-child(odd) > div { background: var(--honey-fill); }
.arrows .tab polygon { stroke: none; }
.arrows .tab path { fill: none; stroke-width: 2px; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.arrows .tab.honey polygon { fill: var(--honey-fill); }
.arrows .tab.honey path { stroke: var(--honey-edge); }
.arrows .tab.circuit polygon { fill: var(--circuit-fill); }
.arrows .tab.circuit path { stroke: var(--circuit-edge); }

/* The comb on the left, "How I build" on the right (review 2026-10-11). */
@media (min-width: 1141px) {
  .process { grid-template-columns: auto minmax(0, 1fr); }
  .process .combs { order: -1; }
}

/* Home fits a standard desktop window without scrolling (review 2026-10-11).
   Home only — other pages keep their spacing. */
@media (min-width: 1141px) {
  main.home { gap: 1.6rem; padding-block: 1.4rem 1.2rem; }
  main.home .hero { padding-top: 0; gap: 2rem; }
  main.home .hero > div { gap: 0.8rem; }
  main.home .hero h1 { font-size: clamp(2.2rem, 3.4vw, 3.3rem); }
  main.home .badge-hex { width: 190px; }
  main.home .band { gap: 0.8rem; }
  main.home .band h2 { font-size: 1.8rem; }
  main.home .combs { --w: 160px; margin-block: 0.4rem; }
  main.home .process .intro { gap: 0.9rem; }
  body:has(main.home) .foot { padding-block: 0.8rem; }
}
/* Bigger logo that hangs down into the process section without taking space
   (review 2026-10-11); the process text stays above it. */
@media (min-width: 1141px) {
  main.home .hero { align-items: start; }
  main.home .badge-hex { width: 290px; margin-bottom: -110px; position: relative; z-index: 0; }
  main.home .process { position: relative; z-index: 1; }
}
/* Header: "Contact Me" stays in the menu, in yellow (review 2026-10-11). */
.top nav a.cta { color: var(--honey); }
.top nav a.cta:hover, .top nav a.cta[aria-current="page"] { color: var(--honey); }

/* Phones, portrait (review 2026-10-11): the whole menu on one line, and on
   Home the logo comes first, above the name and title. */
@media (max-width: 560px) {
  .top nav { gap: 0.75rem; flex-wrap: nowrap; }
  .top nav a { font-size: 0.82rem; white-space: nowrap; }
}
@media (max-width: 860px) {
  main.home .badge-hex { order: -1; width: 170px; }
}
@media (max-width: 380px) {
  .top nav { gap: 0.55rem; }
  .top nav a { font-size: 0.76rem; }
}

/* Bottom row of the sideways comb sits 2px lower, evening out the visible
   gaps between the rows and within them (review 2026-10-11). The arrow that
   starts on a bottom cell moves with it (≈2px in cell units). Not on phones,
   where the comb runs downward. */
@media (min-width: 641px) {
  .combs { height: calc(var(--w) * 2.045 + 2px); }
  .combs li { --T: calc(var(--odd) * (var(--h) * 0.75 + var(--gap) + 2px)); }
  .arrows.across .tab.circuit { translate: 0 1.2px; }
}
/* Phones: language switch and Sign in pushed to the right edge (review 2026-10-11). */
@media (max-width: 560px) {
  .top .tools { margin-left: auto; }
}
