/* v3.2: teasers instead of repeated tables, separate decisions, reconstruction artifact, honest signup. Loaded after v31.css. */
.hero h1.long { font-size: clamp(2.25rem, 5vw, 3.75rem); max-width: 18ch; line-height: 1.06; }
.hero .context { margin: 1rem 0 0; max-width: 30rem; font: 400 1rem/1.55 var(--sans); color: var(--soft); }
@media (max-width: 860px) {
  .hero { gap: 2rem; }
  .hero figure { display: flex; align-items: center; gap: 1rem; }
  .hero figure img { width: 5.5rem; max-width: 5.5rem; margin: 0; flex: none; }
  .hero figcaption { margin: 0; max-width: none; }
}

/* teasers: title, context, one proof, one artifact */
.teasers { border-top: 1px solid var(--ink); }
.teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 4rem; padding: 2.5rem 0; border-bottom: 1px solid var(--rule); align-items: start; }
.teaser h3 { font: 600 clamp(1.625rem, 3.2vw, 2.25rem)/1.12 var(--serif); letter-spacing: -.02em; margin-bottom: .5rem; }
.teaser h3 a { text-decoration: none; }
.teaser h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.teaser .kind { font: 400 .875rem/1.45 var(--sans); color: var(--faint); margin-bottom: 1rem; }
.teaser p { font: 400 1.0625rem/1.55 var(--sans); max-width: 30rem; }
.teaser .proof { color: var(--ink); font-weight: 500; }
.teaser .art { margin: 0; }
.teaser .art img { width: 100%; border: 1px solid var(--rule); border-radius: 6px; background: #fff; }
.teaser .art figcaption { margin-top: .5rem; font: 400 .875rem/1.45 var(--sans); color: var(--faint); }
@media (max-width: 860px) { .teaser { grid-template-columns: 1fr; gap: 1.25rem; padding: 2rem 0; } }
.rowline { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .25rem 4rem; padding: 1.25rem 0; border-bottom: 1px solid var(--rule); font-family: var(--sans); }
.rowline h3 { font: 600 1.1875rem/1.3 var(--serif); margin: 0; }
.rowline p { margin: 0; font-size: 1rem; line-height: 1.55; max-width: 32rem; }
@media (max-width: 860px) { .rowline { grid-template-columns: 1fr; } }

/* reconstruction of what the reviewer sees. Labelled as an example. */
.recon { margin: 0; }
.flagcard { background: var(--bg); border: 1px solid var(--field); border-radius: 8px; padding: 1.1rem 1.25rem; font: 400 .9375rem/1.5 var(--sans); color: var(--text); }
.flagcard + .flagcard { margin-top: .75rem; }
.flagcard .fc-top { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 .5rem; font-size: .8125rem; color: var(--faint); }
.flagcard h4 { font: 600 1.0625rem/1.35 var(--serif); color: var(--ink); margin: 0 0 .5rem; }
.flagcard p { margin: 0 0 .4rem; max-width: none; font-size: .9375rem; }
.flagcard b { font-weight: 600; color: var(--ink); }
.flagcard .src { color: var(--soft); }
.flagcard .src u { text-underline-offset: .2em; }
.flagcard .diff { font-family: var(--mono); font-size: .875rem; }
.flagcard .diff del { color: var(--red); text-decoration-thickness: 1px; }
.flagcard .diff ins { text-decoration: none; background: color-mix(in srgb, var(--ink) 8%, transparent); padding: 0 .2em; }
.flagcard .foot { margin: .6rem 0 0; padding-top: .6rem; border-top: 1px solid var(--rule); color: var(--soft); font-size: .8125rem; }
.recon figcaption { margin-top: .6rem; font: 400 .875rem/1.45 var(--sans); color: var(--faint); max-width: 32rem; }

/* separate decisions, each with its own observation and consequence */
.decision { margin: 3rem 0 0; }
.decision > h3 { font: 600 1.25rem/1.3 var(--serif); letter-spacing: -.01em; margin: 0 0 1rem; }
.decision .n { font: 600 .8125rem/1.4 var(--sans); color: var(--soft); display: block; margin-bottom: .25rem; }
.dmap { margin: 0; }
.dmap .follow { border-top: 1px solid var(--rule); padding-top: 1rem; max-width: 42rem; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.55; }
.dmap .follow p { margin: 0; }

.claim { margin: 3rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--ink); display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0 2rem; font: 400 1.0625rem/1.55 var(--sans); max-width: 52rem; }
.claim dt { font-weight: 600; color: var(--ink); padding: .8rem 1.5rem .8rem 0; border-top: 1px solid var(--rule); }
.claim dd { margin: 0; padding: .8rem 0; border-top: 1px solid var(--rule); }
.claim dt:first-of-type, .claim dt:first-of-type + dd { border-top: 0; padding-top: 0; }
.claim dt.red { color: var(--red); }
@media (max-width: 640px) { .claim { grid-template-columns: 1fr; } .claim dt { padding: .8rem 0 0; } .claim dd { border-top: 0; padding-top: .1rem; } .claim dt:first-of-type { padding-top: 0; } }

figure.rec { margin-bottom: 2.25rem; }
.rec + .rec { margin-top: 0; }

/* signup that says what it is */
.signup input:disabled { background: transparent; opacity: .6; cursor: not-allowed; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:disabled:hover { opacity: .45; }
.signup-note { font: 400 .9375rem/1.5 var(--sans); color: var(--soft); margin: .6rem 0 0; }

/* tool: two honest lists */
.openlist .ok { color: var(--soft); }
.example-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1rem; font: 400 .9375rem/1.5 var(--sans); color: var(--soft); }

.hero h1.long { max-width: 21ch; }

.layer2 > h2 { margin-top: 4rem; margin-bottom: 1.25rem; }
.layer2 > h2:first-child { margin-top: 0; }
.decision + h2, .decision + p { margin-top: 4rem; }

/* Editorial rhythm: one responsive scale for page sections and reading widths. */
:root { --section-space: clamp(3rem, 6vw, 5rem); }
[hidden] { display: none !important; }
header { margin-bottom: clamp(2rem, 5vw, 3.75rem); }
header nav { align-items: center; row-gap: .4rem; }
main > .section-block, main > section.cols { margin-top: var(--section-space); }
main > .hero { margin-top: 0; }
.hero { gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1.long { font-size: clamp(2.5rem, 5vw, 4.25rem); max-width: 15ch; line-height: 1.06; margin-bottom: 1.5rem; }
.hero .lede { max-width: 34rem; }
.hero .context { margin-top: 1.25rem; max-width: 32rem; }
.hero .links { margin-top: 1.75rem; }
.hero figure img { max-width: 16rem; }
.hero figcaption { max-width: 16rem; }
.band-title { margin-bottom: 1.5rem; }
.teaser { gap: clamp(1.5rem, 4vw, 3.5rem); padding-block: clamp(1.75rem, 4vw, 2.75rem); }
.teaser .small { font: 400 .9375rem/1.5 var(--sans); }
.teaser > div > p:last-child, .toolcard p:last-child, .letter-end p:last-child { margin-bottom: 0; }
.teaser .proof { padding-left: 1rem; border-left: 2px solid var(--ink); }
.teaser .art .recon { max-width: 32rem; }
.flagcard .fc-top { flex-wrap: wrap; row-gap: .2rem; }
.layer2 { margin-top: var(--section-space); }
.layer2 > h2 { margin-top: 3rem; }
.layer2 > .recon { max-width: 42rem; }
.layer2 > .recon figcaption { max-width: 40rem; }
.claim { margin-top: 2.5rem; }
.decision { margin-top: 2rem; }
.decision + .decision { margin-top: 3rem; }
figure.rec { margin-bottom: 0; }
figure.rec + figure.rec { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.letter-end { margin-top: var(--section-space); padding-top: 2rem; }
footer { margin-top: 3rem; }
.btn:disabled { cursor: not-allowed; opacity: .45; }
#checklist > .cols > .margin { padding-top: .35rem; }
#checklist > .step > .margin { padding-top: 0; }
.step ul li + li { margin-top: .4rem; }
.example-actions { padding: 1rem; border: 1px solid var(--field); border-radius: 6px; }
@media (max-width: 860px) {
  .hero figure { order: -1; }
  .hero figure img { width: 4rem; max-width: 4rem; }
  .hero figcaption { max-width: 16rem; }
  .hero h1.long { max-width: 16ch; }
  .hero { gap: 1.5rem; }
  .teaser .art { max-width: 36rem; }
}
@media (max-width: 600px) {
  .page { padding-bottom: 3rem; }
  header { gap: .65rem 1rem; }
  header nav { gap: .25rem 1rem; }
  header nav a { min-height: 2.75rem; display: inline-flex; align-items: center; }
  .letter-end { gap: .75rem; }
  .buckets, .buckets tbody { display: block; width: 100%; }
  .buckets thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .buckets tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .75rem 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
  .buckets td { display: block; width: auto; padding: 0; border: 0; }
  .buckets td:first-child { grid-column: 1 / -1; }
  .buckets td.share, .buckets td.num { width: auto; padding: 0; }
  .buckets td[data-label]::before { content: attr(data-label); display: block; margin-bottom: .4rem; font: 600 .8125rem/1.4 var(--sans); color: var(--soft); }
  .buckets .cases-out { display: inline-block; padding-top: .35rem; }
}
@media print { .letter-end, .tool-bar, .example-actions, .output .btn { display: none; } }

/* Portrait: transparent in light mode, original on a white card in dark mode */
.hero figure img.pt-light { background: transparent; border-radius: 0; }
.hero figure img.pt-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero figure img.pt-light { display: none; }
  :root:not([data-theme="light"]) .hero figure img.pt-dark { display: block; }
}
:root[data-theme="dark"] .hero figure img.pt-light { display: none; }
:root[data-theme="dark"] .hero figure img.pt-dark { display: block; }

/* Contact form */
.contact-form { max-width: 36rem; margin-top: 2rem; }
.contact-form .hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.contact-form .field { margin: 0 0 1.1rem; }
.contact-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label { display: block; font: 500 .9375rem/1.4 var(--sans); color: var(--ink); margin: 0 0 .35rem; }
.contact-form .opt { color: var(--soft); font-weight: 400; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea { width: 100%; box-sizing: border-box; }
.contact-form textarea { min-height: 9rem; resize: vertical; }
.form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-status { font: 400 .9375rem/1.5 var(--sans); color: var(--soft); margin: 0; }
.form-status.err { color: var(--red); }
.form-note { font: 400 .875rem/1.55 var(--sans); color: var(--soft); margin: 1rem 0 0; }
@media (max-width: 560px) { .contact-form .field-row { grid-template-columns: 1fr; gap: 0; } }

/* Results strip and tracks */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.stat { display: flex; flex-direction: column; gap: .5rem; text-decoration: none; color: inherit; padding: 1.25rem 0; border-top: 2px solid var(--ink); }
.stat .num { font: 700 2.25rem/1.05 var(--serif, Georgia, serif); color: var(--ink); }
.stat .lab { font: 500 1rem/1.4 var(--sans); color: var(--ink); }
.stat .ctx { font: 400 .9375rem/1.5 var(--sans); color: var(--soft); }
.stat:hover .num { text-decoration: underline; text-underline-offset: .2em; }
.tracks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.tracks h3 { margin: 0 0 .5rem; }
.tracks p { max-width: 32rem; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr; gap: 0; } .tracks { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Screen-reader-only headings (keep the outline without changing the design) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Mobile: the name is already in the header, so the portrait goes without its caption */
@media (max-width: 860px) { .hero figcaption { display: none; } }

/* Adtech case: metric tree and triage flow */
.mt { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; counter-reset: none; }
.mt li { border: 1px solid var(--rule); border-radius: 6px; padding: .9rem 1rem; display: flex; flex-direction: column; gap: .3rem; position: relative; background: var(--bg); }
.mt li + li::before { content: "→"; position: absolute; left: -.72rem; top: 1rem; color: var(--faint); font: 400 .875rem/1 var(--sans); }
.mt-k { font: 500 .8125rem/1.3 var(--sans); color: var(--soft); text-transform: uppercase; letter-spacing: .04em; }
.mt-v { font: 700 1.5rem/1.1 var(--serif, Georgia, serif); color: var(--ink); }
.mt-d { font: 400 .875rem/1.45 var(--sans); color: var(--text); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; }
.flow li { border-top: 2px solid var(--ink); padding-top: .6rem; display: flex; flex-direction: column; gap: .3rem; }
.flow b { font: 600 .9375rem/1.3 var(--sans); color: var(--ink); }
.flow span { font: 400 .875rem/1.45 var(--sans); color: var(--soft); }
.layer2 > .flowfig { max-width: 56rem; }
@media (max-width: 860px) { .mt { grid-template-columns: 1fr; } .mt li + li::before { content: "↓"; left: 1rem; top: -.85rem; } .flow { grid-template-columns: 1fr; gap: 1rem; } }

.mt-plain li + li::before { content: none; }


/* Review 10.10: polish */
.teaser .mt-v { font-size: 1.25rem; white-space: nowrap; }
@media (max-width: 860px) { .teaser .mt-plain { grid-template-columns: 1fr 1fr; } }
.hero .links { row-gap: .9rem; }
.hero figcaption { display: none; }

/* No orphans anywhere (the build also joins the last two words with a no-break space) */
li, dd, dt, figcaption, blockquote, .lede, .context, .small, .lab, .ctx, .mt-d, .flow span, .opt p, .follow p, .evid p, .kind, .proof { text-wrap: pretty; }
h1, h2, h3, .num, .ledger .nb, .bigcontact { text-wrap: balance; }

/* Feedback 10.10: the three measures are separate, not a funnel */
.mt li + li::before { content: none; }
/* Keep "AI you can trust," on one line only where it fits */
@media (min-width: 400px) { .nw { white-space: nowrap; } }

/* Home: follow note and the smaller experiment */
.hero .follow-note { margin-top: .6rem; color: var(--text); }
.mini-exp { border-top: 1px solid var(--rule); padding: 1.25rem 0 .25rem; max-width: 46rem; }
.mini-exp .kind { display: block; font: 500 .8125rem/1.3 var(--sans); color: var(--soft); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .4rem; }
.mini-exp p { font: 400 1.0625rem/1.55 var(--sans); margin: 0; }

/* Eval cards in a teaser: two columns, never break a word in the middle */
.teaser .mt-plain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mt-k, .mt-d, .mt-v { overflow-wrap: normal; word-break: normal; hyphens: none; }

/* Project metrics under a case title: Role · Scope · Duration */
.pmeta { display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; margin: 1rem 0 1.5rem; font: 400 .9375rem/1.45 var(--sans); color: var(--soft); max-width: 52rem; }
.pmeta b { font-weight: 600; color: var(--ink); margin-right: .3rem; }

/* Feedback 3 (10.10): one reading axis in case studies, quieter limits, clickable outcomes, contextual CTA */
.case-intro > * { max-width: 44rem; }
.case-intro .lede { margin-top: .5rem; }
.stat .go { font: 500 .9375rem/1.4 var(--sans); color: var(--ink); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; margin-top: .25rem; }
.case-cta { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--ink); max-width: 42rem; }
.case-cta .cta-h { font: 600 1.375rem/1.3 var(--serif); color: var(--ink); margin: 0 0 .5rem; }
@media (max-width: 860px) { .hero figcaption { display: block; margin: 0; max-width: none; } }
.flagcard h3 { font: 600 1.0625rem/1.35 var(--serif); color: var(--ink); margin: 0 0 .5rem; }

/* Translation case: one test scenario as the central artifact */
.testcard { max-width: 44rem; border: 1px solid var(--rule); border-radius: 8px; padding: 1.1rem 1.25rem 1rem; background: var(--bg); }
.testcard .tc-head { display: flex; justify-content: space-between; gap: 1rem; font: 500 .8125rem/1.3 var(--sans); color: var(--soft); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .8rem; }
.testcard dl { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 0 1.25rem; margin: 0; font: 400 1rem/1.5 var(--sans); }
.testcard dt { font-weight: 600; color: var(--ink); padding: .55rem 0; border-top: 1px solid var(--rule); }
.testcard dd { margin: 0; padding: .55rem 0; border-top: 1px solid var(--rule); }
.testcard dt:first-of-type, .testcard dt:first-of-type + dd { border-top: 0; }
.testcard .tc-ex { font-family: var(--mono); font-size: .9375rem; background: var(--field, #eee); background: color-mix(in srgb, var(--ink) 7%, transparent); padding: .05rem .35rem; border-radius: 4px; white-space: nowrap; }
.testcard figcaption { margin-top: .8rem; }
@media (max-width: 640px) { .testcard dl { grid-template-columns: 1fr; } .testcard dt { padding-bottom: 0; } .testcard dd { border-top: 0; padding-top: .15rem; } }

/* Feedback 4 (10.10) */
.stats .stat { height: 100%; }
.stat .go { margin-top: auto; padding-top: .9rem; }
.flagcard .fc-h { font: 600 1.0625rem/1.35 var(--serif); color: var(--ink); margin: 0 0 .5rem; }
.steps { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rule); border-radius: 8px; background: var(--bg); }
.steps li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; padding: .75rem 1rem; border-top: 1px solid var(--rule); font: 400 .9375rem/1.45 var(--sans); }
.steps li:first-child { border-top: 0; }
.steps .st-k { font-weight: 600; color: var(--ink); }
.steps .tc-ex, .testcard .tc-ex { font-family: var(--mono); font-size: .875rem; background: color-mix(in srgb, var(--ink) 7%, transparent); padding: .05rem .35rem; border-radius: 4px; white-space: nowrap; }
@media (max-width: 640px) { .steps li { grid-template-columns: 1fr; gap: .15rem; } }
.evlist { font: 400 1rem/1.6 var(--sans); color: var(--text); max-width: 42rem; }
.testcard { box-shadow: 0 1px 0 var(--rule); border-color: var(--ink); }

/* Mobile breathing room (12.10): more space between sections, a clear rule above each one,
   and more room inside lists of cards. Font sizes stay as they are. */
@media (max-width: 760px) {
  :root { --section-space: 5rem; }
  .page { padding-inline: 1.5rem; }
  main > .section-block, main > section.cols { padding-top: 2rem; border-top: 1px solid var(--ink); }
  main > .hero + .section-block { border-top: 0; padding-top: 0; }
  .band-title { margin-bottom: 2rem; }
  .band-title h2 { font-size: 1.5rem; }
  .stats .stat { padding: 1.75rem 0 2rem; }
  .tracks { gap: 2.75rem; }
  .teaser { padding-block: 2.75rem; gap: 1.75rem; }
  .mini-exp { padding-top: 2rem; margin-top: 1rem; }
  .layer2 > h2 { margin-top: 4rem; }
  .claim { margin-top: 3rem; }
  .claim dd { padding-bottom: 1.25rem; }
  .decision + .decision { margin-top: 4rem; }
  figure.rec + figure.rec { margin-top: 3rem; padding-top: 2.5rem; }
  .case-cta { margin-top: 4.5rem; }
  .cols > h2 { margin-bottom: 1rem; }
}
@media (max-width: 760px) {
  main > .section-block .teasers { border-top: 0; }
  main > section.cols > h2 { font: 600 1.375rem/1.3 var(--serif); letter-spacing: -.01em; color: var(--ink); }
}

/* Mobile line system (12.10). One rule for phones:
   a new section = space + heading, no line;
   a thin grey line = only a separator between items of the same list, never above the first;
   no black lines; the closing invitation gets a soft background instead of a line. */
@media (max-width: 760px) {
  main > .section-block, main > section.cols { border-top: 0; padding-top: 0; }
  .teasers, .bigcase, .toolcard, .claim { border-top: 0; }
  .claim { padding-top: 0; }
  .teaser:last-child { border-bottom: 0; }
  .stats .stat { border-top: 1px solid var(--rule); }
  .stats .stat:first-child { border-top: 0; padding-top: 0; }
  .flow li { border-top: 1px solid var(--rule); }
  .flow li:first-child { border-top: 0; padding-top: 0; }
  .output { border-top: 1px solid var(--rule); }
  .letter-end { border-top: 0; padding-top: 0; }
  .case-cta { border-top: 0; padding: 1.5rem 1.25rem; border-radius: 8px; background: color-mix(in srgb, var(--ink) 5%, transparent); }
  .case-cta p:last-child { margin-bottom: 0; }
}
/* Mobile hierarchy: a section heading is clearly bigger than the titles of the items inside it. */
@media (max-width: 760px) {
  .band-title h2, main > section.cols > h2 { font-size: 1.875rem; line-height: 1.15; letter-spacing: -.015em; }
  .teaser h3, .toolcard h3 { font-size: 1.375rem; line-height: 1.25; }
  .tracks h3 { font-size: 1.125rem; }
}
