/* blog-post-core.css: only the rules from the old /assets/css/style.css that blog posts still use. Same position in the page as the old file, so cascade order is unchanged. */
/* ============================================================
   JinYer Balance — style.css
   Palette: #111214 black | #1f2937 dark | #94a3b8 gray
            #C2C8D4 silver (accent) | #e5e7eb light | #f7f8fa off-white
            #ffffff white  | #6e8393 slate-blue (subtle hover only)
   Typography: Space Grotesk (headlines) + DM Sans (body)
   ============================================================ */

/* ── Skip to Content (Accessibility) ─────────────────── */

/* ── A11y: visible focus rings (WCAG AA) + visually-hidden labels ── */

/* ── Film Grain ───────────────────────────────────────── */
.grain {
  background-repeat: repeat;
}

@keyframes grain-shift {
  0%{background-position:0 0}10%{background-position:-30px -15px}20%{background-position:15px -45px}
  30%{background-position:-60px 30px}40%{background-position:45px -60px}50%{background-position:-15px 60px}
  60%{background-position:30px 15px}70%{background-position:-75px -30px}80%{background-position:60px 45px}
  90%{background-position:-45px -75px}100%{background-position:0 0}
}

/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* <details> disclosure marker — hide native triangle so we can use our own '+'/'−' */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] > summary span[aria-hidden="true"]:last-child { transform: rotate(45deg); transition: transform .2s ease; }
details > summary span[aria-hidden="true"]:last-child { display: inline-block; transition: transform .2s ease; }

/* Home page contact section — 2-col grid that collapses to 1-col on mobile.
   Inline style was display:grid;grid-template-columns:1fr 1fr;gap:80px which
   never wrapped, causing the form (~533px min-width) to break out of viewport
   on phones (S90 mobile bug — bodyW=557 on vw=375). */
/* Form fields in the home contact section must respect their grid track —
   inputs default to a 20-char intrinsic width (~533px) which forces the
   grid track wider than the parent. */

:root {
  --bg:           rgba(10,10,10,0.48);
  --surface:      rgba(17,17,17,0.52);
  --border:       rgba(255,255,255,0.10);
  --border-light: rgba(255,255,255,0.18);
  --silver:         #C2C8D4;    /* silver — primary accent */
  --silver-dim:     #8A9AB0;    /* steel — secondary accent */
  --white:        #f7f8fa;    /* near-white */
  --muted:        #94a3b8;    /* body text muted — light enough for dark-mode */
  --steel:        #6e8393;    /* slate-blue — subtle hover only */
  --font-head:    'Space Grotesk', 'DM Sans', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --max:          1240px;
  --radius:       999px;      /* pill — all buttons (JYB brand: pill buttons are correct) */
  --radius-card:  18px;       /* card corners */
  --radius-sm:    10px;       /* small elements */
}

/* Root font-size bumped 16→18px (Session 89, dad's review): every rem-based
   body class scales up ~12.5%; clamp() headings stay capped via vw fallback. */
html {
  font-size: 18px;
  /* Hard guard against horizontal scroll — the brand ticker (and any other
     animated/transformed child) is allowed to extend past the viewport for
     its marquee effect, but the page itself must never let the user swipe
     sideways. Without this, on mobile the body widens to fit ticker__items
     at right=2000+ and the layout collapses left-shifted (Session 89 bug). */
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  max-width: 100vw;
}

/* ── Typography Scale ─────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

/* ── Layout Helpers ───────────────────────────────────── */
.container { margin: 0 auto; padding: 0 24px; }

section { padding: 120px 0; }
@media (min-width: 769px) and (max-width: 1024px) { section { padding: 100px 0; } }
@media (max-width: 768px) { section { padding: 80px 0; } }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

/* ── Navigation ───────────────────────────────────────── */

@media (max-width: 768px) {  /* hide CTA btn, keep ES toggle */
  /* Burger centered in nav — containing block is .nav (position:fixed) */

  /* Expand nav to full height when menu is open */
  .nav.menu-open {
    height: 100dvh;
    background: #0a0a0a;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Links panel: absolutely positioned below the nav bar */
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

/* .hero__content is now handled by .story-panel in the inline \3c style> */
/* Tighten the lower clamp on phones so the headline can't push past viewport
   and force ugly mid-word breaks. */

/* #heroCanvas styles handled via inline \3c style> in HTML (position:fixed) */

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

/* ── Ticker ───────────────────────────────────────────── */

/* ── Services ─────────────────────────────────────────── */

/* ── Case Study ───────────────────────────────────────── */

/* ── Projects Grid ────────────────────────────────────── */

/* ── Team ─────────────────────────────────────────────── */

/* team mobile handled in utility section below */

/* ── Testimonials ─────────────────────────────────────── */
.testimonials {
  background: transparent;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── Blog ─────────────────────────────────────────────── */

/* ── Email Signup ─────────────────────────────────────── */

/* ── Footer ───────────────────────────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}

/* ── Scroll-driven entrance animations ────────────────── */

/* ── Utility ──────────────────────────────────────────── */

/* Short accent line — used under section labels */

/* Full-width editorial rule — separates major sections */

/* Pill tag utility — reusable for any inline label */

/* Circle number badges (editorial stat markers) */

/* Team grid mobile */

/* ── Ghost Button ─────────────────────────────────────── */

/* ── GSAP reveal — disable on mobile (prevents floating elements) ── */

/* ── Hide the custom cursor on mobile + tablet (touch-only devices) ─ */
/* The .cursor + .cursor-ring divs are decorative for desktop mouse use. */
/* never render them on mobile/tablet — leaves a frozen dot   */
/* artifact at the last position the cursor was at on hover.            */
@media (max-width: 768px), (pointer: coarse) {
  #cursor, #cursorRing, .cursor, .cursor-ring {
    display: none;
  }
}

/* Park cursor + cursor-ring off-screen until JS hooks up real mouse coords. */
/* Without this, transform:translate(-50%,-50%) with no top/left makes the */
/* cursor render half-clipped at viewport (0,0) — visible as a stray dot   */
/* on the top-left edge of every hero page screenshot before mouse moves.  */
.cursor, .cursor-ring, #cursor, #cursorRing {
  top: -100px;
  left: -100px;
}

/* ──────────────────────────────────────────────────────────────────── */
/* GLOBAL PILL RULE — ALL buttons with border = full pill.   */
/* Any element classed btn/btn-* or with role=button + border MUST be  */
/* fully curved (border-radius: 999px). Rectangular buttons are wrong. */
/* This is a !important override to catch inline + per-page styles.    */
/* ──────────────────────────────────────────────────────────────────── */
.btn,
a.btn,
button.btn,
[class*=" btn-"],
a[class*="btn-"],
button[class*="btn-"],
a[role="button"],
button[type="button"]:not([class*="toggle"]):not([class*="nav__toggle"]),
button[type="submit"]:not([class*="toggle"]),
input[type="button"],
input[type="submit"] {
  border-radius: 999px !important;
}

/* ──────────────────────────────────────────────────────────────────── */
/* GLOBAL PAGE HERO PATTERN (used on services, contact, about, etc.)   */
/* Cinematic A24 editorial style. Hero accounts for fixed nav (~80px) */
/* by extending min-height to calc(100vh + 80px), so the visible       */
/* portion below the translucent nav is always a full viewport tall.   */
/* Override per-page only when needed (e.g. background image url).     */
/* ──────────────────────────────────────────────────────────────────── */

/* ── Tier Explorer (master-detail) ─────────────────────────
   Left = revealed panel for the selected tier
   Right = tab list (4 tier options); selecting one swaps the panel.
   Used on home page (#services). Default: Pearl active. */

/* Right column — tab list */
/* Price is hidden on the tab itself — it appears in the active panel.
   Keeps the tabs clean labels (icon + name) and avoids long-string
   overflow on mobile. */

/* Mobile: stack — tabs above panel, horizontal scroll */
@media (max-width: 860px) {
  /* Phone tabs are icon-only — name + price hidden, big emoji */
}

/* ── Global background video tint — "lighter pero blanco" ─────────
   Sits on top of the looped video inside #bgVideoWrap so any page
   that uses the video bg (index, about, services, etc.) gets the same
   washed-out, less-heavy feel. The dark hero__overlay still layers on
   top for text legibility on hero sections. */
