/* ================================================================
   BCS Pros — theme layer
   Shared components + motion. Loaded after style.css.
   ================================================================ */

/* ---------- type scale floor (nothing below 13px) ---------- */
.section-label {
  font-size: 14px;
  letter-spacing: .08em;
}
.blueprint-drawing text {
  font-size: 10px;
}
.t-micro {
  font: 500 13px/1.5 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ---------- reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.16, 1, .3, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="zoom"]  { transform: scale(.95); }
[data-reveal].is-inview {
  opacity: 1;
  transform: none;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--background);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 14px 34px -22px rgb(0 0 0 / .35);
}
.topbar {
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--muted-foreground);
}
.topbar a { color: inherit; text-decoration: none; transition: color .2s; }
.topbar a:hover { color: var(--primary); }

/* ---------- nav ---------- */
.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--foreground);
  transition: color .2s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 100%;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }
.nav-link:hover,
.nav-link.is-active { color: var(--primary); }

/* ---------- mobile menu ---------- */
.mobile-menu {
  display: none;
  overflow: hidden;
  max-height: 0;
  border-bottom: 1px solid transparent;
  background: var(--background);
  transition: max-height .4s cubic-bezier(.16, 1, .3, 1), border-color .3s;
}
.mobile-menu.open {
  max-height: 560px;
  border-bottom-color: var(--border);
}
@media (max-width: 1023.98px) { .mobile-menu { display: block; } }
.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-top: 1px solid var(--border);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  color: var(--foreground);
}
.mobile-menu a.is-active { color: var(--primary); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn-primary:hover { background: color-mix(in oklab, var(--primary) 85%, black); }
.btn-outline {
  border-color: var(--foreground);
  color: var(--foreground);
  background: transparent;
}
.btn-outline:hover { background: var(--foreground); color: var(--background); }
.btn .btn-arrow { transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.btn:hover .btn-arrow { transform: translate(4px, -4px); }
.btn:hover .btn-arrow-r { transform: translate(5px, 0); }
.btn:hover .btn-arrow-d { transform: translate(0, 5px); }

/* ---------- cards / lists ---------- */
.tcard {
  border: 1px solid var(--border);
  background: var(--card);
  padding: 28px;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s ease, border-color .35s ease;
}
.tcard:hover {
  transform: translateY(-5px);
  border-color: color-mix(in oklab, var(--primary) 55%, var(--border));
  box-shadow: 0 22px 44px -26px rgb(0 0 0 / .4);
}
.tcard .tcard-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted-foreground);
  letter-spacing: .08em;
}
.tcard:hover .tcard-num { color: var(--primary); }

/* media cards — image band on top */
.tcard--media { padding: 0; overflow: hidden; }
.tcard-media { border-bottom: 1px solid var(--border); overflow: hidden; }
.tcard-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(.82) contrast(1.03);
  transition: transform .7s cubic-bezier(.16, 1, .3, 1);
}
.tcard--media:hover .tcard-media img { transform: scale(1.045); }
.tcard-body { padding: 24px 28px 28px; }

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.55;
}
.check-item svg { flex: none; margin-top: 3px; color: var(--primary); }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  border-bottom: 1px solid var(--border);
  padding: 70px 0 60px;
}
.page-hero .crumb {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.page-hero .crumb a { color: var(--primary); text-decoration: none; }
.page-hero h1 {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 62px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.03;
}
.page-hero .lead {
  margin-top: 22px;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted-foreground);
}
.page-hero .hero-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted-foreground);
  letter-spacing: .08em;
}

/* ---------- numbered step rows (process pages) ---------- */
.step-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 22px;
  padding: 30px 0;
  border-top: 1px solid var(--border);
}
.step-row:last-child { border-bottom: 1px solid var(--border); }
.step-row .step-no {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
}
.step-row h3 { margin: 0 0 10px; font-size: 22px; font-weight: 600; }
.step-row p  { margin: 0; font-size: 15px; line-height: 1.65; color: var(--muted-foreground); max-width: 640px; }
.step-row ul { margin: 10px 0 0; padding: 0; list-style: none; }
.step-row ul li {
  position: relative;
  padding: 5px 0 5px 22px;
  font-size: 15px;
  color: var(--foreground);
}
.step-row ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 10px; height: 2px;
  background: var(--primary);
}
@media (min-width: 768px) {
  .step-row { grid-template-columns: 110px 320px 1fr; }
}

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  background: none;
  border: 0;
  font: 600 17px/1.4 var(--font-sans);
  color: var(--foreground);
  text-align: left;
  cursor: pointer;
  transition: color .2s;
}
.faq-q:hover { color: var(--primary); }
.faq-q .faq-icon {
  flex: none;
  width: 18px; height: 18px;
  position: relative;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}
.faq-q .faq-icon::before,
.faq-q .faq-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
}
.faq-q .faq-icon::before { left: 0; top: 8px; width: 18px; height: 2px; }
.faq-q .faq-icon::after  { left: 8px; top: 0; width: 2px; height: 18px; transition: transform .35s; }
.faq-item.open .faq-q .faq-icon { transform: rotate(45deg); }
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .45s cubic-bezier(.16, 1, .3, 1);
}
.faq-a > div {
  padding: 0 0 24px;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted-foreground);
}
.faq-item.open .faq-a { max-height: 400px; }

/* ---------- marquee strip ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  white-space: nowrap;
}
.marquee-track span i { color: var(--primary); font-style: normal; margin-right: 56px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- forms ---------- */
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: transparent;
  padding: 14px 16px;
  font: 400 15px/1.5 var(--font-sans);
  color: var(--foreground);
  transition: border-color .25s, box-shadow .25s;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 18%, transparent);
}
.form-notice {
  padding: 14px 18px;
  border: 1px solid var(--border);
  font-size: 15px;
}
.form-notice.ok  { border-color: var(--primary); color: var(--primary); }
.form-notice.err { border-color: var(--destructive); color: var(--destructive); }

/* ---------- blueprint draw-in (JS sets lengths) ---------- */
.blueprint-drawing .draw-part {
  transition: stroke-dashoffset 1.5s cubic-bezier(.6, 0, .2, 1);
}

/* ---------- page-hero image panel (layered) ---------- */
.hero-media {
  position: relative;
  margin: 0;
  align-self: end;
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: -14px -14px 14px 14px;
  border: 1px solid var(--border);
  pointer-events: none;
}
.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 300px;
  object-fit: cover;
  border: 1px solid var(--border);
  filter: saturate(.82) contrast(1.03);
}
.hero-media-label {
  position: absolute;
  right: 0;
  bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 18px;
  background: var(--ink);
  color: var(--paper);
  border-left: 3px solid var(--primary);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.hero-media-label span { white-space: nowrap; }
@media (min-width: 1024px) {
  .hero-media--sticky { position: sticky; top: 110px; align-self: start; }
}
.hero-media--natural img {
  aspect-ratio: auto;
  max-height: none;
  height: auto;
}
.hero-media--wide { margin-top: 4rem; }
.hero-media--wide::before { display: none; }
.hero-media--wide img {
  aspect-ratio: 21 / 9;
  max-height: 380px;
  object-position: center 62%;
}
@media (max-width: 767px) {
  .hero-media--wide img { aspect-ratio: 16 / 9; max-height: 240px; }
}
@media (max-width: 767px) {
  .hero-media::before { inset: -10px -10px 10px 10px; }
  .hero-media img { aspect-ratio: 4 / 3; }
  .hero-media-label { bottom: 16px; }
}

/* ---------- hero slider ---------- */
.hero-slider { position: relative; }
.hero-slides { display: grid; }
.hero-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateX(48px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.16, 1, .3, 1), visibility 0s linear .7s;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .7s ease, transform .7s cubic-bezier(.16, 1, .3, 1), visibility 0s;
}
.hero-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 38px;
}
.hero-dot {
  position: relative;
  width: 38px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.hero-dot::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  transform: translateY(-50%);
  background: color-mix(in oklab, var(--foreground) 20%, transparent);
  transition: background .3s ease;
}
.hero-dot:hover::before { background: color-mix(in oklab, var(--primary) 55%, transparent); }
.hero-dot.is-active::before { background: var(--primary); }

/* ---------- utility supplement (used by theme markup, absent from base build) ---------- */
.btn-sm { padding: 11px 18px; font-size: 14px; }
.gap-10 { gap: 2.5rem; }
.gap-2\.5 { gap: .625rem; }
.gap-px { gap: 1px; }
.grid-cols-\[42px_1fr_24px\] { grid-template-columns: 42px 1fr 24px; }
.mb-10 { margin-bottom: 2.5rem; }
.mt-10 { margin-top: 2.5rem; }
.pb-16 { padding-bottom: 4rem; }
.pt-10 { padding-top: 2.5rem; }
.pt-6 { padding-top: 1.5rem; }
.h-\[170px\] { height: 170px; }
.min-h-\[170px\] { min-height: 170px; }
.no-underline { text-decoration: none; }
.leading-snug { line-height: 1.375; }
.max-w-\[220px\] { max-width: 220px; }
.max-w-\[260px\] { max-width: 260px; }
.max-w-\[380px\] { max-width: 380px; }
.max-w-\[400px\] { max-width: 400px; }
.max-w-\[420px\] { max-width: 420px; }
.max-w-\[460px\] { max-width: 460px; }
.max-w-\[520px\] { max-width: 520px; }
.max-w-\[540px\] { max-width: 540px; }
.max-w-\[720px\] { max-width: 720px; }
.max-w-\[880px\] { max-width: 880px; }
.text-\[18px\] { font-size: 18px; }
.text-\[22px\] { font-size: 22px; }
.text-\[26px\] { font-size: 26px; }
.text-\[32px\] { font-size: 32px; }
.text-paper\/45 { color: color-mix(in oklab, var(--paper) 45%, transparent); }
.bg-paper\/10 { background-color: color-mix(in oklab, var(--paper) 10%, transparent); }

@media (min-width: 768px) {
  .md\:grid-cols-\[70px_1fr_1\.25fr_24px\] { grid-template-columns: 70px 1fr 1.25fr 24px; }
  .md\:grid-cols-\[1fr_1\.4fr\] { grid-template-columns: 1fr 1.4fr; }
  .md\:grid-cols-\[1fr_1\.6fr\] { grid-template-columns: 1fr 1.6fr; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-\[1\.5fr_1fr\] { grid-template-columns: 1.5fr 1fr; }
  .lg\:grid-cols-\[1\.7fr_1fr\] { grid-template-columns: 1.7fr 1fr; }
  .lg\:grid-cols-\[1fr_1\.1fr\] { grid-template-columns: 1fr 1.1fr; }
  .lg\:items-end { align-items: flex-end; }
  .lg\:p-9 { padding: 2.25rem; }
  .lg\:pb-20 { padding-bottom: 5rem; }
  .lg\:pb-24 { padding-bottom: 6rem; }
  .lg\:text-\[56px\] { font-size: 56px; }
}
@media (min-width: 1280px) {
  .xl\:text-\[62px\] { font-size: 62px; }
}

/* ---------- smooth scroll + motion safety ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .marquee-track { animation: none; }
  * { animation-duration: .001s !important; transition-duration: .001s !important; }
}

/* ---------- logo ---------- */
.site-logo { display: inline-block; line-height: 0; }
.site-logo img { display: block; height: 58px; width: auto; }
.site-logo--light img { filter: brightness(0) invert(1); height: 64px; }

/* ---------- readability scale-up ----------
   Client feedback: section titles +10%, all other
   text +20%. Hero/banner headline + lead untouched. */

/* titles (+10%) */
.section-heading { font-size: 40px; }
.faq-q { font-size: 19px; }
.step-row h3 { font-size: 24px; }
.step-row .step-no { font-size: 48px; }
.text-\[20px\] { font-size: 22px; }
.text-\[22px\] { font-size: 24px; }
.text-\[23px\] { font-size: 25px; }
.text-\[24px\] { font-size: 26px; }
.text-\[26px\] { font-size: 28px; }
.text-\[28px\] { font-size: 31px; }
.text-\[32px\] { font-size: 35px; }
@media (max-width: 600px) { .section-heading { font-size: 32px; } }

/* body / meta text (+20%) */
.text-\[13px\] { font-size: 16px; }
.text-\[14px\] { font-size: 17px; }
.text-\[15px\] { font-size: 18px; }
.text-\[16px\] { font-size: 19px; }
.text-base { font-size: 19px; }
.section-label { font-size: 17px; }
.t-micro { font-size: 16px; }
.topbar { font-size: 16px; }
.mobile-menu a { font-size: 18px; }
.btn { font-size: 18px; }
.btn-sm { font-size: 17px; }
.tcard .tcard-num { font-size: 16px; }
.step-row p { font-size: 18px; }
.step-row ul li { font-size: 18px; }
.check-item { font-size: 18px; }
.faq-a > div { font-size: 18px; }
.marquee-track span { font-size: 17px; }
.form-field label { font-size: 16px; }
.form-field input, .form-field textarea { font-size: 18px; }
.form-notice { font-size: 18px; }
.page-hero .crumb { font-size: 16px; }
.page-hero .hero-meta { font-size: 16px; }
.hero-media-label { font-size: 14px; }
.blueprint-drawing text { font-size: 12px; }
