/* Dr Thierry Lebrun — Ophtalmologiste, Clinique du Landy
   Design: éditorial clinique — Petrona (display) + IBM Plex Sans (texte) */

@font-face {
  font-family: 'Petrona';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/petrona-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Petrona';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/petrona-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Petrona';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/petrona-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Petrona';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/petrona-500italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/plexsans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/plexsans-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/plexsans-600.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  /* Brand palette (as supplied) */
  --ink: #22313A;         /* bleu ardoise — texte */
  --paper: #E3F9FA;       /* fond ciel pâle */
  --surface: #FFFFFF;     /* blanc */
  --deep: #0E7C88;        /* bleu turquoise profond — dark section bg, pairs with white text */
  --deep-ink: #FFFFFF;    /* text on --deep bg */
  --clarity: #0E7C88;     /* default accent (links, icons, primary buttons) — same as --deep, verified AA on light bg */
  --clarity-strong: #084951; /* hover/active — darkened turquoise profond, still AA-safe */
  --band-accent: #8DE6EB; /* bleu turquoise (base) — bright accent for decorative/large elements on --deep bg only */
  --turq-mid: #26A6B3;    /* turquoise primaire — decorative fills/backgrounds only (low contrast as text on light bg) */
  --line: #D8DCDE;
  --muted: #637178;       /* gris bleuté, slightly darkened from the supplied #7C8B92 to pass AA body-text contrast */
  --accent2: #7B5EA7;     /* violet — reserved for small testimonial accents (quote mark, stars) */
  --accent2-pale: #E8DFF2;
  --card-tint: #F3F4F4;   /* neutral grey wash for testimonial cards — pale violet read as pink over a large area */

  /* Footer is always a dark band, independent of light/dark theme */
  --footer-bg: #22313A;
  --footer-ink: #E3F9FA;
  --footer-accent: #8DE6EB;

  --font-display: 'Petrona', 'Iowan Old Style', 'Georgia', serif;
  --font-body: 'Plex Sans', -apple-system, 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius: 3px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #E3EFF2;
    --paper: #0E171B;
    --surface: #172327;
    --deep: #8DE6EB;
    --deep-ink: #22313A;
    --clarity: #26A6B3;
    --clarity-strong: #8DE6EB;
    --band-accent: #0E7C88;
    --turq-mid: #26A6B3;
    --line: #29383D;
    --muted: #A2B3B9;
    --accent2: #BA97D8;
    --card-tint: var(--surface);
  }
}
:root[data-theme="dark"] {
  --ink: #E3EFF2;
  --paper: #0E171B;
  --surface: #172327;
  --deep: #8DE6EB;
  --deep-ink: #22313A;
  --clarity: #26A6B3;
  --clarity-strong: #8DE6EB;
  --band-accent: #0E7C88;
  --turq-mid: #26A6B3;
  --line: #29383D;
  --muted: #A2B3B9;
  --accent2: #BA97D8;
  --card-tint: var(--surface);
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, blockquote {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
  color: inherit;
}
p { margin: 0; }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  body { font-size: 16px; }
}
:focus-visible {
  outline: 2px solid var(--clarity);
  outline-offset: 3px;
}
/* On dark-band contexts --clarity matches --deep and the outline would vanish; swap to the accent that's built for that background. */
.doctor-band :focus-visible,
.spec-card.laser:focus-visible,
.site-footer :focus-visible {
  outline-color: var(--band-accent);
}
.site-footer :focus-visible {
  outline-color: var(--footer-accent);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clarity-strong);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--clarity);
  color: var(--deep-ink);
}
.btn-primary:hover { background: var(--clarity-strong); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--muted); }
.btn-on-dark {
  border-color: color-mix(in srgb, var(--deep-ink) 35%, transparent);
  color: var(--deep-ink);
}
.btn-on-dark:hover { border-color: color-mix(in srgb, var(--deep-ink) 70%, transparent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  line-height: 1.1;
}
.wordmark-icon { border-radius: 50%; flex-shrink: 0; }
.wordmark-text {
  display: flex;
  flex-direction: column;
}
.wordmark .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  color: var(--ink);
}
.wordmark .role {
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}
.main-nav {
  display: flex;
  flex-shrink: 0;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: inline-block;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color .15s ease;
}
.main-nav a:hover { color: var(--ink); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.tel-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.25;
  white-space: nowrap;
}
.tel-link .num { font-weight: 600; color: var(--ink); }
.tel-link .label { font-size: 0.72rem; color: var(--muted); }
.nav-toggle { display: none; }

@media (max-width: 1240px) {
  .tel-link { display: none; }
}
@media (max-width: 1040px) {
  .main-nav { display: none; }
  .tel-link { display: none; }
}

/* ---------- Aperture graphic ---------- */
.aperture {
  display: block;
  overflow: visible;
}
.aperture circle { fill: none; }
.aperture .ring-outer { stroke: var(--line); stroke-width: 1; }
.aperture .ring-mid { stroke: var(--clarity); stroke-width: 1.4; opacity: 0.55; }
.aperture .ring-inner { stroke: var(--deep); stroke-width: 1.2; opacity: 0.8; }
.aperture .blade { stroke: var(--muted); stroke-width: 1; opacity: 0.5; }
.aperture .pupil { fill: var(--ink); opacity: 0.92; }

/* Laser beams: each pulse shoots in from the side, hits the portrait, then is absorbed */
.aperture { color: var(--turq-mid); }
.aperture .beam line {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  animation: beam-fire 6s cubic-bezier(.3, 0, .2, 1) var(--delay) infinite;
}
.aperture .beam-glow { stroke-width: 9; opacity: 0.22; }
.aperture .beam-core { stroke-width: 1.8; }
.aperture .beam-hit {
  fill: currentColor;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: beam-hit 6s ease-out var(--delay) infinite;
}
@keyframes beam-fire {
  0%       { stroke-dashoffset: 1; }
  12%, 40% { stroke-dashoffset: 0; }
  58%, 100% { stroke-dashoffset: -1; }
}
@keyframes beam-hit {
  0%, 10% { opacity: 0; transform: scale(0.2); }
  14%     { opacity: 0.9; transform: scale(1); }
  45%     { opacity: 0.35; transform: scale(1.6); }
  60%, 100% { opacity: 0; transform: scale(2.4); }
}
@media (prefers-reduced-motion: reduce) {
  /* Static beams instead of an animation that would end invisible */
  .aperture .beam line { animation: none; stroke-dashoffset: 0; }
  .aperture .beam-hit { animation: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 76px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 4vw, 3.35rem);
  margin-top: 18px;
  letter-spacing: -0.01em;
}
.hero .lede {
  margin-top: 22px;
  font-size: 1.13rem;
  color: var(--muted);
  max-width: 46ch;
}
.hero .cta-row {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.cta-note {
  margin-top: 14px;
  font-size: 0.86rem;
  color: var(--muted);
}
.hero-figure {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-portrait {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 6px solid var(--surface);
  box-shadow: 0 18px 44px rgba(14, 40, 40, 0.18);
}
@media (max-width: 920px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 260px; margin: 0 auto; }
}

.doctor-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--deep-ink) 25%, transparent);
}
.cabinet-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 22px;
}
.bio-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: center;
}
.bio-hero-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
}
@media (max-width: 780px) {
  .bio-hero-grid { grid-template-columns: 1fr; }
  .bio-hero-photo { max-width: 260px; margin: 0 auto; order: -1; }
}

/* ---------- Stat strip ---------- */
.stat-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.stat-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  padding: 30px 24px;
  border-left: 1px solid var(--line);
  text-align: left;
}
.stat:first-child { border-left: none; }
.stat .value {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--deep);
}
.stat .label {
  margin-top: 4px;
  font-size: 0.87rem;
  color: var(--muted);
}
@media (max-width: 780px) {
  .stat-strip .container { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
}
@media (max-width: 460px) {
  .stat-strip .container { grid-template-columns: 1fr; }
  .stat { border-left: none; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: none; }
}

/* ---------- Section shell ---------- */
.section { padding: 96px 0; }
.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}
.section-head h2 {
  margin-top: 12px;
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
}
.section-head .lede {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.03rem;
}
.section-foot {
  margin-top: 44px;
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
}

/* ---------- Specialties ---------- */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.spec-card {
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  display: block;
  transition: background-color .15s ease;
}
.spec-card:hover { background: color-mix(in srgb, var(--surface) 88%, var(--turq-mid) 12%); }

a.spec-card {
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.spec-card.laser {
  background: var(--deep);
  color: var(--deep-ink);
}

details.spec-card summary {
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  list-style: none;
}
details.spec-card summary::-webkit-details-marker { display: none; }
details.spec-card summary::marker { content: ""; }
details.spec-card[open] summary { padding-bottom: 12px; }
details.spec-card .more {
  padding: 0 28px 30px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.62;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin: 0 28px 30px;
  width: auto;
}

.spec-card .icon { width: 34px; height: 34px; color: var(--deep); }
.spec-card h3 { font-size: 1.08rem; font-weight: 600; }
.spec-card .teaser { font-size: 0.92rem; color: var(--muted); }
.spec-card .go {
  margin-top: auto;
  padding-top: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clarity-strong);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.spec-card .go svg { width: 13px; height: 13px; transition: transform .15s ease; }
details.spec-card[open] .go svg { transform: rotate(180deg); }
details.spec-card[open] .go .go-open { display: inline; }
details.spec-card[open] .go .go-closed { display: none; }
details.spec-card:not([open]) .go .go-open { display: none; }

.spec-card.laser .icon { color: var(--band-accent); }
.spec-card.laser .teaser { color: color-mix(in srgb, var(--deep-ink) 78%, transparent); }
.spec-card.laser .go { color: var(--deep-ink); }
.spec-card.laser:hover { background: color-mix(in srgb, var(--deep) 90%, black 10%); }

@media (max-width: 920px) {
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .spec-grid { grid-template-columns: 1fr; }
}

/* ---------- Doctor band ---------- */
.doctor-band {
  background: var(--deep);
  color: var(--deep-ink);
}
.doctor-band .container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.doctor-band .aperture .ring-outer { stroke: color-mix(in srgb, var(--deep-ink) 25%, transparent); }
.doctor-band .aperture .ring-mid { stroke: var(--band-accent); }
.doctor-band .aperture .ring-inner { stroke: var(--deep-ink); opacity: 0.6; }
.doctor-band .aperture .blade { stroke: color-mix(in srgb, var(--deep-ink) 40%, transparent); }
.doctor-band .aperture .pupil { fill: var(--deep-ink); }
.doctor-band .eyebrow { color: var(--deep-ink); }
.doctor-band h2 {
  margin-top: 12px;
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
}
.doctor-band .bio {
  margin-top: 20px;
  font-size: 1.05rem;
  color: color-mix(in srgb, var(--deep-ink) 88%, transparent);
  max-width: 56ch;
}
.doctor-band .bio + .bio { margin-top: 14px; }
.doctor-band .mini-stats {
  display: flex;
  gap: 36px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.doctor-band .mini-stats .value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--band-accent);
}
.doctor-band .mini-stats .label {
  font-size: 0.82rem;
  color: color-mix(in srgb, var(--deep-ink) 70%, transparent);
  margin-top: 2px;
}
.doctor-band .section-foot { margin-top: 32px; }
@media (max-width: 860px) {
  .doctor-band .container { grid-template-columns: 1fr; }
  .doctor-band .aperture { max-width: 200px; }
}

/* ---------- Testimonials ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testi-card {
  background: var(--card-tint);
  border: 1px solid var(--line);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testi-card .quote-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.4rem;
  color: var(--accent2);
  line-height: 1;
}
.testi-card blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.06rem;
  line-height: 1.55;
  color: var(--ink);
}
.testi-card .attrib {
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}
.testi-card .attrib strong { color: var(--ink); font-weight: 600; }
@media (max-width: 920px) {
  .testi-grid { grid-template-columns: 1fr; }
}

/* ---------- Practical info ---------- */
.practical {
  background: var(--surface);
  border: 1px solid var(--line);
}
.practical .grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}
.practical .col {
  padding: 44px 40px;
}
.practical .col + .col {
  border-left: 1px solid var(--line);
  background: var(--paper);
}
.practical dl {
  margin: 22px 0 0;
  display: grid;
  gap: 18px;
}
.practical dt {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.practical dd {
  margin: 4px 0 0;
  font-size: 1.02rem;
}
.practical .cta-row { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 780px) {
  .practical .grid { grid-template-columns: 1fr; }
  .practical .col + .col { border-left: none; border-top: 1px solid var(--line); }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: color-mix(in srgb, var(--footer-ink) 85%, transparent);
  padding: 60px 0 30px;
}
.site-footer a { text-decoration: none; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-top .wordmark .name { color: var(--footer-ink); }
.footer-top .wordmark .role { color: color-mix(in srgb, var(--footer-ink) 55%, transparent); }
.footer-top p.desc {
  margin-top: 14px;
  font-size: 0.92rem;
  color: color-mix(in srgb, var(--footer-ink) 65%, transparent);
  max-width: 34ch;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--footer-ink) 55%, transparent);
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col a {
  font-size: 0.92rem;
  color: color-mix(in srgb, var(--footer-ink) 88%, transparent);
}
.footer-col a:hover { color: var(--footer-accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 0.82rem;
  color: color-mix(in srgb, var(--footer-ink) 50%, transparent);
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 780px) {
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------- Sub-page hero ---------- */
.subhero {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line);
}
.subhero h1 {
  margin-top: 12px;
  font-size: clamp(2rem, 3.4vw, 2.85rem);
}
.subhero .lede {
  margin-top: 18px;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 62ch;
}
.crumb {
  font-size: 0.85rem;
  color: var(--muted);
}
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--clarity); }

/* ---------- Timeline (bio) ---------- */
.timeline {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-item .year {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--deep);
  font-variant-numeric: tabular-nums;
}
.timeline-item .desc h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.timeline-item .desc p {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 56ch;
}
@media (max-width: 600px) {
  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
}

.pull-quotes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 36px;
}
@media (max-width: 780px) {
  .pull-quotes { grid-template-columns: 1fr; }
}

/* ---------- Testimonials index page ---------- */
.testi-category {
  margin-top: 56px;
}
.testi-category:first-child { margin-top: 0; }
.testi-category h2 {
  font-size: 1.3rem;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.rating-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  margin-top: 34px;
}
.rating-banner .count {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--deep);
}
.rating-banner .stars { color: var(--accent2); letter-spacing: 2px; }
.rating-banner p { color: var(--muted); font-size: 0.92rem; }

/* ---------- FAQ ---------- */
.faq-category { margin-top: 52px; }
.faq-category:first-child { margin-top: 0; }
.faq-category h2 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}
.faq-list {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}
details.faq-item {
  border-bottom: 1px solid var(--line);
}
details.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::marker { content: ""; }
details.faq-item summary h3 {
  font-size: 1.02rem;
  font-weight: 600;
  font-family: var(--font-body);
}
details.faq-item summary svg {
  flex-shrink: 0;
  width: 16px; height: 16px;
  color: var(--muted);
  transition: transform .15s ease;
}
details.faq-item[open] summary svg { transform: rotate(180deg); }
details.faq-item .answer {
  padding: 0 28px 26px 4px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 68ch;
}
details.faq-item:hover summary h3 { color: var(--clarity-strong); }

/* ---------- LinkedIn publications ---------- */
.publications-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 780px) {
  .publications-grid { grid-template-columns: 1fr; }
}
.li-embed {
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.li-embed iframe {
  display: block;
  width: 100%;
  border: 0;
}
.li-embed .li-placeholder {
  padding: 34px 26px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.li-embed .li-placeholder .tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clarity-strong);
}

/* ---------- Eligibility quiz ---------- */
.quiz-disclaimer {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--clarity);
  padding: 18px 22px;
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 36px;
}
.quiz-disclaimer strong { color: var(--ink); }

/* Progress ring — echoes the aperture motif: it "opens up" as you progress */
.quiz-progress {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.quiz-progress-ring {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  flex-shrink: 0;
  background: conic-gradient(var(--clarity) calc(var(--pct, 14) * 1%), var(--line) 0);
  transition: background 0.35s ease;
}
.quiz-progress-ring::before {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--surface);
  border-radius: 50%;
}
.quiz-progress-ring span {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.quiz-progress-label { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.quiz-progress-label strong { font-variant-numeric: tabular-nums; }
.quiz-progress-hint { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }

.quiz-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 44px 40px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}
@media (max-width: 640px) {
  .quiz-card { padding: 32px 24px; }
}
.quiz-step { display: none; flex-direction: column; flex-grow: 1; animation: quiz-step-in 0.35s ease; }
.quiz-step.is-active { display: flex; }
@keyframes quiz-step-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .quiz-step { animation: none; }
}

.quiz-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clarity-strong);
  margin-bottom: 10px;
}
.quiz-question-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  line-height: 1.32;
  margin-bottom: 28px;
  text-wrap: balance;
}

.quiz-options { display: flex; flex-direction: column; gap: 12px; }
.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.98rem;
  transition: border-color .15s ease, background-color .15s ease;
}
.quiz-option:hover { border-color: var(--clarity); }
.quiz-option:has(input:checked) {
  border-color: var(--clarity);
  background: color-mix(in srgb, var(--clarity) 7%, var(--surface));
}
.quiz-option:has(input:focus-visible) { outline: 2px solid var(--clarity); outline-offset: 2px; }
.quiz-option-mark {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  flex-shrink: 0;
  transition: border-color .15s ease;
}
.quiz-option:has(input:checked) .quiz-option-mark { border-color: var(--clarity); }
.quiz-option-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--clarity);
  transform: scale(0);
  transition: transform .15s ease;
}
.quiz-option:has(input:checked) .quiz-option-mark::after { transform: scale(1); }
.quiz-option input[type="radio"] {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.quiz-result {
  margin-top: 32px;
  padding: 36px 38px;
  border: 1px solid var(--line);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.quiz-result.positive {
  background: color-mix(in srgb, var(--clarity) 7%, var(--surface));
  border-color: var(--clarity);
}
.quiz-result.negative {
  background: var(--card-tint);
}
.quiz-result-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}
.quiz-result.positive .quiz-result-icon { background: var(--clarity); color: var(--deep-ink); }
.quiz-result.negative .quiz-result-icon { background: var(--accent2); color: #FFFFFF; }
.quiz-result-body { flex: 1; min-width: 0; }
.quiz-result h3 { font-size: 1.3rem; margin-bottom: 14px; }
.quiz-result p { color: var(--muted); margin-bottom: 14px; }
.quiz-result p:last-of-type { margin-bottom: 0; }
.quiz-reasons {
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}
@media (max-width: 560px) {
  .quiz-result { flex-direction: column; }
}
.quiz-banner {
  margin-top: 28px;
  background: var(--card-tint);
  border: 1px solid var(--line);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.quiz-banner h3 { font-size: 1.15rem; margin: 6px 0 8px; }
.quiz-banner p:last-of-type { color: var(--muted); font-size: 0.92rem; max-width: 48ch; margin: 0; }
.quiz-note {
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--paper);
  padding: 10px 14px;
  border-left: 3px solid var(--clarity);
  margin: 0 0 18px;
}

/* ---------- Specialty page ---------- */
.spec-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: center;
}
.spec-icon-badge {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: var(--deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  flex-shrink: 0;
}
.spec-icon-badge svg { width: 76px; height: 76px; color: var(--band-accent); }
@media (max-width: 780px) {
  .spec-hero-grid { grid-template-columns: 1fr; }
  .spec-icon-badge { width: 110px; height: 110px; margin: 0 auto; order: -1; }
  .spec-icon-badge svg { width: 50px; height: 50px; }
}

.spec-content-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 780px) {
  .spec-content-grid { grid-template-columns: 1fr; }
}

.point-block {
  background: var(--card-tint);
  border: 1px solid var(--line);
  padding: 28px 30px;
}
.point-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.point-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.5;
}
.point-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clarity);
}

.spec-grid-compact { margin-top: 0; }
.spec-card-mini {
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  transition: background-color .15s ease;
}
.spec-card-mini:hover { background: color-mix(in srgb, var(--surface) 88%, var(--turq-mid) 12%); }
.spec-card-mini .icon { width: 22px; height: 22px; color: var(--deep); flex-shrink: 0; }
.spec-card-mini span { font-size: 0.92rem; font-weight: 500; }
