/* Lumen Alto: built by light.
   The lit period is the protagonist. It spills the light behind every page title (spill.js) and it is the
   marker that travels through the process.
   The home page opens on a night hero; everything below it, and every inner page under its night head,
   reads on paper. combined.css holds the layout and palette of those sections.
   Type: BBH Hegarty (display, one weight), Archivo (text, variable weight), JetBrains Mono (code only).
   Home-only rules live in home.css. Motion runs only under html.motion (set in the head when the visitor
   has not asked for reduced motion); without it every section is plain and static. */

@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "BBH Hegarty"; src: url("/assets/fonts/bbh-hegarty.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono-var.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --night: #060a18;       /* heads, the showcase hall, the process */
  --night-2: #0d1430;     /* panels on night */
  --night-3: #141d40;
  --navy: #0b1020;        /* the brand navy */
  --cobalt: #1f3fae;      /* the brand blue: the blueprint, buttons and links on light (8.8:1 on white) */
  --cobalt-2: #18338f;
  --cobalt-3: #2a4cc4;
  --peri: #a9b8ec;        /* the brand light: the period, accents on dark (10.4:1 on night) */
  --peri-2: #c3cff5;
  --flare: #f2f5fc;       /* text on dark */
  --mist: #a9b3cf;        /* secondary text on night (9.6:1) */
  --unlit: #6078c4;       /* a page title where the light has not reached it (4.7:1 on night) */
  --frost: #dfe5fb;       /* secondary text on cobalt (7.0:1) */
  --paper: #eef1f8;       /* light sections and the footer */
  --paper-2: #e2e7f2;
  --white: #fff;
  --ink: #0d1430;         /* text on light (16.2:1 on paper) */
  --slate: #4a5573;       /* secondary text on light (6.6:1 on paper) */
  --rule: #cdd5e6;
  --line: #bcc5db;        /* hairlines drawn straight on paper (ruled lists and rows) */
  --display: "BBH Hegarty", Arial, sans-serif;   /* one weight only: never synthesize bold */
  --sans: "Archivo", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .25, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --mast-h: 76px;
  --h2: clamp(40px, 5.6vw, 92px);              /* every section title */
  --sec-pad: clamp(64px, 10vw, 156px);         /* every section's top and bottom space */
  --r: 18px;
  --r-sm: 10px;
}
@media (max-width: 900px) { :root { --mast-h: 104px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; font-synthesis: style; overflow-x: clip; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cobalt-2); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.mast :focus-visible, .page-head :focus-visible, .page-showcase .sec :focus-visible,
.hero :focus-visible, .hall :focus-visible { outline-color: var(--peri); }
::selection { background: var(--peri); color: var(--night); }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.12; letter-spacing: 0; color: inherit; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
.skip { position: fixed; top: 0; left: -9999px; z-index: 1000; padding: 10px 16px; border-radius: 0 0 var(--r-sm) 0; background: var(--peri); color: var(--night); font-weight: 650; text-decoration: none; }
.skip:focus { left: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* dark surfaces share link and focus colors */
.navy { color: var(--flare); }
.navy a:not(.btn) { color: var(--peri); }
.navy a:not(.btn):hover { color: var(--peri-2); }

/* ------------------------------------------------------------------ the period
   Headings end in the wordmark's period, in the brand color and with no glow. Generated content, so the text copies without it and screen
   readers skip it (alt text ""). A period never wraps away from its word. Where a script needs to know
   where the period is (spill.js), it swaps the generated period for <span class="lit">. */
h1::after, h2::after, .lit::before {
  content: "."; content: "." / "";
  color: var(--dot, var(--cobalt));
}
.lit { user-select: none; -webkit-user-select: none; pointer-events: none; }
.has-lit::after { content: none; }
.navy, .mast, .page-head { --dot: var(--peri); }

/* ------------------------------------------------------------------ buttons: plain pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 1.5px solid var(--cobalt); border-radius: 999px;
  background: transparent; color: var(--cobalt); font: 600 16px/1.1 var(--sans); text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, transform .35s var(--ease);
}
.btn:hover { background: var(--cobalt); color: #fff; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-2); border-color: var(--cobalt-2); color: #fff; }
.btn-peri { background: var(--peri); border-color: var(--peri); color: var(--night); }
.btn-peri:hover { background: var(--peri-2); border-color: var(--peri-2); color: var(--night); }
.btn-ghost { border-color: rgba(242, 245, 252, .5); color: var(--flare); }
.btn-ghost:hover { background: var(--flare); border-color: var(--flare); color: var(--night); }
.btn-white { background: #fff; border-color: #fff; color: var(--cobalt); }
.btn-white:hover { background: var(--paper); border-color: var(--paper); color: var(--cobalt-2); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* a text link that draws its underline in */
.more { position: relative; display: inline-flex; margin-top: 28px; font-weight: 650; text-decoration: none; }
.more::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px; border-radius: 2px; background: currentColor;
  opacity: .4; transition: opacity .3s; }
.more:hover::after, .more:focus-visible::after { opacity: 1; }

/* ------------------------------------------------------------------ masthead: fixed, frosted, and in the
   tone of the section under it (body[data-tone], set by site.js). The blur is on .mast itself: its
   view-transition-name (below) makes it the backdrop root for its own children, so a blur on ::before
   would have nothing behind it to blur. */
.mast { position: fixed; inset: 0 0 auto; z-index: 60; color: var(--mast-fg, var(--flare)); --mast-bg: rgba(6, 10, 24, .66);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); transition: color .4s; }
.mast::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--mast-bg); transition: background-color .4s; }
body[data-tone="light"] .mast { --mast-fg: var(--ink); --mast-bg: rgba(238, 241, 248, .78); --dot: var(--cobalt); }
body[data-tone="light"] .mast :focus-visible { outline-color: var(--cobalt); }
.mast-in { display: flex; align-items: center; gap: 24px; min-height: var(--mast-h); }
.wordmark { font: 400 25px/1 var(--display); color: inherit; text-decoration: none; white-space: nowrap; }
.mast .wordmark, .mast .wordmark:hover { color: inherit; }
.wordmark .dot { color: var(--dot); transition: color .4s; }
.parent { color: inherit !important; opacity: .7; font-size: 14px; text-decoration: none; white-space: nowrap; transition: opacity .2s; }
.parent:hover { opacity: 1; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 2px; list-style: none; }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; color: inherit; text-decoration: none; font-weight: 550; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current]::after { transform: scaleX(1); background: var(--dot); }
.mast .btn { min-height: 42px; padding: 0 18px; font-size: 15px; }
body[data-tone="light"] .mast .btn-peri { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
@media (max-width: 900px) {
  .mast-in { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; min-height: 0; padding: 10px 0 4px; }
  .parent { display: none; }
  .mast .btn { grid-row: 1; grid-column: 2; min-height: 40px; padding: 0 16px; font-size: 14px; }
  .nav { grid-row: 2; grid-column: 1 / -1; margin: 0 -10px; }
  .nav ul { gap: 0; }
  .nav a { min-height: 44px; padding: 0 10px; font-size: 15px; }
  .nav a::after { left: 10px; right: 10px; bottom: 7px; }
}
@media (max-width: 360px) { .nav a { padding: 0 7px; font-size: 14px; } .nav a::after { left: 7px; right: 7px; } }

/* ------------------------------------------------------------------ grain: a fine, still texture on the hero
   (it keeps its soft gradients from banding). One small SVG tile, drawn once. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1.5 0 0 0 -.5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 200px 200px; }

/* ------------------------------------------------------------------ spill: the light of a title (spill.js draws it)
   The canvas lies over the section and takes no clicks. With motion the title is set in a dim tone
   (--unlit) and the canvas puts white on each letter where light is passing (.spill-type). Until the
   script says which way it went, the title waits unseen: two seconds at the most, then it shows regardless. */
.spill { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity .5s ease; }
.spill.is-on { opacity: 1; }
.motion :is([data-spill], .page-head) h1 { color: transparent; animation: title-wait .01s 2s forwards; }
.motion .spill-type h1 { color: var(--unlit); animation: title-up 1.3s var(--ease) both; }
.motion .spill-off h1, .motion.no-spill :is([data-spill], .page-head) h1 { color: inherit; animation: none; }
@keyframes title-wait { to { color: var(--flare); } }
@keyframes title-up { from { color: transparent; } }
@media (forced-colors: active) { .spill { display: none; } }

/* ------------------------------------------------------------------ page heads (inner pages): night, a
   very large title whose period spills light around the letters */
.page-head { position: relative; isolation: isolate; overflow: hidden; display: grid; align-content: end; min-height: min(68svh, 700px);
  padding: calc(var(--mast-h) + clamp(48px, 8vw, 120px)) 0 clamp(48px, 7vw, 96px); background: var(--night); color: var(--flare); }
.page-head::before { content: ""; position: absolute; inset: auto 0 0; z-index: -1; height: 60%; pointer-events: none;
  background: radial-gradient(120% 90% at 18% 100%, rgba(31, 63, 174, .34), transparent 70%); }
.page-head > .wrap { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(48px, 9.6vw, 168px); line-height: .94; max-width: 14ch; }
.page-head .lede { margin-top: clamp(20px, 2.6vw, 36px); color: var(--mist); }
.page-head a:not(.btn) { color: var(--peri); }
.page-head.short { min-height: 100svh; align-content: center; }
@media (max-width: 700px) {
  .page-head:not(.short) { min-height: 0; padding: calc(var(--mast-h) + 48px) 0 40px; }
  .page-head h1 { font-size: clamp(38px, 12.3vw, 64px); }
}
.hover-only { display: none; }
@media (hover: hover) { .hover-only { display: inline; } }
.lede { font-size: clamp(18px, 1.55vw, 22px); line-height: 1.55; max-width: 52ch; }

/* ------------------------------------------------------------------ inner sections */
.sec { position: relative; padding: var(--sec-pad) 0; background: var(--paper); }
.sec-tint { background: var(--paper-2); }
/* every section opens the same way: the title, then at most one short line under it */
.sec-head { display: grid; gap: 18px; max-width: 820px; margin-bottom: clamp(36px, 4.4vw, 64px); }
.sec-head p { max-width: 52ch; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.55; color: var(--slate); }
.sec-title { font-size: var(--h2); line-height: .96; }
:is(.navy, .hall, .price, .page-showcase .sec) .sec-head p { color: var(--mist); }
.mute { color: var(--slate); }
.navy { background: var(--night); }

/* ------------------------------------------------------------------ pricing panels (home and services)
   Two panels side by side, cobalt and night. */
.price { position: relative; background: var(--night); color: var(--flare); padding-top: var(--sec-pad); --dot: var(--peri); }
.price-page { padding-top: 0; }
.price-split { display: grid; grid-template-columns: 1fr 1fr; }
.pp { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 22px;
  padding: clamp(40px, 5.5vw, 88px) clamp(24px, 4vw, 64px) clamp(44px, 6vw, 96px); scroll-margin-top: var(--mast-h);
  --dot: var(--peri); }
.pp-build { padding-left: max(var(--gutter), (100vw - var(--max)) / 2); background: var(--cobalt); color: #fff; }
.pp-mgmt { padding-right: max(var(--gutter), (100vw - var(--max)) / 2); background: var(--night-2); color: var(--flare); }
.pp-price { container-type: inline-size; display: grid; justify-items: start; gap: 10px; width: 100%; }
.pp-build .pp-price { color: #fff; }
.pp-mgmt .pp-price { color: var(--peri); }
.pp-unit { font: 600 18px/1.2 var(--sans); }
.pp-build .pp-unit, .pp-build p, .pp-build .ticks span { color: var(--frost); }
.pp-mgmt .pp-unit, .pp-mgmt p, .pp-mgmt .ticks span { color: var(--mist); }
.pp :is(h2, h3) { font-size: clamp(28px, 2.8vw, 42px); line-height: 1.05; }
.pp h2::after { content: none; }
.pp p { max-width: 46ch; font-size: 18px; }
.pp .ticks { --tick: var(--peri); }
.pp .ticks strong { color: inherit; }
.pp .btn { align-self: flex-start; margin-top: auto; }
.pp :focus-visible { outline-color: #fff; }
@media (max-width: 860px) {
  .price-split { grid-template-columns: 1fr; }
  .pp-build, .pp-mgmt { padding-inline: var(--gutter); }
}

/* tick lists: a small square mark per line, the shape of the period */
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: .66em; width: 7px; height: 7px; border-radius: 22%;
  background: var(--tick, var(--cobalt)); }
.ticks strong { display: block; }
.ticks span { color: var(--slate); }

/* showcase cards: dark screens that scroll their page on hover */
.samples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
@media (max-width: 1000px) { .samples { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .samples { grid-template-columns: 1fr 1fr; gap: 12px; } }
@media (max-width: 340px) { .samples { grid-template-columns: 1fr; } }
.sample { position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: var(--r); background: var(--night-2); color: var(--flare); text-decoration: none; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(169, 184, 236, .16); transition: transform .5s var(--ease), box-shadow .3s; }
.sample:hover { color: var(--flare); }
@media (hover: hover) { .sample:hover { transform: translateY(-6px); box-shadow: 0 0 0 1.5px var(--peri); } }
.sample-shot { aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
.sample-shot picture { display: contents; }   /* touch screens get a cropped, smaller file: the page only scrolls on hover */
.sample-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: object-position 7s ease-in-out; }
.sample:hover .sample-shot img, .sample:focus-visible .sample-shot img { object-position: bottom center; }
.sample-body { display: grid; gap: 8px; align-content: start; padding: 20px 22px 24px; }
.tag { justify-self: start; padding: 4px 12px; border-radius: 999px; background: rgba(169, 184, 236, .14); color: var(--peri); font-size: 13px; font-weight: 600; }
.sample-body h3 { font-size: 22px; }
.sample-body p { color: var(--mist); font-size: 15.5px; }
.sample-more { margin-top: 6px; color: var(--peri); font-weight: 650; }

/* ruled lists (build features, how we build, management): a name, then what it means, with a hairline
   between rows. No boxes. */
.specs { list-style: none; border-top: 1.5px solid var(--ink); }
.specs li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 6px clamp(18px, 2.4vw, 40px); align-items: baseline;
  padding: 20px 0 22px; border-bottom: 1px solid var(--line); }
.specs h3 { font-size: clamp(19px, 1.45vw, 22px); line-height: 1.2; }
.specs p { color: var(--slate); font-size: 16.5px; line-height: 1.55; }
@media (max-width: 640px) { .specs li { grid-template-columns: minmax(0, 1fr); padding: 18px 0 20px; } }

/* SEO, AEO, GEO (services page): what it is on the left, an example from this site on the right */
.engines { border-top: 1.5px solid var(--ink); }
.engine { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px clamp(24px, 5vw, 80px); align-items: start;
  padding: clamp(28px, 3.2vw, 44px) 0; border-bottom: 1px solid var(--line); }
@media (max-width: 860px) { .engine { grid-template-columns: minmax(0, 1fr); } }
.engine > * { min-width: 0; }
.engine-text { display: grid; gap: 12px; }
.engine h3 { font-size: clamp(28px, 3vw, 40px); }
.engine p { color: var(--slate); }
.engine-text p { max-width: 46ch; }
.serp { padding: 16px 18px; border-radius: var(--r-sm); background: #fff; box-shadow: 0 0 0 1px var(--rule); font-family: Arial, sans-serif; }
.serp-url { font-size: 13px; color: #4d5156 !important; }
.serp-title { margin: 2px 0; font-size: 19px; line-height: 1.3; color: #1a0dab !important; }
.serp-desc { font-size: 14px; line-height: 1.5; color: #474747 !important; }
.qa { display: grid; gap: 6px; padding: 16px 18px; border-radius: var(--r-sm); background: #fff; box-shadow: 0 0 0 1px var(--rule); }
.qa-type { font: 500 12.5px/1.2 var(--mono); color: var(--slate) !important; }
.qa-q { font-weight: 650; color: var(--ink) !important; }
.codebox { margin: 0; padding: 18px 20px; border-radius: var(--r-sm); background: var(--night); color: var(--flare); font: 500 12.5px/1.7 var(--mono); white-space: pre; overflow-x: auto;
  box-shadow: inset 0 0 0 1px rgba(169, 184, 236, .18); }

/* FAQ: a ruled list of questions that open in place */
.faq { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-weight: 650;
  font-size: clamp(18px, 1.4vw, 20px); line-height: 1.35; cursor: pointer; list-style: none; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover, .faq details[open] summary { color: var(--cobalt); }
/* a plus that closes to a minus */
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; margin-right: 4px;
  background: linear-gradient(var(--cobalt), var(--cobalt)) center / 100% 2px no-repeat, linear-gradient(var(--cobalt), var(--cobalt)) center / 2px 100% no-repeat;
  transition: background-size .3s var(--ease), transform .3s var(--ease); }
.faq details[open] summary::after { background-size: 100% 2px, 2px 0; transform: rotate(180deg); }
.faq details p { max-width: 62ch; padding: 0 40px 26px 0; color: var(--slate); }

/* process page */
.stages { position: relative; }
/* the beam: the same light that crosses the steps on the home page runs down them here (site.js); a step's
   period comes on when the light reaches its title */
.beam { display: none; }
@media (min-width: 700px) {
  .motion .stages { padding-left: 52px; }
  .motion .beam { display: block; position: absolute; left: 15px; top: 0; bottom: 0; width: 2px; border-radius: 2px; background: rgba(31, 63, 174, .16); }
  .beam-fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(31, 63, 174, .25), var(--cobalt)); transform-origin: 0 0; transform: scale(1, 0); will-change: transform; }
  .beam-head { position: absolute; left: 50%; top: -7px; width: 14px; height: 14px; margin-left: -7px; border-radius: 22%; background: var(--cobalt); will-change: transform; }
}
.motion .stage-text h2::after { color: rgba(31, 63, 174, .22); transition: color .45s; }
.motion .stage.is-on .stage-text h2::after { color: var(--cobalt); }
/* each step is a row: what happens on the left, something made at that step on the right */
.stage { position: relative; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 72px); align-items: start;
  padding: clamp(36px, 4.6vw, 68px) 0; border-top: 1px solid var(--line); }
.beam + .stage { padding-top: 0; border-top: 0; }
.stage:last-child { padding-bottom: 0; }
@media (max-width: 860px) { .stage { grid-template-columns: 1fr; } }
.stage > * { min-width: 0; }
.stage-text { container-type: inline-size; display: grid; gap: 14px; }
.stage-text h2 { font-size: min(88px, 12.4cqw); line-height: .95; }   /* "Management." fits its column */
.stage-text p { font-size: 18px; color: var(--slate); max-width: 46ch; }
.artifact { padding: clamp(18px, 2.4vw, 28px); border-radius: var(--r); background: #fff; box-shadow: 0 0 0 1px var(--rule); overflow-x: auto; }
.artifact-cap { margin-top: 12px; font-size: 14.5px; color: var(--slate); }
.pagemap { list-style: none; display: grid; gap: 6px; font: 500 14px/1.4 var(--mono); }
.pagemap ul { list-style: none; display: grid; gap: 6px; margin: 6px 0 0 6px; padding-left: 16px; border-left: 2px solid var(--rule); }
.designs { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.designs a { display: grid; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15.5px; }
.designs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top center; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--rule); transition: transform .4s var(--ease), box-shadow .4s; }
.designs a:hover img { transform: translateY(-4px); box-shadow: 0 0 0 1.5px var(--cobalt); }
.designs a:hover span { color: var(--cobalt); }
@media (max-width: 420px) { .designs { gap: 10px; } .designs a { font-size: 14px; } }
.redirects p { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--rule); font: 500 14px/1.4 var(--mono); }
.redirects p:last-child { border-bottom: 0; }
.redirects p span { overflow-wrap: anywhere; }
.redirects p span:nth-child(2) { color: var(--cobalt); }

/* a heading column beside its content (questions, how we build, the privacy policy) */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.split > * { min-width: 0; }
.split > .sec-head { margin-bottom: 0; }
@media (min-width: 861px) { .split > .sec-head { position: sticky; top: calc(var(--mast-h) + 28px); } }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.prose { display: grid; gap: 16px; font-size: 18px; max-width: 64ch; }
.prose h2 { margin-top: 22px; font-size: 30px; }
.prose ul { display: grid; gap: 8px; padding-left: 20px; }

/* team (about) */
.team { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .team { grid-template-columns: 1fr 1fr; } }
.team li { position: relative; }
.team img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); background: var(--paper-2); filter: grayscale(1) contrast(1.05); transition: filter .6s; }
.team li:hover img { filter: none; }
.team-name { margin-top: 14px; font: 400 20px/1.25 var(--display); color: var(--ink); }
.team-role { margin-top: 2px; font-size: 15px; color: var(--slate); }

/* contact form */
.contact-grid { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid > * { min-width: 0; }
.form-card { padding: clamp(22px, 3.4vw, 48px); border-radius: 28px; background: #fff; box-shadow: 0 0 0 1px var(--rule), 0 40px 80px -50px rgba(13, 20, 48, .5); }
.form { display: grid; gap: 18px; }
.form > *, .form-row > * { min-width: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } .form-card { padding: 22px 16px; } }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { padding: 0; font-weight: 650; font-size: 15px; }
.field .req { color: var(--cobalt); font-weight: 600; font-size: 13px; }
.field .hint { color: var(--slate); font-size: 14px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid #737e9f; border-radius: 12px;
  background: #fff; color: var(--ink); font: 400 16px/1.4 var(--sans); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(31, 63, 174, .18); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices legend { margin-bottom: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid #737e9f; border-radius: 999px; background: #fff; font-size: 15px; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.choice input:checked + span { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.form-status { min-height: 1.6em; font-weight: 600; }
.form-status.is-error { color: #b3261e; }
.form-note { color: var(--slate); font-size: 14px; }
.contact-aside { display: grid; gap: 12px; align-content: start; font-size: 18px; }

/* showcase page: a gallery in the dark */
.page-showcase .sec { background: var(--night); color: var(--flare); }
.page-showcase .sec-tint { background: var(--night-2); }
.page-showcase .sec-head p { color: var(--mist); }
.page-showcase .sec { --dot: var(--peri); }
.page-showcase .sec-tint .sample { background: var(--night-3); }


/* ------------------------------------------------------------------ footer: full light, the wordmark
   across the whole width */
.foot { position: relative; overflow: hidden; background: var(--paper); color: var(--ink); font-size: 15px; --dot: var(--cobalt); }
.foot a { color: var(--ink); text-decoration: none; }
.foot a:hover { color: var(--cobalt); }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 48px; padding: 48px 0 22px; border-top: 1px solid var(--rule); }
.foot .wordmark { font-size: 28px; color: var(--ink); }
.foot ul { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; font-weight: 600; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 0 0 44px; color: var(--slate); font-size: 14px; }
.foot-legal a { color: var(--slate); }
@media (max-width: 480px) {
  .foot-top { padding-top: 36px; }
  .foot ul { gap: 8px 16px; }
}

.short { min-height: 52vh; display: grid; align-content: center; }

/* page changes: the masthead holds still while the page under it cross-fades */
@view-transition { navigation: auto; }
.mast { view-transition-name: mast; }
/* the next page opens in a circle of light from the wordmark's period (--vt-x, --vt-y: where it sits) */
:root { --vt-x: calc(max(var(--gutter), (100vw - var(--max)) / 2) + 159px); --vt-y: 44px; }
@media (max-width: 900px) { :root { --vt-y: 36px; } }
::view-transition-old(root) { animation: vt-hold .75s linear both; mix-blend-mode: normal; }
::view-transition-new(root) { animation: vt-open .75s cubic-bezier(.6, 0, .2, 1) both; mix-blend-mode: normal; }
@keyframes vt-hold { to { filter: brightness(.6); } }
@keyframes vt-open { from { clip-path: circle(0 at var(--vt-x) var(--vt-y)); } to { clip-path: circle(150vmax at var(--vt-x) var(--vt-y)); } }

/* ------------------------------------------------------------------ phones
   Kept at the end so these win over the rules above. Showcase cards become a compact two-column gallery
   (screen, kind, name); code and redirect samples fit the screen instead of scrolling sideways. */
@media (max-width: 600px) {
  .sample { border-radius: 14px; }
  .sample-body { gap: 4px; padding: 12px 12px 14px; }
  .sample-body h3 { font-size: 15px; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
  .sample-body p, .sample-more { display: none; }
  .tag { padding: 0; border-radius: 0; background: none; font-size: 12px; line-height: 1.35; }
  .stage { padding: 32px 0; }
  .stage-text p { font-size: 17px; }
  .artifact { padding: 16px; }
  .codebox { padding: 14px; font-size: 11.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
  .codebox .tg { display: none; }   /* sitemap lines show the address only, so each fits on one line */
  .redirects p { grid-template-columns: auto auto minmax(0, 1fr); gap: 10px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .sample:hover .sample-shot img { object-position: top center; }
  .sample:hover { transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
@media print {
  .mast, .foot, .spill { display: none; }
  .motion :is([data-spill], .page-head) h1 { color: inherit !important; animation: none !important; }
  .page-head, .navy { background: #fff; color: #000; min-height: 0; padding: 24px 0; }
}
