@font-face { font-family: 'Imbue'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/imbue-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Imbue'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/imbue-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Imbue'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/imbue-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'PT Sans Caption'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/pt-sans-caption-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'PT Sans Caption'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/pt-sans-caption-latin-700-normal.woff2") format("woff2"); }
:root {
  --bg-dark-base: #15131c;
  --fg-dark-base-body: #f4f1f8;
  --fg-dark-base-heading: #f4f1f8;
  --fg-dark-base-muted: #aea7bd;
  --fg-dark-base-link: #5bd47a;
  --fg-dark-base-inverse: #e9e4f1;
  --bg-dark-card: #1e1b28;
  --fg-dark-card-body: #f4f1f8;
  --fg-dark-card-heading: #f4f1f8;
  --fg-dark-card-muted: #aea7bd;
  --fg-dark-card-link: #5bd47a;
  --fg-dark-card-inverse: #e9e4f1;
  --bg-dark-elevated: #272336;
  --fg-dark-elevated-body: #f4f1f8;
  --fg-dark-elevated-heading: #f4f1f8;
  --fg-dark-elevated-muted: #aea7bd;
  --fg-dark-elevated-link: #5bd47a;
  --fg-dark-elevated-inverse: #e9e4f1;
  --brand-dark-accent: #5bd47a;
  --brand-dark-accent-hover: #8ae6a0;
  --brand-dark-on-accent: #0f1a12;
  --focus-dark-ring: #5bd47a;
  --focus-ring: var(--focus-dark-ring);
  --border-dark-default: #8a83a0;
  --border-dark-subtle: #3a3549;
}
.bg-surface-base { background: var(--bg-dark-base); --fg-body: var(--fg-dark-base-body); --fg-heading: var(--fg-dark-base-heading); --fg-muted: var(--fg-dark-base-muted); --fg-link: var(--fg-dark-base-link); --fg-inverse: var(--fg-dark-base-inverse); }
.bg-surface-card { background: var(--bg-dark-card); --fg-body: var(--fg-dark-card-body); --fg-heading: var(--fg-dark-card-heading); --fg-muted: var(--fg-dark-card-muted); --fg-link: var(--fg-dark-card-link); --fg-inverse: var(--fg-dark-card-inverse); }
.bg-surface-elevated { background: var(--bg-dark-elevated); --fg-body: var(--fg-dark-elevated-body); --fg-heading: var(--fg-dark-elevated-heading); --fg-muted: var(--fg-dark-elevated-muted); --fg-link: var(--fg-dark-elevated-link); --fg-inverse: var(--fg-dark-elevated-inverse); }
.text-role-body { color: var(--fg-body); overflow-wrap: anywhere; }
.text-role-heading { color: var(--fg-heading); overflow-wrap: anywhere; }
.text-role-muted { color: var(--fg-muted); }
.text-role-link { color: var(--fg-link); }
.text-role-inverse { color: var(--fg-inverse); }
.text-role-link { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.site-logo { max-width: 100%; height: auto; }
.site-menu > summary { list-style: none; cursor: pointer; }
.site-menu > summary::-webkit-details-marker { display: none; }
html:has(:focus-visible) :is(details.site-menu, details.site-nav-group)[open]:not(:focus-within) > ul { visibility: hidden; }
:where(section[data-section][style]) { background-size: cover; background-position: center; padding: clamp(1.5rem, 4vw, 3rem); }
:where(section[data-section][style] > .bg-surface-card) { padding: clamp(1rem, 3vw, 2rem); }
:where(section[data-section][style] > .bg-surface-card > :first-child) { margin-top: 0; }
:where(section[data-section][style] > .bg-surface-card > :last-child) { margin-bottom: 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; padding: 0.25rem 0.5rem; outline: 2px solid var(--focus-ring); }

:root {
  --serif: Imbue, "Didot", Georgia, serif;
  --open: "PT Sans Caption", "Segoe UI", sans-serif;
  --gutter: clamp(1.1rem, 5vw, 4rem);
  --measure: 38rem;
  --step: clamp(0.75rem, 4.5vw, 3.75rem);
  --leaf: var(--brand-dark-accent);
}

html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--open); font-size: 1.0625rem; line-height: 1.68; }

.frame { min-height: 100vh; display: flex; flex-direction: column; }
.frame-body { flex: 1 0 auto; padding: 0 var(--gutter); }

/* Header: static, menu block at the left, wordmark and spot mark at the right, beam rule below */
.site-header { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; padding: 0.9rem var(--gutter) 1rem; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(to right, var(--leaf) 0, var(--leaf) 30%, transparent 85%); pointer-events: none; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; min-width: 0; text-decoration: none; }
.brand .site-logo { width: 2.9rem; height: 2.9rem; flex: none; }
.wordmark { font-family: var(--serif); font-weight: 400; font-size: 1.85rem; line-height: 1; letter-spacing: 0.01em; text-align: right; overflow-wrap: normal; }
.brand:hover .wordmark { color: var(--brand-dark-accent-hover); }
.menu-slot { flex: none; order: -1; }
.site-menu > summary { display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.55rem 1.1rem 0.55rem 0.9rem; border-radius: 0; background: var(--brand-dark-accent); color: var(--brand-dark-on-accent); }
.site-menu > summary:hover, .site-menu[open] > summary { background: var(--brand-dark-accent-hover); color: var(--brand-dark-on-accent); }
.menu-label { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; line-height: 1.1; white-space: nowrap; overflow-wrap: normal; }
.menu-icon { position: relative; display: inline-block; width: 0.95rem; height: 0.95rem; border: 2px solid currentColor; border-radius: 50%; }
.menu-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: currentColor; }
.site-menu { counter-reset: topic; }
.site-menu[open] > ul { position: absolute; top: 100%; left: 0; z-index: 30; box-sizing: border-box; width: min(32rem, 100%); min-height: 100vh; margin: 0; padding: 2rem var(--gutter) 3rem calc(var(--gutter) + 2.6rem); list-style: none; background: var(--bg-dark-elevated); display: grid; align-content: start; gap: 1.1rem; }
.site-menu[open] > ul::before { content: ""; position: absolute; left: 1.55rem; top: 2.4rem; bottom: 2rem; width: 2px; background: linear-gradient(to bottom, var(--leaf), transparent 75%); pointer-events: none; }
.site-menu[open] > ul::after { content: ""; position: absolute; left: calc(1.6rem - 5px); top: calc(2.4rem - 5px); width: 11px; height: 11px; border-radius: 50%; background: var(--leaf); pointer-events: none; }
.site-menu[open] > ul > li { counter-increment: topic; margin: 0; }
.site-menu[open] > ul > li > a { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); align-items: baseline; font-family: var(--serif); font-weight: 300; font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1.1; text-decoration: none; }
.site-menu[open] > ul > li > a::before { content: counter(topic, decimal-leading-zero); font-family: var(--open); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; color: var(--leaf); }
.site-menu ul ul { list-style: none; margin: 0.4rem 0 0 2.6rem; padding: 0; }
.site-menu ul ul a { display: block; padding: 0.2rem 0; font-size: 0.98rem; }
.site-menu a:hover { color: var(--brand-dark-accent-hover); text-decoration: underline; }

@media (max-width: 520px) {
  .site-header { flex-wrap: nowrap; gap: 0.75rem; }
  .brand { flex: 1 1 0; justify-content: flex-end; }
  .wordmark { font-size: 1.2rem; line-height: 1.1; }
  .brand { gap: 0.5rem; }
  .brand .site-logo { width: 2.1rem; height: 2.1rem; }
  .site-menu > summary { padding: 0.45rem 0.7rem; gap: 0.5rem; }
  .menu-label { font-size: 1.1rem; }
}

/* Breadcrumbs */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; max-width: 64rem; margin: 1.4rem auto 0; padding: 0; font-size: 0.92rem; }
.breadcrumbs li + li::before { content: "\2022"; margin-right: 0.9rem; color: var(--leaf); }
.breadcrumbs a:hover { color: var(--brand-dark-accent-hover); }

/* Shared type */
h1 { font-family: var(--serif); font-weight: 300; line-height: 1; letter-spacing: 0; margin: 0; text-wrap: balance; overflow-wrap: normal; hyphens: manual; }
h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; text-wrap: balance; overflow-wrap: normal; }
h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 2.2em 0 0.55em; }
h3 { font-size: 1.4rem; margin: 1.8em 0 0.5em; }
p, ul, ol { margin: 0 0 1.05em; }
li { margin-bottom: 0.45em; }
main a.text-role-link { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
main a.text-role-link:hover { color: var(--brand-dark-accent-hover); text-decoration-thickness: 2px; }
.accent-block { margin: 1.8em 0; padding: 1rem 1.25rem; border-left: 3px solid var(--leaf); background: var(--bg-dark-elevated); border-radius: 0 14px 14px 0; }
.accent-block p:last-child { margin-bottom: 0; }
.table-scroll { overflow-x: auto; margin: 1.5em 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.98rem; }
th, td { text-align: left; vertical-align: top; padding: 0.55em 0.8em 0.55em 0; border-bottom: 1px solid var(--border-dark-subtle); }

/* Photos: framed, never altered */
.photo-hero, .photo-inline { margin: 2rem 0; }
.photo-hero img, .photo-inline img { display: block; width: 100%; height: auto; border-radius: 22px; }
.photo-hero img { aspect-ratio: 16 / 8; object-fit: cover; }

/* Line art shared by every template */
svg .cable { fill: none; stroke: var(--border-dark-default); stroke-width: 2; stroke-linecap: round; }
svg .hp-body { fill: var(--bg-dark-card); stroke: var(--fg-heading); stroke-width: 2; }
svg .hp-grip { fill: var(--bg-dark-elevated); stroke: var(--fg-heading); stroke-width: 1.5; }
svg .hp-line { stroke: var(--border-dark-default); stroke-width: 1.2; }
svg .hp-nozzle { fill: var(--fg-heading); }
svg .hp-led { fill: var(--leaf); }
svg .beam { fill: none; stroke: var(--leaf); stroke-width: 2.5; stroke-linecap: round; }
svg .beam-glow { fill: var(--bg-dark-elevated); }
svg .beam-tip { fill: var(--leaf); }
svg .skin-top, svg .skin-layer { fill: none; stroke: var(--fg-heading); stroke-width: 1.8; stroke-linecap: round; }
svg .skin-layer { stroke: var(--border-dark-default); stroke-dasharray: 3 5; }
svg .follicle { fill: none; stroke: var(--fg-heading); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
svg .bulb { fill: var(--leaf); }
svg .spot { fill: var(--border-dark-default); }
svg .vein { fill: none; stroke: var(--border-dark-default); stroke-width: 2; stroke-linecap: round; }

/* Stepped ladder: each h2 starts one rung further right */
.ladder > * { --rung: 0; margin-left: calc(var(--rung) * var(--step)); max-width: var(--measure); }
.ladder > h2:nth-of-type(2), .ladder > h2:nth-of-type(2) ~ * { --rung: 1; }
.ladder > h2:nth-of-type(3), .ladder > h2:nth-of-type(3) ~ * { --rung: 2; }
.ladder > h2:nth-of-type(4), .ladder > h2:nth-of-type(4) ~ * { --rung: 3; }
.ladder > h2:nth-of-type(5), .ladder > h2:nth-of-type(5) ~ * { --rung: 4; }
.ladder > .photo-hero { max-width: none; }

/* Home: beam-line opening */
.home { max-width: 74rem; margin: 0 auto; padding-bottom: 4rem; }
.beam-hero { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 0; align-items: end; padding: clamp(2rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.beam-art { margin: 0 0 clamp(2rem, 6vw, 5rem); }
.handpiece { display: block; width: 100%; height: auto; overflow: visible; }
.beam-copy { position: relative; padding-bottom: 1.5rem; background-image: linear-gradient(to left, var(--leaf), transparent); background-size: 100% 2.5px; background-position: right top; background-repeat: no-repeat; padding-top: 1.5rem; }
.beam-title h1 { font-size: clamp(3rem, 8.4vw, 7rem); }
.beam-lines { margin-top: 1.75rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.beam-lines .display-line { margin: 0; font-size: 1.02rem; padding-left: 0.9rem; border-left: 2px solid var(--leaf); }
.beam-lines .display-line:first-child { color: var(--fg-heading); }
.home-ladder ul { list-style: none; padding: 0; }
.home-ladder ul > li { position: relative; padding: 0.9rem 1rem 0.9rem 3rem; margin: 0 0 0.6rem; background: var(--bg-dark-card); border: 1px solid var(--border-dark-subtle); border-radius: 18px; }
.home-ladder ul > li:nth-child(2) { margin-left: var(--step); }
.home-ladder ul > li:nth-child(3) { margin-left: calc(2 * var(--step)); }
.home-ladder ul > li:nth-child(4) { margin-left: calc(3 * var(--step)); }
.home-ladder ul > li:nth-child(5) { margin-left: calc(4 * var(--step)); }
.home-ladder ul > li::before { content: ""; position: absolute; left: 1rem; top: 1.45rem; width: 1.1rem; border-top: 2px solid var(--leaf); }
.home-ladder ul > li::after { content: ""; position: absolute; left: 2.05rem; top: calc(1.45rem - 3px); width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }
.home-ladder ul > li > a:first-child { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; }

@media (max-width: 760px) {
  .beam-hero { grid-template-columns: 1fr; }
  .beam-art { order: 2; max-width: 15rem; margin: 1rem 0 0 auto; }
  .beam-lines { grid-template-columns: 1fr; gap: 0.9rem; }
}

/* Topic cluster: stepped question ladder with green numbers */
.topic { max-width: 62rem; margin: 0 auto; padding: clamp(1.75rem, 5vw, 3.5rem) 0 4rem; counter-reset: question; }
.topic-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; padding-bottom: 1.25rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--leaf); }
.topic-title h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.picto-row { width: 9rem; height: auto; flex: none; }
.picto-skin { stroke: var(--fg-heading); stroke-width: 1.6; stroke-linecap: round; }
.picto-follicle { fill: none; stroke: var(--fg-heading); stroke-width: 1.6; stroke-linecap: round; }
.picto-spot { fill: var(--border-dark-default); }
.picto-vein { fill: none; stroke: var(--border-dark-default); stroke-width: 2; stroke-linecap: round; }
.question-ladder > * { max-width: var(--measure); }
.question-ladder > .photo-hero { max-width: none; }
.question-ladder ul { list-style: none; padding: 0; max-width: none; }
.question-ladder ul > li { counter-increment: question; position: relative; max-width: 34rem; padding: 0.15rem 2.2rem 0.15rem 3.3rem; margin: 0 0 1.1rem; }
.question-ladder ul > li:nth-child(2) { margin-left: var(--step); }
.question-ladder ul > li:nth-child(3) { margin-left: calc(2 * var(--step)); }
.question-ladder ul > li:nth-child(4) { margin-left: calc(3 * var(--step)); }
.question-ladder ul > li::before { content: counter(question); position: absolute; left: 0; top: -0.1rem; font-family: var(--serif); font-weight: 600; font-size: 2.2rem; line-height: 1; color: var(--leaf); }
.question-ladder ul > li::after { content: ""; position: absolute; right: 0; top: 0.35rem; width: 0.9rem; height: 0.9rem; }
.question-ladder ul > li:nth-child(3n+1)::after { width: 3px; height: 1rem; border-radius: 0 0 4px 4px; background: var(--fg-heading); right: 0.45rem; }
.question-ladder ul > li:nth-child(3n+2)::after { border-radius: 50%; background: var(--border-dark-default); }
.question-ladder ul > li:nth-child(3n)::after { height: 0.5rem; border-bottom: 2px solid var(--border-dark-default); border-radius: 0 0 50% 50%; }
.question-ladder ul > li > a:first-child { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; }

/* Question detail: focused answer */
.answer-page { max-width: var(--measure); margin: 0 auto; padding: clamp(1.75rem, 5vw, 3.5rem) 0 4rem; counter-reset: followup; }
.answer-head { display: grid; grid-template-columns: minmax(0, 1fr) 7.5rem; gap: 1.25rem; align-items: end; margin-bottom: 1.75rem; }
.answer-title h1 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); }
.follicle-diagram { width: 100%; height: auto; }
.answer > p:first-of-type { padding: 1.15rem 1.35rem; background: var(--bg-dark-elevated); border-radius: 18px; font-size: 1.15rem; }
.answer > h2 { counter-increment: followup; display: flex; align-items: baseline; gap: 0.8rem; }
.answer > h2::before { content: counter(followup); flex: none; display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid var(--leaf); color: var(--leaf); font-size: 1rem; font-weight: 700; }
@media (max-width: 520px) {
  .answer-head { grid-template-columns: 1fr; }
  .follicle-diagram { width: 6.5rem; }
}

/* Geo cluster: neighbourhood ladder with beam dividers */
.geo { max-width: 62rem; margin: 0 auto; padding: clamp(1.75rem, 5vw, 3.5rem) 0 4rem; }
.geo-title h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 1.5rem; }
.geo-ladder > h2::before { content: ""; display: block; width: 6rem; height: 2px; margin-bottom: 1rem; background: linear-gradient(to right, var(--leaf), transparent); }

/* About: open single column */
.about { max-width: var(--measure); margin: 0 auto; padding: clamp(1.75rem, 5vw, 3.5rem) 0 4rem; }
.pulse-art { display: block; width: min(22rem, 90%); height: auto; margin: 0 0 1.75rem; }
.about-title h1 { font-size: clamp(2.6rem, 6vw, 4rem); margin-bottom: 1.25rem; }
.about-body > p:first-of-type { font-size: 1.2rem; }

/* Contact: one airy column */
.contact { max-width: 40rem; margin: 0 auto; padding: clamp(1.75rem, 5vw, 3.5rem) 0 4rem; }
.contact-title h1 { font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: 1.25rem; }
.contact-card { margin-top: 2rem; padding: clamp(1.25rem, 4vw, 2.25rem); border: 1px solid var(--border-dark-subtle); border-radius: 22px; }
.ask-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.field { display: grid; gap: 0.35rem; }
.field-wide { grid-column: 1 / -1; }
.field label { font-family: var(--serif); font-weight: 500; font-size: 0.98rem; }
.field input, .field textarea { font: inherit; color: var(--fg-body); background: var(--bg-dark-base); border: 1px solid var(--border-dark-default); border-radius: 12px; padding: 0.6rem 0.8rem; }
.field textarea { resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.beam-rule { position: relative; height: 2px; margin: 0.6rem 0 0.2rem; background: linear-gradient(to right, var(--leaf), var(--border-dark-subtle)); }
.beam-rule::before { content: ""; position: absolute; left: -2px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--leaf); }
.ask-button { justify-self: start; font-family: var(--serif); font-weight: 600; font-size: 1.3rem; padding: 0.6rem 1.6rem; border: 0; border-radius: 999px; background: var(--brand-dark-accent); color: var(--brand-dark-on-accent); cursor: pointer; }
.ask-button:hover { background: var(--brand-dark-accent-hover); }
@media (max-width: 520px) {
  .ask-form { grid-template-columns: 1fr; }
}

/* Thank you: beam fading into a check */
.thanks { max-width: var(--measure); margin: 0 auto; padding: clamp(2.25rem, 6vw, 4.5rem) 0 4rem; }
.check-beam { display: block; width: min(15rem, 80%); height: auto; margin: 0 0 1.5rem; }
.check-beam .fade-line { fill: none; stroke-width: 2.5; stroke-linecap: round; }
.check-beam .check { fill: none; stroke: var(--leaf); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.thanks-title h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); margin-bottom: 1.25rem; }

/* Footer */
.site-footer { margin-top: 3rem; padding: 2.25rem var(--gutter) 2.75rem; }
.footer-inner { max-width: 66rem; margin: 0 auto; display: grid; gap: 0.35rem; }
.footer-inner p { margin: 0; }
.footer-name { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
.footer-link a:hover { color: var(--brand-dark-accent-hover); }

@media (max-width: 760px) {
  :root { --step: clamp(0.5rem, 3vw, 1.25rem); }
}

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