/* =====================================================================
   zacwebsites.com.au  ·  Global Stylesheet  ·  "PRESSROOM" system
   ---------------------------------------------------------------------
   Direction: bold, modern, fun, light-first. The deliberate opposite of
   the navy / gold / serif PJ Bathrooms look, so this site proves range
   instead of repeating a client's identity.

   Canvas: warm bone paper. Ink: warm near-black. Accents: electric
   ultramarine (actions, bold blocks) + acid lime (the spark, used
   sparingly, never as body text). Type: Bricolage Grotesque (display),
   Space Grotesk (body / UI), JetBrains Mono (labels, code, the "real
   HTML" motif). Vanilla CSS, mobile-first, no build step. Nav + footer
   injected by components.js. No em dashes anywhere in copy.

   Map:
     1.  Tokens
     2.  Reset, base, accessibility
     3.  Layout (container, wide, section, bands)
     4.  Buttons
     5.  Cursor spark
     6.  Navbar
     7.  Footer
     8.  Scroll progress
     9.  Marquee ticker
    10.  Hero
    11.  Eyebrow / section headings / dividers / sticker badge
    12.  Stats band (count-up)
    13.  Ledger (rent vs own)
    14.  Built grid (services / inventory tiles)
    15.  Pages overview cards
    16.  Decision cards
    17.  Colour palette swatches
    18.  Type specimen
    19.  Tech stack
    20.  Process timeline
    21.  Maker (about) block
    22.  Work feature card + browser frame + code window
    23.  Prose write-up
    24.  Credit card + signature
    25.  Contact form
    26.  CTA band
    27.  Style concept preview cards
    28.  Photo gallery + lightbox
    29.  Toast
    30.  Motion: reveals + reduced motion
    31.  Responsive
    32.  Print
   ===================================================================== */

/* =====================================================================
   1. TOKENS
   ===================================================================== */
:root {
  /* Core palette */
  --paper:        #f3efe5;   /* warm bone canvas                         */
  --paper-2:      #ece6d8;   /* sunk / alt surface                       */
  --card:         #fbfaf5;   /* raised card, near white                  */
  --ink:          #17150f;   /* warm near-black: text, rules, ink blocks */
  --ink-2:        #46423a;   /* secondary text                           */
  --ink-3:        #6a6557;   /* muted text (use at >=14px)               */

  --electric:     #2a27dc;   /* primary action / bold blocks (white txt) */
  --electric-2:   #1f1cb4;   /* electric, darker for text on paper       */
  --electric-pale:#e7e6fb;   /* electric tint surface                    */
  --lime:         #d4f53d;   /* the spark: fills behind ink, marks       */
  --lime-deep:    #b9d92a;   /* lime edge / border                       */
  --coral:        #ff5a3c;   /* tertiary accent, sparing (tags, dots)    */

  /* RGB companions for alpha tints */
  --ink-rgb:      23, 21, 15;
  --electric-rgb: 42, 39, 220;
  --lime-rgb:     212, 245, 61;
  --paper-rgb:    243, 239, 229;

  /* On-ink (text used on dark ink / electric bands) */
  --on-ink:       #f6f3ea;
  --on-ink-2:     rgba(246, 243, 234, 0.72);
  --on-ink-3:     rgba(246, 243, 234, 0.56);
  --on-ink-line:  rgba(246, 243, 234, 0.16);

  /* Lines */
  --line:         rgba(23, 21, 15, 0.14);   /* hairline on paper         */
  --line-strong:  rgba(23, 21, 15, 0.26);

  /* Type */
  --font-display: "Bricolage Grotesque", "Space Grotesk", Georgia, serif;
  --font-body:    "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Motion */
  --ease-luxe: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 0.16s;
  --dur:      0.28s;

  /* Spacing (8pt rhythm) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;

  /* Radius (pressroom keeps corners tight) */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  /* Shadow: hard offset (tactile) + soft (depth for media) */
  --shadow-hard-sm: 3px 3px 0 var(--ink);
  --shadow-hard:    5px 5px 0 var(--ink);
  --shadow-hard-lg: 8px 8px 0 var(--ink);
  --shadow-soft:    0 26px 60px -34px rgba(23, 21, 15, 0.55);
  --shadow-pop:     0 18px 40px -22px rgba(23, 21, 15, 0.4);

  /* Layout */
  --container: 760px;
  --wide:      1180px;
  --nav-h:     74px;

  /* Z-index */
  --z-cursor:   90;
  --z-nav:      100;
  --z-overlay:  200;
  --z-progress: 250;
  --z-toast:    300;
  --z-lightbox: 400;
}

/* =====================================================================
   2. RESET, BASE, ACCESSIBILITY
   ===================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scrollbar-width: thin;
  scrollbar-color: var(--ink) var(--paper-2);
  background: var(--paper);
}
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb {
  background: var(--ink);
  border: 3px solid var(--paper-2);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--electric); }

body {
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--ink-2);
  font-feature-settings: "kern", "liga", "ss01";
  min-height: 100dvh;
  /* clip (not hidden): clips stray horizontal overflow WITHOUT turning <body>
     into a scroll container, so window.scrollY, scroll-progress, reveals and
     count-up keep working. .hero already clips its own orbs/deco. */
  overflow-x: clip;
}

img, picture, video, svg { display: block; max-width: 100%; height: auto; }

::selection { background: var(--lime); color: var(--ink); }

a { color: inherit; text-decoration: none; transition: color var(--dur) var(--ease-luxe); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  line-height: 1.04;
  font-weight: 800;
  color: var(--ink);
}
/* Accent phrase inside a heading: electric, slight lime underscore on hover */
h1 em, h2 em, h3 em, h4 em {
  font-style: normal;
  color: var(--electric-2);
}
.section-title em, .display em, .specimen-display em { font-style: normal; }

p { text-wrap: pretty; }
ul { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--electric); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: 1rem;
  transform: translateY(-160%);
  z-index: var(--z-overlay);
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard-sm);
  transition: transform 0.2s var(--ease-luxe);
}
.skip-link:focus { transform: translateY(0); color: var(--on-ink); }

/* =====================================================================
   3. LAYOUT
   ===================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 32px);
}
.wide {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 32px);
}
.section { padding-block: clamp(64px, 10vw, 112px); position: relative; }
section[id], div[id] { scroll-margin-top: calc(var(--nav-h) + 14px); }

/* Full-bleed bands for light/dark rhythm */
.band { position: relative; }
.band--ink {
  background: var(--ink);
  color: var(--on-ink);
}
.band--ink h1, .band--ink h2, .band--ink h3, .band--ink h4 { color: var(--on-ink); }
.band--ink h1 em, .band--ink h2 em, .band--ink h3 em { color: var(--lime); }
.band--electric {
  background: var(--electric);
  color: #fff;
}
.band--electric h1, .band--electric h2, .band--electric h3 { color: #fff; }
.band--electric h2 em { color: var(--lime); }
.band--paper-2 { background: var(--paper-2); }

/* =====================================================================
   4. BUTTONS
   ===================================================================== */
.btn,
.btn-gold,     /* legacy name: primary action */
.btn-ghost,
.btn-outline,
.btn-ink,
.btn-lime {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid var(--ink);
  padding: 13px 24px;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-hard-sm);
  transition: transform 0.16s var(--ease-luxe), box-shadow 0.16s var(--ease-luxe),
              background 0.2s var(--ease-luxe), color 0.2s var(--ease-luxe);
}
.btn svg, .btn-gold svg, .btn-ghost svg, .btn-outline svg, .btn-ink svg, .btn-lime svg {
  width: 1.05em; height: 1.05em; flex: none;
}
.btn:hover, .btn-gold:hover, .btn-ink:hover, .btn-lime:hover, .btn-outline:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hard);
}
.btn:active, .btn-gold:active, .btn-ink:active, .btn-lime:active, .btn-outline:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}

/* Primary (electric). Legacy .btn-gold maps here. */
.btn-gold, .btn--primary {
  background: var(--electric);
  color: #fff;
  font-weight: 700;
}
.btn-gold:hover, .btn--primary:hover { color: #fff; }

.btn-ink { background: var(--ink); color: var(--on-ink); font-weight: 700; }
.btn-ink:hover { color: var(--on-ink); }

.btn-lime { background: var(--lime); color: var(--ink); font-weight: 700; }
.btn-lime:hover { color: var(--ink); }

/* Ghost: quiet, no shadow, underline reveal */
.btn-ghost {
  border-color: var(--ink);
  background: transparent;
  box-shadow: none;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--on-ink); transform: translate(-2px,-2px); box-shadow: var(--shadow-hard-sm); }

.btn-outline { background: var(--card); color: var(--ink); }

.btn-block { width: 100%; }

/* On dark bands, invert button borders/shadows to lime/paper */
.band--ink .btn-ghost, .band--electric .btn-ghost {
  border-color: var(--on-ink); color: var(--on-ink);
}
.band--ink .btn-ghost:hover { background: var(--on-ink); color: var(--ink); box-shadow: 3px 3px 0 var(--lime); }
.band--ink .btn-gold, .band--electric .btn-lime { box-shadow: 3px 3px 0 var(--lime); border-color: var(--on-ink); }
.band--ink .btn-gold:hover { box-shadow: 5px 5px 0 var(--lime); }

/* =====================================================================
   5. CURSOR SPARK  (fine pointer only; injected by main.js)
   ===================================================================== */
.cursor-spark {
  position: fixed;
  top: 0; left: 0;
  width: 26px; height: 26px;
  margin: -13px 0 0 -13px;
  border: 2px solid var(--electric);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  mix-blend-mode: multiply;
  transition: width 0.18s var(--ease-luxe), height 0.18s var(--ease-luxe),
              background 0.18s var(--ease-luxe), border-color 0.18s var(--ease-luxe),
              opacity 0.3s var(--ease-luxe);
  opacity: 0;
  will-change: transform;
}
.cursor-spark.is-active { opacity: 1; }
.cursor-spark.is-hot {
  width: 46px; height: 46px;
  margin: -23px 0 0 -23px;
  background: var(--lime);
  border-color: var(--ink);
  mix-blend-mode: normal;
}

/* =====================================================================
   6. NAVBAR  (markup injected by components.js)
   ===================================================================== */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(243, 239, 229, 0.72);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 2px solid transparent;
  transition: background 0.3s var(--ease-luxe), border-color 0.3s var(--ease-luxe);
}
.site-nav.is-scrolled {
  background: rgba(243, 239, 229, 0.92);
  border-bottom-color: var(--ink);
}
.site-nav__inner {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

/* Brand: boxed monogram + wordmark */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand__mark {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 9px;
  border: 2px solid var(--ink);
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 0.2s var(--ease-spring);
}
.brand:hover .brand__mark { transform: rotate(-6deg); }
.brand__dot { color: var(--electric-2); }

/* Desktop links */
.nav-links { display: none; align-items: center; gap: 0.1rem; }
.nav-links a {
  position: relative;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s var(--ease-luxe);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0.8rem; right: 0.8rem; bottom: 0.34rem;
  height: 3px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-luxe);
  z-index: -1;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.nav-actions { display: none; align-items: center; gap: var(--space-2); }
.nav-cta { padding: 10px 18px; font-size: 13px; }

/* Mobile hamburger */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px; height: 48px;
  padding: 0 11px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px; width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-luxe), opacity 0.2s var(--ease-luxe);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile slide-down menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: var(--z-nav);
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  padding: var(--space-2) clamp(20px, 5vw, 32px) var(--space-3);
  display: grid;
  gap: 0.25rem;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s var(--ease-luxe), opacity 0.25s var(--ease-luxe), visibility 0.25s;
}
.mobile-menu.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-menu a {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  padding: 0.85rem 0.4rem;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a.btn-gold {
  border: 2px solid var(--ink);
  margin-top: var(--space-2);
  font-family: var(--font-body);
  font-size: 14px;
  color: #fff;
}

/* =====================================================================
   7. FOOTER  (markup injected by components.js)
   ===================================================================== */
.site-footer {
  border-top: 2px solid var(--ink);
  background: var(--ink);
  color: var(--on-ink);
  padding-block: var(--space-6) var(--space-4);
  margin-top: var(--space-7);
  position: relative;
  z-index: 2;
}
.site-footer .brand { color: var(--on-ink); }
.site-footer .brand__dot { color: var(--lime); }
.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 9vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--on-ink);
  margin-bottom: var(--space-5);
  text-align: left;
}
.footer-wordmark em { color: var(--lime); font-style: normal; }
.footer-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
.footer-brand .brand { margin-bottom: var(--space-2); }
.footer-brand p { color: var(--on-ink-2); max-width: 42ch; font-size: 0.95rem; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: var(--space-2);
}
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col a { color: var(--on-ink-2); font-size: 0.95rem; }
.footer-col a:hover { color: var(--on-ink); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid var(--on-ink-line);
  color: var(--on-ink-3);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.footer-bottom .abn { color: var(--on-ink-2); }
.footer-social { display: flex; gap: 0.5rem; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 2px solid var(--on-ink-line);
  border-radius: var(--radius-sm);
  color: var(--on-ink-2);
  transition: color 0.2s var(--ease-luxe), border-color 0.2s var(--ease-luxe), background 0.2s var(--ease-luxe), transform 0.2s var(--ease-luxe);
}
.footer-social a:hover { color: var(--ink); background: var(--lime); border-color: var(--lime); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }

/* =====================================================================
   8. SCROLL PROGRESS  (element injected by main.js)
   ===================================================================== */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: var(--electric);
  z-index: var(--z-progress);
  transition: width 80ms linear;
}

/* =====================================================================
   9. MARQUEE TICKER
   ===================================================================== */
.marquee {
  overflow: hidden;
  border-block: 2px solid var(--ink);
  background: var(--ink);
  color: var(--on-ink);
  user-select: none;
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: marqueeScroll 34s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  letter-spacing: -0.01em;
  padding: 0.7rem 0;
  display: inline-flex;
  align-items: center;
}
.marquee__item::after {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  margin: 0 clamp(20px, 4vw, 44px);
  background: var(--lime);
  transform: rotate(45deg);
}
.marquee--lime { background: var(--lime); color: var(--ink); }
.marquee--lime .marquee__item::after { background: var(--ink); }
@keyframes marqueeScroll { to { transform: translateX(-50%); } }

/* =====================================================================
   10. HERO
   ===================================================================== */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 56px) 0 64px;
  overflow: hidden;
}
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 78%);
  pointer-events: none;
  opacity: 0.7;
}
.hero-content { position: relative; z-index: 2; }
/* Defensive: neutralise any legacy hero background markup (orbs / deco Z) */
.hero-bg { display: none; }

.hero h1.display {
  font-size: clamp(2.9rem, 9vw, 7rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
  max-width: 16ch;
}
.hero h1.display em { color: var(--electric-2); }
/* Highlight word: chunky lime, with breathing room so it never collides with
   the descenders of the line above. */
.hero h1.display .mark {
  color: var(--ink);
  background: var(--lime);
  padding: 0 0.08em;
  box-shadow: 0 0 0 3px var(--lime);
  border-radius: 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero-lede {
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  color: var(--ink-2);
  max-width: 56ch;
  line-height: 1.6;
  margin-bottom: 36px;
}
.hero-cta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* Hero right-side visual: a tilted code window that proves the thesis.
   Hidden on small screens, where the type-only hero already reads well. */
.hero-visual { display: none; position: relative; }
.hero-visual .code-window {
  transform: rotate(2deg);
  transition: transform 0.4s var(--ease-spring);
}
.hero-visual:hover .code-window { transform: rotate(0deg); }
.hero-visual__sticker {
  position: absolute;
  top: -18px; left: -14px;
  z-index: 3;
  transform: rotate(-5deg);
}
@media (min-width: 960px) {
  /* Only the homepage hero is a two-column split. Other heroes keep their
     single-column full-width layout. */
  .hero-content--split {
    display: grid;
    grid-template-columns: 1.04fr 0.96fr;
    gap: 52px;
    align-items: center;
  }
  .hero-content--split .hero-visual { display: block; }
  .hero-content--split .hero-copy h1.display { font-size: clamp(3rem, 5vw, 5.25rem); }
}

/* Compact facts row under a hero (case study) */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 40px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 2px solid var(--ink);
}
.hero-meta .k {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 5px;
}
.hero-meta .v { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.hero-meta .v a { color: var(--electric-2); }

.scroll-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  z-index: 2;
}
.scroll-hint .line {
  width: 2px; height: 34px;
  background: var(--ink);
  animation: scrollPulse 2s var(--ease-luxe) infinite;
  transform-origin: top;
}
@keyframes scrollPulse { 0%, 100% { opacity: 0.25; transform: scaleY(0.7); } 50% { opacity: 1; transform: scaleY(1); } }

/* =====================================================================
   11. EYEBROW / SECTION HEADINGS / DIVIDERS / STICKER
   ===================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--electric-2);
  margin-bottom: 24px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--electric); }

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-inline: clamp(20px, 5vw, 32px);
  max-width: var(--wide);
  margin: 0 auto;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--line);
}
.divider-diamond {
  width: 9px; height: 9px;
  background: var(--electric);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--electric-2);
  margin-bottom: 16px;
  display: block;
}
.band--ink .section-label, .band--electric .section-label { color: var(--lime); }
.section-title {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 20px;
}
.section-title em { color: var(--electric-2); }
.section-lede {
  font-size: 1.1rem;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 60ch;
}
.band--ink .section-lede, .band--electric .section-lede { color: var(--on-ink-2); }

/* Sticker badge: rotated, hard shadow, fun */
.sticker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 7px 15px;
  box-shadow: var(--shadow-hard-sm);
  transform: rotate(-3deg);
}
.sticker--electric { background: var(--electric); color: #fff; }
.sticker--coral { background: var(--coral); color: var(--ink); }

/* =====================================================================
   12. STATS BAND  (count-up)
   ===================================================================== */
.stats-section {
  padding: clamp(48px, 8vw, 80px) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  gap: 2px;
}
.stat-cell { background: var(--card); padding: 34px 22px; text-align: left; }
.band--ink .stat-cell { background: var(--ink); }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--electric-2);
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.band--ink .stat-number { color: var(--lime); }
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.band--ink .stat-label { color: var(--on-ink-2); }

/* =====================================================================
   13. LEDGER  (rent vs own)
   ===================================================================== */
.ledger {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 48px;
}
.ledger-col {
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--card);
}
.ledger-col--bad { background: var(--paper-2); }
.ledger-col--good { background: var(--lime); box-shadow: var(--shadow-hard); }
.ledger-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--ink);
}
.ledger-head h3 { font-size: 1.5rem; }
.ledger-head .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}
.ledger-list { display: grid; gap: 12px; }
.ledger-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.97rem;
  color: var(--ink-2);
  line-height: 1.5;
}
.ledger-col--good .ledger-list li { color: var(--ink); font-weight: 500; }
.ledger-list .ico {
  flex: none;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border: 2px solid var(--ink);
  border-radius: 6px;
  margin-top: 1px;
}
.ledger-list .ico svg { width: 13px; height: 13px; }
.ledger-list .ico--no { background: transparent; color: var(--ink); }
.ledger-list .ico--yes { background: var(--ink); color: var(--lime); }

/* =====================================================================
   14. BUILT GRID  (services / inventory numbered tiles)
   ===================================================================== */
.built-section { padding: clamp(64px, 10vw, 112px) 0; }
.built-intro { margin-bottom: 56px; max-width: 62ch; }
.built-category { margin-bottom: 48px; }
.built-category:last-child { margin-bottom: 0; }
.built-cat-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.built-cat-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--electric-2);
}
.built-cat-line { flex: 1; height: 2px; background: var(--line); }
.built-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.built-tile {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  position: relative;
  box-shadow: var(--shadow-hard-sm);
  transition: transform 0.2s var(--ease-luxe), box-shadow 0.2s var(--ease-luxe);
}
.built-tile:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-hard); }
.built-tile-num {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--electric-2);
  line-height: 1;
  margin-bottom: 14px;
}
.built-tile-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.built-tile-desc { font-size: 0.95rem; color: var(--ink-2); line-height: 1.6; }

/* =====================================================================
   15. PAGES OVERVIEW CARDS
   ===================================================================== */
.pages-overview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.page-type-card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-hard-sm);
  transition: transform 0.2s var(--ease-luxe), box-shadow 0.2s var(--ease-luxe);
}
.page-type-card:hover { transform: translate(-3px,-3px); box-shadow: var(--shadow-hard); }
.page-type-count {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--electric-2);
  line-height: 1;
  margin-bottom: 8px;
}
.page-type-name { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.page-type-desc { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }

/* =====================================================================
   16. DECISION CARDS
   ===================================================================== */
.philosophy-section { padding: clamp(64px, 10vw, 112px) 0; }
.decision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 56px;
}
.decision-card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 34px;
  position: relative;
  box-shadow: var(--shadow-hard-sm);
  transition: transform 0.2s var(--ease-luxe), box-shadow 0.2s var(--ease-luxe);
}
.decision-card:hover { transform: translate(-3px,-3px); box-shadow: var(--shadow-hard); }
.decision-num {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-3);
  line-height: 1;
  position: absolute;
  top: 28px;
  right: 30px;
}
.decision-card h3 { font-size: 1.3rem; color: var(--ink); margin-bottom: 12px; font-weight: 700; }
.decision-card p { font-size: 0.97rem; color: var(--ink-2); line-height: 1.62; }
.decision-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--electric-2);
  margin-bottom: 14px;
}
.decision-tag::before { content: ""; width: 14px; height: 2px; background: var(--electric); }
.decision-card .corner-ornament { display: none; }

/* =====================================================================
   17. COLOUR PALETTE SWATCHES
   ===================================================================== */
.palette-section { padding: clamp(56px, 9vw, 88px) 0; }
.palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.swatch {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard-sm);
  transition: transform 0.2s var(--ease-luxe), box-shadow 0.2s var(--ease-luxe);
  background: var(--card);
  color: inherit;
  font: inherit;
  padding: 0;
  text-align: left;
  cursor: pointer;
  width: 100%;
  display: block;
  position: relative;
}
.swatch:hover, .swatch:focus-visible { transform: translate(-3px,-3px); box-shadow: var(--shadow-hard); }
.swatch-colour { height: 104px; border-bottom: 2px solid var(--ink); }
.swatch-info { padding: 14px 16px; background: var(--card); }
.swatch-name { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.swatch-hex { font-size: 11px; color: var(--ink-3); font-family: var(--font-mono); letter-spacing: 0.04em; }
.swatch-role { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 6px; }
.swatch-copy {
  position: absolute;
  top: 12px; right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--ink);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-ink);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.24s var(--ease-luxe), transform 0.24s var(--ease-luxe), color 0.24s var(--ease-luxe);
  pointer-events: none;
}
.swatch:hover .swatch-copy, .swatch:focus-visible .swatch-copy { opacity: 1; transform: translateY(0); }
.swatch.copied .swatch-copy { color: var(--lime); opacity: 1; transform: translateY(0); }
.swatch-copy svg { width: 10px; height: 10px; }

/* =====================================================================
   18. TYPE SPECIMEN
   ===================================================================== */
.type-section { padding: clamp(56px, 9vw, 88px) 0; }
.type-specimen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
}
.type-card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-hard-sm);
}
.type-card .font-name {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--electric-2); margin-bottom: 20px;
}
.specimen-display {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.02;
  margin-bottom: 20px;
}
.specimen-display em { color: var(--electric-2); }
.specimen-body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 20px;
}
.specimen-mono {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 20px;
  overflow-x: auto;
}
.type-meta { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); line-height: 1.9; }
.type-meta span { color: var(--ink-2); font-weight: 500; }

/* =====================================================================
   19. TECH STACK
   ===================================================================== */
.stack-section { padding: clamp(56px, 9vw, 88px) 0; }
.stack-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.stack-cat {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-hard-sm);
}
.stack-cat-label {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--electric-2); margin-bottom: 18px;
}
.stack-items { display: flex; flex-direction: column; gap: 12px; }
.stack-item { display: flex; align-items: flex-start; gap: 12px; }
.stack-item .dot { width: 7px; height: 7px; background: var(--electric); flex-shrink: 0; margin-top: 7px; transform: rotate(45deg); }
.stack-item-name { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.stack-item-desc { font-size: 12.5px; color: var(--ink-3); line-height: 1.55; margin-top: 3px; }

/* =====================================================================
   20. PROCESS TIMELINE
   ===================================================================== */
.process-section { padding: clamp(64px, 10vw, 112px) 0; }
.process-timeline { margin-top: 56px; position: relative; display: grid; grid-template-columns: 1fr; gap: 0; }
.process-timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 18px; bottom: 18px;
  width: 2px;
  background: var(--line-strong);
}
.process-step { position: relative; padding: 22px 0 22px 48px; }
.process-step::before {
  content: "";
  position: absolute;
  left: 0; top: 28px;
  width: 16px; height: 16px;
  background: var(--lime);
  border: 2px solid var(--ink);
  transform: rotate(45deg);
  z-index: 1;
}
.process-step .step-meta {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--electric-2); margin-bottom: 6px;
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700; color: var(--ink);
  margin-bottom: 8px; line-height: 1.1;
}
.process-step h3 em { color: var(--electric-2); }
.process-step p { font-size: 0.97rem; color: var(--ink-2); line-height: 1.62; max-width: 640px; }

/* =====================================================================
   21. MAKER (about) BLOCK
   ===================================================================== */
.maker-section { padding: clamp(64px, 10vw, 112px) 0; }
.maker-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; margin-top: 56px; }
.maker-portrait-wrap { position: relative; }
.maker-monogram {
  width: 200px; height: 200px;
  border-radius: var(--radius-lg);
  background: var(--electric);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 110px;
  color: var(--lime);
  letter-spacing: -0.06em;
  position: relative;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard-lg);
  margin: 0 auto 0 0;
  transition: transform 0.3s var(--ease-spring);
}
.maker-portrait-wrap:hover .maker-monogram { transform: rotate(-3deg); }
.monogram-shimmer { display: none; }
.maker-tag {
  position: absolute;
  bottom: -16px;
  left: 120px;
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 10px 16px;
  white-space: nowrap;
  box-shadow: var(--shadow-hard-sm);
  transform: rotate(-3deg);
}
.maker-tag .tag-role { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.maker-tag .tag-year { font-size: 20px; font-weight: 700; font-family: var(--font-display); color: var(--ink); line-height: 1.1; margin-top: 2px; }
.maker-info h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--ink); margin-bottom: 8px; letter-spacing: -0.03em; }
.maker-info h2 em { color: var(--electric-2); }
.maker-info .title-tag {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--electric-2); margin-bottom: 24px; display: block;
}
.maker-info p { font-size: 1.02rem; color: var(--ink-2); line-height: 1.66; margin-bottom: 14px; }
.maker-info p strong { color: var(--ink); font-weight: 600; }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hard-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  transition: transform 0.16s var(--ease-luxe), box-shadow 0.16s var(--ease-luxe);
}
.contact-link:hover { color: var(--ink); transform: translate(-2px,-2px); box-shadow: var(--shadow-hard); }

/* =====================================================================
   22. WORK FEATURE CARD + BROWSER FRAME + CODE WINDOW
   ===================================================================== */
.work-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 48px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-hard);
}
.work-card__media { padding: 28px 28px 0; }
.work-card__body { padding: 32px; }
.work-card__index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--electric-2);
  font-weight: 600;
}
.work-card__title { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--ink); margin-top: 10px; margin-bottom: 14px; letter-spacing: -0.03em; }
.work-card__title em { color: var(--electric-2); }
.work-card__desc { color: var(--ink-2); line-height: 1.62; font-size: 1.02rem; max-width: 52ch; }
.work-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.work-tag {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 5px 13px;
}
.work-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 36px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
}
.work-card__facts .k {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 5px;
}
.work-card__facts .v { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.work-card__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-size: 14px;
  font-weight: 700;
  color: var(--electric-2);
}
.work-card__link svg { width: 1.05em; height: 1.05em; transition: transform 0.2s var(--ease-luxe); }
.work-card:hover .work-card__link svg { transform: translateX(5px); }

/* Browser frame */
.browser {
  position: relative;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}
.browser__bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  background: var(--paper-2);
  border-bottom: 2px solid var(--ink);
}
.browser__dot { width: 0.72rem; height: 0.72rem; border-radius: 50%; border: 1.5px solid var(--ink); }
.browser__dot:nth-child(1) { background: var(--coral); }
.browser__dot:nth-child(2) { background: var(--lime); }
.browser__dot:nth-child(3) { background: var(--electric); }
.browser__url {
  margin-left: 0.5rem; flex: 1;
  font-family: var(--font-mono);
  font-size: 0.74rem; color: var(--ink-2);
  background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius-pill);
  padding: 0.26rem 0.85rem; text-align: center;
}
.browser__img { display: block; width: 100%; height: auto; }

.figcap { font-family: var(--font-mono); color: var(--ink-3); font-size: 0.8rem; margin-top: 0.85rem; text-align: center; line-height: 1.6; }
.figcap a { color: var(--electric-2); border-bottom: 2px solid var(--lime); }
.figcap a:hover { border-color: var(--electric); }

/* Code window: reinforces the "real HTML you own" motif */
.code-window {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-hard);
}
.code-window__bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: #211e16;
  border-bottom: 1px solid var(--on-ink-line);
}
.code-window__bar .browser__dot { border-color: var(--on-ink-line); }
.code-window__name { margin-left: 0.4rem; font-family: var(--font-mono); font-size: 0.74rem; color: var(--on-ink-2); }
.code-window pre {
  margin: 0;
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--on-ink);
  overflow-x: auto;
}
.code-window .tok-tag { color: #8fd0ff; }
.code-window .tok-attr { color: var(--lime); }
.code-window .tok-str { color: #ffc59e; }
.code-window .tok-com { color: var(--on-ink-3); }

/* =====================================================================
   23. PROSE WRITE-UP
   ===================================================================== */
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--ink); margin-top: var(--space-5); margin-bottom: var(--space-2); letter-spacing: -0.03em; }
.prose h2:first-child { margin-top: 0; }
.prose h2 em { color: var(--electric-2); }
.prose h3 { font-size: 1.25rem; color: var(--ink); margin-top: var(--space-4); margin-bottom: 0.5rem; }
.prose p { color: var(--ink-2); margin-bottom: var(--space-2); line-height: 1.7; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--electric-2); border-bottom: 2px solid var(--lime); }
.prose a:hover { border-color: var(--electric); }
.prose ul.ticks { display: grid; gap: 0.75rem; margin: var(--space-2) 0; }
.prose ul.ticks li { position: relative; padding-left: 2rem; color: var(--ink-2); line-height: 1.6; }
.prose ul.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.15em;
  width: 1.3rem; height: 1.3rem;
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 5px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317150f' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.8rem;
}

/* =====================================================================
   24. CREDIT CARD + SIGNATURE
   ===================================================================== */
.credit-section { padding: clamp(56px, 9vw, 88px) 0; }
.credit-card {
  border: 2px solid var(--ink);
  border-radius: var(--radius-xl);
  padding: clamp(36px, 6vw, 60px);
  position: relative;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-hard);
}
.credit-card blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.credit-card blockquote em { color: var(--electric-2); font-style: normal; }
.credit-card p { font-size: 1.02rem; color: var(--ink-2); line-height: 1.66; max-width: 580px; }
.credit-card p a { color: var(--electric-2); font-weight: 600; border-bottom: 2px solid var(--lime); }
.credit-card p a:hover { border-color: var(--electric); }
.credit-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.signature-block {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 2px solid var(--ink);
}
.signature-svg { width: 142px; height: auto; color: var(--electric-2); flex-shrink: 0; }
.signature-path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
}
.signature-block.is-visible .signature-path { animation: drawSig 2200ms var(--ease-luxe) forwards; animation-delay: 200ms; }
@keyframes drawSig { to { stroke-dashoffset: 0; } }
.signature-meta {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500; letter-spacing: 0.06em;
  color: var(--ink-2); line-height: 1.6; padding-bottom: 4px;
}
.signature-meta span { display: block; color: var(--ink-3); font-weight: 400; margin-top: 4px; }

/* =====================================================================
   25. CONTACT FORM
   ===================================================================== */
.contact-wrap { display: grid; gap: var(--space-3); grid-template-columns: 1fr; margin-top: 48px; }
.contact-card {
  padding: clamp(28px, 4vw, 40px);
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-hard);
}
.contact-card h3 { font-size: 1.4rem; color: var(--ink); margin-bottom: 6px; }
.contact-card h3 em { color: var(--electric-2); }
.contact-card .card-lede { color: var(--ink-2); font-size: 0.98rem; line-height: 1.6; margin-bottom: var(--space-2); }

.form-row { display: grid; gap: var(--space-2); }
@media (min-width: 560px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; margin-bottom: var(--space-2); }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.field .req { color: var(--electric-2); }
.field input,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.8rem 0.95rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: box-shadow 0.18s var(--ease-luxe);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field textarea:focus {
  outline: none;
  box-shadow: var(--shadow-hard-sm);
}
.field.has-error input, .field.has-error textarea { border-color: var(--coral); box-shadow: 3px 3px 0 var(--coral); }
.field__error { display: none; font-size: 0.82rem; color: #c23a20; font-weight: 500; }
.field.has-error .field__error { display: block; }

.contact-list { display: grid; gap: 0.9rem; margin-top: var(--space-2); }
.contact-list a, .contact-list span {
  display: inline-flex; align-items: center; gap: 0.7rem; color: var(--ink-2); font-size: 0.98rem;
}
.contact-list a:hover { color: var(--electric-2); }
.contact-list svg { width: 18px; height: 18px; color: var(--electric-2); flex: none; }

.form-note { font-size: 0.85rem; color: var(--ink-3); margin-top: 0.6rem; }
.form-note a { color: var(--electric-2); border-bottom: 2px solid var(--lime); }
.form-status { margin-top: var(--space-2); font-size: 0.9rem; min-height: 1.2em; font-weight: 500; }
.form-status.ok { color: var(--electric-2); }
.form-status.err { color: #c23a20; }

/* Honeypot field: parked off-screen, out of the tab order and hidden from
   assistive tech. A real person never reaches it; spam bots fill it and
   the server silently drops the submission. */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* =====================================================================
   26. CTA BAND
   ===================================================================== */
.cta-band {
  text-align: center;
  background: var(--electric);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  margin-top: var(--space-5);
  box-shadow: var(--shadow-hard-lg);
}
.cta-band h2 { font-size: clamp(2rem, 4vw, 3.2rem); color: #fff; letter-spacing: -0.03em; }
.cta-band h2 em { color: var(--lime); font-style: normal; }
.cta-band p { color: rgba(255,255,255,0.86); margin-top: var(--space-2); max-width: 52ch; margin-inline: auto; line-height: 1.6; }
.cta-band .cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: var(--space-4); }
.cta-band .btn-ghost { border-color: #fff; color: #fff; }
.cta-band .btn-ghost:hover { background: #fff; color: var(--electric-2); box-shadow: 3px 3px 0 var(--lime); }
.cta-band .btn-lime { border-color: var(--ink); }

/* Back link (case study) */
.back-link {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-mono);
  color: var(--ink-2); font-size: 0.82rem; font-weight: 600;
}
.back-link:hover { color: var(--electric-2); }
.back-link svg { width: 16px; height: 16px; }

/* FAQ: native <details> accordion (no JS needed, fully accessible) */
.faq { margin-top: 48px; display: grid; gap: 14px; }
.faq details {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-hard-sm);
  overflow: hidden;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--electric-2);
  transition: transform 0.25s var(--ease-luxe);
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p {
  padding: 0 24px 22px;
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 68ch;
}

/* Cost-over-time bars (manifesto) */
.cost-bars { display: grid; gap: 18px; margin-top: 40px; }
.cost-row { display: grid; gap: 8px; }
.cost-row .cost-meta { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; color: var(--ink); }
.cost-row .cost-meta .yrs { font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-3); font-weight: 500; }
.cost-track { height: 30px; border: 2px solid var(--ink); border-radius: var(--radius-pill); overflow: hidden; background: var(--card); }
.cost-fill { height: 100%; display: flex; align-items: center; padding-left: 14px; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.cost-fill--rent { background: var(--coral); color: var(--ink); }
.cost-fill--own { background: var(--lime); color: var(--ink); }

/* Big pull statement */
.pull {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(1.8rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  color: var(--ink);
  max-width: 20ch;
}
.pull em { color: var(--electric-2); }
.band--ink .pull { color: var(--on-ink); }
.band--ink .pull em { color: var(--lime); }

/* Effort bars (case study: where the hours went) */
.cost-fill--electric { background: var(--electric); color: #fff; }

/* Lighthouse-style scorecard (case study) */
.score-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 44px; }
@media (min-width: 760px) { .score-grid { grid-template-columns: repeat(4, 1fr); } }
.score-card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-hard-sm);
}
.band--ink .score-card { background: #201d14; border-color: var(--on-ink-line); box-shadow: none; }
.score-num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--electric-2);
}
.band--ink .score-num { color: var(--lime); }
.score-num span { font-size: 1rem; color: var(--ink-3); font-weight: 600; letter-spacing: 0; }
.band--ink .score-num span { color: var(--on-ink-3); }
.score-cat {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2); margin-top: 12px;
}
.band--ink .score-cat { color: var(--on-ink-2); }
.score-bar { height: 8px; border: 2px solid var(--ink); border-radius: 999px; margin-top: 14px; overflow: hidden; background: var(--paper); }
.band--ink .score-bar { border-color: var(--on-ink-line); background: #15130d; }
.score-bar i { display: block; height: 100%; background: var(--lime); }

/* Core Web Vitals row (case study) */
.cwv-row { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 20px; }
@media (min-width: 640px) { .cwv-row { grid-template-columns: repeat(3, 1fr); } }
.cwv { display: flex; align-items: center; gap: 12px; border: 2px solid var(--ink); border-radius: var(--radius); padding: 16px 18px; background: var(--card); }
.band--ink .cwv { background: #201d14; border-color: var(--on-ink-line); }
.cwv-ico { width: 32px; height: 32px; flex: none; display: grid; place-items: center; background: var(--lime); border: 2px solid var(--ink); border-radius: 7px; }
.cwv-ico svg { width: 16px; height: 16px; color: var(--ink); }
.cwv b { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); display: block; line-height: 1.1; }
.band--ink .cwv b { color: var(--on-ink); }
.cwv-label { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.band--ink .cwv-label { color: var(--on-ink-2); }

/* =====================================================================
   27. STYLE CONCEPT PREVIEW CARDS  (styles page)
   ===================================================================== */
.concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 48px;
}
.concept {
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hard-sm);
  background: var(--card);
  transition: transform 0.2s var(--ease-luxe), box-shadow 0.2s var(--ease-luxe);
}
.concept:hover { transform: translate(-4px,-4px); box-shadow: var(--shadow-hard-lg); }
/* Whole-card link to the live style preview (added by styles page script) */
.concept { position: relative; }
.concept__stretch { position: absolute; inset: 0; z-index: 2; border-radius: var(--radius-lg); }
.concept__stretch:focus-visible { outline: 3px solid var(--electric); outline-offset: 3px; }
.concept__see {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.9rem; color: var(--electric-2);
}
.concept__see svg { width: 1em; height: 1em; transition: transform 0.2s var(--ease-luxe); }
.concept:hover .concept__see svg { transform: translateX(4px); }
.concept__preview {
  height: 200px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 2px solid var(--ink);
  position: relative;
  overflow: hidden;
}
.concept__preview .pv-kicker { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; }
.concept__preview .pv-head { font-size: 1.9rem; line-height: 1; font-weight: 800; }
.concept__preview .pv-row { display: flex; gap: 8px; align-items: center; }
.concept__preview .pv-chip { font-size: 11px; padding: 5px 12px; border-radius: 999px; }
.concept__body { padding: 22px 24px; }
.concept__name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.concept__desc { font-size: 0.95rem; color: var(--ink-2); line-height: 1.55; }
.concept__meta { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 14px; }

/* Custom-style invite: full-width banner at the end of the concept grid */
.concept--custom {
  grid-column: 1 / -1;
  background: var(--electric);
  color: #fff;
  border: 3px dashed var(--lime);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard);
  overflow: visible;
  padding: clamp(28px, 4vw, 44px);
  display: grid;
  gap: 22px;
  align-items: center;
}
@media (min-width: 760px) { .concept--custom { grid-template-columns: 1fr auto; gap: 36px; } }
.concept--custom:hover { transform: none; box-shadow: var(--shadow-hard); }
.concept--custom .pv-kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lime); }
.concept--custom h3 { font-family: var(--font-display); font-size: clamp(1.6rem, 3.2vw, 2.5rem); color: #fff; margin: 10px 0 12px; letter-spacing: -0.02em; line-height: 1.05; }
.concept--custom p { color: rgba(255, 255, 255, 0.88); line-height: 1.6; max-width: 58ch; }
.concept--custom .btn-lime { border-color: var(--ink); white-space: nowrap; }

/* =====================================================================
   28. PHOTO GALLERY + LIGHTBOX
   ===================================================================== */
.gallery-status {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--ink-3);
  margin-top: 40px;
  padding: 28px;
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  text-align: center;
}
.gallery-status code { background: var(--paper-2); padding: 2px 7px; border-radius: 5px; color: var(--ink); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.gallery-item {
  position: relative;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hard-sm);
  background: var(--paper-2);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  transition: transform 0.2s var(--ease-luxe), box-shadow 0.2s var(--ease-luxe);
}
.gallery-item:hover { transform: translate(-3px,-3px); box-shadow: var(--shadow-hard); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-luxe); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #fff;
  background: linear-gradient(to top, rgba(23,21,15,0.82), transparent);
  opacity: 0;
  transition: opacity 0.25s var(--ease-luxe);
}
.gallery-item:hover figcaption, .gallery-item:focus-visible figcaption { opacity: 1; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(23, 21, 15, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease-luxe), visibility 0.25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 100%;
  max-height: 84vh;
  border: 2px solid var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7);
}
.lightbox__cap { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; font-family: var(--font-mono); font-size: 0.82rem; color: var(--on-ink-2); }
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  width: 48px; height: 48px;
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-hard-sm);
}
.lightbox__close { top: 22px; right: 22px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav.prev { left: 22px; }
.lightbox__nav.next { right: 22px; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--lime); }
.lightbox__close svg, .lightbox__nav svg { width: 22px; height: 22px; }

/* =====================================================================
   29. TOAST
   ===================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 12px);
  background: var(--ink);
  border: 2px solid var(--ink);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-hard);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s var(--ease-luxe), transform 0.24s var(--ease-luxe);
  z-index: var(--z-toast);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =====================================================================
   30. PRICING CARDS
   ===================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
  align-items: start;
}
.pricing-card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 34px;
  position: relative;
  box-shadow: var(--shadow-hard-sm);
  transition: transform 0.2s var(--ease-luxe), box-shadow 0.2s var(--ease-luxe);
  display: flex;
  flex-direction: column;
}
.pricing-card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-hard); }
.pricing-card--featured {
  background: var(--ink);
  color: var(--on-ink);
  box-shadow: var(--shadow-hard);
}
.pricing-card--featured:hover { box-shadow: var(--shadow-hard-lg); }
.pricing-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--lime);
  color: var(--ink);
  padding: 4px 12px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 16px;
  width: fit-content;
}
.pricing-tier {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--electric-2);
  margin-bottom: 8px;
}
.pricing-card--featured .pricing-tier { color: var(--lime); }
.pricing-price {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 12px;
}
.pricing-card--featured .pricing-price { color: #fff; }
.pricing-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-bottom: 20px;
}
.pricing-card--featured .pricing-note { color: var(--on-ink-3); }
.pricing-desc {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 24px;
}
.pricing-card--featured .pricing-desc { color: var(--on-ink-2); }
.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}
.pricing-list li {
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.5;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  padding-left: 24px;
  position: relative;
}
.pricing-list li:last-child { border-bottom: none; }
.pricing-card--featured .pricing-list li { color: var(--on-ink-2); border-bottom-color: var(--on-ink-line); }
.pricing-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--electric-2);
  font-weight: 700;
  font-size: 0.85rem;
}
.pricing-card--featured .pricing-list li::before { color: var(--lime); }
.pricing-card .btn-gold,
.pricing-card .btn-ghost { margin-top: auto; }

.pricing-extras {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.pricing-extra {
  background: var(--paper-2);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.pricing-extra h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 4px;
}
.pricing-extra-price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--electric-2);
  display: block;
  margin-bottom: 8px;
}
.pricing-extra p {
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
}

/* =====================================================================
   30b. PRICING CALCULATOR
   ===================================================================== */
.calc {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 56px;
}
.calc__step { margin-bottom: 36px; }
.calc__step:last-child { margin-bottom: 0; }
.calc__step-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.calc__step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--electric-2);
}
.calc__step-head h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
}
.calc__step-opt {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--ink-3);
}

/* Package selector */
.calc__packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.calc__pkg {
  text-align: left;
  cursor: pointer;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-hard-sm);
  transition: transform 0.18s var(--ease-luxe), box-shadow 0.18s var(--ease-luxe), background 0.18s var(--ease-luxe);
  position: relative;
}
.calc__pkg:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hard); }
.calc__pkg.is-active {
  background: var(--lime);
  box-shadow: var(--shadow-hard);
  transform: translate(-2px, -2px);
}
.calc__pkg-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--electric);
  color: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 12px;
}
.calc__pkg.is-active .calc__pkg-badge { background: var(--ink); color: var(--lime); }
.calc__pkg-tier {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--electric-2);
  margin-bottom: 6px;
  display: block;
}
.calc__pkg.is-active .calc__pkg-tier { color: var(--ink); }
.calc__pkg-price {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}
.calc__pkg-desc {
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.4;
  margin-bottom: 16px;
  display: block;
}
.calc__pkg.is-active .calc__pkg-desc { color: var(--ink); }
.calc__pkg-features {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 2px solid var(--ink);
  padding-top: 14px;
}
.calc__pkg-features li {
  font-size: 0.82rem;
  color: var(--ink-2);
  line-height: 1.4;
  padding: 4px 0 4px 20px;
  position: relative;
}
.calc__pkg.is-active .calc__pkg-features li { color: var(--ink); }
.calc__pkg-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--electric-2);
}
.calc__pkg.is-active .calc__pkg-features li::before { color: var(--ink); }

/* Add-ons */
.calc__addons { display: grid; gap: 0; }
.calc__addon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: opacity 0.2s;
}
.calc__addon:first-child { border-top: 1px solid var(--line); }
.calc__addon.is-included { opacity: 0.45; pointer-events: none; }
.calc__addon-info { flex: 1; min-width: 0; }
.calc__addon-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  display: block;
}
.calc__addon-price {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  display: block;
  margin-top: 2px;
}
.calc__addon-inc {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--electric-2);
  display: block;
  margin-top: 4px;
}

/* Custom checkbox */
.calc__check {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.calc__tick {
  width: 26px;
  height: 26px;
  border: 2px solid var(--ink);
  border-radius: 7px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--card);
  transition: background 0.15s var(--ease-luxe), box-shadow 0.15s var(--ease-luxe);
}
.calc__tick::after {
  content: "\2713";
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.15s, transform 0.2s var(--ease-spring);
}
.calc__check:checked + .calc__tick {
  background: var(--lime);
  box-shadow: 2px 2px 0 var(--ink);
}
.calc__check:checked + .calc__tick::after {
  opacity: 1;
  transform: scale(1);
}
.calc__check:focus-visible + .calc__tick {
  outline: 3px solid var(--electric);
  outline-offset: 2px;
}

/* Quantity stepper */
.calc__qty {
  display: flex;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.calc__qty-btn {
  width: 36px;
  height: 36px;
  background: var(--paper-2);
  border: none;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.12s;
  line-height: 1;
}
.calc__qty-btn:hover { background: var(--lime); }
.calc__qty-val {
  width: 40px;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  border-inline: 2px solid var(--ink);
  line-height: 36px;
}

/* Care plan selector */
.calc__care {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.calc__care-btn {
  text-align: left;
  cursor: pointer;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-hard-sm);
  transition: transform 0.15s var(--ease-luxe), box-shadow 0.15s var(--ease-luxe), background 0.15s;
}
.calc__care-btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hard); }
.calc__care-btn.is-active {
  background: var(--lime);
  box-shadow: var(--shadow-hard);
  transform: translate(-2px, -2px);
}
.calc__care-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  display: block;
}
.calc__care-price {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--electric-2);
  display: block;
  margin-top: 2px;
}
.calc__care-btn.is-active .calc__care-price { color: var(--ink); }
.calc__care-desc {
  font-size: 0.82rem;
  color: var(--ink-2);
  line-height: 1.4;
  margin-top: 8px;
  display: block;
}
.calc__care-btn.is-active .calc__care-desc { color: var(--ink); }

/* Sticky receipt */
.calc__receipt {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-hard);
}
.calc__receipt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
}
.calc__receipt-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ink);
}
.calc__receipt-items { margin-bottom: 16px; }
.calc__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--ink-2);
}
.calc__row span:last-child {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.calc__receipt-totals {
  border-top: 2px dashed var(--line-strong);
  padding-top: 12px;
}
.calc__row--light span { color: var(--ink-3); }
.calc__row--light span:last-child { color: var(--ink-3); }
.calc__row--total {
  padding-top: 12px;
  margin-top: 8px;
  border-top: 2px solid var(--ink);
}
.calc__row--total span {
  font-weight: 700;
  color: var(--ink);
  font-size: 1rem;
}
.calc__row--total span:last-child {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--electric-2);
}

/* Deposit split */
.calc__split {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.calc__split-bar {
  display: flex;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 32px;
}
.calc__split-half {
  flex: 1;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.calc__split-half--a { background: var(--lime); color: var(--ink); }
.calc__split-half--b { background: var(--paper-2); color: var(--ink-2); }
.calc__split-amounts {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--ink-3);
}
.calc__split-amounts strong,
.calc__split-amounts span {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--ink);
}

.calc__care-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 0.88rem;
  color: var(--ink-2);
}
.calc__care-row span:last-child {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--electric-2);
}

.calc__send { margin-top: 24px; }
.calc__note {
  font-size: 0.78rem;
  color: var(--ink-3);
  margin-top: 12px;
  text-align: center;
}

/* Number flash */
.calc__flash { animation: calcFlash 0.35s var(--ease-luxe); }
@keyframes calcFlash { 0% { color: var(--electric-2); } 100% { color: inherit; } }

/* Own vs rent comparison */
.calc__compare {
  margin-top: 56px;
  padding: 32px;
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard);
}
.calc__compare-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.calc__compare-head h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--on-ink);
}
.calc__yr-btns { display: flex; gap: 6px; }
.calc__yr {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 2px solid var(--on-ink-line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--on-ink-2);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.calc__yr:hover { border-color: var(--on-ink); color: var(--on-ink); }
.calc__yr.is-active { background: var(--lime); color: var(--ink); border-color: var(--lime); }

.calc__bars { display: grid; gap: 14px; }
.calc__bar-row { display: grid; grid-template-columns: 160px 1fr; gap: 14px; align-items: center; }
.calc__bar-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--on-ink-2);
  text-align: right;
}
.calc__bar-track {
  height: 40px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.calc__bar {
  height: 100%;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  min-width: fit-content;
  transition: width 0.6s var(--ease-luxe);
}
.calc__bar--own { background: var(--lime); color: var(--ink); }
.calc__bar--rent { background: var(--coral); color: var(--ink); }
.calc__compare-note {
  font-size: 0.82rem;
  color: var(--on-ink-3);
  line-height: 1.6;
  margin-top: 20px;
  max-width: 70ch;
}

/* Calculator responsive */
@media (max-width: 860px) {
  .calc__packages { grid-template-columns: 1fr; }
  .calc__care { grid-template-columns: 1fr; }
  .calc__bar-row { grid-template-columns: 1fr; gap: 4px; }
  .calc__bar-label { text-align: left; }
}
@media (min-width: 860px) {
  .calc {
    grid-template-columns: 1fr 340px;
    align-items: start;
  }
  .calc__aside {
    position: sticky;
    top: calc(var(--nav-h) + 20px);
  }
}

/* =====================================================================
   31. MOTION: reveals
   ===================================================================== */
.reveal  { transition: opacity 0.7s var(--ease-luxe), transform 0.7s var(--ease-luxe); will-change: opacity, transform; }
.fade-up { transition: opacity 0.7s var(--ease-luxe), transform 0.7s var(--ease-luxe); will-change: opacity, transform; }
.fade-in { transition: opacity 0.7s var(--ease-luxe); will-change: opacity; }

:where(html.js) .reveal  { opacity: 0; transform: translateY(20px); }
:where(html.js) .fade-up { opacity: 0; transform: translateY(26px); }
:where(html.js) .fade-in { opacity: 0; }

.reveal.is-visible,
.fade-up.is-visible,
.fade-in.is-visible { opacity: 1; transform: none; }

.delay-1 { transition-delay: 80ms; }
.delay-2 { transition-delay: 160ms; }
.delay-3 { transition-delay: 240ms; }
.delay-4 { transition-delay: 320ms; }
.reveal[style*="--d"], .fade-up[style*="--d"], .fade-in[style*="--d"] { transition-delay: var(--d); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal, .fade-up, .fade-in { opacity: 1; transform: none; }
  .scroll-hint .line { animation: none; }
  .signature-path { stroke-dashoffset: 0; }
  .marquee__track { animation: none; }
  .cursor-spark { display: none; }
}

/* =====================================================================
   31. RESPONSIVE
   ===================================================================== */
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-extras { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .decision-grid { grid-template-columns: 1fr; }
  .type-specimen-grid { grid-template-columns: 1fr; }
  .built-grid { grid-template-columns: 1fr; }
  .maker-grid { grid-template-columns: 1fr; gap: 48px; }
  .maker-monogram { width: 150px; height: 150px; font-size: 84px; }
  .maker-tag { left: 90px; }
  .credit-card { padding: 32px 24px; }
}
@media (max-width: 460px) {
  .hero h1.display { font-size: clamp(2.5rem, 13vw, 3.6rem); }
}

/* >= 768px : desktop nav, multi-col footer/contact, ledger 2-up */
@media (min-width: 768px) {
  .nav-links,
  .nav-actions { display: flex; }
  .nav-toggle  { display: none; }
  .mobile-menu { display: none; }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .contact-wrap { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
  .ledger { grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (min-width: 860px) {
  .work-card { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
  .work-card__media { padding: 32px 0 32px 32px; }
  .work-card__body { padding: 44px; }
}

/* =====================================================================
   32. PRINT
   ===================================================================== */
@media print {
  * { background: transparent !important; color: #17150f !important; box-shadow: none !important; }
  body { background: #fff !important; }
  .site-nav, .scroll-hint, #scroll-progress, .toast, .mobile-menu, .nav-toggle, .marquee, .cursor-spark { display: none !important; }
  .hero { padding: 24px 0; page-break-after: avoid; }
  h1, h2, h3, h4 { color: #17150f !important; }
  .decision-card, .stack-cat, .credit-card, .type-card, .stat-cell, .process-step,
  .built-tile, .page-type-card, .work-card, .contact-card, .browser { border: 1px solid #ccc !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10px; color: #6a6557 !important; }
}

/* =====================================================================
   33. BUSINESS OS  (beta tags + calculator add-on note)
   ===================================================================== */
.beta-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .58em;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--lime);
  border-radius: 999px;
  padding: 2px 7px;
  vertical-align: middle;
  margin-left: 6px;
  line-height: 1;
}
.nav-beta {
  font-family: var(--font-mono);
  font-size: .56em;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--electric);
  margin-left: 3px;
}
.calc__addon-note {
  display: block;
  font-size: .82rem;
  color: #6a6557;
  margin-top: 4px;
  line-height: 1.4;
}
.calc__addon-note a { color: var(--electric); font-weight: 600; text-decoration: none; }
.calc__addon-note a:hover { text-decoration: underline; }
