/* =====================================================================
   Basel Dalloul Studio — site.css (STUDIO-WEBSITE, Stage C, v01)
   One shared stylesheet. Light version only (decision 066: light is
   primary; the dark version comes later, so no dark media query yet).
   Part 1  Tokens        — values copied from bds_css_tokens_v01.css
   Part 2  Fonts         — Outfit self-hosted (OFL, production files);
                           Avenir Next LT Pro from Adobe Fonts kit oih6imb
                           (linked in the head component).
   Part 3  Glass button  — bds_css_glass-button_v04.css, verbatim
   Part 4  Layout and components
   ===================================================================== */

/* ---------- Part 1: tokens (bds_css_tokens_v01.css, light) ---------- */
:root {
  --bds-ground: #FFFFFF;
  --bds-surface: #F5F5F5;
  --bds-border: #D7D7D7;
  --bds-border-strong: #868686;
  --bds-muted: #636363;
  --bds-ink: #181818;
  --bds-accent-d: #0000FF;
  --bds-accent-upper: #FF0000;
  --bds-accent-lower: #00FF00;
  --bds-on-accent-d: #FFFFFF;

  /* Heading stack: Avenir Next LT Pro from Basel's Adobe Fonts kit oih6imb (live 2026-10-16;
     CSS family "avenir-next-lt-pro"). Outfit (self-hosted) is the fallback if the kit does not load. */
  --bds-font-heading: "avenir-next-lt-pro", "Outfit", Arial, sans-serif;
  /* Kit weights, confirmed from the served font files' PostScript names (2026-10-16):
     700 = AvenirNextLTPro-Demi, 800 = AvenirNextLTPro-Bold, 900 = AvenirNextLTPro-Heavy. */
  --bds-weight-demi: 700; --bds-weight-bold: 800; --bds-weight-heavy: 900;
  --bds-font-body: "Outfit", Arial, sans-serif;

  --bds-size-caption: 13px; --bds-line-caption: 20px;
  --bds-size-body: 16px;    --bds-line-body: 24px;
  --bds-size-lead: 20px;    --bds-line-lead: 28px;
  --bds-size-h4: 25px;      --bds-line-h4: 32px;
  --bds-size-h3: 31px;      --bds-line-h3: 40px;
  --bds-size-h2: 39px;      --bds-line-h2: 48px;
  --bds-size-h1: 49px;      --bds-line-h1: 56px;
  /* The token scale is a 1.25 ratio (13-16-20-25-31-39-49). The web
     display sizes continue the same ratio: 61, 76, 95, 119. */
  --bds-size-d1: 61px; --bds-size-d2: 76px; --bds-size-d3: 95px; --bds-size-d4: 119px;

  --bds-space-1: 4px; --bds-space-2: 8px; --bds-space-3: 12px; --bds-space-4: 16px;
  --bds-space-5: 24px; --bds-space-6: 32px; --bds-space-7: 48px; --bds-space-8: 64px; --bds-space-9: 96px;
  --bds-radius-hard: 0; --bds-radius-touch: 999px;

  /* Layout: the approved header (06, v12b) sits on a 96 px side margin
     at 1440. Below 1024 the margin steps down the space scale. */
  --gutter: var(--bds-space-5);
  --margin: var(--bds-space-9);
  --section: calc(var(--bds-space-9) + var(--bds-space-8)); /* 160 */
  --max: 1440px;
  --header-h: 96px;
  color-scheme: light;
}
@media (max-width: 1023px) { :root { --margin: var(--bds-space-7); --section: var(--bds-space-9); } }
@media (max-width: 599px)  { :root { --margin: var(--bds-space-5); --section: var(--bds-space-8); --header-h: 80px; } } /* 48 px mark + 2u (16 px) above and below (045) */

/* ---------- Part 2: fonts ---------- */
@font-face { font-family: "Outfit"; src: url("/assets/fonts/Outfit-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("/assets/fonts/Outfit-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- Part 3: glass button v04 (verbatim, decision 055) ---------- */
/* Basel Dalloul Studio — glass button component v04 (decision 055).
   Primary = blue-tinted glass; secondary = neutral glass (light grounds) / smoked glass (inside .on-dark).
   States: default, :hover (.is-hover), :active (.is-pressed), :focus-visible (.is-focus), :disabled (.is-disabled).
   Focus ring: 2 px #FFFFFF inner + 2 px #181818 outer, so one of the two always reaches >= 3:1 on any ground.
   Disabled keeps >= 4.5:1 text (muted token) on a near-opaque fill.
   Fallback: @supports not backdrop-filter -> solid fills (#0000FF / #FFFFFF / #2B2B2B).
   Not for email: mail clients do not support backdrop-filter; email keeps plain links.
   Measured in Chromium on white, black, red-light and blue-dark grounds (tests/measurements-06-v04.json). */
.btn{display:inline-flex;align-items:center;justify-content:center;height:48px;min-width:48px;padding:0 24px;border-radius:24px;font:600 16px/20px Outfit,Arial,sans-serif;letter-spacing:.01em;text-decoration:none;border:1px solid transparent;cursor:pointer;position:relative;
 -webkit-backdrop-filter:blur(18px) saturate(160%);backdrop-filter:blur(18px) saturate(160%);transition:background .15s,box-shadow .15s,transform .1s}
.btn-primary{color:#FFFFFF;background:linear-gradient(180deg,rgba(56,56,255,.86) 0%,rgba(0,0,255,.92) 100%);border-color:rgba(255,255,255,.50);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.65),inset 0 -10px 18px rgba(0,0,90,.20),0 6px 18px rgba(0,0,70,.22)}
.btn-primary.is-hover,.btn-primary:hover{background:linear-gradient(180deg,rgba(72,72,255,.88) 0%,rgba(0,0,255,.95) 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.80),inset 0 -10px 18px rgba(0,0,90,.16),0 10px 24px rgba(0,0,70,.28)}
.btn-primary.is-pressed,.btn-primary:active{background:linear-gradient(180deg,rgba(0,0,210,.92) 0%,rgba(0,0,235,.95) 100%);box-shadow:inset 0 2px 6px rgba(0,0,60,.45),0 2px 6px rgba(0,0,70,.18);transform:translateY(1px)}
.btn-secondary{color:#181818;background:linear-gradient(180deg,rgba(255,255,255,.78) 0%,rgba(255,255,255,.52) 100%);border-color:rgba(24,24,24,.16);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.95),inset 0 -8px 14px rgba(0,0,0,.04),0 4px 14px rgba(0,0,0,.08)}
.btn-secondary.is-hover,.btn-secondary:hover{background:linear-gradient(180deg,rgba(255,255,255,.90) 0%,rgba(255,255,255,.66) 100%);box-shadow:inset 0 1px 0 #FFFFFF,0 8px 20px rgba(0,0,0,.12)}
.btn-secondary.is-pressed,.btn-secondary:active{background:linear-gradient(180deg,rgba(235,235,235,.82) 0%,rgba(250,250,250,.70) 100%);box-shadow:inset 0 2px 6px rgba(0,0,0,.14);transform:translateY(1px)}
.on-dark .btn-secondary{color:#FFFFFF;background:linear-gradient(180deg,rgba(255,255,255,.20) 0%,rgba(255,255,255,.06) 100%),linear-gradient(rgba(16,16,16,.55),rgba(16,16,16,.55));border-color:rgba(255,255,255,.30);box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 6px 18px rgba(0,0,0,.35)}
.on-dark .btn-secondary.is-hover,.on-dark .btn-secondary:hover{background:linear-gradient(180deg,rgba(255,255,255,.28) 0%,rgba(255,255,255,.10) 100%),linear-gradient(rgba(16,16,16,.50),rgba(16,16,16,.50))}
.on-dark .btn-secondary.is-pressed,.on-dark .btn-secondary:active{background:linear-gradient(180deg,rgba(255,255,255,.08) 0%,rgba(255,255,255,.14) 100%),linear-gradient(rgba(16,16,16,.65),rgba(16,16,16,.65));box-shadow:inset 0 2px 6px rgba(0,0,0,.5)}
.btn.is-focus,.btn:focus-visible{outline:2px solid #181818;outline-offset:2px;box-shadow:0 0 0 2px #FFFFFF}
.btn.is-disabled,.btn:disabled{cursor:not-allowed;transform:none;color:#636363;background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(242,242,242,.95));border-color:rgba(24,24,24,.12);box-shadow:none}
.on-dark .btn.is-disabled,.on-dark .btn:disabled{color:#B1B1B1;background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.03)),linear-gradient(rgba(16,16,16,.78),rgba(16,16,16,.78));border-color:rgba(255,255,255,.16)}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){ .btn-primary{background:#0000FF} .btn-secondary{background:#FFFFFF} .on-dark .btn-secondary{background:#2B2B2B} .btn.is-disabled,.btn:disabled{background:#F2F2F2} .on-dark .btn.is-disabled,.on-dark .btn:disabled{background:#1F1F1F} }
.no-glass .btn{-webkit-backdrop-filter:none;backdrop-filter:none} .no-glass .btn-primary{background:#0000FF} .no-glass .btn-secondary{background:#FFFFFF} .no-glass.on-dark .btn-secondary{background:#2B2B2B} .no-glass .btn.is-disabled{background:#F2F2F2} .no-glass.on-dark .btn.is-disabled{background:#1F1F1F}

/* ---------- Part 4: base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--bds-font-body);
  font-size: var(--bds-size-body);
  line-height: var(--bds-line-body);
  color: var(--bds-ink);
  background: var(--bds-ground);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
.nb { white-space: nowrap; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* Links (v05, Basel 2026-10-17, deviation from the identity rule "links are blue and underlined"):
   section calls to action are secondary glass buttons; inline text links are ink with a subtle grey underline. */
a { color: var(--bds-ink); text-decoration: underline; text-decoration-color: var(--bds-border-strong); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--bds-ink); outline-offset: 3px; border-radius: 2px; }

/* Headings: Avenir Next, English headlines in capitals (055). Weights:
   H1 Heavy, H2 Bold, H3 Demi (decision 002; Gate C) — kit numbers 900 / 800 / 700. */
h1, h2, h3, h4 { font-family: var(--bds-font-heading); text-transform: uppercase; margin: 0; color: var(--bds-ink); }
h1 { font-weight: var(--bds-weight-heavy); letter-spacing: -0.01em; }
h2 { font-weight: var(--bds-weight-bold); font-size: var(--bds-size-h1); line-height: var(--bds-line-h1); letter-spacing: -0.005em; }
@media (max-width: 1023px) { h2 { font-size: var(--bds-size-h2); line-height: var(--bds-line-h2); } }
@media (max-width: 599px)  { h2 { font-size: var(--bds-size-h3); line-height: var(--bds-line-h3); } }
h3 { font-weight: var(--bds-weight-demi); font-size: var(--bds-size-h4); line-height: var(--bds-line-h4); }

.skip { position: absolute; left: var(--margin); top: -100px; background: var(--bds-ink); color: #fff; padding: 12px 16px; z-index: 100; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.section { padding: var(--section) 0; }
.section + .section { padding-top: 0; }
.rule { border-top: 1px solid var(--bds-border); }

.eyebrow { font-size: var(--bds-size-caption); line-height: var(--bds-line-caption); letter-spacing: 0.08em; text-transform: uppercase; color: var(--bds-muted); font-weight: 600; }
.lead { font-size: var(--bds-size-lead); line-height: var(--bds-line-lead); }
.muted { color: var(--bds-muted); }
.actions { display: flex; flex-wrap: wrap; gap: var(--bds-space-4); }
.textlink { font-weight: 600; }

/* ---------- Header (component) — extends the approved 06 header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid var(--bds-border); }
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.brand { display: block; line-height: 0; }
.brand img { height: 48px; width: auto; } /* full-colour lockup, mark 48 px (decision 045) */
.nav ul { display: flex; gap: var(--bds-space-6); }
.nav a { color: var(--bds-ink); text-decoration: none; font-size: var(--bds-size-body); line-height: 44px; display: inline-block; min-height: 44px; }
.nav a:hover, .nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; }
.menu-btn { display: none; }
@media (max-width: 767px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -12px; background: none; border: 0; color: var(--bds-ink); cursor: pointer; }
  .menu-btn:focus-visible { outline: 2px solid var(--bds-ink); outline-offset: 2px; border-radius: 4px; }
  .menu-btn svg { width: 24px; height: 24px; }
  .nav { position: absolute; left: 0; right: 0; top: var(--header-h); background: var(--bds-ground); border-bottom: 1px solid var(--bds-border); display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: var(--bds-space-3) var(--margin) var(--bds-space-6); }
  .nav li + li { border-top: 1px solid var(--bds-border); }
  .nav a { display: block; font-family: var(--bds-font-heading); font-weight: var(--bds-weight-bold); text-transform: uppercase; font-size: var(--bds-size-h4); line-height: 64px; }
}
.no-js .menu-btn { display: none; }
@media (max-width: 767px) { .no-js .site-header { position: static; } .no-js .nav { position: static; display: block; border: 0; flex-basis: 100%; } .no-js .site-header .wrap { height: auto; flex-wrap: wrap; padding-top: 16px; } .no-js .nav ul { padding-left: 0; padding-right: 0; } }

/* ---------- Home: hero ---------- */
.hero { --h1: var(--bds-size-d4); padding: var(--bds-space-9) 0 0; }
@media (max-width: 767px) { .hero { padding-top: var(--bds-space-8); } }
.hero .grid { align-items: end; }
.hero-text { grid-column: 1 / span 7; padding-bottom: var(--bds-space-7); }
.hero h1, .case-head h1 { font-size: var(--bds-size-d4); line-height: 0.92; }
@media (max-width: 1279px) { .hero h1, .case-head h1 { font-size: var(--bds-size-d2); } .hero { --h1: var(--bds-size-d2); } } /* 76 from 600 to 1279: the scale only steps down as the screen narrows */
@media (max-width: 599px)  { .hero h1, .case-head h1 { font-size: var(--bds-size-d1); } .hero { --h1: var(--bds-size-d1); } }
.hero .subline { margin-top: var(--bds-space-7); font-size: var(--bds-size-h4); line-height: var(--bds-line-h4); max-width: 22em; }
.hero .support { margin-top: var(--bds-space-5); max-width: 34em; color: var(--bds-muted); font-size: var(--bds-size-lead); line-height: var(--bds-line-lead); }
.hero .actions { margin-top: var(--bds-space-7); }
.hero-portrait { grid-column: 9 / span 4; }
.hero-portrait img { width: 100%; max-width: 420px; margin-left: auto; }
/* v05 (Basel 2026-10-17): the seated portrait fills the hero text block height. The file is cropped so the top of the
   head is its top edge; it starts at the H1 cap line (0.11 em below the H1 box: Avenir Next LT Pro Heavy, cap 0.71,
   ascent 0.98, descent 0.25, line-height 0.92, measured in Chromium) and ends with the floor shadow at the block bottom. */
.hero .hero-portrait { grid-column: 8 / span 5; position: relative; align-self: stretch; }
.hero .hero-portrait img { position: absolute; right: 0; top: calc(var(--h1) * 0.11); bottom: 0; height: calc(100% - var(--h1) * 0.11); width: auto; max-width: none; margin: 0; }
/* v06 (Basel round 2): 7% larger, head 0.1 em above the H1 cap line (his red line), 48 px further left. The feet and shadow
   run 7% past the text block into the section space below. */
@media (min-width: 768px) { .hero .hero-portrait img { top: calc(var(--h1) * 0.01); bottom: auto; height: calc((100% - var(--h1) * 0.11) * 1.07); right: var(--bds-space-7); } }
@media (min-width: 768px) and (max-width: 1100px) { .hero .hero-portrait img { right: 0; } } /* keeps clear of the support line at 1024 */
@media (max-width: 767px) {
  .hero-text { grid-column: 1 / span 12; padding-bottom: 0; }
  .hero-portrait { grid-column: 1 / span 12; margin-top: var(--bds-space-7); }
  .hero-portrait img { margin: 0 auto; max-width: 360px; }
  .hero .hero-portrait { grid-column: 1 / span 12; position: static; }
  .hero .hero-portrait img { position: static; height: auto; width: 100%; max-width: 320px; margin: 0 auto; }
}


/* ---------- Two-column text sections ---------- */
.split .label { grid-column: 1 / span 5; }
.split .body { grid-column: 7 / span 6; }
.split .body > * + * { margin-top: var(--bds-space-5); }
.split .body p { font-size: var(--bds-size-lead); line-height: var(--bds-line-lead); }
.statement { font-family: var(--bds-font-heading); font-weight: var(--bds-weight-bold); font-size: var(--bds-size-h4) !important; line-height: var(--bds-line-h4) !important; padding-top: var(--bds-space-5); border-top: 1px solid var(--bds-ink); }
@media (max-width: 767px) {
  .split .label, .split .body { grid-column: 1 / span 12; }
  .split .body { margin-top: var(--bds-space-6); }
}

/* ---------- Steps ---------- */
/* v06: grey band (surface token, full width) for the process sections: quiet light-grey numbers, ink titles, muted text. */
.band { background: var(--bds-surface); padding: var(--section) 0 !important; }
.band + .section { padding-top: var(--section); }
.steps { counter-reset: step; margin-top: var(--bds-space-8); }
.steps li { grid-column: span 4; counter-increment: step; border-top: 1px solid var(--bds-border); padding-top: var(--bds-space-5); position: relative; }
/* The number is a quiet layer (the list order already carries it): 119 px, border-token grey, shown whole above the title. */
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--bds-font-heading); font-weight: var(--bds-weight-heavy); font-size: var(--bds-size-d4); line-height: 1; color: var(--bds-border); letter-spacing: -0.02em; margin-bottom: var(--bds-space-5); } /* v06b: whole number, clear space before the title */
.steps strong { position: relative; display: block; color: var(--bds-ink); font-family: var(--bds-font-heading); font-weight: var(--bds-weight-bold); text-transform: uppercase; font-size: var(--bds-size-h4); line-height: var(--bds-line-h4); margin-bottom: var(--bds-space-3); }
.steps p { font-size: var(--bds-size-body); line-height: var(--bds-line-body); color: var(--bds-muted); }
@media (max-width: 599px) { .steps li::before { font-size: var(--bds-size-d2); margin-bottom: var(--bds-space-4); } }
.after-link { margin-top: var(--bds-space-7); }
@media (max-width: 767px) { .steps li { grid-column: span 12; } .steps li + li { margin-top: var(--bds-space-7); } }

/* ---------- Work tiles (v05; data in src/_data/work-tiles.json) ----------
   Square tiles, three across. Hover or keyboard focus: a 64% ink overlay with the project details.
   Touch screens (no hover): no overlay; a small caption under each tile instead. */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin-top: var(--bds-space-7); }
.tile { position: relative; container-type: inline-size; }
.tile-link { display: block; position: relative; color: var(--bds-ink); text-decoration: none; }
.tile-media { aspect-ratio: 1 / 1; overflow: hidden; border: 1px solid var(--bds-border); background: var(--bds-ground); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .3s ease; }
.tile-info { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--bds-space-3); padding: var(--bds-space-6); background: rgba(24, 24, 24, 0.64); color: #FFFFFF; opacity: 0; transition: opacity .2s ease; }
.tile-meta { font-size: var(--bds-size-caption); line-height: var(--bds-line-caption); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.tile-name { font-size: var(--bds-size-h4); line-height: var(--bds-line-h4); font-weight: var(--bds-weight-bold); color: inherit; }
.tile-line { font-size: var(--bds-size-body); line-height: var(--bds-line-body); max-width: 30em; }
.tile-cta { align-self: flex-start; margin-top: var(--bds-space-3); display: inline-flex; align-items: center; height: 40px; padding: 0 20px; border-radius: 20px; font-weight: 600; color: var(--bds-ink); border: 1px solid rgba(255,255,255,.70);
  background: linear-gradient(180deg,rgba(255,255,255,.92) 0%,rgba(255,255,255,.78) 100%); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 1px 0 #FFFFFF, inset 0 -8px 14px rgba(0,0,0,.05), 0 6px 18px rgba(0,0,0,.25); } /* v06: white glass (Basel), the light secondary button on the dark overlay */
.tile-link:hover .tile-info, .tile-link:focus-visible .tile-info { opacity: 1; }
.tile-link:hover .tile-media img, .tile-link:focus-visible .tile-media img { transform: scale(1.04); filter: blur(8px); } /* the logo behind softens so the details read cleanly */
.tile-link:focus-visible { outline: 2px solid var(--bds-ink); outline-offset: 3px; border-radius: 0; }
@container (max-width: 320px) { .tile-line { display: none; } .tile-info { padding: var(--bds-space-5); } }
@media (hover: none) {
  .tile-info { position: static; opacity: 1; background: none; color: var(--bds-ink); padding: var(--bds-space-3) 0 0; gap: var(--bds-space-1); }
  .tile-meta { color: var(--bds-muted); }
  .tile-name { font-size: var(--bds-size-body); line-height: var(--bds-line-body); }
  .tile-line, .tile-cta { display: none; }
}
@media (max-width: 599px) { .tiles { grid-template-columns: minmax(0, 1fr); row-gap: var(--bds-space-6); } }

/* ---------- Services list ---------- */
.services { margin-top: var(--bds-space-8); row-gap: 0; }
.services li { grid-column: span 6; border-top: 1px solid var(--bds-border); padding: var(--bds-space-5) 0 var(--bds-space-6); font-size: var(--bds-size-lead); line-height: var(--bds-line-lead); }
.services li strong { font-weight: 600; }
@media (max-width: 767px) { .services li { grid-column: span 12; } }

/* ---------- Short about ---------- */
.about .portrait { grid-column: 1 / span 4; position: relative; }
/* v05 arch slot: very light grey (surface token) with a round top, as tall as the text block beside it. */
.arch { position: absolute; top: 0; bottom: 0; left: 0; aspect-ratio: 4 / 5; max-width: 100%; background: var(--bds-surface); border-radius: var(--bds-radius-touch) var(--bds-radius-touch) 0 0; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.arch img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.about .text { grid-column: 6 / span 7; align-self: center; }
.about .text h2 { margin-bottom: var(--bds-space-5); }
.numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin: var(--bds-space-7) 0; }
.numbers li { border-top: 1px solid var(--bds-ink); padding-top: var(--bds-space-4); color: var(--bds-muted); }
.numbers strong { display: block; color: var(--bds-ink); font-family: var(--bds-font-heading); font-weight: var(--bds-weight-heavy); font-size: var(--bds-size-d2); line-height: 1; margin-bottom: var(--bds-space-3); }
@media (max-width: 767px) { .about .portrait { grid-column: 1 / span 5; } .about .text { grid-column: 7 / span 6; } .numbers strong { font-size: var(--bds-size-h2); } }
@media (max-width: 767px) {
  .about .portrait { grid-column: 1 / span 12; max-width: 320px; position: static; }
  .about .portrait .arch { position: relative; width: 100%; }
  .about .text { grid-column: 1 / span 12; margin-top: var(--bds-space-7); }
  .numbers strong { font-size: var(--bds-size-h2); }
}

/* ---------- Closing call to action, with the blue-light gradient ---------- */
.cta { position: relative; border-top: 1px solid var(--bds-border); overflow: hidden; }
.cta .wrap { position: relative; z-index: 1; padding-top: var(--section); padding-bottom: var(--section); }
.cta-text { grid-column: 1 / span 6; }
.cta-text h2 { font-size: var(--bds-size-d2); line-height: 1; font-weight: var(--bds-weight-heavy); }
@media (max-width: 1023px) { .cta-text h2 { font-size: var(--bds-size-d1); } }
@media (max-width: 599px)  { .cta-text h2 { font-size: var(--bds-size-h1); line-height: var(--bds-line-h1); } }
.cta-text p { margin: var(--bds-space-5) 0 var(--bds-space-7); }
/* Panel rendered at its own shape (720 x 700, 2x 1440 x 1400) with render_gradients.py "one blue light W H" (gradients.md 6), so nothing is cropped from the quiet side; anchored left so the quiet edge (#FAFAFF) meets the white text half. */
/* v05: the panel is wider and its left part fades to transparent through a mask, so there is no edge against the white (Basel 2026-10-17). */
/* v06 (Basel round 2): the left edge is an irregular soft wave, like the gradient's own right side: an SVG mask (wave path,
   left-to-right ramp, blurred), stretched to the panel. */
.cta-field { --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='0'/%3E%3Cstop offset='.42' stop-color='%23fff' stop-opacity='.85'/%3E%3Cstop offset='.6' stop-color='%23fff'/%3E%3C/linearGradient%3E%3Cfilter id='b' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeGaussianBlur stdDeviation='5 4'/%3E%3C/filter%3E%3C/defs%3E%3Cpath filter='url(%23b)' fill='url(%23g)' d='M210-10H62C40 4 30 14 44 26S82 36 70 50 34 62 48 76 92 84 84 110H210Z'/%3E%3C/svg%3E");
  -webkit-mask-image: var(--wave); mask-image: var(--wave); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.cta-field { position: absolute; top: 0; right: 0; bottom: 0; width: 68%; background: url("/assets/brand/bds_gradient_blue-light_720x700_v02.webp") left center / cover no-repeat; background-image: image-set(url("/assets/brand/bds_gradient_blue-light_720x700_v02.webp") 1x, url("/assets/brand/bds_gradient_blue-light_1440x1400_v02.webp") 2x); }

/* ---------- Footer (component) — v05: one row, every item centred on the 48 px mark and no taller than it ---------- */
.site-footer { background: var(--bds-surface); border-top: 1px solid var(--bds-border); padding: var(--bds-space-7) 0; color: var(--bds-muted); }
.site-footer .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: var(--bds-space-2) var(--bds-space-6); }
.footer-mark { width: 48px; height: 48px; flex: none; }
.footer-tagline { font-family: var(--bds-font-heading); font-weight: var(--bds-weight-bold); text-transform: uppercase; font-size: var(--bds-size-caption); line-height: var(--bds-line-caption); letter-spacing: 0.08em; }
.footer-links { display: flex; align-items: center; gap: var(--bds-space-5); }
.footer-links a { display: inline-flex; align-items: center; gap: var(--bds-space-2); min-height: 44px; color: var(--bds-muted); text-decoration: none; font-size: var(--bds-size-caption); line-height: var(--bds-line-caption); }
.footer-links a:hover, .footer-links a[aria-current] { color: var(--bds-ink); text-decoration: underline; text-underline-offset: 0.25em; }
.ico { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.15; stroke-linecap: round; stroke-linejoin: round; } /* v06 (Basel): thinner and smaller: 20-unit grid shown at 14 px, stroke renders at 1.5 px */
.footer-copy { margin-left: auto; font-size: var(--bds-size-caption); line-height: var(--bds-line-caption); }
@media (max-width: 767px) { .footer-copy { margin-left: 0; flex-basis: 100%; } }
@media (max-width: 767px) {
  .site-footer .wrap { flex-direction: column; align-items: flex-start; gap: var(--bds-space-4); }
  .footer-links { flex-direction: column; align-items: flex-start; gap: 0; }
}

/* ---------- Case study ---------- */
.breadcrumb { padding-top: var(--bds-space-7); font-size: var(--bds-size-caption); line-height: var(--bds-line-caption); }
.breadcrumb ol { display: flex; gap: var(--bds-space-2); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--bds-space-2); color: var(--bds-muted); }
.breadcrumb [aria-current] { color: var(--bds-muted); }
.breadcrumb a { display: inline-block; padding: 2px 0; min-height: 24px; }
.case-head { padding: var(--bds-space-8) 0 var(--bds-space-8); }
.case-head h1 { grid-column: 1 / span 12; }
.case-head .lead { grid-column: 1 / span 7; margin-top: var(--bds-space-6); font-size: var(--bds-size-h4); line-height: var(--bds-line-h4); }
.facts { margin-top: var(--bds-space-8); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gutter); }
.facts div { border-top: 1px solid var(--bds-ink); padding-top: var(--bds-space-3); }
.facts dt { font-size: var(--bds-size-caption); line-height: var(--bds-line-caption); letter-spacing: 0.08em; text-transform: uppercase; color: var(--bds-muted); font-weight: 600; }
.facts dd { margin: var(--bds-space-2) 0 0; }
@media (max-width: 767px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--bds-space-5); } .case-head .lead { grid-column: 1 / span 12; } }
@media (max-width: 599px)  { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts div:last-child { grid-column: 1 / -1; } }

figure { margin: 0; }
.shot { border: 1px solid var(--bds-border); background: var(--bds-ground); }
.shot img { width: 100%; }
figcaption { margin-top: var(--bds-space-3); font-size: var(--bds-size-caption); line-height: var(--bds-line-caption); color: var(--bds-muted); }
.case-hero { padding-bottom: 0; }

.gallery { row-gap: var(--bds-space-7); margin-top: var(--bds-space-8); }
.gallery .full { grid-column: 1 / span 12; }
.gallery .half { grid-column: span 6; }
@media (max-width: 767px) { .gallery .half { grid-column: span 12; } }

.delivered li { padding: var(--bds-space-4) 0; border-top: 1px solid var(--bds-border); font-size: var(--bds-size-lead); line-height: var(--bds-line-lead); }
.delivered li:last-child { border-bottom: 1px solid var(--bds-border); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Tablet and phone: no gradient panel; a strip would leave a hard edge against the text (047). */
@media (max-width: 767px) { .cta-text { grid-column: 1 / span 12; } .cta-field { display: none; } }

/* ---------- v03: inner pages (Work, Services, About, Contact, Privacy, 404) ---------- */
.case-head .intro { grid-column: 1 / span 7; margin-top: var(--bds-space-6); }
@media (max-width: 767px) { .case-head .intro { grid-column: 1 / span 12; } }

/* Rows: a label column and a text column, divided by rules (service lines, steps, ways to reach me) */
.rows > li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); border-top: 1px solid var(--bds-border); padding: var(--bds-space-6) 0; }
.rows > li:last-child { border-bottom: 1px solid var(--bds-border); }
.rows .row-label { grid-column: 1 / span 5; }
.rows .row-body { grid-column: 7 / span 6; font-size: var(--bds-size-lead); line-height: var(--bds-line-lead); }
.rows h3 { font-weight: var(--bds-weight-bold); }
.rows .row-title { font-size: var(--bds-size-h4); line-height: var(--bds-line-h4); font-weight: var(--bds-weight-bold); } /* service names are H2 for heading order, set at H3 size */
/* Numbered rows: the number takes the grid's normal 2-column label, the text follows at column 3 */
.numbered .row-label { grid-column: 1 / span 2; }
.numbered .row-body { grid-column: 3 / span 8; }
@media (max-width: 767px) { .numbered .row-label, .numbered .row-body { grid-column: 1 / span 12; } }
@media (max-width: 767px) { .rows .row-label, .rows .row-body { grid-column: 1 / span 12; } .rows .row-body { margin-top: var(--bds-space-3); } }

.numbered { counter-reset: n; margin-top: var(--bds-space-8); }
.numbered > li { counter-increment: n; }
.numbered .row-label::before { content: counter(n, decimal-leading-zero); display: block; font-family: var(--bds-font-heading); font-weight: var(--bds-weight-heavy); font-size: var(--bds-size-h1); line-height: 1; }
.band .numbered .row-label::before { color: var(--bds-border); font-size: var(--bds-size-d2); line-height: 1; letter-spacing: -0.02em; }
@media (max-width: 767px) { .band .numbered .row-label::before { margin-bottom: var(--bds-space-3); } } /* v06 band: quiet numbers */
.band .numbered .row-body { color: var(--bds-muted); }
.band .numbered .row-body strong { color: var(--bds-ink); }
.numbered .row-body strong { font-weight: 600; }
.points { margin-top: var(--bds-space-7); }
.points li { border-top: 1px solid var(--bds-border); padding: var(--bds-space-5) 0; font-size: var(--bds-size-lead); line-height: var(--bds-line-lead); }
.points li:last-child { border-bottom: 1px solid var(--bds-border); }
.points strong { font-weight: 600; }

/* About */
.about-hero { padding: var(--bds-space-8) 0 0; }
.about-hero .grid { align-items: end; }
.about-hero h1 { grid-column: 1 / span 8; font-size: var(--bds-size-d2); line-height: 0.95; align-self: center; }
.about-hero .hero-portrait { grid-column: 9 / span 4; }
.reading { grid-column: 1 / span 7; }
.reading p { font-size: var(--bds-size-lead); line-height: var(--bds-line-lead); }
.reading p + p { margin-top: var(--bds-space-5); }
.reading .numbers { margin-top: 0; }
@media (max-width: 767px) {
  .about-hero h1 { grid-column: 1 / span 12; font-size: var(--bds-size-d1); }
  .about-hero .hero-portrait { grid-column: 1 / span 12; margin-top: var(--bds-space-7); }
  .reading { grid-column: 1 / span 12; }
}
@media (max-width: 599px) { .about-hero h1 { font-size: var(--bds-size-h1); line-height: var(--bds-line-h1); } }

/* Contact */
.contact-list .row-label { grid-column: 1 / span 3; }
.contact-list .row-body { grid-column: 4 / span 9; font-size: var(--bds-size-h4); line-height: var(--bds-line-h4); }
.contact-list .row-body a { overflow-wrap: anywhere; }
@media (max-width: 767px) { .contact-list .row-label, .contact-list .row-body { grid-column: 1 / span 12; } }
.contact-actions { margin-top: var(--bds-space-7); }

/* Privacy: a reading column with smaller section headings */
.prose { grid-column: 1 / span 8; }
.prose h2 { font-size: var(--bds-size-h4); line-height: var(--bds-line-h4); margin: var(--bds-space-7) 0 var(--bds-space-4); }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: var(--bds-size-lead); line-height: var(--bds-line-lead); }
.prose p + p { margin-top: var(--bds-space-4); }
.prose .updated { margin-top: var(--bds-space-7); color: var(--bds-muted); font-size: var(--bds-size-body); }
@media (max-width: 767px) { .prose { grid-column: 1 / span 12; } }

.closing { padding-bottom: var(--section); }
.tight { padding-bottom: var(--bds-space-9); }
/* Short pages (404, Contact): the footer sits at the bottom of the screen. */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }

/* ---------- v06 Home 1.6: wide sofa photo with glass bubbles ----------
   >=1024: the photo spans the container (16:9); the name bubble sits on his right (the viewer's left), the stats and the
   button on the other side. Below 1024: the photo, then the bubbles as stacked cards. */
.sofa-stage { position: relative; }
.sofa-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--bds-space-5); background: var(--bds-surface); }
.bubble { background: linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.86) 100%); /* v06: .86 floor measured so muted labels pass AA over the darkest blurred photo pixel */ -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255,255,255,.85); border-radius: var(--bds-space-5); box-shadow: inset 0 1px 0 #FFFFFF, 0 10px 30px rgba(24,24,24,.10); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .bubble { background: rgba(255,255,255,.94); } }
.bubble-name { padding: var(--bds-space-6); }
.bubble-name h2 { font-size: var(--bds-size-h3); line-height: var(--bds-line-h3); margin-bottom: var(--bds-space-3); }
.bubble-name p { font-size: var(--bds-size-body); line-height: var(--bds-line-body); }
.bubble-stats { display: flex; flex-direction: column; gap: var(--bds-space-3); }
.bubble-stats .bubble { padding: var(--bds-space-4) var(--bds-space-5); color: var(--bds-muted); font-size: var(--bds-size-caption); line-height: var(--bds-line-caption); }
.bubble-stats strong { display: block; color: var(--bds-ink); font-family: var(--bds-font-heading); font-weight: var(--bds-weight-heavy); font-size: var(--bds-size-h2); line-height: 1; margin-bottom: var(--bds-space-1); }
.bubble-cta { margin-top: var(--bds-space-2); }
@media (min-width: 768px) {
  /* Placed on photo 19 B's free zones (measured on the photo): fingertips measured at 26.7% (left) and 74.1% (right) across, 20–41% down;
     his body and legs run 40–60% across. The name bubble covers the left sofa arm and cushion, the stats the right wall and sofa side. */
  .bubble-name { position: absolute; left: 3%; top: 50%; transform: translateY(-50%); width: 22%; }
  .bubble-stats { position: absolute; right: 3%; top: 50%; transform: translateY(-50%); width: 18%; }
}
@media (min-width: 768px) and (max-width: 1279px) {
  .bubble-name { padding: var(--bds-space-5); }
  .bubble-name h2 { font-size: var(--bds-size-h4); line-height: var(--bds-line-h4); margin-bottom: var(--bds-space-2); }
  .bubble-name p { font-size: var(--bds-size-caption); line-height: var(--bds-line-caption); }
  .bubble-stats { gap: var(--bds-space-2); }
  .bubble-stats .bubble { padding: var(--bds-space-3) var(--bds-space-4); }
  .bubble-stats strong { font-size: var(--bds-size-h4); }
  .bubble-cta { margin-top: 0; }
}
@media (max-width: 767px) {
  .sofa-photo { border-radius: var(--bds-space-4); }
  .bubble-name { margin-top: var(--bds-space-5); }
  .bubble-stats { margin-top: var(--bds-space-3); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--bds-space-3); }
  .bubble-cta { grid-column: 1 / -1; }
  .about-sofa .bubble { background: var(--bds-surface); border-color: var(--bds-border); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (max-width: 599px) { .bubble-stats { grid-template-columns: minmax(0, 1fr); } }

/* ---------- v07 Home 1.6: full-bleed moodboard photo with scattered glass labels (Basel 2026-10-17) ----------
   The photo (max 1920 wide) sits on its own edge column stretched across the section, so the wall continues edge to edge;
   its top and bottom already fade to white. Labels: the identity's glass recipe (blur + saturate, light white tint, thin
   light border, soft shadow), ink text, scattered on calm wall areas, never over him (he spans 37-63 % across). */
.about-mood { position: relative; background: var(--edge) 0 0 / 100% 100% no-repeat; margin: var(--bds-space-8) 0 0; }
.about-mood + .cta { border-top: 0; }
.mood-stage { position: relative; max-width: 1920px; margin: 0 auto; }
.mood-photo { width: 100%; height: auto; }
.glass-label { color: var(--bds-ink); border-radius: 14px; border: 1px solid rgba(255,255,255,.60);
  background: linear-gradient(180deg, rgba(255,255,255,.26) 0%, rgba(255,255,255,.12) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 8px 24px rgba(24,24,24,.10); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass-label { background: rgba(255,255,255,.85); } }
.label-name { padding: var(--bds-space-4) var(--bds-space-5); }
.label-name h2 { font-size: var(--bds-size-h4); line-height: var(--bds-line-h4); margin-bottom: var(--bds-space-2); }
.label-name p { font-size: 15px; line-height: 22px; }
.mood-stats { list-style: none; }
.label-stat { display: inline-flex; align-items: center; gap: var(--bds-space-3); padding: var(--bds-space-3) var(--bds-space-4); font-size: 15px; line-height: 20px; white-space: nowrap; }
.label-stat strong { font-family: var(--bds-font-heading); font-weight: var(--bds-weight-heavy); font-size: var(--bds-size-h4); line-height: 1; }
.label-stat span { padding-left: var(--bds-space-3); border-left: 1px solid rgba(24,24,24,.25); }
/* v08: chips placed from Basel's marks (percent of the stage, top-left of each box). Type scales with the stage (cqw). */
.mood-stage { container-type: inline-size; }
.chip { margin: 0; padding: 0.7em 1em; }
.chip-l4 { font-size: var(--bds-size-h3); line-height: 1.15; }
.chip-l1, .chip-l3 { font-size: 15px; line-height: 1.4; }
@media (min-width: 768px) {
  .chip, .chip-l2, .mood-stats > li { position: absolute; }   /* containing block: .mood-stage */
  .chip-l1 { left: 10.7%; top: 31.9%; width: 12.6%; }
  .chip-l2 { left: 30.8%; top: 31.1%; }
  .chip-l3 { left: 19.4%; top: 42.1%; width: 16.8%; }
  .chip-l4 { left: 18.2%; top: 57.4%; width: 23.1%; display: flex; align-items: center; min-height: 7.9%; }
  .chip-l1, .chip-l3 { font-size: clamp(12px, 1.0cqw, 18px); }
  .chip-l4 { font-size: clamp(20px, 2.15cqw, 40px); }
  .label-stat { font-size: clamp(12px, 1.0cqw, 18px); }
  .label-stat strong { font-size: clamp(18px, 1.75cqw, 32px); }
  /* right cluster x 58.1-90.8 %, y 29.1-64.3 %: loose, uneven */
  .label-8   { left: 73%;  top: 30.5%; }
  .label-5   { left: 60.5%; top: 44%; }
  .label-100 { left: 68%;  top: 57.5%; }
}
/* Per-chip glass strength (set after measuring real pixels; see renders/contrast_v08.md). */
.glass-label { --tint-top: .26; --tint-bot: .12; --blur: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,var(--tint-top)) 0%, rgba(255,255,255,var(--tint-bot)) 100%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%); backdrop-filter: blur(var(--blur)) saturate(160%); }
@media (max-width: 767px) {
  .about-mood { background: none; margin-top: var(--bds-space-7); }
  .mood-photo { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 45%; }
  .mood-labels { display: flex; flex-wrap: wrap; gap: var(--bds-space-3); padding: var(--bds-space-5) var(--margin) 0; }
  .mood-stats { display: contents; }
  .label-name, .chip-l4, .chip-l1, .chip-l3 { flex: 1 1 100%; }
  .chip-l4 { order: -3; font-size: var(--bds-size-h4); } .chip-l1 { order: -2; } .chip-l3 { order: -1; } .chip-l2 { order: 5; margin: 0; }
  .label-stat, .label-cta, .chip-l2 { flex: 0 1 auto; }
  .glass-label { background: linear-gradient(180deg, rgba(245,245,245,.85) 0%, rgba(245,245,245,.6) 100%) !important; border-color: var(--bds-border); box-shadow: 0 4px 14px rgba(24,24,24,.06); }
}
@media (max-width: 599px) {
  .mood-photo { aspect-ratio: 4 / 5; object-position: 50% 50%; }
  .label-stat { flex: 1 1 calc(50% - var(--bds-space-3)); white-space: normal; }
}

/* ---------- v09 (Basel 2026-10-17): full-bleed photo sections — hero (photo 23 B) and short about (photo 22 A) ----------
   The photo sits on a stage (max 1920 px); the edge column (--edge) continues the wall beyond the photo on wide screens.
   From 1200 px the text sits on the empty wall inside the photo, placed in % of the stage, type scaled in cqw.
   Below 1200 px the text comes first in normal flow and the photo follows, cropped to the subject. */
.hero-photo, .about-photo { position: relative; background: var(--edge) 0 0 / 100% 100% no-repeat; }
.about-photo { margin-top: var(--bds-space-8); }
.about-photo + .cta { border-top: 0; }
.photo-stage { position: relative; max-width: 1920px; margin: 0 auto; container-type: inline-size; }
.stage-photo { display: block; width: 100%; height: auto; }
.hero-copy h1 { line-height: 0.92; }
.hero-copy .subline { font-size: var(--bds-size-h4); line-height: var(--bds-line-h4); max-width: 22em; color: var(--bds-ink); }
.hero-copy .support { color: var(--bds-muted); font-size: var(--bds-size-lead); line-height: var(--bds-line-lead); max-width: 30em; }
.about-copy h2 { font-weight: var(--bds-weight-heavy); line-height: 0.92; letter-spacing: -0.01em; }
.about-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.about-stats li { text-align: center; padding: 0 1em; border-left: 1px solid var(--bds-border); }
.about-stats li:first-child { border-left: 0; padding-left: 0; }
.about-stats strong { display: block; font-family: var(--bds-font-heading); font-weight: var(--bds-weight-heavy); line-height: 1; color: var(--bds-ink); letter-spacing: -0.01em; }
.about-stats span { display: block; color: var(--bds-muted); font-size: 16px; line-height: 22px; }

@media (min-width: 768px) {
  .hero-copy, .about-copy { position: absolute; }
  @media (min-width: 1441px) { .hero-copy { --left: 8.3%; } }
  .hero-copy { --left: var(--margin); left: var(--left); top: 22%; width: calc(38% - var(--left)); }
  .hero-copy h1 { font-size: clamp(76px, 6.6cqw, 132px); }
  .hero-copy .subline { margin-top: 2.2cqw; font-size: clamp(20px, 1.7cqw, 28px); line-height: 1.3; max-width: none; }
  .hero-copy .support { font-size: clamp(17px, 1.35cqw, 21px); line-height: 1.45; max-width: 30em; }
  .hero-copy .support { margin-top: 1.2cqw; }
  .hero-copy .actions { margin-top: 2.2cqw; }
  .about-copy { left: 48.5%; top: 26%; width: 43%; }
  .about-copy h2 { font-size: clamp(64px, 6.4cqw, 128px); }
  .about-stats { margin-top: 3cqw; width: 92%; }
  .about-stats li { padding-top: .3em; padding-bottom: .3em; }
  .about-stats strong { font-size: clamp(40px, 3.6cqw, 72px); margin-bottom: .9cqw; }
  .about-more { margin-top: 2.6cqw; }
}
@media (max-width: 767px) {
  .photo-stage { display: flex; flex-direction: column; }
  .hero-photo { background: none; padding-top: var(--bds-space-8); }
  .hero-copy, .about-copy { padding: 0 var(--margin); }
  .hero-copy h1 { font-size: var(--bds-size-d2); }
  .hero-copy .subline { margin-top: var(--bds-space-6); }
  .hero-copy .support { margin-top: var(--bds-space-4); }
  .hero-copy .actions { margin-top: var(--bds-space-6); }
  .hero-photo .stage-photo { order: 2; margin-top: var(--bds-space-6); aspect-ratio: 4 / 3; object-fit: cover; object-position: 78% 40%; }
  @media (max-width: 767px) { .hero-photo .stage-photo { aspect-ratio: 1 / 1; object-position: 84% 50%; } .about-photo .stage-photo { aspect-ratio: 1 / 1 !important; object-position: 22% 50% !important; } }
  .about-photo { background: none; }
  .about-photo .stage-photo { aspect-ratio: 4 / 3; object-fit: cover; object-position: 18% 40%; }
  .about-copy { margin-top: var(--bds-space-6); }
  .about-copy h2 { font-size: var(--bds-size-d2); }
  .about-stats { margin-top: var(--bds-space-6); max-width: 560px; }
  .about-stats strong { font-size: var(--bds-size-d1); margin-bottom: var(--bds-space-3); }
  .about-more { margin-top: var(--bds-space-6); }
}
@media (max-width: 599px) {
  .hero-copy h1, .about-copy h2 { font-size: var(--bds-size-d1); }
  .about-stats strong { font-size: 34px; }
  .about-stats li { padding: 0 .5em; } .about-stats span { font-size: 14px; line-height: 19px; }
}
/* v09b (Basel 2026-10-17 18:45): both photos a little smaller. The photo no longer fills the stage: the hero photo sits to the
   right, the about photo to the left, and the edge column (section background) continues the wall into the free space. */
@media (min-width: 768px) {
  .hero-photo .stage-photo { width: 84%; margin-left: auto; }
  .hero-copy { top: 17%; }
  .about-photo .stage-photo { width: 78%; margin-right: auto; }
  .about-copy { left: 46%; top: 22%; width: 44%; }
}
/* v09c (Basel 2026-10-17 18:48): name on one line; the numbers grow to fill the same width. */
.about-copy h2 { white-space: nowrap; }
@media (min-width: 768px) {
  .about-copy { left: 45%; top: 27%; width: 47%; }
  .about-copy h2 { font-size: 4.62cqw; }
  .about-stats { width: 100%; margin-top: 3.4cqw; }
  .about-stats li { padding-left: 1.2cqw; padding-right: 1.2cqw; }
  .about-stats strong { font-size: 6.4cqw; margin-bottom: 1cqw; letter-spacing: -0.02em; }
  .about-stats span { font-size: clamp(15px, 1.15cqw, 21px); line-height: 1.35; }
}
@media (max-width: 767px) { .about-copy h2 { white-space: normal; } }
@media (min-width: 768px) { .about-copy h2 { font-size: 5.75cqw; } .about-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .about-stats strong { font-size: 5.6cqw; } }
@media (min-width: 768px) { .about-stats { grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1.45fr); } }
/* v09d (Basel 18:50): block moved toward the photo and enlarged; numbers span the exact width of the name. */
@media (min-width: 768px) { .about-copy { left: 39.5%; top: 25%; width: 52%; } .about-copy h2 { font-size: 6.36cqw; } .about-stats strong { font-size: 6.2cqw; } .about-stats li:last-child { padding-right: 0; } }
@media (min-width: 768px) { .about-stats li:first-child { text-align: left; } .about-stats li:last-child { text-align: right; } .about-stats { grid-template-columns: minmax(0,1fr) minmax(0,1.25fr) minmax(0,1.3fr); } }
/* v09e (Basel 19:23): About button on the right, its edge on the edge of the name and the 100+. */
@media (min-width: 768px) { .about-more { text-align: right; } }
/* v09f (Basel 19:48): hero text on the site's own left line (the .wrap content edge) at every width, not 8.3 %. */
@media (min-width: 768px) {
  .hero-copy { --left: max(var(--margin), calc((100% - var(--max)) / 2 + var(--margin))); left: var(--left); width: calc(50% - var(--left)); }
}
@media (min-width: 1441px) { .hero-copy { --left: max(var(--margin), calc((100% - var(--max)) / 2 + var(--margin))); } }
/* v09g (Basel 19:50): keep the 1680 proportions on wider screens — headline capped at its 1680 size, text column capped,
   so a clear gap stays between the text and the moodboard. */
@media (min-width: 768px) {
  .hero-copy h1 { font-size: clamp(76px, 6.6cqw, 111px); }
  .hero-copy { max-width: 600px; }
  .hero-copy .subline { font-size: clamp(20px, 1.7cqw, 28px); }
}
@media (min-width: 768px) { .hero-copy .support { max-width: 576px; font-size: clamp(17px, 1.35cqw, 19px); } .hero-copy .subline { font-size: clamp(20px, 1.7cqw, 25px); } }
/* v10 (Basel 2026-10-17 19:59): About intro — headline and story on the left (cols 1–7), the laptop portrait on the right
   (cols 9–12) spanning both, top on the headline's top line, bottom on the story's last line. */
.about-intro { padding: var(--bds-space-8) 0 0; }
.about-intro .grid { row-gap: 0; }
.about-intro h1 { grid-column: 1 / span 7; grid-row: 1; font-size: var(--bds-size-d2); line-height: 0.95; }
.about-intro .reading { grid-column: 1 / span 7; grid-row: 2; margin-top: var(--bds-space-9); }
.about-intro .intro-portrait { grid-column: 9 / span 4; grid-row: 1 / span 2; position: relative; min-height: 520px; }
.about-intro .intro-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
@media (max-width: 767px) {
  .about-intro h1, .about-intro .reading { grid-column: 1 / span 12; }
  .about-intro h1 { font-size: var(--bds-size-d1); }
  .about-intro .intro-portrait { grid-column: 1 / span 12; grid-row: auto; min-height: 0; margin-top: var(--bds-space-7); }
  .about-intro .intro-portrait img { position: static; height: auto; max-width: 420px; margin: 0 auto; display: block; }
  .about-intro .reading { grid-row: auto; margin-top: var(--bds-space-7); }
}
@media (max-width: 599px) { .about-intro h1 { font-size: var(--bds-size-h1); line-height: var(--bds-line-h1); } }
@media (max-width: 767px) { .about-intro .reading { order: 2; } }
.about-intro .intro-portrait img { object-fit: cover; object-position: 50% 60%; }
.about-intro .intro-portrait img { object-fit: contain; object-position: 50% 100%; }
@media (min-width: 768px) { .about-intro .intro-portrait { grid-column: 9 / span 4; } .about-intro .intro-portrait img { object-position: 50% 0%; } }
@media (min-width: 768px) { .about-intro .intro-portrait img { object-position: 50% 100%; } }
@media (max-width: 767px) { .about-intro .intro-portrait img { width: auto; max-width: 100%; max-height: 520px; } }
/* v10d (Basel 20:58): head top on the headline cap line (8px below its box), shoe soles on the last text baseline (7.5px above its box; the photo carries 1.4% of floor shadow under the soles). */
@media (min-width: 768px) { .about-intro .intro-portrait img { inset: 8px 0 calc(7.5px - 1.4%) 0; height: auto; max-height: calc(100% - 8px - 7.5px + 1.4%); object-position: 50% 100%; } }

/* ======================================================================================================
   v11 (Basel 2026-10-17 23:23): phone layout. Everything below applies only at phone widths
   (767 px and below for the header, menu and photos; 599 px and below for the tiles and buttons).
   Desktop and tablet are unchanged.
   ====================================================================================================== */
.stage-picture { display: block; }
@media (max-width: 767px) { .hero-photo .stage-picture { order: 2; } } /* the picture wrapper keeps the photo after the text on tablets, as before */
.brand-mark { display: none; }
.menu-btn .ico-close { display: none; }

@media (max-width: 767px) {
  /* 4 · Header: colour icon only, 40 px, clear space 2u (u = 40/6 ≈ 6.7 px → 14 px above and below). */
  :root { --header-h: 68px; }
  .brand-full { display: none; }
  .brand .brand-mark { display: block; width: 40px; height: 40px; }

  /* 5 · Menu: fills the screen under the header, × to close, the page behind does not scroll. */
  .menu-btn[aria-expanded="true"] .ico-open { display: none; }
  .menu-btn[aria-expanded="true"] .ico-close { display: block; }
  .js .nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; height: calc(100dvh - var(--header-h)); overflow-y: auto; border-bottom: 0; background: var(--bds-ground); }
  .js .nav ul { padding-top: var(--bds-space-5); }
  .js .nav a { font-size: var(--bds-size-h3); line-height: 72px; }
  html.menu-open { overflow: hidden; } /* lock html only: keeps the sticky header in place (Reviewer 05) */

  /* 1 · Hero: headline and subline, then the 4:5 crop of photo 23 B, then the support line and buttons,
     so the photo is on the first screen. */
  .hero-photo { padding-top: var(--bds-space-7); }
  .hero-photo .hero-copy { display: contents; }
  .hero-photo .hero-copy > * { margin-left: var(--margin); margin-right: var(--margin); }
  .hero-photo .hero-copy h1 { order: 1; }
  .hero-photo .hero-copy .subline { order: 2; margin-top: var(--bds-space-5); }
  .hero-photo .stage-picture { order: 3; margin-top: var(--bds-space-6); }
  .hero-photo .stage-photo, .about-photo .stage-photo { order: 0; margin-top: 0; aspect-ratio: 4 / 5 !important; object-fit: cover; object-position: 50% 50% !important; }
  .hero-photo .hero-copy .support { order: 4; margin-top: var(--bds-space-5); }
  .hero-photo .hero-copy .actions { order: 5; margin-top: var(--bds-space-6); }

  /* 3 · Short About: the 4:5 crop of photo 22 A, then name, numbers and button close under it,
     so photo and name show together on one screen. */
  .about-photo { margin-top: var(--bds-space-7); }
  .about-copy { margin-top: var(--bds-space-4); }
  .about-stats { margin-top: var(--bds-space-4); }
  .about-more { margin-top: var(--bds-space-6); }
}

@media (max-width: 599px) {
  /* 2 · Selected work: one row that swipes sideways; the next tile peeks in at the edge. */
  .tiles[data-tiles="home"] { display: flex; gap: var(--bds-space-4); overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--margin)); padding: 0 var(--margin) var(--bds-space-3); scroll-padding-left: var(--margin);
    -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tiles[data-tiles="home"]::-webkit-scrollbar { display: none; }
  .tiles[data-tiles="home"] .tile { flex: 0 0 82%; scroll-snap-align: start; }

  /* 6 · Buttons: two equal buttons side by side on one line; stacked full width below 360 px. */
  .actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--bds-space-3); }
  .actions .btn { width: 100%; padding: 0 12px; white-space: nowrap; }
  .actions > .btn:only-child { grid-column: 1 / -1; }
}
@media (max-width: 359px) { .actions { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
  /* The photos' light-grey wall fades into the white page at the top and bottom (no hard edge). */
  .hero-photo .stage-photo, .about-photo .stage-photo {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 88%, transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 88%, transparent 100%); }
}

/* ======================================================================================================
   v12 (Basel 2026-10-18 00:13): phones — every text centred; type sized so lines fill the column
   (no wide empty sides); Home About = name on top, photo left, three numbers stacked right;
   the hero photo has no top fade. Desktop and tablet unchanged.
   ====================================================================================================== */
@media (max-width: 767px) {
  /* Display headings: each phone line (.ln) on its own line; the longest line fills the text column.
     --k = width of the longest line at 1 px type (measured, Avenir Next LT Pro Heavy). */
  .fit br { display: none; }
  .fit .ln { display: block; white-space: nowrap; }
  .fit { font-size: min(calc((100vw - 2 * var(--margin)) / var(--k, 6)), var(--fit-max, 128px)) !important; line-height: 0.95 !important; }
}
@media (max-width: 767px) {
  /* Everything centred. Lines may use the full column (no reading-width caps); balanced lines avoid one lonely word. */
  main, .site-footer { text-align: center; }
  main h1, main h2, main h3, .statement { text-wrap: balance; }
  main p, main li { text-wrap: pretty; }
  .hero-copy .subline, .hero-copy .support, .lead, .intro, .tile-line, .case-head .lead { max-width: none !important; margin-left: auto; margin-right: auto; }
  .hero-photo .hero-copy > * { margin-left: var(--margin); margin-right: var(--margin); }
  .actions { justify-content: center; }
  .after-link, .about-more, .contact-actions { text-align: center; }
  .cta-text .btn { margin: 0 auto; }
  .steps strong { text-align: center; }
  .tile-info { text-align: center; align-items: center; }
  .breadcrumb ol { justify-content: center; }
  .facts { text-align: center; }
  .numbers { text-align: center; }
  .rows > li, .numbered > li { text-align: center; }
  .split .body p.statement { text-align: center; }
  /* Menu items centred too. */
  .js .nav ul { text-align: center; }
  /* Footer: one centred column. */
  .site-footer .wrap { align-items: center; }
  .footer-links { flex-direction: column; gap: 0; }
  .footer-copy { text-align: center; }

  /* Body type a step larger where the column allows, so lines fill the width (20 → 21 px, lead 25 → 26 px). */
  .split .body p, .reading p, .prose p, .rows .row-body, .points li, .delivered li, .services li { font-size: 21px; line-height: 30px; }
  .hero-copy .subline, .intro, .case-head .lead { font-size: 26px; line-height: 33px; }

  /* Hero photo: a straight crop, no fade at the top or bottom (Basel). */
  .hero-photo .stage-photo { -webkit-mask-image: none; mask-image: none; }

  /* Home About: name on top (one line, fills the column), photo on the left, the three numbers stacked on the right,
     the button centred under both. */
  .about-photo .photo-stage { display: grid; grid-template-columns: 56fr 44fr; grid-template-areas: "name name" "photo stats" "more more"; column-gap: var(--bds-space-4); padding: 0 var(--margin); }
  .about-photo .about-copy { display: contents; }
  .about-photo .about-copy h2 { grid-area: name; margin: 0 0 var(--bds-space-5); }
  .about-photo .stage-picture { grid-area: photo; align-self: center; }
  .about-photo .stage-photo { aspect-ratio: 840 / 1360 !important; object-fit: contain; -webkit-mask-image: none; mask-image: none; }
  .about-photo .about-stats { grid-area: stats; align-self: center; grid-template-columns: 1fr; margin: 0; max-width: none; }
  .about-photo .about-stats li { border-left: 0; padding: var(--bds-space-4) 0; text-align: center; }
  .about-photo .about-stats li + li { border-top: 1px solid var(--bds-border); }
  .about-photo .about-stats strong { font-size: 44px; margin-bottom: var(--bds-space-2); }
  .about-photo .about-stats span { font-size: 15px; line-height: 20px; }
  .about-photo .about-more { grid-area: more; margin-top: var(--bds-space-6); }
}
@media (max-width: 767px) {
  /* v12b: bigger photo — it runs to the left edge of the screen (its wall is pure white, so no edge shows). */
  .about-photo .photo-stage { grid-template-columns: 60fr 40fr; column-gap: var(--bds-space-3); }
  .about-photo .stage-picture { margin-left: calc(-1 * var(--margin)); }
  .about-photo .stage-photo { aspect-ratio: 760 / 1310 !important; }
}
@media (max-width: 599px) {
  /* v12c (Reviewer 05): About page numbers fit their three columns ("100+" was 15 px wider than its column). */
  .numbers { column-gap: var(--bds-space-3); }
  .numbers strong { font-size: 32px; }
}

/* ---------- v13 (Basel 2026-10-18 01:04) ---------- */
/* Phones only: Home About without the photo — the name as before, the three numbers in one row under it, the button centred.
   Desktop and tablet keep photo 22 A unchanged. */
@media (max-width: 767px) {
  .about-photo .stage-picture { display: none; }
  .about-photo .photo-stage { grid-template-columns: 1fr; grid-template-areas: "name" "stats" "more"; }
  .about-photo .about-stats { grid-template-columns: repeat(3, minmax(0,1fr)); column-gap: var(--bds-space-3); }
  .about-photo .about-stats li { padding: .2em 0; border-left: 1px solid var(--bds-border); }
  .about-photo .about-stats li:first-child { border-left: 0; }
  .about-photo .about-stats li + li { border-top: 0; }
  .about-photo .about-stats strong { font-size: 40px; }
}
@media (max-width: 399px) { .about-photo .about-stats strong { font-size: 32px; } .about-photo .about-stats span { font-size: 14px; line-height: 19px; } }

/* Lighter buttons (Basel 2026-10-18): same shape and size (48 px pill), Regular weight instead of SemiBold,
   a thinner glass and a much softer shadow. */
.btn { font-weight: 400; letter-spacing: .015em; }
.btn-primary { background: linear-gradient(180deg, rgba(40,40,255,.90) 0%, rgba(0,0,255,.94) 100%); border-color: rgba(255,255,255,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.40), 0 1px 3px rgba(0,0,70,.14); }
.btn-primary.is-hover, .btn-primary:hover { background: linear-gradient(180deg, rgba(56,56,255,.92) 0%, rgba(0,0,255,.96) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.50), 0 4px 12px rgba(0,0,70,.16); }
.btn-primary.is-pressed, .btn-primary:active { box-shadow: inset 0 1px 3px rgba(0,0,60,.30); }
.btn-secondary { background: rgba(255,255,255,.55); border-color: rgba(24,24,24,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.90); }
.btn-secondary.is-hover, .btn-secondary:hover { background: rgba(255,255,255,.85); border-color: rgba(24,24,24,.22); box-shadow: inset 0 1px 0 #FFFFFF, 0 2px 8px rgba(0,0,0,.06); }
.btn-secondary.is-pressed, .btn-secondary:active { background: rgba(242,242,242,.85); box-shadow: inset 0 1px 3px rgba(0,0,0,.10); }
.on-dark .btn-secondary { box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 2px 8px rgba(0,0,0,.20); }
/* v13c (Basel 01:05): blue button lighter still — flat brand blue, no glass highlight, no shadow, no border line. */
.btn-primary { background: #0000FF; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.btn-primary.is-hover, .btn-primary:hover { background: #2E2EFF; box-shadow: 0 2px 8px rgba(0,0,255,.18); }
.btn-primary.is-pressed, .btn-primary:active { background: #0000E0; box-shadow: none; }

/* ---------- v14 (Basel 2026-10-18 01:13): tablet (iPad, 768–1199 px) follows the desktop layout ----------
   The layout breakpoints that used to switch to the stacked phone layout at 1199 / 1023 px now switch at 767 px,
   so tablets get the desktop placement (photos with the text on the wall, two-column splits, three steps across).
   Desktop (1200+) and phone (767 and below) are unchanged. Below: size tuning for tablets only. */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Hero: the text block fits on the wall beside the photo. */
  .hero-copy { top: 9%; }
  .hero-copy h1 { font-size: 60px; }
  .hero-copy .subline { margin-top: var(--bds-space-4); font-size: 18px; line-height: 1.35; }
  .hero-copy .support { font-size: 15px; line-height: 1.45; margin-top: var(--bds-space-3); }
  .hero-copy .actions { margin-top: var(--bds-space-5); }
  /* About page and closing call to action: headlines on fewer lines. */
  .about-intro h1 { grid-column: 1 / span 8; font-size: 56px; }
  .cta-text { grid-column: 1 / span 8; }
  .cta-text h2 { font-size: 52px; }
}
@media (min-width: 768px) and (max-width: 809px) { .hero-copy { top: 5%; } } /* iPad mini portrait: room under the buttons */
