/* Self-hosted fonts (latin subset) - identical faces to www.hackhouse.com,
   served from this origin so no page contacts fonts.googleapis.com or
   fonts.gstatic.com. font-display:swap keeps text visible while they load. */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/barlow-condensed-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/barlow-condensed-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/barlow-condensed-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/barlow-condensed-900-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/inter-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/space-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/space-mono-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ========================================================================
   HackHouse theme for tools.hackhouse.com
   Mirrors www.hackhouse.com/static/css/style.css (as of 2026-11-06). The
   main site colours everything through TONE tokens (--bg, --text, --line …)
   so any band can be dark or light; the older --hh-* names every tool page
   uses are aliases onto those tokens, declared on every element so they
   re-resolve inside a light band exactly as the main site's legacy names do.

   Load order matters: this file is linked BEFORE each page's inline <style>,
   so a page can still override anything it genuinely needs to.
   ======================================================================== */

/* ── BRAND ───────────────────────────────────────────────────────────── */
:root {
  --lime:       #c8f000;
  --lime-hover: #d8ff2a;
  --ink:        #0b0b0b;

  --font-heading: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-mono:    'Space Mono', ui-monospace, monospace;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 3px;

  /* status colours - green is the brand accent, so "ok" shares it and the
     others stay muted enough not to compete with it. */
  --hh-ok:   #c8f000;
  --hh-warn: #ffb020;
  --hh-err:  #ff4d4f;

  --hh-nav-h: 96px;
}

/* ── TONES ───────────────────────────────────────────────────────────── */
/* Dark tone: the default for the whole page */
body,
.hh-nav, .hh-footer {
  --bg:          #0e0e0e;
  --bg-raised:   #161616;
  --text:        #f4f4f2;
  --text-soft:   #c6c6c1;
  --text-muted:  #92928c;
  --line:        #272727;
  --accent-text: #c8f000;
  --hover-bg:    #151806;
  --land:        #202020;
  --land-line:   #3a3a3a;
}

/* Light (white) tone utility */
.tone-light {
  --bg:          #ffffff;
  --bg-raised:   #f4f4f0;
  --text:        #121212;
  --text-soft:   #3a3a37;
  --text-muted:  #63635e;
  --line:        #e1e1da;
  --accent-text: #4b5a00;
  --hover-bg:    #f7f9e9;
  --land:        #ecece5;
  --land-line:   #d0d0c7;
}

/* Site theme: alternating dark and light-grey bands; cards a shade lighter */
.theme-ag main > section.hh-section:nth-of-type(odd) {
  --bg:          #ecece8;
  --card-bg:     #f6f6f3;
  --bg-raised:   #f6f6f3;
  --text:        #121212;
  --text-soft:   #393936;
  --text-muted:  #5f5f5a;
  --line:        #d6d6cf;
  --accent-text: #465400;
  --hover-bg:    #fbfcf3;
  --land:        #f9f9f6;
  --land-line:   #c9c9c0;
}

/* The tool pages were written against these names; keep them as aliases so
   every page recolours with the tokens above without touching its markup. */
*, ::before, ::after {
  --hh-black:        var(--ink);
  --hh-dark:         var(--bg);
  --hh-card:         var(--bg-raised);
  --hh-border:       var(--line);
  --hh-border-lit:   var(--land-line);
  --hh-green:        var(--accent-text);
  --hh-green-bright: var(--lime-hover);
  --hh-green-dim:    var(--hover-bg);
  --hh-green-glow:   rgba(200,240,0,0.30);
  --hh-white:        var(--text);
  --hh-gray:         var(--text-muted);
  --hh-light-gray:   var(--text-soft);
  --hh-font-heading: var(--font-heading);
  --hh-font-mono:    var(--font-mono);
  --hh-font-body:    var(--font-body);
  /* the main site's own legacy names, for markup copied from it */
  --white: var(--text);
  --gray: var(--text-muted);
  --light-gray: var(--text-soft);
  --green: var(--accent-text);
  --border: var(--line);
}

/* ── BASE ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
strong { color: var(--text); font-weight: 600; }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 9999; background: var(--lime); color: var(--ink); padding: 0.5rem 1rem; }

/* ── LAYOUT ──────────────────────────────────────────────────────────── */
.hh-container, .container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
@media (max-width: 560px) { .hh-container, .container { padding: 0 1.25rem; } }

/* Tool pages wrap their content in <main class="hh-main">: one measure, one
   set of gutters, under a sticky nav that needs no body padding. */
.hh-main { max-width: 1100px; margin: 0 auto; padding: 2.5rem 2rem 4rem; }
.hh-main.hh-wide { max-width: 1400px; }

/* ── TYPE ────────────────────────────────────────────────────────────── */
.t-label, .hh-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 0.9rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text);
  margin: 0 0 1rem;
  letter-spacing: 0;
}
h1, .t-page-title { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.08; margin-bottom: 1.25rem; }
h2, .t-section-title { font-size: clamp(1.75rem, 3vw, 2.4rem); margin-top: 2.5rem; }
h3 { font-size: 1.3rem; margin-top: 1.75rem; }
h4 { font-size: 1.05rem; margin-top: 1.25rem; }
.t-display { font-family: var(--font-heading); font-size: clamp(2.1rem, 3.6vw, 3.25rem); font-weight: 600; line-height: 1.05; max-width: 19ch; color: var(--text); }

.t-page-sub, .hh-lede { font-size: 1.02rem; color: var(--text-soft); line-height: 1.75; max-width: 700px; }
.t-card-title { display: block; font-size: 1.05rem; font-weight: 600; line-height: 1.35; color: var(--text); margin-bottom: 0.55rem; }
.t-card-body { font-size: 0.92rem; color: var(--text-soft); line-height: 1.65; }

.tag {
  display: inline-block;
  vertical-align: 2px;
  margin-left: 0.35rem;
  padding: 0.05rem 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  border: 1px solid currentColor;
  border-radius: 2px;
}

p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.4rem; }
li { margin-bottom: 0.35rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
small, .hh-small { font-size: 0.82rem; color: var(--text-soft); }

/* ── NAV ─────────────────────────────────────────────────────────────── */
/* Sticky rather than fixed: same bar, same heights, but it stays in flow so
   no page needs the main site's body padding-top. */
.hh-nav {
  position: sticky;
  top: 0;
  height: var(--hh-nav-h);
  z-index: 1000;
  background: #0b0b0b;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  transition: height 0.2s ease;
}
.hh-nav.scrolled { height: 76px; }
body:has(.hh-nav.scrolled) { --hh-nav-h: 76px; }

.hh-nav .hh-container { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.nav-brand, .hh-brand { display: flex; align-items: center; flex: 0 0 auto; }
.nav-brand img { height: 58px; width: auto; transition: height 0.2s ease; }
.hh-nav.scrolled .nav-brand img { height: 46px; }
.nav-brand picture { display: block; }

/* Phones: shorter bar with the wide logo */
@media (max-width: 560px) {
  :root { --hh-nav-h: 64px; }
  html { scroll-padding-top: 72px; }
  .hh-nav, .hh-nav.scrolled, body:has(.hh-nav.scrolled) { height: 64px; --hh-nav-h: 64px; }
  .nav-brand img, .hh-nav.scrolled .nav-brand img { height: 24px; width: auto; }
}

.nav-links { display: flex; list-style: none; align-items: center; gap: 0.15rem; margin: 0; padding: 0; }
.nav-links li { margin: 0; }
.nav-links a {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-soft);
  padding: 0.5rem 0.75rem;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); text-decoration: none; }
.nav-links a.active { box-shadow: inset 0 -2px 0 var(--lime); }

.nav-links .nav-cta { margin-left: 0.6rem; }
.nav-links .nav-cta a {
  background: var(--lime);
  color: var(--ink);
  font-weight: 600;
  border-radius: var(--radius);
  padding: 0.55rem 1rem;
}
.nav-links .nav-cta a:hover { background: var(--lime-hover); }
.nav-links .nav-cta a.active { box-shadow: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 40px; height: 40px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle:hover { background: none; transform: none; box-shadow: none; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--text); transition: transform 0.2s, opacity 0.15s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1000px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    background: #0b0b0b;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 2rem; }
  .nav-links a.active { box-shadow: inset 3px 0 0 var(--lime); }
  .nav-links .nav-cta { margin: 0.75rem 2rem 0; }
  .nav-links .nav-cta a { text-align: center; }
}

/* ── BUTTONS ─────────────────────────────────────────────────────────── */
/* Black text on the lime is deliberate: white on #c8f000 fails contrast. */
.btn, .hh-btn, button, input[type="submit"], input[type="button"] {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.85rem 1.4rem;
  background: var(--lime);
  color: var(--ink);
  border: 1.5px solid var(--lime);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
/* a bare <button> is a control inside a tool, not a call to action */
button, input[type="submit"], input[type="button"] { font-size: 0.88rem; padding: 0.6rem 1.1rem; }
.btn:hover, .hh-btn:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
  background: var(--lime-hover); border-color: var(--lime-hover); color: var(--ink); text-decoration: none;
}
button:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-primary { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn-primary:hover { background: var(--lime-hover); border-color: var(--lime-hover); color: var(--ink); }

.btn-outline, .hh-btn-outline, button.hh-btn-outline { background: transparent; color: var(--text); border-color: var(--text); }
.btn-outline:hover, .hh-btn-outline:hover, button.hh-btn-outline:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ── FORMS ───────────────────────────────────────────────────────────── */
label { display: block; margin: 0.9rem 0 0.35rem; font-weight: 500; color: var(--text); }

input[type="text"], input[type="number"], input[type="search"],
input[type="password"], input[type="email"], input[type="url"],
textarea, select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus { border-color: var(--lime); outline: none; }
input:disabled, textarea:disabled, select:disabled { opacity: 0.45; cursor: not-allowed; }
::placeholder { color: var(--text-muted); opacity: 1; }

input[type="checkbox"], input[type="radio"], input[type="range"], progress { accent-color: var(--lime); }
input[type="checkbox"], input[type="radio"] { width: auto; margin-right: 0.45rem; cursor: pointer; }

fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.75rem 1rem; margin-top: 0.75rem; }
legend { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); padding: 0 0.4rem; }

/* ── SURFACES ────────────────────────────────────────────────────────── */
.hh-card {
  background: var(--card-bg, var(--bg-raised));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 0 0 1.25rem;
}

/* ── SECTIONS (landing page) ─────────────────────────────────────────── */
.page-header { background: var(--bg); color: var(--text); padding: 4.5rem 0 3.5rem; border-bottom: 1px solid var(--line); }
@media (max-width: 768px) { .page-header { padding: 2.75rem 0 2.25rem; } }

.hh-section { background: var(--bg); color: var(--text); border-top: 1px solid var(--line); padding: 5rem 0; }
.page-header + .hh-section { border-top: none; }
.section-head { margin-bottom: 2.25rem; }
.section-inner { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 4rem; }
.section-left-title { font-family: var(--font-heading); font-size: 1.45rem; font-weight: 600; line-height: 1.15; color: var(--text); margin: 0; }
@media (max-width: 768px) {
  .hh-section { padding: 3.25rem 0; }
  .section-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ── CARD GRID ───────────────────────────────────────────────────────── */
/* 1px gaps over the line colour draw the grid lines, as on the main site. */
.hh-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0; }
@media (max-width: 900px) { .hh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hh-grid { grid-template-columns: 1fr; } }

.hh-tile {
  display: flex;
  flex-direction: column;
  background: var(--card-bg, var(--bg));
  color: var(--text);
  padding: 1.75rem 1.6rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.hh-tile:hover { background: var(--hover-bg); box-shadow: inset 3px 0 0 var(--lime); text-decoration: none; }
.hh-tile-tag { display: block; font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 0.75rem; }
.hh-tile-name { display: block; font-size: 1.05rem; font-weight: 600; line-height: 1.35; color: var(--text); margin-bottom: 0.55rem; }
.hh-tile-desc { font-size: 0.92rem; color: var(--text-soft); line-height: 1.65; }
.hh-tile-more { margin-top: auto; padding-top: 1rem; font-size: 0.88rem; font-weight: 500; color: var(--accent-text); }

.hh-elsewhere { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; }
.hh-elsewhere li { margin: 0; }
.hh-elsewhere a { display: block; padding: 0.35rem 0.75rem; font-size: 0.9rem; font-weight: 500; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raised); }
.hh-elsewhere a:hover { text-decoration: none; border-color: var(--text-muted); }

/* ── TABLES ──────────────────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 1rem 0; }
th, td { border: 1px solid var(--line); padding: 0.5rem 0.65rem; text-align: left; vertical-align: top; }
th {
  background: var(--bg-raised);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: sticky;
  top: var(--hh-nav-h);
  z-index: 1;
}
tbody tr:nth-child(even) { background: rgba(255,255,255,0.015); }
tbody tr:hover { background: var(--hover-bg); }

/* Any table that can overflow should scroll on its own, not the page.
   CAUTION: overflow-x:auto makes this a scroll container in BOTH axes, so a
   sticky <th> inside it sticks to this box rather than to the viewport; the
   header therefore pins to the top of the wrap instead. */
.hh-table-wrap { overflow-x: auto; margin: 1rem 0; }
.hh-table-wrap th { top: 0; }

/* ── CODE ────────────────────────────────────────────────────────────── */
code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.08em 0.35em;
  color: var(--accent-text);
}
pre {
  font-family: var(--font-mono);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
  color: var(--text-soft);
}
pre code { background: none; border: 0; padding: 0; color: inherit; }

/* ── PHOTO BANDS ─────────────────────────────────────────────────────── */
/* Set per element with style="--photo:url(…);--photo-sm:url(…)". A dark
   overlay keeps the photo as texture behind the text: near-solid on the left
   where the copy sits, a little more photo showing on the right. Same rule
   as the main site. */
.has-photo {
  background-color: #0e0e0e;
  background-image:
    linear-gradient(90deg, rgba(14,14,14,0.91) 0%, rgba(14,14,14,0.85) 40%, rgba(14,14,14,0.69) 100%),
    var(--photo);
  background-size: cover;
  background-position: center, center var(--photo-y, 50%);
}
@media (max-width: 760px) {
  .has-photo {
    background-image: linear-gradient(rgba(14,14,14,0.83), rgba(14,14,14,0.85)), var(--photo-sm, var(--photo));
  }
}

/* ── FIGURES ─────────────────────────────────────────────────────────── */
.hh-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0 2rem; }
@media (max-width: 640px) { .hh-figures { grid-template-columns: 1fr; } }
.hh-figures figure { margin: 0; }
.hh-figures img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.hh-figures figcaption { margin-top: 0.5rem; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }

/* ── ERROR PAGES ─────────────────────────────────────────────────────── */
.error-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4rem 2rem; }
.error-code { font-family: var(--font-heading); font-size: clamp(5rem, 16vw, 9rem); font-weight: 600; line-height: 1; color: var(--accent-text); }
.error-title { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 600; margin: 0.75rem 0 0.4rem; }
.error-text { color: var(--text-muted); margin-bottom: 2rem; }
.error-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ──────────────────────────────────────────────────────────── */
.hh-footer { background: #0b0b0b; color: var(--text-soft); border-top: 1px solid var(--line); padding: 3.5rem 0 1.5rem; font-size: 0.9rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; }
.footer-about { max-width: 380px; align-self: center; }
.footer-logo { display: block; height: 34px; width: auto; margin: 0.2rem auto 1.25rem; }
.footer-about p { line-height: 1.65; margin: 0; }
.footer-areas { margin-top: 0.75rem; color: var(--text-muted); }
.footer-h { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 0.9rem; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-h-next { margin-top: 2rem; }
.footer-list li { margin-bottom: 0.45rem; }
.footer-list a { color: var(--text-soft); }
.footer-list a:hover { color: var(--text); }
.footer-list address { font-style: normal; line-height: 1.6; }
.footer-note { display: block; font-style: normal; font-size: 0.82rem; color: var(--text-muted); margin-top: 0.2rem; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
  font-size: 0.82rem; color: var(--text-muted);
}
.footer-socials { display: flex; gap: 1rem; }
.footer-socials a { color: var(--text-muted); display: inline-flex; }
.footer-socials a:hover { color: var(--lime); }
.footer-socials svg { width: 16px; height: 16px; fill: currentColor; display: block; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── RESPONSIVE / MOTION ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hh-main { padding: 1.75rem 1.25rem 3rem; }
}
@media (max-width: 620px) {
  th { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
