/* site.css — deployment overrides
   Maps .site wrapper to .proto behavior so existing CSS works,
   and adds real-page chrome (sticky nav, no browser frame) */

/* The .site wrapper inherits .proto behavior */
.site {
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

/* Sticky nav for real pages */
.site > .pnav.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site.theme-dark > .pnav.site-nav {
  background: #141416;
  border-color: #24242a;
}

/* Brand as link */
.pnav .brand { text-decoration: none; }

/* Hide EN/PL language toggle until Polish translation is finalised. */
.lang-toggle { display: none !important; }

/* Remove proto-wrap / proto-browser — not needed */

/* Theme: alias .site.theme-dark to .proto.theme-dark */
.site.theme-dark { background: #141416; color: #ededed; }
.site.theme-dark .pnav { border-color: #24242a; }
.site.theme-dark .pnav .brand { color: #ededed; }
.site.theme-dark .pnav .cta { background: var(--accent); color: #fff; }
.site.theme-dark .page-hero { border-color: #24242a; }
.site.theme-dark .page-meta-row > div { border-color: #24242a; }
.site.theme-dark .phero { border-color: #24242a; }
.site.theme-dark .phero .ctas .primary { background: var(--accent); color: #fff; }
.site.theme-dark .phero .ctas .ghost { border-color: #35353a; color: #ededed; }
.site.theme-dark .pstats, .site.theme-dark .pstats div { border-color: #24242a; }
.site.theme-dark .pstats .d { color: #a7a7ad; }
.site.theme-dark .services, .site.theme-dark .proof, .site.theme-dark .partners { border-color: #24242a; }
.site.theme-dark .svc, .site.theme-dark .svc:last-child { border-color: #24242a; }
.site.theme-dark .svc:hover { background: rgba(204,74,27,0.09); }
.site.theme-dark .services .lead p, .site.theme-dark .svc .svc-desc { color: #a7a7ad; }
.site.theme-dark .case { background: #1b1b1f; border-color: #2a2a2e; }
.site.theme-dark .case .meta, .site.theme-dark .case .cap { color: #a7a7ad; border-color: #2a2a2e; }
.site.theme-dark .logo-row, .site.theme-dark .logo { border-color: #24242a; color: #bfbfc5; }
.site.theme-dark .cta-band { background: #0b0b0d; }

/* Accent variants on .site */
.site.accent-blue { --accent: #1f55c4; }
.site.accent-green { --accent: #1f6b44; }
.site.accent-violet { --accent: #5941c2; }

/* Hero variants on .site */
.site.hero-editorial .phero h1 { font-family: 'Inter Tight'; font-style: italic; font-weight: 400; letter-spacing: -0.03em; }
.site.hero-editorial .phero h1 em { font-family: 'Inter Tight'; font-weight: 600; font-style: normal; }
.site.hero-editorial .phero h1 .verb-stack > span { font-style: normal; }
.site.hero-loud .phero h1 { font-family: 'Inter Tight'; text-transform: uppercase; font-weight: 700; font-size: clamp(44px, 5.2vw, 78px); letter-spacing: -0.035em; line-height: 0.95; }
.site.hero-loud .phero h1 .verb-stack > span { font-style: normal; font-weight: 700; }

/* Density on .site */
.site.density-compact .page-hero { padding: 48px 40px 32px; }
.site.density-compact .svc-detail { padding: 36px 40px; gap: 40px; }
.site.density-compact .case-body { padding: 40px 40px; }
.site.density-compact .team-grid { padding: 32px 40px; }
.site.density-compact .tm { padding: 18px 22px; }
.site.density-compact .formats .fmt { padding: 28px 40px; }
.site.density-compact .story-strip,
.site.density-compact .values,
.site.density-compact .public-cohorts,
.site.density-compact .faq,
.site.density-compact .process-strip { padding: 36px 40px; }
.site.density-compact .contact-grid { padding: 36px 40px; gap: 36px; }
.site.density-compact .site-foot { padding: 28px 40px 20px; }

/* Also alias all .proto.theme-dark selectors from pages.css to .site.theme-dark */
.site.theme-dark .site-foot { background: #0f0f12; color: #a7a7ad; border-color: #24242a; }
.site.theme-dark .sf-grid { border-color: #24242a; }
.site.theme-dark .sf-brand .brand { color: #ededed; }
.site.theme-dark .svc-detail:nth-child(even) { background: rgba(255,255,255,0.02); }
.site.theme-dark .svc-mvp-card { background: #ededed; color: #141416; }
.site.theme-dark .svc-mvp-head { color: rgba(20,20,22,.5); }
.site.theme-dark .svc-mvp-body { color: rgba(20,20,22,.85); }
.site.theme-dark .svc-d-proof { border-color: #24242a; }
.site.theme-dark .svc-d-list { border-color: #24242a; }
.site.theme-dark .process-grid, .site.theme-dark .proc-step { border-color: #24242a; }
.site.theme-dark .work-filters .filt { border-color: #35353a; color: #ededed; }
.site.theme-dark .work-filters .filt.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.site.theme-dark .wf-card { background: #1b1b1f; border-color: #2a2a2e; }
.site.theme-dark .wf-meta { border-color: #2a2a2e; }
.site.theme-dark .wf-right { border-color: #2a2a2e; }
.site.theme-dark .wf-metric-sub { border-color: #2a2a2e; }
.site.theme-dark .wg-card { border-color: #2a2a2e; }
.site.theme-dark .wg-card:hover { background: rgba(204,74,27,0.09); }
.site.theme-dark .wg-meta { border-color: #2a2a2e; }
.site.theme-dark .case-hero-meta { background: #1b1b1f; }
.site.theme-dark .cm { border-color: #24242a; }
.site.theme-dark .case-toc a { color: #a7a7ad; border-color: #24242a; }
.site.theme-dark .case-long strong { color: #ededed; }
.site.theme-dark .case-outcomes { border-color: #24242a; }
.site.theme-dark .case-outcomes .co { border-color: #24242a; }
.site.theme-dark .case-quote { background: #1b1b1f; }
.site.theme-dark .case-quote p { color: #ededed; }
.site.theme-dark .nc-card { background: #1b1b1f; border-color: #2a2a2e; }
.site.theme-dark .tm { border-color: #24242a; }
.site.theme-dark .tm-photo { background: #1b1b1f; }
.site.theme-dark .timeline { border-color: #24242a; }
.site.theme-dark .timeline li { border-color: #24242a; }
.site.theme-dark .values-grid { border-color: #24242a; }
.site.theme-dark .val-card { border-color: #24242a; }
.site.theme-dark .fmt:nth-child(even) { background: rgba(255,255,255,0.02); }
.site.theme-dark .fmt-grid, .site.theme-dark .fmt-grid > div { border-color: #24242a; }
.site.theme-dark .cohort-list { border-color: #24242a; }
.site.theme-dark .cohort-row { border-color: #24242a; }
.site.theme-dark .quote-band { background: #1b1b1f; border-color: #24242a; }
.site.theme-dark .quote-band blockquote p { color: #ededed; }
.site.theme-dark .contact-form { background: #1b1b1f; border-color: #2a2a2e; }
.site.theme-dark .cf-row input, .site.theme-dark .cf-row textarea { color: #ededed; border-color: #35353a; }
.site.theme-dark .cf-chip { color: #ededed; border-color: #35353a; }
.site.theme-dark .cf-chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.site.theme-dark .cf-bottom { border-color: #2a2a2e; }
.site.theme-dark .cs-block { border-color: #24242a; }
.site.theme-dark .cs-email { color: #ededed; }
.site.theme-dark .cs-addr { color: #ededed; }
.site.theme-dark .cs-map { background: #1b1b1f; border-color: #2a2a2e; }
.site.theme-dark .cs-map .map-grid {
  background:
    linear-gradient(#2a2a2e 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, #2a2a2e 1px, transparent 1px) 0 0 / 24px 24px;
}
.site.theme-dark .cs-map .map-label { background: #1b1b1f; color: #ededed; border-color: #2a2a2e; }
.site.theme-dark .cs-links a { color: #ededed; }
.site.theme-dark .cs-hours td { border-color: #24242a; }
.site.theme-dark .faq-list { border-color: #24242a; }
.site.theme-dark .faq-list details { border-color: #24242a; }
.site.theme-dark .faq-list summary { color: #ededed; }

/* Smooth scroll for anchor links */
html { scroll-behavior: smooth; }

/* Language toggle in nav. */
.lang-toggle {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); margin-left: 14px;
}
.lang-toggle a { text-decoration: none; color: var(--muted); }
.lang-toggle a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.lang-toggle a:hover { color: var(--ink); }
.site.theme-dark .lang-toggle a { color: #a7a7ad; }
.site.theme-dark .lang-toggle a[aria-current="page"] { color: #ededed; }

/* About strip — small founder/positioning section above footer. */
.about-strip {
  display: grid; grid-template-columns: 280px 1fr; gap: 32px;
  padding: 56px 40px; border-top: 1px solid var(--line);
}
.about-strip .lead .mono { color: var(--muted); margin-bottom: 8px; }
.about-strip .lead h2 {
  margin: 0; font-family: 'Inter Tight', sans-serif; font-weight: 600;
  font-size: 28px; letter-spacing: -0.02em; line-height: 1.15;
}
.about-strip .about-body p { margin: 0 0 16px; color: var(--ink-2); font-size: 16px; max-width: 640px; }
.site.theme-dark .about-strip { border-color: #24242a; }
.site.theme-dark .about-strip .about-body p { color: #b7b7bd; }
@media (max-width: 720px) {
  .about-strip { grid-template-columns: 1fr; padding: 36px 20px; gap: 16px; }
  .about-strip .lead h2 { font-size: 22px; }
}

/* Visually hidden but available to screen readers and password managers. */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Homepage cta-band consent checkbox styling. */
.cta-band .form .cf-consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 12.5px; line-height: 1.5; color: var(--ink-2);
  margin: 6px 0 4px;
}
.cta-band .form .cf-consent input { margin-top: 2px; }
.cta-band .form .cf-consent a { color: inherit; text-decoration: underline; }
.cf-optional { color: var(--muted); font-weight: 400; font-size: 0.9em; margin-left: 4px; }
.cta-band .form .cf-note { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.cta-band .form .cf-note[data-tone="err"] { color: var(--bad); }
.cta-band .form .cf-note[data-tone="ok"] { color: var(--ok); }
.site.theme-dark .cta-band .form .cf-consent { color: #b7b7bd; }

/* Hero secondary positioning line — smaller and muted relative to the main lede. */
.phero .sub .hero-positioning {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-2);
  max-width: 560px;
  line-height: 1.5;
}
.site.theme-dark .phero .sub .hero-positioning { color: #b7b7bd; }

/* Verb-slot fallback: when JS hasn't activated rotation, show only the
   default verb so the H1 reads cleanly without flicker, without JS, and
   when prefers-reduced-motion is set. */
.phero h1 .verb-slot:not(.is-rotating) > .verb-stack { display: inline-block; transform: none !important; }
.phero h1 .verb-slot:not(.is-rotating) > .verb-stack > span { display: none; }
.phero h1 .verb-slot:not(.is-rotating) > .verb-stack > span.is-default { display: inline-block; }
@media (prefers-reduced-motion: reduce) {
  .phero h1 .verb-slot > .verb-stack { transform: none !important; transition: none !important; }
  .phero h1 .verb-slot > .verb-stack > span { display: none; }
  .phero h1 .verb-slot > .verb-stack > span.is-default { display: inline-block; }
}
