/* ==========================================================================
   Cyber pH — site stylesheet
   One stylesheet for every page. No build step, no framework.

   Contents
     1. Fonts
     2. Design tokens (edit colours, type and spacing here)
     3. Base / reset
     4. Layout helpers
     5. Buttons and links
     6. Header and navigation
     7. Page sections (hero, bands, cards, prose)
     8. Contact form
     9. Footer
    10. Utilities, motion and print
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */
@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fira Sans";
  src: url("/assets/fonts/fira-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fira Sans";
  src: url("/assets/fonts/fira-sans-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Fira Sans";
  src: url("/assets/fonts/fira-sans-600.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

/* 2. Design tokens -------------------------------------------------------- */
:root {
  /* Blacks (slightly warm so the off-white and gold sit comfortably) */
  --black-950: #0b0a08;   /* page background */
  --black-900: #15130f;   /* raised panels, header */
  --black-800: #1c1915;   /* cards */
  --line: #2f2a22;        /* decorative dividers */
  --line-strong: #6e6656; /* form borders (3:1+ against black) */

  /* Text on dark */
  --text: #f2ede3;        /* warm off-white, 16.9:1 on --black-950 */
  --text-muted: #c8bfae;  /* 10.8:1 */
  --text-subtle: #a79e8c; /* 7.4:1 — small print only */

  /* Gold */
  --gold: #ab8742;        /* brand gold (from the original site) */
  --gold-bright: #c9a55e; /* gold text/links on black, 8.5:1 */
  --gold-soft: #d4b370;   /* hover state */
  --gold-deep: #6b5220;   /* gold text on cream, 5.9:1 */

  /* Cream */
  --cream: #efe6d3;
  --cream-ink: #1a1610;   /* text on cream, 14.5:1 */
  --cream-muted: #4a4232; /* secondary text on cream, 8:1 */

  /* Status */
  --success: #9fd3a6;
  --error: #f1a39a;

  /* Type */
  --font-heading: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Fira Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.07rem + 0.3vw, 1.3rem);
  --step-2: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
  --step-3: clamp(1.7rem, 1.4rem + 1.4vw, 2.5rem);
  --step-4: clamp(2.1rem, 1.6rem + 2.4vw, 3.6rem);

  /* Space and shape */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6.5rem;
  --radius-sm: 4px;
  --radius: 10px;
  --radius-lg: 18px;
  --container: 76rem;
  --prose: 44rem;
  --header-h: 5rem;
  --focus: 3px solid var(--gold-soft);
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.9);
}

/* 3. Base / reset --------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--black-950);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 500; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p, ul, ol { margin: 0 0 var(--space-5); }
p { text-wrap: pretty; }
img, svg { display: block; max-width: 100%; height: auto; }
strong, b { font-weight: 600; }

a { color: var(--gold-bright); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-soft); text-decoration-thickness: 2px; }

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

::selection { background: var(--gold); color: var(--black-950); }

/* 4. Layout helpers ------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}
.section { padding-block: clamp(3.5rem, 8vw, var(--space-9)); }
.section--tight { padding-block: clamp(2.5rem, 5vw, var(--space-8)); }
.section--raised { background: var(--black-900); border-block: 1px solid var(--line); }

.section-head { max-width: 46rem; margin-bottom: var(--space-7); }
.section-head p:not(.eyebrow) { color: var(--text-muted); font-size: var(--step-1); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 0 var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
}

.grid { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--gold);
  color: var(--black-950);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--black-950); }

/* 5. Buttons and links ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 2.875rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn--primary { background: var(--gold); color: var(--black-950); }
.btn--primary:hover { background: var(--gold-soft); color: var(--black-950); }
.btn--outline { border-color: var(--gold); color: var(--text); background: transparent; }
.btn--outline:hover { background: var(--gold); color: var(--black-950); }
.btn--ghost { color: var(--text); border-color: var(--line-strong); background: transparent; }
.btn--ghost:hover { border-color: var(--gold-bright); color: var(--gold-soft); }
.btn--dark { background: var(--black-950); color: var(--text); }
.btn--dark:hover { background: var(--black-800); color: var(--gold-soft); }
.btn--sm { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: 0.9375rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; cursor: progress; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

.link-arrow {
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.link-arrow::after { content: "\2192"; transition: transform 0.2s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* 6. Header and navigation ------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 10, 8, 0.94);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(11, 10, 8, 0.82); backdrop-filter: blur(10px); }
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: var(--header-h);
}
.brand { flex: none; display: inline-flex; align-items: center; }
.brand img { width: 84px; height: auto; }

.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.9rem;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font: 600 1rem/1 var(--font-heading);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: flex; align-items: center; flex: 1; gap: var(--space-5); }
.nav-list { display: flex; align-items: center; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.nav-item { position: relative; }

.nav-link,
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.8rem;
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--text);
  font: 500 1rem/1.2 var(--font-heading);
  text-decoration: none;
  cursor: pointer;
}
.nav-link:hover,
.nav-trigger:hover,
.nav-trigger[aria-expanded="true"] { color: var(--gold-soft); }
.nav-link[aria-current="page"] { color: var(--gold-bright); }
.nav-trigger .chev {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}
.nav-trigger[aria-expanded="true"] .chev { transform: translateY(1px) rotate(-135deg); }
.nav-item.is-current > .nav-trigger { color: var(--gold-bright); }

.nav-panel {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: -1rem;
  width: min(36rem, 92vw);
  padding: var(--space-4);
  background: var(--black-900);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  display: none;
}
.nav-panel--narrow { width: min(26rem, 92vw); }
.nav-item.is-open > .nav-panel { display: block; }
/* Without JavaScript, dropdowns still open on hover and keyboard focus. */
.no-js .nav-item:hover > .nav-panel,
.no-js .nav-item:focus-within > .nav-panel { display: block; }

.nav-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.nav-panel a {
  display: grid;
  grid-template-columns: 2rem 1fr;
  column-gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
}
.nav-panel a:hover,
.nav-panel a:focus-visible { background: var(--black-800); }
.nav-panel a[aria-current="page"] .nav-panel-title { color: var(--gold-bright); }
.nav-panel .icon { grid-row: span 2; width: 1.5rem; height: 1.5rem; margin-top: 0.15rem; color: var(--gold-bright); fill: currentColor; }
.nav-panel-title { font: 500 1rem/1.3 var(--font-heading); }
.nav-panel-desc { grid-column: 2; font-size: 0.875rem; line-height: 1.45; color: var(--text-muted); }
.nav-panel a.no-icon { grid-template-columns: 1fr; }
.nav-panel a.no-icon .nav-panel-desc { grid-column: 1; }
.nav-panel-heading {
  margin: var(--space-4) 0.75rem var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  font: 600 0.75rem/1 var(--font-heading);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: var(--space-3); }

/* Mobile and small tablet navigation */
@media (max-width: 64rem) {
  :root { --header-h: 4.25rem; }
  .brand img { width: 64px; }
  /* backdrop-filter makes the header the containing block for position:fixed
     children, which squeezed the mobile menu into the header's height.
     Turn it off on small screens so the menu fills the viewport. */
  .site-header { background: rgba(11, 10, 8, 0.97); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-5);
    padding: var(--space-5) clamp(1rem, 4vw, 2.5rem) calc(var(--space-7) + env(safe-area-inset-bottom, 0px));
    background: var(--black-950);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .js .site-nav.is-open { display: flex; }
  .no-js .header-inner { flex-wrap: wrap; padding-block: var(--space-3); }
  .no-js .site-nav { flex-direction: column; align-items: stretch; width: 100%; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-link, .nav-trigger { width: 100%; justify-content: space-between; min-height: 3.25rem; font-size: 1.125rem; padding-inline: 0.25rem; }
  .nav-panel {
    position: static;
    width: auto;
    padding: 0 0 var(--space-4);
    background: none;
    border: 0;
    box-shadow: none;
    border-radius: 0;
  }
  .nav-panel a { padding-inline: 0.25rem; }
  .nav-actions { margin: 0; flex-direction: column; align-items: stretch; }
  .nav-actions .btn { width: 100%; min-height: 3rem; }
}
body.nav-open { overflow: hidden; }

/* 7. Page sections -------------------------------------------------------- */

/* Hero */
.hero { position: relative; padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: auto -20% 55% 35%;
  height: 38rem;
  background: radial-gradient(closest-side, rgba(171, 135, 66, 0.16), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: var(--space-7); align-items: center; grid-template-columns: 1.15fr 0.85fr; }
.hero h1 { max-width: 16ch; }
.hero h1 .accent { color: var(--gold-bright); }
.hero-lead { font-size: var(--step-1); color: var(--text-muted); max-width: 38rem; }
.hero-lead p:last-child { margin-bottom: 0; }
.hero .btn-row { margin-top: var(--space-6); }
.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--cream);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(171, 135, 66, 0.55);
  border-radius: inherit;
  pointer-events: none;
}
@media (max-width: 52rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 26rem; }
}

/* Page hero (interior pages) */
.page-hero { position: relative; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.25rem, 5vw, 4rem); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero::after {
  content: "";
  position: absolute;
  right: -10rem;
  top: -12rem;
  width: 34rem;
  height: 34rem;
  background: radial-gradient(closest-side, rgba(171, 135, 66, 0.14), transparent 70%);
  pointer-events: none;
}
.page-hero h1 { max-width: 22ch; position: relative; z-index: 1; }
.page-hero .subtitle { font-family: var(--font-heading); font-size: var(--step-2); color: var(--gold-bright); margin-top: calc(var(--space-2) * -1); }
.page-hero .lead { max-width: 42rem; font-size: var(--step-1); color: var(--text-muted); position: relative; z-index: 1; }
.page-hero .btn-row { margin-top: var(--space-5); position: relative; z-index: 1; }
.post-meta { color: var(--text-subtle); font-size: var(--step--1); }

/* Breadcrumbs */
.breadcrumbs { margin-bottom: var(--space-5); font-size: var(--step--1); color: var(--text-subtle); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.35rem; color: var(--line-strong); }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-soft); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--text-muted); }

/* Gold ornament (replaces the old hot-linked star graphic) */
.ornament {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 var(--space-5);
  color: var(--gold);
}
.ornament::before,
.ornament::after { content: ""; height: 1px; width: 3rem; background: currentColor; opacity: 0.7; }
.ornament span { width: 0.6rem; height: 0.6rem; background: currentColor; transform: rotate(45deg); }

/* Article layout with sidebar */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 60rem) { .article-layout { grid-template-columns: 1fr; } }

.prose { max-width: var(--prose); font-size: var(--step-0); }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text); }
.prose h2 { font-size: var(--step-2); margin-top: var(--space-7); padding-top: var(--space-2); }
.prose h3 { font-size: var(--step-1); margin-top: var(--space-6); color: var(--gold-bright); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: var(--space-3); padding-left: 0.25rem; }
.prose ul li::marker { color: var(--gold); }
.prose ol li::marker { color: var(--gold-bright); font-family: var(--font-heading); font-weight: 600; }
.prose .lead-p { font-size: var(--step-1); color: var(--text); }
.prose .callout {
  margin: var(--space-6) 0;
  padding: var(--space-5);
  background: var(--black-900);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.prose .callout > :last-child { margin-bottom: 0; }
.prose .callout strong:first-child { color: var(--gold-bright); }

.aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: var(--space-5); }
@media (max-width: 60rem) { .aside { position: static; } }
.aside-card {
  padding: var(--space-5);
  background: var(--black-900);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.aside-card h2 { font-size: var(--step-1); margin-bottom: var(--space-3); }
.aside-card p { color: var(--text-muted); font-size: 0.9375rem; }
.aside-card .btn { width: 100%; }
.aside-card .phone { display: block; margin-top: var(--space-4); text-align: center; font-family: var(--font-heading); font-weight: 600; }
.aside-links { list-style: none; margin: 0; padding: 0; }
.aside-links li { border-top: 1px solid var(--line); }
.aside-links a { display: block; padding: 0.65rem 0; color: var(--text); text-decoration: none; font-size: 0.9375rem; }
.aside-links a:hover { color: var(--gold-soft); }
.aside-links a[aria-current="page"] { color: var(--gold-bright); font-weight: 600; }

/* Cards */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--black-900);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}
.card:hover { border-color: rgba(201, 165, 94, 0.6); background: var(--black-800); }
.card h3 { font-size: var(--step-1); margin: 0; font-weight: 500; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card h3 a:focus-visible { outline: none; }
.card:focus-within { outline: var(--focus); outline-offset: 3px; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.9375rem; }
.card .icon { width: 2rem; height: 2rem; color: var(--gold-bright); fill: currentColor; }
.card .card-more { margin-top: auto; padding-top: var(--space-2); font: 600 0.9375rem/1 var(--font-heading); color: var(--gold-bright); }
.card .card-more::after { content: " \2192"; }

.card-group + .card-group { margin-top: var(--space-8); }
.card-group-title { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-5); }
.card-group-title h3 { margin: 0; font-size: var(--step-2); }

/* Numbered list of reasons */
.reasons { counter-reset: reason; list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.reasons li {
  counter-increment: reason;
  display: grid;
  grid-template-columns: 3rem 1fr;
  align-items: baseline;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--line);
  font: 500 var(--step-1)/1.3 var(--font-heading);
}
.reasons li::before { content: counter(reason, decimal-leading-zero); color: var(--gold-bright); font-size: 0.9rem; letter-spacing: 0.08em; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (max-width: 52rem) { .split { grid-template-columns: 1fr; } }
.media-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Cream band */
.band-cream { background: var(--cream); color: var(--cream-ink); }
.band-cream h2, .band-cream h3 { color: var(--cream-ink); }
.band-cream p { color: var(--cream-muted); }
.band-cream a:not(.btn) { color: var(--gold-deep); }
.band-cream .eyebrow { color: var(--gold-deep); }
.band-cream :focus-visible { outline-color: var(--cream-ink); }

/* Gold call-to-action band (echoes the original gold footer) */
.cta-band { background: var(--gold); color: var(--black-950); }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5) var(--space-7); padding-block: clamp(2.5rem, 6vw, 4rem); }
.cta-band h2 { margin: 0 0 var(--space-2); font-size: var(--step-3); color: var(--black-950); }
.cta-band p { margin: 0; color: #24200f; font-size: var(--step-1); }
.cta-band a:not(.btn) { color: var(--black-950); font-weight: 600; }
.cta-band :focus-visible { outline-color: var(--black-950); }
.cta-band .btn-row { flex: none; }

/* Tech logos (software development page) */
.logo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: var(--space-4); list-style: none; margin: 0 0 var(--space-6); padding: 0; }
.logo-row li {
  display: grid;
  place-items: center;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--cream);
  border-radius: var(--radius);
  color: var(--cream-ink);
  font: 500 0.9375rem/1.2 var(--font-heading);
  text-align: center;
}
.logo-row img { height: 3.5rem; width: auto; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; }

/* Blog list */
.post-list { display: grid; gap: var(--space-5); }
.post-card time { font-size: var(--step--1); color: var(--text-subtle); }

/* Pricing note */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: var(--space-4); margin: var(--space-6) 0; }
.stat { padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--black-900); }
.stat strong { display: block; font: 500 var(--step-2)/1.15 var(--font-heading); color: var(--gold-bright); margin-bottom: var(--space-2); }
.stat span { color: var(--text-muted); font-size: 0.9375rem; }

/* 404 */
.notfound { text-align: center; padding-block: clamp(4rem, 12vw, 9rem); }
.notfound .code { font: 300 clamp(5rem, 18vw, 10rem)/1 var(--font-heading); color: var(--gold); margin: 0; }
.notfound .btn-row { justify-content: center; }

/* 8. Contact form --------------------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 56rem) { .contact-layout { grid-template-columns: 1fr; } }

.form-card { padding: clamp(1.25rem, 4vw, 2.5rem); background: var(--black-900); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.form { display: grid; gap: var(--space-5); }
.form-row { display: grid; gap: var(--space-5); grid-template-columns: 1fr 1fr; }
@media (max-width: 40rem) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: var(--space-2); }
.field label { font: 500 1rem/1.3 var(--font-heading); }
.field .req { color: var(--gold-bright); }
.field .hint { font-size: 0.875rem; color: var(--text-subtle); }
.field input,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  background: var(--black-950);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  line-height: 1.4;
}
.field textarea { min-height: 10rem; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--text-subtle); }
.field input:focus-visible, .field textarea:focus-visible { outline: var(--focus); outline-offset: 1px; border-color: var(--gold-bright); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { margin: 0; font-size: 0.875rem; color: var(--error); }
.field-error:empty { display: none; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status { padding: var(--space-4) var(--space-5); border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--black-950); }
.form-status:empty { display: none; }
.form-status[data-state="success"] { border-color: var(--success); color: var(--success); }
.form-status[data-state="error"] { border-color: var(--error); color: var(--error); }
.form-status[data-state="pending"] { color: var(--text-muted); }
.form-status p { margin: 0; }
.form-footnote { font-size: 0.875rem; color: var(--text-subtle); margin: 0; }
.turnstile-wrap { min-height: 65px; }

.contact-aside h2 { font-size: var(--step-2); }
.contact-phone { display: inline-block; font: 500 var(--step-3)/1.1 var(--font-heading); color: var(--gold-bright); text-decoration: none; margin-bottom: var(--space-5); }
.contact-phone:hover { color: var(--gold-soft); text-decoration: underline; }

/* 9. Footer --------------------------------------------------------------- */
.site-footer { background: var(--black-900); border-top: 1px solid var(--line); padding-block: var(--space-8) var(--space-6); font-size: 0.9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: var(--space-6); }
@media (max-width: 64rem) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 30rem) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { width: 96px; margin-bottom: var(--space-4); }
.footer-brand p { color: var(--text-muted); max-width: 22rem; }
.footer-phone { font: 500 var(--step-1)/1.2 var(--font-heading); color: var(--gold-bright); text-decoration: none; }
.footer-phone:hover { text-decoration: underline; }
.footer-col h2 { font: 600 0.8125rem/1 var(--font-heading); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: var(--space-4); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.footer-col a { display: inline-block; padding-block: 0.35rem; color: var(--text-muted); text-decoration: none; }
.footer-col a:hover { color: var(--gold-soft); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--line); color: var(--text-subtle); font-size: 0.875rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--text-muted); }

/* 10. Utilities, motion and print ----------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--text-muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

@media (forced-colors: active) {
  .btn, .card, .nav-panel, .form-card, .aside-card { border: 1px solid CanvasText; }
  .ornament span { forced-color-adjust: none; background: CanvasText; }
}

@media print {
  .site-header, .site-footer, .cta-band, .aside, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; }
  .page-hero, .section { padding-block: 1rem; }
}

/* Small spacing helpers used in page markup (no inline styles, so the CSP can stay strict) */
.m-0 { margin: 0; }
.mt-6 { margin-top: var(--space-6); }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list a { display: block; padding: var(--space-3) 0; border-top: 1px solid var(--line); text-decoration: none; }
.prose .label { margin-bottom: var(--space-2); font-family: var(--font-heading); color: var(--gold-bright); }
.band-cream .card { background: #f7f1e4; border-color: #d8ccb2; }
.band-cream .card:hover { background: #fffaf0; border-color: var(--gold-deep); }
.band-cream .card h3 a { color: var(--cream-ink); }
.band-cream .card p { color: var(--cream-muted); }
.band-cream .card .card-more { color: var(--gold-deep); }
.band-cream .card:focus-within { outline-color: var(--cream-ink); }
.nowrap { white-space: nowrap; }

/* Five-card rows: 3 + 2 on desktop, 2 + 2 + 1 (full width) on tablet, stacked on phones */
.grid--5 { grid-template-columns: 1fr; }
@media (min-width: 40rem) {
  .grid--5 { grid-template-columns: repeat(2, 1fr); }
  .grid--5 > :last-child { grid-column: 1 / -1; }
}
@media (min-width: 64rem) {
  .grid--5 { grid-template-columns: repeat(6, 1fr); }
  .grid--5 > * { grid-column: span 2; }
  .grid--5 > :nth-child(n+4) { grid-column: span 3; }
}
.band-cream .section-head p:not(.eyebrow) { color: var(--cream-muted); }
.prose .logo-row { padding-left: 0; }
.prose .logo-row li { margin: 0; padding: var(--space-4); color: var(--cream-ink); }
.hero-media--art { background: var(--black-900); }
.hero-media--art img { mix-blend-mode: normal; }
