/* marcle.cloud, mock 2. Static CSS only; no inline styles anywhere (strict CSP). */

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/InstrumentSans-wght400-700.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Serif Display";
  src: url("/assets/fonts/DMSerifDisplay-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy: #0a1e3f;
  --blue: #0f5fd9;
  --blue-deep: #0b4aae;
  --white: #ffffff;
  --mist: #f3f5f9;
  --sky: #dce8ff;
  --slate: #4a5878;
  --line: #d6dce8;
  --amber: #ffb81c;
  --amber-bright: #ffc94d;
  --claret: #5b333e;
  --sans: "Instrument Sans", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif-it: "DM Serif Display", Georgia, "Times New Roman", serif;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section: clamp(3.5rem, 7vw, 6.5rem);
  --r-card: 20px;
  --r-shot: 12px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.625rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 700;
  text-wrap: balance;
}
h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 700; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.site-head :focus-visible, .hero :focus-visible, .cta :focus-visible, .site-foot :focus-visible { outline-color: var(--amber); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -6rem; z-index: 10;
  background: var(--amber); color: var(--navy);
  padding: 0.6rem 1rem; border-radius: 999px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* Buttons: pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.75rem 1.6rem; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-deep); }
.btn--amber { background: var(--amber); color: var(--navy); }
.btn--amber:hover { background: var(--amber-bright); }
.btn--ghost {
  min-height: 2.75rem; padding: 0.5rem 1.1rem; font-size: 0.9375rem;
  border: 1.5px solid rgba(255, 255, 255, 0.6); color: var(--white); background: transparent;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }

/* Header, laid over the hero */
.site-head { position: absolute; inset: 0 0 auto 0; z-index: 2; }
.site-head__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.75rem; }
.wordmark {
  color: var(--white); text-decoration: none; font-weight: 700; font-size: 1.3125rem; letter-spacing: -0.01em;
  min-height: 2.75rem; display: inline-flex; align-items: center;
}
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav__link {
  color: var(--white); text-decoration: none; font-weight: 600; font-size: 0.9375rem;
  min-height: 2.75rem; display: inline-flex; align-items: center;
  border-bottom: 2px solid transparent; transition: border-color 0.15s ease;
}
.site-nav__link:hover { border-bottom-color: var(--white); }

/* Hero: photo under a navy fade, headline on the solid side */
.hero { position: relative; background: var(--navy); color: var(--white); overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media picture { display: block; width: 100%; height: 100%; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--navy) 0%, var(--navy) 30%, rgba(10, 30, 63, 0.86) 50%, rgba(10, 30, 63, 0.36) 74%, rgba(10, 30, 63, 0.12) 100%),
    linear-gradient(180deg, rgba(10, 30, 63, 0.65) 0%, rgba(10, 30, 63, 0) 32%, rgba(10, 30, 63, 0) 72%, rgba(10, 30, 63, 0.5) 100%);
}
.hero__content {
  min-height: clamp(36rem, 84vh, 50rem);
  padding-top: clamp(7.5rem, 18vh, 10rem);
  padding-bottom: clamp(4rem, 9vh, 6rem);
  display: flex; flex-direction: column; justify-content: center;
}
.hero__title {
  font-size: clamp(2.625rem, 1.4rem + 4.6vw, 5.25rem);
  line-height: 1; letter-spacing: -0.025em; font-weight: 700;
  max-width: 11.5em; text-wrap: balance;
}
.br-phone { display: none; }
.hero__lede {
  margin-top: 1.5rem;
  font-size: clamp(1.125rem, 1rem + 0.55vw, 1.375rem); line-height: 1.5;
  max-width: 40ch; color: rgba(255, 255, 255, 0.92);
}
.hero__actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.hero__more {
  color: var(--white); font-weight: 600; text-decoration: underline;
  text-underline-offset: 0.3em; text-decoration-thickness: 2px;
  min-height: 3rem; display: inline-flex; align-items: center;
}

/* Who it's for: Bob's sentence, the organisation types set as pills inside it */
.who { padding-block: var(--section); }
.who__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.5rem 3rem; align-items: start; }
.who__text {
  font-size: clamp(1.375rem, 1rem + 1.5vw, 2.125rem); line-height: 1.45;
  font-weight: 500; letter-spacing: -0.01em; max-width: 24em;
}
.chip {
  display: inline-block; padding: 0.02em 0.55em 0.08em; border-radius: 999px;
  background: var(--sky); color: var(--navy); font-weight: 600; line-height: 1.3; white-space: nowrap;
}
.who__text .chip { margin: 0.12em 0.22em 0.12em 0; }
.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; }

/* What you get: three flat cards */
.what { background: var(--mist); padding-block: var(--section); }
.cards { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.75rem 1.75rem 2rem; }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--sky); color: var(--blue); margin-bottom: 1.5rem;
}
.card__icon svg { width: 1.75rem; height: 1.75rem; }
.card h3 { font-size: 1.3125rem; margin-bottom: 0.5rem; text-wrap: balance; }
.card p { color: var(--slate); font-size: 1rem; }

/* How it works: paragraph, then the four-step row */
.how { padding-block: var(--section); }
.how__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.5rem 3rem; align-items: start; }
.how__text { font-size: 1.125rem; line-height: 1.6; max-width: 60ch; }
.steps { list-style: none; margin: 3.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.step { position: relative; padding-top: 3.5rem; }
.step__n {
  position: absolute; top: 0; left: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--amber); color: var(--navy); font-weight: 700; font-size: 1rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.step:not(:last-child)::before {
  content: ""; position: absolute; top: calc(1.25rem - 1px); left: 2.5rem; right: -2rem; height: 2px; background: var(--line);
}
.step h3 { font-size: 1.125rem; margin-bottom: 0.4rem; }
.step p { color: var(--slate); font-size: 0.9375rem; }

/* In use today: browser frames, then brand tiles */

/* Call to action band: the one italic moment */
.cta { background: var(--blue); color: var(--white); padding-block: var(--section); }
.cta__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 2rem 4rem; align-items: center; }
.cta__title {
  font-family: var(--serif-it); font-style: italic; font-weight: 400;
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem); line-height: 1.05; letter-spacing: 0; text-wrap: balance;
}
.cta__side p { font-size: 1.125rem; max-width: 40ch; color: rgba(255, 255, 255, 0.92); }
.cta__side .btn { margin-top: 1.5rem; }

.site-foot { background: var(--navy); color: var(--white); padding-block: 2rem; font-size: 0.9375rem; }
.site-foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }

/* Tablet and below */
@media (max-width: 56rem) {
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 1.75rem; }
  .step { padding-top: 0; padding-left: 3.5rem; min-height: 2.5rem; }
  .step:not(:last-child)::before { top: 2.75rem; bottom: -1.75rem; left: calc(1.25rem - 1px); right: auto; width: 2px; height: auto; }
}

/* Tablet: stack the photo above the headline, so the headline never crosses a face */
@media (min-width: 48rem) and (max-width: 63.9rem) {
  .site-head { position: static; background: var(--navy); }
  .hero__media { position: relative; z-index: auto; aspect-ratio: 16 / 9; max-height: 30rem; }
  .hero__img { object-position: 65% 50%; }
  .hero__shade {
    background: linear-gradient(180deg, rgba(10, 30, 63, 0.2) 0%, rgba(10, 30, 63, 0) 30%, rgba(10, 30, 63, 0) 62%, var(--navy) 100%);
  }
  .hero__content { min-height: 0; padding-top: 0.25rem; padding-bottom: 3.5rem; }
}

/* Phone */
@media (max-width: 47.9rem) {
  .site-head { position: static; background: var(--navy); }
  .site-nav__link { display: none; }
  .hero__media { position: relative; z-index: auto; aspect-ratio: 4 / 3; max-height: 24rem; }
  .hero__img { object-position: 50% 88%; }
  .hero__shade {
    background: linear-gradient(180deg, rgba(10, 30, 63, 0.2) 0%, rgba(10, 30, 63, 0) 30%, rgba(10, 30, 63, 0) 62%, var(--navy) 100%);
  }
  .hero__content { min-height: 0; padding-top: 0.25rem; padding-bottom: 3rem; }
  .hero__title { font-size: clamp(2.5rem, 1.2rem + 7.2vw, 3.5rem); text-wrap: initial; }
  .br-phone { display: inline; }
  .who__grid, .how__head, .cta__grid { grid-template-columns: 1fr; }
}
@media (max-width: 36rem) {
  .btn--blue, .btn--amber { width: 100%; }
  .hero__actions { gap: 0.75rem; }
}

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