/* ------------------------------------------------------------------
   Gepton on the Taste Skill kit: palette, type and the page CSS the recipes allow
   (inside visuals, panel heights, the hero window, the app frame). Loaded after the kit.
   The palette lives in the --p-* tokens only; everything else reads them.
   ------------------------------------------------------------------ */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-var.woff2") format("woff2-variations"), url("../fonts/schibsted-grotesk-var.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-italic-var.woff2") format("woff2-variations"), url("../fonts/schibsted-grotesk-italic-var.woff2") format("woff2");
  font-weight: 400 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-var.woff2") format("woff2-variations"), url("../fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 100 800; font-style: normal; font-display: swap;
}

:root {
  /* Palette: signal red on paper (docs/design/research_palette.md). Red is the brand and the one main action;
     warm ink does the structure; the page is paper and cards, windows and inputs are white above it. */
  --p-bg: #faf9f7; --p-surface: #f4f2ee; --p-ink: #16130f; --p-muted: #5e5852;
  --p-accent: #d42a20; --p-accent-ink: #ffffff; --p-action: #d42a20; --p-action-ink: #ffffff;
  --p-inv-bg: #16130f; --p-inv-surface: #221e19; --p-inv-ink: #faf9f7; --p-inv-muted: #bdb7b0;
  --p-inv-accent: #ef5a4c; --p-inv-accent-ink: #16130f; --p-inv-action: #faf9f7; --p-inv-action-ink: #16130f;
  --red-700: #b42318; --red-800: #9e1c14; --red-ink: #a3201a; --red-tint: #fdecea; --red-tint-line: #f6cfc9;
  --ok: #1f7a4d; --warn: #a15c07; --info: #2e5aac;
  --font-display: "Schibsted Grotesk", system-ui, sans-serif;
  --font-text: "Schibsted Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 600;
  --display-tracking: -0.025em;
  --display-tracking-xl: -0.035em;
}
/* Radius 8 / 12: buttons and inputs 8, cards, panels and windows 12 */
html[data-radius] { --r-sm: 8px; --r-md: 8px; --r-lg: 12px; --r-btn: 8px; }
/* Cards are white on the paper page; panels are flat sunken paper (no lit gradient grounds) */
:root, .ground-base { --card: #ffffff; --line: #e7e3de; --line-strong: #ddd8d2; }
.ground-surface { --card: #ffffff; }
.panel, .card .panel, .hero__window { background: var(--p-surface) !important; background-image: none !important; }
.panel::before { display: none !important; }
.btn--primary:hover { background: var(--red-700); }
.btn--primary:active { background: var(--red-800); }
a.link:hover, .link:hover { color: var(--red-ink); }
::selection { background: var(--red-tint); color: var(--p-ink); }

/* The site's sprite icons (Ask, search) keep their size inside kit pages */
.icon { width: 1.15em; height: 1.15em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.nav__logo .logo__dot { color: var(--accent); }
.nav__logo .logo__img { height: 32px; width: auto; }

/* ---------- Hero window: the agent inbox (light) ---------- */
.hero__window { border: 1px solid var(--line); border-radius: var(--r-lg, 12px); }
.g-win { background: #fff; color: var(--p-ink); border-radius: 12px; overflow: hidden; font: 400 14px/1.45 var(--font-text);
  box-shadow: 0 1px 2px rgb(22 19 15 / .06), 0 8px 24px -8px rgb(22 19 15 / .12), 0 0 0 1px rgb(22 19 15 / .06); }
.g-win__bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid rgb(20 16 18 / .08); font-size: 13px; color: var(--p-muted); }
.g-win__bar b { color: var(--p-ink); font-weight: 600; }
.g-win__bar .sp { flex: 1; }
.g-win__dots { display: inline-flex; gap: 6px; }
.g-win__dots i { width: 10px; height: 10px; border-radius: 50%; background: #e6e1df; }
.g-win__body { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 300px; }
.g-inbox { padding: 12px; border-right: 1px solid rgb(20 16 18 / .08); display: grid; align-content: start; gap: 4px; }
.g-inbox__q { padding: 7px 10px; margin-bottom: 6px; font-size: 13px; color: var(--p-muted); background: var(--p-surface); border-radius: 8px; }
.g-inbox__t { display: grid; grid-template-columns: 28px 1fr auto; gap: 2px 10px; padding: 9px 10px; border-radius: 10px; font-size: 13px; }
.g-inbox__t.is-on { background: var(--red-tint); box-shadow: inset 2px 0 0 var(--p-accent); }
.g-inbox__t i { grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font: 600 11px/1 var(--font-text); font-style: normal; color: var(--p-ink); background: #efe9e6; }
.g-inbox__t i[data-tone="3"] { background: #e3ece6; } .g-inbox__t i[data-tone="4"] { background: #e6e9f1; }
.g-inbox__t b { font-weight: 600; }
.g-inbox__t time { font-size: 12px; color: var(--p-muted); }
.g-inbox__t span { grid-column: 2 / -1; color: var(--p-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-chat { display: grid; gap: 10px; align-content: start; padding: 18px 20px; }
.g-msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; line-height: 1.45; background: var(--p-surface); }
.g-msg--me { justify-self: end; border-bottom-right-radius: 6px; background: #f1edea; }
.g-msg--bot { border-bottom-left-radius: 6px; background: #fff; box-shadow: 0 0 0 1px rgb(20 16 18 / .1); }
.g-msg small { display: block; margin-top: 4px; font-size: 12px; color: var(--p-muted); }
.g-tool { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--p-muted); }
.g-tool::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; }
.g-acts { display: flex; gap: 8px; }
.g-acts span { padding: 6px 12px; font-size: 13px; font-weight: 500; border-radius: 8px; box-shadow: inset 0 0 0 1px rgb(20 16 18 / .14); }
.g-acts .is-primary { color: #fff; background: var(--p-accent); box-shadow: none; }
@media (max-width: 1023px) { .g-win__body { grid-template-columns: minmax(0, 1fr); } .g-inbox { display: none; } }

/* ---------- The app frame (sections-library: app-frame; page CSS as the recipe gives it) ---------- */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
}

/* ---------- Panel heights per card group (page CSS) ---------- */
main:has(> .hero--split) #practices .panel { --p-h: 196px; }
main:has(> .hero--split) #practices .card p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
main:has(> .hero--split) #process .panel { --p-h: 300px; }
@media (max-width: 639px) { main:has(> .hero--split) #practices .panel, main:has(> .hero--split) #process .panel { --p-h: 220px; } }
.step-num { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-bottom: var(--s-3); font: 500 14px/1 var(--font-text); color: var(--ink, var(--p-ink)); border: 1px solid var(--line-strong); border-radius: 50%; }

/* ---------- Results ---------- */
.result { margin-top: auto; padding-top: var(--s-6); border-top: 1px solid var(--line); }
.result .t-stat { margin: 0; color: var(--ink, var(--p-ink)); }
.result__label { margin: 4px 0 0; }
.result__more { margin: 2px 0 0; color: var(--muted); font-size: var(--t-small); }
#results .card { display: flex; flex-direction: column; gap: var(--s-2); }
.clients-line { margin-top: var(--s-7); max-width: 62ch; }

/* ---------- FAQ: answers open, no accordion ---------- */
.faq { display: grid; gap: 0; }
.faq__item { padding: var(--s-5) 0; border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__q { margin: 0 0 var(--s-2); font: 500 var(--t-card)/1.3 var(--font-display); letter-spacing: -0.01em; }
.faq__a { margin: 0; max-width: 62ch; }
.faq__intro { margin-top: var(--s-5); }

/* ---------- Footer extras ---------- */
.footer__contact { margin: 0; }
.footer__contact a, .footer__socials a { color: inherit; }
.footer__socials { display: inline-flex; gap: var(--s-4); }

/* The statement moment fills its screen: set at heading size, vertically in the upper half like a headline */
.statement .mo-wh__text { max-width: 22ch; font: var(--display-weight) clamp(32px, 4.2vw, 60px)/1.12 var(--font-display); letter-spacing: var(--display-tracking); }

/* Logo: the name and its red full stop are one word */
.nav__logo { gap: 0; }
.nav__logo .logo__dot { margin-left: 1px; }
@media (max-width: 639px) {
  main:has(> .hero--split) #practices .card p { white-space: normal; }
  .g-win__bar > span:not(.g-win__dots):not(:nth-child(2)) { display: none; }
  .hero--centred .pill .muted { display: none; }
}
.t-stat { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: normal; }

/* =====================================================================
   Inner pages on the kit (shared components; page-specific rules go in assets/kit/pages/<area>.css)
   ===================================================================== */

/* Long reading sections (articles, legal, glossary, forms) grow with their content instead of filling exact screens */
main > section.section--flow, main > .section.section--flow { height: auto !important; min-height: 0; padding-block: var(--padt) var(--padb); }
main > section.section--flow > .wrap { height: auto; }
@media (max-width: 639px) { main > section.section--flow { padding-block: 72px 48px; } }

/* Crumbs */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 var(--s-5); padding: 0; list-style: none; font-size: var(--t-small); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }

/* Masthead: the inner-page first screen (split: words left on 6 columns, visual right) */
.masthead__grid { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 1024px) { .masthead__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: var(--gutter); } .masthead__visual, .masthead__facts { grid-column: 2; } }
.masthead__copy { display: grid; gap: var(--s-5); align-content: start; }
.masthead__copy h1 { margin: 0; max-width: 16ch; }
.masthead--solo .masthead__copy h1 { max-width: 20ch; }
.masthead__copy .hero__lead { margin: 0; max-width: 56ch; color: var(--muted); }
.masthead__note { margin: 0; font-size: var(--t-small); color: var(--muted); }
.masthead__visual > * { width: 100%; }
.masthead__visual .hero-photo { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.masthead__visual .hero-photo img, .masthead__visual > img, .masthead__visual > picture img, .masthead__visual > figure > img, .masthead__visual > figure > picture img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: var(--r-lg); }
.masthead__facts { margin: 0; padding: 0; display: grid; }
.masthead__facts > div { padding: var(--s-5) var(--s-6); }
.masthead__facts > div + div { border-top: 1px solid var(--line); }
.masthead__facts dt { font-size: var(--t-small); color: var(--muted); }
.masthead__facts dd { margin: 4px 0 0; font: 600 clamp(24px, 2.4vw, 32px)/1.1 var(--font-display); letter-spacing: -0.02em; }
.masthead--compact { height: auto !important; }
.masthead--compact .masthead__copy h1 { max-width: 22ch; }

/* Prose (articles, legal pages, long service text) */
.prose { max-width: 68ch; font-size: 17px; line-height: 1.7; color: var(--ink); }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2em; font: 600 clamp(24px, 2.4vw, 32px)/1.2 var(--font-display); letter-spacing: -0.02em; }
.prose h3 { margin-top: 1.6em; font: 600 20px/1.3 var(--font-display); }
.prose a { color: var(--red-ink); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin: 1.5em 0; padding-left: var(--s-5); border-left: 1px solid var(--line-strong); font-style: italic; color: var(--ink-2, #3d3833); }
.prose code { font: 500 .9em var(--font-mono); padding: 1px 6px; background: var(--p-surface); border-radius: 6px; }
.prose pre { overflow-x: auto; padding: var(--s-5); background: var(--p-inv-bg); color: var(--p-inv-ink); border-radius: var(--r-lg); font: 14px/1.6 var(--font-mono); }
.prose pre code { padding: 0; background: none; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
/* Phones: a wide comparison table scrolls sideways inside the column instead of widening the page */
@media (max-width: 640px) { .prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 14px; } .prose th, .prose td { min-width: 120px; } }
/* "In depth" article (kit/deep-dive): a short lead under the heading, and room between its parts */
.deep-dive__lead { margin-top: var(--s-3); max-width: 60ch; }
.deep-dive .prose h3 { margin-top: 1.8em; }
.deep-dive .prose h3:first-child { margin-top: 0; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-weight: 600; background: var(--p-surface); }
.prose img { max-width: 100%; height: auto; border-radius: var(--r-lg); }

/* Rows: a list closed by 1px rules (services, roles, specs, links) */
.rows-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.rows-list > li { border-bottom: 1px solid var(--line); }
.rows-list__link { display: grid; gap: 4px var(--gutter); padding: var(--s-5) 0; color: inherit; text-decoration: none; }
@media (min-width: 860px) { .rows-list__link { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto; align-items: baseline; } }
.rows-list__title { margin: 0; font: 600 var(--t-card)/1.3 var(--font-display); letter-spacing: -0.01em; }
.rows-list__text { margin: 0; color: var(--muted); max-width: 56ch; }
.rows-list__go { font-size: var(--t-small); font-weight: 500; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { a.rows-list__link:hover .rows-list__title, a.rows-list__link:hover .rows-list__go { color: var(--red-ink); } }

/* Tags and chips */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tag { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; font-size: 13px; font-weight: 500; color: var(--ink); background: var(--p-surface); border-radius: 999px; }
.tag--red { color: var(--red-ink); background: var(--red-tint); }

/* Classic form controls inside kit pages (contact, careers, tools keep their JS hooks) */
.field { display: grid; gap: 6px; }
.field__label, .field > label { font-size: 14px; font-weight: 500; color: var(--ink); }
.field__label .req, .req { color: var(--red-ink); }
.input, .select, .textarea, .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: 400 16px/1.4 var(--font-text); color: var(--ink);
  background: #fff; border: 1px solid #8a847d; border-radius: var(--r-sm); appearance: none; }
.textarea, .field textarea { min-height: 140px; resize: vertical; }
.select, .field select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%2316130f' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input:focus, .select:focus, .textarea:focus, .field :is(input, select, textarea):focus { outline: 2px solid var(--p-accent); outline-offset: 1px; border-color: var(--ink); }
.field__error { margin: 0; font-size: 14px; color: var(--red-ink); }
.form { display: grid; gap: var(--s-5); }
.form__row { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--p-accent); }
.alert { padding: var(--s-4) var(--s-5); border-radius: var(--r-sm); background: var(--p-surface); }
.alert--error { color: var(--red-ink); background: var(--red-tint); }
.alert--success { color: #1f7a4d; background: #e8f3ec; }

/* People */
.people { display: grid; gap: var(--gutter); grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin: 0; padding: 0; list-style: none; }
.person-tile { display: grid; gap: 4px; align-content: start; }
.person-tile__photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-lg); background: var(--p-surface); margin-bottom: var(--s-3); }
.person-tile__name { margin: 0; font: 600 18px/1.3 var(--font-display); }
.person-tile__role { margin: 0; font-size: var(--t-small); color: var(--muted); }

/* Photos (real ones only) */
.photo { margin: 0; overflow: hidden; border-radius: var(--r-lg); background: var(--p-surface); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease, cubic-bezier(.2,.8,.2,1)); }
a:hover > .photo img, .photo--link:hover img { transform: scale(1.03); }

/* ---------- Home (firm) ---------- */
.rows-list__link--2 { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) !important; }
.work-card { display: flex; flex-direction: column; gap: var(--s-2); }
.work-card .tags { margin-top: auto; padding-top: var(--s-4); }
main:has(> .hero--split) #work .grid { row-gap: var(--gutter); }
main:has(> .hero--split) #work .card p { margin: 0; }
.step-card .t-label { margin: 0; }
.process-foot { margin-top: var(--s-7); display: flex; gap: var(--s-6); }
.faces { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--s-5) 0 0; padding: 0; list-style: none; }
.faces__img { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; display: block; }
.develop { margin: 0; border-radius: var(--r-lg); overflow: hidden; height: min(560px, var(--ly-fit, 560px)); }
.develop img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023px) { .develop { height: auto; aspect-ratio: 4 / 3; margin-top: var(--s-7); } }
.quote-line { margin: var(--s-8) 0 0; display: grid; gap: var(--s-5); max-width: 860px; }
.quote-line blockquote { margin: 0; }
.quote-line blockquote p { margin: 0; font: italic 500 clamp(20px, 2vw, 26px)/1.4 var(--font-display); letter-spacing: -0.01em; }
.person { display: flex; align-items: center; gap: var(--s-3); font-size: 15px; }
.person__initial { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--red-tint); color: var(--red-ink); font-weight: 600; }
.preview-banner { position: fixed; z-index: 30; left: 50%; bottom: 16px; transform: translateX(-50%); padding: 8px 16px; font-size: 14px; font-weight: 500; color: #fff; background: var(--p-ink); border-radius: 999px; }

/* Shared form behaviour on kit pages (as on classic pages): the spam trap is off screen; errors show once a field is invalid */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field__error { display: none; align-items: center; gap: 6px; }
.field.is-invalid .field__error, .field__error:not([hidden]).is-shown, [aria-invalid="true"] ~ .field__error { display: flex; }
.field.is-invalid :is(.input, .select, .textarea, input, select, textarea) { border-color: var(--red-ink); }
@media (max-width: 859px) { .rows-list__link--2 { grid-template-columns: minmax(0, 1fr) !important; } }
.card .result, .result { border-left: 0; padding-left: 0; }
/* Site forms stack one field per row; .form__row makes a pair from 640px */
.form { grid-template-columns: minmax(0, 1fr); }
.consent .btn::after, .consent .btn .m-arrow { display: none !important; }

/* Closing band: a normal, slightly larger button pair under the heading (no full-width bar) */
.closing__cta.close--type > .btn-row { align-self: start; }
.btn.btn--close { height: 56px; padding: 0 28px; font: 500 18px/1 var(--font-text); letter-spacing: 0; }
.btn.btn--close .m-arrow { width: 12px; height: 12px; }
@media (max-width: 639px) { .closing__cta .btn-row { width: 100%; } .btn.btn--close { width: 100%; height: 52px; } }
/* Footer line under the logo: body size, muted; the heading above is the only large type in the closing */
.closing__links .footer__lede { font: 400 var(--t-body, 16px)/1.6 var(--font-text); letter-spacing: 0; color: var(--muted); max-width: 34ch; }

/* ---------- Project cards (home and Our work): AI projects first ---------- */
.work-item { display: flex; flex-direction: column; gap: var(--s-2); }
.work-item p { margin: 0; }
.work-item__label { display: flex; align-items: center; gap: 8px; }
.work-item__label .tag { min-height: 22px; padding: 0 8px; font-size: 12px; }
.work-item__role { font-weight: 500; color: var(--ink); }
.work-item__text { color: var(--muted); }
.work-item__metric { margin-top: var(--s-2) !important; }
.work-item__metric b { font: 600 22px/1 var(--font-display); letter-spacing: -0.02em; }
.work-item .tags { margin-top: auto; padding-top: var(--s-4); }
.work-item__go { margin-top: var(--s-3); }
.work-group + .work-group { margin-top: var(--s-8); }
.work-group__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-5); margin-bottom: var(--s-5); }
.work-group__head h3 { margin: 0; font: 600 var(--t-card)/1.3 var(--font-display); }
.work-group .grid { row-gap: var(--gutter); }

/* Section rhythm (owner review, 18 Nov 2026): the hero fills the first screen; every other section is as tall as its
   content with one even rhythm of space between sections, instead of exact one- or two-screen boxes that left
   40–60% of many screens empty. */
main > :is(section, .section):not(.hero):not(.masthead) { height: auto !important; min-height: 0 !important; padding-top: clamp(80px, 9vw, 128px); padding-bottom: clamp(56px, 6vw, 96px); }
main > :is(section, .section):not(.hero):not(.masthead) > .wrap { height: auto !important; display: block; }
main > :is(section, .section).g2:not(.hero) > .wrap { display: block; }
.statement { padding-block: clamp(96px, 12vw, 176px) !important; }
footer.closing { height: auto !important; padding-top: clamp(48px, 6vw, 88px) !important; min-height: 0 !important; padding-top: clamp(80px, 9vw, 128px); }
footer.closing > .wrap { height: auto !important; }
.closing__links { margin-top: clamp(64px, 8vw, 112px); }

/* ---------- Home: the practices stack (how the five practices fit together; HTML, no images) ---------- */
.rows-list__link--stack { grid-template-columns: minmax(0, 1fr) !important; gap: 4px; padding-block: 18px 20px; }
.stack-map { margin: 0; display: grid; gap: 10px; align-self: start; }
.stack-map__layer { display: grid; gap: 10px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.stack-map__layer--people { background: var(--p-surface); border-style: dashed; }
.stack-map__layer--ai { border-color: var(--red-tint-line); box-shadow: inset 0 0 0 1px var(--red-tint-line); }
.stack-map__layer--cloud { background: var(--p-inv-bg); border-color: var(--p-inv-bg); color: var(--p-inv-ink); }
.stack-map__name { margin: 0; font: 600 15px/1.3 var(--font-display); }
.stack-map__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.stack-map__chips li { padding: 5px 10px; font-size: 13px; font-weight: 500; background: var(--p-surface); border-radius: 999px; }
.stack-map__layer--ai .stack-map__chips li { background: var(--red-tint); color: var(--red-ink); }
.stack-map__layer--cloud .stack-map__chips li { background: var(--p-inv-surface); color: var(--p-inv-ink); }
.stack-map__note { margin: 0; font-size: 13px; color: var(--muted); }
@media (max-width: 1023px) { .stack-map { margin-top: var(--s-6); } }
/* Process step panels */
main:has(> .hero--split) #process .panel { --p-h: 240px; }
@media (max-width: 639px) { main:has(> .hero--split) #process .panel { --p-h: 200px; } }
.stack-map__chips li { display: inline-flex; align-items: center; gap: 6px; }
.stack-map__chips img { width: 16px; height: 16px; object-fit: contain; }
.stack-map__layer--cloud .stack-map__chips li { background: #fff; color: var(--p-ink); }
.panel--diagram { display: grid; place-items: center; padding: 16px; }
.panel--diagram .dg { width: 100%; height: 100%; }

/* ---------- Project screens (project_screen()): drawn product windows on the work cards ----------
   Shapes only: grey bars and lines stand in for data. Ink and greys; red only on the active route end. */
.work-item__visual { padding: 16px; }
.scr { width: 100%; height: 100%; display: grid; place-items: center; font-size: 12px; line-height: 16px; color: var(--ink); }
.scr-win { width: 100%; height: 100%; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  box-shadow: 0 1px 2px rgb(22 19 15 / .06), 0 8px 24px -8px rgb(22 19 15 / .12); }
.scr-head { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px; border-bottom: 1px solid var(--line); flex: none; }
.scr-head b { font-weight: 600; font-size: 12px; }
.scr-dots { display: flex; gap: 4px; } .scr-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong, #DDD8D2); }
.scr-body { display: grid; grid-template-columns: minmax(84px, 32%) 1fr; flex: 1; min-height: 0; }
.scr-nav { margin: 0; padding: 8px 6px; list-style: none; border-right: 1px solid var(--line); background: #F4F2EE; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.scr-nav li { padding: 3px 8px; border-radius: 6px; color: #5E5852; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scr-nav li.is-on { background: var(--surface); color: var(--ink); font-weight: 500; box-shadow: 0 0 0 1px var(--line); }
.scr-main { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; overflow: hidden; }
.scr-title { margin: 0; font-weight: 600; font-size: 13px; }
.scr-bars { display: flex; align-items: flex-end; gap: 5px; height: 64px; flex: none; }
.scr-bars i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: #DDD8D2; transform-origin: bottom; }
.scr-bars i:last-child { background: var(--ink); }
.scr-line { width: 100%; height: 64px; flex: none; }
.scr-line__grid { stroke: var(--line); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.scr-line__path { stroke: var(--ink); stroke-width: 2; fill: none; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.scr-cal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; flex: none; }
.scr-cal i { height: 14px; border-radius: 3px; background: #F4F2EE; border: 1px solid var(--line); }
.scr-cal i.is-on { background: var(--ink); border-color: var(--ink); }
.scr-rows { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.scr-rows li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px solid var(--line); }
.scr-row__t { font-weight: 500; white-space: nowrap; }
.scr-bar { display: block; height: 6px; width: var(--w); border-radius: 3px; background: #E7E3DE; }
.scr-chip { padding: 1px 7px; border-radius: 999px; background: #F4F2EE; border: 1px solid var(--line); color: #3D3833; font-size: 11px; white-space: nowrap; }
/* route map (phone and map frames) */
.scr-map { display: block; width: 100%; height: 100%; background: #F4F2EE; }
.scr-map__road { stroke: #E7E3DE; stroke-width: 9; fill: none; stroke-linecap: round; }
.scr-map__route { stroke: var(--ink); stroke-width: 3; fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.scr-map__from { fill: var(--surface); stroke: var(--ink); stroke-width: 3; }
.scr-map__to { fill: #D42A20; stroke: var(--surface); stroke-width: 3; }
.scr-phone { position: relative; height: 100%; aspect-ratio: 9 / 15; max-width: 100%; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 2px rgb(22 19 15 / .06), 0 8px 24px -8px rgb(22 19 15 / .12); }
.scr-phone__bar { height: 26px; display: grid; place-items: center; flex: none; border-bottom: 1px solid var(--line); }
.scr-phone .scr-map { flex: 1 1 0; min-height: 0; height: 0; }
.scr--phone .scr-phone { height: min(100%, 300px); width: auto; }
.scr-sheet { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); }
.scr-btn { display: block; text-align: center; padding: 5px; border-radius: 6px; background: var(--ink); color: var(--surface); font-weight: 500; }
.scr-mapwrap { position: relative; flex: 1; min-height: 0; }
.scr-mapwrap .scr-map { position: absolute; inset: 0; }
.scr-stops { position: absolute; left: 10px; top: 10px; width: min(62%, 220px); padding: 8px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; gap: 4px; }
.scr-stops .scr-rows li { padding: 3px 0; }
.scr-stops .scr-bar { display: none; }
.scr-stops .scr-rows li { grid-template-columns: 1fr auto; }
/* motion: the route and the line draw, the bars rise, while the pointer is on the card (once, on load, under no-preference) */
@media (prefers-reduced-motion: no-preference) {
  .work-item:hover .scr-map__route, .work-item:hover .scr-line__path { animation: scr-draw 1.4s cubic-bezier(.2, .7, .2, 1) both; }
  .work-item:hover .scr-bars i { animation: scr-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .work-item:hover .scr-bars i:nth-child(2) { animation-delay: .04s } .work-item:hover .scr-bars i:nth-child(3) { animation-delay: .08s }
  .work-item:hover .scr-bars i:nth-child(4) { animation-delay: .12s } .work-item:hover .scr-bars i:nth-child(5) { animation-delay: .16s }
  .work-item:hover .scr-bars i:nth-child(6) { animation-delay: .2s } .work-item:hover .scr-bars i:nth-child(7) { animation-delay: .24s }
  .work-item:hover .scr-bars i:nth-child(8) { animation-delay: .28s }
}
@keyframes scr-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes scr-rise { from { transform: scaleY(.15); } to { transform: scaleY(1); } }

/* ---------- Home hero: the animated diagram in place of the photograph ---------- */
.hero__media--diagram { background: #F4F2EE; border: 1px solid var(--line); display: flex; flex-direction: column; }
.hero__media--diagram .dg { flex: 1; min-height: 420px; width: 100%; }
.hero__media--diagram .ly-float { position: static; margin: 0 var(--s-5, 24px) var(--s-5, 24px); align-self: flex-start; }
@media (max-width: 1023px) {
  .hero--split .hero__media--diagram { flex: none; height: auto; min-height: 0; }
  .hero__media--diagram .dg { flex: none; height: 440px; min-height: 0; }
}
/* case study page: the project's diagram under "What we built", playing its loop */
.proof-visual .panel--diagram { aspect-ratio: 16 / 10; padding: 16px; }

/* ---------- Fuller rows (Nov 2026: "too much empty space"): statement, clients and the close each get a right column ---------- */
.statement__grid { align-items: center; row-gap: var(--s-7, 48px); }
.statement__grid .mo-wh__text { margin: 0; font-size: clamp(30px, 3.2vw, 44px); }
.statement__figure { margin: 0; display: grid; gap: 12px; }
.statement__figure .panel { padding: 20px; overflow: hidden; }
.statement__figure figcaption { font-size: 14px; }
.clients__grid { align-items: stretch; row-gap: var(--s-6, 32px); margin-top: var(--s-7, 48px); }
.quote-card { display: flex; flex-direction: column; gap: var(--s-5, 24px); margin: 0; padding: 40px; }
.quote-card__mark { width: 32px; height: 24px; fill: #D42A20; }
.quote-card blockquote { margin: 0; flex: 1; }
.quote-card blockquote p { margin: 0; font: italic 500 clamp(20px, 1.9vw, 25px)/1.42 var(--font-display); letter-spacing: -0.01em; }
.clients__list { display: flex; flex-direction: column; gap: var(--s-4, 16px); }
.clients__list h3 { margin: 0; }
.client-names { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.client-names li { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); font-weight: 500; font-size: 15px; line-height: 20px; }
@media (max-width: 639px) { .client-names { grid-template-columns: repeat(2, minmax(0, 1fr)); } .quote-card { padding: 28px; } }
/* the close: one band, words and actions left, the engineers who take the call right (real photos, Admin → Team) */
.closing__band { background: #F4F2EE; border: 1px solid var(--line); border-radius: 12px; padding: clamp(32px, 4.5vw, 64px); }
.closing__band .closing__cta { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 64px; align-items: center; }
.closing__words { display: grid; gap: 28px; justify-items: start; }
.closing__band .section-head { margin: 0; }
.closing__band .section-head p { max-width: 52ch; }
.closing__people { margin: 0; display: grid; gap: 20px; justify-self: end; width: min(100%, 400px); }
.closing__faces { display: flex; }
.closing__face { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; border: 3px solid #F4F2EE; background: var(--surface); flex: none; display: block; }
.closing__face img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* a full-length photo: zoom in on the face (Team → "Face position") */
.closing__face--zoom img { transform: scale(3.4); transform-origin: var(--fx, 50%) var(--fy, 35%); }
.closing__face + .closing__face { margin-left: -14px; }
.closing__people figcaption { display: grid; gap: 12px; }
.closing__who { margin: 0; font-weight: 600; font-size: 18px; line-height: 1.35; }
.closing__names { margin: 0; padding: 0; list-style: none; display: grid; border-top: 1px solid var(--line-strong, #DDD8D2); }
.closing__names li { padding: 9px 0; border-bottom: 1px solid var(--line-strong, #DDD8D2); font-size: 15px; display: flex; justify-content: space-between; gap: 12px; }
.closing__names b { font-weight: 500; }
@media (max-width: 899px) { .closing__band .closing__cta { grid-template-columns: 1fr; } .closing__people { justify-self: start; } }
@media (max-width: 639px) { .closing__words { justify-items: stretch; } .closing__face { width: 56px; height: 56px; } }
@media (max-width: 899px) { .closing__band .closing__cta { grid-template-columns: 1fr; } .closing__actions { align-items: stretch; } .closing__actions .btn-row { justify-content: flex-start; } }
.statement__panel { display: block; }
.statement__panel > .ui { width: 100%; }
main > section.statement { padding-bottom: clamp(24px, 3vw, 48px) !important; }
.clients__list > .link { align-self: flex-start; }

/* ---------- Long articles inside pages (kit/longread.php): reading column + sticky "On this page" ---------- */
.longread { align-items: start; }
.longread__text .prose { max-width: 68ch; }
.longread__toc { display: none; }
@media (min-width: 1024px) {
  .longread__toc { display: grid; gap: 12px; position: sticky; top: calc(var(--nav-h, 72px) + 32px); padding-top: 16px; border-top: 1px solid var(--line); }
  .longread__toc p { margin: 0; }
  .longread__toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
  .longread__toc a { color: #5E5852; text-decoration: none; font-size: 15px; line-height: 1.4; display: block; }
  .longread__toc a:hover { color: var(--ink); }
}

/* ---------- Mastheads with nothing on the right (index pages): heading left, lead and actions right, not a full screen ---------- */
.hero.masthead--solo { height: auto !important; min-height: 0 !important; padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(32px, 4vw, 56px); }
.hero.masthead--solo > .wrap { height: auto !important; }
@media (min-width: 1024px) {
  .masthead--solo .masthead__grid { display: block; }
  .masthead--solo .masthead__copy { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--gutter, 48px); row-gap: var(--s-5, 24px); align-items: end; }
  .masthead--solo .masthead__copy > :not(h1):not(.hero__lead):not(.btn-row):not(.masthead__note) { grid-column: 1 / -1; }
  .masthead--solo .masthead__copy h1 { grid-column: 1; grid-row: span 3; max-width: 18ch; align-self: end; }
  .masthead--solo .masthead__copy .hero__lead, .masthead--solo .masthead__copy .btn-row, .masthead--solo .masthead__copy .masthead__note { grid-column: 2; }
  .masthead--solo .masthead__copy .hero__lead { max-width: none; }
}
/* builder timeline: heading column left, milestones right */
.bp-timeline__grid { align-items: start; }
@media (min-width: 1024px) { .bp-timeline__head { position: sticky; top: calc(var(--nav-h, 72px) + 32px); } }
.bp-timeline__row { display: grid; grid-template-columns: 96px 1fr; gap: 24px; }
main > .hero.masthead--solo + :is(section, .section) { padding-top: clamp(24px, 3vw, 48px); }
.longread .prose h3 { margin-top: 32px; }
.closing__names b { white-space: nowrap; } .closing__names .muted { text-align: right; }

/* ---------- Logo: the owner's Gepton logo image (Settings → logo; uploads/brand/gepton-logo.png) ---------- */
.nav__logo img.logo__img { height: 28px; width: auto; display: block; }
@media (max-width: 639px) { .nav__logo img.logo__img { height: 24px; } }
.footer .nav__logo img.logo__img { height: 32px; }

/* No glows (DESIGN.md): the kit diagram's soft halo behind the core node is off everywhere */
.dg { --dg-halo: 0; }

/* ---------- Quiet details (assets/kit/gepton-details.js) ---------- */
/* anchors stop below the fixed header */
html { scroll-padding-top: calc(var(--nav-h, 72px) + 24px); }
/* a short ink rule above each section heading; it draws in once when the heading enters the view */
main .section-head h2::before, main .bp-sec h2:first-of-type::before { content: ""; display: block; width: 32px; height: 2px; margin-bottom: 20px; background: var(--ink); transform-origin: left center; }
main .hero h2::before, main .masthead h2::before, main .closing h2::before, main .card h2::before, main .panel h2::before, main .prose h2::before, main .longread h2::before { content: none; }
.g-rules main .section-head h2::before, .g-rules main .bp-sec h2:first-of-type::before { transform: scaleX(0); transition: transform .7s cubic-bezier(.2, .7, .2, 1) .1s; }
.g-rules main .section-head h2.is-drawn::before, .g-rules main .bp-sec h2.is-drawn:first-of-type::before { transform: scaleX(1); }
/* reading line on long articles */
.read-line { position: fixed; left: 0; right: 0; top: var(--nav-h, 72px); height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left center; z-index: 40; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .read-line { display: none; } }

/* ---------- Paragraph alignment: justified across the site (owner decision, 24 Nov 2026) ----------
   Body paragraphs and article list items are justified. On phones, automatic hyphenation (html lang="en") keeps
   narrow columns free of wide word gaps; from tablet width up, columns are wide enough without breaking words.
   Drawn product screens, diagrams and UI mock-ups inside panels keep their own alignment, as do centred widgets. */
main p, main .prose li, footer p {
    text-align: justify;
    text-justify: inter-word;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}
@media (min-width: 768px) {
    main p, main .prose li, footer p { hyphens: manual; -webkit-hyphens: manual; }
}
main :is(.panel, .scr, .dg, .dropzone, .doc-out__empty, nav) :is(p, li) { text-align: inherit; hyphens: manual; -webkit-hyphens: manual; }
