/* ==========================================================================
   andy-brooke.com — Direction A "Consultancy"
   Satoshi + cyan #00ACD2 + light premium
   ========================================================================== */

:root {
  /* Palette */
  --bg:            #FAFAFA;   /* base */
  --bg-raised:    #FFFFFF;    /* cards, panels */
  --bg-tint:      #F0F2F5;    /* contrasting band */
  --bg-invert:    #0F1B2D;    /* dark reverse-out */
  --ink:          #0F1B2D;    /* body copy, headings — deep navy */
  --ink-soft:     #2B3648;    /* secondary copy */
  --muted:        #6B7280;    /* metadata */
  --rule:         #E5E7EB;    /* hairlines */
  --rule-strong:  #CBD0D8;    /* stronger rules */

  /* Brand cyan (Andy's) */
  --cyan:         #00ACD2;
  --cyan-dark:    #0089A8;    /* AA-compliant for body links on white */
  --cyan-deep:    #006985;    /* active/hover depth */
  --cyan-tint:    rgba(0, 172, 210, 0.08);
  --cyan-rule:    rgba(0, 172, 210, 0.24);

  /* Type */
  --sans: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Scale — tighter, more display-y than the editorial pass */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.3125rem;
  --fs-xl:   1.625rem;
  --fs-2xl:  2.125rem;
  --fs-3xl:  2.75rem;
  --fs-4xl:  3.75rem;
  --fs-5xl:  5rem;
  --fs-6xl:  6.5rem;

  /* Measure */
  --measure:         70ch;
  --measure-prose:   40rem;
  --measure-tight:   52rem;

  /* Space (8-pt rhythm) */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4.5rem;
  --s-7: 6.5rem;
  --s-8: 9rem;
  --s-9: 12rem;

  /* Motion */
  --ease:   cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);

  /* Chrome */
  --radius:  4px;
  --radius-lg: 6px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.04), 0 1px 3px rgba(15, 27, 45, 0.06);
  --shadow-md: 0 4px 12px -4px rgba(15, 27, 45, 0.08), 0 8px 24px -8px rgba(15, 27, 45, 0.12);
  --shadow-lg: 0 12px 32px -8px rgba(15, 27, 45, 0.12), 0 24px 48px -16px rgba(15, 27, 45, 0.15);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-md);
  line-height: 1.55;
  font-feature-settings: "ss01" 1, "ss02" 1, "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}

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

::selection { background: var(--cyan); color: var(--bg-raised); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg);
  padding: 0.65rem 1rem;
  font-size: var(--fs-sm); font-weight: 500;
  z-index: 1000;
  border-radius: var(--radius);
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

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

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5 {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
}

h1 {
  font-size: clamp(2.75rem, 5.5vw + 0.75rem, var(--fs-6xl));
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.875rem, 3vw + 0.5rem, var(--fs-3xl));
  letter-spacing: -0.03em;
  font-weight: 700;
}

h3 {
  font-size: clamp(1.25rem, 1.5vw + 0.5rem, var(--fs-lg));
  letter-spacing: -0.02em;
  font-weight: 600;
}

h4 {
  font-size: var(--fs-base);
  font-weight: 600;
  letter-spacing: -0.01em;
}

p, li {
  max-width: var(--measure);
  margin: 0 0 1em;
}
p { line-height: 1.6; }

strong, b { font-weight: 700; color: var(--ink); }
em, i { font-style: italic; }

small { font-size: var(--fs-sm); color: var(--muted); }

/* Links */
a {
  color: var(--cyan-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--cyan-dark) 40%, transparent);
  text-underline-offset: 3px;
  transition: color 150ms var(--ease), text-decoration-color 150ms var(--ease);
}
a:hover {
  color: var(--cyan-deep);
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
}

/* Eyebrow — cyan rule + uppercase */
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-dark);
  font-weight: 600;
  margin: 0 0 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.75rem; height: 2px;
  background: var(--cyan);
}

/* Subhead — larger lead paragraph */
.subhead {
  font-size: clamp(1.125rem, 0.75vw + 0.9rem, var(--fs-lg));
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 38rem;
  margin: 1.5rem 0 2rem;
  font-weight: 400;
}

/* Meta line (under hero CTAs or in-page) */
.meta-line {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.85rem;
  font-feature-settings: "tnum" 1;
}
.meta-line strong { color: var(--ink); font-weight: 600; }
.meta-line a { color: var(--ink); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--rule-strong); padding-bottom: 1px; }
.meta-line a:hover { border-bottom-color: var(--cyan); color: var(--cyan-dark); }
.meta-line .dot {
  display: inline-block;
  width: 3px; height: 3px;
  background: var(--muted);
  border-radius: 50%;
  opacity: 0.5;
}

hr {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: var(--s-6) 0;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2rem;
}
.wrap-narrow {
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 2rem;
}
.wrap-prose {
  width: 100%;
  max-width: var(--measure-prose);
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: var(--s-7) 0; }
section.tight { padding: var(--s-6) 0; }
section.flush-top { padding-top: 0; }
section + section { border-top: 1px solid var(--rule); }

/* Full-bleed tonal block */
.band {
  background: var(--bg-tint);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.band--invert {
  background: var(--bg-invert);
  color: #E7EBF0;
  border-color: transparent;
}
.band--invert h1, .band--invert h2, .band--invert h3, .band--invert h4 { color: #FFFFFF; }
.band--invert p { color: #C9D1DC; }
.band--invert .subhead { color: #C9D1DC; }
.band--invert .eyebrow { color: var(--cyan); }
.band--invert .eyebrow::before { background: var(--cyan); }
.band--invert a { color: var(--cyan); }
.band--invert a:hover { color: #6DD4EE; }
.band--invert .meta-line { color: #8E99AD; }
.band--invert .meta-line a {
  color: #E7EBF0;
  border-bottom-color: rgba(231, 235, 240, 0.3);
}
.band--invert .card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: #E7EBF0;
}
.band--invert .card h3 { color: #FFFFFF; }
.band--invert .card p { color: #C9D1DC; }

/* Note: dark-band overrides for .section-head--split .section-head__aside p
   live further down the file so they land after the split rule and beat it
   on specificity. See the "Dark-band section-head overrides" block. */
.band--invert .section-head p {
  color: #E7EBF0;
}
.band--invert strong,
.band--invert b {
  color: var(--cyan);
  font-weight: 700;
}

@media (prefers-reduced-transparency: reduce) {
  .band--invert .card { background: #1B2740; }
}

/* ==========================================================================
   Header & navigation — dark
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg-invert) 92%, transparent);
  backdrop-filter: saturate(1.5) blur(14px);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid rgba(231, 235, 240, 0.08);
  color: #E7EBF0;
}
@supports not (backdrop-filter: blur(1px)) {
  .site-header { background: var(--bg-invert); }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  padding: 1.1rem 2rem;
  max-width: 80rem;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  text-decoration: none;
  line-height: 1;
}
.brand:hover { color: #FFFFFF; text-decoration: none; }
.brand__mark {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 2rem; height: 2rem;
  background: var(--cyan);
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
  letter-spacing: 0;
  line-height: 1;
  padding-bottom: 1px;
  transition: background 150ms var(--ease), transform 200ms var(--ease);
}
.brand:hover .brand__mark {
  background: #6DD4EE;
  transform: rotate(-4deg);
}
.brand__tag {
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8E99AD;
  margin-left: 0.35rem;
}
@media (max-width: 640px) { .brand__tag { display: none; } }

.site-nav { font-size: var(--fs-sm); }
.site-nav__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 2rem;
}
.site-nav__list a,
.has-dropdown > button {
  color: #E7EBF0;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  display: inline-block;
  border-bottom: 2px solid transparent;
  transition: border-color 150ms var(--ease), color 150ms var(--ease);
  background: none; border-top: 0; border-left: 0; border-right: 0;
  cursor: pointer;
  font: inherit;
  letter-spacing: 0;
}
.site-nav__list a:hover,
.has-dropdown > button:hover { border-bottom-color: var(--cyan); color: var(--cyan); }
.site-nav__list a[aria-current="page"] { border-bottom-color: var(--cyan); color: #FFFFFF; }
.has-dropdown.is-active > button { color: #FFFFFF; }

.has-dropdown { position: relative; }
.has-dropdown > button {
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.has-dropdown > button::after {
  content: "";
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 150ms var(--ease);
}
.has-dropdown.is-open > button::after,
.has-dropdown:hover > button::after { transform: rotate(225deg); margin-top: 2px; }

.dropdown {
  position: absolute; top: calc(100% + 4px); left: -1.25rem;
  min-width: 18rem;
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  padding: 0.5rem 0;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 180ms;
  list-style: none; margin: 0;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.is-open .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 0.7rem 1.25rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 0 !important;
  font-size: var(--fs-sm);
  font-weight: 500;
}
.dropdown a:hover { background: var(--cyan-tint); color: var(--cyan-dark); }
.dropdown a[aria-current="page"] {
  color: var(--cyan-dark);
  background: var(--cyan-tint);
  font-weight: 700;
}
.dropdown .dropdown__parent {
  font-weight: 700;
  border-bottom: 1px solid var(--rule) !important;
  margin-bottom: 0.4rem;
  padding-bottom: 0.65rem;
}

.menu-toggle {
  display: none;
  font: inherit; font-size: var(--fs-sm); font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(231, 235, 240, 0.15);
  padding: 0.55rem 0.9rem;
  cursor: pointer; color: #E7EBF0;
  border-radius: var(--radius);
}
.menu-toggle:hover { border-color: var(--cyan); color: var(--cyan); }

@media (max-width: 960px) {
  .menu-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-invert);
    border-bottom: 1px solid rgba(231, 235, 240, 0.08);
    padding: 1rem 2rem 1.5rem;
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.35);
  }
  .site-nav.is-open { display: block; }
  .site-nav__list {
    flex-direction: column; align-items: stretch; gap: 0;
  }
  .site-nav__list > li { border-bottom: 1px solid rgba(231, 235, 240, 0.08); }
  .site-nav__list > li:last-child { border-bottom: 0; }
  .site-nav__list a,
  .has-dropdown > button {
    padding: 1rem 0; width: 100%; text-align: left;
    border-bottom: 0;
  }
  .dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 0.5rem 1.25rem;
    background: transparent; min-width: 0;
  }
  .dropdown a {
    padding: 0.55rem 0;
    color: #E7EBF0;
  }
  .dropdown a:hover {
    background: transparent;
    color: var(--cyan);
  }
  .dropdown .dropdown__parent { display: none; }
  .has-dropdown > button::after { margin-left: auto; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: clamp(4rem, 7vw, 7rem) 0 clamp(3.5rem, 6vw, 6rem);
  position: relative;
}

.hero--split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.hero--split .hero__text { max-width: 36rem; }
.hero--split .hero__image {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-tint);
  box-shadow: var(--shadow-lg);
}
.hero--split .hero__image img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 700ms var(--ease-out);
}
.hero--split .hero__image:hover img { transform: scale(1.02); }

/* Hero image can be B&W for Andy's own shots */
.hero__image.is-mono img { filter: grayscale(1) contrast(1.05); }

/* Portrait hero: anchor image from the top so foreheads/heads aren't cropped */
.hero__image.is-portrait img { object-position: center top; }

@media (max-width: 960px) {
  .hero--split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero--split .hero__image { aspect-ratio: 16 / 10; }
}

.hero h1 { max-width: 18ch; margin-bottom: 0; }

/* Full-bleed hero variant (no split, image below) */
.hero--full .hero__text { max-width: 48rem; }
.hero--full + .hero-image-bleed {
  margin-top: 0;
  padding: 0 0 var(--s-6);
}
.hero-image-bleed {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2rem;
}
.hero-image-bleed__frame {
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--bg-tint);
}
.hero-image-bleed__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: -0.005em;
  padding: 0.95rem 1.6rem;
  background: var(--ink);
  color: var(--bg-raised);
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 150ms var(--ease), border-color 150ms var(--ease), transform 150ms var(--ease);
  white-space: nowrap;
}
.btn:hover {
  background: var(--cyan-deep);
  border-color: var(--cyan-deep);
  color: #FFFFFF;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }

.btn--accent {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
}
.btn--accent:hover {
  background: var(--cyan-dark);
  border-color: var(--cyan-dark);
  color: #FFFFFF;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--bg-raised);
  border-color: var(--ink);
}

.btn--invert {
  background: #FFFFFF;
  color: var(--ink);
  border-color: #FFFFFF;
}
.btn--invert:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
}

.btn__arrow {
  display: inline-block;
  transition: transform 180ms var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(3px); }

.cta-row {
  display: flex; gap: 1.25rem;
  align-items: center; flex-wrap: wrap;
  margin-top: 2rem;
}

.cta-link {
  font-size: var(--fs-sm);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 2px;
  transition: border-color 150ms var(--ease), color 150ms var(--ease);
}
.cta-link:hover {
  color: var(--cyan-dark);
  border-bottom-color: var(--cyan);
}

/* ==========================================================================
   Section heading pattern
   ========================================================================== */

.section-head {
  margin-bottom: 2.5rem;
  max-width: 50rem;
}
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head h2 { max-width: 22ch; }
.section-head p {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: var(--fs-md);
  line-height: 1.55;
  max-width: 40rem;
}

.section-head--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  max-width: none;
  margin-bottom: 3rem;
}
.section-head--split h2 { max-width: 16ch; }
.section-head--split .section-head__aside {
  padding-bottom: 0.5rem;
}
.section-head--split .section-head__aside p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--fs-md);
  line-height: 1.55;
}
@media (max-width: 860px) {
  .section-head--split { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Dark-band section-head overrides — placed after .section-head--split rules
   so specificity wins against .section-head--split .section-head__aside p */
.band--invert .section-head--split .section-head__aside p,
.band--invert .section-head--split > div > p {
  color: #C9D1DC;
}

/* ==========================================================================
   Cards & grids
   ========================================================================== */

.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  padding: 2rem 1.85rem 1.85rem;
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  height: 100%;
  position: relative;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease), transform 200ms var(--ease);
}
.card:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 1.85rem; right: 1.85rem;
  height: 3px;
  background: var(--cyan);
  border-radius: 0 0 2px 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms var(--ease);
}
.card:hover::before { transform: scaleX(1); }

.card h3 {
  margin: 0 0 0.6rem;
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.card p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: var(--fs-base);
  line-height: 1.55;
}
.card__footer {
  margin-top: auto;
  padding-top: 1.25rem;
}
.card__meta {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.55rem;
}
.card__meta::before {
  content: "";
  width: 1.25rem; height: 1px;
  background: var(--cyan);
}

/* Pricing card — large figures */
.card--pricing h3 {
  font-size: var(--fs-3xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.card--pricing h3 .price-unit {
  font-size: 0.5em;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.card--pricing .card__tag {
  color: var(--muted);
  font-size: var(--fs-sm);
  margin: 0.35rem 0 1rem;
  font-weight: 500;
}

/* Three Doors — primary homepage block */
.doors {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 960px) { .doors { grid-template-columns: 1fr; } }

.door {
  position: relative;
  padding: 2.25rem 2rem 2rem;
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 0.8rem;
  min-height: 20rem;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease), transform 200ms var(--ease);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.door:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow-md);
  color: inherit;
  text-decoration: none;
  transform: translateY(-2px);
}
.door__num {
  font-size: var(--fs-sm);
  color: var(--cyan-dark);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-feature-settings: "tnum" 1;
}
.door__tag {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-top: -0.25rem;
}
.door h3 {
  font-weight: 700;
  font-size: var(--fs-xl);
  margin: 0.5rem 0 0;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
}
.door p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--fs-base);
  line-height: 1.55;
}
.door__link {
  margin-top: auto;
  padding-top: 1.25rem;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--cyan-dark);
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: gap 200ms var(--ease), color 200ms var(--ease);
}
.door:hover .door__link {
  color: var(--cyan-deep);
  gap: 0.65rem;
}

/* Pillars — I / II / III */
.pillars {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 3rem;
}
@media (max-width: 960px) { .pillars { grid-template-columns: 1fr; gap: 2rem; } }

.pillar {
  padding-top: 1.75rem;
  border-top: 2px solid var(--ink);
  position: relative;
}
.pillar::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 3rem;
  height: 2px;
  background: var(--cyan);
}
.pillar__num {
  color: var(--cyan-dark);
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: 0.25rem;
  display: block;
  letter-spacing: 0.02em;
  font-feature-settings: "tnum" 1;
}
.pillar__name {
  font-weight: 700;
  font-size: var(--fs-xl);
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 1rem;
  display: block;
  line-height: 1.1;
}
.pillar p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* Credibility list — numbered or dashed */
.credibility {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  gap: 1.1rem;
  max-width: none;
}
.credibility li {
  position: relative;
  padding-left: 2rem;
  max-width: var(--measure);
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
  font-size: var(--fs-md);
}
.credibility li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.85em;
  width: 1.1rem; height: 2px;
  background: var(--cyan);
}

/* Steps (numbered) */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0; margin: 0;
  display: grid; gap: 2.25rem;
}
.steps > li {
  counter-increment: step;
  padding-left: 4rem;
  position: relative;
  max-width: var(--measure);
  margin: 0;
}
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -0.1em;
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--cyan);
  font-feature-settings: "tnum" 1;
  letter-spacing: 0;
  line-height: 1;
}
.steps > li strong {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
  font-size: var(--fs-md);
  color: var(--ink);
  letter-spacing: -0.015em;
}
.steps > li p { margin: 0; color: var(--ink-soft); }

/* Bulleted lists */
ul.clean, ol.clean {
  padding: 0; margin: 0; list-style: none;
  display: grid; gap: 0.85rem;
}
h2 + ul.clean,
h2 + ol.clean,
h3 + ul.clean,
h3 + ol.clean {
  margin-top: 2.5rem;
}
ul.clean li, ol.clean li {
  padding-left: 1.6rem;
  position: relative;
  max-width: var(--measure);
  line-height: 1.55;
  margin: 0;
  color: var(--ink-soft);
}
ul.clean li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.75em;
  width: 0.75rem; height: 2px;
  background: var(--cyan);
}
ul.clean li strong { color: var(--ink); }

/* Diagnostic quotes */
.diagnostic {
  display: grid; gap: 0;
  margin-top: 1.5rem;
}
.diagnostic__item {
  padding: 2.5rem 0;
  border-top: 1px solid var(--rule);
}
.diagnostic__item:last-child { border-bottom: 1px solid var(--rule); }
.diagnostic__q {
  font-size: clamp(1.5rem, 2vw + 0.5rem, 1.875rem);
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 1rem;
  max-width: 28ch;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.diagnostic__item p { color: var(--ink-soft); margin-bottom: 1rem; }

/* Comparison table */
.table-wrap { overflow-x: auto; margin: 1.75rem 0 0; }
.comparison {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  min-width: 680px;
}
.comparison th, .comparison td {
  padding: 1.1rem 1.25rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
  line-height: 1.45;
}
.comparison thead th {
  font-weight: 700;
  color: var(--ink);
  border-bottom: 2px solid var(--cyan);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 1rem;
}
.comparison tbody th {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-right: 1.5rem;
  width: 16rem;
}
.comparison tbody td {
  color: var(--ink);
  font-weight: 500;
}
.comparison tbody tr:hover td { background: var(--cyan-tint); }

/* Dark-band overrides for the comparison table */
.band--invert .comparison thead th { color: #FFFFFF; border-bottom-color: var(--cyan); }
.band--invert .comparison tbody th { color: #8E99AD; }
.band--invert .comparison tbody td { color: #E7EBF0; }
.band--invert .comparison th,
.band--invert .comparison td { border-bottom-color: rgba(231, 235, 240, 0.12); }
.band--invert .comparison tbody tr:hover td { background: rgba(0, 172, 210, 0.14); }

/* FAQ */
.faq { max-width: var(--measure); }
.faq details {
  border-top: 1px solid var(--rule);
  padding: 1.5rem 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary {
  font-weight: 600;
  font-size: var(--fs-md);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--cyan);
  line-height: 1;
  transition: transform 200ms var(--ease);
  font-weight: 300;
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "−"; }
.faq details > *:not(summary) { margin-top: 1rem; }
.faq details p { color: var(--ink-soft); margin-bottom: 0; line-height: 1.6; }

/* ==========================================================================
   AIDOS booking widget
   ========================================================================== */

.aidos {
  background: var(--bg-raised);
  padding: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.aidos__loading {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1rem;
  min-height: 440px;
  color: var(--muted);
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
}
.aidos__spinner {
  width: 1.4rem; height: 1.4rem;
  border: 2px solid var(--rule);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.aidos iframe {
  width: 100%;
  min-height: 640px;
  max-height: 920px;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg);
  display: block;
}
.aidos__fallback {
  display: none;
  padding: 2.5rem 2rem; text-align: center;
}
.aidos.is-failed .aidos__fallback { display: block; }
.aidos.is-failed iframe,
.aidos.is-failed .aidos__loading { display: none; }

/* ==========================================================================
   Essay / long-form
   ========================================================================== */

.essay {
  font-size: var(--fs-md);
  line-height: 1.7;
  color: var(--ink);
}
.essay p { margin: 0 0 1.1em; max-width: none; }
.essay h2 {
  margin: 3.5rem 0 1.5rem;
  font-size: clamp(1.75rem, 2vw + 0.5rem, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-weight: 700;
}
.essay h3 {
  margin: 2.5rem 0 1rem;
  font-size: var(--fs-xl);
  letter-spacing: -0.02em;
}

.essay blockquote.pullquote {
  font-weight: 600;
  font-size: clamp(1.375rem, 1.5vw + 0.4rem, 1.625rem);
  line-height: 1.3;
  color: var(--ink);
  max-width: 30rem;
  margin: 3rem auto;
  padding: 1.5rem 0 1.5rem 1.5rem;
  border-left: 3px solid var(--cyan);
  letter-spacing: -0.02em;
  font-style: normal;
}

.essay hr.ornament {
  background: transparent;
  height: auto;
  text-align: center;
  margin: 3rem auto;
  width: 100%;
  max-width: var(--measure-prose);
  border: 0;
}
.essay hr.ornament::after {
  content: "";
  display: inline-block;
  width: 4rem; height: 2px;
  background: var(--cyan);
  vertical-align: middle;
}

.essay-header {
  padding: clamp(4rem, 6vw, 6.5rem) 0 3rem;
  max-width: var(--measure-prose);
  margin: 0 auto;
}
.essay-header .eyebrow { margin-bottom: 1.75rem; }
.essay-header h1 {
  font-size: clamp(2.5rem, 4vw + 0.5rem, 4rem);
  max-width: 16ch;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
}
.essay-header .dek {
  font-size: clamp(1.125rem, 1vw + 0.6rem, var(--fs-lg));
  color: var(--ink-soft);
  max-width: 34rem;
  margin: 1.5rem 0 0;
  line-height: 1.45;
  font-weight: 400;
}

.byline {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  letter-spacing: 0.01em;
}

/* ==========================================================================
   Images / figures
   ========================================================================== */

.figure { margin: var(--s-5) 0; }
.figure__image {
  position: relative;
  overflow: hidden;
  background: var(--bg-tint);
  border-radius: var(--radius-lg);
}
.figure__image img { width: 100%; display: block; }
.figure--mono img { filter: grayscale(1) contrast(1.04); }
.figure figcaption {
  font-size: var(--fs-xs);
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 0.9rem;
  max-width: 32rem;
  line-height: 1.5;
}

.portrait-block {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.portrait-block img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  filter: grayscale(0.4) contrast(1.05);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
@media (max-width: 780px) {
  .portrait-block { grid-template-columns: 1fr; gap: 2rem; }
  .portrait-block .portrait-block__text { order: 2; }
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form {
  display: grid;
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.form__row {
  display: grid;
  gap: 0.4rem;
}
.form__label {
  font-weight: 600;
  font-size: var(--fs-md);
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.form__hint {
  font-size: var(--fs-sm);
  color: var(--muted);
  font-style: italic;
  line-height: 1.4;
  margin-top: -0.15rem;
}
.form__field {
  font-family: var(--sans);
  font-size: var(--fs-base);
  color: var(--ink);
  background: var(--bg-raised);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 0.75rem 0.95rem;
  width: 100%;
  resize: vertical;
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease), background 150ms var(--ease);
  font-feature-settings: "ss01" 1, "kern" 1;
  margin-top: 0.4rem;
}
.form__field:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-tint);
  background: #FFFFFF;
}
textarea.form__field {
  min-height: 6.5rem;
  line-height: 1.55;
}
.form__submit {
  margin-top: 1rem;
  justify-self: start;
}
.form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.form__success {
  padding: 2rem 2.25rem;
  background: var(--cyan-tint);
  border: 1px solid var(--cyan-rule);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius);
  margin-top: 2.5rem;
}
.form__success h3 { margin: 0 0 0.5rem; color: var(--cyan-deep); font-size: var(--fs-lg); }
.form__success p { margin: 0; color: var(--ink-soft); }

/* ==========================================================================
   Newsletter-quiet block
   ========================================================================== */

.newsletter-quiet {
  background: var(--cyan-tint);
  border: 1px solid var(--cyan-rule);
  padding: 1.5rem 1.75rem;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  max-width: var(--measure);
  border-radius: var(--radius);
  line-height: 1.55;
}
.newsletter-quiet strong { color: var(--ink); font-weight: 700; }
.band--invert .newsletter-quiet {
  background: rgba(0, 172, 210, 0.12);
  border-color: rgba(0, 172, 210, 0.3);
  color: #E7EBF0;
}
.band--invert .newsletter-quiet strong { color: #FFFFFF; }

/* Buttons inside dark bands — defeat the .band--invert a { color: cyan } override
   so button labels remain readable on their own backgrounds. */
.band--invert .btn,
.band--invert .btn:hover {
  color: var(--bg-raised);
}
.band--invert .btn--accent,
.band--invert .btn--accent:visited {
  color: var(--ink);
}
.band--invert .btn--accent:hover {
  color: #FFFFFF;
}
.band--invert .btn--ghost {
  color: #E7EBF0;
  border-color: rgba(231, 235, 240, 0.25);
}
.band--invert .btn--ghost:hover {
  background: #FFFFFF;
  color: var(--ink);
  border-color: #FFFFFF;
}
/* cta-link sits well as cyan on dark, but make sure its bottom border stays visible */
.band--invert .cta-link {
  border-bottom-color: rgba(231, 235, 240, 0.3);
}
.band--invert .cta-link:hover {
  border-bottom-color: var(--cyan);
}

/* Featured essay block */
.featured-essay {
  margin-top: 2.5rem;
  padding: 2.5rem 2.5rem 2.25rem;
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius-lg);
  transition: box-shadow 200ms var(--ease), transform 200ms var(--ease);
  position: relative;
}
.featured-essay:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.featured-essay__tag {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-dark);
  font-weight: 700;
  margin-bottom: 1rem;
  display: block;
}
.featured-essay h3 {
  font-size: var(--fs-2xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  line-height: 1.05;
}
.featured-essay h3 a { color: var(--ink); text-decoration: none; }
.featured-essay h3 a:hover { color: var(--cyan-dark); }
.featured-essay p {
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
  font-size: var(--fs-md);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--bg-invert);
  color: #C9D1DC;
  padding: var(--s-7) 0 var(--s-5);
  font-size: var(--fs-sm);
  margin-top: var(--s-8);
}
.site-footer__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 780px) {
  .site-footer__inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

.site-footer__intro { max-width: 22rem; }
.site-footer__intro .brand {
  color: #FFFFFF;
  margin-bottom: 1.1rem;
  font-size: 1.25rem;
}
.site-footer__intro .brand__mark {
  background: var(--cyan);
  color: var(--ink);
}
.site-footer__intro p {
  font-size: var(--fs-md);
  color: #C9D1DC;
  margin: 0;
  line-height: 1.55;
  max-width: none;
}

.site-footer h4 {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8E99AD;
  font-weight: 600;
  margin: 0 0 1.1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.site-footer ul li { margin: 0; max-width: none; }
.site-footer a {
  color: #E7EBF0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms var(--ease), color 150ms var(--ease);
}
.site-footer a:hover {
  border-bottom-color: var(--cyan);
  color: var(--cyan);
}

.site-footer__bottom {
  grid-column: 1 / -1;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(231, 235, 240, 0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: var(--fs-xs);
  color: #8E99AD;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Utility
   ========================================================================== */

.prose > * + * { margin-top: 1rem; }
.prose h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.prose h3 { margin-top: 2rem; margin-bottom: 0.75rem; }

.text-muted { color: var(--muted); }
.text-center { text-align: center; }

.note-inline {
  font-size: var(--fs-sm);
  color: var(--muted);
  display: block;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--rule);
  line-height: 1.55;
}

/* Stat grid — used where we have numbers worth emphasising */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  padding: var(--s-5) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 780px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
.stat__num {
  font-size: clamp(2rem, 3.5vw + 0.5rem, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  font-feature-settings: "tnum" 1;
  display: block;
  margin-bottom: 0.5rem;
}
.stat__num em {
  color: var(--cyan-dark);
  font-style: normal;
}
.stat__label {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.4;
  max-width: none;
}

/* Honour reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .card::before { display: none; }
}

/* Print */
@media print {
  .site-header, .site-footer, .aidos, .menu-toggle { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; text-decoration: underline; }
}
