/* Home-only minimum size for actionable controls; decorative CAD labels stay as designed. */
.ra-v31-header .ra-v31-build-cta .ra-v31-cta-label,
.home-map a[href*="/contact/"],
.ra-personal-showcase-cta,
.ra-process-teaser-link,
.home-cta-wrap .ra-cta-button,
.footer-build-cta .label {
  font-size: 14px !important;
}

.ra-personal-showcase-cta {
  letter-spacing: 0.045em;
}

.ra-process-teaser-link {
  letter-spacing: 0.06em;
}

/* Phase 1 Home legibility: body copy 16px, meaningful labels 13-14px. Decorative CAD annotations and the protected process teaser stay as designed. */
.home-hero-sub .txt,
.home-problem-sub,
.home-problem-item-sub .txt,
.home-map-content-sub,
.home-map-content-item-title .txt-16,
.home-usecase-faq-item-sub .txt,
.home-usecase-faq-item-sub { font-size: 16px !important; line-height: 1.45 !important; }
.home-map-main-img-sub-title .txt { font-size: 14px !important; }
.home-problem-label,
.home-usecase-label,
.home-hero-work-item-title { font-size: 14px !important; }
.btn-fill-label .txt-font-mono,
.home-problem-item-head-title,
.home-problem-item-head-num,
.home-map-content-label,
.home-map-content-item-title .txt-14 { font-size: 13px !important; }
.home-problem-item-head-title .txt,
.home-problem-item-head-num .txt,
.home-map-content-label .txt { font-size: 13px !important; }
.home-map-content-sub .txt { font-size: 16px !important; line-height: 1.45 !important; }

/* Phase 1 Home 2b: process teaser card captions and map code labels only. */
.ra-process-teaser-card span { font-size: 12px !important; }   /* DE67: 10 -> 12px (audit: functional label) */
.home-map-main-img-sub-label,
.home-map-main-img-sub-label .txt { font-size: 12px !important; }

/* DE67 audit: Personal Design showcase. The 5px overlay labels only repeated what the how-to video itself shows,
   so they are hidden; the caption line under the frame is raised from ~5px to 12px. */
.ra-personal-showcase-frame > .ra-personal-showcase-state,
.ra-personal-showcase-frame > .ra-personal-showcase-caption { display: none !important; }
html body .ra-personal-showcase-index { font-size: 12px; }

/* Q-FIX (impeccable audit 29 Oct): the map citation labels (DE67 already raised them to 12px) still
   sat on --ra-accent #c7713d = 3.31:1 against the #f6f6f1 paper in light. Copper identity kept,
   tone deepened to the sheet's accent-text #9a5326 = 5.32:1 on paper / 5.14:1 on the cream map plate.
   Dark is untouched by this rule: there the plate stays cream and the labels already render #1a1a18 = 15.54:1.
   !important because ra-v31-shell.css:1220 sets this copper on the same label with !important. */
html:not([data-ra-theme="dark"]) .home-map-main-img-sub-label .txt,
html:not([data-ra-theme="dark"]) .home-map-main-img-sub-label-wrap .txt { color: #9a5326 !important; }

/* Q-FIX (impeccable audit 29 Oct): the "[SCROLL TO CONTINUE]" / "[POKRAČUJTE POSUNEM]" study-panel hint is
   instruction text, not ornament, but it used the Webflow --content--disable #b4b4b0 = 1.85:1 on the cream map
   plate (measured on the /cs/ home sweep, 29 Oct) in light. Kept as a secondary tone, raised to the sheet's --mut #625f56
   = 5.69:1. In dark the same hint was inconsistent between panels (#e39a63 = 2.06:1 on panels 1-2, #1a1a18
   = 15.54:1 on panels 3-4) because the txt-14 and txt-12 markup paths hit different de-upgrades rules; the
   plate stays cream in dark, so all four now take the plate's own ink. Scoped to the child div so the
   "START A PROJECT" link in the last panel keeps its own colour. */
.home-map-intro-scroll > div { color: #625f56; }
/* Dark is handled at the source, in the DE8-1 plate block (de-upgrades.css:166), not here.
   Scoped to the child div so the "START A PROJECT" link in the last panel keeps its own colour. */

/* ZCODE 6 Nov (critique fixes): home final CTA block legibility + on-system styling.
   Root cause: the positioned point-cloud canvas painted above the static section text. */
.cta-wrap#contact section { position: relative; }
.cta-wrap#contact section > * { position: relative; z-index: 1; }
.cta-wrap#contact section::before {
  content: ""; position: absolute; z-index: 0; inset: 8% 6%;
  background: radial-gradient(ellipse 62% 72% at 50% 50%,
    rgba(246,246,241,.96) 0%, rgba(246,246,241,.82) 45%, rgba(246,246,241,0) 78%);
  pointer-events: none;
}
html[data-ra-theme="dark"] .cta-wrap#contact section::before {
  background: radial-gradient(ellipse 62% 72% at 50% 50%,
    rgba(26,26,24,.96) 0%, rgba(26,26,24,.84) 45%, rgba(26,26,24,0) 78%);
}
.cta-wrap#contact section p a { color: #9a5326; text-decoration: underline; text-underline-offset: 3px; }
html[data-ra-theme="dark"] .cta-wrap#contact section p a { color: #e39a63; }
.cta-wrap#contact a.ra-cta-button.btn-fill { background: #1a1a18 !important; border: 1px solid #1a1a18; }
.cta-wrap#contact a.ra-cta-button.btn-fill .btn-fill-bg { display: none; }
.cta-wrap#contact a.ra-cta-button.btn-fill, .cta-wrap#contact a.ra-cta-button.btn-fill .ra-cta-label { color: #f6f6f1 !important; }

/* ZCODE 6 Nov (owner-requested): featured case-study card under the Areas-of-practice
   accordion — fills the dead space beside the tall image. Home only. */
.home-usecase-content { display: flex; flex-direction: column; }
.home-usecase-content .home-usecase-faq-cms { flex: 0 0 auto; }
.home-case-card {
  display: flex; gap: 18px; align-items: stretch;
  margin-top: 2.4rem; padding-top: 1.8rem;
  border-top: 1px solid var(--content--border, rgba(40,40,40,.08));
  color: var(--content--primary, #1a1a18); text-decoration: none;
}
.home-case-card-thumb { flex: 0 0 clamp(120px, 22%, 200px); align-self: flex-start; }
.home-case-card-thumb img { width: 100%; height: auto; aspect-ratio: 1.5; object-fit: cover; display: block; background: #ebe9e1; }
.home-case-card-kicker { color: #9a5326; font: 600 11px/1.4 var(--font-mono, monospace); letter-spacing: .1em; }
.home-case-card-name { margin-top: .55rem; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.1; }
.home-case-card-meta { margin-top: .45rem; color: #6c6a66; font-size: var(--ra-type-card, 15px); line-height: 1.5; }
.home-case-card-link { margin-top: .9rem; color: #9a5326; font: 600 12px/1 var(--font-mono, monospace); letter-spacing: .1em; }
html[data-ra-theme="dark"] .home-case-card { border-top-color: rgba(246,246,241,.18); color: #f6f6f1; }
html[data-ra-theme="dark"] .home-case-card-thumb img { background: #23231f; }
html[data-ra-theme="dark"] .home-case-card-kicker, html[data-ra-theme="dark"] .home-case-card-link { color: #e39a63; }
html[data-ra-theme="dark"] .home-case-card-meta { color: #c2b8a8; }
.home-case-card:hover .home-case-card-link { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) {
  .home-case-card { margin-top: 2rem; }
  .home-case-card-thumb { flex: 0 0 96px; }
}

/* ===== ZCODE 6 Nov (owner: horizontal/shorter rollout) — home scroll-story compression =====
   The floor-plan story track shrinks 4500 -> 3200 (still ~3.5 viewports of reveal);
   the Personal Design showcase wrap tightens; sparse section paddings trimmed. */
@media (min-width: 992px) {
  .home-map-wrap { height: 3200px !important; }
  .ra-personal-showcase-wrap { height: 150vh !important; height: 150svh !important; }
}

/* ===== ZCODE 7 Nov (owner: horizontal/shorter rollout — home pass) =====
   Scroll-story tracks shortened further; showcase wrap tightened. Structure and
   storytelling unchanged — only the scroll length needed to tell them. */
@media (min-width: 992px) {
  .home-map-wrap { height: 2600px !important; }
  .ra-personal-showcase-wrap { height: 132vh !important; height: 132svh !important; }
  .home-usecase-wrap { min-height: 0 !important; }
  .home-problem-wrap { min-height: 0 !important; }
}

/* ===== ZCODE 7 Nov (deep horizontal pass): tighten full-height section padding ===== */
@media (min-width: 992px) {
  .ra-home-case-study { padding: 64px 4vw !important; }
  .ra-brandfilm { padding: 72px 4vw !important; }
  .ra-twopaths { padding: 64px 4vw !important; }
  .ra-process-teaser { padding: 48px 4vw !important; }
  .home-map-wrap { height: 2600px !important; }  /* 2200 broke the reveal pacing: the pin released before the story finished */
  .ra-personal-showcase-wrap { height: 118vh !important; height: 118svh !important; }
}
