/* ==========================================================================
   Self-hosted fonts (OFL). Served from our own origin so there is no
   third-party round trip on first paint and no visitor IP sent to Google.
   ========================================================================== */
@font-face {
  font-display: swap;
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-display: swap;
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-display: swap;
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-display: swap;
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-display: swap;
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-display: swap;
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-display: swap;
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-display: swap;
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-display: swap;
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/newsreader-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-display: swap;
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/newsreader-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/poppins-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/poppins-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ==========================================================================
   Quaich AI — design tokens
   ========================================================================== */
:root {
  --cream:        #f8f5ef;
  --cream-deep:   #efe9dd;
  --card:         #fffdf8;
  --line:         #e3ddd1;
  --line-soft:    #ddd6c8;
  --navy:         #21384c;
  --navy-deep:    #16283a;
  --navy-dark:    #11202e;
  --navy-line:    #2a4258;
  --ink:          #17222d;
  --body:         #4b5764;
  --muted:        #616a76;
  --copper:       #99592b;
  --copper-dark:  #7a4419;
  --sand:         #d9a06a;
  --sand-dim:     #c98b52;
  --on-navy:      #b6c4d1;
  --on-navy-dim:  #90a8be;
  --danger:       #9c3a24;

  --shell:        1180px;
  --gutter:       clamp(18px, 5vw, 24px);
  --radius:       18px;
  --font-sans:    "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif:   "Newsreader", Georgia, "Times New Roman", serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
  --font-brand:   "Poppins", system-ui, sans-serif;
  --ease:         cubic-bezier(.22, .8, .28, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Keeps anchored sections clear of the sticky header */
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: #1b2129;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--ink);
}
p, ul, ol, li, figure { margin: 0; }
p { text-wrap: pretty; }

img, svg { max-width: 100%; }
img { height: auto; border: 0; }

a { color: var(--copper); text-decoration: none; }
a:hover { color: var(--copper-dark); text-decoration: underline; }

button, input, select, textarea { font: inherit; color: inherit; }

/* Visible, consistent keyboard focus on every interactive element */
:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 2px;
  border-radius: 4px;
}
.on-navy :focus-visible { outline-color: var(--sand); }

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

.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 100;
  background: var(--navy);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: 0 0 10px 10px;
  font-size: 15px;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 0; color: var(--cream); text-decoration: none; }

/* ==========================================================================
   Layout primitives
   ========================================================================== */
.page { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--narrow { max-width: 900px; }
.shell--prose  { max-width: 780px; }
.shell--mid    { max-width: 1000px; }

.section { padding-block: clamp(52px, 8vw, 112px); }
.section--tight { padding-block: clamp(44px, 6vw, 84px); }
.section--navy {
  background: var(--navy-deep);
  color: #eae4d8;
}
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--cream); }
.section--sand {
  background: var(--cream-deep);
  border-block: 1px solid var(--line);
}
.section--hero {
  background: linear-gradient(168deg, var(--cream) 0%, var(--cream-deep) 100%);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(44px, 7vw, 96px);
}

/* Two-column split that collapses cleanly on small screens */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.split--center { align-items: center; }
@media (min-width: 860px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 18px;
}
.section--navy .eyebrow { color: var(--sand-dim); }

.h-lg  { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.15; }
.h-xl  { font-size: clamp(33px, 5.4vw, 56px); line-height: 1.08; }
.h-hero{ font-size: clamp(34px, 6.4vw, 64px); line-height: 1.06; }

.lede {
  font-size: clamp(16.5px, 2.2vw, 18px);
  line-height: 1.65;
  color: var(--body);
  max-width: 60ch;
}
.section--navy .lede { color: var(--on-navy); }

.prose { font-size: 16.5px; line-height: 1.72; color: var(--body); }
.prose + .prose { margin-top: 16px; }
.note { color: var(--muted); }

/* ==========================================================================
   Buttons — min 48px touch target everywhere
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--navy); color: var(--cream); }
.btn--primary:hover { background: var(--navy-deep); color: var(--cream); }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: #c6bfb0;
}
.btn--ghost:hover { border-color: var(--navy); background: #eae3d5; color: var(--navy); }

.btn--sand { background: var(--sand); color: var(--navy-deep); font-weight: 600; }
.btn--sand:hover { background: #e8b686; color: var(--navy-deep); }

.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.btn-row--center { justify-content: center; }
/* On the narrowest screens let CTAs go full width rather than squeeze */
@media (max-width: 400px) {
  .btn-row .btn { width: 100%; }
}

/* ==========================================================================
   Header + navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(248, 245, 239, 0.92);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px)) {
  .site-header {
    background: rgba(248, 245, 239, 0.82);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}

.site-header__bar {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #2f3a45;
  text-decoration: none;
  padding: 6px 0;
  margin-right: auto;
}
.brand:hover { text-decoration: none; color: var(--navy); }
.brand__mark { width: 34px; height: 34px; display: block; flex: none; }
.brand__name {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: clamp(18px, 4.4vw, 20px);
  letter-spacing: -0.01em;
  color: #2f3a45;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 16px 10px 14px;
  background: transparent;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--navy);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
}
.nav-toggle__bars {
  position: relative;
  width: 17px; height: 11px;
  flex: none;
}
.nav-toggle__bars span {
  position: absolute;
  left: 0; right: 0;
  height: 1.8px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .22s var(--ease), opacity .16s linear;
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 4.6px; }
.nav-toggle__bars span:nth-child(3) { top: 9.2px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(4.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-4.6px) rotate(-45deg); }

.nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 13px;
  border-radius: 8px;
  font-size: 14.5px;
  color: #43505e;
  text-decoration: none;
  transition: background-color .16s var(--ease), color .16s var(--ease);
}
.nav__link:hover { background: #ece7dc; color: var(--ink); text-decoration: none; }
.nav__link[aria-current="page"] { color: var(--ink); font-weight: 500; background: #ece7dc; }
.nav__cta { margin-left: 10px; padding-inline: 22px; font-size: 14.5px; }

/* --- Mobile nav (below 900px) --- */
@media (max-width: 899px) {
  .site-nav {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 40px -28px rgba(22, 40, 58, 0.55);
    padding: 10px var(--gutter) 20px;
    display: none;
  }
  .site-nav[data-open="true"] { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link {
    min-height: 52px;
    padding: 14px 12px;
    font-size: 16.5px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .nav__cta { margin: 16px 0 0; width: 100%; }
  /* Without JS the toggle can't work, so show the links inline instead */
  html.no-js .site-nav { display: block; position: static; box-shadow: none; border: 0; padding-inline: 0; }
  html.no-js .nav-toggle { display: none; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  /* flex, not block — as a block the <ul> filled the row and pushed the
     "Book a Call" pill onto a second line, inflating the header. */
  .site-nav {
    display: flex !important;
    align-items: center;
    gap: 4px;
  }
  .nav__list { flex: 0 0 auto; }
  .nav__cta { flex: none; white-space: nowrap; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 5vw, 68px);
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}
.hero__copy { animation: qa-rise .8s var(--ease) both; }
.hero__title { max-width: 15ch; }
.hero__lede { margin-top: 22px; max-width: 54ch; }
.hero__foot {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 46ch;
}

/* Pipeline mock ----------------------------------------------------------- */
.pipeline {
  background: var(--navy-deep);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 34px 74px -36px rgba(22, 40, 58, 0.65);
  animation: qa-fade .9s ease .12s both;
}
.pipeline__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 16px;
}
.pipeline__dot { width: 8px; height: 8px; border-radius: 50%; background: #3d5771; flex: none; }
.pipeline__label {
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-navy-dim);
}
.pipeline__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.pipeline__col {
  background: #1c3143;
  border: 1px solid var(--navy-line);
  border-radius: 13px;
  padding: 11px 10px 13px;
  min-height: 200px;
}
.pipeline__colhead { display: flex; align-items: center; gap: 6px; margin-bottom: 11px; }
.pipeline__colhead span:first-child { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.pipeline__coltitle {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ab0c5;
  line-height: 1.25;
}
.pipeline__cards { display: flex; flex-direction: column; gap: 8px; }
.pipeline__card {
  background: #f4f1ea;
  border-radius: 9px;
  padding: 9px 10px;
  animation: qa-rise .55s var(--ease) both;
}
.pipeline__co { font-size: 11.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.pipeline__role { font-size: 10.5px; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.pipeline__tag { font-size: 10px; margin-top: 7px; font-family: var(--font-mono); }
.pipeline__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  background: #1c3143;
  border: 1px solid var(--navy-line);
  border-radius: 12px;
  flex-wrap: wrap;
}
.pipeline__foot span:first-child { font-size: 12px; color: #b8c8d6; }
.pipeline__foot span:last-child { font-family: var(--font-mono); font-size: 11px; color: var(--sand-dim); }

/* Below 520px three columns get unreadable — drop to a single column */
@media (max-width: 520px) {
  .pipeline__cols { grid-template-columns: 1fr; gap: 10px; }
  .pipeline__col { min-height: 0; padding: 12px 12px 14px; }
  .pipeline__coltitle { font-size: 10.5px; }
  .pipeline__co { font-size: 13px; }
  .pipeline__role { font-size: 12px; }
  .pipeline__tag { font-size: 11px; }
}

/* ==========================================================================
   Content blocks
   ========================================================================== */

/* Numbered pain-point grid */
.painwall {
  margin-top: clamp(36px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  list-style: none;
  padding: 0;
}
@media (min-width: 560px) { .painwall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .painwall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.painwall li { background: var(--cream); padding: 28px 24px 32px; }
.painwall__num { font-family: var(--font-mono); font-size: 11px; color: var(--copper); margin-bottom: 14px; }
.painwall p { font-size: 16.5px; line-height: 1.5; color: #29333e; }

/* Steps (navy band) */
.steps {
  margin-top: clamp(36px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  list-style: none;
  padding: 0;
}
@media (min-width: 620px)  { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.steps li { border-top: 1px solid #2f4a62; padding-top: 20px; }
.steps__num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--sand-dim); margin-bottom: 12px; }
.steps h3 { font-size: 20px; line-height: 1.25; }
.steps p { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: #9fb1c1; }

/* Niche cards */
.niches {
  margin-top: clamp(32px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  list-style: none;
  padding: 0;
}
@media (min-width: 620px)  { .niches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .niches { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.niche-card {
  height: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 32px;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.niche-card:hover {
  border-color: #c2b9a6;
  transform: translateY(-3px);
  box-shadow: 0 18px 34px -26px rgba(22, 40, 58, 0.5);
}
.niche-card__icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--cream-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.niche-card__icon span {
  width: 12px; height: 12px;
  border: 1.6px solid var(--copper);
  border-radius: 3px;
  transform: rotate(45deg);
}
.niche-card h3 { font-size: 21px; line-height: 1.25; }
.niche-card p { margin-top: 12px; font-size: 15px; line-height: 1.62; color: #55616e; }

/* Benefit / differentiator lists */
.tick-list, .rule-list { list-style: none; padding: 0; margin: 0; display: grid; }
.tick-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 16.5px;
  line-height: 1.5;
  color: #29333e;
}
.tick-list li::before {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--copper);
  transform: translateY(-2px);
}
.rule-list { margin-top: 26px; }
.rule-list li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 16.5px;
  line-height: 1.5;
  color: #29333e;
}

/* Quaich story card */
.story-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(26px, 3.5vw, 46px);
}
.story-card h3 { font-size: clamp(23px, 3vw, 27px); line-height: 1.25; }
.story-card p { margin-top: 16px; font-size: 16.5px; line-height: 1.7; color: var(--body); }
.story-card__icon { margin-bottom: 20px; display: block; }

/* Founder portrait */
.portrait {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-deep);
  border: 1px solid var(--line);
  /* Matches the source photo, so Steve is never cropped awkwardly */
  aspect-ratio: 635 / 428;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.portrait:has(.portrait__ph) { aspect-ratio: 4 / 5; max-height: 460px; padding: 24px; }
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}
.portrait__ph {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #716858;
  line-height: 1.7;
}

/* Stage list (How It Works) */
.stages { list-style: none; padding: 0; margin: 0; display: grid; }
.stages > li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 700px) {
  .stages > li { grid-template-columns: 108px minmax(0, 1fr); gap: 24px; padding: 34px 0; }
}
.stages__num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--copper);
  padding-top: 6px;
}
.stages h2 { font-size: clamp(22px, 3vw, 29px); line-height: 1.24; }
.stages__body { margin-top: 12px; font-size: 16.5px; line-height: 1.7; color: var(--body); max-width: 58ch; }
.stages__aside { margin-top: 12px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; color: #626a76; }

/* Who-we-help detail cards */
.niche-detail {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(24px, 3.4vw, 44px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 760px) { .niche-detail { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; } }
.niche-detail h2 { font-size: clamp(23px, 3vw, 32px); line-height: 1.2; }
.niche-detail p { margin-top: 14px; font-size: 16px; line-height: 1.66; color: var(--body); }
.roles__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #716858;
  margin-bottom: 12px;
}
.roles { list-style: none; padding: 0; margin: 0; }
.roles li { padding: 10px 0; border-top: 1px solid #ece6da; font-size: 15px; color: #29333e; }

/* Placeholder blocks */
.placeholder {
  border: 1px dashed #cfc7b6;
  border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 44px);
  text-align: center;
}
.placeholder__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #716858;
}
.placeholder p {
  margin: 14px auto 0;
  font-size: 16.5px;
  line-height: 1.6;
  color: #55616e;
  max-width: 62ch;
}

/* FAQ accordion */
.faq { margin-top: clamp(28px, 4vw, 44px); display: grid; gap: 2px; }
.faq details {
  border-top: 1px solid var(--line);
  background: transparent;
}
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 56px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.4vw, 21px);
  line-height: 1.35;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 11px; height: 11px;
  margin-right: 4px;
  border-right: 1.8px solid var(--copper);
  border-bottom: 1.8px solid var(--copper);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq__answer { padding: 0 0 22px; font-size: 16.5px; line-height: 1.7; color: var(--body); max-width: 68ch; }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 3.5vw, 48px);
  align-items: start;
}
@media (min-width: 940px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(22px, 3vw, 40px);
}
.form-card h2 { font-size: clamp(22px, 3vw, 25px); line-height: 1.25; }
.form-card__sub { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--muted); }

.fields { margin-top: 24px; display: grid; gap: 18px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: #29333e;
  margin-bottom: 7px;
}
.field .req { color: var(--copper); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--cream);
  /* 16px min prevents iOS Safari zooming the page on focus */
  font-size: 16px;
  color: #1b2129;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23616a76' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(33, 56, 76, 0.16);
}
.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea { border-color: #c0654c; }
.field__error { margin-top: 6px; font-size: 13px; color: var(--danger); }
.field__error:empty { display: none; }

.form-foot { margin-top: 14px; font-size: 13px; line-height: 1.55; color: #626a76; }
.form-card .btn--block { margin-top: 24px; }

.form-success { text-align: center; padding: 16px 0 8px; }
.form-success h2 { font-size: clamp(22px, 3vw, 27px); line-height: 1.25; }
.form-success p { margin-top: 14px; font-size: 16.5px; line-height: 1.65; color: var(--body); }

.booking-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(18px, 2.4vw, 26px);
}
.booking-card__head { margin-bottom: 14px; }
.booking-card__head h2 { font-size: clamp(20px, 2.6vw, 23px); line-height: 1.3; }
.booking-card__head p { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.calendly-inline-widget {
  min-width: 0 !important;
  width: 100%;
  /* Calendly needs real height; taller on desktop, shorter on phones */
  height: 760px;
  border-radius: 14px;
  overflow: hidden;
}
@media (max-width: 700px) { .calendly-inline-widget { height: 1000px; } }
.booking-fallback { margin-top: 14px; font-size: 14px; line-height: 1.6; color: var(--muted); text-align: center; }

.aside-card {
  background: var(--navy-deep);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 36px);
  color: #eae4d8;
  margin-top: 20px;
}
.aside-card h2, .aside-card h3 { color: var(--cream); font-size: 21px; }
.aside-card p { margin-top: 12px; font-size: 15.5px; line-height: 1.65; color: var(--on-navy); }
.aside-card a { color: var(--sand); }
.aside-card a:hover { color: #f0c496; }
.aside-card__meta { margin-top: 16px; font-size: 14px; line-height: 1.6; color: var(--on-navy-dim); }

/* ==========================================================================
   Final CTA + footer
   ========================================================================== */
.cta { text-align: center; }
.cta h2 { font-size: clamp(28px, 4.6vw, 46px); line-height: 1.12; }
.cta p { margin: 20px auto 0; font-size: clamp(16.5px, 2.2vw, 17.5px); line-height: 1.68; color: var(--on-navy); max-width: 58ch; }
.cta__meta {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8199ae;
}

.site-footer {
  background: var(--navy-dark);
  color: #a9bccc;
  padding: clamp(44px, 5vw, 72px) 0 28px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}
@media (min-width: 640px)  { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; } }
@media (min-width: 1000px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer__brand { display: flex; align-items: center; gap: 12px; }
.site-footer__brand img { width: 34px; height: 34px; display: block; filter: brightness(0) invert(1); opacity: .92; }
.site-footer__brand span {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.site-footer__blurb { margin-top: 14px; font-size: 14.5px; line-height: 1.66; color: #91a7ba; max-width: 34ch; }
.site-footer__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8599a9;
  margin-bottom: 12px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.site-footer a {
  display: inline-block;
  padding: 12px 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: #a9bccc;
  text-decoration: none;
}
.site-footer a:hover { color: var(--cream); text-decoration: underline; }
.site-footer__where { display: block; padding: 12px 0; font-size: 14.5px; line-height: 1.5; color: #8199ae; }
.site-footer__bar {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid #22384b;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: #8199ae;
}
.site-footer__bar nav { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.site-footer__bar a { font-size: 13.5px; color: #8199ae; padding: 11px 0; }

/* ==========================================================================
   Motion
   ========================================================================== */
@keyframes qa-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes qa-fade { from { opacity: 0; } to { opacity: 1; } }

/* Reveal-on-scroll only applies when JS is running, so content is never
   trapped invisible for crawlers or no-JS visitors. */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s var(--ease);
}
html.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .btn-row, .nav-toggle { display: none !important; }
  body { background: #fff; }
}
