/* ═══════════════════════════════════════════════════════════════
   Archetyp Mobility · archetyp.io
   Plain HTML and CSS. No build step, no scripts, no trackers.

   One idea per section, centred, with room to breathe. Type from
   Harvestry (Instrument Sans), its warm paper and ink; the black-and-
   white photographs from the original site; Archetyp red for links.
   ═══════════════════════════════════════════════════════════════ */

/* ── Font (self-hosted, SIL Open Font License) ────────────────── */

@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

/* ── Tokens ───────────────────────────────────────────────────── */

:root {
  --bg:      #FDFCF9;
  --bg-alt:  #F5F3EE;
  --card:    #EFECE5;
  --white:   #FFFFFF;

  --text:    #1C1917;
  --text-2:  #57534E;
  --text-3:  #8F8984;
  --border:  #E7E5E4;

  --red:     #E0363C;   /* Archetyp red, for links and the one button */
  --red-h:   #C42B31;

  --night:   #161412;
  --night-2: #211E1B;
  --on-night:   #F5F2EC;
  --on-night-2: #BDB6AC;
  --on-night-3: #857E75;

  /* One palette for everything the site draws: a colour for each field,
     matched in lightness and saturation, warm like the paper and ink.
     Ink is for text (5:1 or better on its tint and on paper). */
  --med:      #A82A2E;  --med-tint: #F8E1DF;   /* medicine: Archetyp red, deepened */
  --edu:      #845511;  --edu-tint: #F5E7CC;   /* education: ochre, from Harvestry */
  --fin:      #1D6857;  --fin-tint: #D9ECE5;   /* finance: a muted teal */

  /* product colours, only inside drawings of the products themselves */
  --harvestry: #C27820;
  --oriel:     #1F6FE5;
  --hedgebook: #F54E00;
  --artemis:   #6B3FA0;

  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --measure: 31em;           /* the paragraph width under a headline */
  --wide:    1080px;
  --py:      clamp(72px, 8.5vw, 112px);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-full: 999px;

  --sh-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --sh-md:  0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.05);
  --sh-lg:  0 18px 50px rgba(0,0,0,0.13), 0 4px 12px rgba(0,0,0,0.06);
  --sh-win: 0 0 0 1px rgba(0,0,0,0.09), 0 8px 24px rgba(0,0,0,0.14), 0 32px 80px rgba(0,0,0,0.20);

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset ────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--text); color: var(--bg);
  padding: 10px 16px; border-radius: var(--r-full); font-weight: 600; font-size: 14px;
}
.skip:focus { top: 12px; }

/* ── Layout ───────────────────────────────────────────────────── */

.wrap   { width: 100%; max-width: calc(var(--wide) + 48px); margin-inline: auto; padding-inline: 24px; }
.slim   { max-width: 920px; }
.section { padding-block: var(--py); text-align: center; }
.section--alt { background: var(--bg-alt); }
.section--flush-bottom { padding-bottom: 0; }

/* ── Type ─────────────────────────────────────────────────────── */

.title {
  font-size: clamp(42px, 6.4vw, 64px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.headline {
  font-size: clamp(32px, 4.4vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.intro {
  max-width: var(--measure);
  margin: 22px auto 0;
  font-size: clamp(18px, 1.7vw, 20px);
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
}
.intro + .intro { margin-top: 14px; }
.kicker { font-size: 15px; font-weight: 600; color: var(--text-3); letter-spacing: 0.01em; margin-top: 10px; }
.more {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 19px; font-weight: 600; color: var(--red);
  transition: color .2s var(--ease), gap .2s var(--ease);
}
.more::after { content: "›"; font-size: 1.15em; line-height: 1; transform: translateY(-1px); transition: transform .2s var(--ease); }
.more:hover { color: var(--red-h); }
.more:hover::after { transform: translate(3px, -1px); }
.more--out::after { content: "↗"; font-size: .85em; transform: none; }
.more--out:hover::after { transform: translate(2px, -2px); }
.more--quiet { color: var(--text-2); font-weight: 500; }
.more--quiet:hover { color: var(--text); }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px; margin-top: 26px; }

/* A headline with its little picture beside it */
.with-icon { display: inline-flex; align-items: center; gap: 16px; }
.with-icon img, .with-icon svg { width: 46px; height: 46px; flex-shrink: 0; }
@media (max-width: 520px) { .with-icon { flex-direction: column; gap: 14px; } }

/* App icons */
.appicon { width: 112px; height: 112px; margin: 0 auto 26px; border-radius: 25px; box-shadow: 0 12px 32px rgba(0,0,0,0.16), 0 2px 6px rgba(0,0,0,0.08); overflow: hidden; }
.appicon img { width: 100%; height: 100%; }
.appicon--sm { width: 72px; height: 72px; border-radius: 17px; margin-bottom: 20px; }
.appicon--xs { width: 40px; height: 40px; border-radius: 10px; margin: 0; box-shadow: var(--sh-sm); }

/* ── Navigation ───────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}
.nav__inner { position: relative; }
.nav__right { display: flex; align-items: center; gap: 28px; }
.nav .nav__cta { height: 38px; padding: 0 18px; font-size: 14.5px; box-shadow: none; }
/* how far down the page you are: a hairline of red, CSS only */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: 68px; border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 18px; letter-spacing: -0.015em; flex-shrink: 0; }
.brand img { width: 26px; height: 26px; }
.brand span { color: var(--text-3); font-weight: 500; }
.nav__links { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 600; color: var(--text-3); }
.nav__links a { transition: color .2s var(--ease); }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); }

/* small screens: a menu that needs no script */
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: var(--r-full);
  display: grid; place-items: center;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before, .menu summary span::after {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--text); position: relative;
  transition: transform .25s var(--ease), background-color .2s;
}
.menu summary span::before, .menu summary span::after { content: ""; position: absolute; left: 0; }
.menu summary span::before { top: -6px; }
.menu summary span::after  { top: 6px; }
.menu[open] summary span { background: transparent; }
.menu[open] summary span::before { transform: translateY(6px) rotate(45deg); }
.menu[open] summary span::after  { transform: translateY(-6px) rotate(-45deg); }
.menu__panel {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: min(300px, calc(100vw - 48px));
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--sh-lg); padding: 8px;
}
.menu__panel a { display: block; padding: 12px 14px; border-radius: 10px; font-size: 17px; font-weight: 600; }
.menu__panel a:hover { background: var(--bg-alt); }
@media (max-width: 720px) {
  .nav__links { display: none; }
  .menu { display: block; }
  .nav__right { gap: 6px; }
}
@media (max-width: 400px) {
  .brand span { display: none; }
  .nav .nav__cta { height: 36px; padding: 0 14px; font-size: 14px; }
}

/* ── Hero ─────────────────────────────────────────────────────── */

.hero { padding-top: clamp(64px, 9vw, 110px); text-align: center; }
.hero .mark { width: 104px; height: 104px; margin: 0 auto 30px; filter: drop-shadow(0 10px 22px rgba(224,54,60,0.25)); }

/* The photographs */
.photo {
  margin: clamp(56px, 7vw, 84px) auto 0;
  max-width: var(--wide);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #2a2a2a;
  box-shadow: var(--sh-lg);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--dusk    { aspect-ratio: 2.1 / 1; }
.photo--dusk img    { object-position: 62% 18%; }
.photo--roots   { aspect-ratio: 2.1 / 1; }
.photo--roots img   { object-position: 50% 22%; }
.photo--founder { aspect-ratio: 2.1 / 1; }
.photo--founder img { object-position: 60% 42%; }
@media (max-width: 640px) {
  .photo { border-radius: var(--r-md); }
  .photo--dusk, .photo--roots, .photo--founder { aspect-ratio: 4 / 3; }
  .photo--dusk img { object-position: 70% 30%; }
  .photo--roots img { object-position: 22% 50%; }
}
.photo-note { margin-top: 14px; font-size: 13.5px; color: var(--text-3); }

/* ── Product sections (home) ──────────────────────────────────── */

.product .art { margin: clamp(52px, 6vw, 72px) auto 0; max-width: 960px; }
.product--harvestry .art { max-width: 1000px; }
.icons-row { display: flex; justify-content: center; gap: 14px; margin-bottom: 30px; }

/* Screens framed as windows */
.window { border-radius: 12px; overflow: hidden; background: var(--white); box-shadow: var(--sh-win); text-align: left; }
.window__bar { height: 32px; display: flex; align-items: center; gap: 7px; padding: 0 13px; background: #F3F1EC; border-bottom: 1px solid #E6E2DA; }
.window__bar i { width: 11px; height: 11px; border-radius: 50%; background: #DDD9D0; }
.window__bar span {
  flex: 1; max-width: 360px; margin: 0 auto; height: 21px; border-radius: 6px; background: #E8E5DE;
  font-family: var(--mono); font-size: 11px; color: var(--text-3);
  display: grid; place-items: center; white-space: nowrap; overflow: hidden;
  transform: translateX(-20px);
}
.shot-bare img { filter: drop-shadow(0 22px 40px rgba(0,0,0,0.22)) drop-shadow(0 4px 10px rgba(0,0,0,0.08)); }

/* Oriel: the illustration with a parent's live view on top */
.art-oriel { position: relative; max-width: 820px; margin-inline: auto; }
.art-oriel .scene { border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: var(--sh-lg); }
.art-oriel .scene img { width: 100%; }
.live {
  position: absolute; right: -3%; bottom: -7%;
  width: min(290px, 58%);
  background: #fff; border-radius: 20px; padding: 16px;
  box-shadow: 0 20px 50px rgba(23,63,148,0.20), 0 0 0 1px rgba(23,63,148,0.08);
  font-size: 13px; line-height: 1.45; color: #2A2F3A; text-align: left;
}
.live__tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: #E9F8EF; color: #157A43; border: 1px solid #BFE8CF; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 10px; border-radius: var(--r-full); display: inline-flex; align-items: center; gap: 6px; }
.live__tag::before, .live__typing::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #1EA75A; }
.live__tag::before { animation: pulse 1.8s ease-in-out infinite; }
.live__who { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #6B7280; }
.live__typing { margin-top: 8px; font-weight: 600; color: #157A43; display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.live__text { margin-top: 6px; background: #F1FAF4; border: 1px solid #CDEBD8; border-radius: 10px; padding: 8px 10px; }
.live__text::after { content: ""; display: inline-block; width: 1.5px; height: 1em; background: var(--oriel); vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
.live__words { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.live__words small { width: 100%; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #6B7280; }
.live__words b { font-weight: 600; font-size: 12px; background: #FFF4D1; color: #7A5600; border: 1px solid #F6DD8C; padding: 2px 10px; border-radius: var(--r-full); }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 640px) {
  .art-oriel { padding-bottom: 150px; }
  .live { right: 50%; transform: translateX(50%); bottom: 0; width: min(300px, 92%); }
}

/* ── Artemis, drawn in HTML with made-up patients ─────────────── */

.ax {
  --ax-ink: #26251E; --ax-ink-2: #6A675E; --ax-line: #ECEAE4;
  background: #FBFBF9; color: var(--ax-ink); text-align: left;
  border-radius: 12px; overflow: hidden;
  box-shadow: var(--sh-win);
  font-size: 12.5px; line-height: 1.45;
}
.ax__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--ax-line); }
.ax__brand { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 13.5px; }
.ax__brand img { width: 20px; height: 20px; }
.ax__seg { display: flex; border: 1px solid var(--ax-line); border-radius: 8px; overflow: hidden; font-size: 11.5px; }
.ax__seg span { padding: 3px 10px; color: var(--ax-ink-2); }
.ax__seg span + span { border-left: 1px solid var(--ax-line); }
.ax__seg .on { background: var(--ax-ink); color: #fff; }
.ax__who { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ax-ink-2); }
.ax__who span { display: flex; }
.ax__who b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; border: 2px solid #fff; margin-left: -7px; }
.ax__head { display: flex; justify-content: space-between; gap: 12px; padding: 9px 16px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ax-ink-2); border-bottom: 1px solid var(--ax-line); }
.ax__head span + span { text-transform: none; letter-spacing: 0; font-weight: 400; }
.ax__row { display: grid; grid-template-columns: 104px 1fr 170px; gap: 16px; padding: 14px 16px; background: #fff; border-bottom: 1px solid var(--ax-line); }
.ax__row:last-of-type { border-bottom: 0; }
.ax__state { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 5px; white-space: nowrap; }
.tag--stable   { background: #98E4C1; color: #004A32; }
.tag--watcher  { background: #FFC882; color: #5D3500; }
.tag--unstable { background: #FD99A6; color: #71102A; }
.tag--listed   { background: #FEB4DD; color: #68094B; }
.tag--tx       { background: #B698DA; color: #3A135A; }
.ax__when { font-size: 11px; color: var(--ax-ink-2); }
.ax__name { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ax__name b { font-size: 14px; font-weight: 650; letter-spacing: -0.01em; }
.ax__name span { font-size: 11px; color: var(--ax-ink-2); white-space: nowrap; }
.ax__facts { display: flex; flex-wrap: wrap; gap: 0 12px; color: var(--ax-ink-2); font-size: 11px; font-variant-numeric: tabular-nums; }
.ax__sum { margin-top: 4px; }
.ax__flags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.ax__flag { font-size: 10.5px; padding: 1px 7px; border-radius: 5px; background: #F2F1ED; color: #4A4840; white-space: nowrap; }
.ax__flag--alert { background: #FDE7EB; color: #8A1734; }
.ax__flag--soon  { background: #FFF1DC; color: #7A4600; }
.ax__todo { border-left: 1px solid var(--ax-line); padding-left: 14px; font-size: 11.5px; }
.ax__todo b { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ax-ink-2); margin-bottom: 4px; }
.ax__todo li { position: relative; padding-left: 14px; }
.ax__todo li + li { margin-top: 2px; }
.ax__todo li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 7px; height: 7px; border-radius: 2px; border: 1px solid #A9A69C; }
.ax__note { padding: 9px 16px; font-size: 11px; color: var(--ax-ink-2); background: #F6F5F1; border-top: 1px solid var(--ax-line); text-align: center; }

/* Artemis's protocol viewer: the contents beside one section of the guidelines */
.pv__search { display: flex; align-items: center; gap: 6px; width: 150px; height: 26px; padding: 0 9px; border: 1px solid var(--ax-line); border-radius: 7px; background: #FBFBF9; font-size: 11.5px; color: var(--ax-ink-2); }
.pv__body { display: grid; grid-template-columns: 176px 1fr; background: #fff; }
/* the whole contents, as in Artemis, scrolled to the section: clipped to the page beside it
   and faded at both ends, so it reads as a list that carries on */
.pv__toc { position: relative; overflow: hidden; padding-top: 12px; border-right: 1px solid var(--ax-line); background: #FBFBF9; }
.pv__toc ol { position: absolute; inset: 34px 0 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 20px, #000 calc(100% - 40px), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 20px, #000 calc(100% - 40px), transparent 100%); }
.pv__toc small { display: block; padding: 0 14px 6px; font-size: 10px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ax-ink-2); }
.pv__toc li { padding: 3px 12px 3px 24px; font-size: 11.5px; line-height: 1.33; color: var(--ax-ink-2); }
.pv__toc .pv__part { padding: 7px 12px 3px 14px; font-weight: 600; color: var(--ax-ink); }
.pv__toc .pv__l3 { padding-left: 32px; font-size: 10.5px; }
.pv__toc .on { background: #fff; color: var(--ax-ink); font-weight: 600; box-shadow: inset 2px 0 0 var(--med); }
.pv__doc { padding: 16px 22px 22px; font-size: 13px; line-height: 1.6; }
.pv__title { padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--ax-line); }
.pv__title b { display: block; font-size: 14px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.35; }
.pv__title span { font-size: 11px; color: var(--ax-ink-2); }
.pv__doc h3 { font-size: 15.5px; font-weight: 650; letter-spacing: -0.012em; line-height: 1.35; }
.pv__doc p { margin-top: 8px; }
.pv__doc ul { display: grid; gap: 5px; margin-top: 8px; }
.pv__doc li { position: relative; padding-left: 15px; }
.pv__doc li::before { content: ""; position: absolute; left: 2px; top: 0.66em; width: 5px; height: 5px; border-radius: 50%; background: var(--ax-ink-2); }
@media (max-width: 560px) { .pv__body { grid-template-columns: 1fr; } .pv__toc { display: none; } .pv__search { width: 110px; } }
@media (max-width: 680px) {
  .ax__row { grid-template-columns: 1fr; gap: 8px; }
  .ax__state { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .ax__todo { border-left: 0; padding-left: 0; border-top: 1px dashed var(--ax-line); padding-top: 8px; }
  .ax__seg, .ax__who em { display: none; }
}

/* Signout: two people typing in the same note */
.so { background: #fff; padding: 18px 20px 20px; }
.so__label { display: flex; justify-content: space-between; gap: 12px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ax-ink-2); }
.so__label span + span { text-transform: none; letter-spacing: 0; font-weight: 400; }
.so__text { margin-top: 8px; font-size: 14px; line-height: 2.35; border: 1px solid var(--ax-line); border-radius: 10px; padding: 14px 16px; background: #FDFDFB; }
.caret { position: relative; display: inline-block; width: 2px; height: 1.2em; vertical-align: -0.25em; margin: 0 1px; border-radius: 1px; }
.caret::after { content: attr(data-who); position: absolute; left: 0; bottom: 100%; font-size: 9px; font-weight: 700; line-height: 1; color: #fff; padding: 2px 4px; border-radius: 4px 4px 4px 0; white-space: nowrap; background: inherit; }
.caret--a { background: #1F6FE5; }
.caret--b { background: #C2410C; }
.so__sys { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.so__sys div { border: 1px solid var(--ax-line); border-radius: 10px; padding: 10px 12px; font-size: 12px; }
.so__sys b { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ax-ink-2); margin-bottom: 2px; }
.so__event { display: inline-block; margin-top: 7px; font-size: 10.5px; padding: 1px 7px; border-radius: 5px; }
.so__event--worse  { background: #FDE7EB; color: #8A1734; }
.so__event--better { background: #DDF5EA; color: #00563A; }
.so__guide { margin-top: 12px; font-size: 12px; border-left: 3px solid var(--med); background: var(--med-tint); border-radius: 0 10px 10px 0; padding: 10px 13px; color: #5E1A1C; }
.so__guide b { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 2px; }
@media (max-width: 560px) { .so__sys { grid-template-columns: 1fr; } }

/* ── Cards (Things-like tiles) ────────────────────────────────── */

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: var(--wide); margin: clamp(48px, 6vw, 64px) auto 0; text-align: center; }
.cards--3 { grid-template-columns: repeat(3, 1fr); max-width: 900px; }
.card { background: var(--card); border-radius: var(--r-md); padding: 30px 22px 28px; }
.section--alt .card { background: var(--white); box-shadow: var(--sh-sm); }
.card svg { width: 52px; height: 52px; margin: 0 auto 18px; color: var(--text-2); }
.card h3 { font-size: 18px; font-weight: 650; letter-spacing: -0.012em; line-height: 1.3; }
.card p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.card .seen { margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--text-3); }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } .cards--3 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .cards--3 { grid-template-columns: 1fr; max-width: 440px; } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; max-width: 440px; } }

/* Who we've worked with: names, set quietly */
.clients { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 44px auto 0; max-width: 900px; }
.client { background: var(--white); border-radius: var(--r-md); padding: 20px 22px; box-shadow: var(--sh-sm); flex: 1 1 260px; max-width: 320px; }
.client b { display: block; font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.client span { display: block; margin-top: 3px; font-size: 14.5px; color: var(--text-2); }

/* ── Case study pages ─────────────────────────────────────────── */

.cs-hero { padding-top: clamp(64px, 8vw, 100px); text-align: center; }
.cs-hero .art { margin: clamp(52px, 6vw, 76px) auto 0; max-width: 1000px; }
.crumb { display: inline-block; margin-bottom: 34px; font-size: 15px; font-weight: 600; color: var(--text-3); }
.crumb:hover { color: var(--text); }
.crumb::before { content: "‹ "; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: var(--wide); margin: 0 auto; text-align: center; }
.fact { background: var(--card); border-radius: var(--r-md); padding: 22px 18px; }
.section--alt .fact { background: var(--white); box-shadow: var(--sh-sm); }
.fact dt { font-size: 13.5px; font-weight: 600; color: var(--text-3); }
.fact dd { margin-top: 6px; font-size: 16px; font-weight: 600; line-height: 1.4; letter-spacing: -0.008em; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 340px) { .facts { grid-template-columns: 1fr; } }

.feature .art { margin: clamp(48px, 6vw, 64px) auto 0; max-width: 900px; }
.feature .art--narrow { max-width: 720px; }
.feature .art--wide { max-width: var(--wide); }
.window picture { display: block; }
.fsplit.lab-lead { margin-top: clamp(48px, 6vw, 72px); }
.fsplit.lab-lead .headline { font-size: clamp(26px, 3vw, 34px); }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 48px; max-width: 960px; margin: clamp(48px, 6vw, 64px) auto 0; text-align: left; }
.tile h3 { font-size: 17.5px; font-weight: 650; letter-spacing: -0.012em; line-height: 1.3; }
.tile p { margin-top: 7px; font-size: 15.5px; line-height: 1.6; color: var(--text-2); }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; max-width: 440px; gap: 30px; } }

.numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 900px; margin: clamp(44px, 5vw, 56px) auto 0; }
.numbers b { display: block; font-size: clamp(46px, 6vw, 64px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.numbers span { display: block; margin: 12px auto 0; max-width: 18ch; font-size: 15.5px; line-height: 1.45; color: var(--text-2); }
@media (max-width: 640px) { .numbers { grid-template-columns: 1fr; gap: 40px; } }

.reads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: var(--wide); margin: clamp(44px, 5vw, 56px) auto 0; text-align: left; }
.read { background: var(--white); border-radius: var(--r-md); padding: 22px 20px 24px; box-shadow: var(--sh-sm); }
.read small { font-size: 13px; font-weight: 600; color: var(--edu); }
.read h3 { margin-top: 8px; font-size: 17px; font-weight: 650; line-height: 1.3; letter-spacing: -0.01em; }
.read p { margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
@media (max-width: 900px) { .reads { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .reads { grid-template-columns: 1fr; } }

.peaks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; max-width: 900px; margin: clamp(44px, 5vw, 56px) auto 0; align-items: end; }
.peak { display: flex; flex-direction: column; align-items: center; }
.peak i { display: block; width: 0; height: 0; border-left: var(--w) solid transparent; border-right: var(--w) solid transparent; border-bottom: var(--h) solid var(--c); }
.peak b { margin-top: 14px; font-size: 16px; font-weight: 650; }
.peak span { font-size: 13.5px; color: var(--text-3); }
@media (max-width: 560px) { .peaks { grid-template-columns: repeat(2, 1fr); row-gap: 28px; } }

.note { max-width: 40em; margin: 40px auto 0; font-size: 14px; line-height: 1.6; color: var(--text-3); }

.next { display: block; max-width: 640px; margin: 0 auto; padding: 44px 32px; border-radius: var(--r-lg); background: var(--white); box-shadow: var(--sh-md); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.next:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.next .kicker { margin: 0 0 16px; }
.next .appicon { margin-bottom: 18px; }
.next h2 { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.next p { margin: 10px auto 0; max-width: 28em; font-size: 16.5px; color: var(--text-2); }
.next .more { margin-top: 18px; }

/* ── Contact ──────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 28px; border-radius: var(--r-full);
  background: var(--red); color: #fff;
  font-size: 17px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 8px 22px rgba(224,54,60,0.25);
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--red-h); transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.contact-icon { width: 56px; height: 56px; margin: 0 auto 22px; color: var(--red); }

/* ── Footer ───────────────────────────────────────────────────── */

.footer { border-top: 1px solid var(--border); padding: 48px 0 56px; text-align: center; font-size: 14.5px; color: var(--text-3); }
.footer .brand { color: var(--text); }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin-top: 22px; font-weight: 600; }
.footer nav a:hover { color: var(--text); }
.footer p { margin-top: 18px; }
.footer p + p { margin-top: 4px; }

/* ── 404 ──────────────────────────────────────────────────────── */

.lost { min-height: 64vh; display: grid; place-items: center; text-align: center; padding-block: 96px; }

/* ── Motion: gentle, and only for those who want it ───────────── */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
  .hero > * , .cs-hero > .wrap > * { animation: rise-in .8s var(--ease) both; }
  .hero > :nth-child(2), .cs-hero > .wrap > :nth-child(2) { animation-delay: .06s; }
  .hero > :nth-child(3), .cs-hero > .wrap > :nth-child(3) { animation-delay: .12s; }
  .hero > :nth-child(4), .cs-hero > .wrap > :nth-child(4) { animation-delay: .18s; }
  .hero > :nth-child(n+5), .cs-hero > .wrap > :nth-child(n+5) { animation-delay: .24s; }
}
@keyframes rise    { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .menu, .skip { display: none; }
  .section { padding-block: 40px; }
}

/* ── Case study extras ────────────────────────────────────────── */

.section--short { padding-block: clamp(48px, 6vw, 72px); }
.window--dark { background: #0E0D0B; box-shadow: 0 0 0 1px rgba(0,0,0,0.5), 0 10px 30px rgba(0,0,0,0.25), 0 40px 90px rgba(0,0,0,0.30); }
.window--dark .window__bar { background: #1F1D1A; border-bottom-color: #2C2925; }
.window--dark .window__bar i { background: #3A3631; }
.window--dark .window__bar span { background: #2C2925; color: #8A837A; }
.rounded img, img.rounded { border-radius: 12px; box-shadow: var(--sh-win); }

/* A process, left to right */
.pipeline { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 8px; max-width: 900px; margin: 44px auto 0; }
.pipeline li { background: var(--white); border-radius: var(--r-md); box-shadow: var(--sh-sm); padding: 16px 20px; text-align: left; min-width: 170px; }
.section--alt .pipeline li { background: var(--white); }
.pipeline b { display: block; font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.pipeline span { display: block; margin-top: 2px; font-size: 13.5px; color: var(--text-3); }
.pipeline .to { background: none; box-shadow: none; padding: 0 4px; min-width: 0; color: var(--text-3); font-size: 20px; }
@media (max-width: 760px) { .pipeline { flex-direction: column; } .pipeline li { width: min(320px, 100%); text-align: center; } .pipeline .to { transform: rotate(90deg); } }

/* Oriel: the child's device and the parent's, side by side */
.duo { display: flex; justify-content: center; align-items: flex-end; gap: 28px; max-width: 860px; margin-inline: auto; text-align: left; }
.device { background: #fff; border-radius: 22px; box-shadow: var(--sh-lg), 0 0 0 1px rgba(23,63,148,0.06); padding: 18px; color: #2A2F3A; font-size: 14px; line-height: 1.5; }
.device--tablet { flex: 1 1 480px; max-width: 500px; }
.device--phone { position: relative; flex: 0 0 280px; }
.device__who { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #6B7280; }
.device__card { margin-top: 10px; border: 1px solid #E6E9F0; border-radius: 14px; padding: 16px; }
.device__card h4 { font-size: 16px; font-weight: 650; color: #111827; }
.device__card small { display: block; margin-top: 2px; font-size: 13px; color: #6B7280; }
.device__input { margin-top: 12px; border: 1.5px solid #9DB9F4; border-radius: 10px; padding: 10px 12px; min-height: 96px; background: #FAFCFF; }
.device__input::after { content: ""; display: inline-block; width: 1.5px; height: 1.05em; background: var(--oriel); vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
.device--phone .live__tag { top: -12px; }
@media (max-width: 760px) { .duo { flex-direction: column; align-items: center; } .device--tablet, .device--phone { flex: none; width: min(440px, 100%); } }

/* Artemis: a medicine's history */
.medlog { max-width: 760px; margin-inline: auto; }
.medlog .ax__row { grid-template-columns: 112px 1fr; }
.medlog .when { font-size: 11.5px; color: var(--ax-ink-2); font-variant-numeric: tabular-nums; }
.medlog .what b { font-weight: 650; }
.medlog .what .chg { color: var(--ax-ink-2); }
.medlog .why { margin-top: 3px; font-size: 11.5px; color: var(--ax-ink-2); }
.medlog .kind { display: inline-block; margin-right: 6px; font-size: 10.5px; font-weight: 600; padding: 0 7px; border-radius: 5px; }
.kind--change { background: #E3ECFD; color: #173F94; }
.kind--stop   { background: #F2F1ED; color: #4A4840; }
.kind--start  { background: #DDF5EA; color: #00563A; }
@media (max-width: 680px) { .medlog .ax__row { grid-template-columns: 1fr; gap: 2px; } }

/* Artemis: the protocol, quoted in the chart */
.guides { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 860px; margin: 44px auto 0; text-align: left; }
.guide { background: var(--white); border-radius: var(--r-md); box-shadow: var(--sh-sm); padding: 18px 20px; border-left: 4px solid var(--med); }
.guide small { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--med); }
.guide p { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.guide p b { color: var(--text); font-weight: 600; }
@media (max-width: 680px) { .guides { grid-template-columns: 1fr; } }

/* Six reading strands: plain tiles with a coloured mark */
.strands .card h3::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 2px; background: var(--c, var(--edu)); margin: 0 auto 14px; }

.cta-line { margin-top: 44px; font-size: 16.5px; color: var(--text-2); }
.cta-line a { color: var(--red); font-weight: 600; }
.cta-line a:hover { color: var(--red-h); }
.duo .live { position: relative; right: auto; bottom: auto; transform: none; width: auto; }

/* An image that runs off its right edge, faded rather than cut */
.paper { background: #fff; border-radius: 12px; box-shadow: var(--sh-win); overflow: hidden; }
.paper img { -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent 100%); mask-image: linear-gradient(90deg, #000 80%, transparent 100%); }

/* ═══ Home, second pass: a short path from attention to a conversation ═══ */

/* Two columns: words beside a photograph */
.split { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(40px, 6vw, 88px); align-items: center; max-width: var(--wide); margin: 0 auto; text-align: left; }
.split .intro { margin-left: 0; margin-right: 0; max-width: 34em; }
.split .links { justify-content: flex-start; }
.split__photo { position: relative; margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-alt); }
/* The photographs are toned to the page (black to ink, white to the paper they sit on),
   so they're set into it rather than boxed on it: no shadow, just a hairline. */
.split__photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(28,25,23,0.10); pointer-events: none; }
.split__photo img { width: 100%; height: 100%; object-fit: cover; }
.split--photo-left { grid-template-columns: 0.92fr 1.08fr; }
.split--photo-left .split__photo { order: -1; }
@media (max-width: 860px) {
  .split, .split--photo-left { grid-template-columns: 1fr; gap: 40px; }
  .split--photo-left .split__photo { order: 0; }
  .split__photo { aspect-ratio: 4 / 3; }
}

/* The opening */
.hero--split { padding-top: clamp(40px, 6vw, 76px); padding-bottom: clamp(64px, 8vw, 104px); text-align: left; }
.hero--split .title { font-size: clamp(40px, 4.9vw, 60px); }
.hero--split .split { grid-template-columns: 1.2fr 0.8fr; gap: clamp(40px, 5vw, 72px); }
@media (max-width: 860px) { .hero--split .split { grid-template-columns: 1fr; } }
.hero--split .split__photo img { object-position: 50% 30%; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-top: 34px; }
.proof { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--border); max-width: 34em; }
.proof__label { font-size: 13.5px; font-weight: 600; color: var(--text-3); }
.proof ul { display: grid; gap: 18px; margin-top: 12px; }   /* one to a row, each given the same room */
.proof b { display: block; font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.proof span { display: block; margin-top: 1px; font-size: 14px; color: var(--text-2); }
.proof .proof__us { font-style: italic; }   /* the one line that speaks to the reader */
@media (max-width: 860px) {
  .hero--split .split__photo { aspect-ratio: 4 / 3; }
  .hero--split .split__photo img { object-position: 50% 22%; }
}

/* The four products, as cards */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: var(--wide); margin: clamp(44px, 5vw, 60px) auto 0; text-align: left; }
.work-card {
  display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-sm), 0 0 0 1px rgba(0,0,0,0.035);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.work-card__art {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint);
  display: grid; place-items: center;
}
/* each product's window, whole, centred, with room around it */
.work-card__art img {
  width: var(--shot, 84%); height: auto;
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06), 0 12px 30px rgba(0,0,0,0.16);
  transition: transform .45s var(--ease);
}
.work-card:hover .work-card__art img { transform: translateY(-5px); }
.work-card__art--bare img { box-shadow: none; border-radius: 0; filter: drop-shadow(0 12px 22px rgba(70,40,0,0.24)); }
.work-card__art--cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; }
.work-card:hover .work-card__art--cover img { transform: scale(1.025); }
.work-card__body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 24px 28px 28px; }
.work-card__head { display: flex; align-items: center; gap: 14px; }
.work-card__head h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.work-card__head .kicker { margin: 3px 0 0; font-size: 13.5px; }
.work-card__desc { font-size: 16px; line-height: 1.55; color: var(--text-2); }
.work-card .more { margin-top: auto; padding-top: 4px; font-size: 16.5px; }
.work-card--harvestry { --tint: linear-gradient(160deg, #FBF1DE 0%, #F0DCB4 100%); --shot: 76%; }
.work-card--oriel     { --tint: var(--edu-tint); }
.work-card--hedgebook { --tint: radial-gradient(120% 100% at 50% 0%, #22302C 0%, #121614 70%); --shot: 88%; }
.work-card--hedgebook .work-card__art img { box-shadow: 0 0 0 1px rgba(255,255,255,0.07), 0 16px 40px rgba(0,0,0,0.5); }
.work-card--artemis   { --tint: linear-gradient(160deg, #FBEFED 0%, #F2D6D2 100%); --shot: 88%; }
@media (max-width: 780px) { .work-grid { grid-template-columns: 1fr; max-width: 540px; } }

/* What We Do cards point at the work that shows it */
.card .seen a { color: var(--red); }
.card .seen a:hover { color: var(--red-h); }
a.card { display: block; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }

/* Our story, beside the founder */
.signature { display: flex; align-items: center; gap: 14px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border); max-width: 34em; }
.signature img { width: 34px; height: 34px; }
.signature b { display: block; font-size: 16px; font-weight: 650; }
.signature span { display: block; font-size: 14px; color: var(--text-3); }
.facts-inline { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.facts-inline span { font-size: 13.5px; font-weight: 600; color: var(--text-2); background: var(--white); border-radius: var(--r-full); padding: 6px 14px; box-shadow: var(--sh-sm); }

/* What happens when you write */
.steps-list { margin-top: 30px; display: grid; gap: 18px; counter-reset: step; max-width: 32em; }
.steps-list li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.steps-list li::before {
  counter-increment: step; content: counter(step);
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--med-tint); color: var(--med);
  font-size: 15px; font-weight: 700;
}
.steps-list b { display: block; font-size: 17px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.35; padding-top: 4px; }
.steps-list span { display: block; margin-top: 2px; font-size: 15.5px; line-height: 1.55; color: var(--text-2); }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 34px; }
.contact-actions small { font-size: 14.5px; color: var(--text-3); }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .progress { animation: progress linear both; animation-timeline: scroll(root); }
  }
}
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* phones: shorter cards, so What We Do and Our Work don't become a long column */
@media (max-width: 560px) {
  .cards .card { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; text-align: left; padding: 20px 20px 22px; }
  .cards .card svg { grid-row: span 3; width: 34px; height: 34px; margin: 2px 0 0; }
  .cards .card p { margin-top: 4px; }
  .cards .card .seen { margin-top: 8px; }
  .work-card__body { padding: 20px 22px 24px; }
}

/* The three fields in the hero: one hue each, same lightness, so they read as a set */
.hl { font-weight: 600; color: var(--hl-ink); white-space: nowrap;
      background: var(--hl-bg); border-radius: 5px; padding: 1px 5px; margin: 0 -1px; }
.hl--medicine  { --hl-ink: var(--med); --hl-bg: var(--med-tint); }
.hl--education { --hl-ink: var(--edu); --hl-bg: var(--edu-tint); }
.hl--finance   { --hl-ink: var(--fin); --hl-bg: var(--fin-tint); }
.hl-text .hl { background: none; }

/* ═══ Case studies, second pass: two columns, so the reader gets more per screen ═══ */

.cs-hero { text-align: left; }
.cs-hero .crumb { margin-bottom: 28px; }
.cs-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: end; max-width: var(--wide); margin: 0 auto; }
.cs-title { display: flex; align-items: center; gap: 20px; }
.cs-title .appicon { width: 84px; height: 84px; border-radius: 19px; margin: 0; flex-shrink: 0; }
.cs-title .kicker { margin-top: 6px; }
.cs-head .intro { margin: 24px 0 0; max-width: 34em; }
.cs-head .links { justify-content: flex-start; }
.facts--stack { grid-template-columns: 1fr 1fr; gap: 10px; max-width: none; margin: 0; text-align: left; }
.facts--stack .fact { padding: 16px 18px; }
.facts--stack dd { font-size: 15px; }
.cs-hero .art { margin-top: clamp(40px, 5vw, 60px); }
@media (max-width: 900px) {
  .cs-head { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 520px) {
  .cs-title .appicon { width: 64px; height: 64px; border-radius: 15px; }
}

/* A feature: words on one side, the picture on the other, alternating */
.fsplit { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 5vw, 72px); align-items: center; max-width: var(--wide); margin: 0 auto; text-align: left; }
.fsplit--flip { grid-template-columns: 7fr 5fr; }
.fsplit--flip .fsplit__text { order: 2; }
.fsplit .headline { font-size: clamp(28px, 3.3vw, 38px); }
.fsplit .intro { margin-left: 0; margin-right: 0; font-size: 18px; }
.fsplit .art, .fsplit .art--narrow { margin: 0; max-width: none; }
.fsplit .numbers { margin: 0; grid-template-columns: 1fr; gap: 26px; text-align: left; }
.fsplit .numbers span { margin-left: 0; max-width: none; }
.fsplit .note { margin: 20px 0 0; }
@media (max-width: 900px) {
  .fsplit, .fsplit--flip { grid-template-columns: 1fr; gap: 36px; }
  .fsplit--flip .fsplit__text { order: 0; }
}

/* Three tools in the lab, each with what it reads */
.lab { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: var(--wide); margin: clamp(40px, 5vw, 56px) auto 0; text-align: left; }
.lab__tool { background: var(--white); border-radius: var(--r-md); box-shadow: var(--sh-sm); padding: 24px 24px 26px; border-top: 3px solid var(--red); }
.lab__tool small { font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red-h); }
.lab__tool h3 { margin-top: 8px; font-size: 19px; font-weight: 650; letter-spacing: -0.015em; }
.lab__tool p { margin-top: 8px; font-size: 15px; line-height: 1.58; color: var(--text-2); }
.lab__tool ul { margin-top: 12px; display: grid; gap: 6px; }
.lab__tool li { position: relative; padding-left: 16px; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.lab__tool li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 2px; background: var(--red); }
@media (max-width: 860px) { .lab { grid-template-columns: 1fr; max-width: 560px; } }

/* A method, set out like a trial protocol */
.protocol { max-width: 900px; margin: clamp(40px, 5vw, 56px) auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; text-align: left; border-top: 2px solid var(--text); }
.protocol li { padding: 18px 18px 0 0; }
.protocol li + li { padding-left: 18px; border-left: 1px solid var(--border); }
.protocol b { display: block; font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.protocol span { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
@media (max-width: 760px) { .protocol { grid-template-columns: 1fr 1fr; row-gap: 22px; } .protocol li:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 460px) { .protocol { grid-template-columns: 1fr; } .protocol li + li { border-left: 0; padding-left: 0; } }

/* visuals that sit beside their words in a two-column feature */
.fsplit .cards, .fsplit .cards--3 { grid-template-columns: 1fr 1fr; margin: 0; max-width: none; }
.fsplit .reads { grid-template-columns: 1fr 1fr; margin: 0; }
.fsplit .peaks { margin: 0; }
.fsplit .guides { margin: 0; }
.fsplit .pipeline { flex-direction: column; align-items: stretch; margin: 0; }
.fsplit .pipeline li { text-align: left; }
.fsplit .pipeline .to { align-self: center; transform: rotate(90deg); padding: 0; line-height: 1; }
.fsplit__text .intro + .intro { margin-top: 14px; }
@media (max-width: 520px) { .fsplit .cards, .fsplit .reads, .fsplit .guides { grid-template-columns: 1fr; } }

/* A process as a staircase: each step a solid card, stepping down and across */
.stair { display: grid; gap: 26px; }
.stair li {
  position: relative;
  display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start;
  width: 78%; margin-left: calc(var(--i) * 7.33%);
  background: var(--white); border-radius: var(--r-md); box-shadow: var(--sh-md);
  padding: 20px 22px 22px;
}
.stair li:not(:last-child)::after {
  content: ""; position: absolute; left: 39px; top: 100%;
  width: 22px; height: 26px;
  border-left: 2px solid var(--edu); border-bottom: 2px solid var(--edu); border-bottom-left-radius: 10px;
  opacity: .55;
}
.stair__n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--edu-tint); color: var(--edu); font-weight: 700; font-size: 16px; }
.stair b { display: block; font-size: 18px; font-weight: 650; letter-spacing: -0.012em; line-height: 1.3; padding-top: 2px; }
.stair p { margin-top: 4px; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.stair small { display: inline-block; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--edu); background: var(--edu-tint); padding: 2px 10px; border-radius: var(--r-full); }
@media (max-width: 900px) { .stair li { width: 88%; margin-left: calc(var(--i) * 4%); } }
@media (max-width: 520px) { .stair li { width: 100%; margin-left: 0; } .stair li:not(:last-child)::after { width: 2px; border-bottom: 0; border-radius: 0; } }

/* Oriel's own climb scenes: the four real mountains, with the climber on each */
.climb { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.climb figure { margin: 0; background: var(--white); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-md); }
.climb img { width: 100%; height: auto; display: block; }
.climb figcaption { padding: 12px 16px 14px; }
.climb b { display: block; font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.climb span { display: block; margin-top: 2px; font-size: 13.5px; color: var(--text-3); }
@media (max-width: 420px) { .climb { grid-template-columns: 1fr; } }
.section > .wrap > .climb { max-width: 1000px; margin: clamp(40px, 5vw, 56px) auto 0; gap: 20px; text-align: left; }
.section > .wrap > .climb + .intro { margin-top: 36px; }


/* ═══ Photographs that hold one side of their row and fade into it ═══
   The photo runs to the edge of the screen and the full height of its
   section; its inner edge dissolves into the section's own background,
   so the words sit on clean paper and the picture rises out of it. */
.bleed-row { position: relative; overflow: hidden; }
.bleed-row > .wrap { position: relative; z-index: 1; }
.bleed { position: absolute; z-index: 0; top: 0; bottom: 0; right: 0; width: 54%; margin: 0; }
.bleed img {
  width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 70% 35%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.06) 8%, rgba(0,0,0,.22) 17%, rgba(0,0,0,.5) 27%, rgba(0,0,0,.8) 37%, #000 47%);
          mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.06) 8%, rgba(0,0,0,.22) 17%, rgba(0,0,0,.5) 27%, rgba(0,0,0,.8) 37%, #000 47%);
}
.bleed--left { right: auto; left: 0; }
.bleed--left img {
  -webkit-mask-image: linear-gradient(to left, transparent 0%, rgba(0,0,0,.06) 8%, rgba(0,0,0,.22) 17%, rgba(0,0,0,.5) 27%, rgba(0,0,0,.8) 37%, #000 47%);
          mask-image: linear-gradient(to left, transparent 0%, rgba(0,0,0,.06) 8%, rgba(0,0,0,.22) 17%, rgba(0,0,0,.5) 27%, rgba(0,0,0,.8) 37%, #000 47%);
}
.bleed-row .split { grid-template-columns: 1fr 1fr; min-height: 560px; }
.bleed-row .split > :first-child { grid-column: 1; max-width: 520px; }
.bleed-row .split--bleed-left > :first-child { grid-column: 2; justify-self: end; }
.hero--split.bleed-row { padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px); }
.hero--split.bleed-row .split { min-height: clamp(520px, 64vh, 680px); grid-template-columns: 1fr 1fr; }

@media (max-width: 860px) {
  .bleed-row .split, .hero--split.bleed-row .split { grid-template-columns: 1fr; min-height: 0; }
  .bleed-row .split > :first-child, .bleed-row .split--bleed-left > :first-child { grid-column: 1; justify-self: stretch; max-width: none; }
  .bleed, .bleed--left { position: relative; width: 100%; height: 72vw; max-height: 460px; margin: 28px 0 calc(-1 * var(--py)); }
  .hero--split.bleed-row .bleed { margin-bottom: calc(-1 * clamp(56px, 7vw, 88px)); }
  .bleed img, .bleed--left img {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.35) 7%, rgba(0,0,0,.8) 15%, #000 22%);
            mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.35) 7%, rgba(0,0,0,.8) 15%, #000 22%);
  }
}
/* The hero's subject sits nearer the middle of her frame, so her fade finishes sooner,
   over the blurred background, and her face stays fully solid. */
@media (min-width: 861px) {
  /* A little wider, so the fade can be long and gentle; and angled, so it reaches
     further left at the bottom than at the top. Placed so her face stays solid and
     the faded edge never reaches the words. */
  .hero--split .bleed { width: 60%; }
  .hero--split .bleed img {
    /* a gentle slant, finished before her hair and face; a short fade along the
       bottom-left corner only, so that corner dissolves while the right side runs solid
       to the bottom of the section;
       and a guard that keeps the photo fully transparent at its own left edge,
       however tall the section is */
    -webkit-mask-image:
      linear-gradient(100deg, transparent 8%, rgba(0,0,0,.08) 13%, rgba(0,0,0,.26) 19%, rgba(0,0,0,.54) 25%, rgba(0,0,0,.82) 31%, #000 36%),
      radial-gradient(ellipse 62% 55% at 0% 100%, transparent 30%, rgba(0,0,0,.22) 48%, rgba(0,0,0,.58) 66%, rgba(0,0,0,.88) 84%, #000 100%),
      linear-gradient(to right, transparent 0%, rgba(0,0,0,.12) 6%, rgba(0,0,0,.42) 12%, rgba(0,0,0,.8) 18%, #000 24%);
    -webkit-mask-composite: source-in;
            mask-image:
      linear-gradient(100deg, transparent 8%, rgba(0,0,0,.08) 13%, rgba(0,0,0,.26) 19%, rgba(0,0,0,.54) 25%, rgba(0,0,0,.82) 31%, #000 36%),
      radial-gradient(ellipse 62% 55% at 0% 100%, transparent 30%, rgba(0,0,0,.22) 48%, rgba(0,0,0,.58) 66%, rgba(0,0,0,.88) 84%, #000 100%),
      linear-gradient(to right, transparent 0%, rgba(0,0,0,.12) 6%, rgba(0,0,0,.42) 12%, rgba(0,0,0,.8) 18%, #000 24%);
            mask-composite: intersect;
  }
}
