/* Maddlink — the profile (fiche): PROFILE §2 (the 21 blocks), §2b (three families), §5 (layout and motion). Desktop: a
   wide panel in front of the living map; phone: full screen, the contact kept at the bottom (EXPERIENCE §9). Editorial
   lists and hairlines, never a grid of cards; the cyan only for what acts (IDENTITY §2). */

.profile { position: absolute; inset: 0; background: var(--paper); box-shadow: 1px 0 0 var(--line), 12px 0 32px -16px rgba(0, 0, 0, 0.14); overflow: hidden; }
.profile-bar { position: absolute; left: 0; right: 0; top: 0; z-index: 6; display: flex; justify-content: space-between; padding: 14px; pointer-events: none; }
/* once the cover has gone, the reading text fades under the bar instead of running into its buttons */
.profile-bar::before { content: ""; position: absolute; inset: 0 0 -28px 0; background: linear-gradient(var(--paper) 58%, transparent); opacity: 0; transition: opacity 0.4s var(--ease-out); pointer-events: none; z-index: -1; }
.profile.is-scrolled .profile-bar::before { opacity: 0.96; }
.profile-bar > * { pointer-events: auto; }
.profile-bar .icon-btn, .heart--bar { position: relative; right: auto; top: auto; background: var(--glass); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px var(--line-strong); }
.heart--bar { width: var(--tap); height: var(--tap); }
.heart--bar .icon { width: 20px; height: 20px; }
.profile-bar-actions { display: flex; gap: 8px; }
.profile-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; scroll-padding-top: 88px; }
.profile-inner { --pad: clamp(20px, 4vw, 48px); container-type: inline-size; min-height: 100%; padding-bottom: 8px; }

/* ---------------------------------------------------------------- the head: blocks 1 to 5
   At Airbnb's reading proportions (DECISIONS 2026-10-17, measured on a listing at 1440 px: a 26-px title, then the
   photos — a cover and four thumbnails about 2.1:1 — then 22-px headings and 16-px text): the photos frame the work,
   they never fill the screen. */
.profile-head { padding: 70px var(--pad) 8px; }
.profile-name { font-size: 1.625rem; line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; max-width: calc(100% - 8px); }
.profile-mosaic { display: grid; gap: 8px; margin-top: 16px; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 2.1 / 1; max-height: 48vh; }
.profile-mosaic--0 { grid-template-columns: 1fr; aspect-ratio: 2 / 1; }
.profile-mosaic--1 { grid-template-columns: 2fr 1fr; }
.profile-mosaic--2 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.profile-mosaic--4 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.profile-mosaic--2 .profile-cover, .profile-mosaic--4 .profile-cover { grid-row: 1 / span 2; }
.profile-cover { position: relative; min-height: 0; overflow: hidden; background: var(--raised); }
.profile-cover > img, .profile-cover > video, .profile-cover .p-photo { position: absolute; inset: 0; width: 100%; height: 100%; }
.profile-cover > img, .profile-cover > video { object-fit: cover; }
.profile-mosaic .p-photo { border-radius: 0; }
.pm-thumb { min-height: 0; }
.profile-cover > .fict-tag { left: auto; right: 10px; top: auto; bottom: 10px; }
.profile-ident { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; row-gap: 10px; margin-top: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.profile-portrait { width: 56px; height: 56px; box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--u) 75%, transparent); font-size: 1rem; }
.pi-text { display: grid; gap: 2px; min-width: 0; }
.profile-trade { color: var(--ink); font-size: 1.25rem; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; text-wrap: pretty; }
.profile-trade .card-uicon { display: inline-grid; margin-right: 7px; vertical-align: -1px; }
.profile-trade .card-uicon .uicon { width: 16px; height: 16px; }
.profile-company { color: var(--ink-muted); font-weight: 500; }
.profile-place { display: flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 0.9375rem; }
.profile-place .icon { color: var(--ink-muted); width: 16px; height: 16px; }
.profile-universes { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.profile-universes li { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 6px; border-radius: var(--r-pill); background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-soft); font-size: 0.8125rem; font-weight: 600; }
.pu-icon .uicon { width: 14px; height: 14px; }
.profile-tagline { margin-top: 22px; font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: -0.01em; font-size: 1.25rem; line-height: 1.35; max-width: 40ch; text-wrap: balance; }
.profile-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; color: var(--ink-soft); font-size: 0.875rem; font-weight: 500; }
.profile-facts li { display: flex; align-items: center; gap: 8px; }
.profile-facts .icon { color: var(--ink-muted); width: 16px; height: 16px; }
.profile-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--card); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); font-weight: 650; font-size: var(--step--1); }
.profile-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
/* Online, no server sends a contact request yet: the direct channels stand alone (D31, tools/build_live.mjs) */
html[data-build="online"] [data-request] { display: none !important; }
.btn[data-full] { color: var(--ink-muted); }

/* the bar that keeps the contact at hand (PROFILE §5) */
.profile-sticky {
  position: absolute; z-index: 6; top: 14px; left: 70px; right: 120px; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 4px 6px 4px 4px;
  border-radius: var(--r-pill); background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-1);
  opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}
.profile.is-stuck .profile-sticky { opacity: 1; transform: none; pointer-events: auto; }
.ps-portrait { width: 38px; height: 38px; font-size: 0.8rem; }
.ps-id { display: grid; min-width: 0; flex: 1; line-height: 1.15; }
.ps-name { font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-trade { color: var(--ink-muted); font-size: var(--step--1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-actions { display: flex; gap: 6px; flex: none; }
.btn--sm { min-height: var(--tap); padding: 0 16px; font-size: var(--step--1); }
@container (max-width: 560px) { .ps-trade { display: none; } }

/* ---------------------------------------------------------------- blocks */
.profile-block { position: relative; padding: 40px var(--pad) 0; }
.profile-block::before { content: ""; position: absolute; top: 0; left: var(--pad); right: var(--pad); border-top: 1px solid var(--line); }
.profile-block .block-title { font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.01em; max-width: 30ch; margin-bottom: 20px; }
.sub-title { display: flex; align-items: center; gap: 10px; font-size: 1rem; margin-bottom: 14px; }
.sub-title .icon { color: var(--ink-muted); }
.mock-note { margin-top: 14px; color: var(--ink-muted); font-size: var(--step--1); }

/* 6 — the story: a lede, then the reading text */
.p-story { display: grid; gap: 14px; max-width: 66ch; }
.p-story p { color: var(--ink-soft); font-size: 1rem; line-height: 1.55; }
.p-story .p-lede { color: var(--ink); font-size: 1.125rem; line-height: 1.45; }

/* 7 — services: numbered lines, two columns when there is room */
.svc-list { display: grid; gap: 0 36px; }
@container (min-width: 600px) { .svc-list { grid-template-columns: 1fr 1fr; } }
.svc { position: relative; padding: 18px 0 18px 40px; border-top: 1px solid var(--line); }
.svc-n { position: absolute; left: 0; top: 21px; color: var(--ink-muted); font-size: var(--step--1); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.svc-title { font-size: 1rem; line-height: 1.25; }
.svc-text { margin-top: 6px; color: var(--ink-soft); }
.svc-meta { display: block; margin-top: 8px; color: var(--ink-muted); font-size: var(--step--1); }
.svc-meta-k { color: var(--ink-soft); font-weight: 700; }
.svc-not { display: grid; grid-template-columns: 22px 1fr; gap: 14px; margin-top: 22px; padding: 18px 20px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line-strong); background: color-mix(in oklab, var(--card) 60%, transparent); }
.svc-not .icon { color: var(--ink-muted); margin-top: 2px; }

/* 8 — projects and cases: the photos, then what was asked, done and obtained */
.projects { display: grid; gap: 36px; }
.project { display: grid; gap: 18px; }
/* thumbnails are 4:3 (PROFILE §4): two side by side, or a lead over two rows beside two small ones */
.pj-photos { display: grid; gap: 10px; }
/* a photo alone: 58 % of the column beside its text on larger screens, the whole width on a phone */
.pj-photos--1, .moment-photos--1 { grid-template-columns: minmax(0, 0.58fr); }
@media (max-width: 767px) { .pj-photos--1, .moment-photos--1 { grid-template-columns: 1fr; } }
.pj-photos--2 { grid-template-columns: 1fr 1fr; }
.pj-photos--3 { grid-template-columns: 2fr 1fr; }
.p-photo { position: relative; display: block; width: 100%; height: 100%; min-height: 0; overflow: hidden; border-radius: var(--r-sm); background: var(--card); cursor: zoom-in; }
.p-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out), opacity 0.4s var(--ease-out); }
.p-photo:hover img { transform: scale(1.035); }
.p-photo:focus-visible { outline: 2px solid var(--cyan-deep); outline-offset: 3px; }
.fict-tag--sm { left: auto; right: 8px; top: auto; bottom: 8px; padding: 2px 8px; font-size: 10px; }
.pj-title { font-size: 1.125rem; line-height: 1.2; }
.pj-meta { margin-top: 4px; color: var(--ink-muted); font-size: var(--step--1); font-weight: 650; letter-spacing: 0.01em; }
.pj-steps { display: grid; gap: 14px; margin-top: 16px; }
@container (min-width: 600px) { .pj-steps { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.pj-step { padding-top: 12px; border-top: 1px solid var(--line); }
.pj-step dt { color: var(--ink); font-size: var(--step--1); font-weight: 750; letter-spacing: 0.01em; }
.pj-step dd { margin-top: 6px; color: var(--ink-soft); line-height: 1.5; }
.pj-steps--case .pj-step:last-child { border-top-color: color-mix(in oklab, var(--u) 70%, transparent); }

/* before / after: one photo cut by a handle that follows the finger (and the arrow keys) */
.ba { position: relative; width: 100%; height: min(calc((100cqi - 2 * var(--pad)) / var(--ratio)), 460px); border-radius: var(--r-md); overflow: hidden; background: var(--card); touch-action: pan-y; user-select: none; }
.ba-img { position: absolute; inset: 0; }
.ba-img img { width: 100%; height: 100%; object-fit: cover; }
.ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-tag { position: absolute; top: 12px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--glass); color: var(--ink); font-size: 12px; font-weight: 700; }
.ba-before .ba-tag { left: 12px; }
.ba-after .ba-tag { right: 12px; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--ink); pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--ink); color: var(--paper); box-shadow: var(--shadow-1); }
.ba-knob .icon { width: 16px; height: 16px; margin: 0 -3px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba:has(.ba-range:focus-visible) .ba-knob { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--cyan-deep); }
.ba-hint { margin-top: 10px; color: var(--ink-muted); font-size: var(--step--1); }

/* 8 — the place and its moments (family « Lieu ») */
.moments { display: grid; gap: 32px; }
.moment-photos { display: grid; gap: 10px; }
.moment-photos--2 { grid-template-columns: 1fr 1fr; }
.moment-photos--3 { grid-template-columns: 2fr 1fr; }
.pj-photos .p-photo, .moment-photos .p-photo { height: auto; aspect-ratio: 4 / 3; }
.pj-photos--3 > .p-photo:first-child, .moment-photos--3 > .p-photo:first-child { grid-row: span 2; height: 100%; aspect-ratio: auto; }
.moment-title { margin-top: 16px; font-size: 1.125rem; }
.moment-text { margin-top: 6px; color: var(--ink-soft); max-width: 58ch; }
/* the timetable takes the whole width (a day's classes read on one line each); the trial and the prices beside each
   other below it */
.venue-info { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 36px; } /* minmax: the day tabs scroll, they never widen the column */
.venue-info--alone { margin-top: 0; } /* no photos above it yet */
@container (min-width: 620px) { .venue-side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.sch-days { display: flex; gap: 6px; margin: 2px 0 14px; overflow-x: auto; scrollbar-width: none; padding: 5px 2px; }
.sch-days::-webkit-scrollbar { display: none; }
.sch-day { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; border-radius: var(--r-pill); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink-soft); font-size: 0.875rem; font-weight: 600; text-transform: capitalize; white-space: nowrap; transition: background-color 0.3s, color 0.3s, box-shadow 0.3s; }
.sch-day::after { content: ""; position: absolute; inset: -4px -2px; border-radius: inherit; } /* a 44-px target */
.sch-day:hover { background: var(--raised); color: var(--ink); }
.sch-day[aria-selected="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.sch-day-n { min-width: 20px; padding: 0 6px; border-radius: var(--r-pill); background: var(--raised); color: var(--ink-muted); font-size: 0.75rem; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.sch-day[aria-selected="true"] .sch-day-n { background: var(--cyan); color: var(--on-cyan); }
.sch-list { display: grid; }
.sch-list li { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.sch-list .sc-time { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sch-list .sc-act { color: var(--ink-soft); }
.schedule-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.schedule-table th, .schedule-table td { padding: 10px 10px 10px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.schedule-table th { color: var(--ink); font-weight: 750; text-transform: capitalize; width: 26%; }
.sc-time { color: var(--ink-soft); white-space: nowrap; width: 34%; }
.sc-act { color: var(--ink); }
.venue-side { display: grid; gap: 26px; }
.trial { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding: 18px 20px; border-radius: var(--r-md); background: var(--cyan-soft); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--cyan) 45%, transparent); }
.trial .icon { color: var(--cyan-deep); margin-top: 2px; }
.trial .sub-title { margin-bottom: 6px; }
.trial p { color: var(--ink-soft); }
.offer-list { display: grid; }
/* a price can be a sentence (« 100 € le trimestre, 265 € l'année »): it wraps under its title, never past the edge */
.offer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.offer dt { color: var(--ink-soft); min-width: 0; }
.offer dd { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; max-width: 22ch; text-wrap: balance; }
@container (max-width: 520px) { .offer { grid-template-columns: 1fr; } .offer dd { text-align: left; max-width: none; } }

/* 9 — the method: steps along a line that draws itself as you read */
.method { position: relative; padding-left: 4px; }
.method-list { display: grid; gap: 26px; }
.method-line { position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; border-radius: 2px; background: var(--arc-rest); overflow: hidden; }
.method-fill { position: absolute; inset: 0; background: var(--cyan-deep); transform-origin: top; transform: scaleY(var(--fill, 1)); }
.method-step { position: relative; display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; }
.method-dot { grid-row: span 2; position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; margin-left: 2px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line-strong); color: var(--ink-soft); font-weight: 750; font-size: 14px; font-variant-numeric: tabular-nums; transition: box-shadow 0.5s var(--ease-out), color 0.5s; }
.method-step.is-lit .method-dot { box-shadow: inset 0 0 0 2px var(--cyan-deep); color: var(--ink); }
.method-title { font-size: 1rem; margin: 6px 0 6px; }
.method-text { color: var(--ink-soft); max-width: 58ch; }

/* 10 — figures that count up to their value */
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.figures--1 { grid-template-columns: minmax(0, 1fr); }
.figures--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@container (min-width: 760px) { .figures--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container (max-width: 520px) { .figures--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.figure { display: grid; align-content: start; gap: 8px; padding: 18px 0; border-top: 1px solid var(--line); }
.figure-value { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: clamp(1.75rem, 1.3rem + 2cqi, 2.4rem); line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.figure-label { color: var(--ink-soft); max-width: 22ch; }

/* 11 — credentials */
.creds { display: grid; }
.cred { display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.cred > .icon { color: color-mix(in oklab, var(--u) 75%, var(--ink)); margin-top: 2px; }
.cred > div { display: grid; gap: 3px; }
.cred-kind { color: var(--ink-muted); font-size: var(--step--2); font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.cred-title { color: var(--ink); font-weight: 650; }
.cred-issuer { color: var(--ink-soft); font-size: var(--step--1); }

/* 12, 13 — testimonials */
.testimonial { padding: 22px 0; border-top: 1px solid var(--line); }
.testimonial blockquote p { font-size: 1.125rem; line-height: 1.42; color: var(--ink); max-width: 42ch; }
.t-author { display: grid; grid-template-columns: 40px 1fr; align-items: center; column-gap: 12px; row-gap: 2px; margin-top: 16px; }
.t-portrait { width: 40px; height: 40px; font-size: 0.85rem; grid-row: span 2; }
.t-portrait--client { --u: var(--ink-muted); }
.t-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-weight: 700; }
.t-name a { position: relative; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; transition: text-decoration-color 0.3s, color 0.3s; }
.t-name a::after { content: ""; position: absolute; inset: -10px -4px; } /* a 44 px target around the name */
.t-name a:hover { color: var(--ink); text-decoration-color: var(--cyan); text-decoration-thickness: 2px; }
.t-trade { color: var(--ink-muted); font-size: var(--step--1); font-weight: 600; }
.t-relation { color: var(--ink-muted); font-size: var(--step--1); }
.t-original { margin-top: 12px; color: var(--ink-soft); font-size: var(--step--1); }
.t-original summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; width: max-content; max-width: 100%; min-height: var(--tap); list-style: none; }
.t-original summary::-webkit-details-marker { display: none; }
.t-from { color: var(--ink-muted); }
.t-read { color: var(--ink); font-weight: 650; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.t-original summary:hover .t-read { color: var(--ink); text-decoration-color: var(--cyan); text-decoration-thickness: 2px; }
.t-original p { margin-top: 6px; max-width: 56ch; }
.t-note { color: var(--ink-muted); }

/* 14 — the network: a small map of the links, then each story */
.pn-often { margin-bottom: 22px; color: var(--ink-soft); max-width: 60ch; }
.pn-often-k { color: var(--ink); font-weight: 750; }
.pn-wrap { margin-bottom: 18px; }
.pn-map { position: relative; aspect-ratio: 16 / 9; container-type: inline-size; border-radius: var(--r-lg); background: radial-gradient(70% 80% at 50% 50%, color-mix(in oklab, var(--u) 10%, var(--card)) 0%, var(--paper) 78%); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.pn-map svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pn-arc { fill: none; stroke: color-mix(in oklab, var(--u) 45%, var(--arc-rest)); stroke-width: 0.55; stroke-linecap: round; stroke-dasharray: 1 2; stroke-dashoffset: 0; transition: stroke 0.3s, opacity 0.3s, stroke-width 0.3s; }
.pn-map.is-hot .pn-arc { opacity: 0.25; }
.pn-map .pn-arc.is-hot { stroke: var(--u); opacity: 1; stroke-width: 0.8; }
.pn-node { position: absolute; display: grid; justify-items: center; gap: 6px; transform: translate(-50%, -50%); }
.pn-node .pn-portrait { width: 48px; height: 48px; font-size: 0.9rem; transition: transform 0.45s var(--ease-out), box-shadow 0.3s; }
.pn-node--me .pn-portrait { width: 64px; height: 64px; font-size: 1.1rem; box-shadow: 0 0 0 4px var(--paper), inset 0 0 0 2px var(--u); }
.pn-node:hover .pn-portrait, .pn-node.is-hot .pn-portrait { transform: scale(1.12); box-shadow: inset 0 0 0 2px var(--cyan-deep), 0 0 0 4px var(--cyan-soft); }
.pn-name { position: absolute; top: calc(100% + 4px); white-space: nowrap; padding: 2px 8px; border-radius: var(--r-pill); background: var(--glass); color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.pn-hint { margin-top: 10px; color: var(--ink-muted); font-size: var(--step--1); }
.hint-touch { display: none; }
@media (hover: none) { .hint-hover { display: none; } .hint-touch { display: inline; } }
.network-list { display: grid; gap: 0; }
.network-list li { padding: 16px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; min-width: 0; transition: background-color 0.3s; }
.network-list li.is-hot .network-face { box-shadow: inset 0 0 0 1.5px var(--u); }
.network-face { display: inline-grid; grid-template-columns: 40px minmax(0, auto); column-gap: 12px; align-items: center; justify-self: start; max-width: 100%; padding: 4px 18px 4px 4px; border-radius: var(--r-pill); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.3s, background-color 0.3s; }
.network-face .nf-portrait { grid-row: span 2; }
.network-face .nf-name, .network-face .nf-trade { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.25; }
.network-face:hover { background: var(--raised); box-shadow: inset 0 0 0 1.5px var(--u); }
.nf-portrait { width: 40px; height: 40px; font-size: 0.85rem; }
.nf-name { font-weight: 700; }
.nf-trade { color: var(--ink-muted); font-size: var(--step--1); }
.nf-story { color: var(--ink-soft); max-width: 60ch; }
.nf-photo { display: flex; align-items: center; gap: 12px; color: var(--ink-muted); font-size: var(--step--1); }
.nf-photo img { width: 96px; height: 64px; object-fit: cover; border-radius: var(--r-sm); }

/* 15 — where to find them: a small map of their place or their area */
.where { display: grid; gap: 22px; }
.where-map { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.where-map .maplibregl-map { position: absolute; inset: 0; }
.where-map .maplibregl-ctrl-group { background: var(--glass); box-shadow: inset 0 0 0 1px var(--line-strong); border-radius: var(--r-sm); overflow: hidden; }
.where-map .maplibregl-ctrl-group button { width: var(--tap); height: var(--tap); }
.where-map .maplibregl-ctrl-group button + button { border-top: 1px solid var(--line); }
.where-map .maplibregl-ctrl-icon { filter: invert(1) brightness(1.5); }
.where-map .maplibregl-ctrl-attrib { background: color-mix(in oklab, var(--paper) 70%, transparent); color: var(--ink-muted); font: 11px/1.4 var(--font-ui); }
.where-map .maplibregl-ctrl-attrib a { color: var(--ink-soft); }
.where-map .maplibregl-ctrl-attrib-button { filter: invert(1) brightness(1.4); }
.fr dd .fr-sub { display: block; margin-top: 2px; color: var(--ink-muted); }
/* the map is on its way: two orbs and their arch, a pulse running on it (IDENTITY §4), in the map's exact place */
.where-wait { position: absolute; inset: 0; display: grid; place-items: center; background: var(--card); }
.where-wait svg { width: min(46%, 240px); height: auto; overflow: visible; }
.where-note { color: var(--ink-muted); font-size: var(--step--1); }
.where-pin { width: 40px; height: 40px; }
.where-pin .portrait { width: 40px; height: 40px; font-size: 0.8rem; box-shadow: 0 0 0 3px var(--paper), inset 0 0 0 2px var(--u), 0 4px 12px rgba(0, 0, 0, 0.18); }

/* label / value rows (where, practical, legal) */
.facts-rows { display: grid; }
.fr { display: grid; grid-template-columns: 22px minmax(140px, 0.7fr) 1.3fr; gap: 6px 14px; padding: 14px 0; border-top: 1px solid var(--line); align-items: start; }
.fr > .icon { color: var(--ink-muted); margin-top: 1px; }
.fr dt { color: var(--ink); font-weight: 700; }
.fr dd { color: var(--ink-soft); }
.facts-rows--plain .fr { grid-template-columns: minmax(160px, 0.7fr) 1.3fr; }
@container (max-width: 520px) {
  .fr { grid-template-columns: 22px 1fr; }
  .fr dd { grid-column: 2; }
  .facts-rows--plain .fr { grid-template-columns: 1fr; }
  .facts-rows--plain .fr dd { grid-column: 1; }
}
.legal-name { font-weight: 750; margin-bottom: 10px; }

/* 17 — questions */
.faq { display: grid; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 56px; padding: 12px 0; cursor: pointer; font-weight: 700; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { flex: none; color: var(--ink-muted); transition: transform 0.45s var(--ease-out), color 0.3s; }
.faq-item[open] summary .icon { transform: rotate(45deg); color: var(--cyan-deep); }
.faq-item summary:hover .icon { color: var(--ink); }
.faq-answer { padding: 0 0 18px; color: var(--ink-soft); max-width: 62ch; }

/* 18 — on the web */
.web-links { display: grid; }
.web-link { display: grid; grid-template-columns: 22px auto 1fr 18px; align-items: center; gap: 12px; min-height: 52px; border-top: 1px solid var(--line); transition: color 0.3s; }
.web-links li:last-child .web-link { border-bottom: 1px solid var(--line); }
.web-link .icon { color: var(--ink-muted); }
.web-link .icon:last-child { width: 16px; height: 16px; justify-self: end; }
.wl-name { font-weight: 700; }
.wl-host { color: var(--ink-muted); font-size: var(--step--1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.web-link:hover { color: var(--ink); }
.web-link:hover .icon { color: var(--cyan-deep); }

/* 21 — the team */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px 28px; }
.member { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; align-items: center; }
.member-portrait { width: 52px; height: 52px; grid-row: span 2; font-size: 1rem; }
.member-name { font-weight: 750; align-self: end; }
.member-role { color: var(--ink-soft); font-size: var(--step--1); align-self: start; }

.profile-fresh { padding: 36px var(--pad) 0; color: var(--ink-muted); font-size: var(--step--1); }
.profile .site-footer { margin-left: var(--pad); margin-right: var(--pad); }

/* ---------------------------------------------------------------- sheets inside the profile: contact, request, share */
.p-scrim { position: absolute; inset: 0; z-index: 7; background: var(--scrim); opacity: 0; }
.p-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 8; display: flex; flex-direction: column; max-height: min(88%, 760px); container-type: inline-size;
  border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--card); box-shadow: inset 0 1px 0 var(--line-strong), var(--shadow-2);
}
.p-sheet-head { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px var(--pad, 24px) 8px; }
.p-sheet-title { font-size: 1.125rem; line-height: 1.15; }
.p-sheet-intro { margin-top: 6px; color: var(--ink-soft); font-size: var(--step--1); }
.p-sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px var(--pad, 24px) calc(26px + env(safe-area-inset-bottom)); }
.p-sheet .mock-banner { display: flex; align-items: center; gap: 10px; margin: 6px 0 18px; padding: 10px 14px; border-radius: var(--r-sm); background: color-mix(in oklab, var(--paper) 70%, transparent); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink-soft); font-size: var(--step--1); font-weight: 600; }
.p-sheet .mock-banner .icon { color: var(--ink-muted); width: 18px; height: 18px; }

/* contact: the fan of channels */
.ch-list { display: grid; gap: 10px; }
.ch { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 4px 14px; padding: 12px 12px 12px 10px; border-radius: var(--r-md); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.ch.is-preferred { box-shadow: inset 0 0 0 1.5px var(--cyan-deep); }
.ch-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--card); color: var(--ink); grid-row: span 2; }
.ch-label { display: flex; align-items: center; gap: 8px; font-weight: 750; }
.ch-pref { padding: 2px 8px; border-radius: var(--r-pill); background: var(--cyan); color: var(--on-cyan); font-size: 11px; font-weight: 750; white-space: nowrap; }
.ch-label { flex-wrap: wrap; }
.ch-value { grid-column: 2; color: var(--ink-soft); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; min-height: 1.4em; overflow-wrap: anywhere; }
.ch-value.is-shown { color: var(--ink); font-weight: 650; }
.ch-fict { grid-column: 2; color: var(--ink-muted); font-size: var(--step--2); }
.ch-actions { grid-column: 3; grid-row: 1 / span 3; display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.ch-msg { grid-column: 1 / -1; margin-top: 6px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--card); color: var(--ink-soft); font-size: var(--step--1); }
.ch-msg b { display: block; color: var(--ink); margin-bottom: 4px; }
.ch-links { display: grid; gap: 0; margin-top: 22px; }
.ch-links h3, .ch-section-title { font-size: var(--step--1); color: var(--ink-muted); font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; margin: 22px 0 10px; }
.ch-meta { display: grid; gap: 4px; margin-top: 16px; color: var(--ink-soft); font-size: var(--step--1); }
.ch-meta b { color: var(--ink); }
.ch-vcard { margin-top: 20px; }
/* a narrow sheet: the actions go under the value, the full width of the line */
@container (max-width: 480px) {
  .ch { grid-template-columns: 44px 1fr; }
  .ch-icon { grid-row: span 3; }
  .ch-msg { grid-column: 1 / -1; }
  .ch-actions { grid-column: 2; grid-row: auto; flex-direction: row; flex-wrap: wrap; margin-top: 8px; }
}

/* request: the form (MEASUREMENT §3) */
.rq { display: grid; gap: 18px; }
.rq-row { display: grid; gap: 18px; }
@container (min-width: 560px) { .rq-row--2 { grid-template-columns: 1fr 1fr; } }
.rq-field { display: grid; gap: 6px; }
.rq-field > label, .rq-field > legend { font-weight: 700; font-size: var(--step--1); color: var(--ink); }
.rq-opt { color: var(--ink-muted); font-weight: 600; }
.rq-field input[type="text"], .rq-field input[type="email"], .rq-field input[type="tel"], .rq-field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--paper); color: var(--ink);
  border: 1px solid var(--line-strong); font: inherit; transition: border-color 0.3s, box-shadow 0.3s;
}
.rq-field textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.rq-field input:focus-visible, .rq-field textarea:focus-visible { outline: none; border-color: var(--cyan-deep); box-shadow: 0 0 0 4px var(--cyan-soft); }
.rq-field [aria-invalid="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.rq-help { color: var(--ink-muted); font-size: var(--step--2); display: flex; justify-content: space-between; gap: 12px; }
.rq-err { color: var(--ink); font-size: var(--step--1); font-weight: 650; }
.rq-err:empty { display: none; }
fieldset.rq-field { border: 0; padding: 0; margin: 0; }
.rq-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.rq-choice { position: relative; }
.rq-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rq-choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink-soft); font-weight: 650; font-size: var(--step--1); transition: box-shadow 0.3s, color 0.3s, background-color 0.3s; }
.rq-choice input:checked + span { background: var(--cyan-soft); box-shadow: inset 0 0 0 1.5px var(--cyan-deep); color: var(--ink); }
.rq-choice input:focus-visible + span { outline: 2px solid var(--cyan-deep); outline-offset: 2px; }
.rq-check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; color: var(--ink-soft); font-size: var(--step--1); cursor: pointer; }
.rq-check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--cyan-deep); }
.rq-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rq-summary { padding: 12px 14px; border-radius: var(--r-sm); background: var(--raised); box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); font-weight: 650; font-size: var(--step--1); }
.rq-summary:empty { display: none; }
.rq-full { padding: 18px 20px; border-radius: var(--r-md); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-strong); }
.rq-full p + p { margin-top: 8px; color: var(--ink-soft); }
.rq-done { display: grid; justify-items: start; gap: 14px; padding: 8px 0 12px; }
.rq-sign { width: 160px; height: 84px; overflow: visible; }
.rq-sign .rs-arc { fill: none; stroke: var(--cyan-deep); stroke-width: 3; stroke-linecap: round; }
.rq-sign .rs-dot { fill: var(--cyan); }
.rq-sign .rs-orb { fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; }
.rq-done h3 { font-size: 1.125rem; }
.rq-done p { color: var(--ink-soft); max-width: 46ch; }

/* share */
.sh-grid { display: grid; gap: 22px; }
.sh-grid > * { min-width: 0; }
@container (min-width: 560px) { .sh-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.sh-link { display: flex; gap: 8px; align-items: center; }
.sh-url { flex: 1; min-width: 0; min-height: 44px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--paper); border: 1px solid var(--line-strong); color: var(--ink-soft); font-size: var(--step--1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-qr { display: grid; justify-items: start; gap: 10px; }
.sh-qr-box { padding: 14px; border-radius: var(--r-md); background: #fff; line-height: 0; }
.sh-qr-box svg { width: 168px; height: 168px; display: block; }
.sh-note { color: var(--ink-muted); font-size: var(--step--1); }
.sh-image { display: grid; gap: 10px; }
.sh-image canvas { width: 100%; height: auto; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); background: var(--paper); }
.sh-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------------------------------------------------------------- the photo viewer (whole window) */
.viewer { position: fixed; inset: 0; z-index: calc(var(--z-notes) - 2); display: grid; grid-template-rows: auto 1fr auto; background: rgba(255, 255, 255, 0.98); color: var(--ink); }
.viewer-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.viewer-count { color: var(--ink-soft); font-weight: 650; font-variant-numeric: tabular-nums; }
.viewer-stage { position: relative; overflow: hidden; touch-action: pan-y; }
.viewer-track { position: absolute; inset: 0; display: flex; will-change: transform; }
.viewer-slide { position: relative; flex: 0 0 100%; display: grid; place-items: center; padding: 0 clamp(12px, 6vw, 96px); }
.viewer-slide img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r-sm); user-select: none; -webkit-user-drag: none; }
.viewer-nav { position: absolute; top: 50%; z-index: 2; width: 52px; height: 52px; margin-top: -26px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line-strong); }
.viewer-prev { left: 14px; }
.viewer-next { right: 14px; }
.viewer-cap { display: grid; gap: 4px; padding: 14px clamp(16px, 6vw, 96px) calc(18px + env(safe-area-inset-bottom)); min-height: 72px; }
.viewer-alt { color: var(--ink); max-width: 72ch; }
.viewer-credit { color: var(--ink-muted); font-size: var(--step--1); }
.viewer-ghost { position: fixed; z-index: calc(var(--z-notes) - 1); object-fit: cover; pointer-events: none; border-radius: var(--r-md); }

/* ---------------------------------------------------------------- tiers */
@media (max-width: 767px) {
  /* a phone opens on the photo, under the bar's buttons, then the name (Airbnb's phone order) */
  .profile-head { display: flex; flex-direction: column; padding-top: 0; }
  .profile-name { order: 1; margin-top: 18px; font-size: 1.375rem; }
  .profile-ident { order: 2; }
  .profile-head > :not(.profile-mosaic):not(.profile-name):not(.profile-ident) { order: 3; }
  .profile-mosaic { margin: 0 calc(-1 * var(--pad)); border-radius: 0; aspect-ratio: 3 / 2; max-height: none; }
  .profile-mosaic--1, .profile-mosaic--2, .profile-mosaic--4 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .profile-mosaic .pm-thumb { display: none; } /* a phone shows the cover; every photo stays in the blocks below and the viewer */
  .profile-trade { font-size: 1.125rem; }
  .profile-tagline { font-size: 1.125rem; }
  .profile-sticky { top: auto; bottom: calc(12px + env(safe-area-inset-bottom)); left: 12px; right: 12px; justify-content: center; }
  .profile-sticky .ps-portrait, .profile-sticky .ps-id { display: none; }
  .profile-sticky .ps-actions { flex: 1; }
  .profile-sticky .ps-actions .btn { flex: 1; }
  .profile.is-stuck .profile-inner { padding-bottom: 96px; }
  .p-sheet { max-height: 92%; }
  .viewer-nav { display: none; }
}
.is-reduced .p-photo img, .is-reduced .profile-sticky { transition: none; }
@media (forced-colors: active) {
  .p-sheet, .ch, .svc-not, .trial, .pn-map, .where-map { border: 1px solid CanvasText; }
}
/* an error is told by a sign and words, not by a colour (three colours at most, WCAG 1.4.1) */
.rq-err:not(:empty) { display: flex; gap: 7px; align-items: flex-start; }
.rq-err:not(:empty)::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 17px; height: 17px; margin-top: 1px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 800; line-height: 1; }
