/* Colours and type come from the Creative RCM brand guide. */

@font-face { font-family: Figtree; font-weight: 400; font-display: swap; src: url("/assets/fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: Figtree; font-weight: 500; font-display: swap; src: url("/assets/fonts/figtree-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: Figtree; font-weight: 600; font-display: swap; src: url("/assets/fonts/figtree-latin-600-normal.woff2") format("woff2"); }

:root {
  --page: #FAF9F5;
  --band: #F1EFE8;
  --field: #FFFFFF;
  --text: #2C2C2A;
  --text-soft: #5F5E5A;
  --line: #B4B2A9;
  --accent: #185FA5;
  --accent-hover: #124C85;
  --on-accent: #FFFFFF;
  --robot: #185FA5;
  --person: #2C2C2A;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #2C2C2A;
    --band: #242422;
    --field: #1E1E1C;
    --text: #F1EFE8;
    --text-soft: #B4B2A9;
    --line: #5F5E5A;
    --accent: #85B7EB;
    --accent-hover: #A5CBF2;
    --on-accent: #1E1E1C;
    --robot: #85B7EB;
    --person: #F1EFE8;
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: Figtree, system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ol { margin: 0; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
p + p { margin-top: 1rem; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.narrow { max-width: 44rem; }
.narrow h2 { margin-bottom: 1.25rem; }

.skip { position: absolute; left: -999rem; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--field); padding: 0.5rem 1rem; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: var(--page); border-bottom: 1px solid var(--line); }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 0.75rem; }
.top__logo img { height: 2.25rem; width: auto; }
.top__nav { display: flex; align-items: center; gap: 1.5rem; font-size: 1rem; font-weight: 500; }
.top__nav a { color: var(--text); text-decoration: none; }
.top__nav a:hover { text-decoration: underline; }
.top__nav .top__cta { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border: 1.5px solid var(--text);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--band); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* Hero */
.hero { padding-block: clamp(3rem, 9vw, 7rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(12rem, 28vw, 21rem); align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.hero__title { font-size: clamp(2.6rem, 1rem + 7vw, 5.5rem); font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.hero__title span { display: block; }
.hero__robot { color: var(--robot); }
.hero__human { color: var(--person); }
.hero__lede { max-width: 34rem; margin-top: 1.75rem; font-size: 1.3rem; line-height: 1.5; color: var(--text-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.ring { width: 100%; height: auto; }
.ring path { fill: none; stroke-width: 10; }
.ring__seg { stroke: var(--robot); }
.ring__stroke { stroke: var(--person); stroke-dasharray: 100; }

@media (prefers-reduced-motion: no-preference) {
  .ring__seg { opacity: 0; animation: seg 0.01s linear forwards; }
  .ring__seg--1 { animation-delay: 0.3s; }
  .ring__seg--2 { animation-delay: 0.6s; }
  .ring__seg--3 { animation-delay: 0.9s; }
  .ring__stroke { stroke-dashoffset: 100; animation: stroke 0.9s cubic-bezier(0.4, 0, 0.2, 1) 1.25s forwards; }
}
@keyframes seg { to { opacity: 1; } }
@keyframes stroke { to { stroke-dashoffset: 0; } }

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--band { background: var(--band); }

.work { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2.5rem; margin-top: 2.5rem; }
@media (min-width: 44rem) { .work--pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.work article { border-top: 2px solid var(--text); padding-top: 1.25rem; }
.work h3 { margin-bottom: 0.6rem; }
.work p { color: var(--text-soft); }

/* Who does what */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split__intro h2 { margin-bottom: 1.25rem; }
.split__intro p { color: var(--text-soft); }
.key { display: flex; gap: 1.5rem; margin-top: 1.75rem; font-size: 1rem; font-weight: 500; }
.key__item { display: inline-flex; align-items: center; gap: 0.6rem; }
.bar { display: inline-block; width: 6px; height: 1.6rem; }
.bar--person { background: var(--person); }
.bar--robot { background: repeating-linear-gradient(to bottom, var(--robot) 0 6px, transparent 6px 9px); }

.steps { list-style: none; padding: 0; display: grid; gap: 1.75rem; }
.step { position: relative; padding-left: 1.75rem; }
.step::before { content: ""; position: absolute; left: 0; top: 0.3rem; bottom: 0.3rem; width: 6px; }
.step--person::before { background: var(--person); }
.step--robot::before { background: repeating-linear-gradient(to bottom, var(--robot) 0 10px, transparent 10px 15px); }
.step__who { font-size: 0.95rem; font-weight: 600; }
.step--robot .step__who { color: var(--robot); }
.step h3 { margin-block: 0.1rem 0.4rem; }
.step p:last-child { color: var(--text-soft); }

/* Draftyard */
.draftyard { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.draftyard h2 { margin-bottom: 1rem; }
.draftyard p { max-width: 38rem; color: var(--text-soft); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact h2 { margin-bottom: 1.25rem; }
.contact > div p { color: var(--text-soft); }
.form { display: grid; gap: 0.4rem; }
.form label { font-size: 1rem; font-weight: 500; margin-top: 0.75rem; }
.form label:first-of-type { margin-top: 0; }
.form input, .form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  color: var(--text);
  font: inherit;
}
.form input:hover, .form textarea:hover { border-color: var(--text-soft); }
.form textarea { resize: vertical; }
.form .btn { justify-self: start; margin-top: 1.25rem; }
.form__trap { position: absolute; left: -999rem; }

/* Thanks page */
.thanks { min-height: 60vh; display: grid; align-content: center; gap: 1.25rem; padding-block: 4rem; }
.thanks h1 { font-size: clamp(2.25rem, 1rem + 5vw, 3.5rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }
.thanks p { max-width: 34rem; color: var(--text-soft); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 2rem; font-size: 1rem; color: var(--text-soft); }
.foot__row { display: flex; align-items: center; gap: 1rem; }

@media (max-width: 52rem) {
  .hero__grid, .split, .contact, .draftyard { grid-template-columns: minmax(0, 1fr); }
  .ring { width: 9rem; order: -1; }
}

/* ---- Multi-page additions ---- */

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
figure { margin: 0; }

.top__nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.4em; }

.page-head { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem); }
.page-head h1 { font-size: clamp(2.4rem, 1.2rem + 5vw, 4.25rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.025em; }
.lede { max-width: 40rem; margin-top: 1.25rem; font-size: 1.3rem; line-height: 1.5; color: var(--text-soft); }
.crumb { margin-bottom: 0.75rem; font-size: 1rem; font-weight: 500; }
.section--flush { padding-top: 0; }
/* A project page's opening: the way back, then one wide photograph with the client's logo and the introduction on its quiet side */
.page-top { padding-block: clamp(1rem, 3vw, 1.75rem) 0; }
.page-top .crumb { margin-bottom: 0.9rem; }
.phero { position: relative; overflow: hidden; border-radius: 20px; background: #070c15; color: #fff; }
.phero__photo { display: block; width: 100%; height: auto; }
.phero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(7 12 21 / 0.9), rgb(7 12 21 / 0.62) 30%, rgb(7 12 21 / 0) 52%); }
.phero__text { position: absolute; z-index: 1; inset: 0 auto 0 0; display: flex; flex-direction: column; justify-content: center; width: 41%; padding-left: 5%; }
.phero__text h1 { margin: 0; }
.phero__text h1 img { display: block; width: 78%; height: auto; }
.phero__title { font-size: clamp(1.9rem, 0.8rem + 3.6vw, 3.6rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.025em; text-wrap: balance; }
.cycle--small { display: block; width: min(11rem, 60%); margin-top: 1.75rem; }
.phero__text p { margin-top: clamp(1rem, 2.4vw, 2rem); font-size: clamp(1rem, 0.55rem + 1.05vw, 1.4rem); font-weight: 500; line-height: 1.45; text-wrap: pretty; }
.phero--light { background: #F4F1EA; color: #2C2C2A; }
.phero--light::after { background: linear-gradient(90deg, rgb(255 255 255 / 0.95), rgb(255 255 255 / 0.8) 32%, rgb(255 255 255 / 0) 54%); }
@media (prefers-reduced-motion: no-preference) {
  .phero__photo { animation: phero-drift 14s ease-out both; transform-origin: 70% 55%; }
  .phero__text > * { animation: phero-rise 0.7s ease-out both; }
  .phero__text p { animation-delay: 0.25s; }
}
@keyframes phero-drift { from { transform: scale(1.07); } to { transform: scale(1); } }
@keyframes phero-rise { from { opacity: 0; transform: translateY(0.75rem); } to { opacity: 1; transform: none; } }
@media (max-width: 52rem) {
  .phero__photo { aspect-ratio: 5 / 4; object-fit: cover; object-position: 78% 50%; }
  .phero::after { inset: 0 0 auto 0; aspect-ratio: 5 / 4; background: linear-gradient(180deg, rgb(7 12 21 / 0) 62%, #070c15); }
  .phero--light::after { background: linear-gradient(180deg, rgb(244 241 234 / 0) 62%, #F4F1EA); }
  .phero__text { position: relative; inset: auto; width: auto; padding: 0.25rem 1.25rem 1.5rem; margin-top: 0; }
  .phero__text h1 img { width: min(13rem, 62%); }
  .phero__text p { font-size: 1.1rem; }
}
.after { margin-top: 2rem; }

/* Drawings */
:root {
  --ill-sky: #85B7EB; --ill-pale: #DCE9F6;
  --dy-hull: #0F6E56; --dy-stripe: #5DCAA5; --dy-stone: #888780; --dy-pebble: #B4B2A9; --dy-graphite: #5F5E5A; --dy-paper: #F1EFE8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ill-sky: #185FA5; --ill-pale: #34485E;
    --dy-hull: #5DCAA5; --dy-stripe: #0F6E56; --dy-pebble: #5F5E5A; --dy-graphite: #B4B2A9; --dy-paper: #2C2C2A;
  }
}
.ill { width: 100%; height: auto; }
.f-ink { fill: var(--person); } .f-blue { fill: var(--robot); } .f-sky { fill: var(--ill-sky); } .f-pale { fill: var(--ill-pale); }
.f-soft { fill: var(--line); } .f-surface { fill: var(--field); } .f-band { fill: var(--band); }
.f-green { fill: var(--dy-hull); } .f-sprout { fill: var(--dy-stripe); } .f-pebble { fill: var(--dy-pebble); }
.f-water { fill: color-mix(in srgb, #5DCAA5 28%, transparent); }
.s-ink { stroke: var(--person); } .s-blue { stroke: var(--robot); } .s-soft { stroke: var(--line); } .s-on { stroke: var(--on-accent); }
.s-stone { stroke: var(--dy-stone); } .s-sprout { stroke: #5DCAA5; } .s-graphite { stroke: var(--dy-graphite); } .s-paper { stroke: var(--dy-paper); }

.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2.5rem; margin-top: 2.5rem; }
.trio .ill { max-width: 15rem; }
.trio figcaption { margin-top: 1rem; color: var(--text-soft); }
.trio figcaption strong { display: block; color: var(--text); font-weight: 600; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 2rem; }
h2 + .cards { margin-top: 2.5rem; }
.card { display: block; padding: 1rem 1rem 1.5rem; border: 1.5px solid var(--line); border-radius: 16px; background: var(--field); color: var(--text); text-decoration: none; }
.card:hover { border-color: var(--text); }
.card h2, .card h3 { margin: 1.25rem 0.5rem 0.4rem; font-size: 1.5rem; }
.card p { margin-inline: 0.5rem; color: var(--text-soft); }
/* Project pictures: a photograph with the client's logo over the quiet side of it */
.pshot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; background: var(--band); }
.pshot__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pshot::after { content: ""; position: absolute; inset: 0; }
.pshot--teamq::after { background: linear-gradient(90deg, rgb(8 14 24 / 0.82), rgb(8 14 24 / 0.45) 45%, rgb(8 14 24 / 0) 72%); }
.pshot--rgc::after { background: linear-gradient(90deg, rgb(255 255 255 / 0.94), rgb(255 255 255 / 0.8) 42%, rgb(255 255 255 / 0) 70%); }
.pshot__logo { position: absolute; z-index: 1; left: 7%; top: 50%; width: 44%; height: auto; transform: translateY(-50%); }
.card--wide { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem; align-items: center; padding: 1.5rem; }

.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.feature h2 { margin-block: 1.5rem 1rem; }
.feature p { color: var(--text-soft); }
.feature .btn { margin-top: 0.75rem; }
.feature__logo { height: 2.5rem; width: auto; }
.feature__logo--big { height: clamp(3rem, 8vw, 4.5rem); }
[data-dark] { display: none; }
@media (prefers-color-scheme: dark) { [data-light] { display: none; } [data-dark] { display: block; } }

/* Two columns and prose */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.two--center { align-items: center; }
.prose h2 { margin-bottom: 1.25rem; }
.prose p { color: var(--text-soft); }
.plain { margin: 0; padding: 0; list-style: none; }
.plain li { padding-block: 0.8rem; border-top: 1px solid var(--line); }
.plain li:last-child { border-bottom: 1px solid var(--line); }

.shot { padding: clamp(0.75rem, 3vw, 2rem); border-radius: 16px; background: var(--band); }
.shot .ill { max-width: 44rem; margin-inline: auto; }
.shot figcaption { margin-top: 1rem; text-align: center; font-size: 1rem; color: var(--text-soft); }
.shot--plain { padding-bottom: 0; overflow: hidden; }
.shot--plain .ill { max-width: none; }

/* Project pages: a list of qualities, feature rows with a screenshot, and the kinds of team */
.prose--lead { max-width: 44rem; }
.prose h3 { margin-bottom: 0.5rem; }
.prose p + h3 { margin-top: 2rem; }
.section--tight { padding-top: clamp(2rem, 4vw, 3rem); }
.section--close { padding-bottom: clamp(2rem, 4vw, 3rem); }
.section--close + .section { padding-top: clamp(2.5rem, 5vw, 3.5rem); }
/* The six intangibles: a photograph for each, with its name and a line about it over the dark foot of the picture */
.six { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 9fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.qcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; counter-reset: q; }
.qcard { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 14px; background: #101820; color: #F1EFE8; counter-increment: q; }
.qcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.qcard::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgb(12 20 30 / 0) 30%, rgb(12 20 30 / 0.78) 62%, rgb(12 20 30 / 0.96)); }
.qcard::after { content: "0" counter(q); position: absolute; z-index: 2; top: 0.8rem; left: 0.9rem; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.08em; color: #85B7EB; }
.qcard__body { position: absolute; z-index: 2; inset: auto 0 0 0; padding: 1rem 1rem 1.1rem; border-bottom: 4px solid #85B7EB; }
.qcard h3 { font-size: clamp(1.2rem, 0.9rem + 0.9vw, 1.6rem); line-height: 1.1; letter-spacing: -0.01em; }
.qcard p { margin-top: 0.4rem; font-size: 0.95rem; line-height: 1.35; color: rgb(241 239 232 / 0.82); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .qcard:hover img { transform: scale(1.07); } }
.qcards--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qcards--four .qcard { aspect-ratio: 4 / 3; }
.qcards--four .qcard::after { content: none; }
@media (max-width: 60rem) { .six { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 36rem) {
  .qcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .qcard { aspect-ratio: 3 / 4; }
  .qcard__body { padding: 0.7rem 0.7rem 0.8rem; }
  .qcard h3 { font-size: 1.05rem; }
  .qcard p { font-size: 0.85rem; }
  .qcards--four { grid-template-columns: minmax(0, 1fr); }
  .qcards--four .qcard h3 { font-size: 1.3rem; }
  .qcards--four .qcard p { font-size: 0.95rem; }
}
/* A route: a map pin for each step, joined by a dash-and-dot trail that weaves from side to side down the page */
.route { position: relative; overflow: hidden; }
.route > .wrap { position: relative; }
.route__contours { position: absolute; top: 4%; right: -12%; width: min(52rem, 80%); height: auto; fill: none; stroke: var(--text); stroke-width: 1.2; opacity: 0.06; }
.journey { --pin: clamp(4.75rem, 8vw, 6.25rem); --sky: #85B7EB; --ink: #2C2C2A; max-width: 60rem; margin: clamp(2.5rem, 5vw, 4rem) auto 0; padding: 0; list-style: none; }
.journey__row { display: grid; grid-template-columns: var(--pin) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center; }
.journey li:nth-child(even) .journey__row { grid-template-columns: minmax(0, 1fr) var(--pin); }
.journey li:nth-child(even) .journey__pin { order: 2; }
.journey li:nth-child(even) .journey__text { text-align: right; margin-left: auto; }
.journey__pin { position: relative; display: grid; place-items: center; width: var(--pin); height: var(--pin); margin-bottom: calc(var(--pin) * 0.2); }
.journey__pin::before { content: ""; position: absolute; inset: 0; border-radius: 50% 50% 50% 0; background: var(--sky); transform: rotate(-45deg); box-shadow: 0 0 0 7px rgb(133 183 235 / 0.12); }
.journey__pin svg { position: relative; width: 44%; height: 44%; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.journey__pin b { position: absolute; top: -0.35rem; right: -0.35rem; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border: 2px solid var(--band); border-radius: 50%; background: #F1EFE8; color: var(--ink); font-size: 0.95rem; font-weight: 600; }
.journey__text { max-width: 36rem; }
.journey__text h3 { font-size: 1.5rem; }
.journey__text p { margin-top: 0.5rem; color: var(--text-soft); }
.journey__leg { position: relative; width: calc(100% - var(--pin)); height: clamp(5.5rem, 10vw, 8rem); margin: 1rem auto 1.5rem; }
.journey__trail { display: block; width: 100%; height: 100%; overflow: visible; }
.journey li:nth-child(odd) .journey__trail { transform: scaleX(-1); }
.journey__trail path { fill: none; stroke: var(--sky); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 0.01 1.3; vector-effect: non-scaling-stroke; opacity: 0.45; }
.journey__print { position: absolute; left: var(--x); top: var(--y); width: 1.1rem; height: 2.2rem; fill: var(--sky); transform: translate(-50%, -50%) rotate(var(--turn)) translateX(calc(var(--side) * 0.75rem)) scaleX(var(--side)); }
.journey__leg i { position: absolute; bottom: -0.55rem; left: 100%; width: 0.9rem; height: 0.9rem; border-right: 3px solid var(--sky); border-bottom: 3px solid var(--sky); border-radius: 2px; transform: translateX(-50%) rotate(45deg); }
.journey li:nth-child(odd) .journey__leg i { left: 0; }
@media (prefers-reduced-motion: no-preference) {
  .journey__print { opacity: 0; animation: journey-step 4.5s linear infinite; animation-delay: calc(var(--k) * 0.32s); }
}
@keyframes journey-step { 0% { opacity: 0; } 4% { opacity: 1; } 55% { opacity: 1; } 80%, 100% { opacity: 0; } }
/* How we work, as a wheel: six steps round a ring, a person at the hub with a line out to every one of them */
.wheel { --sky: #85B7EB; --paper: #F1EFE8; --ink: #2C2C2A; position: relative; display: grid; --tuck: clamp(1.5rem, 5vw, 4.5rem); grid-template-columns: minmax(0, 1fr) min(34rem, 44%) minmax(0, 1fr); grid-template-rows: auto auto auto; gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2.5vw, 2rem); align-items: center; margin-top: clamp(2rem, 4vw, 3rem); }
.wheel__ring { grid-column: 2; grid-row: 1 / 4; align-self: center; width: 100%; height: auto; overflow: visible; }
.wheel__track { fill: none; stroke: var(--sky); stroke-width: 1.1; opacity: 0.5; }
.wheel__spoke { stroke: var(--paper); stroke-width: 0.5; stroke-dasharray: 0.01 1.6; stroke-linecap: round; opacity: 0.75; }
.wheel__arrow { fill: none; stroke: var(--sky); stroke-width: 0.9; stroke-linecap: round; stroke-linejoin: round; }
.wheel__runner { fill: #fff; }
.wheel__node circle { stroke: var(--bg, #2C2C2A); stroke-width: 1.2; }
.wheel__node--person circle { fill: var(--paper); }
.wheel__node--robot circle { fill: var(--sky); }
.wheel__node path, .wheel__hub path { fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wheel__hub circle { fill: var(--paper); }
.wheel .wheel__assist { fill: none; stroke: var(--sky); stroke-width: 1.9; stroke-dasharray: 34 66; stroke-linecap: butt; }
.wheel__steps .wheel__assist-text { margin-top: 0.4rem; color: var(--sky); }
.with-agents .wheel__who b, .dot--assist { position: relative; }
.with-agents .wheel__who b::after, .dot--assist::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: conic-gradient(from 200deg, #85B7EB 0 34%, transparent 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.500px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.500px)); }
.key { flex-wrap: wrap; row-gap: 0.6rem; }
.wheel__hub text { font-family: Figtree, system-ui, sans-serif; font-size: 3.3px; font-weight: 600; fill: var(--ink); }
.wheel__steps { display: contents; }
.wheel__steps li { position: relative; z-index: 1; list-style: none; }
/* The descriptions follow the curve of the wheel: the top and bottom ones tuck in toward it, the middle ones stand off */
.wheel__steps li:nth-child(1), .wheel__steps li:nth-child(3) { margin-left: calc(var(--tuck) * -1); }
.wheel__steps li:nth-child(6), .wheel__steps li:nth-child(4) { margin-right: calc(var(--tuck) * -1); }
.wheel__steps li:nth-child(2) { margin-left: calc(var(--tuck) * 0.35); }
.wheel__steps li:nth-child(5) { margin-right: calc(var(--tuck) * 0.35); }
.wheel__steps li:nth-child(1), .wheel__steps li:nth-child(6) { align-self: start; }
.wheel__steps li:nth-child(3), .wheel__steps li:nth-child(4) { align-self: end; }
.wheel__steps li:nth-child(-n+3) { grid-column: 3; }
.wheel__steps li:nth-child(n+4) { grid-column: 1; text-align: right; }
.wheel__steps li:nth-child(1), .wheel__steps li:nth-child(6) { grid-row: 1; }
.wheel__steps li:nth-child(2), .wheel__steps li:nth-child(5) { grid-row: 2; }
.wheel__steps li:nth-child(3), .wheel__steps li:nth-child(4) { grid-row: 3; }
.wheel__steps h3 { margin-block: 0.15rem 0.35rem; }
.wheel__steps p { font-size: 1rem; line-height: 1.5; color: var(--text-soft); }
.wheel__steps .wheel__who { font-size: 0.95rem; font-weight: 600; color: var(--paper); }
.wheel__steps .by-robot .wheel__who { color: var(--sky); }
.wheel__who b { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; margin-right: 0.6rem; border-radius: 50%; background: var(--paper); vertical-align: middle; }
.wheel__who b svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wheel__steps li:nth-child(n+4) .wheel__who { display: flex; flex-direction: row-reverse; align-items: center; }
.wheel__steps li:nth-child(n+4) .wheel__who b { margin: 0 0 0 0.6rem; }
.by-robot .wheel__who b { background: var(--sky); }
.wheel__again { margin-top: clamp(2.5rem, 5vw, 4rem); text-align: center; font-size: clamp(1.6rem, 1rem + 2.2vw, 2.6rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; color: #F1EFE8; }
@media (prefers-reduced-motion: no-preference) {
  .wheel__spoke { animation: wheel-reach 2.4s linear infinite; }
}
@media (prefers-reduced-motion: reduce) { .wheel__runner { display: none; } }
@keyframes wheel-turn { to { transform: rotate(360deg); } }
@keyframes wheel-reach { to { stroke-dashoffset: -1.61; } }
@media (max-width: 64rem) {
  .wheel { display: block; }
  .wheel__ring { display: block; width: min(24rem, 100%); margin: 0 auto 2rem; }
  .wheel__steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.75rem 2rem; margin: 0; padding: 0; }
  .wheel__steps li:nth-child(n) { grid-column: auto; grid-row: auto; margin: 0; align-self: start; text-align: left; }
  .wheel__steps li:nth-child(n+4) .wheel__who { display: block; }
  .wheel__steps li:nth-child(n+4) .wheel__who b { margin: 0 0.6rem 0 0; }
}
.dot { display: inline-block; width: 1rem; height: 1rem; border-radius: 50%; }
.dot--robot { background: #85B7EB; }
.dot--person { background: #F1EFE8; }
/* The front page: pins over the three kinds of work, a brief wheel, a product screen beside Draftyard, and a strip of industries */
.work--pins { --pin: 4.25rem; --sky: #85B7EB; --ink: #2C2C2A; }
.work--pins article { border-top: 0; padding-top: 0; }
.work--pins .journey__pin { margin-bottom: 1.75rem; }
.work--pins p + p { margin-top: 0.75rem; }
.wheel--brief { grid-template-columns: minmax(0, 1fr) min(27rem, 40%) minmax(0, 1fr); }
.wheel--brief .wheel__steps h3 { margin-bottom: 0; font-size: 1.35rem; }
.wheel__more { margin-top: clamp(1.75rem, 3vw, 2.5rem); text-align: center; }
.feature--screen { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.qcards--strip { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 2.5rem; }
.qcards--strip .qcard { aspect-ratio: 4 / 3; }
.qcards--strip .qcard::after { content: none; }
@media (max-width: 52rem) { .qcards--strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Product screens, set in a plain window frame */
.frame { margin: 0; }
.frame img { display: block; width: 100%; height: auto; border: 1.5px solid var(--line); border-top-width: 1.6rem; border-radius: 12px; background: #F1EFE8; box-shadow: 0 1.25rem 3rem rgb(0 0 0 / 0.35); }
.frame figcaption { margin-top: 0.8rem; font-size: 1rem; color: var(--text-soft); }
.frame--lead { margin-top: 2.5rem; }
.frames { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 2rem; margin-top: 2.5rem; }
.frames__note { margin-top: 2rem; font-size: 1rem; color: var(--text-soft); }
/* Draftyard pages take Draftyard's green for the route */
.theme-draftyard .journey { --sky: #5DCAA5; }
.theme-draftyard .journey__pin::before { box-shadow: 0 0 0 7px rgb(93 202 165 / 0.12); }
/* A wide card that leads with a photograph */
.card--photo { padding: 1rem; gap: clamp(1.5rem, 4vw, 3rem); }
.card__photo { display: block; width: 100%; height: 100%; min-height: 16rem; object-fit: cover; object-position: 78% 50%; border-radius: 12px; }
.card--photo p { margin-inline: 0; margin-top: 1.25rem; }
.card--photo .card__more { font-weight: 600; color: var(--accent); }
.card--photo .card__more::after { content: " \2192"; }
/* The contact page: a photograph carrying the invitation, beside the form */
.contact--photo { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: stretch; gap: clamp(1.5rem, 4vw, 3rem); }
.contact__lead { position: relative; overflow: hidden; min-height: 26rem; border-radius: 20px; background: #070c15; color: #fff; }
.contact__lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; }
.contact__lead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(7 12 21 / 0) 28%, rgb(7 12 21 / 0.8) 62%, rgb(7 12 21 / 0.96)); }
.contact__words { position: absolute; z-index: 1; inset: auto 0 0 0; padding: clamp(1.25rem, 3vw, 2rem); }
.contact__words h1 { font-size: clamp(1.9rem, 1rem + 2.6vw, 3rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
.contact .contact__words p { margin-top: 0.9rem; font-size: 1.1rem; line-height: 1.45; color: rgb(255 255 255 / 0.88); }
.contact--photo .form { align-self: center; padding: clamp(1.25rem, 3vw, 2rem); border: 1.5px solid var(--line); border-radius: 20px; background: var(--band); }
@media (max-width: 52rem) { .contact--photo { grid-template-columns: minmax(0, 1fr); } .contact__lead { min-height: 22rem; } }
/* A quieter route for pages where walking footprints would be out of place: soft dots drift along the trail instead */
.journey--quiet .journey__trail path { stroke-width: 4; stroke-dasharray: 0.01 2.4; opacity: 0.85; }
@media (prefers-reduced-motion: no-preference) { .journey--quiet .journey__trail path { animation: journey-drift 2.6s linear infinite; } }
@keyframes journey-drift { to { stroke-dashoffset: -2.41; } }
@media (max-width: 44rem) {
  .journey { --pin: 4rem; }
  .journey li:nth-child(even) .journey__row { grid-template-columns: var(--pin) minmax(0, 1fr); }
  .journey li:nth-child(even) .journey__pin { order: 0; }
  .journey li:nth-child(even) .journey__text { text-align: left; margin-left: 0; }
  .journey__row { align-items: start; }
  .journey__leg { width: var(--pin); margin: 0.25rem 0 1rem; }
  .journey__leg { height: 11rem; }
  .journey__trail { transform: none !important; }
  .journey__trail path { d: path("M50 0L50 100"); stroke-dasharray: 0.01 7; }
  .journey--quiet .journey__leg { height: 4rem; }
  .journey--quiet .journey__trail path { stroke-dasharray: 0.01 14; animation-name: journey-drift-small; }
}
@keyframes journey-drift-small { to { stroke-dashoffset: -14.01; } }
@media (max-width: 44rem) {
  .journey__print { left: 50%; top: calc(6% + var(--k) * 10.5%); width: 0.7rem; height: 1.4rem; transform: translate(-50%, -50%) rotate(180deg) translateX(calc(var(--side) * 0.5rem)) scaleX(var(--side)); }
  .journey__leg i, .journey li:nth-child(odd) .journey__leg i { left: 50%; }
}
.uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2rem; margin-top: 2.5rem; }
.uses img { display: block; width: 100%; height: auto; border-radius: 12px; }
.uses h3 { margin-top: 1.25rem; }
.uses p { margin-top: 0.5rem; color: var(--text-soft); }
.uses .uses__who { margin-top: 0.15rem; font-size: 1rem; font-weight: 500; color: var(--text); }

.cta h2 { margin-bottom: 0.75rem; }
.cta p { color: var(--text-soft); }
.cta .btn { margin-top: 1rem; }

/* Healthcare cycle */
.cycle { max-width: 20rem; justify-self: center; }
.cycle__num { font-family: Figtree, system-ui, sans-serif; font-size: 20px; font-weight: 600; }
.on-blue { fill: var(--on-accent); } .on-ink { fill: var(--page); }
.stages { margin: 0; padding-left: 1.5rem; display: grid; gap: 0.9rem; color: var(--text-soft); }
.stages li::marker { font-weight: 600; color: var(--text); }
.stages strong { color: var(--text); font-weight: 600; }

/* Draftyard */
.theme-draftyard { --accent: #0F6E56; --accent-hover: #0B5744; --on-accent: #FFFFFF; }
@media (prefers-color-scheme: dark) { .theme-draftyard { --accent: #5DCAA5; --accent-hover: #7FD8B9; --on-accent: #1E1E1C; } }
.voyage { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; counter-reset: leg; }
.voyage li { counter-increment: leg; padding-top: 1.25rem; border-top: 4px solid var(--dy-pebble); }
.voyage li:nth-child(n+3) { border-top-color: #5DCAA5; }
.voyage li:last-child { border-top-color: var(--dy-hull); }
.voyage h3::before { content: counter(leg) ". "; color: var(--text-soft); }
.voyage p { margin-top: 0.4rem; font-size: 1rem; color: var(--text-soft); }

.foot__row { flex-wrap: wrap; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-left: auto; }
.foot__nav a { color: var(--text-soft); }

@media (max-width: 52rem) {
  .top__row { flex-wrap: wrap; row-gap: 0.25rem; }
  .top__nav { width: 100%; flex-wrap: wrap; gap: 0.25rem 1.1rem; font-size: 0.95rem; }
  .two, .feature, .card--wide { grid-template-columns: minmax(0, 1fr); }
  .voyage { grid-template-columns: minmax(0, 1fr); }
  .foot__nav { margin-left: 0; width: 100%; }
  html { scroll-padding-top: 7rem; }
}

/* ---- Lights-out look: the site is dark for everyone, whatever the device setting ---- */

:root {
  color-scheme: dark;
  --page: #2C2C2A;
  --band: #353532;
  --field: #40403C;
  --text: #F1EFE8;
  --text-soft: #B4B2A9;
  --line: #65645F;
  --accent: #85B7EB;
  --accent-hover: #A5CBF2;
  --on-accent: #1A1A19;
  --robot: #85B7EB;
  --person: #F1EFE8;
  --ill-sky: #185FA5; --ill-pale: #34485E;
  --dy-hull: #5DCAA5; --dy-stripe: #0F6E56; --dy-pebble: #73726C; --dy-graphite: #B4B2A9; --dy-paper: #2C2C2A;
}
.theme-draftyard { --accent: #5DCAA5; --accent-hover: #7FD8B9; --on-accent: #1A1A19; }
[data-light] { display: none; }
[data-dark] { display: block; }

.top { background: color-mix(in srgb, var(--page) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn { border-color: var(--line); }
.btn:hover { background: var(--field); border-color: var(--text-soft); }
.card, .form input, .form textarea { border-color: var(--line); }
.card:hover { border-color: var(--accent); }

.hero { position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--line) 1px, transparent 1.5px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 60% 75% at 78% 45%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 75% at 78% 45%, #000 0%, transparent 72%);
  opacity: 0.7;
  pointer-events: none;
}
.hero__grid { position: relative; }
.hero__title { font-size: clamp(2.2rem, 0.9rem + 5.2vw, 5.25rem); }
.hero__title span { white-space: nowrap; }

/* Human in the loop */
.loop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; margin-bottom: 3.5rem; }
.loop__text h2 { margin-bottom: 1.25rem; }
.loop__text p { color: var(--text-soft); }
.loop__key { display: grid; gap: 0.6rem; margin-top: 1.75rem; font-size: 1rem; }
.loop__key span { display: flex; align-items: center; gap: 0.7rem; }
.loop__key i { flex: none; display: inline-block; width: 1rem; height: 1rem; }
.loop__key .k-person { background: var(--person); border-radius: 3px; }
.loop__key .k-robot { background: var(--robot); border-radius: 3px; }
.loop__key .k-tick { border: 2.5px solid var(--person); border-radius: 50%; }
.cyc { max-width: 30rem; justify-self: center; }
.cyc__seg { stroke: var(--robot); }
.cyc__tick { transform: translate(310px, 34px); }
.q-text.q-text--on { fill: var(--page); font-size: 30px; }
@media (prefers-reduced-motion: no-preference) {
  .cyc__seg { animation: 7s linear infinite; }
  .cyc__seg--1 { animation-name: cyc-1; }
  .cyc__seg--2 { animation-name: cyc-2; }
  .cyc__seg--3 { animation-name: cyc-3; }
  .cyc__tick { animation: cyc-tick 7s linear infinite; }
}
@keyframes cyc-1 { 0%, 14% { opacity: 0.28; } 18%, 94% { opacity: 1; } 100% { opacity: 0.28; } }
@keyframes cyc-2 { 0%, 32% { opacity: 0.28; } 36%, 94% { opacity: 1; } 100% { opacity: 0.28; } }
@keyframes cyc-3 { 0%, 50% { opacity: 0.28; } 54%, 94% { opacity: 1; } 100% { opacity: 0.28; } }
@keyframes cyc-tick {
  0%, 60% { transform: translate(140px, 190px) scale(0.4); opacity: 0; }
  66% { transform: translate(140px, 190px) scale(1); opacity: 1; }
  72% { transform: translate(140px, 190px) scale(1); opacity: 1; }
  79% { transform: translate(140px, 95px) scale(1); opacity: 1; }
  84% { transform: translate(168px, 44px) scale(1); opacity: 1; }
  88% { transform: translate(230px, 34px) scale(1); opacity: 1; }
  96% { transform: translate(400px, 34px) scale(1); opacity: 1; }
  100% { transform: translate(446px, 34px) scale(1); opacity: 0; }
}
.questions { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem; }
.questions article { padding: 1.5rem; border: 1.5px solid var(--line); border-radius: 16px; background: var(--field); }
.questions h3 { margin-bottom: 0.5rem; }
.questions p { color: var(--text-soft); }
.q-text { font-family: Figtree, system-ui, sans-serif; font-size: 22px; font-weight: 600; fill: var(--person); }

@media (max-width: 52rem) {
  .loop { grid-template-columns: minmax(0, 1fr); }
}

/* Montage: three slanted panes under the opening, one for each kind of work */
.montage { --slant: clamp(1.75rem, 6vw, 5rem); --gap: clamp(0.4rem, 1vw, 0.75rem); position: relative; display: flex; height: clamp(15rem, 36vw, 27rem); margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.pane { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; background: var(--field); color: var(--text); text-decoration: none; clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%); }
.pane + .pane { margin-left: calc(var(--gap) - var(--slant)); }
.pane img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease, filter 0.3s ease; filter: saturate(0.9) brightness(0.92); }
.pane::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(to bottom, transparent, rgb(26 26 25 / 0.82)); pointer-events: none; }
.pane__label { position: absolute; z-index: 1; left: clamp(0.6rem, 2vw, 1.5rem); bottom: clamp(0.6rem, 1.8vw, 1.25rem); padding-left: 0.6rem; border-left: 3px solid var(--robot); font-size: clamp(0.85rem, 0.6rem + 0.9vw, 1.15rem); font-weight: 600; line-height: 1.2; }
.pane--draftyard .pane__label { border-left-color: #5DCAA5; }
.pane:hover img, .pane:focus-visible img { filter: none; }
.pane:focus-visible { outline: none; }
.pane:focus-visible .pane__label { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
@media (prefers-reduced-motion: no-preference) { .pane:hover img { transform: scale(1.04); } }
