/* ============================================================
   Mad Tech Heads — Homepage design system (graphite & copper)
   Scoped to .hn-page so it doesn't bleed into other pages.
   ============================================================ */

body:has(.hn-page) { background: var(--hn-bg, #faf9f6); }
/* The sticky CTA bar already has its own WhatsApp button — the floating
   widget would otherwise float on top of it and overlap page content. */
body:has(.hn-sticky) .whatsapp-widget { display: none; }
/* Bottom-of-screen declutter: while the cookie banner is up, hide the sticky
   CTA bar so a first-time visitor sees one thing at the bottom, not two
   overlapping bars. The sticky bar reappears once the banner is dismissed. */
body:has(.cookie-banner:not([hidden])) .hn-sticky { display: none; }
body:has(.cookie-banner:not([hidden])) .whatsapp-widget { display: none; }
body:has(.hn-page) .site-header {
  background: rgba(250,249,246,0.85);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid rgba(23,23,23,0.08);
}

/* Contain the mascot logo in a soft badge + pair it with a clean wordmark,
   so the illustrated sticker reads as an emblem rather than fighting the type. */
body:has(.hn-page) .site-header__logo {
  display: flex; align-items: center; gap: 0.7rem;
}
body:has(.hn-page) .site-header__logo img {
  height: 38px !important; width: 38px; object-fit: contain;
  padding: 5px; border-radius: 11px;
  background: #f2f0ea; border: 1px solid rgba(23,23,23,0.08);
}
body:has(.hn-page) .site-header__logo::after {
  content: 'Mad Tech Heads';
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em;
  color: #171717; white-space: nowrap;
}
@media (max-width: 480px) { body:has(.hn-page) .site-header__logo::after { display: none; } }

[data-theme="dark"] body:has(.hn-page) { background: #14140f; }
[data-theme="dark"] body:has(.hn-page) .site-header {
  background: rgba(20,20,15,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
[data-theme="dark"] body:has(.hn-page) .site-header__logo img {
  background: #232420; border: 1px solid rgba(255,255,255,0.1);
}
[data-theme="dark"] body:has(.hn-page) .site-header__logo::after { color: #f5f4f1; }

/* The legacy blue accent (--primary) still leaked into shared components on
   every page — nav, buttons, form focus rings, footer links, contact cards.
   Remap the old token to the brand so nothing renders blue. The neutral scale
   was hue 220 too — a blue-grey that showed up as a navy dropdown panel, navy
   form fields and navy cards — so the whole legacy scale moves to graphite. */
body:has(.hn-page) {
  --primary: 175 77% 26%;
  --accent: 175 77% 26%;
  --ring: 175 77% 26%;
  --background: 45 29% 97%;
  --foreground: 60 2% 17%;
  --card: 0 0% 100%;
  --card-foreground: 60 2% 17%;
  --popover: 0 0% 100%;
  --popover-foreground: 60 2% 17%;
  --secondary: 45 24% 93%;
  --muted: 45 24% 93%;
  --muted-foreground: 60 2% 41%;
  --border: 45 12% 90%;
  --input: 45 12% 90%;
}
[data-theme="dark"] body:has(.hn-page) {
  --primary: 173 80% 40%;
  --accent: 173 80% 40%;
  --ring: 173 80% 40%;
  --background: 60 14% 7%;
  --foreground: 45 9% 83%;
  --card: 70 8% 10%;
  --card-foreground: 45 9% 83%;
  --popover: 70 8% 10%;
  --popover-foreground: 45 9% 83%;
  --secondary: 70 8% 12%;
  --muted: 70 8% 12%;
  --muted-foreground: 47 4% 59%;
  --border: 70 6% 17%;
  --input: 70 6% 17%;
}

/* Legal/legacy pages mark their heading accent with .text-primary and their
   label with .section-eyebrow. Give both the graphite & copper treatment so
   they read like the rest of the site rather than flat brand-colour text. */
.hn-page h1 .text-primary {
  font-family: var(--font-accent); font-style: italic; font-weight: 500;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hn-page .section-eyebrow {
  background: rgba(179,103,43,0.1); color: var(--metal);
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.12em; font-size: 0.78rem;
}

/* The shared nav still painted its active pill in the legacy blue accent, which
   fought the graphite & copper palette on every page. Literal colours here: the
   header sits outside .hn-page, so the palette variables aren't in scope. */
body:has(.hn-page) .nav-link.is-active,
body:has(.hn-page) .nav-mobile__link.is-active {
  background: linear-gradient(135deg, #14b8a6, #0b5c56);
  color: #fff;
}
body:has(.hn-page) .nav-more__link.is-active { background: rgba(15,118,110,0.1); color: #0b5c56; }
body:has(.hn-page) .nav-link:hover { color: #171717; background: rgba(23,23,23,0.05); }
[data-theme="dark"] body:has(.hn-page) .nav-link:hover { color: #f5f4f1; background: rgba(255,255,255,0.07); }
[data-theme="dark"] body:has(.hn-page) .nav-more__link.is-active { background: rgba(20,184,166,0.16); color: #2dd4bf; }

.hn-page {
  --ink: #171717;
  --text: #2c2c2a;
  --muted: #6b6b66;
  --bg: #faf9f6;
  --bg-soft: #f2f0ea;
  --card: #ffffff;
  --border: rgba(23,23,23,0.1);
  --border-strong: rgba(23,23,23,0.18);
  --brand: #0f766e;
  --brand-bright: #14b8a6;
  --brand-dark: #0b5c56;
  --metal: #b3672b;
  --metal-bright: #d98f4e;
  --navy: #0c1210;
  --grad-brand: linear-gradient(100deg, var(--brand-dark), var(--brand) 55%, var(--metal));
  --grad-btn: linear-gradient(135deg, var(--brand-bright), var(--brand-dark));
  --shadow-sm: 0 1px 2px rgba(23,23,23,0.05), 0 3px 10px rgba(23,23,23,0.05);
  --shadow-md: 0 2px 6px rgba(23,23,23,0.05), 0 12px 32px rgba(23,23,23,0.1);
  --shadow-lg: 0 4px 12px rgba(23,23,23,0.06), 0 32px 64px -16px rgba(23,23,23,0.18);
  --shadow-brand: 0 12px 40px -8px rgba(15,118,110,0.35);
  --radius: 18px;
  --radius-sm: 10px;
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  --font-accent: 'Fraunces', Georgia, serif;
  position: relative;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}
[data-theme="dark"] .hn-page {
  --ink: #f5f4f1;
  --text: #d8d6d0;
  --muted: #9a9891;
  --bg: #14140f;
  --bg-soft: #1f201c;
  --card: #1b1c18;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --brand: #14b8a6;
  --brand-bright: #2dd4bf;
  --brand-dark: #2dd4bf;
  --metal: #d98f4e;
  --metal-bright: #e8a866;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3), 0 3px 10px rgba(0,0,0,0.25);
  --shadow-md: 0 2px 6px rgba(0,0,0,0.3), 0 12px 32px rgba(0,0,0,0.35);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.35), 0 32px 64px -16px rgba(0,0,0,0.5);
  --shadow-brand: 0 12px 40px -8px rgba(20,184,166,0.3);
}
.hn-page h1, .hn-page h2, .hn-page h3, .hn-page h4 { font-family: var(--font-display); color: var(--ink); }

.hn-page .fancy {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.hn-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--metal);
  margin-bottom: 0.75rem;
}
.hn-eyebrow::before { content: ''; width: 1.5rem; height: 2px; background: var(--metal); }
.hn-section-title.hn-eyebrow-wrap, .hn-help, .hn-solve, .hn-reviews, .hn-section-head { text-align: center; }
.hn-help .hn-eyebrow, .hn-solve .hn-eyebrow, .hn-reviews .hn-eyebrow, .hn-section-head .hn-eyebrow { justify-content: center; }
.hn-help .hn-eyebrow::before, .hn-reviews .hn-eyebrow::before, .hn-section-head .hn-eyebrow::before { display: none; }
.hn-section-head { max-width: 42rem; margin: 0 auto 2.5rem; }
.hn-section-head .hn-section-title, .hn-section-head .hn-section-lede { margin-bottom: 0; }
.hn-section-head .hn-section-lede { margin-top: 0.5rem; }

/* ============================================================
   Hero
   ============================================================ */
.hn-hero {
  position: relative;
  padding: clamp(6rem, 11vw, 8rem) 1.5rem 4rem;
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem;
  align-items: center;
  isolation: isolate;
}
@media (max-width: 960px) {
  .hn-hero { grid-template-columns: 1fr; padding-top: 5.5rem; }
  .hn-hero__copy { text-align: center; }
  .hn-hero__copy p { margin-inline: auto; }
  .hn-hero__ctas { justify-content: center; }
  .hn-pills { justify-content: center; text-align: left; }
}

/* Faint blueprint grid behind the hero */
.hn-hero::before {
  content: ''; position: absolute; z-index: -1;
  top: -2rem; left: 50%; transform: translateX(-50%);
  width: 100vw; height: calc(100% + 4rem);
  background-image:
    linear-gradient(rgba(23,23,23,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,23,23,0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 40%, black 40%, transparent 90%);
  mask-image: radial-gradient(ellipse 70% 65% at 50% 40%, black 40%, transparent 90%);
}
[data-theme="dark"] .hn-hero::before {
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
}

.hn-hero__copy h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700; line-height: 1.05;
  margin: 0 0 0.6rem; letter-spacing: -0.03em;
}
.hn-hero__copy h1 .fancy { font-size: 1.05em; }
.hn-hero__copy p {
  font-size: 1.1rem; line-height: 1.6;
  margin: 1rem 0 1.75rem; max-width: 34rem; color: var(--muted);
}
.hn-hero__also {
  display: inline-block; margin-top: 0.6rem;
  font-size: 0.9rem; font-weight: 600; color: var(--metal);
  text-decoration: none;
}
.hn-hero__also:hover { text-decoration: underline; }
.hn-hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }

.hn-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.25s cubic-bezier(.2,.8,.3,1), box-shadow 0.25s, filter 0.25s, background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}
.hn-btn--primary {
  background: var(--grad-btn); color: #fff;
  box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255,255,255,0.2);
}
.hn-btn--primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.hn-btn--outline {
  background: var(--card); color: var(--ink);
  border-color: var(--border-strong); box-shadow: var(--shadow-sm);
}
.hn-btn--outline:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--shadow-md); }
.hn-btn--whatsapp { background: #25D366; border-color: #25D366; color: #fff; }
.hn-btn--whatsapp:hover { transform: translateY(-2px); filter: brightness(1.05); }

.hn-pills { display: flex; gap: 1.75rem; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.hn-pill { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; font-weight: 600; color: var(--text); }
.hn-pill__icon {
  width: 2.25rem; height: 2.25rem;
  display: grid; place-items: center;
  background: rgba(15,118,110,0.08); color: var(--brand-dark);
  border-radius: 50%; flex: 0 0 auto;
}

/* ---- Hero showpiece: animated diagnostic ticket ---- */
.hn-ticket {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 1.75rem;
  max-width: 380px; margin: 0 auto;
  overflow: hidden;
}
.hn-ticket::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--ring-angle, 0deg), var(--brand), var(--metal), var(--brand-bright), var(--metal), var(--brand));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: hn-ring 6s linear infinite; opacity: 0.55;
}
@property --ring-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes hn-ring { to { --ring-angle: 360deg; } }

.hn-ticket__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.hn-ticket__brand { display: flex; align-items: center; gap: 0.6rem; }
.hn-ticket__logo { height: 18px; width: auto; display: block; }
.hn-ticket__id { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: var(--muted); letter-spacing: 0.05em; }
.hn-ticket__badge {
  font-family: var(--font-display); font-weight: 700; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  background: rgba(15,118,110,0.1); color: var(--brand-dark);
  padding: 0.3rem 0.75rem; border-radius: 999px;
}
.hn-ticket__device { display: flex; align-items: center; gap: 0.9rem; padding: 1rem; background: var(--bg-soft); border-radius: var(--radius-sm); margin-bottom: 1.25rem; }
.hn-ticket__device svg { width: 2.25rem; height: 2.25rem; color: var(--brand-dark); flex: 0 0 auto; }
.hn-ticket__device strong { display: block; font-family: var(--font-display); font-size: 0.95rem; }
.hn-ticket__device span { display: block; font-size: 0.78rem; color: var(--muted); }

.hn-ticket__steps { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 0.6rem; }
.hn-ticket__steps li {
  display: flex; align-items: center; gap: 0.65rem;
  font-size: 0.85rem; color: var(--muted);
}
.hn-ticket__dot {
  width: 1.15rem; height: 1.15rem; border-radius: 50%; flex: 0 0 auto;
  border: 2px solid var(--border-strong); position: relative;
}
.hn-ticket__steps li.is-done { color: var(--text); font-weight: 600; }
.hn-ticket__steps li.is-done .hn-ticket__dot { background: var(--brand); border-color: var(--brand); }
.hn-ticket__steps li.is-done .hn-ticket__dot::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  width: 0.4rem; height: 0.65rem;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: translateY(-1px) rotate(45deg);
}
.hn-ticket__steps li.is-active .hn-ticket__dot { border-color: var(--brand); animation: hn-pulse 1.4s ease-in-out infinite; }
@keyframes hn-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(15,118,110,0.35); } 50% { box-shadow: 0 0 0 5px rgba(15,118,110,0); } }

.hn-ticket__bar { height: 6px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; margin-bottom: 1rem; }
.hn-ticket__bar span { display: block; height: 100%; background: var(--grad-brand); border-radius: inherit; animation: hn-fill 5.4s cubic-bezier(.4,0,.2,1) infinite; }
@keyframes hn-fill { 0% { width: 4%; } 70% { width: 100%; } 100% { width: 100%; } }

.hn-ticket__foot { display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; color: var(--muted); }
.hn-ticket__foot strong { color: var(--metal); font-family: var(--font-display); }

@media (prefers-reduced-motion: reduce) {
  .hn-ticket::before, .hn-ticket__bar span, .hn-ticket__steps li.is-active .hn-ticket__dot { animation: none; }
}

/* ============================================================
   Stats strip
   ============================================================ */
.hn-stats { padding: 0 1.5rem 2.5rem; max-width: 1200px; margin: 0 auto; }
.hn-stats__row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  text-align: center;
}
a.hn-stat { text-decoration: none; border-radius: var(--radius-sm); transition: transform 0.15s ease; }
a.hn-stat:hover { transform: translateY(-2px); }
@media (max-width: 700px) { .hn-stats__row { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; } }
.hn-stat__num {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.1rem, 4.5vw, 2.9rem); letter-spacing: -0.02em;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; line-height: 1.1;
}
.hn-stat__label {
  display: block; margin-top: 0.35rem; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600;
}

/* ============================================================
   Trust strip
   ============================================================ */
.hn-trust { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 2.5rem 0; }
.hn-trust__row {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem;
  align-items: center;
}
@media (max-width: 900px) { .hn-trust__row { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; } }
.hn-trust__item { display: flex; gap: 0.85rem; align-items: center; }
.hn-trust__icon { width: 2.25rem; height: 2.25rem; flex: 0 0 auto; color: var(--brand-dark); }
.hn-trust__text strong { font-family: var(--font-display); font-weight: 700; display: block; font-size: 0.95rem; line-height: 1.15; color: var(--ink); }
.hn-trust__text span, .hn-trust__text a { font-size: 0.8rem; color: var(--muted); text-decoration: none; }
.hn-trust__text a:hover { color: var(--brand-dark); text-decoration: underline; }
.hn-trust__reviews { text-align: right; }
@media (max-width: 900px) { .hn-trust__reviews { text-align: left; } }
.hn-trust__reviews .stars { color: var(--metal); font-size: 1rem; letter-spacing: 0.05em; }
.hn-trust__reviews strong { display: block; font-size: 0.9rem; font-family: var(--font-display); color: var(--ink); }
.hn-trust__reviews small { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 0.15rem; }
.hn-trust__reviews small a { color: var(--muted); text-decoration: underline; text-decoration-color: rgba(0,0,0,0.15); }
.hn-trust__reviews small a:hover { color: var(--ink); text-decoration-color: currentColor; }

/* ============================================================
   Partner spotlight (currently: GlitterBeam). A proper feature, not a
   logo-strip — with one partner, a thin row of logos reads as sparse/
   placeholder-y. This is sized to carry a single relationship well; if a
   second partner joins, duplicate the block rather than compressing both
   into a shared row.
   ============================================================ */
.hn-partner { background: var(--bg-soft); padding: 6rem 1.5rem; }
.hn-partner__inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3.5rem;
  align-items: center;
}
@media (max-width: 900px) { .hn-partner__inner { grid-template-columns: 1fr; text-align: center; } }
.hn-partner__art {
  display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
}
.hn-partner__art img {
  height: 64px; width: auto; display: block;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.12));
}
[data-theme="dark"] .hn-partner__art img { filter: drop-shadow(0 10px 24px rgba(0,0,0,0.4)); }
.hn-partner__art-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; font-weight: 600; color: var(--brand-dark);
  background: rgba(15,118,110,0.1); padding: 0.35rem 0.75rem; border-radius: 999px;
}
.hn-partner__art-tag svg { width: 13px; height: 13px; }
.hn-partner h2 { font-weight: 700; font-size: clamp(2rem, 4.5vw, 2.75rem); line-height: 1.08; margin: 0 0 1.1rem; letter-spacing: -0.03em; }
.hn-partner h2 .accent { font-family: var(--font-accent); font-style: italic; font-weight: 500; color: var(--metal); }
.hn-partner p { margin: 0 0 1rem; font-size: 1.02rem; line-height: 1.65; color: var(--text); }
.hn-partner__ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
@media (max-width: 900px) { .hn-partner__ctas { justify-content: center; } }
.hn-partner__note { margin: 1.5rem 0 0; font-size: 0.88rem; color: var(--muted); }
.hn-partner__note a { color: var(--brand-dark); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(15,118,110,0.35); }
.hn-partner__note a:hover { text-decoration-color: currentColor; }

/* ============================================================
   Section titles
   ============================================================ */
.hn-section-title {
  text-align: center;
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.025em;
}
.hn-section-title .accent { font-family: var(--font-accent); font-style: italic; font-weight: 500; color: var(--metal); }
.hn-section-lede { text-align: center; color: var(--muted); max-width: 36rem; margin: 0 auto 3rem; font-size: 1.05rem; }

/* ============================================================
   How We Can Help
   ============================================================ */
.hn-help { padding: 6rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.hn-help__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
@media (max-width: 900px) { .hn-help__grid { grid-template-columns: 1fr; } }
/* Two adjacent 6rem-padded sections stack to a dead ~12rem gap with no
   visual anchor between them (e.g. glitterbeam.php's Reviews → Help,
   or the homepage's Partner spotlight → Help). */
.hn-reviews + .hn-help,
.hn-partner + .hn-help { padding-top: 2rem; }

.hn-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.25s cubic-bezier(.2,.8,.3,1), box-shadow 0.25s, border-color 0.25s;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.hn-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.hn-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.5) 48%, rgba(255,255,255,0.5) 52%, transparent 60%);
  transform: translateX(-120%); transition: transform 0.7s ease;
}
.hn-card:hover::after { transform: translateX(120%); }
.hn-card--featured { border-color: rgba(179,103,43,0.35); }
.hn-card--featured::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--ring-angle, 0deg), var(--brand), var(--metal), var(--brand-bright), var(--metal), var(--brand));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: hn-ring 6s linear infinite; opacity: 0.6; pointer-events: none;
}
.hn-card--featured::after {
  content: 'Most popular';
  position: absolute; top: 1.1rem; right: 1.1rem; bottom: auto; left: auto;
  width: max-content; height: auto;
  background: var(--grad-brand); color: #fff;
  padding: 0.3rem 0.75rem; border-radius: 999px;
  font-family: var(--font-display); font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em;
  transform: none;
}
.hn-card--featured:hover::after { transform: none; }
.hn-card__art {
  width: 3.25rem; height: 3.25rem; display: grid; place-items: center;
  margin-bottom: 1.1rem; border-radius: var(--radius-sm);
  background: rgba(15,118,110,0.08); color: var(--brand-dark);
}
.hn-card__art svg { width: 1.6rem; height: 1.6rem; }
.hn-card h3 { font-weight: 700; font-size: 1.15rem; margin: 0 0 0.5rem; letter-spacing: -0.01em; color: var(--ink); }
a.hn-card, a.hn-card:hover, a.hn-card:visited { color: var(--ink); }
.hn-card p { font-size: 0.95rem; color: var(--muted); margin: 0 0 1.1rem; flex: 1; line-height: 1.55; }
.hn-card__link { font-weight: 600; font-size: 0.85rem; text-decoration: none; color: var(--brand-dark); font-family: var(--font-display); }
.hn-card:hover .hn-card__link { text-decoration: underline; }

.hn-also {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 0.6rem 1rem; margin-top: 2.75rem;
  padding-top: 2rem; border-top: 1px solid var(--border);
  font-size: 0.9rem;
}
.hn-also span { color: var(--muted); font-weight: 600; }
.hn-also a {
  color: var(--text); text-decoration: none;
  padding: 0.4rem 0.9rem; border-radius: 999px;
  border: 1px solid var(--border-strong);
  transition: border-color 0.2s, color 0.2s;
}
.hn-also a:hover { border-color: var(--brand); color: var(--brand-dark); }

/* ============================================================
   Hi, I'm Simon / Why Choose
   ============================================================ */
.hn-why { background: var(--bg-soft); padding: 6rem 1.5rem; }
.hn-why__inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 3.5rem;
  align-items: center;
}
@media (max-width: 900px) {
  .hn-why__inner { grid-template-columns: 1fr; text-align: center; }
  .hn-checklist { justify-items: center; }
  .hn-checklist li { text-align: left; }
  /* centre the list as a block so the tick column stays flush, not ragged */
  .hn-why .hn-checklist { justify-items: stretch; width: max-content; max-width: 100%; margin-inline: auto; }
}
.hn-why__art {
  aspect-ratio: 1; border-radius: var(--radius);
  background: linear-gradient(150deg, var(--bg-soft), var(--card));
  border: 1px solid var(--border);
  display: grid; place-items: center; width: min(380px, 100%); margin: 0 auto;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.hn-why__art svg { width: 55%; height: 55%; }
.hn-why__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hn-why h2 { font-weight: 700; font-size: clamp(2rem, 4.5vw, 2.75rem); line-height: 1.08; margin: 0 0 1.1rem; letter-spacing: -0.03em; }
.hn-why h2 .accent { font-family: var(--font-accent); font-style: italic; font-weight: 500; color: var(--metal); }
.hn-why p { margin: 0 0 1rem; font-size: 1rem; line-height: 1.65; color: var(--text); }
.hn-why__lead { font-size: 1rem; font-weight: 700; color: var(--ink) !important; margin: 1.75rem 0 1.1rem !important; }
.hn-why__signoff {
  font-family: var(--font-accent); font-style: italic; font-size: 1.3rem;
  color: var(--metal); margin: 1.75rem 0 0 !important;
}
.hn-checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px) { .hn-checklist { grid-template-columns: 1fr; } }
.hn-checklist li { display: flex; align-items: center; gap: 0.75rem; font-weight: 600; font-size: 1rem; color: var(--text); }
.hn-check {
  width: 1.75rem; height: 1.75rem; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--grad-brand); color: #fff;
  border-radius: 50%;
}

/* ============================================================
   We Solve Real Problems (outcome stats)
   ============================================================ */
.hn-solve { padding: 6rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.hn-solve__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; margin-top: 2.5rem; }
@media (max-width: 900px) { .hn-solve__grid { grid-template-columns: 1fr; } }
.hn-outcome {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(.2,.8,.3,1), box-shadow 0.25s, border-color 0.25s;
}
.hn-outcome:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.hn-outcome:hover .hn-outcome__icon { transform: scale(1.08); }
.hn-outcome__icon { transition: transform 0.25s cubic-bezier(.2,.8,.3,1); }
.hn-outcome__icon {
  width: 3.25rem; height: 3.25rem; margin: 0 auto 1.1rem;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(179,103,43,0.1); color: var(--metal);
}
.hn-outcome__icon svg { width: 1.6rem; height: 1.6rem; }
.hn-outcome h4 { font-weight: 700; font-size: 1.1rem; margin: 0 0 0.5rem; }
.hn-outcome p { font-size: 0.92rem; color: var(--muted); margin: 0; line-height: 1.55; }

/* ============================================================
   Testimonials
   ============================================================ */
.hn-reviews { padding: 6rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.hn-reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
@media (max-width: 900px) { .hn-reviews__grid { grid-template-columns: 1fr; } }
.hn-review {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; position: relative; box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(.2,.8,.3,1), box-shadow 0.25s, border-color 0.25s;
}
.hn-review:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.hn-review::before {
  content: '\201C';
  position: absolute; top: -0.4rem; left: 1.25rem;
  font-family: var(--font-accent); font-style: italic; font-size: 4rem; line-height: 1;
  color: rgba(179,103,43,0.35);
}
.hn-review p { font-size: 0.95rem; margin: 1.5rem 0 1.25rem; position: relative; z-index: 1; color: var(--text); line-height: 1.6; }
.hn-review__author { display: flex; align-items: center; gap: 0.75rem; }
.hn-review__avatar {
  width: 2.5rem; height: 2.5rem; flex: 0 0 auto;
  border-radius: 50%; background: var(--grad-brand); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700;
}
.hn-review__name { font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.hn-review__where { font-size: 0.8rem; color: var(--muted); }

/* ============================================================
   Sticky CTA bar
   ============================================================ */
.hn-sticky {
  position: sticky; bottom: 0;
  background: var(--navy); color: rgba(255,255,255,0.85);
  z-index: 50; padding: 1.1rem 1.5rem;
  box-shadow: 0 -6px 24px rgba(0,0,0,0.25);
}
.hn-sticky__inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.hn-sticky__title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.2; margin: 0; color: #fff; }
.hn-sticky__title .accent { font-family: var(--font-accent); font-style: italic; font-weight: 500; color: var(--metal-bright); margin-left: 0.3em; }
.hn-sticky__trust { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: 0.75rem; color: rgba(255,255,255,0.6); margin-top: 0.4rem; }
.hn-sticky__trust span { display: inline-flex; align-items: center; gap: 0.35rem; }
.hn-sticky__trust span::before { content: '✓'; color: var(--brand-bright); font-weight: 800; }
.hn-sticky__ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.hn-sticky .hn-btn { padding: 0.65rem 1.2rem; font-size: 0.85rem; }
.hn-sticky .hn-btn--outline { color: #fff; border-color: rgba(255,255,255,0.25); background: transparent; box-shadow: none; }
.hn-sticky .hn-btn--outline:hover { border-color: rgba(255,255,255,0.5); }
@media (max-width: 640px) {
  .hn-sticky { padding: 0.85rem 1.25rem; }
  .hn-sticky__trust { display: none; }
  .hn-sticky__title { font-size: 0.95rem; }
  .hn-sticky__inner { gap: 0.75rem; }
  .hn-sticky__ctas { width: 100%; }
  .hn-sticky__ctas .hn-btn { flex: 1; text-align: center; }
}

/* ============================================================
   Filter pills
   ============================================================ */
.hn-filter-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.hn-filter-pills a {
  padding: 0.55rem 1.4rem; border-radius: 999px; font-family: var(--font-display);
  font-weight: 600; font-size: 0.9rem; text-decoration: none;
  background: var(--bg-soft); color: var(--text); transition: background 0.2s, color 0.2s;
}
.hn-filter-pills a.is-active { background: var(--grad-brand); color: #fff; }
.hn-filter-pills a span { opacity: 0.7; font-size: 0.78rem; }

/* ============================================================
   Project card (portfolio)
   ============================================================ */
.hn-project-card {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--text);
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  border-top: 3px solid var(--metal); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(.2,.8,.3,1), box-shadow 0.25s;
}
.hn-project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.hn-project-card__img { height: 12rem; background: rgba(179,103,43,0.08); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hn-project-card__img img { width: 100%; height: 100%; object-fit: cover; }
.hn-project-card__placeholder { display: flex; flex-direction: column; align-items: center; color: rgba(179,103,43,0.5); }
.hn-project-card__placeholder svg { width: 44px; height: 44px; }
.hn-project-card__placeholder span { font-size: 0.72rem; margin-top: 0.5rem; }
.hn-project-card__year { position: absolute; bottom: 0.5rem; left: 0.5rem; padding: 0.25rem 0.55rem; background: rgba(255,255,255,0.92); border-radius: var(--radius-sm); font-size: 0.72rem; font-weight: 600; color: var(--ink); }
.hn-project-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.hn-project-card__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.hn-chip { font-size: 0.72rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 999px; }
.hn-chip--brand { background: rgba(15,118,110,0.1); color: var(--brand-dark); }
.hn-chip--metal { background: rgba(179,103,43,0.1); color: var(--metal); }
.hn-project-card h3 { font-weight: 700; font-size: 1.1rem; margin: 0 0 0.5rem; }
.hn-project-card p { font-size: 0.9rem; color: var(--muted); margin: 0 0 1rem; flex: 1; line-height: 1.55; }
.hn-project-card__link { color: var(--metal); font-weight: 600; font-size: 0.85rem; font-family: var(--font-display); display: inline-flex; align-items: center; gap: 0.3rem; }

/* ============================================================
   Tab nav
   ============================================================ */
.hn-tabs {
  display: grid; grid-template-columns: 1fr 1fr; max-width: 26rem; margin: 0 auto;
  background: var(--bg-soft); border-radius: 999px; padding: 0.3rem;
}
.hn-tabs a {
  text-align: center; padding: 0.6rem 1rem; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  color: var(--muted); text-decoration: none; transition: background 0.2s, color 0.2s;
}
.hn-tabs a svg { width: 16px; height: 16px; }
.hn-tabs a.is-active { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ============================================================
   Tech stack grid
   ============================================================ */
.hn-tech-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; max-width: 48rem; margin: 0 auto; }
@media (min-width: 640px) { .hn-tech-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .hn-tech-grid { grid-template-columns: repeat(6, 1fr); } }
.hn-tech-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.25rem 1rem; text-align: center; box-shadow: var(--shadow-sm); }
.hn-tech-card__icon { width: 2.5rem; height: 2.5rem; margin: 0 auto 0.6rem; border-radius: var(--radius-sm); background: rgba(15,118,110,0.08); color: var(--brand-dark); display: grid; place-items: center; }
.hn-tech-card__icon svg { width: 1.2rem; height: 1.2rem; }
.hn-tech-card h3 { font-weight: 700; font-size: 0.9rem; margin: 0; }
.hn-tech-card p { font-size: 0.78rem; color: var(--muted); margin: 0.2rem 0 0; }

/* ============================================================
   Sub-page hero (repairs, services, etc.)
   ============================================================ */
/* Light hero, matching the homepage. The saturated brand band read as a wall of
   teal on every page; the colour now lives in the accent word and the CTA only. */
.hn-page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--bg); color: var(--text);
  padding: clamp(6.5rem, 12vw, 8.5rem) 1.5rem 4.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
/* Depth layer: two faint, slow-drifting brand/copper light pools — enough to
   give the white space shape without colouring the whole band. */
.hn-page-hero::after {
  content: ''; position: absolute; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(34% 42% at 20% 14%, rgba(15,118,110,0.10), transparent 70%),
    radial-gradient(38% 46% at 84% 80%, rgba(179,103,43,0.09), transparent 72%);
  animation: hn-hero-drift 24s ease-in-out infinite alternate;
}
@keyframes hn-hero-drift {
  from { transform: translate3d(-2%, -1.5%, 0) scale(1); }
  to   { transform: translate3d(2.5%, 2%, 0) scale(1.06); }
}
[data-theme="dark"] .hn-page-hero::after {
  background:
    radial-gradient(34% 42% at 20% 14%, rgba(20,184,166,0.14), transparent 70%),
    radial-gradient(38% 46% at 84% 80%, rgba(217,143,78,0.12), transparent 72%);
}
/* Staggered entrance. The h1 animates transform only — never opacity — so it
   paints immediately and LCP isn't pushed back by the reveal. */
@keyframes hn-hero-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes hn-hero-rise-solid { from { transform: translateY(16px); } to { transform: none; } }
.hn-page-hero__inner > * { animation: hn-hero-rise 0.7s cubic-bezier(.2,.8,.3,1) both; }
.hn-page-hero__inner > h1 { animation-name: hn-hero-rise-solid; }
.hn-page-hero__inner > :nth-child(2) { animation-delay: 0.07s; }
.hn-page-hero__inner > :nth-child(3) { animation-delay: 0.14s; }
.hn-page-hero__inner > :nth-child(4) { animation-delay: 0.21s; }
.hn-page-hero__inner > :nth-child(5) { animation-delay: 0.28s; }
.hn-page-hero__inner > :nth-child(n+6) { animation-delay: 0.35s; }
.hn-page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(23,23,23,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,23,23,0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 20%, black 40%, transparent 90%);
  mask-image: radial-gradient(ellipse 70% 65% at 50% 20%, black 40%, transparent 90%);
}
[data-theme="dark"] .hn-page-hero::before {
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
}
.hn-page-hero__inner { position: relative; max-width: 780px; margin: 0 auto; }
.hn-page-hero .hn-eyebrow { color: var(--metal); justify-content: center; }
.hn-page-hero .hn-eyebrow::before { background: var(--metal); }
.hn-page-hero h1 {
  color: var(--ink); font-weight: 700; font-size: clamp(2.3rem, 5vw, 3.4rem);
  line-height: 1.25; letter-spacing: -0.03em; margin: 0 0 0.85rem;
}
.hn-page-hero p { font-size: 1.1rem; line-height: 1.6; color: var(--muted); max-width: 36rem; margin: 0 auto 1.5rem; }
.hn-page-hero__pill {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--card); border: 1px solid var(--border-strong);
  color: var(--text); font-weight: 600; font-size: 0.9rem;
  padding: 0.6rem 1.25rem; border-radius: 999px; margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.hn-page-hero__pill svg { color: var(--brand-dark); }
.hn-page-hero__pill svg { width: 18px; height: 18px; flex: 0 0 auto; }
.hn-page-hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
/* Buttons fall back to the standard site treatment now the band is light —
   the white-on-teal overrides would be invisible here. */
.hn-page-hero .hn-checklist { text-align: left; max-width: 32rem; margin: 0 auto 2rem; gap: 0.75rem; }
.hn-page-hero .hn-checklist li { font-weight: 500; }
.hn-page-hero__note { font-size: 0.85rem; color: var(--muted); margin: 0.5rem 0 1.75rem; }

/* ============================================================
   Callout banner (contact "I come to you")
   Was a full-bleed brand-gradient block with white text — too much colour for
   a mid-page band. Light card, copper accent, colour only on the icon.
   ============================================================ */
.hn-callout {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.5rem 2rem;
  display: flex; flex-direction: column; gap: 1.5rem;
  align-items: center; justify-content: space-between;
}
.hn-callout__lead { display: flex; align-items: center; gap: 1rem; flex: 1 1 auto; }
.hn-callout__icon {
  width: 64px; height: 64px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center;
  background: rgba(179,103,43,0.1); color: var(--metal);
}
.hn-callout h2 { font-size: 1.5rem; margin: 0; color: var(--ink); }
.hn-callout p { margin: 0.15rem 0 0; color: var(--muted); }
.hn-callout p strong { color: var(--text); }
.hn-callout__links { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; flex: 0 0 auto; }
.hn-callout__links a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.25rem; border-radius: var(--radius-sm);
  background: var(--bg-soft); border: 1px solid var(--border);
  color: var(--ink); font-weight: 600; text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.hn-callout__links a svg { color: var(--metal); }
.hn-callout__links a:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
@media (min-width: 768px) { .hn-callout { flex-direction: row; } }
@media (prefers-reduced-motion: reduce) { .hn-callout__links a:hover { transform: none; } }

/* ============================================================
   Pricing row
   ============================================================ */
.hn-price-row {
  padding: 5rem 1.5rem 2rem; max-width: 1000px; margin: 0 auto;
}
.hn-price-row__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 800px) { .hn-price-row__grid { grid-template-columns: 1fr; } }
.hn-price-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  border-top: 3px solid var(--brand); box-shadow: var(--shadow-sm);
  padding: 1.75rem; text-align: center;
  transition: transform 0.25s cubic-bezier(.2,.8,.3,1), box-shadow 0.25s, border-color 0.25s;
}
.hn-price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); border-top-color: var(--brand); }
.hn-price-card--alt { border-top-color: var(--metal); }
.hn-price-card--alt:hover { border-top-color: var(--metal); }
.hn-price-card__amount {
  font-family: var(--font-display); font-weight: 700; font-size: 2.25rem; color: var(--ink);
  letter-spacing: -0.02em;
}
.hn-price-card__amount small { font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.hn-price-card__label { font-size: 0.9rem; color: var(--muted); margin-top: 0.35rem; }
.hn-price-note {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  text-align: center; max-width: 40rem; margin: 1.5rem auto 0;
  background: rgba(179,103,43,0.08); color: var(--metal); border: 1px solid rgba(179,103,43,0.2);
  border-radius: 999px; padding: 0.75rem 1.5rem; font-size: 0.9rem; font-weight: 600;
}
.hn-price-note svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* ============================================================
   Numbered steps
   ============================================================ */
.hn-steps { padding: 5rem 1.5rem; max-width: 1200px; margin: 0 auto; background: var(--bg-soft); border-radius: var(--radius); }
.hn-steps__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.hn-steps__grid--3 { grid-template-columns: repeat(3, 1fr); max-width: 48rem; margin: 2.5rem auto 0; }
@media (max-width: 900px) { .hn-steps__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hn-steps__grid, .hn-steps__grid--3 { grid-template-columns: 1fr; } }
.hn-step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; text-align: center; box-shadow: var(--shadow-sm); transition: transform 0.25s cubic-bezier(.2,.8,.3,1), box-shadow 0.25s, border-color 0.25s; }
.hn-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.hn-step:hover .hn-step__num { transform: scale(1.08); }
.hn-step__num { transition: transform 0.25s cubic-bezier(.2,.8,.3,1); }
.hn-step__num {
  width: 2.75rem; height: 2.75rem; margin: 0 auto 1rem;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--grad-brand); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
}
.hn-step h3 { font-weight: 700; font-size: 1.05rem; margin: 0 0 0.4rem; }
.hn-step p { font-size: 0.9rem; color: var(--muted); margin: 0; line-height: 1.55; }

/* ============================================================
   Feature split (art/checklist + CTA)
   ============================================================ */
.hn-feature-split {
  padding: 5rem 1.5rem; max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 3.5rem; align-items: center;
}
@media (max-width: 900px) {
  .hn-feature-split { grid-template-columns: 1fr; text-align: center; }
  .hn-feature-split .hn-checklist { justify-items: center; }
  .hn-feature-split .hn-checklist li { text-align: left; }
}
.hn-feature-split__art {
  position: relative; isolation: isolate;
  width: 100%; aspect-ratio: 1; border-radius: var(--radius); max-width: 320px; margin: 0 auto;
  background: linear-gradient(150deg, var(--bg-soft), var(--card));
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
  display: grid; place-items: center; color: var(--brand-dark);
  overflow: hidden;
}
/* Brand light pool behind the icon, so the panel reads as lit rather than flat. */
.hn-feature-split__art::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 55% at 50% 42%, rgba(20,184,166,0.16), transparent 70%),
    radial-gradient(45% 45% at 78% 84%, rgba(179,103,43,0.14), transparent 72%);
}
/* Concentric rings echo the icon and give the panel a focal point. */
.hn-feature-split__art::after {
  content: ''; position: absolute; z-index: -1;
  width: 62%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 0 1px var(--card), 0 0 0 22px rgba(15,118,110,0.06);
  animation: hn-art-breathe 7s ease-in-out infinite alternate;
}
@keyframes hn-art-breathe {
  from { transform: scale(0.96); opacity: 0.75; }
  to   { transform: scale(1.04); opacity: 1; }
}
.hn-feature-split__art svg {
  width: 42%; height: 42%;
  filter: drop-shadow(0 8px 18px rgba(15,118,110,0.25));
}
.hn-feature-split h2 { font-weight: 700; font-size: clamp(1.85rem, 4vw, 2.4rem); margin: 0 0 1rem; letter-spacing: -0.03em; }
.hn-feature-split p { color: var(--muted); font-size: 1.02rem; line-height: 1.6; margin: 0 0 1.5rem; }
.hn-feature-split .hn-checklist { grid-template-columns: 1fr; gap: 0.85rem; margin-bottom: 1.75rem; }

/* ============================================================
   Card checklist (compact, inside a .hn-card)
   ============================================================ */
.hn-card__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.hn-card__list li { display: flex; align-items: center; gap: 0.55rem; font-size: 0.85rem; color: var(--text); }
.hn-card__list svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--brand); }

/* ============================================================
   Card grid — row layout (icon left, text right)
   ============================================================ */
.hn-row-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; max-width: 64rem; margin: 0 auto; }
@media (max-width: 800px) { .hn-row-grid { grid-template-columns: 1fr; } }
.hn-card--row { flex-direction: row; align-items: flex-start; gap: 1rem; padding: 1.5rem; text-align: left; }
.hn-card--row .hn-card__art { margin-bottom: 0; flex: 0 0 auto; width: 2.75rem; height: 2.75rem; }
.hn-card--row .hn-card__art svg { width: 1.3rem; height: 1.3rem; }
.hn-card--row h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.hn-card--row p { font-size: 0.9rem; margin: 0; }

/* ============================================================
   Pricing tiles (2-up, with checklist)
   ============================================================ */
.hn-tile-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 56rem; margin: 0 auto; }
.hn-tile-row--3 { grid-template-columns: repeat(3, 1fr); max-width: 76rem; align-items: start; }
@media (max-width: 800px) { .hn-tile-row, .hn-tile-row--3 { grid-template-columns: 1fr; } }
@media (min-width: 801px) and (max-width: 1050px) { .hn-tile-row--3 { grid-template-columns: 1fr; max-width: 32rem; } }
.hn-price-tile {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  border-top: 4px solid var(--brand); box-shadow: var(--shadow-sm); padding: 2rem;
}
.hn-price-tile--alt { border-top-color: var(--metal); }
.hn-price-tile h3 { font-weight: 700; font-size: 1.15rem; margin: 0 0 0.5rem; }
.hn-price-tile__amount { font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; color: var(--brand-dark); margin-bottom: 0.25rem; letter-spacing: -0.02em; }
.hn-price-tile--alt .hn-price-tile__amount { color: var(--metal); }
.hn-price-tile__amount span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.hn-price-tile__note { color: var(--muted); font-size: 0.9rem; margin: 0 0 1.25rem; }
.hn-price-tile .hn-card__list { gap: 0.65rem; }
.hn-price-tile .hn-card__list svg { width: 17px; height: 17px; }
.hn-price-tile--popular { position: relative; box-shadow: var(--shadow-lg); overflow: hidden; }
.hn-price-tile--popular::before {
  content: 'Most popular'; position: absolute; top: 1.1rem; right: -2.6rem;
  background: var(--grad-brand); color: #fff; transform: rotate(45deg);
  padding: 0.3rem 3rem; font-family: var(--font-display); font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ============================================================
   Areas grid (town tiles, up to 5-up)
   ============================================================ */
.hn-areas-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 640px) { .hn-areas-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .hn-areas-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .hn-areas-grid { grid-template-columns: repeat(5, 1fr); } }
.hn-area-tile {
  display: block; text-align: center; text-decoration: none; color: var(--text);
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 1.25rem 0.75rem; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.hn-area-tile:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.hn-area-tile svg { width: 20px; height: 20px; color: var(--brand); margin: 0 auto 0.5rem; }
.hn-area-tile h3 { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; margin: 0; color: var(--ink); }
.hn-area-tile p { font-size: 0.72rem; color: var(--muted); margin-top: 0.2rem; }

/* ============================================================
   Two-column text block
   ============================================================ */
.hn-two-col { display: grid; grid-template-columns: 1fr; gap: 2.5rem; max-width: 56rem; margin: 0 auto; text-align: left; }
@media (min-width: 800px) { .hn-two-col { grid-template-columns: 1fr 1fr; } }
.hn-two-col h3 { font-weight: 700; font-size: 1.1rem; margin: 0 0 0.75rem; }
.hn-two-col p { color: var(--muted); line-height: 1.7; margin: 0 0 1rem; }

/* ============================================================
   Areas-covered pill list
   ============================================================ */
.hn-areas-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin: 0 0 1.5rem; }
.hn-areas-pills a, .hn-areas-pills span {
  padding: 0.45rem 1rem; border-radius: 999px; background: var(--card);
  border: 1px solid var(--border); font-size: 0.85rem; font-weight: 500; color: var(--text);
  text-decoration: none; transition: border-color 0.2s, color 0.2s; display: inline-block;
}
.hn-areas-pills a:hover { border-color: var(--brand); color: var(--brand-dark); }

/* ============================================================
   Callout note (accent-border info card)
   ============================================================ */
.hn-note {
  display: flex; gap: 1.25rem; align-items: flex-start; text-align: left;
  background: rgba(179,103,43,0.05); border: 1px solid rgba(179,103,43,0.2);
  border-radius: var(--radius); padding: 1.75rem; max-width: 48rem; margin: 0 auto;
}
.hn-note__icon {
  width: 3rem; height: 3rem; flex: 0 0 auto; border-radius: var(--radius-sm);
  background: rgba(179,103,43,0.12); color: var(--metal);
  display: grid; place-items: center;
}
.hn-note__icon svg { width: 1.5rem; height: 1.5rem; }
.hn-note h3 { font-weight: 700; font-size: 1.15rem; margin: 0 0 0.6rem; }
.hn-note p { color: var(--muted); line-height: 1.65; margin: 0 0 0.75rem; }
.hn-note p:last-child { margin-bottom: 0; }

/* ============================================================
   FAQ accordion
   ============================================================ */
.hn-faq { max-width: 46rem; margin: 0 auto; text-align: left; }
.hn-faq details {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 0.75rem; padding: 0 1.25rem; box-shadow: var(--shadow-sm);
}
.hn-faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.hn-faq summary::-webkit-details-marker { display: none; }
.hn-faq summary::after {
  content: '+'; font-size: 1.3rem; font-weight: 400; color: var(--metal); flex: 0 0 auto;
  transition: transform 0.2s;
}
.hn-faq details[open] summary::after { transform: rotate(45deg); }
.hn-faq__answer { padding: 0 0 1.1rem; color: var(--muted); line-height: 1.65; font-size: 0.95rem; }

/* ============================================================
   Contact form + info cards (re-themed, classes shared with JS hooks —
   do not rename .form-field/.form-status/.contact-card, see js/main.js)
   ============================================================ */
.hn-page .form-field > label { color: var(--text); font-family: var(--font-body); }
.hn-page .form-field input,
.hn-page .form-field textarea,
.hn-page .form-field select {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--ink); font-family: var(--font-body);
}
.hn-page .form-field input:focus,
.hn-page .form-field textarea:focus,
.hn-page .form-field select:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15,118,110,0.15);
}
.hn-page .form-status { color: var(--muted); font-family: var(--font-body); }
.hn-page .form-status--success { color: var(--brand-dark); }
.hn-page .contact-card {
  background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--brand);
  box-shadow: var(--shadow-sm); border-radius: var(--radius-sm); text-decoration: none;
}
.hn-page .contact-card:hover { box-shadow: var(--shadow-md); }
.hn-page .contact-card--teal { border-left-color: var(--brand-bright); }
.hn-page .contact-card__icon { background: rgba(15,118,110,0.08); color: var(--brand-dark); border-radius: var(--radius-sm); }
.hn-page .contact-card--teal .contact-card__icon { background: rgba(20,184,166,0.1); color: var(--brand-bright); }
.hn-page .contact-card__label { color: var(--muted); }
.hn-page .contact-card__value { color: var(--ink); font-weight: 600; }

/* ============================================================
   Blog article body (.prose-custom shared class, styles from
   pages.css re-themed here — do not rename, blog_ingest.php content
   relies on it)
   ============================================================ */
.hn-page .prose-custom h2, .hn-page .prose-custom h3 { font-family: var(--font-display); color: var(--ink); }
.hn-page .prose-custom p, .hn-page .prose-custom ul, .hn-page .prose-custom ol { color: var(--muted); }
.hn-page .prose-custom a { color: var(--brand-dark); }
.hn-page .prose-custom strong { color: var(--ink); }
.hn-page .prose-custom hr { border-top: 1px solid var(--border); }
.hn-page .prose-custom blockquote { border-left-color: var(--brand); color: var(--muted); }
.hn-page .prose-custom code { background: var(--bg-soft); }

/* ============================================================
   Blog post card
   ============================================================ */
.hn-blog-card { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--text); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.25s cubic-bezier(.2,.8,.3,1), box-shadow 0.25s; }
.hn-blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.hn-blog-card__img { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-soft); }
.hn-blog-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hn-blog-card__bar { height: 4px; background: var(--grad-brand); }
.hn-blog-card__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; text-align: left; }
.hn-blog-card h2 { font-weight: 700; font-size: 1.1rem; margin: 0 0 0.75rem; }
.hn-blog-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.65; margin: 0 0 1rem; flex: 1; }
.hn-blog-card__meta { padding-top: 1rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; color: var(--muted); }
.hn-blog-card__meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.hn-blog-card__meta svg { width: 14px; height: 14px; }

/* ============================================================
   Timeline (vertical)
   ============================================================ */
.hn-timeline { max-width: 34rem; margin: 0 auto; display: grid; gap: 1.1rem; }
.hn-timeline__item { display: flex; align-items: center; gap: 1.25rem; }
.hn-timeline__year {
  flex: 0 0 auto; width: 4rem; height: 2.75rem; border-radius: var(--radius-sm);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  background: rgba(15,118,110,0.08); color: var(--brand-dark); border: 1px solid rgba(15,118,110,0.25);
}
.hn-timeline__card {
  flex: 1; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem; font-weight: 600; box-shadow: var(--shadow-sm);
}

/* ============================================================
   Brand card (icon + name/year header + desc + link)
   ============================================================ */
.hn-brand-card__head { display: flex; gap: 1rem; margin-bottom: 1rem; align-items: flex-start; }
.hn-brand-card__head .hn-card__art { margin-bottom: 0; flex: 0 0 auto; }
.hn-brand-card__year { font-size: 0.85rem; color: var(--muted); display: block; }
.hn-brand-card__sub { font-size: 0.78rem; color: var(--muted); font-style: italic; margin: 0.2rem 0 0; }

/* ============================================================
   Final CTA band
   ============================================================ */
.hn-final-cta {
  position: relative; overflow: hidden;
  background: var(--navy); color: #fff;
  padding: 5rem 1.5rem; text-align: center;
}
.hn-final-cta__inner { position: relative; max-width: 40rem; margin: 0 auto; }
.hn-final-cta h2 { color: #fff; font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 1rem; letter-spacing: -0.03em; }
.hn-final-cta p { color: rgba(255,255,255,0.75); font-size: 1.05rem; line-height: 1.6; margin: 0 0 2rem; }
.hn-final-cta__ctas { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.hn-final-cta .hn-btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); box-shadow: none; }
.hn-final-cta .hn-btn--outline:hover { border-color: #fff; box-shadow: none; }

/* ============================================================
   Scroll reveal (uses shared .reveal / [data-revealed] from js/main.js)
   ============================================================ */
.hn-page .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s cubic-bezier(.2,.8,.3,1), transform 0.8s cubic-bezier(.2,.8,.3,1); }
.hn-page .reveal[data-revealed] { opacity: 1; transform: none; }

/* ============================================================
   Reduced motion — must stay LAST in this file. Media queries add no
   specificity, so these only beat the rules above by document order.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hn-page-hero::after,
  .hn-feature-split__art::after { animation: none; }
  /* entrance stagger off, but the elements must still end up visible */
  .hn-page-hero__inner > * { animation: none; opacity: 1; transform: none; }
  .hn-step:hover, .hn-price-card:hover, .hn-outcome:hover, .hn-review:hover { transform: none; }
  .hn-step:hover .hn-step__num, .hn-outcome:hover .hn-outcome__icon { transform: none; }
  .hn-page .reveal { opacity: 1; transform: none; transition: none; }
}
