/* ==========================================================================
   Business Technology
   Flat, editorial layout: solid colour sections, light-weight type,
   a single accent colour and square-cornered components.
   ========================================================================== */

:root {
  --ink: #0d1d28;        /* darkest section */
  --navy: #12293a;       /* main dark section */
  --slate: #1b3a4d;      /* panels on dark */
  --slate-2: #234a60;    /* hover on dark panels */
  --sand: #ecebe4;       /* light section */
  --sand-2: #e2e1d8;     /* panels on light */
  --cream: #f4f2ea;      /* text + solid buttons on dark */
  --muted: #a7b9c3;      /* secondary text on dark */
  --accent: #86cfc1;     /* headings/accents on dark */
  --accent-dark: #22695d;/* accents on light */
  --text-dark: #13232e;  /* body text on light */
  --rule-dark: rgba(244, 242, 234, 0.18);
  --rule-light: rgba(19, 35, 46, 0.18);

  --font: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 6vw, 128px);
  --max: 1440px;
  --section: clamp(72px, 10vw, 140px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--cream); color: var(--ink); padding: 10px 16px; font-weight: 500;
}
.skip:focus { top: 16px; }

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

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

/* Shared pieces
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 0.85em 1.6em;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn--solid { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); }
.btn--outline { border-color: var(--cream); color: var(--cream); background: transparent; }
.btn--outline:hover { background: var(--cream); color: var(--ink); }

.kicker {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  border-left: 2px solid var(--accent);
  padding-left: 22px;
  font-weight: 300;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  color: var(--accent);
}
.section-title--dark { color: var(--accent-dark); border-color: var(--accent-dark); }

.statement {
  font-weight: 300;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 16ch;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 2rem;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}
.arrow-link::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  transition: width 0.2s ease;
}
.arrow-link:hover::before { width: 44px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 120px);
}

/* Header (sand bar, navy logo and controls; spans the full width)
   ========================================================================== */

.header {
  --edge: clamp(16px, 2.4vw, 36px);
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--sand);
  color: var(--navy);
  border-bottom: 1px solid var(--rule-light);
  transition: box-shadow 0.2s ease;
}
.header.is-scrolled { box-shadow: 0 6px 20px rgba(18, 41, 58, 0.08); }
.header .container { max-width: none; padding-inline: var(--edge); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}
.nav__logo img { width: 136px; height: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav__links a:not(.btn) {
  text-decoration: none;
  padding-block: 6px;
  background: linear-gradient(var(--navy), var(--navy)) 0 100% / 0 1px no-repeat;
  transition: background-size 0.2s ease;
}
.nav__links a:not(.btn):hover { background-size: 100% 1px; }
.nav__links .btn { padding: 0.65em 1.3em; }
.header .btn--solid { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.header .btn--solid:hover { background: var(--slate-2); border-color: var(--slate-2); }

/* "Why us" dropdown: opens on hover or keyboard focus */
.nav__item { position: relative; }
.nav__parent::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 0 3px 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.nav__item:hover .nav__parent::after,
.nav__item:focus-within .nav__parent::after { transform: translateY(3px) rotate(-135deg); }

.nav__sub {
  position: absolute;
  top: calc(100% + 18px);
  left: -20px;
  min-width: 200px;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  background: var(--sand);
  border: 1px solid var(--rule-light);
  box-shadow: 0 12px 24px rgba(18, 41, 58, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
/* bridges the gap so the menu stays open while the pointer moves down to it */
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 20px; }
.nav__item:hover .nav__sub,
.nav__item:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__links .nav__sub a {
  display: block;
  padding: 9px 20px;
  background: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav__links .nav__sub a:hover { background: var(--sand-2); color: var(--accent-dark); }
.nav__links a[aria-current] { color: var(--accent-dark); }

.nav__toggle { display: none; }

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

.hero {
  position: relative;
  background: var(--navy);
  padding-block: clamp(64px, 9vw, 130px) clamp(72px, 10vw, 140px);
  overflow: hidden;
}

/* Cursor-following dash field, drawn by main.js behind the hero content */
.hero__field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: 40px;
}

.hero__title {
  font-weight: 300;
  font-size: clamp(3.2rem, 8.5vw, 7.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-top: 1.4rem;
}

.hero__lead {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.3;
  color: var(--accent);
  margin-top: 1.6rem;
}

.hero__body {
  max-width: 34em;
  color: var(--muted);
  font-size: 1.125rem;
  margin-top: 1.4rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.6rem; }

.hero__mark { width: 100%; max-width: 460px; justify-self: end; overflow: visible; }
.link {
  fill: none;
  stroke-width: 1.5;
  stroke-dasharray: 720;
  stroke-dashoffset: 720;
  animation: draw 2.2s cubic-bezier(.6, .1, .2, 1) forwards;
}
.link--a { stroke: var(--cream); }
.link--b { stroke: var(--accent); animation-delay: 0.4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Intro
   ========================================================================== */

.intro {
  background: var(--ink);
  padding-block: var(--section);
}
.intro__accent {
  color: var(--accent);
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  line-height: 1.5;
  padding-top: 0.6rem;
}
.intro__accent p + p { margin-top: 1.4rem; }
.intro__accent strong { font-weight: 600; }

/* At a glance
   ========================================================================== */

.glance {
  background: var(--ink);
  padding-bottom: var(--section);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  margin: 2.6rem 0 0;
  padding: 0;
}
.stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: 210px;
  padding: 30px 28px 28px;
  background: var(--slate);
  transition: background-color 0.2s ease;
}
.stat:hover { background: var(--slate-2); }
/* value up top, label pinned to the bottom so every card's label lines up */
.stat__value {
  font-weight: 300;
  font-size: clamp(1.7rem, 2.3vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.stat__label {
  padding-top: 16px;
  border-top: 1px solid var(--rule-dark);
  font-weight: 400;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--cream);
  min-height: calc(2 * 1.45em + 16px);
}

/* Services: stacking panels
   Each panel is sticky a little lower than the last, so later panels slide
   over earlier ones and leave their top edge showing. main.js adds the
   parallax lift + dim on the panel being covered.
   ========================================================================== */

.services {
  --header-h: 76px;
  --peek: 26px;
  background: var(--sand);
  color: var(--text-dark);
  padding-block: var(--section);
}
.services__intro { max-width: 34em; margin-top: 1.2rem; padding-left: 24px; font-size: 1.1rem; }

.stack { margin-top: 3.4rem; }

.stack-card {
  position: sticky;
  top: calc(var(--header-h) + 24px + var(--i, 0) * var(--peek));
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 40px;
  min-height: min(620px, calc(100vh - var(--header-h) - 140px));
  padding: clamp(36px, 5vw, 72px) clamp(28px, 6vw, 88px);
  margin-bottom: 28px;
  border-radius: 20px;
  overflow: hidden;
  color: var(--cream);
  box-shadow: 0 -10px 30px rgba(13, 29, 40, 0.18);
  transform-origin: 50% 0;
}
.stack-card:nth-child(1) { --i: 0; }
.stack-card:nth-child(2) { --i: 1; }
.stack-card:nth-child(3) { --i: 2; }
.stack-card:nth-child(4) { --i: 3; }
.stack-card:last-child { margin-bottom: 0; }

/* dims as the next panel covers it (opacity driven by --cover from main.js) */
.stack-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: calc(var(--cover, 0) * 0.35);
  pointer-events: none;
}

.stack-card--slate { background: var(--slate); }
.stack-card--teal { background: #11463f; }
.stack-card--indigo { background: #1d2a4a; }
.stack-card--sand { background: #d9dbd1; color: var(--text-dark); }
.stack-card--sand .kicker { color: var(--accent-dark); }

.stack-card__content {
  transform: translateY(calc(var(--cover, 0) * -110px));
  will-change: transform;
}
.stack-card__content h3 {
  font-weight: 300;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 1.4rem 0 1.2rem;
  max-width: 14ch;
}
.stack-card__content p:not(.kicker) { font-size: 1.15rem; max-width: 30em; opacity: 0.85; margin-bottom: 2.2rem; }

.stack-card__art {
  width: 100%;
  max-width: 320px;
  justify-self: center;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
  transform: translateY(calc(var(--cover, 0) * -60px));
}
.stack-card__art .accent { stroke: var(--accent); }
.stack-card--sand .stack-card__art .accent { stroke: var(--accent-dark); }

.btn--ink { background: var(--text-dark); color: var(--cream); border-color: var(--text-dark); }
.btn--ink:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* Logo marquee
   The track holds two identical groups and slides left by exactly one group's
   width, so the loop has no visible seam. Hovering pauses it.
   ========================================================================== */

.logos {
  background: #fff;
  padding-block: clamp(48px, 6vw, 80px);
}
.logos__title { text-align: center; color: var(--ink); font-size: 1.1rem; }

.marquee {
  --gap: clamp(32px, 4vw, 60px);
  --duration: 40s;
  margin-top: 2.4rem;
  overflow: hidden;
  /* fade the logos in and out at the screen edges */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee var(--duration) linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__group {
  display: flex;
  align-items: center;
  gap: var(--gap);
  padding-right: var(--gap);
  margin: 0;
  list-style: none;
}
.marquee__item {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  flex-shrink: 0;
  color: var(--cream);
  opacity: 0.6;
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
.marquee__item:hover { opacity: 1; }
.marquee__item svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linejoin: round;
}
.logos .marquee__item { opacity: 1; }
.marquee__item img { height: 40px; width: auto; }
.marquee__item--tall img { height: 64px; }
.marquee__item--wide img { height: 26px; }

@keyframes marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__group[aria-hidden="true"] { display: none; }
  .marquee__group:first-child { flex-wrap: wrap; justify-content: center; width: 100vw; }
}

/* Insights: article cards (home page, and "More insights" under each article)
   ========================================================================== */

.insights {
  background: var(--ink);
  padding-block: var(--section);
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.section-title + .insight-grid { margin-top: 2.6rem; }
.insight-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.insight-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--slate);
  transition: background-color 0.2s ease;
}
.insight-card:hover { background: var(--slate-2); }
.insight-card__img {
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
}
.insight-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: clamp(24px, 2.6vw, 36px);
}
.insight-card__title {
  font-weight: 300;
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  line-height: 1.3;
}
.insight-card__title a { text-decoration: none; }
/* the whole card is the link */
.insight-card__title a::after { content: ""; position: absolute; inset: 0; }
.insight-card__title a:focus-visible { outline: none; }
.insight-card:has(a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.insight-card__excerpt { color: var(--muted); font-size: 0.98rem; }
.insight-card .arrow-link { margin-top: auto; padding-top: 0.6rem; }
.insight-card:hover .arrow-link::before { width: 44px; }

/* Home page insights: landscape cards (image left, text right) in a sideways track; sized
   so the second card just runs off the edge of the screen and the third stays out of view */
.insights--list { overflow-x: clip; }
.insights__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.insights__intro { max-width: 34em; margin-top: 1.2rem; padding-left: 24px; color: var(--muted); font-size: 1.1rem; }
.insight-track {
  --gap: 24px;
  --bleed: calc(var(--gutter) + max(0px, (100vw - var(--max)) / 2));
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% + var(--bleed)) / 2);
  gap: var(--gap);
  margin: 2.6rem calc(-1 * var(--bleed)) 0 0;
  padding: 0 var(--bleed) 22px 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--slate-2) transparent;
}
.insight-track > * { scroll-snap-align: start; }
.insight-track .insight-card:has(a:focus-visible) { outline-offset: -2px; }
.insight-track .insight-card {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  min-height: 300px;
}
.insight-track .insight-card__img { height: 100%; aspect-ratio: auto; }
.insight-track .insight-card__body { justify-content: center; gap: 0.8rem; padding: clamp(22px, 2.2vw, 32px); }
.insight-track .insight-card__title { font-size: clamp(1.1rem, 1.45vw, 1.3rem); line-height: 1.3; }
.insight-track .insight-card__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: 0.92rem;
}

/* Article pages
   ========================================================================== */

.article__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2.4rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}
.article__back::before { content: "\2190"; transition: transform 0.2s ease; }
.article__back:hover { color: var(--cream); }
.article__back:hover::before { transform: translateX(-4px); }
.article__title {
  max-width: 24ch;
  margin-top: 1.4rem;
  font-weight: 300;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.article__meta { margin-top: 1.6rem; color: var(--muted); font-size: 0.95rem; }

/* Article hero with a full-bleed photograph behind the title */
.article__hero--photo {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(520px, 78vh, 820px);
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}
.article__hero-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-settle 1.6s cubic-bezier(.2, .7, .2, 1) both;
}
/* darken towards the text so the title always reads, photo stays visible top-right */
.article__hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, rgba(13, 29, 40, 0.96) 0%, rgba(13, 29, 40, 0.7) 38%, rgba(13, 29, 40, 0.15) 75%, rgba(13, 29, 40, 0.35) 100%),
    linear-gradient(90deg, rgba(13, 29, 40, 0.6) 0%, rgba(13, 29, 40, 0) 65%);
}
.article__hero--photo .container { width: 100%; }
.article__hero--photo .article__title { max-width: 22ch; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25); }
.article__hero--photo .article__back,
.article__hero--photo .article__meta { color: rgba(244, 242, 234, 0.8); }
.article__hero--photo .article__back:hover { color: var(--cream); }
.article__hero--photo .article__meta {
  display: inline-block;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule-dark);
}
.article__credit {
  position: absolute;
  right: var(--gutter);
  bottom: 18px;
  margin: 0;
  color: rgba(244, 242, 234, 0.55);
  font-size: 0.72rem;
}
.article__credit a { color: inherit; }
.article__credit a:hover { color: var(--cream); }
@keyframes hero-settle { from { transform: scale(1.06); opacity: 0.4; } }
@media (prefers-reduced-motion: reduce) { .article__hero-img { animation: none; } }
@media (max-width: 700px) {
  .article__hero--photo { min-height: 72vh; }
  .article__credit { position: static; margin: 1.4rem var(--gutter) 0; }
  .article__hero--photo { flex-direction: column; justify-content: flex-end; align-items: stretch; padding-bottom: 20px; }
}

/* Photo cards: a slow zoom on hover */
.insight-card { overflow: hidden; }
.insight-card__img { transition: transform 0.6s cubic-bezier(.2, .7, .2, 1), filter 0.6s ease; filter: saturate(0.9); }
.insight-card:hover .insight-card__img { transform: scale(1.04); filter: saturate(1); }
.insight-track .insight-card { overflow: hidden; }

.article__body {
  background: var(--sand);
  color: var(--text-dark);
  padding-block: clamp(48px, 7vw, 96px) var(--section);
}

/* Long-form text */
.prose {
  max-width: 44rem;
  margin-inline: auto;
  font-size: 1.125rem;
  line-height: 1.75;
}
.prose > * + * { margin-top: 1.1rem; }
.prose__figure { margin: 0 0 2.4rem; }
.prose__figure img { width: 100%; height: auto; }
.prose h2 {
  margin-top: 3.2rem;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.prose__figure + h2 { margin-top: 0; }
.prose h3 { margin-top: 2rem; font-weight: 600; font-size: 1.15rem; }
.prose h2 + h3, .prose h2 + p { margin-top: 1.2rem; }
.prose__num {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}
.prose__num::before { content: "Question "; }
.prose .prose__label {
  margin-top: 1.8rem;
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.prose .prose__label + * { margin-top: 0.6rem; }
.prose ul { padding-left: 1.2em; }
.prose li { padding-left: 0.3em; }
.prose li::marker { color: var(--accent-dark); }
.prose li + li { margin-top: 0.4rem; }
.prose strong { font-weight: 600; }
.prose blockquote {
  margin: 1.6rem 0 0;
  padding-left: 24px;
  border-left: 2px solid var(--accent-dark);
  font-size: 1.25rem;
  line-height: 1.6;
}
.prose__pull {
  color: var(--accent-dark);
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  line-height: 1.4;
}
.prose__questions { list-style: none; padding-left: 0 !important; }
.prose__questions li {
  padding: 14px 0 14px 22px;
  border-left: 2px solid var(--accent-dark);
  font-size: 1.2rem;
  font-weight: 500;
}
.prose__questions li + li { margin-top: 8px; }
.prose__ref {
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 500;
}
.prose__ref::before { content: "FSCA reference · "; opacity: 0.7; }
.prose__note { padding: 16px 20px; background: var(--sand-2); font-size: 1rem; }
.prose .prose__bonus { margin-top: 3.4rem; color: var(--accent-dark); }
.prose__bonus + h2 { margin-top: 0.6rem; }

/* Journey
   ========================================================================== */

.journey {
  background: var(--ink);
  padding-block: var(--section);
}

.journey__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.journey__sub { color: var(--muted); margin-top: 0.8rem; padding-left: 24px; }

.carousel-nav { display: flex; gap: 8px; }
.carousel-nav button {
  width: 48px;
  height: 48px;
  background: transparent;
  border: 1px solid var(--rule-dark);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.carousel-nav button:hover:not(:disabled) { background: var(--slate); border-color: var(--cream); }
.carousel-nav button:disabled { opacity: 0.35; cursor: default; }

.timeline {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 72px) / 4);
  gap: 24px;
  list-style: none;
  margin: 2.6rem 0 0;
  padding: 0 0 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--slate-2) transparent;
}

.milestone {
  scroll-snap-align: start;
  border-top: 1px solid var(--rule-dark);
  padding-top: 26px;
  position: relative;
}
.milestone::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--accent);
}
.milestone__year {
  display: block;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--accent);
}
.milestone h3 {
  font-weight: 500;
  font-size: 1.1rem;
  margin: 1rem 0 0.8rem;
}
.milestone p { color: var(--muted); font-size: 0.98rem; }
.milestone p + p { margin-top: 0.8rem; }

/* FAQ (light section)
   ========================================================================== */

.faq {
  background: var(--sand);
  color: var(--text-dark);
  padding-block: var(--section);
}
.faq__aside { margin-top: 1.6rem; padding-left: 24px; max-width: 22em; }
.faq__aside a { color: var(--accent-dark); font-weight: 500; }

.faq__list { border-top: 1px solid var(--rule-light); }
.faq details { border-bottom: 1px solid var(--rule-light); }
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 24px 56px 24px 0;
  font-weight: 400;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  transition: color 0.2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-dark); }
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s ease;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq__answer { padding: 0 56px 28px 0; max-width: 42em; }
.faq__answer p + p,
.faq__answer ul + p { margin-top: 0.9rem; }
.faq__answer ul { margin: 0.7rem 0 0; padding-left: 1.2em; }
.faq__answer li { padding-left: 0.3em; }
.faq__answer li::marker { color: var(--accent-dark); }
.faq__answer li + li { margin-top: 0.25rem; }
.faq__answer a { color: var(--accent-dark); font-weight: 500; }

/* Contact
   ========================================================================== */

.contact {
  background: var(--navy);
  padding-block: var(--section);
}
.contact__text { color: var(--muted); font-size: 1.15rem; margin-top: 1.6rem; max-width: 30em; }

.contact__details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 28px;
  margin-top: 2.6rem;
}
.contact__details dt { color: var(--accent); font-weight: 500; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; padding-top: 3px; }
.contact__details a { text-decoration: none; }
.contact__details a:hover { text-decoration: underline; }

.form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  padding: clamp(28px, 4vw, 52px);
  background: var(--slate);
}
.field { width: 100%; }
.field label { display: block; color: var(--muted); font-size: 0.95rem; margin-bottom: 6px; }
.field input,
.field textarea {
  width: 100%;
  font: 400 1.15rem/1.4 var(--font);
  color: var(--cream);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--muted);
  border-radius: 0;
  padding: 8px 0;
  transition: border-color 0.2s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }

.form__status { min-height: 1.5em; color: var(--accent); font-size: 0.95rem; margin-top: -10px; }

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

.footer {
  background: var(--ink);
  color: var(--muted);
  padding-top: clamp(56px, 7vw, 90px);
  font-size: 0.95rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 0.8fr 1.1fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer__brand img { width: 150px; height: auto; margin-bottom: 1.4rem; }
.footer__brand p { max-width: 24em; }
.footer__heading {
  color: var(--cream);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li + li { margin-top: 0.6rem; }
.footer__list a { text-decoration: none; }
.footer__list a:hover { color: var(--cream); }

.footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--rule-dark);
  padding-block: 22px 32px;
  font-size: 0.85rem;
}
.footer__legal a { text-decoration: none; }
.footer__legal a:hover { color: var(--cream); }

/* Page intro (About, Pricing)
   ========================================================================== */

.page-hero {
  background: var(--navy);
  padding-block: clamp(64px, 9vw, 130px) clamp(56px, 7vw, 100px);
}
.page-hero__title {
  font-weight: 300;
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-top: 1.4rem;
  max-width: 16ch;
}
.page-hero__lead {
  max-width: 36em;
  color: var(--muted);
  font-size: 1.15rem;
  margin-top: 1.8rem;
}
/* shorter intro so the tool below it is visible straight away */
.page-hero--compact { padding-block: clamp(40px, 5vw, 64px) clamp(28px, 3vw, 40px); }
.page-hero--compact .page-hero__title { max-width: none; margin-top: 1rem; font-size: clamp(2.2rem, 4vw, 3.2rem); }
.page-hero--compact .page-hero__lead { margin-top: 0.8rem; font-size: 1.05rem; }

/* Cost estimator: questions on the left, sticky estimate on the right
   ========================================================================== */

.calc {
  background: var(--ink);
  padding-block: clamp(36px, 4.5vw, 64px);
}
.calc__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: start;
  gap: clamp(32px, 5vw, 80px);
}

.calc__group { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc__group + .calc__group { margin-top: 1.6rem; }
.calc__legend {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 0;
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  line-height: 1.3;
}
.calc__step { color: var(--accent); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.12em; }

.calc__panel {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 0.8rem;
  padding: 12px 20px;
  background: var(--slate);
}
.calc__range { flex: 1; min-width: 0; accent-color: var(--accent); cursor: pointer; }
.calc__count { display: flex; align-items: baseline; gap: 10px; color: var(--muted); }
.calc__hint { color: var(--muted); }

.calc input[type="number"] {
  width: 3.4em;
  font: 300 1.6rem/1 var(--font);
  color: var(--cream);
  text-align: right;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--muted);
  border-radius: 0;
  padding: 2px 0;
  -moz-appearance: textfield;
}
.calc input[type="number"]::-webkit-inner-spin-button,
.calc input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.calc input[type="number"]:focus { outline: none; border-bottom-color: var(--accent); }

.stepper { display: flex; align-items: center; gap: 14px; }
.stepper input[type="number"] { width: 2em; text-align: center; }
.stepper button {
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--rule-dark);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.stepper button:hover { background: var(--slate-2); border-color: var(--cream); }

.calc__options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 0.8rem;
}
.option { display: flex; cursor: pointer; }
.option__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 14px 44px 14px 16px;
  background: var(--slate);
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.option:hover .option__body { background: var(--slate-2); }
/* round radio indicator, filled when selected */
.option__body::after {
  content: "";
  position: absolute;
  top: 15px;
  right: 14px;
  width: 18px;
  height: 18px;
  border: 1px solid var(--muted);
  border-radius: 50%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.option input:checked + .option__body { border-color: var(--accent); }
.option input:checked + .option__body::after { border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--slate), inset 0 0 0 9px var(--accent); }
.option:hover input:checked + .option__body::after { box-shadow: inset 0 0 0 4px var(--slate-2), inset 0 0 0 9px var(--accent); }
.option input:focus-visible + .option__body { outline: 2px solid var(--accent); outline-offset: 3px; }
.option__name { font-weight: 500; font-size: 1rem; line-height: 1.35; }
.option__desc { color: var(--muted); font-size: 0.85rem; line-height: 1.4; }


.calc__summary {
  position: sticky;
  top: 110px;
  padding: clamp(24px, 2.6vw, 36px);
  background: var(--sand);
  color: var(--text-dark);
}
.calc__summary .kicker { color: var(--accent-dark); }
.calc__total {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0.8rem;
  font-size: clamp(1.9rem, 2.7vw, 2.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.calc__dash { opacity: 0.5; }
.calc__unit { margin-top: 0.4rem; font-size: 1rem; opacity: 0.8; }
.calc__meta { margin-top: 1rem; font-size: 0.95rem; opacity: 0.8; }
.calc__meta strong { font-weight: 600; }
.calc__result .btn { margin-top: 1.4rem; }
.calc__note {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule-light);
  font-size: 0.85rem;
  opacity: 0.75;
}

/* Culture: copy left, sliding photo carousel right
   ========================================================================== */

.culture {
  background: var(--navy);
  padding-block: var(--section);
  overflow-x: clip;   /* the carousel bleeds to the screen edge */
}
.culture .split { align-items: center; gap: clamp(40px, 4vw, 64px); }
.culture__copy p:not(.culture__lead) { color: var(--muted); max-width: 30em; padding-left: 24px; }
.culture__copy p + p { margin-top: 1.1rem; }
.culture__lead {
  color: var(--accent);
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  line-height: 1.5;
  max-width: 24em;
  margin-top: 1.6rem;
  padding-left: 24px;
}

/* Each slide sits at --offset steps from the current one (set by main.js):
   0 is centred, ±1 peek in from the sides, anything further waits off screen. */
.slideshow {
  --slide-w: 52%;
  --gap: clamp(24px, 3vw, 48px);
  /* run past the container's right edge to the edge of the screen */
  --bleed: calc(var(--gutter) + max(0px, (100vw - var(--max)) / 2));
  margin-right: calc(-1 * var(--bleed));
}
.slideshow__viewport {
  position: relative;
  aspect-ratio: 20 / 13;   /* fits a 4:5 slide at --slide-w */
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
}
.slide {
  position: absolute;
  top: 0;
  left: calc((100% - var(--slide-w)) / 2);
  width: var(--slide-w);
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--slate);
  transform: translateX(calc(var(--offset, 0) * (100% + var(--gap)))) scale(0.9);
  opacity: 0.45;
  cursor: pointer;
  transition: transform 0.55s cubic-bezier(.6, .1, .2, 1), opacity 0.55s ease;
}
.slide.is-active { transform: translateX(0) scale(1); opacity: 1; cursor: grab; }
.slide.is-edge { opacity: 0.2; }
.slide.is-far { opacity: 0; pointer-events: none; }
.slide.is-jump { transition: none; }   /* wrapping round the loop: move without animating */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* Position bar: the thumb marks the current photo; click or drag to move */
.slideshow__bar {
  position: relative;
  height: 24px;
  margin: 18px auto 0;
  width: var(--slide-w);
  cursor: pointer;
  touch-action: none;
}
.slideshow__bar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: var(--rule-dark);
}
.slideshow__thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: calc(100% / var(--count, 1));
  height: 4px;
  margin-top: -2px;
  background: var(--accent);
  transform: translateX(calc(var(--index, 0) * 100%));
  transition: transform 0.7s cubic-bezier(.6, .1, .2, 1);
}
.slideshow__bar:focus-visible { outline-offset: 2px; }

/* Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .insight-track { grid-auto-columns: 86%; }
  .insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-auto-columns: calc((100% - 24px) / 2); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { min-height: 170px; }
  .stat__label { min-height: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {

  .nav__toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    width: 44px;
    height: 44px;
    padding: 12px 10px;
    background: none;
    border: 1px solid var(--rule-light);
    cursor: pointer;
  }
  .nav__toggle span:not(.sr-only) { display: block; height: 1.5px; background: var(--navy); transition: transform 0.2s ease; }
  .nav.is-open .nav__toggle span:nth-child(2) { transform: translateY(4.25px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-4.25px) rotate(-45deg); }

  .nav__links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px var(--edge) 28px;
    background: var(--sand);
    border-top: 1px solid var(--rule-light);
    box-shadow: 0 12px 24px rgba(18, 41, 58, 0.08);
    font-size: 1.15rem;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links > li:last-child { margin-top: 12px; }

  /* dropdown items sit indented under "Why us" */
  .nav__parent::after { display: none; }
  .nav__sub {
    position: static;
    min-width: 0;
    padding: 2px 0 4px 18px;
    background: none;
    border: 0;
    border-left: 1px solid var(--rule-light);
    margin-left: 2px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    font-size: 1.05rem;
  }
  .nav__sub::before { display: none; }
  .nav__links .nav__sub a { padding: 5px 0; }
  .nav__links .nav__sub a:hover { background: none; }

  .hero__grid,
  .split { grid-template-columns: 1fr; }
  .insight-grid,
  .insight-grid--two { grid-template-columns: 1fr; }

  .services { --header-h: 72px; --peek: 14px; }
  .stack-card { grid-template-columns: 1fr; min-height: 0; gap: 24px; }
  .stack-card__art { max-width: 150px; justify-self: start; order: -1; }

  .hero__mark { position: absolute; right: -60px; top: 40px; width: 260px; opacity: 0.35; }
  .hero { position: relative; }
  .hero__copy { position: relative; }

  /* stacked under the copy: bleed to both screen edges */
  .slideshow { --slide-w: 72%; --gap: 16px; margin-inline: calc(-1 * var(--gutter)); }
  .slideshow__viewport { aspect-ratio: 10 / 9; }

  .calc__grid { grid-template-columns: 1fr; }
  .calc__summary { position: static; }
  .calc__options { grid-template-columns: 1fr; }

  .journey__head { flex-direction: column; align-items: flex-start; }
  .insight-track { --gap: 16px; }
  .insight-track .insight-card { grid-template-columns: 1fr; min-height: 0; }
  .insight-track .insight-card__img { aspect-ratio: 16 / 9; }
  .insight-track .insight-card__body { justify-content: flex-start; }
}

@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr; }
  .stat { min-height: 0; }
  .timeline { grid-auto-columns: 82%; }
  .calc__panel { flex-wrap: wrap; gap: 18px; padding: 22px; }
  .calc__range { flex-basis: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__legal { flex-direction: column; }
}
