/* Basis Tech — site styles.
   Built from the Basis Partners stylesheet: same layout, type pairing (Cormorant Garamond + Inter),
   spacing, buttons and components. The colour scheme is the dark interpretation: Basis Partners'
   primary blue is the page background, with white, lighter blues and orange in the foreground.
   Contrast ratios are noted against --bg (#263a99) unless stated. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  color-scheme: dark;

  /* Brand (shared with Basis Partners) */
  --brand:      #263a99;
  --brand-sky:  #6baeff;
  --sky-soft:   #a9d0ff;
  --navy:       #00224e;
  --flame:      #ff5a00;
  --white:      #ffffff;

  /* Surfaces */
  --bg:         #263a99;   /* page background */
  --bg-alt:     #1e2f85;   /* alternating sections (the light-blue tint on Basis Partners) */
  --bg-deep:    #00224e;   /* feature sections and call-to-action bands */
  --bg-footer:  #001a3d;
  --surface:    #2c41a3;   /* cards and panels */
  --surface-hi: #3048ad;   /* card hover */
  --field:      #1b2b7a;   /* form inputs */
  --line:       rgba(255,255,255,0.2);
  --line-field: rgba(255,255,255,0.55);  /* input borders, 3.6:1 */

  /* Text */
  --heading:    #ffffff;   /* 9.8:1 */
  --text:       #e8eefb;   /* 8.6:1 */
  --text-soft:  #d2dbf3;   /* body copy, 7.1:1; 6.3:1 on --surface */
  --muted:      #b4c3ea;   /* small print, 5.4:1; 5.0:1 on --surface */
  --accent:     #a9d0ff;   /* eyebrows, emphasis, links, 6.1:1 */
  --error:      #ffb4ab;   /* 5.7:1 */

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --header-h: 80px;
}

html { scroll-behavior: smooth; background: var(--bg); }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent); }
::selection { background: var(--sky-soft); color: var(--navy); }
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

:focus-visible {
  outline: 3px solid var(--sky-soft);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 300;
  background: var(--white);
  color: var(--navy);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ── Layout ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

.section { padding: clamp(56px, 7vw, 104px) 0; }
.section--tint { background: var(--bg-alt); }
.section--rule { border-top: 1px solid var(--line); }
.section--navy { background: var(--bg-deep); }
.section--navy .lede, .section--navy p { color: var(--text-soft); }

/* ── Type ── */
.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.h1, .h2, .h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  color: var(--heading);
}
.h1 { font-size: clamp(40px, 5.6vw, 76px); }
.h2 { font-size: clamp(32px, 3.8vw, 52px); }
.h3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; }
.h1 em, .h2 em { font-style: normal; color: var(--sky-soft); }

.lede {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 62ch;
}
.lede + .lede { margin-top: 1rem; }

.prose { color: var(--text-soft); max-width: 66ch; }
.prose p + p { margin-top: 1.1rem; }
.prose strong { color: var(--heading); font-weight: 600; }

.section-head { max-width: 780px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head .lede { margin-top: 1.25rem; }

/* ── Buttons ──
   .btn: white outline that fills white on hover.
   .btn--fill: solid white with a navy arrow block; fills light blue on hover. */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 46px;
  min-width: 220px;
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--white);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.45s ease;
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn-text {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  text-align: center;
  transition: color 0.45s ease;
}
.btn:hover .btn-text, .btn:focus-visible .btn-text { color: var(--brand); }
.btn-arrow {
  position: relative;
  width: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  transition: background 0.45s ease;
}
.btn-arrow svg { display: block; }
.btn-arrow svg path { stroke: var(--brand); transition: stroke 0.45s ease; }

.btn--fill { background: var(--white); }
.btn--fill .btn-text { color: var(--brand); }
.btn--fill::before { background: var(--sky-soft); }
.btn--fill:hover .btn-text, .btn--fill:focus-visible .btn-text { color: var(--navy); }
.btn--fill .btn-arrow { background: var(--navy); }
.btn--fill .btn-arrow svg path { stroke: var(--white); }
.btn--fill:hover .btn-arrow, .btn--fill:focus-visible .btn-arrow { background: var(--flame); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--flame);
  display: flex;
  align-items: center;
}
.nav-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo: the Basis mark (inline SVG) and the name set in Cormorant Garamond, as on Basis Partners. */
.nav-logo { display: inline-flex; align-items: center; gap: 15px; text-decoration: none; flex-shrink: 0; }
.logo-mark { display: block; height: 42px; width: auto; }
.logo-word {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.045em;
  color: var(--white);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.1vw, 2.1rem);
  list-style: none;
}
.nav-links a:not(.nav-cta) {
  white-space: nowrap;
  display: inline-block;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.nav-links a:not(.nav-cta):hover { border-bottom-color: var(--flame); }
.nav-links a[aria-current]:not(.nav-cta) { border-bottom-color: var(--flame); }

.nav-cta {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 20px;
  background: var(--white);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: 2px solid var(--white);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.nav-cta:hover, .nav-cta[aria-current="page"] { background: var(--sky-soft); border-color: var(--sky-soft); color: var(--navy); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--white);
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s ease, background 0.25s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -8px; }
.nav-toggle-bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-8px) rotate(-45deg); }

/* ── Hero ── */
.hero { padding: calc(var(--header-h) + clamp(48px, 6vw, 88px)) 0 clamp(18px, 2.2vw, 28px); }
.hero-inner { max-width: 900px; }
.hero .lede { margin-top: 1.5rem; }
.hero-note { margin-top: 1.5rem; font-size: 14px; color: var(--muted); max-width: 70ch; }

.page-hero {
  padding: calc(var(--header-h) + clamp(48px, 6vw, 88px)) 0 clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}
.page-hero .h1 { font-size: clamp(38px, 5vw, 66px); max-width: 17em; }
.page-hero .lede { margin-top: 1.5rem; }
.page-hero .btn-row { margin-top: 1.75rem; }
.page-hero--flush { border-bottom: 0; }

/* Breadcrumb (service pages) */
.crumbs { margin-bottom: 1rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.crumbs li { color: var(--accent); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--white); text-decoration: underline; }

/* ── Cards ── */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand-sky);
  padding: clamp(24px, 2.4vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.card .h3 { font-size: clamp(22px, 2vw, 27px); }
.card p { font-size: 15.5px; line-height: 1.6; color: var(--text-soft); }
.card-num {
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
}
.card-link {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  align-self: flex-start;
}
.card-link:hover { border-bottom-color: var(--flame); }
a.card { text-decoration: none; color: inherit; transition: background 0.25s ease, transform 0.25s ease; }
a.card:hover { background: var(--surface-hi); transform: translateY(-2px); }
a.card:hover .card-link { border-bottom-color: var(--flame); }

.card--plain { border-top-color: var(--line); }

/* ── Lists ── */
.ticks { list-style: none; }
.ticks li {
  position: relative;
  padding: 11px 0 11px 26px;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.5;
}
.ticks li:first-child { border-top: 1px solid var(--line); }
.ticks li::before {
  content: '';
  position: absolute;
  left: 2px; top: 20px;
  width: 8px; height: 8px;
  background: var(--flame);
}
.ticks--open li::before { background: transparent; border: 2px solid var(--brand-sky); width: 9px; height: 9px; top: 19px; }

/* ── Steps ── */
.steps { list-style: none; border-top: 1px solid var(--brand-sky); counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 0 clamp(20px, 4vw, 64px);
  padding: clamp(24px, 3vw, 38px) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.steps li::before {
  content: counter(step);
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-sky);
  color: var(--navy);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
}
.steps h3 { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; line-height: 1.15; color: var(--heading); padding-top: 6px; }
.steps p { color: var(--text-soft); padding-top: 6px; }

/* ── Service blocks ── */
.jump {
  display: flex; flex-wrap: wrap; gap: 10px;
  list-style: none;
  margin-top: 2rem;
}
.jump a {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--sky-soft);
  color: var(--white);
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.jump a:hover { background: var(--white); color: var(--brand); }

.service {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(48px, 6vw, 88px) 0;
  border-top: 1px solid var(--line);
}
.service:first-of-type { border-top: 0; }
.service-side .service-num {
  font-family: var(--serif);
  font-size: clamp(64px, 7vw, 104px);
  line-height: 0.9;
  color: var(--brand-sky);
  font-weight: 400;
  display: block;
  margin-bottom: 1rem;
}
.service-side .h2 { font-size: clamp(30px, 3.2vw, 44px); }
.service-side .tagline { margin-top: 1rem; color: var(--text-soft); }
.service-side .btn-row { margin-top: 1.5rem; }
.service-for { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--text-soft); }
.service-for strong { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--heading); margin-bottom: 4px; }
.service-body h3 {
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  margin: 2rem 0 0.75rem;
}
.service-body h3:first-child { margin-top: 0; }
.service-body > p { color: var(--text-soft); max-width: 62ch; }
.service-note { margin-top: 1rem; font-size: 14.5px; color: var(--muted); max-width: 66ch; }
.service-more { margin-top: 1.5rem; }

.note {
  border-left: 3px solid var(--brand-sky);
  background: var(--surface);
  padding: clamp(20px, 2.5vw, 30px) clamp(22px, 3vw, 36px);
}
.note .h3 { margin-bottom: 0.6rem; }
.note p { color: var(--text-soft); max-width: 70ch; }
.note p + p { margin-top: 0.8rem; }

/* Feature block (navy section with two columns) */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.feature .h2 { font-size: clamp(30px, 3.4vw, 46px); }
.feature h3 { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.75rem; }
.feature h3 + .ticks { margin-bottom: 2rem; }

.scope-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

/* ── Audience rows ── */
.audience {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 64px);
  padding: clamp(28px, 3.5vw, 44px) 0;
  border-top: 1px solid var(--line);
}
.audience:last-child { border-bottom: 1px solid var(--line); }
.audience h3 { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; line-height: 1.15; color: var(--sky-soft); }
.audience-label {
  display: block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.audience p { color: var(--text-soft); font-size: 16px; line-height: 1.6; }

/* ── CTA band ── */
.cta-band { background: var(--bg-deep); color: var(--white); text-align: center; padding: clamp(64px, 8vw, 116px) 0; }
.cta-band .h2 { max-width: 18em; margin: 0 auto 1.25rem; font-size: clamp(34px, 4.2vw, 58px); }
.cta-band p { color: var(--text-soft); max-width: 52ch; margin: 0 auto; }
.cta-band .btn-row { justify-content: center; }

/* ── Form ── */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.form { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--heading);
}
.req { color: var(--sky-soft); }
.field .hint, .form .hint { font-size: 13.5px; color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.form .hint strong { color: var(--heading); }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--white);
  background: var(--field);
  border: 1px solid var(--line-field);
  border-radius: 0;
  padding: 12px 14px;
  min-height: 48px;
}
.field input::placeholder, .field textarea::placeholder { color: #9fb0dd; opacity: 1; }
.field select option { background: var(--field); color: var(--white); }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid var(--sky-soft);
  outline-offset: 0;
  border-color: var(--white);
}
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { align-self: flex-start; }
.form .btn[disabled] { opacity: 0.6; cursor: wait; }
.form-status { font-size: 16px; padding: 0; color: var(--text); }
.form-status:not(:empty) { padding: 16px 20px; border-left: 3px solid var(--brand-sky); background: var(--surface); }
.form-status.is-error { border-left-color: #ff8a80; background: #3a2a6e; color: #ffe3df; }
.form-status a { color: inherit; font-weight: 600; }
.form-status:focus { outline: none; }
.form-status strong { display: block; margin-bottom: 4px; color: var(--heading); }
.form-status span { display: block; }
.form-status span + span { margin-top: 6px; }
.form-done:focus { outline: none; }
.form-fine { font-size: 14px; color: var(--muted); max-width: 52ch; }
.optional { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); font-size: 13px; }

.aside-card { border: 1px solid var(--line); border-top: 3px solid var(--brand-sky); padding: clamp(24px, 3vw, 36px); background: var(--surface); }
.aside-card + .aside-card { margin-top: 20px; }
.scope-grid .aside-card + .aside-card { margin-top: 0; }
.aside-card--muted { border-top-color: var(--muted); }
.aside-card h2 { font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.2; margin-bottom: 0.8rem; color: var(--heading); }
.aside-card .h3 { margin-bottom: 0.8rem; }
.aside-card p, .aside-card li { color: var(--text-soft); font-size: 15.5px; }
.aside-card p + p { margin-top: 0.8rem; }
.aside-card ul { list-style: none; }
.aside-card li { padding: 8px 0 8px 22px; position: relative; border-top: 1px solid var(--line); }
.aside-card li::before { content: ''; position: absolute; left: 2px; top: 17px; width: 7px; height: 7px; background: var(--flame); }
.aside-card a { color: var(--accent); font-weight: 600; }

.next-steps { list-style: none; counter-reset: ns; }
.aside-card .next-steps li { counter-increment: ns; padding: 10px 0 10px 40px; }
.aside-card .next-steps li::before {
  content: counter(ns);
  left: 0; top: 10px; width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-sky); color: var(--navy); font-size: 13px; font-weight: 700;
}

/* Direct contact details with copy buttons (contact page) */
.contact-direct { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.contact-direct li { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border: 1px solid var(--line); border-top: 3px solid var(--brand-sky); padding: 14px 18px; background: var(--surface); }
.cd-label { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.cd-value { color: var(--white); font-weight: 600; font-size: 17px; text-decoration: none; }
.cd-value:hover { text-decoration: underline; }
.cd-copy { font: 600 11px var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); background: transparent; border: 1px solid var(--white); padding: 6px 12px; min-height: 32px; cursor: pointer; }
.cd-copy:hover, .cd-copy:focus-visible { background: var(--white); color: var(--brand); }

/* Multi-step choice controls (project brief) */
[hidden] { display: none !important; }
.form > fieldset.field { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 22px 0 0; min-width: 0; gap: 12px; }
.form fieldset.field legend { float: left; width: 100%; padding: 0; font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--heading); }
.form fieldset.field legend .optional { font-size: 14px; }
.sublabel { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--heading); }
.choices { display: grid; gap: 8px; }
.choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field .choice {
  display: flex; align-items: flex-start; gap: 12px;
  min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--line-field); background: var(--field); cursor: pointer;
  font-size: 16px; font-weight: 400; line-height: 1.4; letter-spacing: 0; text-transform: none; color: var(--white);
}
.field .choice input { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 1px 0 0; flex: none; accent-color: var(--brand-sky); }
.field .choice:has(input:checked) { border-color: var(--sky-soft); background: var(--surface-hi); box-shadow: inset 3px 0 0 var(--brand-sky); }
.field .choice:focus-within { outline: 3px solid var(--sky-soft); outline-offset: 0; }
.field .choice input:focus { outline: none; }
.field .choice--check { border-style: dashed; }
.subgroup { display: flex; flex-direction: column; gap: 12px; padding-left: 16px; border-left: 2px solid var(--line); }
.field-error { font-size: 14px; font-weight: 600; color: var(--error); }
.field-error:empty { display: none; }
.field [aria-invalid="true"] { border-color: #ff8a80; }
.field input:disabled { background: transparent; color: var(--muted); }

/* ── Footer ── */
.site-footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--line);
  padding: clamp(48px, 6vw, 80px) 0 clamp(24px, 3vw, 36px);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 60px);
  padding-bottom: clamp(32px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.footer-brand p { margin-top: 1rem; font-size: 15px; color: var(--text-soft); max-width: 30ch; line-height: 1.55; }
.footer-col h2 {
  font-family: var(--sans);
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--heading);
  margin-bottom: 1rem;
}
.footer-col a, .footer-col span {
  display: block;
  padding: 4px 0;
  font-size: 15px;
  color: var(--text-soft);
  text-decoration: none;
}
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.footer-legal { font-size: 13.5px; line-height: 1.55; color: var(--muted); max-width: 90ch; margin-bottom: 14px; }
.footer-bottom { font-size: 14px; color: var(--muted); }
.footer-bottom a { color: var(--muted); margin-left: 14px; }
.footer-bottom a:hover { color: var(--white); }

/* ══ Tablet ══ */
@media (max-width: 1024px) {
  .contact-grid, .service, .feature { grid-template-columns: minmax(0, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audience { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .audience h3 { grid-column: 1 / -1; }
  .steps li { grid-template-columns: 56px minmax(0, 1fr); }
  .steps li p { grid-column: 2; padding-top: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ══ Mobile navigation ══ */
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 3px solid var(--flame);
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .site-header.nav-open .nav-links { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; }
  .nav-links li:has(> .nav-cta) { padding: 16px 20px; }
  .nav-links a:not(.nav-cta) { display: block; padding: 16px 24px; border-bottom: 0; font-size: 14px; }
  .nav-links a[aria-current]:not(.nav-cta) { box-shadow: inset 4px 0 0 var(--flame); }
  .nav-cta { width: 100%; justify-content: center; min-height: 46px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4, .field-row, .choices--2 { grid-template-columns: minmax(0, 1fr); }
  .audience { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .steps li { grid-template-columns: 44px minmax(0, 1fr); gap: 0 16px; }
  .steps li::before { width: 44px; height: 44px; font-size: 22px; }
  .btn { min-width: 0; width: 100%; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .logo-mark { height: 36px; }
  .logo-word { font-size: 23px; }
  .nav-logo { gap: 12px; }
}

/* Cormorant's default numerals read as letters ("01" looks like "OI"); use lining figures. */
.service-num, .steps li::before, .fw-num { font-variant-numeric: lining-nums; font-feature-settings: 'lnum' 1; }

/* ── Logo strip ── */
.logo-strip { padding: clamp(6px, 0.8vw, 10px) 0 clamp(28px, 3.5vw, 44px); border-bottom: 1px solid var(--line); }
.logo-strip-label {
  text-align: center;
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.logo-strip-logos {
  list-style: none;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 20px clamp(24px, 3.5vw, 52px);
}
/* All logos are shown in white on the blue background. */
.logo-strip-logos img {
  display: block;
  height: 40px; width: auto; max-width: 150px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.78;
  transition: opacity 0.22s ease;
}
.logo-strip-logos img:hover { opacity: 1; }
@media (max-width: 680px) { .logo-strip-logos img { height: 32px; max-width: 110px; } }

.stack-top { margin-top: 1.5rem; }
.section--tight-top { padding-top: clamp(40px, 5vw, 72px); }
.link-arrow { font-weight: 600; color: var(--accent); text-decoration: none; border-bottom: 2px solid transparent; }
.link-arrow:hover { border-bottom-color: var(--flame); }

/* Two pathways (home) */
.pathways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pathway {
  display: flex; flex-direction: column; gap: 1rem;
  padding: clamp(28px, 3vw, 44px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand-sky);
}
.pathway-for { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.pathway .h3 { font-size: clamp(28px, 2.8vw, 38px); }
.pathway > p { color: var(--text-soft); }
.pathway .btn-row { margin-top: auto; padding-top: 0.5rem; }
.pathways-foot { margin-top: 24px; font-size: 15.5px; color: var(--text-soft); }

/* Problems (home) */
.issues { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 5vw, 80px); }
.issues li { padding: 22px 0 22px 26px; border-top: 1px solid var(--line); position: relative; }
.issues li::before { content: ''; position: absolute; left: 2px; top: 31px; width: 8px; height: 8px; background: var(--flame); }
.issues h3 { font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--heading); margin-bottom: 6px; }
.issues p { font-size: 15.5px; color: var(--text-soft); }

/* Define, Build, Implement, Adopt diagram */
.framework { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.framework li { position: relative; }
.framework a {
  display: flex; flex-direction: column; gap: 0.7rem;
  height: 100%;
  padding: 28px clamp(20px, 2.2vw, 30px) 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand-sky);
  text-decoration: none; color: inherit;
  transition: background 0.25s ease;
}
.framework a:hover { background: var(--surface-hi); }
.framework li + li a { border-left: 0; }
.framework li:not(:last-child)::after {
  content: ''; position: absolute; z-index: 1;
  top: 44px; right: -9px; width: 16px; height: 16px;
  background: var(--surface);
  border-top: 1px solid var(--line); border-right: 1px solid var(--line);
  transform: rotate(45deg);
}
.fw-head { display: flex; align-items: center; gap: 12px; }
.fw-num {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-sky); color: var(--navy);
  font-family: var(--serif); font-size: 20px; font-weight: 600;
}
.fw-name { font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1; color: var(--heading); }
.fw-service { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.framework p { font-size: 15px; line-height: 1.55; color: var(--text-soft); }
.framework .card-link { margin-top: auto; }
.framework a:hover .card-link { border-bottom-color: var(--flame); }

/* Sectors */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 8px 14px; border: 1px solid var(--line); background: var(--surface); font-size: 14.5px; color: var(--white); }
.subhead { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }

/* Illustrative deliverables */
.deliverable { padding: 0; gap: 0; }
.deliverable .thumb { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 20px 24px; }
.deliverable .thumb svg { display: block; width: 100%; height: auto; }
.deliverable-body { padding: clamp(22px, 2.2vw, 30px); display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.fine { font-size: 14px; color: var(--muted); margin-top: 20px; max-width: 80ch; }

/* Labels for case studies, demonstrations and founder experience.
   Use .tag--client only for completed client engagements; label prototypes .tag--demo. */
.tag {
  display: inline-block; align-self: flex-start;
  padding: 3px 9px;
  border: 1px solid currentColor;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
}
.tag--demo { color: #ffb38a; }
.tag--client { color: var(--white); }

/* Topic cards on service pages (what we help with) */
.topic dt { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 0.6rem; }
.topic dd { font-size: 15px; line-height: 1.55; color: var(--text-soft); margin-top: 2px; }

/* Founder profile */
.founder { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.founder-photo img { display: block; width: 100%; max-width: 420px; aspect-ratio: 4 / 5; object-fit: cover; border-top: 3px solid var(--brand-sky); }
.founder-name { font-family: var(--serif); font-size: clamp(34px, 3.6vw, 48px); font-weight: 500; line-height: 1.08; color: var(--heading); }
.founder-role { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 0.5rem 0 1.5rem; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.facts dt { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.facts dd { font-size: 15.5px; color: var(--text-soft); line-height: 1.55; }
.facts dd + dd { margin-top: 4px; }

/* Previous roles */
.roles { list-style: none; border-top: 1px solid var(--line); }
.roles li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.roles .role { font-weight: 600; color: var(--heading); }
.roles .org { color: var(--accent); font-weight: 500; }
.roles p { font-size: 15.5px; color: var(--text-soft); margin-top: 4px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 20px 44px 20px 0; font-weight: 600; font-size: 17px; color: var(--heading); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 15px; font-size: 26px; font-weight: 400; line-height: 1; color: var(--sky-soft); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 0 20px; color: var(--text-soft); max-width: 72ch; }

/* Legal pages */
.legal h2 { font-family: var(--serif); font-size: 28px; font-weight: 500; color: var(--heading); margin: 2rem 0 0.5rem; line-height: 1.2; }
.legal h2:first-child { margin-top: 0; }
.legal a { color: var(--accent); }

/* Responsive overrides for the components above. Kept last so they win over the base rules. */
@media (max-width: 1024px) {
  .founder { grid-template-columns: minmax(0, 1fr); }
  .founder-photo img { max-width: 320px; }
  .framework { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .framework li + li a { border-left: 1px solid var(--line); }
  .framework li::after { display: none; }
}
@media (max-width: 680px) {
  .pathways, .issues, .framework, .scope-grid, .facts { grid-template-columns: minmax(0, 1fr); }
}
