/* DE4 build: one file for the approved DE items (A PD entry, B hero 390, C title system in capitals + Studio overlap, Q1 links, Q2 cookie 12px, Q3 dark MENU box, Q4 12px labels, film frame paper background, DE3 step 1 founder copy at top). Test copy only. Backups: *.BEFORE-DE4 */
/* DE2-A  Personal Design entry. Mock = injected over :8770. */
/* 1) headline clears the sticky header (was touching the ruler at y=88) */
html body main.pd-site { padding-top: calc(var(--ra-v31-header-h, 82px) + 28px); }
/* 2) network drawing no longer runs through the headline and intro: it lives in the right part only */
html body .pd-datum { opacity: .55; -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 38%, #000 74%); mask-image: linear-gradient(90deg, transparent 0%, transparent 38%, #000 74%); }
@media (max-width: 700px) {
  html body .pd-datum { opacity: .3; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 46%); mask-image: linear-gradient(180deg, #000 0%, transparent 46%); }
}
/* 3) the two track cards read as buttons: arrow, hover line, readable body font */
html body .pd-two-choice .pd-mode { position: relative; padding-bottom: 60px; border-color: var(--pd-ink); transition: border-color .2s ease, background-color .2s ease; }
html body .pd-two-choice .pd-mode::after { content: "\2197"; position: absolute; right: 22px; bottom: 18px; color: #c7713d; font: 500 22px/1 var(--font-mono, "Geist Mono", ui-monospace, monospace); transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
html body .pd-two-choice .pd-mode:hover, html body .pd-two-choice .pd-mode:focus-visible { border-color: #c7713d; }
html body .pd-two-choice .pd-mode:hover::after, html body .pd-two-choice .pd-mode:focus-visible::after { transform: translate(3px, -3px); }
html body .pd-two-choice .pd-mode:focus-visible { outline: 2px solid #c7713d; outline-offset: 2px; }
html body .pd-two-choice .pd-mode span { font-family: "BT Grotesk", Arial, sans-serif; }   /* reading text = BT Grotesk (Annotation Rule) */
html[data-ra-theme="dark"] body .pd-two-choice .pd-mode::after { color: #e39a63; }
html[data-ra-theme="dark"] body .pd-two-choice .pd-mode:hover, html[data-ra-theme="dark"] body .pd-two-choice .pd-mode:focus-visible { border-color: #e39a63; }
@media (prefers-reduced-motion: reduce) { html body .pd-two-choice .pd-mode, html body .pd-two-choice .pd-mode::after { transition: none; } }
/* DE2-B  Home hero on phones: copy sits on its own paper block under the picture; nothing crosses the drawing/photo split. */
@media (max-width: 700px) {
  html body .ra-m2b .ra-m2b__viewport { display: flex; flex-direction: column; height: auto; min-height: 0; background: #f3f1ea; }
  html body .ra-m2b .ra-m2b__viewport::after { display: none; }
  html body .ra-m2b .ra-m2b__stage { position: relative; inset: auto; height: clamp(300px, 52svh, 440px); min-height: 0; flex: none; }
  html body .ra-m2b .ra-m2b__copy { position: relative; left: auto; right: auto; bottom: auto; max-width: none; padding: 20px 20px 28px; background: #f3f1ea !important; }
  html body .ra-m2b .ra-m2b__eyebrow { margin-bottom: 8px; font-size: 12px; letter-spacing: .1em; }
  html body .ra-m2b .ra-m2b__title { max-width: 14ch; margin-bottom: 8px; font-size: clamp(32px, 9vw, 38px); line-height: 1; }
  html body .ra-m2b .ra-m2b__subtitle { max-width: 38ch; margin-bottom: 16px; font-size: 15px; line-height: 1.45; }
  html body .ra-m2b .ra-m2b__cta { min-height: 44px; padding: 10px 18px; font-size: 14px; }
  html[data-ra-theme="dark"] body .ra-m2b .ra-m2b__viewport { background: #1a1a18; }
  html[data-ra-theme="dark"] body .ra-m2b .ra-m2b__copy { background: #1a1a18 !important; }
}
/* DE2-C  One page-title style for every inner page: BT Grotesk 400, caps, one size step, one tracking. Home hero H1 and the Process intro stay as they are. */
/* DE4b: capital titles fitted per page so no title is taller than before (two lines max at 1440). Services needs extra specificity: n7-type-ladder.css sets it with !important. */
:root { --ra-h1: 46px; }
@media (min-width: 701px) {
  html body:has(main.ra-studio-page) { --ra-h1: 56px; }
  html body:has(#contact-title) { --ra-h1: 53px; }
  html body:has(#pd-title) { --ra-h1: 79px; }
  html body:has(main.ra-services-page) { --ra-h1: 53px; }
  html[lang="cs"] body:has(main.ra-studio-page) { --ra-h1: 32px; }
  html[lang="cs"] body:has(#contact-title) { --ra-h1: 52px; }
  html[lang="cs"] body:has(#pd-title) { --ra-h1: 79px; }
  html[lang="cs"] body:has(main.ra-services-page) { --ra-h1: 53px; }
}
@media (max-width: 700px) {
  html body:has(main.ra-studio-page) { --ra-h1: 33px; }
  html body:has(#contact-title) { --ra-h1: 30px; }
  html body:has(#pd-title) { --ra-h1: 37px; }
  html body:has(main.ra-services-page) { --ra-h1: 30px; }
  html[lang="cs"] body:has(main.ra-studio-page) { --ra-h1: 31px; }
  html[lang="cs"] body:has(#contact-title) { --ra-h1: 30px; }
  html[lang="cs"] body:has(#pd-title) { --ra-h1: 37px; }
  html[lang="cs"] body:has(main.ra-services-page) { --ra-h1: 30px; }
  html body:has(section.work-intro) { --ra-h1: 36px; }
  html[lang="cs"] body:has(section.work-intro) { --ra-h1: 36px; }
}
html[lang] body main.ra-services-page .svc-hero h1 { font-size: var(--ra-h1) !important; }
/* DE4b: home hero title at 390 kept at the before height (2 lines, 24 px); the B layout is unchanged. */
@media (max-width: 700px) { html body .ra-m2b .ra-m2b__title { font-size: 24px !important; line-height: 1.02; } }
html body main.ra-studio-page .studio-hero h1,
html body main.ra-services-page .svc-hero h1,
html body main > section.work-intro h1,
html body .cm-b-left h1,
html body .contact-intro h1,
html body .contact-paths-lead h1,
html body .pd-hero h1,
html body h1.project-context-title {
  font-family: "BT Grotesk", Arial, sans-serif !important;
  font-weight: 400 !important;
  font-size: var(--ra-h1) !important;
  line-height: 1.02 !important;
  letter-spacing: -.025em !important;
  text-transform: uppercase !important;
  text-wrap: balance;
}
html[data-ra-theme="dark"] body main.ra-studio-page .studio-hero h1,
html[data-ra-theme="dark"] body main.ra-services-page .svc-hero h1 { font-weight: 400 !important; }
/* Studio 1440 fix (either case): the title no longer runs into the hero rule above it. */
html body main.ra-studio-page .studio-hero h1 { margin-top: 44px; }
/* DE2-Q1  Plain inline links (home closing CTA, contact privacy note) use the site link colour instead of browser blue. */
html body main p a:not([class]), html body .ra-note a { color: var(--ra-accent-text, #9a5326); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: #c9a96e; text-underline-offset: 3px; transition: color .2s ease; }
html body main p a:not([class]):hover, html body .ra-note a:hover { color: #1a1a18; }
html[data-ra-theme="dark"] body main p a:not([class]), html[data-ra-theme="dark"] body .ra-note a { color: #e39a63; }
html[data-ra-theme="dark"] body main p a:not([class]):hover, html[data-ra-theme="dark"] body .ra-note a:hover { color: #f6f6f1; }
/* DE2-Q2 (v3, 390 px = 8.6% of the screen; text stays 12 px per MAX)  Cookie notice: LAYOUT ONLY, same wording.
   Text on the left (12px); OK and CLOSE stacked on the right. CLOSE stays a quiet text button. */
html body .ra-cookie-actions { align-items: center; gap: 4px; }
html body .ra-cookie-actions button[data-cookie-choice="decline"] { border-color: transparent !important; background: transparent !important; text-decoration: underline; text-decoration-color: #c9a96e; text-underline-offset: 4px; }
@media (max-width: 700px) {
  html body .ra-cookie-banner { flex-wrap: nowrap !important; align-items: flex-end !important; padding: 6px 10px 6px !important; gap: 8px !important; }
  html body .ra-cookie-banner p { flex: 1 1 auto !important; font-size: 12px !important; line-height: 1.25 !important; min-width: 0; }
  html body .ra-cookie-actions { flex-direction: column !important; gap: 4px; flex: 0 0 auto; }
  html body .ra-cookie-actions button { padding: 5px 9px !important; min-height: 28px; }
  html body:has(.ra-cookie-banner) { padding-bottom: 84px; }
}
/* DE2-Q3  Dark mode, phones: no grey box behind MENU; the side rail ticks step back so they do not touch the text. */
@media (max-width: 700px) {
  html[data-ra-theme="dark"] button.ra-v31-mobile-toggle:not(.product-key *) { background-color: transparent !important; }
  html[data-ra-theme="dark"] .bg-border-item.bg-border-verti { opacity: .35; }
}
/* DE2-Q4  Labels under the 12 px floor (PRODUCT.md) raised to 12 px. Tap areas already have hit-area pseudo-elements in ra-theme.css (no change needed). */
html body .ra-theme-label, html body .ra-tp-n, html body .project-context-k, html body .cm-b-left .k, html body .cm-b-left .rel, html body .ra-process-teaser-card span { font-size: 12px; }
/* DE4 film frame: paper behind the brand film during the fade-in (film content unchanged). */
.ra-brandfilm-frame { background: #f3f1ea !important; }
.ra-brandfilm-frame img, .ra-brandfilm-frame video { background: #f3f1ea !important; }
html[data-ra-theme="dark"] .ra-brandfilm-frame, html[data-ra-theme="dark"] .ra-brandfilm-frame img, html[data-ra-theme="dark"] .ra-brandfilm-frame video { background: #1a1a18 !important; }
/* DE3 step 1: founder text starts at the top of the portrait on desktop (dark-mode portrait not changed). */
@media (min-width: 901px) {
  html body main.ra-studio-page .studio-founder-copy { align-self: start; margin-top: 0; justify-content: flex-start; padding-top: clamp(36px, 4vw, 64px); }
}
/* DE4 item: dark-mode founder portrait = transparent cut-out (new file, original kept as fallback). Light mode unchanged. */
html[data-ra-theme="dark"] main.ra-studio-page .studio-portrait { background: #23231f !important; border: 1px solid rgba(246,246,241,.18); }
html[data-ra-theme="dark"] main.ra-studio-page .studio-portrait img { aspect-ratio: 777 / 1184; width: min(100%, 420px); height: auto; max-height: none; object-fit: contain; background: transparent; filter: none; }
@media (max-width: 600px) { html[data-ra-theme="dark"] main.ra-studio-page .studio-portrait img { width: min(62%, 220px); } }
/* DE5 contrast (WCAG 4.5:1): Services captions were #6c6a66 (4.4:1 on the beige). One step darker, #5f5d58 (5.36:1 on beige, 5.86:1 on paper). */
main.ra-services-page .svc-hero-foot, main.ra-services-page .svc-section-head p { color: #5f5d58; }
/* DE5 contrast, step 4 (WCAG 4.5:1): brass text #927643 (3.8:1 on paper) → #7d5f32 (5.27:1 paper, 4.81:1 beige; white on it 5.91:1). Grey caption #6c6a66 → #5f5d58 (5.86:1 paper, 5.36:1 beige). Brass lines and outlines keep #927643 except the token. */
:root { --ra-accent-dark: #7d5f32; }
.support > a,
main.privacy-page .privacy-kicker,
.pd-faq-routes .k, .pd-faq-still .k,
.ra-learn-card-kicker, .ra-learn-end a,
main.ra-studio-page .studio-eyebrow,
main.ra-studio-page .studio-principles article > span,
main.ra-studio-page a:focus-visible,
.work-filters b,
.project-info-item strong,
.product-hero-logo-cms-wrap > .product-hero-logo-control.item-prev:focus-visible,
.product-hero-logo-cms-wrap > .product-hero-logo-control.item-next:not(.ra-stage-next):focus-visible { color: #7d5f32; }
.product-hero-logo-cms-wrap > .product-hero-logo-control.item-prev:focus-visible,
.product-hero-logo-cms-wrap > .product-hero-logo-control.item-next:not(.ra-stage-next):focus-visible { color: #7d5f32 !important; }
main.privacy-page .privacy-updated,
main.ra-studio-page .studio-hero-foot,
.work-register-grid > .work-card p,
main.ra-services-page .svc-scope-note { color: #5f5d58; }

/* DE step 4 (polish): tour Skip/Next under 44px on phone (MAX). */
body .pd-tour button{min-height:44px}

/* DE6-3 dark-mode defects (26 Oct): contrast and light boxes in dark mode only. */
html[data-ra-theme="dark"] .product-key { background: #1a1a18; }
html[data-ra-theme="dark"] .studio-sketch { background: #1a1a18; }
html[data-ra-theme="dark"] .btn-fill-label-inner .txt-font-mono { color: #e39a63 !important; }
html[data-ra-theme="dark"] .ra-m2b__hint { color: #1a1a18; }
html[data-ra-theme="dark"] main form label { color: #f3f1ea; }
html[data-ra-theme="dark"] .ra-review-btn { background: #23231f; color: #f3f1ea; border-color: #c9a96e; }

/* DE6-5 keyboard focus: moved to foundation/ra-theme.css (DE49). */

/* DE7-1 skip link: moved to foundation/ra-theme.css (DE49). */

/* DE7-2 home brown labels in dark mode (26 Oct). Targeted to the three dark sections only. Orange #e39a63 on #1a1a18 (7.5:1). Specificity matches the site's own dark label rule. */
html[data-ra-theme="dark"] body main .home-problem-item-head .txt.txt-font-mono:not(.product-key *),
html[data-ra-theme="dark"] body main .home-map-content-label-wrap .txt.txt-font-mono:not(.product-key *),
html[data-ra-theme="dark"] body main .home-map-content .txt:not(.product-key *) { color: #e39a63 !important; }

/* DE8-1 home dark-mode labels (26 Oct). The map intro sits on a paper frame: in dark mode its text stays ink (brown mono labels), so nothing light lands on paper. The dark numbered list keeps the orange ramp. The drag hint keeps ink on its orange tab. */
html[data-ra-theme="dark"] body .home-map-main-stick-inner div.txt:not(.product-key *) { color: #1a1a18 !important; }
html[data-ra-theme="dark"] body .home-map-main-img div.txt.txt-font-mono:not(.product-key *) { color: #7a3f17 !important; }
html[data-ra-theme="dark"] body .home-map-content-item-title div.txt.txt-font-mono:not(.product-key *) { color: #e39a63 !important; }
html[data-ra-theme="dark"] body main .ra-m2b .ra-m2b__hint { color: #1a1a18 !important; }
html[data-ra-theme="dark"] body .home-map-main-stick-inner .txt.txt:not(.product-key *):not(.home-map-intro-head *) { color: #1a1a18 !important; }
html[data-ra-theme="dark"] body .home-map-main-img .txt.txt-font-mono:not(.product-key *) { color: #7a3f17 !important; }
html[data-ra-theme="dark"] body .home-map-content-item-title .txt.txt:not(.product-key *) { color: #e39a63 !important; }
/* Q-FIX (impeccable audit 29 Oct): :159 states the plate rule ("nothing light lands on paper"), but it is (0,4,3)
   and ra-theme.css:227 — inside the GENERATED block, so not editable here — is (0,5,2) and wins on class count for
   any .txt-font-mono.txt-14/.txt-12 node. That is why only the study-panel scroll hints went copper (#e39a63 on the
   cream plate = 2.06:1) while the rest of the plate stayed ink. This restates :159 for the hint subtree so it
   outranks the generated rule; :160/:164 keep the CAD annotations rust, which is deliberate. */
html[data-ra-theme="dark"] body .home-map-main-stick-inner .home-map-intro-scroll div.txt.txt-font-mono:not(.product-key *) { color: #1a1a18 !important; }
/* DE8-1 home case-study block: the section is paper in both themes; dark mode text is ink. */
html[data-ra-theme="dark"] body .ra-home-case-study :is(h2, h3, p, span, a).ra-home-case-study__title, html[data-ra-theme="dark"] body .ra-home-case-study .ra-home-case-study__caption { color: #1a1a18 !important; }
/* DE8-3 Personal Design map loader: no looping bar when reduced motion is on; text stays the status */
@media (prefers-reduced-motion: reduce) {
  .pd-maploading .pd-ml-bar { animation: none !important; background: var(--pd-accent); opacity: .5; }
}
/* DE9-1 first-visit tour card: sits above the study chooser with the same left edge and width (class set by the tour script); collapses smoothly on Skip/Done, instantly under reduced motion */
.pd-tour.pd-tour--inline { position: static; left: auto; right: auto; bottom: auto; width: 100%; max-width: none; max-height: none; overflow: visible; margin: 0 0 24px; box-shadow: none; box-sizing: border-box; }
.pd-tour.pd-tour--leaving { opacity: 0; max-height: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; border-width: 0; overflow: hidden; transition: opacity .24s ease, max-height .3s ease, margin-bottom .3s ease, padding .3s ease; }
@media (prefers-reduced-motion: reduce) { .pd-tour.pd-tour--leaving { transition: none; } }
/* DE10-4 contact form states (CSS only; calm; no wording change; light + dark). Focus ring = brass; errors are a red-brown line + text, not colour alone. */
.ra-input:user-invalid, .ra-input[aria-invalid="true"] { border-color: #8a2a1c !important; box-shadow: inset 0 -2px 0 #8a2a1c; }
.ra-form-status { font-size: var(--ra-type-sm, 14px); line-height: 1.5; max-width: 60ch; overflow-wrap: anywhere; hyphens: auto; }
.ra-form-status[data-state="error"], .ra-form-status.is-error { color: #8a2a1c; }
.ra-form-status[data-state="success"], .ra-form-status.is-success { color: #3d5a2e; }
html[data-ra-theme="dark"] .ra-input:user-invalid, html[data-ra-theme="dark"] .ra-input[aria-invalid="true"] { border-color: #e88b7a !important; box-shadow: inset 0 -2px 0 #e88b7a; }
html[data-ra-theme="dark"] .ra-form-status[data-state="error"], html[data-ra-theme="dark"] .ra-form-status.is-error { color: #e88b7a; }
html[data-ra-theme="dark"] .ra-form-status[data-state="success"], html[data-ra-theme="dark"] .ra-form-status.is-success { color: #9fc08a; }
@media (prefers-reduced-motion: reduce) { .ra-input { transition: none !important; } }
/* DE11-5 Personal Design messages (errors, offline, parcel notes): CSS only, calm, on the 14 px note step, light + dark. Wording unchanged. */
.pd-warn { margin: 12px 0; padding: 12px 16px; border: 0; border-left: 2px solid var(--pd-accent-text, #9a5326); color: inherit; font: 400 14px/1.5 system-ui, "Segoe UI", Arial, sans-serif; max-width: 60ch; overflow-wrap: anywhere; }
.pd-note { font: 14px/1.5 ui-monospace, Consolas, monospace; color: var(--pd-muted, #5f5d58); overflow-wrap: anywhere; }
.rdi-error-banner, .ra-status-bar { font: 400 14px/1.5 system-ui, "Segoe UI", Arial, sans-serif; overflow-wrap: anywhere; }
html[data-ra-theme="dark"] .pd-warn { border-left-color: #e39a63; }
@media (prefers-reduced-motion: reduce) { .pd-warn, .pd-note { transition: none !important; } }
/* DE12 (MAX 27 Oct): Work, Studio and Contact hero titles restored to the live look exactly, EN + CS, 1440 and 390. Scoped to each title. Services and Personal Design not changed here. */
@media (min-width: 601px) {
  html[lang] body main > section.work-intro > h1 { font-size: 100px !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: -7px !important; line-height: 80px !important; }
  html[lang] body main.ra-studio-page .studio-hero h1 { font-size: 62px !important; font-weight: 400 !important; text-transform: none !important; letter-spacing: -4.03px !important; line-height: 57.04px !important; }
  html[lang="cs"] body main.ra-studio-page .studio-hero h1 { font-size: 41px !important; letter-spacing: -2.665px !important; line-height: 41px !important; }
  html[lang] body main #contact-title { font-size: 54.72px !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: -2.4624px !important; line-height: 53.6256px !important; }
}
@media (max-width: 600px) {
  html[lang] body main > section.work-intro > h1 { font-size: 46.8px !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: -3.276px !important; line-height: 37.44px !important; }
  html[lang] body main.ra-studio-page .studio-hero h1 { font-size: 44px !important; font-weight: 400 !important; text-transform: none !important; letter-spacing: -2.86px !important; line-height: 40.48px !important; }
  html[lang] body main #contact-title { font-size: 32px !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: -1.44px !important; line-height: 31.36px !important; }
}
/* DE12b (MAX 27 Oct): Services keeps 56 px and capitals, takes the live weight 500. Personal Design title restored to live exactly (92 px bold at 1440; 40 px bold at 390). Scoped; no font-family change. */
html[lang] body main.ra-services-page .svc-hero h1 { font-weight: 500 !important; }
@media (min-width: 601px) {
  html[lang] body main #pd-title { font-size: 92px !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: -0.92px !important; line-height: 87.4px !important; }
}
@media (max-width: 600px) {
  html[lang] body main #pd-title { font-size: 40px !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: -0.4px !important; line-height: 38px !important; }
}

/* DE16 (27 Oct): tour Next button in dark theme. ra-theme.css forces button text #c2b8a8 !important;
   the Next button sits on the dark-tour ink #f6ead9, so text becomes the paper ink (#1a1a18, ~15:1). */
html[data-ra-theme="dark"] .pd-tour button:last-child{color:#1a1a18!important}

/* DE18 (27 Oct): 390 tap targets. Invisible hit-area extension for the theme toggle and the language switch (look unchanged). */
/* B3 (28 Oct): header theme toggle tap fix — toggle & language link given z-index: 2; language ::after clipped above toggle (pointer-events: none); tap targets >= 44px. */
.ra-theme-toggle, .ra-v31-language-inactive { position: relative; z-index: 2; }
.ra-theme-toggle::after { content: ""; position: absolute; inset: -12px -6px; }
.ra-v31-language-inactive::after { content: ""; position: absolute; inset: -16px -14px; }
.ra-v31-language { position: relative; }
.ra-v31-language::after { content: ""; position: absolute; inset: -10px -6px auto -6px; height: 32px; pointer-events: none; }

/* DE21 launch audit: dark-mode Review brief button text was #c2b8a8 on #e7e1d4 (about 1.5:1). Dark text on the light button. */
html[data-ra-theme="dark"] button.ra-review-btn:not(.product-key *) { color: #1a1a18 !important; }

/* DE22 (MAX approved P1-1): home light headline grey 2.1:1 -> 3.15:1 (large text); [01] labels 2.08:1 -> 4.58:1 (13px). */
html body main .home-intro-content-title h2 { color: #8a8a85 !important; }
html:not([data-ra-theme="dark"]) .home-problem-item-head-num, html:not([data-ra-theme="dark"]) .home-problem-item-head-num .txt { color: #6f6f6b !important; }

/* DE22 (MAX approved P1-2): raise-only floor 12px. Scoped by parent class to the 10px and 11.7px home intro/map labels, the contact 01-04 and Optional labels, and the Review button. 13px and 14px labels are not touched. */
html body main .home-map-intro-title div.txt.txt-font-mono.txt-12, html body main .home-map-intro-scroll div.txt.txt-font-mono.txt-12, html body main .home-map-intro-sub div.txt.txt-14, html body main .home-map-intro-scroll div.txt.txt-14, html body main .home-map-main-img-sub-desc div.txt.txt-14 { font-size: 12px !important; }
html body main .ra-sec-h > span:not(.product-key *), html body main span.ra-opt:not(.product-key *), html body main button.ra-review-btn:not(.product-key *) { font-size: 12px !important; }
/* Q-FIX (impeccable audit 29 Oct): the contact form's "(Optional)" annotation is de-emphasised with opacity:.65
   (inline in contact/index.html:387 and cs/contact/index.html:388, so 2 files, not 70 like the footer rule).
   Its colour is already the secondary copper #9a5326 from .ra-form-label span, and the .65 fade dragged it to
   2.74:1 on the paper. Dropping the fade leaves it at 5.32:1 and still visually quieter than the ink label,
   which is what the fade was standing in for. DE22 already raised this same label's size, so it is treated as
   functional copy, not ornament. */
html body main .ra-form-label .ra-opt:not(.product-key *) { opacity: 1; }


/* DE23: button states + browser-detail polish. Calm; no motion added. */
/* Q-FIX b11: caret and focus ring were #9a5a2c, a value no token declares. Moved to #9a5326, the site's own --ra-accent-text. Same hue family, two fewer variants; contrast rises 4.83:1 -> 5.14:1 on paper. */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #9a5326; outline-offset: 4px; }
button:disabled, input:disabled, select:disabled, textarea:disabled { opacity: .5; cursor: not-allowed; }
.ra-cta-button:active, .btn-fill:active { transform: translateY(1px); }
::selection { background: #e7c9a0; color: #1a1a18; }
html[data-ra-theme="dark"] ::selection { background: #5a3f22; color: #f6f6f1; }
html { caret-color: #9a5326; scrollbar-color: #8a8a85 #f6f6f1; }
html[data-ra-theme="dark"] { caret-color: #e39a63; scrollbar-color: #5c5a54 #1a1a18; }
main a { text-underline-offset: .18em; text-decoration-thickness: 1px; }
[class*="price"], [class*="amount"], [class*="total"] { font-variant-numeric: tabular-nums; }
/* DE23 hover (RC-2 only): cream text on the dark fill, and an inverted fill in dark theme. Final state, after the fill transition. */
html:not([data-ra-theme="dark"]) .ra-cta-button:hover .btn-fill-label-inner, html:not([data-ra-theme="dark"]) .ra-cta-button:hover .btn-fill-icon-svg { color: #f6f6f1 !important; stroke: #f6f6f1 !important; }
html[data-ra-theme="dark"] .ra-cta-button:hover .btn-fill-bg { background-color: #f6f6f1 !important; }
html[data-ra-theme="dark"] .ra-cta-button:hover .btn-fill-label-inner, html[data-ra-theme="dark"] .ra-cta-button:hover .btn-fill-icon-svg { color: #1a1a18 !important; stroke: #1a1a18 !important; }
/* DE23: the live cursor dot never blocks a click. */
.cursor-inner, .cursor-outer { pointer-events: none !important; }
/* DE23 (CDP-verified): light-theme CTA hover = dark fill + cream text (about 15:1). */
html:not([data-ra-theme="dark"]) .ra-cta-button:hover { background-color: #1a1a18 !important; border-color: #1a1a18 !important; color: #f6f6f1 !important; }

/* DE23 (fix): the visible CTA fill is .btn-fill-bg and the label is .ra-cta-label; light hover = dark fill + cream text. */
html:not([data-ra-theme="dark"]) .ra-cta-button:hover .btn-fill-bg { background-color: #1a1a18 !important; }
html:not([data-ra-theme="dark"]) .ra-cta-button:hover .ra-cta-label { color: #f6f6f1 !important; }
/* DE23 (fix): focus ring on the CTA must be >= 3:1 against the copper fill; dark ink ring. */
html .ra-cta-button:focus-visible { outline: 2px solid #1a1a18 !important; outline-offset: 3px !important; }

/* DE reveal (de-reveal.js): fade + 14px lift, once, only when motion is allowed and the script ran. */
@media (prefers-reduced-motion: no-preference) {
  html .js-reveal { opacity: 0; transform: translateY(14px); transition: opacity .75s ease-out, transform .75s ease-out; }
  html .js-reveal.is-in { opacity: 1; transform: none; }
}

/* DE32 (27 Oct, MAX): real reading text raised to 12 px (raise-only). Drawing, showcase and loader labels are untouched. */
.ra-contact-left a { font-size: 12px !important; }
/* DE32: placeholder on the dark contact brief reaches about 5:1 (was 2.3:1). */
/* Q-FIX (impeccable audit 29 Oct): scope to dark only — the light brief was inheriting #8c8c86 (3.1:1 on paper). Light now falls back to project-brief.css .ra-input::placeholder #55564f (~6.5:1). */
html[data-ra-theme="dark"] .ra-project-brief ::placeholder { color: #8c8c86 !important; opacity: 1; }
/* DE32: pretty line breaks on body paragraphs (no single word left alone on the last line). */
main p { text-wrap: pretty; }

/* DE32 round 4 (MAX): PD hero intro capped at about 68ch; footer copyright row gets an inset from its rules. */
.pd-hero p:not(.pd-kicker) { max-width: 68ch; }
.footer-copyright-wrap { padding-top: 18px; padding-bottom: 18px; }

/* DE33 (27 Oct, MAX): cookie banner text line-height 1.4 (was 1.25, detector tight-leading). */
.ra-cookie-banner p { line-height: 1.4; }

/* DE34 (27 Oct, MAX): CS studio H1 eased tracking (was -2.665px at 41px) so diacritics do not touch. CS only. */
html[lang="cs"] body main.ra-studio-page .studio-hero h1 { letter-spacing: -1px !important; }

/* DE41 F06 (27 Oct): phone tap targets at least 44 px. Look unchanged: only the hit area grows. */
@media (max-width: 760px) {
  html body #raBtnZoomIn, html body #raBtnZoomOut { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}

/* DE44 F06 (28 Oct, MAX): Concept canvas variant buttons A/B/C 44 px tall at phone width (were 28). Label size unchanged. */
@media (max-width: 760px) {
  html body #raCanvasVariants .ra-cv-btn { min-height: 44px; }
}

/* DE45 F06 (28 Oct, FRESH-EYES-2): phone tap areas 44 px, look unchanged. Footer policy and language links, map retry. */
@media (max-width: 760px) {
}

/* DE46 round 2 and DE45 tap rules: moved to foundation/ra-theme.css (DE48) so all public pages get them. */
@media (max-width: 760px) {
}

/* DE43 (27 Oct, DE42 critique), chooser only. (1) "Both" stripe is copper over brass, like the two single studies (was ink, read as unfinished). (2) Chooser frame 1 px, same weight as the step card above (was 2 px: two heavy boxes stacked). */
html body main.pd-site .pd-study-choice { border-width: 1px; }
html body main.pd-site .pd-study-options button:nth-child(3)::before { background: linear-gradient(#9a5326 50%, #a88440 50%); }
html[data-ra-theme="dark"] body main.pd-site .pd-study-options button:nth-child(3)::before { background: linear-gradient(#b06a3a 50%, #c9a96e 50%); }
@media (prefers-color-scheme: dark) {
  html:not([data-ra-theme="light"]) body main.pd-site .pd-study-options button:nth-child(3)::before { background: linear-gradient(#b06a3a 50%, #c9a96e 50%); }
}
