/* ==========================================================================
   PAGE-SPECIFIC LAYOUT — ByteNana homepage
   Built on the design-kit tokens/components. Only page-level composition lives
   here; every color/space value still comes from tokens.css.
   ========================================================================== */

/* --- 01 Hero ------------------------------------------------------------- */
.section-hero {
  position: relative; overflow: hidden;
  padding-top: calc(var(--navbar-height) + var(--space-20));
  padding-bottom: var(--space-24);
  border-bottom: 1px solid var(--color-border);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-10); align-items: center; }
.hero-title__accent { color: var(--color-primary); }
.rotator { display: block; max-width: 100%; height: 1.1em; line-height: 1.1; overflow: hidden; color: var(--color-primary); }
.rotator__list { display: flex; flex-direction: column; }
.rotator__item { line-height: 1.1; white-space: normal; }
.section-hero h1 { font-size: clamp(1.9rem, 6vw, 2.75rem); letter-spacing: -0.03em; line-height: 1.08; margin-top: var(--space-2); }
.hero-subhead { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 620px; margin-top: var(--space-6); line-height: 1.75; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-8); }
.trust-strip { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin-top: var(--space-8); font-size: var(--text-sm); color: var(--color-text-muted); }
.trust-strip .sep { opacity: 0.3; }
/* Hero molecular hub (same component as section 13, yellow on the dark hero) */
.hero-hub { min-height: 440px; animation: hero-hub-pulse 7s ease-in-out infinite; }
/* Broader pulse than the default .cta-hub (1.045) — bigger expand/contract */
@keyframes hero-hub-pulse {
  0%, 100% { transform: scale(0.94); }
  50%      { transform: scale(1.14); }
}
@media (prefers-reduced-motion: reduce) { .hero-hub { animation: none; } }

/* --- 02 Trust bar -------------------------------------------------------- */
.section-trust { padding: var(--space-16) 0; border-bottom: 1px solid var(--color-border); }

/* --- 03 What we do — centered heading ------------------------------------ */
#what-we-do .section-label, #what-we-do h2 { text-align: center; }

/* --- 07 Why ByteNana — centered heading ---------------------------------- */
#why .section-label { text-align: center; }
#why h2 { text-align: center; max-width: 820px; margin-left: auto; margin-right: auto; }
/* 06 shares one mesh with 09, so it drops the base 96px padding-bottom. */
#tech-stack { padding-bottom: 0; }
#tech-stack h2 { text-align: center; max-width: 900px; margin-left: auto; margin-right: auto; }
/* Heading removed from 10, so the base section padding-top left a large dead gap
   above the carousel — it now butts up against the talent bar (07) above it. */
#reviews { padding-top: 0; }
#reviews .section-label, #reviews h2 { text-align: center; }
#reviews h2 { max-width: 820px; margin-left: auto; margin-right: auto; }
#reviews .section-intro { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
#tech-stack .section-intro { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }

/* --- 04 Chooser ---------------------------------------------------------- */
/* Section 05 drops the base 96px padding-bottom. */
#how-we-engage { padding-bottom: 0; }
.chooser-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-6); margin-top: var(--space-10); }
.chooser-card {
  display: flex; flex-direction: column; gap: var(--space-3);
  background-color: rgba(15, 17, 18, 0.05); border: 1px solid var(--on-light-border);
  border-radius: var(--radius-lg); padding: var(--space-6);
  transition: border-color var(--t-base) ease, transform var(--t-base) ease, box-shadow var(--t-base) ease;
}
.chooser-card:hover { border-color: var(--color-primary); transform: none; box-shadow: none; }
/* Unselected tabs read as deactivated: dimmed eyebrow + muted heading */
.chooser-eyebrow { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-light-dim); }
.chooser-card h3 { font-size: var(--text-2xl); color: var(--on-light-muted); }
.chooser-card p { color: var(--on-light-muted); font-size: var(--text-base); line-height: 1.6; }
/* Chooser cards double as the engagement tabs */
.chooser-card { cursor: pointer; -webkit-user-select: none; user-select: none; }
.chooser-card:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }
/* Active (selected) tab: turns yellow with a lighter shadow */
.chooser-card.is-active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: none;
  transform: none;
}
.chooser-card.is-active:hover { transform: none; box-shadow: none; }
.chooser-card.is-active .chooser-eyebrow,
.chooser-card.is-active h3 { color: var(--color-bg); }

/* --- 04 Engagement detail panels (switched by the chooser-card tabs) ----- */
.engage { margin-top: var(--space-10); }
.engage-panel { display: none; }
.engage-panel.is-active { display: block; animation: stack-fade-in 0.4s ease both; }
/* Two-column body: four cards stacked on the left, photo on the right */
.engage-body { display: grid; grid-template-columns: 1fr; gap: var(--space-8); margin: var(--space-8) 0; }
.engage-col { display: flex; flex-direction: column; }   /* left column: grey cards, then the yellow card */
.engage-points { display: flex; flex-direction: column; gap: var(--space-4); margin: 0; }
.engage-media img { width: 100%; height: auto; max-height: 380px; object-fit: cover; border-radius: var(--radius-lg); display: block; }
.engage-points .card h4 { font-size: var(--text-base); margin-bottom: var(--space-2); color: var(--on-light-text); }
.engage-points .card p { font-size: var(--text-sm); }
/* Point list styled like the section-06 talent list, but on a light bg */
.engage-col .engage-title { font-size: var(--text-2xl); color: var(--on-light-text); margin-bottom: var(--space-5); }
.engage-list { margin: 0; max-width: none; gap: var(--space-4); }
.section--light .engage-list li { font-size: var(--text-base); color: var(--on-light-muted); }
.section--light .engage-list li strong { color: var(--on-light-text); }
/* How it works / Pricing / CTA sit in a dark bar.
   Text block on the left, the CTA button on the same line to the right. */
.engage-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5) var(--space-8);
  margin-top: var(--space-8);
  padding: var(--space-6) var(--space-8);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.engage-foot__text { flex: 1 1 320px; display: flex; flex-direction: column; gap: var(--space-3); }
.engage-foot .engage-how, .engage-foot .engage-price { font-size: var(--text-base); color: var(--color-text-muted); }
.engage-foot .engage-how strong, .engage-foot .engage-price strong { color: var(--color-text); }
.engage-foot .btn { flex: 0 0 auto; margin-left: auto; background-color: var(--color-primary); color: var(--color-bg); border-color: var(--color-primary); }
.engage-foot .btn:hover { background-color: var(--color-primary-dark); border-color: var(--color-primary-dark); }

/* --- 07 Talent ----------------------------------------------------------- */
/* Reviews (10) sits directly below and has no padding-top, so this section's
   base 96px padding-bottom was the whole gap above the reviews carousel. */
#talent { padding-bottom: 0; }
.talent-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-10); align-items: center; }
.talent-list { display: grid; gap: var(--space-4); margin: var(--space-8) 0; max-width: 660px; }
.talent-list li { display: flex; align-items: flex-start; gap: var(--space-3); font-size: var(--text-lg); line-height: 1.5; color: var(--color-text); }
.talent-check { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 1.6em; height: 1.6em; border-radius: 50%; background-color: var(--color-primary); color: var(--color-bg); font-size: 0.8em; font-weight: 800; margin-top: 0.1em; }
.talent-closer { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 660px; line-height: 1.7; }
.talent-aside { display: grid; gap: var(--space-4); }
.talent-badge { background-color: var(--color-surface); border: 1px solid var(--color-border); border-left: 3px solid var(--color-primary); border-radius: var(--radius-lg); padding: var(--space-6) var(--space-8); }
.talent-badge__num { display: block; font-family: var(--font-heading); font-weight: 800; font-size: var(--text-3xl); color: var(--color-primary); line-height: 1; letter-spacing: -0.02em; }
.talent-badge__cap { display: block; margin-top: var(--space-2); font-size: var(--text-sm); color: var(--color-text-muted); }

/* --- 09 AI-native -------------------------------------------------------- */
/* These cards stay dark on hover instead of flipping to solid brand yellow.
   The lift and shadow from .card--invert:hover are kept; only the fill changes.
   The three inner colours are restated because the base hover sets them to
   dark-on-yellow, which would be invisible once the card stays dark. */
@media (hover: hover) {
  #ai-native .card--invert:hover {
    background-color: var(--color-surface);
    border-color: var(--color-border-hover);
  }
  #ai-native .card--invert:hover .card-icon { color: var(--color-primary); }
  #ai-native .card--invert:hover h3         { color: var(--color-text); }
  #ai-native .card--invert:hover p          { color: var(--color-text-muted); }
}

/* --- 10 Selected work ---------------------------------------------------- */
.work-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-6); margin-top: var(--space-10); }
.work-card { display: flex; flex-direction: column; gap: var(--space-3); }
.work-card h3 { font-size: var(--text-xl); }
.work-blurb { font-size: var(--text-sm); }
.work-quote { font-size: var(--text-sm); font-style: italic; color: var(--on-light-muted); border-left: 3px solid var(--color-primary); padding-left: var(--space-4); margin-top: var(--space-2); line-height: 1.6; }
.work-quote cite { display: block; margin-top: var(--space-2); font-style: normal; font-weight: 600; color: var(--on-light-text); }
.work-link { margin-top: auto; font-weight: 700; color: var(--color-primary); padding-top: var(--space-3); }

/* --- 11 Reviews: keep proof testimonial styling on the slide cards ------- */
.section-proof .testimonial-stars { color: var(--color-primary); font-size: var(--text-lg); letter-spacing: 2px; line-height: 1; margin-bottom: var(--space-4); }
#reviews-carousel .step-content > p { font-size: var(--text-xl); font-style: italic; line-height: 1.6; }
#reviews-carousel .step-content footer { margin-top: var(--space-4); font-size: var(--text-sm); }

/* Every review card is dark at every width (they used to alternate off-white /
   brand yellow). Section 10 now shares section 07's dark mesh, so light and
   yellow cards both fought that background. Both parities are spelled out
   because the base .steps-carousel parity rules would otherwise outweigh a
   plainer selector. */
#reviews-carousel .step:nth-child(odd),
#reviews-carousel .step:nth-child(even) { background-color: var(--color-surface); }
#reviews-carousel .step h3,
#reviews-carousel .step .step-content > p,
#reviews-carousel .step .step-number { color: var(--color-text); }
#reviews-carousel .step:nth-child(odd) footer,
#reviews-carousel .step:nth-child(even) footer { color: var(--color-text-muted); }
/* Client logos read white on every card now — matches the standing rule that
   Byte-Home client logos render white. */
#reviews-carousel .step:nth-child(odd) .review-logo img,
#reviews-carousel .step:nth-child(even) .review-logo img { filter: brightness(0) invert(1); }
#reviews-carousel .step:nth-child(odd) .review-logo--icon iconify-icon,
#reviews-carousel .step:nth-child(even) .review-logo--icon iconify-icon { color: var(--color-text); }
#reviews-carousel .step:nth-child(odd) .testimonial-stars,
#reviews-carousel .step:nth-child(even) .testimonial-stars { color: var(--color-primary); }
/* Dot tinting now lives on .steps-carousel--slide in components.css — both slide
   carousels are on dark sections, so no per-carousel override is needed. */
.trust-link { cursor: pointer; }

/* --- 12 How we work ------------------------------------------------------ */
.section-howwework .steps-carousel { margin-top: var(--space-10); }

/* --- 13 Final CTA -------------------------------------------------------- */
.section-cta { position: relative; overflow: hidden; border-top: 1px solid var(--on-light-border); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-10); align-items: center; }
.cta-content { min-width: 0; }
.cta-hub { order: 2; }
.cta-content { order: 1; }
.cta-grid .contact-form { max-width: 560px; }
.section-cta .form-group label { color: var(--on-light-text); }
.section-cta .form-group input, .section-cta .form-group textarea { background-color: #FFFFFF; border-color: rgba(15, 17, 18, 0.15); color: var(--on-light-text); }
.section-cta .form-group input::placeholder, .section-cta .form-group textarea::placeholder { color: rgba(15, 17, 18, 0.4); }
.section-cta .form-microcopy { color: rgba(15, 17, 18, 0.5); }

/* --- 14 Footer columns --------------------------------------------------- */
#footer .section-label { color: var(--on-light-dim); margin-bottom: var(--space-3); }
.footer-col { min-width: 140px; }
.footer-nav { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-nav a, .footer-social a { font-size: var(--text-sm); color: var(--on-light-muted); transition: color var(--t-fast) ease; }
.footer-nav a:hover { color: var(--on-light-text); }
.footer-social { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-social a:hover { color: var(--color-primary); }
.footer-legal { flex-basis: 100%; margin-top: var(--space-4); }

/* Carousel dots belong to the mobile carousels only. Declared before the
   breakpoints below so the mobile rule (same specificity) wins there. */
.cards-nav { display: none; }

/* Section-closing CTA (03, 10) and the talent CTA (07). */
.section-cta-row { text-align: center; margin-top: var(--space-10); }
.talent-cta { margin-top: var(--space-8); }

/* Footer social: brand icons are mobile-only, text labels are the desktop
   default. Declared here (before the breakpoints) so the mobile rules win. */
.footer-social__ic { display: none; }

/* ==========================================================================
   PAGE BREAKPOINTS
   ========================================================================== */
@media (max-width: 767px) {
  /* Hero (mobile): flatten the grid so it reads hub animation → title → subhead
     → CTAs → trust strip. display:contents lets .hero-content's children order
     as siblings alongside .hero-hub; align-items:stretch keeps text/buttons
     full-width. */
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-6); }
  .hero-content { display: contents; }
  /* Centred to match the centred hub above and the trust strip below. The
     subhead keeps its 620px cap, so margin-inline centres that box too. */
  .hero-title  { order: 1; margin-top: 0; text-align: center; }
  .hero-subhead { order: 2; margin-top: 0; text-align: center; margin-inline: auto; }
  /* The animation leads on mobile — order:0 puts it above the headline. No pulse
     here (animation:none overrides both .cta-hub's hub-pulse and .hero-hub's
     hero-hub-pulse); the JS rotation is the only motion. Smaller than desktop
     too: the polyhedron radius is min(w,h) × 0.40, so min-height caps it. */
  .hero-hub    { order: 0; min-height: 200px; animation: none; }
  /* Logo scales with the smaller sphere and drops its own pulse. */
  .hero-hub__logo img { width: 48px; animation: none; }
  .hero-ctas   { order: 4; margin-top: 0; flex-direction: column; align-items: stretch; }

  /* Every CTA spans the full width on mobile (this supersedes the old
     .hero-ctas .btn rule, which only covered the hero pair). */
  .btn { width: 100%; }
  /* …except the compact pill in the nav bar. It lives in .nav-links, which is
     hidden until the hamburger expands — full width would break that row. */
  #navbar .btn { width: auto; }
  .trust-strip { order: 5; margin-top: 0; justify-content: center; }

  /* Mobile only: any grid marked [data-card-carousel] becomes a swipeable
     carousel (sections 03 and 09). Scroll-snap does all the work — one card per
     view with a peek of the next so the swipe affordance is obvious. Desktop
     keeps the plain grid. js/card-carousel.js only adds the dots. */
  [data-card-carousel] {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;               /* Firefox */
    padding-bottom: var(--space-1);
  }
  [data-card-carousel]::-webkit-scrollbar { display: none; }
  /* Any direct child is a slide — .card on the homepage, .case-meta__item on
     the case-study meta bands. The dots nav is inserted as a sibling, not a
     child, so it is not caught by this. */
  [data-card-carousel] > * { scroll-snap-align: start; height: 100%; }
  .cards-nav { display: flex; }

  /* Match the section 06 (tech stack) card style: centred text, icon inline to
     the left of the heading, no border, soft shadow. Grid areas put the icon
     beside the heading without touching the markup — .card-icon, h3 and p stay
     plain siblings. Background/radius/padding already matched section 06. */
  #what-we-do .card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    text-align: center;
    border: none;
    box-shadow: var(--shadow-md);
  }
  /* Mirrors .stack-cat in section 06: one inline-flex group, so a long heading
     wraps *beside* the icon instead of dropping below it, and the whole group
     stays centred. Above 768px this stays display:block, so the desktop grid
     keeps the icon stacked above the heading exactly as before. */
  #what-we-do .card-head {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-xl);
  }
  #what-we-do .card-head .card-icon {
    flex: 0 0 auto;
    margin-bottom: 0;
    font-size: 1.3em;      /* 26px — same ratio as .stack-cat__ic */
    line-height: 1;
  }
  #what-we-do .card-head h3 {
    margin-bottom: 0;
    font-size: inherit;
    color: #F1F1F1;
    text-align: left;
  }
  #what-we-do .card p {
    margin: 0;
    font-size: var(--text-sm);
    line-height: 1.6;
    color: #F1F1F1;
  }

  /* No hover/tap animation on cards. The hover states themselves are gated
     behind (hover: hover) in components.css; this kills the remaining touch
     feedback — the grey tap-highlight flash and any transition that could
     still fire on tap. */
  .card {
    -webkit-tap-highlight-color: transparent;
    transition: none;
  }

  /* Section 05 tabs: two compact pills side by side instead of two tall stacked
     cards. Only the label is kept — the eyebrow ("IT Staffing · Embedded
     engineers") would wrap to three lines in a half-width tab. */
  #how-we-engage .chooser-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
    margin-top: var(--space-6);
  }
  #how-we-engage .chooser-card {
    gap: 0;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-3) var(--space-2);
    border-radius: var(--radius);
    -webkit-tap-highlight-color: transparent;
  }
  #how-we-engage .chooser-eyebrow { display: none; }
  #how-we-engage .chooser-card h3 {
    font-size: var(--text-sm);
    line-height: 1.25;
    margin: 0;
  }

  /* No panel photos on mobile — hide the whole .engage-media cell so the grid
     row collapses with it, rather than leaving an empty gap. */
  #how-we-engage .engage-media { display: none; }

  /* Section 07: no spinning Americas globe on mobile. hero-globe.js also skips
     its per-frame render while the canvas has no layout size (see that file),
     so this stops the work as well as the visuals. */
  #talent .talent-globe { display: none; }

  /* Section 13: no molecular hub on mobile. Module E in animations.js skips its
     draw while the hub has no layout size, which also covers the hero polygon. */
  #book .cta-hub { display: none; }

  /* Section 12: no FAQ on mobile. */
  #faq { display: none; }

  /* ======================================================================
     MOBILE IS DARK-ONLY — no inverted (light) sections.
     Each rule below undoes a light-theme declaration and restores the dark
     default, so contrast holds. Sections affected: 04, 05, 06, 10, 13 (all
     .section--light), the footer (14), and the light cards in 10 and 12.
     ====================================================================== */
  .section--light { background-color: var(--color-bg); }
  .section--light .section-label { color: var(--color-text-dim); }
  .section--light h2,
  .section--light h3,
  .section--light h4 { color: var(--color-text); }
  .section--light .section-intro,
  .section--light p { color: var(--color-text-muted); }
  .section--light .card {
    background-color: var(--color-surface);
    border-color: var(--color-border);
  }
  .section--light .card h3,
  .section--light .card h4 { color: var(--color-text); }
  .section--light .card p { color: var(--color-text-muted); }
  .section--light .btn-secondary { color: var(--color-text); border-color: var(--color-border); }

  /* Footer (14) */
  #footer { background-color: var(--color-bg); border-top-color: var(--color-border); }
  #footer .section-label { color: var(--color-text-dim); }
  .footer-brand .logo-byte { color: var(--color-text); }
  .footer-brand p { color: var(--color-text-muted); }
  .footer-nav a, .footer-social a { color: var(--color-text-muted); }
  .footer-nav a:hover { color: var(--color-text); }

  /* Footer, mobile: logo + paragraph, then a row of brand icons. Every link
     list goes; only LinkedIn and GitHub remain, as icons rather than words.
     The © / Privacy line stays. */
  .footer-col--links { display: none; }
  .footer-col--social .section-label { display: none; }   /* the "Connect" label */
  .footer-social { display: flex; flex-direction: row; align-items: center; gap: var(--space-5); }
  /* icon in, word out — the link keeps its accessible name via aria-label */
  .footer-social__ic { display: inline-flex; font-size: 22px; }
  .footer-social__label { display: none; }
  .footer-social a {
    display: inline-flex;
    align-items: center;
    color: var(--color-text-muted);
    -webkit-tap-highlight-color: transparent;
  }
  /* Clutch and the hidden markdown link drop out. Written as a.<class> so these
     outweigh the `.footer-social a { display: inline-flex }` rule above. */
  .footer-social a.footer-social__clutch,
  .footer-social a[href="mdsite.html"] { display: none; }

  /* Section 05 — tab pills were a 5%-black tint made for a light background */
  #how-we-engage .chooser-card {
    background-color: var(--color-surface);
    border-color: var(--color-border);
  }
  #how-we-engage .chooser-card h3 { color: var(--color-text-muted); }
  #how-we-engage .chooser-card.is-active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
  }
  #how-we-engage .chooser-card.is-active h3 { color: var(--color-bg); }
  #how-we-engage .engage-list li { color: var(--color-text-muted); }
  #how-we-engage .engage-list li strong { color: var(--color-text); }
  #how-we-engage .engage-title { color: var(--color-text); }

  /* Section 06 is dark at every width now, and its chips live inside
     .steps-carousel--stack (already dark-styled), so no chip or dot override is
     needed here — the dot tint moved to components.css. */

  /* Section 10's all-dark review cards moved to base scope (they now apply at
     every width, since the section sits on 07's dark mesh). */

  /* Section 12 — the light card in the alternating pair becomes dark. The
     yellow one is left alone; it is brand fill, not a light background. */
  #how-carousel .step:nth-child(odd) { background-color: var(--color-surface); }
  #how-carousel .step:nth-child(odd) h3,
  #how-carousel .step:nth-child(odd) .step-content > p,
  #how-carousel .step:nth-child(odd) .step-number { color: var(--color-text); }
  #how-carousel .step:nth-child(odd) .step-icon iconify-icon { color: var(--color-text); }
}

@media (min-width: 768px) {
  .section-hero h1 { font-size: clamp(2.4rem, 4.5vw, 3.2rem); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-globe { min-height: 440px; }
  .hero-hub { min-height: 560px; }
  .hero-ctas .btn { flex: 0 0 auto; }
  .chooser-grid { grid-template-columns: repeat(2, 1fr); }
  .engage-body { grid-template-columns: 1fr 1fr; align-items: stretch; }
  /* Photo fills the column height set by the cards (which hug their content),
     cropping via object-fit instead of dictating the row height. */
  .engage-media { position: relative; min-height: 340px; }
  .engage-media img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; }
  .talent-grid { grid-template-columns: 1fr 1fr; }
  .talent-globe { min-height: 420px; }
  .work-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cta-hub { order: 1; min-height: 520px; }
  .cta-content { order: 2; }
}
@media (min-width: 1024px) {
  .hero-globe { min-height: 520px; }
  .hero-hub { min-height: 640px; }
}

/* --- 09A Value / pricing comparison ------------------------------------- */
.section-value h2 { margin-top: var(--space-2); }
.section-value .section-intro { margin-top: var(--space-4); margin-bottom: var(--space-12); }

/* Two price cards, side by side — larger, with an icon + title */
.value-prices {
  display: grid; grid-template-columns: 1fr; gap: var(--space-6);
  max-width: 1040px; margin: 0 auto var(--space-8);
}
.value-price { text-align: center; padding: var(--space-10) var(--space-8); }
.value-price .card-icon { margin: 0 auto var(--space-4); font-size: 2.4rem; }
.value-price__title {
  font-family: var(--font-heading); font-weight: 700; font-size: var(--text-lg);
  color: var(--color-text); margin-bottom: var(--space-3);
}
.value-price__amount {
  font-family: var(--font-heading); font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(2.6rem, 7vw, 3.6rem); line-height: 1; color: var(--color-text);
}
.value-price__amount span { font-size: var(--text-base); font-weight: 600; letter-spacing: 0; color: var(--color-text-muted); margin-left: var(--space-1); }
.value-price__note { margin-top: var(--space-4); font-size: var(--text-sm); color: var(--color-text-muted); }
/* ByteNana card: white background with a subtle drifting dotted mesh, dark text */
.value-price--win {
  background-color: #FCFCFC; border-color: #FCFCFC;
  background-image:
    radial-gradient(circle, rgba(15, 17, 18, 0.08) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(15, 17, 18, 0.08) 1px, transparent 1.5px);
  background-size: 22px 22px, 22px 22px;
  background-position: 0 0, 11px 11px;
  animation: value-mesh-drift 12.6s ease-in-out infinite;
  will-change: background-position;
}
@keyframes value-mesh-drift {
  0%, 100% { background-position: 0 0, 11px 11px; }
  50%      { background-position: 14px -12px, 25px -1px; }
}
@media (prefers-reduced-motion: reduce) {
  .value-price--win { animation: none; }
}
.value-price--win .value-price__title,
.value-price--win .value-price__amount { color: var(--on-light-text); }
.value-price--win .value-price__amount span,
.value-price--win .value-price__note { color: var(--on-light-muted); }

/* Yellow strip below the cards: inline on desktop, stacked+centered on mobile */
.value-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--space-6) var(--space-8);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  max-width: 1040px; margin: 0 auto;
}
.value-strip .value-item { flex: 1 1 190px; min-width: 0; text-align: left; }
.value-item__head { font-family: var(--font-heading); font-weight: 800; letter-spacing: -0.02em; font-size: var(--text-lg); color: var(--color-text); }
.value-item__sub { margin-top: var(--space-2); font-size: var(--text-sm); line-height: 1.5; color: var(--color-text-muted); }
/* yellow button so it pops against the dark strip */
.value-strip__btn { flex: 0 0 auto; background-color: var(--color-primary); color: var(--color-bg); border-color: var(--color-primary); }
.value-strip__btn:hover { background-color: var(--color-primary-dark); border-color: var(--color-primary-dark); }

@media (min-width: 768px) {
  .value-prices { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .value-strip { flex-direction: column; align-items: center; text-align: center; gap: var(--space-6); }
  .value-strip .value-item { flex: none; text-align: center; }
}

/* ==========================================================================
   FAQ — accordion (nested in #how-we-work)
   ========================================================================== */
.faq-block { max-width: var(--container-narrow); margin: var(--space-20) auto 0; }
.faq-heading {
  font-family: var(--font-heading); font-weight: 800; letter-spacing: -0.02em;
  font-size: var(--text-3xl); color: var(--color-text);
}
.faq-block .section-intro { margin-top: var(--space-4); margin-bottom: var(--space-10); }

.faq-list { display: flex; flex-direction: column; gap: var(--space-3); }

.faq-item {
  background-color: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--t-base) var(--ease-out), background-color var(--t-base) var(--ease-out);
}
.faq-item:hover { border-color: var(--color-border-hover); }
.faq-item[open] { border-color: var(--color-border-hover); background-color: var(--color-surface-3); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: var(--text-lg);
  color: var(--color-text);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:focus-visible { outline: 2px solid var(--color-primary); outline-offset: -2px; border-radius: var(--radius-lg); }

/* chevron built from a rotating ± */
.faq-icon { position: relative; flex: 0 0 auto; width: 18px; height: 18px; }
.faq-icon::before,
.faq-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 14px; height: 2px; border-radius: 2px;
  background-color: var(--color-primary);
  transform: translate(-50%, -50%);
  transition: transform var(--t-base) var(--ease-out), opacity var(--t-base) var(--ease-out);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }

.faq-a { padding: 0 var(--space-6) var(--space-5); }
.faq-a p { font-size: var(--text-base); line-height: 1.65; color: var(--color-text-muted); margin: 0; }


@media (prefers-reduced-motion: no-preference) {
  .faq-item[open] .faq-a { animation: faq-reveal var(--t-base) var(--ease-out); }
}
@keyframes faq-reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
  .faq-q { font-size: var(--text-base); padding: var(--space-4) var(--space-5); }
  .faq-a { padding: 0 var(--space-5) var(--space-4); }
}
