/* Bond & Play R28 — responsive QA corrections
   Scope: typography hierarchy, carousel indicators/arrows, homepage Unit rollover spacing,
   Barnaby mobile/tablet callout placement, and button containment. */

/* ---------- Global button containment ---------- */
.button {
  min-width: 0;
  max-width: 100%;
  line-height: 1.15;
  text-align: center;
}
.button > span[aria-hidden="true"] { flex: 0 0 auto; }

/* ---------- Homepage hero hierarchy ---------- */
body[data-release="r32"] .hero-deck {
  max-width: 610px;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.52;
}
body[data-release="r32"] .hero-model-line {
  max-width: 590px;
  margin: 13px 0 0;
  color: rgba(255,255,255,.74);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .075em;
  text-transform: uppercase;
  font-weight: 750;
}

/* ---------- Homepage Unit rollover/card inset ---------- */
body[data-release="r32"] .engage-card,
body[data-release="r32"] .engage-card + .engage-card {
  padding-left: 26px;
  padding-right: 26px;
}
body[data-release="r32"] .engage-card:hover,
body[data-release="r32"] .engage-card:focus-visible {
  background: rgba(255,255,255,.46);
}

/* ---------- Hero thumbnail indicators ----------
   Keep the image/title selectors and arrows; remove numeric/line state markers. */
.hero-thumb small { display: none !important; }
.hero-thumb::after { display: none !important; content: none !important; }
.hero-thumb span {
  display: flex !important;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 5px;
}
.hero-thumb strong,
.hero-thumb em { grid-column: auto !important; }
.hero-thumb em { margin-top: 0 !important; }

/* Unit-page dot/counter indicators are intentionally removed at every viewport. */
.zuri-hero-controls,
.theo-hero-controls,
.james-hero-controls {
  display: none !important;
}

/* Arrow hit targets: explicit pointer/touch behavior and top stacking. */
.rail-arrow {
  position: relative;
  z-index: 8;
  pointer-events: auto;
  touch-action: manipulation;
  min-width: 40px;
  min-height: 40px;
}

/* ---------- Barnaby callout ---------- */
.barnaby-mobile-callout { display: none; }

@media (max-width: 1100px) {
  /* On tablet/mobile the callout belongs in the content stack, directly below
     the Barnaby identity mark instead of floating over the subject's face. */
  .barnaby-page .barnaby-hero .hero-slide .hero-definition {
    display: none !important;
  }
  .barnaby-page .barnaby-mobile-callout {
    display: flex;
    width: min(100%, 560px);
    align-items: baseline;
    gap: 10px;
    margin: 0 0 20px;
    padding: 11px 14px 11px 13px;
    border-left: 3px solid var(--gold);
    background: rgba(8,8,7,.72);
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
    box-shadow: 0 9px 28px rgba(0,0,0,.18);
  }
  .barnaby-page .barnaby-mobile-callout strong {
    flex: 0 0 auto;
    color: #fff;
    font-family: var(--sans);
    font-size: 10px;
    line-height: 1.15;
    font-weight: 850;
    letter-spacing: .13em;
  }
  .barnaby-page .barnaby-mobile-callout span {
    color: rgba(255,255,255,.9);
    font-size: 11px;
    line-height: 1.3;
    font-weight: 600;
  }
}

@media (max-width: 767px) {
  /* Mobile hierarchy: primary explanatory copy reads materially larger than
     the architecture line beneath it. */
  body[data-release="r32"] .hero-deck {
    max-width: 100%;
    font-size: 14.5px;
    line-height: 1.5;
  }
  body[data-release="r32"] .hero-model-line {
    max-width: 330px;
    margin-top: 10px;
    font-size: 9.5px;
    line-height: 1.42;
    letter-spacing: .055em;
  }

  body[data-release="r32"] .engage-card,
  body[data-release="r32"] .engage-card + .engage-card {
    min-height: 0;
    padding: 30px 20px 32px;
  }
  body[data-release="r32"] .engage-card h3 {
    margin: 30px 0 16px;
    font-size: clamp(31px, 9.5vw, 38px);
  }
  body[data-release="r32"] .engage-card p {
    font-size: 14px;
    line-height: 1.58;
  }

  .button {
    padding-inline: 14px;
    font-size: 9.5px;
    letter-spacing: .065em;
    white-space: normal;
  }

  /* Home dynamic CTA remains compact while always containing its label. */
  body[data-release="r32"] .hero-actions--single {
    width: min(100%, 250px);
  }
  body[data-release="r32"] .hero-actions--single .button {
    width: 100%;
    justify-content: space-between;
  }

  /* Barnaby: use the full shell width for both CTAs. */
  .barnaby-page .barnaby-hero .hero-actions {
    width: 100%;
    max-width: 430px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: 9px;
  }
  .barnaby-page .barnaby-hero .hero-actions .button {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding-inline: 11px;
    gap: 8px;
    font-size: 9.2px;
    white-space: nowrap;
  }
  .barnaby-page .barnaby-mobile-callout {
    width: 100%;
    margin-bottom: 18px;
    padding: 10px 12px;
    gap: 8px;
  }
  .barnaby-page .barnaby-mobile-callout strong {
    font-size: 8.5px;
    letter-spacing: .11em;
  }
  .barnaby-page .barnaby-mobile-callout span {
    font-size: 9.8px;
    line-height: 1.28;
  }

  .rail-arrow {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    font-size: 16px;
  }
}

@media (max-width: 390px) {
  body[data-release="r32"] .hero-deck { font-size: 14px; }
  body[data-release="r32"] .hero-model-line { font-size: 9.2px; }

  /* At narrow-phone widths stacking is the cleanest way to preserve the full
     Barnaby labels without truncation or cramped typography. */
  .barnaby-page .barnaby-hero .hero-actions {
    grid-template-columns: 1fr;
    max-width: 330px;
  }
  .barnaby-page .barnaby-hero .hero-actions .button {
    justify-content: space-between;
    font-size: 9.8px;
  }
  .barnaby-page .barnaby-mobile-callout {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

/* ---------- R28 narrow-screen CTA containment ---------- */
@media (max-width: 520px) {
  /* Closing/engagement CTAs use a full-width single-column touch target so
     long Unit labels remain fully contained and readable. */
  .atlas-cta .hero-actions,
  body[data-release="r32"] .owned-intelligence .hero-actions,
  .barnaby-page .closing-inner .hero-actions {
    width: min(330px, 100%) !important;
    max-width: 330px !important;
    grid-template-columns: 1fr !important;
  }
  .atlas-cta .hero-actions .button,
  body[data-release="r32"] .owned-intelligence .hero-actions .button,
  .barnaby-page .closing-inner .hero-actions .button {
    width: 100% !important;
    min-width: 0 !important;
    padding-inline: 13px !important;
    gap: 10px !important;
    font-size: 9.2px !important;
    letter-spacing: .055em !important;
    white-space: nowrap !important;
  }

  /* Barnaby's primary pair can stay side-by-side on larger phones, with
     calibrated typography instead of clipped labels. */
  .barnaby-page .barnaby-hero .hero-actions .button {
    font-size: 8.6px !important;
    letter-spacing: .045em !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 390px) {
  .barnaby-page .barnaby-hero .hero-actions .button {
    font-size: 9.6px !important;
    letter-spacing: .055em !important;
  }
}
@media (max-width: 520px) {
  body[data-release="r32"] .closing-inner .hero-actions {
    width: min(330px, 100%) !important;
    max-width: 330px !important;
    grid-template-columns: 1fr !important;
  }
  body[data-release="r32"] .closing-inner .hero-actions .button {
    width: 100% !important;
    min-width: 0 !important;
    padding-inline: 13px !important;
    gap: 10px !important;
    font-size: 9.2px !important;
    letter-spacing: .055em !important;
    white-space: nowrap !important;
  }
}


/* ================================================================
   Bond & Play R28 V2 — live visual QA corrections
   - Common Unit hero title scale
   - Tighter section rhythm at tablet / desktop widths
   - Cleaner Theo architecture vs engagement method distinction
   - Hostinger live-layout hardening
   ================================================================ */

/* All four Unit names use one typographic scale. This intentionally overrides
   the older Zuri-specific oversized rule and page-specific variants. */
body[data-release="r32"].atlas-page .atlas-hero h1 {
  font-size: clamp(62px, 7.2vw, 112px) !important;
  line-height: .84 !important;
  letter-spacing: -.04em !important;
  white-space: nowrap;
}

/* Premium section rhythm: keep the thesis large without creating large dead
   zones between the headline and supporting copy. */
body[data-release="r32"] .opportunity-thesis {
  padding: clamp(58px, 6.4vw, 92px) 0;
}
body[data-release="r32"] .opportunity-thesis-grid {
  align-items: start;
  gap: clamp(30px, 5.5vw, 78px);
}
body[data-release="r32"] .opportunity-thesis h2 {
  font-size: clamp(42px, 4.6vw, 70px);
  line-height: .99;
}
body[data-release="r32"] .opportunity-thesis-grid > div:last-child p {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.55;
}

body[data-release="r32"].atlas-page .unit-why-now {
  padding: clamp(50px, 5.2vw, 76px) 0;
}
body[data-release="r32"].atlas-page .unit-why-now-grid {
  align-items: start;
  gap: clamp(28px, 5vw, 68px);
}
body[data-release="r32"].atlas-page .unit-why-now h2 {
  font-size: clamp(34px, 3.7vw, 54px);
  line-height: 1.01;
}
body[data-release="r32"].atlas-page .unit-why-now-grid > div:last-child > p {
  font-size: clamp(15px, 1.08vw, 17px);
  line-height: 1.58;
}

/* Theo: architecture cards explain operating design; method cards explain the
   engagement sequence. A slight surface shift makes the transition explicit. */
body[data-release="r32"].theo-page #agentic-design {
  background: #f7f4ee;
}
body[data-release="r32"].theo-page .theo-method-section {
  background: #efebe3;
  border-top: 1px solid rgba(14,14,13,.10);
}
body[data-release="r32"].theo-page .theo-method-grid h3 {
  max-width: 11ch;
  font-size: clamp(30px, 2.5vw, 42px);
  line-height: 1.02;
}
body[data-release="r32"].theo-page .theo-agentic-grid h3 {
  font-size: clamp(29px, 2.25vw, 38px);
}

@media (max-width: 1100px) {
  body[data-release="r32"].atlas-page .atlas-hero h1 {
    font-size: clamp(58px, 7.5vw, 82px) !important;
  }
  body[data-release="r32"].atlas-page .unit-why-now {
    padding: 54px 0;
  }
}

@media (max-width: 900px) {
  body[data-release="r32"] .opportunity-thesis {
    padding: 52px 0 56px;
  }
  body[data-release="r32"] .opportunity-thesis-grid {
    gap: 20px;
  }
  body[data-release="r32"] .opportunity-thesis h2 {
    font-size: clamp(39px, 5.2vw, 46px);
    max-width: 780px;
  }
  body[data-release="r32"] .opportunity-thesis-grid > div:last-child p {
    max-width: 760px;
    font-size: 16px;
  }
  body[data-release="r32"].atlas-page .unit-why-now-grid {
    gap: 18px;
  }
  body[data-release="r32"].atlas-page .unit-why-now h2 {
    font-size: clamp(34px, 4.8vw, 42px);
    max-width: 760px;
  }
  body[data-release="r32"].atlas-page .unit-why-now-grid > div:last-child > p {
    max-width: 760px;
    font-size: 15px;
  }
}

@media (max-width: 767px) {
  body[data-release="r32"].atlas-page .atlas-hero h1 {
    font-size: clamp(44px, 13.6vw, 62px) !important;
    line-height: .86 !important;
  }
  body[data-release="r32"] .opportunity-thesis {
    padding: 48px 0 52px;
  }
  body[data-release="r32"] .opportunity-thesis h2 {
    font-size: clamp(36px, 10.4vw, 46px);
    line-height: 1;
  }
  body[data-release="r32"].atlas-page .unit-why-now {
    padding: 46px 0 50px;
  }
  body[data-release="r32"].atlas-page .unit-why-now h2 {
    font-size: clamp(32px, 9.7vw, 42px);
  }
  body[data-release="r32"].theo-page .theo-method-grid h3,
  body[data-release="r32"].theo-page .theo-agentic-grid h3 {
    max-width: none;
  }
}

@media (max-width: 390px) {
  body[data-release="r32"].atlas-page .atlas-hero h1 {
    font-size: 52px !important;
  }
}

@media (max-width: 350px) {
  body[data-release="r32"].atlas-page .atlas-hero h1 { font-size: 48px !important; }
}

/* ================================================================
   Bond & Play R28 V3 — surgical mobile hero CTA containment
   The homepage hero has a single dynamic CTA. Earlier mobile rules
   retained a two-column grid inherited from the former two-button hero,
   constraining the active button to half the available width. V3 makes
   the single-action geometry explicit and keeps the arrow inside the
   touch target at every phone width.
   ================================================================ */
@media (max-width: 767px) {
  body[data-release="r32"] .hero-actions.hero-actions--single {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: min(280px, 100%) !important;
    max-width: 280px !important;
    gap: 0 !important;
  }
  body[data-release="r32"] .hero-actions.hero-actions--single .button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 48px !important;
    padding: 0 16px !important;
    gap: 14px !important;
    justify-content: space-between !important;
    white-space: nowrap !important;
    overflow: hidden;
  }
  body[data-release="r32"] .hero-actions.hero-actions--single .button > span[aria-hidden="true"] {
    margin-left: auto;
    flex: 0 0 auto;
  }
}

@media (max-width: 350px) {
  body[data-release="r32"] .hero-actions.hero-actions--single {
    width: min(268px, 100%) !important;
    max-width: 268px !important;
  }
  body[data-release="r32"] .hero-actions.hero-actions--single .button {
    padding-inline: 14px !important;
  }
}


/* R30 legal footer navigation */
.footer-legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  width: 100%;
  margin-top: 2px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.footer-legal a {
  color: rgba(255,255,255,.68);
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: .02em;
  text-decoration: none;
  transition: color .2s ease;
}
.footer-legal a:hover,
.footer-legal a:focus-visible { color: #fff; }
@media (max-width: 760px) {
  .footer-legal { gap: 11px 17px; padding-top: 16px; }
  .footer-legal a { font-size: 10.5px; }
}
/* R30 privacy-at-collection notice */
.form-privacy-note {
  margin: 10px 0 0;
  font-size: 10.5px;
  line-height: 1.5;
  color: rgba(17,17,15,.58);
}
.form-privacy-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.section-dark .form-privacy-note, .founding-card .form-privacy-note { color: rgba(17,17,15,.62); }

/* R30 secure form capture status */
.form-submit-status { min-height: 18px; margin: 14px 0 0; font-size: 12px; line-height: 1.45; color: var(--muted, #6f6a62); }
.form-submit-status.is-success { color: #315f3d; }
.form-submit-status.is-error { color: #8a2d25; }
.atlas-form button[disabled] { opacity: .72; cursor: progress; }

/* R30 security: bot honeypot stays outside the visual/accessibility flow. */
.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}


/* ============================================================
   R32 — LIVE QA CORRECTIONS
   ============================================================ */
/* Homepage Unit cards: preserve equal horizontal inset at every desktop/tablet hover state.
   This is intentionally release-agnostic so the R30 body release marker cannot bypass it. */
@media (min-width: 768px) {
  .engage-grid .engage-card,
  .engage-grid .engage-card + .engage-card {
    padding-left: 26px;
    padding-right: 26px;
    box-sizing: border-box;
  }
}
@media (max-width: 767px) {
  .engage-grid .engage-card,
  .engage-grid .engage-card + .engage-card {
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
  }
}

/* Footer readability: legal navigation is supporting content, but it must remain comfortably legible. */
.site-footer .footer-grid {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.45;
}
.site-footer .footer-grid > p {
  color: rgba(255,255,255,.68);
  font-size: 11.5px;
  font-weight: 550;
  letter-spacing: .01em;
}
.site-footer .footer-legal {
  gap: 11px 22px;
  padding-top: 19px;
}
.site-footer .footer-legal a {
  color: rgba(255,255,255,.78);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: .01em;
}
.site-footer .footer-legal a:hover,
.site-footer .footer-legal a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 760px) {
  .site-footer .footer-grid > p { font-size: 11.5px; }
  .site-footer .footer-legal { gap: 12px 18px; }
  .site-footer .footer-legal a { font-size: 12px; }
}

/* Turnstile fits inside modal and Barnaby form layouts without creating overflow. */
.bp-turnstile-wrap {
  width: 100%;
  min-height: 0;
  margin: 14px 0 4px;
  overflow: visible;
}
.bp-turnstile-wrap iframe { max-width: 100%; }
.bp-turnstile-note {
  margin: 6px 0 0;
  color: rgba(17,17,15,.58);
  font-size: 10px;
  line-height: 1.4;
}
.section-dark .bp-turnstile-note { color: rgba(255,255,255,.62); }


/* ============================================================
   R32 — SECURITY + CONSISTENCY
   ============================================================ */
/* Preserve legible footer hierarchy across every Unit copy of the shared global layer. */
.site-footer .footer-legal a { min-height: 20px; display: inline-flex; align-items: center; }
@media (max-width: 430px) {
  .site-footer .footer-legal { row-gap: 13px; }
  .site-footer .footer-legal a { font-size: 12.5px; }
}
/* Turnstile: reserve enough width for managed mode without introducing horizontal overflow. */
.bp-turnstile-wrap { max-width: 100%; }
.bp-turnstile-wrap > div { max-width: 100%; }


/* ============================================================
   R34 — ASK BOND ACCESSIBILITY + LEGIBILITY
   High-contrast defaults, hover/focus states, and input treatment.
   ============================================================ */
#ask-bond-panel {
  --ab-bg: #11100f;
  --ab-raised: #1c1914;
  --ab-border: #51493d;
  --ab-border-soft: #3f392f;
  --ab-text: #fffaf0;
  --ab-muted: #d8d0c4;
  --ab-faint: #b9b0a4;
}
.ask-bond-title { color: #fffaf0; }
.ask-bond-context { color: #c9c0b4; font-weight: 650; }
#ask-bond-close { color: #c9c0b4; }
#ask-bond-close:hover,
#ask-bond-close:focus-visible { color: #ffffff; background: rgba(255,255,255,.09); }
.ask-bond-msg.bond { background: #1c1914; border-color: #3f392f; color: #fffaf0; }
.ask-bond-msg.user { background: rgba(201,154,86,.17); border-color: rgba(225,185,119,.48); color: #fffaf0; }
.ask-bond-chip {
  background: #1c1914;
  border-color: #454036;
  color: #d8d0c4;
  font-weight: 600;
}
.ask-bond-chip:hover,
.ask-bond-chip:focus-visible {
  background: rgba(201,154,86,.14);
  border-color: #d5a95f;
  color: #ffffff;
}
.ask-bond-chips:not(:empty)::before { color: #bfb5a8; }
.ask-bond-inputrow input {
  background: #1a1813;
  border-color: #575044;
  color: #fffaf0;
}
.ask-bond-inputrow input::placeholder { color: #aea599; opacity: 1; }
.ask-bond-inputrow input:hover { border-color: #807565; }
.ask-bond-inputrow input:focus { border-color: #d5a95f; background: #1f1c16; }
.ask-bond-send { background: #d7a554; color: #11100d; }
.ask-bond-send:hover,
.ask-bond-send:focus-visible { background: #efc679; color: #090806; }
.ask-bond-footnote { color: #b9b0a4; }
.ask-bond-footnote a { color: #e2b86f; border-bottom-color: rgba(226,184,111,.62); }
.ask-bond-footnote a:hover,
.ask-bond-footnote a:focus-visible { color: #ffd894; border-bottom-color: #ffd894; }
.ask-bond-response-link { color: #e0b36b; border-color: rgba(224,179,107,.5); background: rgba(201,154,86,.08); }
.ask-bond-response-link:hover,
.ask-bond-response-link:focus-visible { color: #ffffff; border-color: #e0b36b; background: rgba(201,154,86,.17); }
.ask-bond-msg.typing span { background: #c9c0b4; }
