/* [basis-io] landing page
   Built on the basis.IO design system. Binding rules:
   radius 0 everywhere · no shadows (one named exception) · no gradients
   depth comes from hairline rules and the schematic grid ground. */

:root {
  --navy: #14304F;
  --panel: #1C5189;
  --accent: #2C6BB3;
  --blue-300: #7FA3C9;
  --blue-200: #AFC6DF;
  --card: #F3F8FD;
  --paper: #FFFFFF;
  --slate: #3A4A5C;
  --ink-on-navy: #E7EDF4;

  --font-headline: "Arimo", Arial, Helvetica, sans-serif;
  --font-body: "Arimo", Arial, Helvetica, sans-serif;
  --font-label: "Silkscreen", "Courier New", monospace;
  --font-display: "PT Serif", Georgia, serif;

  --measure: 1120px;
  --gutter: 40px;
  --band-y: 104px;

  --ease: cubic-bezier(0.2, 0, 0, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font: 400 17px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, li, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; transition: color 180ms var(--ease); }
a:hover { color: var(--panel); }
a:focus-visible,
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 0; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 10;
  background: var(--navy); color: var(--paper);
  padding: 12px 18px; font: 400 11px/1 var(--font-label); letter-spacing: 0.18em;
}
.skip:focus { left: 0; color: var(--paper); }

/* ---------- layout ---------- */

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }

.band { padding: var(--band-y) 0; border-bottom: 1px solid var(--blue-200); }
.band--tight { padding: 44px 0; }
.band--card { background: var(--card); }
.band--navy {
  background: var(--navy);
  color: var(--paper);
  border-bottom: none;
}
.band--navy h1, .band--navy h2, .band--navy h3 { color: var(--paper); }
.band--navy p { color: var(--ink-on-navy); }
.band--navy .eyebrow { color: var(--blue-200); }
.band--navy .numeral { color: var(--blue-300); }

/* schematic grid ground — only ever on navy plates */
.band--grid {
  position: relative;
  background-image:
    linear-gradient(to right,  rgba(175, 198, 223, 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(175, 198, 223, 0.14) 1px, transparent 1px);
  background-size: 20px 20px;
}
.band--grid > .wrap { position: relative; }

/* Crawl-in variant, applied by main.js as progressive enhancement.
   The grid is split into four interleaved line sets (odd/even verticals,
   odd/even horizontals) that draw in at different rates. Without JS or
   with reduced motion, the static grid above stands. */
.band--grid.grid-anim { background-image: none; }
.band--grid.grid-anim::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right,  rgba(175, 198, 223, 0.14) 1px, transparent 1px),
    linear-gradient(to right,  rgba(175, 198, 223, 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(175, 198, 223, 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(175, 198, 223, 0.14) 1px, transparent 1px);
  background-position: 0 0, 20px 0, 0 0, 0 20px;
  background-repeat: repeat;
  background-size: 40px 0%, 40px 0%, 0% 40px, 0% 40px;
}
.band--grid.grid-anim.grid-in::before {
  animation: grid-crawl 2000ms var(--ease) forwards;
}
@keyframes grid-crawl {
  0%   { background-size: 40px 0%,   40px 0%,   0% 40px,   0% 40px; }
  30%  { background-size: 40px 55%,  40px 8%,   28% 40px,  0% 40px; }
  65%  { background-size: 40px 100%, 40px 62%,  70% 40px,  30% 40px; }
  100% { background-size: 40px 100%, 40px 100%, 100% 40px, 100% 40px; }
}

/* small accent registration marks on navy plates */
.band--navy.band--grid > .wrap::before,
.band--navy.band--grid > .wrap::after {
  content: ""; position: absolute; width: 13px; height: 13px; pointer-events: none;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 100% 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 1px 100% no-repeat;
}
.band--navy.band--grid > .wrap::before { top: calc(var(--band-y) / -2); left: var(--gutter); }
.band--navy.band--grid > .wrap::after { bottom: calc(var(--band-y) / -2); right: var(--gutter); }

/* faint schematic on the Who we are band - client-requested exception to
   the navy-only grid rule. Accent-tinted at 7%; person cards sit on solid
   paper so the copy stays legible. */
.band--grid-light {
  background-image:
    linear-gradient(to right,  rgba(44, 107, 179, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(44, 107, 179, 0.07) 1px, transparent 1px);
  background-size: 20px 20px;
}
.band--grid-light .person { background: var(--card); }

.band__head { display: flex; flex-direction: column; gap: 20px; margin-bottom: 48px; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 64px;
  align-items: start;
}
.split__head { display: flex; flex-direction: column; gap: 20px; }

.grid { display: grid; }
.grid--proof   { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.grid--pillars { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.grid--steps   { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }
.grid--team    { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }

/* ---------- type ---------- */

h1 {
  font: 700 clamp(42px, 6vw, 80px)/1.05 var(--font-headline);
  letter-spacing: -0.015em;
  max-width: 18ch;
  text-wrap: pretty;
}
h2 {
  font: 700 clamp(30px, 3.6vw, 42px)/1.16 var(--font-headline);
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
h3 { font: 700 21px/1.25 var(--font-headline); text-wrap: pretty; }

.eyebrow {
  font: 400 11px/1 var(--font-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.numeral {
  font: 400 11px/1 var(--font-label);
  letter-spacing: 0.18em;
  color: var(--blue-300);
}

.lede {
  font: 400 clamp(18px, 1.6vw, 21px)/1.5 var(--font-body);
  max-width: 640px;
  text-wrap: pretty;
}
.lede--sm { font-size: 18px; }

.prose { display: flex; flex-direction: column; gap: 20px; }
.prose p { font: 400 18px/1.55 var(--font-body); color: var(--slate); text-wrap: pretty; }

.wordmark {
  font: 700 italic 26px/1 var(--font-display);
  letter-spacing: -0.03em;
  color: var(--navy);
  white-space: nowrap;
  flex: 0 0 auto;
}
.wordmark:hover { color: var(--navy); }
.wordmark--light { color: var(--paper); font-size: 24px; }
.wordmark__io { font-weight: 700; font-style: normal; }
.wordmark__bracket { font-style: normal; }

/* inline wordmark for mentions of [basis-io] in running copy */
.wm { font-family: var(--font-display); white-space: nowrap; }
.wm__b { font-weight: 700; font-style: italic; }
.wm__io { font-weight: 700; }

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--blue-200);
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}
/* white halo keeps header copy legible when navy plates pass beneath the glass */
.site-header .wordmark,
.site-header .site-nav a {
  text-shadow:
    0 0 2px rgba(255, 255, 255, 0.95),
    0 0 6px rgba(255, 255, 255, 0.9),
    0 0 12px rgba(255, 255, 255, 0.75);
}
.site-header__row {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 20px 40px;
  padding-top: 28px; padding-bottom: 28px;
}
.site-header__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.site-nav a {
  font: 400 10px/1 var(--font-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  white-space: nowrap;
  border-bottom: 1px solid var(--blue-200);
  padding-bottom: 3px;
}
.site-nav a {
  display: inline-block;
  transition: transform 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}
.site-nav a:hover {
  color: var(--navy);
  border-bottom-color: var(--accent);
  transform: scale(1.12);
}
.nav-short { display: none; }
/* faux bold that keeps glyph metrics, so neighbours never shift */
.site-header .site-nav a:hover {
  text-shadow:
    0.6px 0 0 currentColor,
    0 0 2px rgba(255, 255, 255, 0.95),
    0 0 6px rgba(255, 255, 255, 0.9),
    0 0 12px rgba(255, 255, 255, 0.75);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 18px/1 var(--font-headline);
  white-space: nowrap;
  padding: 16px 28px;
  border: 1px solid transparent;
  border-radius: 0;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}
.btn--sm { font-size: 14px; padding: 10px 18px; }

/* Soft shadows on boxed elements (client direction, 2026-09-18).
   Buttons inside .btn-row keep their pair-level drop-shadow instead. */
.btn { box-shadow: 0 4px 10px rgba(11, 28, 48, 0.14); border-radius: 4px; }
.btn:focus-visible { border-radius: 4px; }
.btn-row .btn { box-shadow: none; }

.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn--primary:hover { background: var(--panel); border-color: var(--panel); color: var(--paper); }

.btn--secondary { background: transparent; border-color: var(--accent); color: var(--navy); }
.btn--secondary:hover { background: transparent; border-color: var(--panel); color: var(--panel); }
.band--navy .btn--secondary { border-color: var(--blue-200); color: var(--paper); }
.band--navy .btn--secondary:hover { border-color: var(--paper); color: var(--paper); }

/* Named exception to the no-shadow rule: the two button pairs, at the client's request.
   Do not extend shadows to any other element. */
.btn-row {
  display: flex; flex-wrap: wrap; gap: 16px;
  filter: drop-shadow(0 6px 14px rgba(11, 28, 48, 0.32));
}

.rule-link {
  align-self: flex-start;
  font: 400 10px/1 var(--font-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 1px solid var(--blue-200);
  padding-bottom: 4px;
  margin-top: 4px;
}
.band--navy .rule-link { color: var(--blue-200); border-bottom-color: var(--accent); }
.band--navy .rule-link:hover { color: var(--paper); }
.rule-link--lg {
  display: inline-block; margin-top: 36px;
  font: 400 12px/1.4 var(--font-label);
  letter-spacing: 0.14em; text-transform: uppercase;
}

/* ---------- sections ---------- */

.hero { display: flex; flex-direction: column; gap: 36px; padding-top: 16px; padding-bottom: 16px; }

.proof { display: flex; flex-direction: column; gap: 12px; }
.proof p:last-child { font: 400 17px/1.45 var(--font-body); text-wrap: pretty; }
.proof .count { font-variant-numeric: tabular-nums; font-weight: 700; }

.pillar { display: flex; flex-direction: column; gap: 16px; }
.pillar h3 { border-bottom: 1px solid var(--accent); padding-bottom: 14px; }
.pillar h3, .step h3 { display: flex; align-items: center; gap: 12px; }
.pillar h3 { font-size: 27px; line-height: 1.25; }
.pillar__icon { width: 34px; height: 34px; }
.step__icon { width: 28px; height: 28px; }
.pillar p:not(.numeral) { font: 400 17px/1.55 var(--font-body); }

.scope { display: flex; flex-direction: column; gap: 12px; }
.scope li {
  border-top: 1px solid var(--blue-200);
  padding-top: 12px;
  font: 400 16px/1.5 var(--font-body);
  color: var(--slate);
  text-wrap: pretty;
}

.step { display: flex; flex-direction: column; gap: 14px; border-top: 2px solid var(--navy); padding-top: 24px; }
.step p:not(.eyebrow) { font: 400 16px/1.5 var(--font-body); color: var(--slate); }

/* Second named exception to the no-shadow rule: founder cards, at the
   client's request (2026-09-18). Do not add shadows anywhere else. */
.person {
  display: flex; gap: 32px; align-items: flex-start;
  border: 1px solid var(--blue-200); padding: 36px;
  box-shadow: 0 6px 16px rgba(11, 28, 48, 0.10);
  border-radius: 4px; /* client-requested exception to radius-0 (2026-09-18) */
}
.person__photo-link {
  display: block; flex: 0 0 132px; width: 132px;
  transition: transform 240ms var(--ease);
}
.person__photo-link:hover,
.person__photo-link:focus-visible { transform: scale(1.05); }
.person__photo-link:hover .person__photo,
.person__photo-link:focus-visible .person__photo {
  box-shadow: 0 10px 24px rgba(11, 28, 48, 0.20);
}
.person__photo-link:active { transform: scale(1.02); }

.person__photo {
  width: 132px; flex: 0 0 132px; aspect-ratio: 4 / 5;
  background: var(--card); border: 1px solid var(--blue-200);
  display: flex; align-items: flex-end; padding: 12px;
  box-shadow: 0 3px 10px rgba(11, 28, 48, 0.10);
  border-radius: 4px;
}
img.person__photo { padding: 0; object-fit: cover; height: auto; }
.person__photo span {
  font: 400 9px/1.2 var(--font-label); letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--blue-300);
}
.person__body { display: flex; flex-direction: column; gap: 10px; }
.person__role { font: 400 16px/1.45 var(--font-body); color: var(--slate); }
.person__bio { font: 400 15px/1.5 var(--font-body); color: var(--slate); text-wrap: pretty; }

.mark {
  width: 32px; height: 32px; min-width: 32px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--paper);
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 18px/1 var(--font-headline);
  margin-top: 10px;
  box-shadow: 0 2px 6px rgba(11, 28, 48, 0.12);
  border-radius: 4px;
}
.mark:hover { background: var(--panel); border-color: var(--panel); color: var(--paper); }

.cta {
  display: flex; flex-wrap: wrap;
  align-items: flex-end; justify-content: space-between;
  gap: 48px;
}
.cta__copy { max-width: 600px; display: flex; flex-direction: column; gap: 20px; }

/* ---------- enquiry form ---------- */

.enquiry-form { display: flex; flex-direction: column; gap: 24px; }
.enquiry-form .field { display: flex; flex-direction: column; gap: 8px; }
.enquiry-form label {
  font: 400 10px/1 var(--font-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
.enquiry-form input,
.enquiry-form textarea {
  font: 400 17px/1.5 var(--font-body);
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--blue-200);
  border-radius: 4px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color 180ms var(--ease);
  box-shadow: 0 2px 8px rgba(11, 28, 48, 0.08);
}
.enquiry-form input:hover,
.enquiry-form textarea:hover { border-color: var(--blue-300); }
.enquiry-form input:focus-visible,
.enquiry-form textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}
.enquiry-form textarea { resize: vertical; min-height: 140px; }
.enquiry-form button { cursor: pointer; align-self: flex-start; }
.enquiry-form__hp { display: none !important; }
.enquiry-form__alt { font: 400 15px/1.5 var(--font-body); color: var(--slate); }

/* ---------- footer ---------- */

.site-footer { background: var(--navy); color: var(--paper); padding: 56px 0 64px; }
.site-footer a { color: var(--blue-200); }
.site-footer a:hover { color: var(--paper); }
.site-footer .mark { margin-top: 0; color: var(--paper); }

.site-footer__row {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 24px; margin-bottom: 16px;
}
.site-footer__contact { display: flex; align-items: center; gap: 24px; }
.site-footer__contact a:not(.mark) { font: 400 16px/1.4 var(--font-body); color: var(--paper); }

.site-footer__legal {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 24px;
}
.site-footer__legal p, .site-footer__legal a { font: 400 14px/1.45 var(--font-body); color: var(--blue-200); }
.site-footer__legal a { border-bottom: 1px solid var(--accent); }

/* ---------- narrow viewports ---------- */

@media (max-width: 720px) {
  :root { --gutter: 28px; --band-y: 56px; }
  /* compact two-row header so it can stay pinned on a phone:
     wordmark + booking button on the first line, nav on a slim second line */
  .site-header__row { padding-top: 12px; padding-bottom: 10px; row-gap: 10px; }
  .site-header__actions { display: contents; }
  .wordmark { font-size: 21px; }
  .btn--sm { order: 2; }
  .site-nav {
    order: 3; flex: 1 1 100%;
    flex-wrap: nowrap; overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex: 0 0 auto; }
  /* short service labels fit a phone-width line */
  .nav-full { display: none; }
  .nav-short { display: inline; }
  .split, .grid--pillars, .grid--steps { gap: 40px; }
  .btn-row .btn { flex: 1 1 100%; }
  .person { flex-direction: column; gap: 24px; }
  .mark { width: 44px; height: 44px; min-width: 44px; font-size: 20px; }
}

/* ---------- motion: measured, never animated ---------- */

.reveal { opacity: 0; transform: translateY(12px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 2000ms var(--ease), transform 2000ms var(--ease);
}

/* pace hierarchy: headlines 1300ms → body copy 1900ms → boxes 2500ms */
.prose.reveal.is-in {
  transition: opacity 2800ms var(--ease), transform 2800ms var(--ease);
}
.person.reveal.is-in {
  transition: opacity 3500ms var(--ease), transform 3500ms var(--ease);
}

/* Staggered heading entrances: eyebrow settles in first, then the heading,
   then supporting copy and buttons. Child delays run from .is-in. */
.reveal > .eyebrow { opacity: 0; transform: translateY(10px); letter-spacing: 0.34em; }
.reveal > h1,
.reveal > h2,
.reveal > .lede,
.reveal > .btn-row { opacity: 0; transform: translateY(16px); }

.reveal.is-in > .eyebrow {
  opacity: 1; transform: none; letter-spacing: 0.18em;
  transition: opacity 2000ms var(--ease), transform 2000ms var(--ease), letter-spacing 3000ms var(--ease);
}
.reveal.is-in > h1,
.reveal.is-in > h2 {
  opacity: 1; transform: none;
  transition: opacity 2000ms var(--ease) 450ms, transform 2000ms var(--ease) 450ms;
}
.reveal.is-in > .lede {
  opacity: 1; transform: none;
  transition: opacity 2800ms var(--ease) 900ms, transform 2800ms var(--ease) 900ms;
}
.reveal.is-in > .btn-row {
  opacity: 1; transform: none;
  transition: opacity 2000ms var(--ease) 1350ms, transform 2000ms var(--ease) 1350ms;
}

/* typewriter-style word cascade on body copy: main.js wraps words in .tw
   spans with incremental delays; the host block stops fading as a unit
   and lets the words carry the entrance instead */
.reveal .tw { opacity: 0; }
.reveal.is-in .tw { opacity: 1; transition: opacity 500ms var(--ease); }
.reveal > .lede.tw-host,
.reveal.is-in > .lede.tw-host { opacity: 1; transform: none; transition: none; }
.prose.reveal.tw-container,
.prose.reveal.tw-container.is-in { opacity: 1; transform: none; transition: none; }
/* non-paragraph content inside a typing prose block (scope lists) keeps a
   block fade, sequenced to land after the paragraph has mostly typed */
.prose.reveal.tw-container > .scope { opacity: 0; transform: translateY(12px); }
.prose.reveal.tw-container.is-in > .scope {
  opacity: 1; transform: none;
  transition: opacity 2800ms var(--ease) 1400ms, transform 2800ms var(--ease) 1400ms;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0ms !important; animation-duration: 0ms !important; }
  .reveal, .reveal > .eyebrow, .reveal > h1, .reveal > h2,
  .reveal > .lede, .reveal > .btn-row, .reveal .tw { opacity: 1; transform: none; }
}

@media print {
  .band--navy, .site-footer { background: #FFFFFF !important; color: #000000 !important; }
  .band--grid { background-image: none !important; }
  .btn-row { filter: none; }
}
