/* ==========================================================================
   Dr. Ehoneah Obed · prototype stylesheet
   Token names mirror WordPress theme.json presets (--wp--preset--*), so this
   file ports to a block theme with minimal renaming. See PORTING.md.
   ========================================================================== */

/* ---------- 1. Tokens (theme.json: settings.color/typography/spacing) ---------- */
:root {
  /* Semantic roles (light) */
  --c-bg: var(--wp--preset--color--paper);
  --c-surface: #FFFFFF;
  --c-surface-alt: var(--wp--preset--color--sand);
  --c-text: var(--wp--preset--color--ink);
  --c-muted: var(--wp--preset--color--stone);
  --c-line: var(--wp--preset--color--line);
  --c-primary: var(--wp--preset--color--forest);
  --c-on-primary: var(--wp--preset--color--paper);
  --c-accent-text: var(--wp--preset--color--ochre);
  --c-accent: var(--wp--preset--color--gold);
  --c-link: var(--wp--preset--color--forest);

  /* Layout (theme.json: settings.layout) */
  --content-size: 46rem;
  --wide-size: 74rem;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(27, 26, 23, .06), 0 8px 24px rgba(27, 26, 23, .06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --c-bg: #0F1714;
    --c-surface: #17221E;
    --c-surface-alt: #131D19;
    --c-text: #EEE9E0;
    --c-muted: #A9B3AD;
    --c-line: #2A3832;
    --c-primary: #E8B33D;
    --c-on-primary: #0C2A23;
    --c-accent-text: #E8B33D;
    --c-accent: #E8B33D;
    --c-link: #7CC4A8;
    --shadow: none;
  }
  .logo-light { display: none !important; }
  .logo-dark { display: inline-block !important; }
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--wp--preset--font-family--body);
  font-size: var(--wp--preset--font-size--base);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--wp--preset--spacing--30);
  font-variation-settings: "opsz" 72, "SOFT" 50;
}
h1 { font-size: var(--wp--preset--font-size--xx-large); }
h2 { font-size: var(--wp--preset--font-size--x-large); }
h3 { font-size: var(--wp--preset--font-size--large); }
h4 { font-size: var(--wp--preset--font-size--medium); }
p { margin: 0 0 var(--wp--preset--spacing--30); }
a { color: var(--c-link); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--wp--preset--color--forest); outline-offset: 3px; border-radius: 4px; }
.site-footer :focus-visible, .cta-band :focus-visible { outline-color: var(--wp--preset--color--gold); }
@media (prefers-color-scheme: dark) { :focus-visible { outline-color: #E8B33D; } }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: 0.35em; }
code, .mono { font-family: var(--wp--preset--font-family--mono); font-size: 0.9em; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--c-primary); color: var(--c-on-primary); padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 3. Layout ---------- */
.container { width: min(100% - 2.5rem, var(--wide-size)); margin-inline: auto; }
.container--narrow { width: min(100% - 2.5rem, var(--content-size)); margin-inline: auto; }
.section { padding-block: var(--wp--preset--spacing--60); }
.section--alt { background: var(--c-surface-alt); }
.section__head { max-width: 44rem; margin-bottom: var(--wp--preset--spacing--50); }
.kicker {
  display: inline-block;
  font-family: var(--wp--preset--font-family--mono);
  font-size: var(--wp--preset--font-size--small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-accent-text);
  margin-bottom: var(--wp--preset--spacing--20);
}
.lead { font-size: var(--wp--preset--font-size--medium); color: var(--c-muted); max-width: 40rem; }
.grid { display: grid; gap: var(--wp--preset--spacing--40); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

/* ---------- 4. Rhythm band (brand motif: woven-strip rhythm) ---------- */
.rhythm-band { display: flex; height: 6px; }
.rhythm-band span:nth-child(1) { flex: 5; background: var(--wp--preset--color--forest); }
.rhythm-band span:nth-child(2) { flex: 1; background: var(--wp--preset--color--gold); }
.rhythm-band span:nth-child(3) { flex: 3; background: var(--wp--preset--color--forest-deep); }
.rhythm-band span:nth-child(4) { flex: 1; background: var(--wp--preset--color--laterite); }
.rhythm-band span:nth-child(5) { flex: 2; background: var(--wp--preset--color--gold); }

/* ---------- 5. Header (template part: header) ---------- */
.site-header { border-bottom: 1px solid var(--c-line); background: var(--c-bg); position: sticky; top: 0; z-index: 50; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.site-logo { display: inline-flex; align-items: center; }
.site-logo img { height: 34px; width: auto; display: block; }
.logo-dark { display: none !important; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; align-items: center; }
.site-nav li { margin: 0; }
.site-nav a { color: var(--c-text); text-decoration: none; font-size: 0.95rem; font-weight: 500; padding-block: .3rem; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--c-accent); }
.nav-toggle { display: none; }
.nav-toggle summary { list-style: none; cursor: pointer; font-weight: 600; padding: .45rem .8rem; border: 1px solid var(--c-line); border-radius: 999px; font-size: .9rem; }
.nav-toggle summary::-webkit-details-marker { display: none; }

@media (max-width: 860px) {
  .site-nav--desktop { display: none; }
  .nav-toggle { display: block; position: relative; }
  .nav-toggle[open] .site-nav { position: absolute; right: 0; top: calc(100% + .6rem); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.25rem; min-width: 14rem; }
  .nav-toggle .site-nav ul { flex-direction: column; align-items: flex-start; gap: .6rem; }
}

/* ---------- 6. Buttons ---------- */
.button { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.3rem; border-radius: 999px; font-weight: 600; font-size: .98rem; text-decoration: none; border: 1.5px solid var(--c-primary); line-height: 1.2; }
.button--primary { background: var(--c-primary); color: var(--c-on-primary); }
.button--primary:hover { filter: brightness(1.08); }
.button--secondary { background: transparent; color: var(--c-text); border-color: var(--c-line); }
.button--secondary:hover { border-color: var(--c-text); }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--wp--preset--spacing--40); }

/* ---------- 7. Hero ---------- */
.hero { padding-block: var(--wp--preset--spacing--70) var(--wp--preset--spacing--60); }
.hero__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--wp--preset--spacing--60); align-items: center; }
.hero h1 { max-width: 14ch; }
.hero__sub { font-size: var(--wp--preset--font-size--medium); color: var(--c-muted); max-width: 36rem; }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; } .hero { padding-top: var(--wp--preset--spacing--50); } }

/* ---------- 8. Placeholder (headshot, screenshots) ---------- */
.placeholder {
  display: grid; place-items: center; text-align: center;
  border: 2px dashed var(--c-line); border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(20, 69, 58, .04) 14px 28px), var(--c-surface);
  color: var(--c-muted); font-family: var(--wp--preset--font-family--mono); font-size: var(--wp--preset--font-size--small);
  padding: 1.5rem; min-height: 12rem;
}
.placeholder--portrait { aspect-ratio: 4 / 5; min-height: 0; }
.placeholder--wide { aspect-ratio: 16 / 9; min-height: 0; }
.placeholder strong { display: block; color: var(--c-text); font-family: var(--wp--preset--font-family--body); font-size: 1rem; margin-bottom: .25rem; }

/* ---------- 8b. Headshot (portrait frame + hero avatar) ---------- */
.portrait { margin: 0; background: var(--c-surface); border: 1px solid var(--c-line); border-bottom: 4px solid var(--c-accent); border-radius: var(--radius); padding: .5rem; box-shadow: var(--shadow); }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: calc(var(--radius) - 4px); }
@media (max-width: 860px) { .portrait { max-width: 22rem; } }
.hero__byline { display: flex; align-items: center; gap: 1rem; margin-bottom: .75rem; }
.hero__byline .kicker { margin: 0; }
.avatar { display: block; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--c-surface); box-shadow: 0 0 0 2px var(--c-accent), var(--shadow); }
@media (max-width: 560px) { .avatar { width: 72px; height: 72px; } }

/* ---------- 9. Currently block (synced pattern: currently) ---------- */
.currently { border: 1px solid var(--c-line); border-left: 4px solid var(--c-accent); background: var(--c-surface); border-radius: var(--radius); padding: var(--wp--preset--spacing--40); box-shadow: var(--shadow); }
.currently__label { font-family: var(--wp--preset--font-family--mono); font-size: var(--wp--preset--font-size--small); letter-spacing: .08em; text-transform: uppercase; color: var(--c-accent-text); margin-bottom: .5rem; display: flex; align-items: center; gap: .5rem; }
.currently__label::before { content: ""; width: .55rem; height: .55rem; background: var(--c-accent); display: inline-block; }
.currently ul { list-style: none; padding: 0; margin: 0 0 .5rem; }
.currently li { padding-left: 1rem; position: relative; }
.currently li::before { content: ""; position: absolute; left: 0; top: .72em; width: .35rem; height: 2px; background: var(--c-muted); }
.currently__updated { font-size: var(--wp--preset--font-size--small); color: var(--c-muted); margin: 0; }

/* ---------- 10. Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.stat { padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30); border-right: 1px solid var(--c-line); }
.stat:last-child { border-right: 0; }
.stat__value { font-family: var(--wp--preset--font-family--heading); font-size: 1.45rem; font-weight: 600; line-height: 1.2; margin-bottom: .35rem; }
.stat__text { color: var(--c-muted); font-size: .95rem; margin: 0; }
@media (max-width: 960px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--c-line); } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } .stat { border-right: 0; border-bottom: 1px solid var(--c-line); } .stat:last-child { border-bottom: 0; } }
.credentials { font-size: var(--wp--preset--font-size--small); color: var(--c-muted); margin-top: var(--wp--preset--spacing--30); }

/* ---------- 11. Cards ---------- */
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: var(--wp--preset--spacing--40); display: flex; flex-direction: column; gap: .5rem; }
.card h3 { font-size: 1.35rem; margin-bottom: .25rem; }
.card p { color: var(--c-muted); margin: 0; }
.card__meta { font-family: var(--wp--preset--font-family--mono); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--c-accent-text); }
.card__link { margin-top: auto; padding-top: .5rem; font-weight: 600; }
.card--feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--wp--preset--spacing--50); align-items: center; padding: var(--wp--preset--spacing--50); }
.card--feature h3 { font-size: var(--wp--preset--font-size--large); }
@media (max-width: 860px) { .card--feature { grid-template-columns: 1fr; padding: var(--wp--preset--spacing--40); } }

/* ---------- 12. Prose (long-form pages) ---------- */
.prose { max-width: var(--content-size); }
.prose h2 { font-size: var(--wp--preset--font-size--large); margin-top: var(--wp--preset--spacing--50); }
.prose h3 { font-size: var(--wp--preset--font-size--medium); margin-top: var(--wp--preset--spacing--40); }
.prose blockquote { margin: var(--wp--preset--spacing--40) 0; padding-left: 1.25rem; border-left: 3px solid var(--c-accent); font-family: var(--wp--preset--font-family--heading); font-size: 1.25rem; }
.page-head { padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40); border-bottom: 1px solid var(--c-line); }
.page-head h1 { font-size: var(--wp--preset--font-size--x-large); max-width: 22ch; }

/* ---------- 13. Case study ---------- */
.case-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: var(--wp--preset--spacing--30); margin-top: var(--wp--preset--spacing--40); }
.case-meta div { border-top: 2px solid var(--c-accent); padding-top: .5rem; }
.case-meta dt { font-family: var(--wp--preset--font-family--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); }
.case-meta dd { margin: 0; font-weight: 600; }
.feature-list { list-style: none; padding: 0; display: grid; gap: var(--wp--preset--spacing--30); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.feature-list li { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: var(--wp--preset--spacing--40); margin: 0; }
.feature-list strong { display: block; font-family: var(--wp--preset--font-family--heading); font-size: 1.15rem; margin-bottom: .3rem; }
.flow { list-style: none; counter-reset: step; padding: 0; display: grid; gap: .75rem; }
.flow li { counter-increment: step; display: grid; grid-template-columns: 2.25rem 1fr; gap: .75rem; align-items: start; margin: 0; }
.flow li::before { content: counter(step); display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--c-primary); color: var(--c-on-primary); font-family: var(--wp--preset--font-family--mono); font-size: .9rem; font-weight: 700; }
.shot-grid { display: grid; gap: var(--wp--preset--spacing--30); grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }

/* ---------- 14. Experiments log ---------- */
.exp-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--wp--preset--spacing--30); }
.exp { display: grid; grid-template-columns: 12rem 1fr; gap: var(--wp--preset--spacing--40); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: var(--wp--preset--spacing--40); margin: 0; }
.exp__side { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.exp__years { font-family: var(--wp--preset--font-family--mono); font-size: .85rem; color: var(--c-muted); }
.exp h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.exp dl { margin: 0; display: grid; grid-template-columns: 6.5rem 1fr; gap: .35rem .75rem; }
.exp dt { font-family: var(--wp--preset--font-family--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--c-muted); padding-top: .2rem; }
.exp dd { margin: 0; }
@media (max-width: 720px) { .exp { grid-template-columns: 1fr; gap: .75rem; } .exp__side { flex-direction: row; align-items: center; flex-wrap: wrap; } .exp dl { grid-template-columns: 1fr; gap: .1rem; } .exp dd { margin-bottom: .5rem; } }
.status { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--wp--preset--font-family--mono); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; border: 1px solid currentColor; }
.status::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.status--active { color: #1E6B54; }
.status--paused { color: var(--wp--preset--color--ochre); }
.status--concluded { color: var(--c-muted); }
@media (prefers-color-scheme: dark) { .status--active { color: #7CC4A8; } .status--paused { color: #E8B33D; } }
.filter-note { font-size: var(--wp--preset--font-size--small); color: var(--c-muted); }

/* ---------- 15. Lists: publications, links ---------- */
.pub-list { padding-left: 1.3em; }
.pub-list li { margin-bottom: 1rem; }
.link-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--c-line); }
.link-list li { border-bottom: 1px solid var(--c-line); margin: 0; }
.link-list a { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; text-decoration: none; color: var(--c-text); }
.link-list a span:last-child { color: var(--c-muted); font-size: var(--wp--preset--font-size--small); white-space: nowrap; }
.link-list a:hover span:first-child { text-decoration: underline; }
.series { display: grid; gap: var(--wp--preset--spacing--30); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }

/* ---------- 16. Forms ---------- */
.form { display: grid; gap: 1rem; max-width: 36rem; }
.form label { font-weight: 600; font-size: .95rem; display: block; margin-bottom: .35rem; }
.form input, .form select, .form textarea { width: 100%; font: inherit; color: var(--c-text); background: var(--c-surface); border: 1.5px solid var(--c-line); border-radius: 8px; padding: .7rem .85rem; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--c-primary); outline: none; box-shadow: 0 0 0 3px rgba(224, 165, 38, .35); }
.form .hint { font-size: var(--wp--preset--font-size--small); color: var(--c-muted); }

/* ---------- 17. CTA band and footer (template part: footer) ---------- */
.cta-band { background: var(--wp--preset--color--forest-deep); color: var(--wp--preset--color--paper); padding-block: var(--wp--preset--spacing--60); }
.cta-band h2 { color: var(--wp--preset--color--paper); }
.cta-band p { color: #D7DED9; max-width: 38rem; }
.cta-band .button--primary { background: var(--wp--preset--color--gold); color: var(--wp--preset--color--forest-deep); border-color: var(--wp--preset--color--gold); }
.site-footer { background: var(--wp--preset--color--forest-deep); color: #D7DED9; font-size: .95rem; }
.site-footer a { color: var(--wp--preset--color--paper); }
.site-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--wp--preset--spacing--50); padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40); }
.site-footer h2 { font-family: var(--wp--preset--font-family--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--gold); font-weight: 600; margin-bottom: .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer .currently { background: transparent; border-color: #2A3832; border-left-color: var(--wp--preset--color--gold); box-shadow: none; color: #EEE9E0; }
.site-footer .currently__label { color: var(--wp--preset--color--gold); }
.site-footer .currently__label::before { background: var(--wp--preset--color--gold); }
.site-footer .currently__updated { color: #A9B3AD; }
.site-footer__base { border-top: 1px solid #22332D; padding-block: var(--wp--preset--spacing--30); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: var(--wp--preset--font-size--small); color: #A9B3AD; }
@media (max-width: 860px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } .site-footer__inner > div:first-child { grid-column: 1 / -1; } }

/* ---------- 18. Review markers (remove before launch) ---------- */
.confirm { background: #FFF1C9; color: #5B3B00; font-family: var(--wp--preset--font-family--mono); font-size: .72rem; font-weight: 700; padding: .1rem .4rem; border-radius: 4px; letter-spacing: .04em; vertical-align: middle; white-space: nowrap; }

/* ---------- 19. Additions: series items, fact list, boxed CTA ---------- */
.series { list-style: none; padding: 0; margin: 0; }
.series li { background: var(--c-surface); border: 1px solid var(--c-line); border-top: 3px solid var(--c-primary); border-radius: 10px; padding: var(--wp--preset--spacing--30); margin: 0; }
.series li strong { display: block; font-family: var(--wp--preset--font-family--heading); font-size: 1.2rem; margin-bottom: .25rem; }
.series li span { color: var(--c-muted); font-size: var(--wp--preset--font-size--small); }
.fact-list { list-style: none; padding: 0; margin: 0; font-size: var(--wp--preset--font-size--small); }
.fact-list li { padding: .55rem 0; border-bottom: 1px solid var(--c-line); margin: 0; }
.fact-list li:last-child { border-bottom: 0; }
.cta-band--boxed { border-radius: 14px; padding-inline: var(--wp--preset--spacing--50); }
.cta-band .form input { background: #fff; color: var(--wp--preset--color--ink); }
.cta-band .filter-note { color: #B9C4BE; }

.site-footer .rhythm-band span:nth-child(3) { background: #2E5A4E; }
.currently-compact { margin: 0; max-width: 26rem; color: #D7DED9; font-size: var(--wp--preset--font-size--small); line-height: 1.6; }
.currently-compact strong { display: block; font-family: var(--wp--preset--font-family--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--gold); font-weight: 600; margin-bottom: .35rem; }
.placeholder--hero { aspect-ratio: 21 / 9; min-height: 0; }
@media (max-width: 700px) { .placeholder--hero { aspect-ratio: 4 / 3; } }
.shot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .shot-grid { grid-template-columns: 1fr; } }
.form > .button { justify-self: start; }
.series { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.button { min-height: 44px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.platform { text-decoration: none; color: inherit; display: flex; flex-direction: column; border-top: 3px solid var(--c-primary); }
.platform .card__link { margin-top: auto; padding-top: .75rem; word-break: break-word; }
.platform:hover h3 { text-decoration: underline; }
.series--compact { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .series--compact { grid-template-columns: 1fr; } }
.cta-band .confirm { font-size: .8rem; vertical-align: middle; }

/* ---------- 20. Product screenshots (figure.shot) and video embed ---------- */
.shot { margin: 0; }
.shot__frame { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.shot__bar { display: flex; gap: .35rem; align-items: center; padding: .5rem .75rem; border-bottom: 1px solid var(--c-line); background: var(--c-surface-alt); }
.shot__bar span { width: .55rem; height: .55rem; border-radius: 50%; background: var(--c-line); }
.shot__bar span:first-child { background: var(--wp--preset--color--laterite); opacity: .7; }
.shot__bar span:nth-child(2) { background: var(--c-accent); opacity: .8; }
.shot__bar span:nth-child(3) { background: var(--wp--preset--color--forest); opacity: .6; }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: .6rem; font-size: var(--wp--preset--font-size--small); color: var(--c-muted); }
.shot figcaption a { color: inherit; }
.shot--hero .shot__frame img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.shot-grid--feature > .shot:first-child { grid-column: 1 / -1; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--c-line); box-shadow: var(--shadow); background: var(--wp--preset--color--forest-deep); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- 21. Block markup bridges (core blocks carrying prototype classes) ---------- */
/* Utility classes replace the prototype's inline style attributes (see tools/make-content.mjs styleClassMap). */
.u-align-start { align-items: start; }
.u-mt-0 { margin-top: 0 !important; }
.u-mt-half { margin-top: .5rem !important; }
.u-mt-1 { margin-top: 1rem !important; }
.u-mt-40 { margin-top: var(--wp--preset--spacing--40) !important; }
.u-mt-50 { margin-top: var(--wp--preset--spacing--50) !important; }
.u-pt-0 { padding-top: 0 !important; }
.u-gap-50 { gap: var(--wp--preset--spacing--50); }
.u-gap-60 { gap: var(--wp--preset--spacing--60); }
.u-sticky { position: sticky; top: 6rem; }
.u-stack-40 { display: grid; gap: var(--wp--preset--spacing--40); }
.layout-sidebar { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; }
.card-link { text-decoration: none; color: inherit; }
.card-link h3 a { color: inherit; text-decoration: none; }
.card-link:hover h3 a, .card-link h3 a:focus-visible { text-decoration: underline; }

/* Page-level rules from the prototype <style> elements (about.html, experiments.html). */
@media (max-width: 960px) {
  #about-layout { grid-template-columns: 1fr !important; }
  #about-layout > aside { display: contents !important; }
  #about-layout .portrait { order: -1; max-width: 16rem; }
  #about-layout > aside > *:not(.portrait) { order: 1; }
  #exp-layout { grid-template-columns: 1fr !important; }
  #exp-layout > div { position: static !important; order: -1; }
}

/* Image blocks: the class sits on the <figure>, the prototype styled the <img>. */
.wp-block-image { margin: 0; }
.wp-block-image.avatar { width: 96px; height: 96px; border: 0; box-shadow: none; border-radius: 0; flex: none; }
.wp-block-image.avatar img { display: block; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--c-surface); box-shadow: 0 0 0 2px var(--c-accent), var(--shadow); }
@media (max-width: 560px) { .wp-block-image.avatar, .wp-block-image.avatar img { width: 72px; height: 72px; } }
.wp-block-image.portrait img { aspect-ratio: 4 / 5; object-fit: cover; }
/* Product shot frame and three-dot bar, drawn in CSS because core/image has no frame markup. */
.wp-block-image.shot { position: relative; }
.wp-block-image.shot img { box-sizing: border-box; border: 1px solid var(--c-line); border-top: calc(1.55rem + 1px) solid var(--c-surface-alt); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--c-surface); }
.wp-block-image.shot::before { content: ""; position: absolute; top: .5rem; left: .75rem; width: 2.35rem; height: .55rem; pointer-events: none;
  background:
    radial-gradient(circle at .275rem 50%, rgba(181, 72, 42, .7) .27rem, transparent .29rem),
    radial-gradient(circle at 1.175rem 50%, rgba(224, 165, 38, .8) .27rem, transparent .29rem),
    radial-gradient(circle at 2.075rem 50%, rgba(20, 69, 58, .6) .27rem, transparent .29rem); }
.wp-block-image.shot figcaption { margin-top: .6rem; margin-bottom: 0; font-size: var(--wp--preset--font-size--small); color: var(--c-muted); text-align: left; }

/* Buttons: core/button markup with the prototype .button styles. */
.wp-block-buttons.button-row { gap: .75rem; }
.wp-block-button__link { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.3rem; border-radius: 999px; font-weight: 600; font-size: .98rem; line-height: 1.2; min-height: 44px; text-decoration: none; border: 1.5px solid var(--c-primary); background: var(--c-primary); color: var(--c-on-primary); }
.wp-block-button__link:hover { filter: brightness(1.08); }
.is-style-outline > .wp-block-button__link, .wp-block-button__link.is-style-outline { background: transparent; color: var(--c-text); border-color: var(--c-line); }
.is-style-outline > .wp-block-button__link:hover { border-color: var(--c-text); filter: none; }
.cta-band .wp-block-button:not(.is-style-outline) > .wp-block-button__link { background: var(--wp--preset--color--gold); color: var(--wp--preset--color--forest-deep); border-color: var(--wp--preset--color--gold); }
.u-on-dark > .wp-block-button__link { color: #FBF8F3; border-color: #3C5A50; }

/* Featured video: core/embed inside the prototype .video frame. */
.wp-block-embed.video { margin: 0; }
.wp-block-embed.video .wp-block-embed__wrapper { position: static; }

/* Definition lists converted to paragraphs (dt -> .dl-term, dd -> .dl-desc). */
.case-meta .dl-term { margin: 0; font-family: var(--wp--preset--font-family--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); }
.case-meta .dl-desc { margin: 0; font-weight: 600; }
