/* ═══════════════════════════════════════════════════════════════════
   GANBARU — Master Brand Stylesheet (Static MPA)
   Brand Book v2.1 · Dark Master Grid
   Palette: #0D0D0D / #1A1A1A base · #E74C3C / #C0392B brand red
   Fonts: Cormorant Garamond (logo) · Assistant (Hebrew body)
   ═══════════════════════════════════════════════════════════════════ */

/* ── SECTION 1: Brand base (ported verbatim from the React app) ── */

    @import url('https://fonts.googleapis.com/css2?family=Assistant:wght@300;400;500;600;700;800&display=swap');

    * { box-sizing: border-box; }

    body {
      margin: 0;
      background: #0D0D0D;
      font-family: 'Assistant', sans-serif;
      direction: rtl;
    }

    .logo-font {
      font-family: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
      letter-spacing: -0.06em;
      font-weight: 500;
    }

    /* Nav links — larger + sweep underline + soft red halo on hover */
    .nav-link {
      transition:
        color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        letter-spacing 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        text-shadow 0.35s ease;
      color: #A3A3A3;
      font-family: 'Assistant', sans-serif;
      font-weight: 500;
      font-size: 1.15rem;
      cursor: pointer;
      text-decoration: none;
      position: relative;
      padding: 6px 4px 10px 4px;
      letter-spacing: 0.005em;
      display: inline-block;
    }
    /* Soft red halo behind the link — radial gradient that scales in on hover */
    .nav-link::before {
      content: "";
      position: absolute;
      inset: -6px -14px;
      background: radial-gradient(ellipse at center, rgba(231,76,60,0.18) 0%, rgba(231,76,60,0.08) 40%, transparent 70%);
      opacity: 0;
      transform: scale(0.7);
      transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
      pointer-events: none;
      z-index: -1;
      border-radius: 8px;
      filter: blur(6px);
    }
    .nav-link::after {
      content: "";
      position: absolute;
      bottom: 0;
      right: 0;
      left: 0;
      height: 1.5px;
      background: linear-gradient(to left, transparent 5%, #E74C3C 30%, #E74C3C 70%, transparent 95%);
      transform: scaleX(0);
      transform-origin: right center;
      transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 0 10px rgba(231,76,60,0.5);
    }
    .nav-link:hover {
      color: #ffffff;
      letter-spacing: 0.035em;
      transform: translateY(-2px);
      text-shadow: 0 0 16px rgba(231,76,60,0.3);
    }
    .nav-link:hover::before {
      opacity: 1;
      transform: scale(1);
    }
    .nav-link:hover::after {
      transform: scaleX(1);
    }


    /* ─── Press section: 3D cubes with subtle breathing animation ─── */
    .press-cube {
      position: relative;
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        inset 0 -1px 0 rgba(0,0,0,0.35),
        0 6px 22px rgba(0,0,0,0.4),
        0 0 0 0 rgba(231,76,60,0);
      animation: pressCubeBreathe 4.5s ease-in-out infinite;
      will-change: transform, box-shadow;
    }
    @keyframes pressCubeBreathe {
      0%, 100% {
        box-shadow:
          inset 0 1px 0 rgba(255,255,255,0.04),
          inset 0 -1px 0 rgba(0,0,0,0.35),
          0 6px 22px rgba(0,0,0,0.4),
          0 0 0 1px rgba(231,76,60,0.06);
      }
      50% {
        box-shadow:
          inset 0 1px 0 rgba(255,255,255,0.07),
          inset 0 -1px 0 rgba(0,0,0,0.35),
          0 8px 28px rgba(0,0,0,0.5),
          0 0 22px rgba(231,76,60,0.12);
      }
    }
    /* Stagger the breathing so the cubes don't pulse in sync */
    .press-grid > .press-item:nth-child(1) .press-cube { animation-delay: 0s; }
    .press-grid > .press-item:nth-child(2) .press-cube { animation-delay: 1.1s; }
    .press-grid > .press-item:nth-child(3) .press-cube { animation-delay: 2.2s; }
    .press-grid > .press-item:nth-child(4) .press-cube { animation-delay: 3.3s; }
    /* Hover: pause breathing, lift, scale slightly, intensify glow */
    .press-item:hover .press-cube {
      animation-play-state: paused;
      transform: translateY(-8px) scale(1.04);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.1),
        inset 0 -1px 0 rgba(0,0,0,0.4),
        0 18px 40px rgba(0,0,0,0.55),
        0 0 32px rgba(231,76,60,0.3),
        0 0 0 1px rgba(231,76,60,0.4) !important;
    }

    /* ─── View transition: clean fade + upward slide on every view change ─── */
    /* When currentView changes, the main content wrapper remounts (via key)
       and runs this entrance animation. Subtle, fast, professional. */
    .view-content {
      animation: viewEnter 0.45s cubic-bezier(0.22, 1, 0.36, 1);
      will-change: opacity, transform;
    }
    @keyframes viewEnter {
      from {
        opacity: 0;
        transform: translateY(10px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    @media (prefers-reduced-motion: reduce) {
      .view-content { animation: none; }
    }

    /* Letter hover glow */
    .logo-letter {
      display: inline-block;
      transition: all 0.2s ease;
      cursor: default;
      color: #FFFFFF;
    }
    .logo-letter:hover {
      color: #E74C3C;
      transform: scale(1.25);
      text-shadow: 0 0 20px rgba(231,76,60,0.9), 0 0 40px rgba(231,76,60,0.6), 0 0 60px rgba(231,76,60,0.4);
    }

    /* Press dropdown — opens DIRECTLY ON its own cube, anchored exactly to
       the cube's boundaries (no overflow on sides). Matches cube's border-radius
       so it visually replaces the cube. If link count exceeds the cube's natural
       height, the dropdown extends downward (capped at 400px max with internal scroll). */
    .press-item {
      position: relative;
    }
    .press-dropdown {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      min-height: 100%;
      max-height: 400px;
      overflow-y: auto;
      background: rgba(13,13,13,0.97);
      backdrop-filter: blur(28px) saturate(140%);
      -webkit-backdrop-filter: blur(28px) saturate(140%);
      border: 1px solid rgba(231,76,60,0.32);
      border-radius: 16px;
      padding: 0;
      box-shadow:
        0 20px 48px rgba(0,0,0,0.6),
        0 4px 12px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.04);
      opacity: 0;
      visibility: hidden;
      transform: scale(0.94);
      transform-origin: center center;
      transition:
        opacity 0.25s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0.3s;
      z-index: 200;
    }
    /* Open state — full opacity, settled scale with overshoot easing */
    .press-dropdown.is-open {
      opacity: 1;
      visibility: visible;
      transform: scale(1);
      transition:
        opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        visibility 0s linear 0s;
    }
    /* Custom slim scrollbar inside the dropdown */
    .press-dropdown::-webkit-scrollbar { width: 6px; }
    .press-dropdown::-webkit-scrollbar-track { background: transparent; }
    .press-dropdown::-webkit-scrollbar-thumb { background: rgba(231,76,60,0.25); border-radius: 3px; }
    .press-dropdown::-webkit-scrollbar-thumb:hover { background: rgba(231,76,60,0.5); }

    /* Social icon glow */
    .social-icon {
      transition: all 0.25s ease;
      color: #A3A3A3;
    }
    .social-icon:hover {
      color: #E74C3C;
      filter: drop-shadow(0 0 8px rgba(231,76,60,0.8));
    }

    /* ─── Accessibility: brand-colored focus ring for keyboard navigation ─── */
    /* Override the default browser focus outline. Sharp 2px crimson with 4px offset,
       only shown for keyboard users (focus-visible), respects brand identity. */
    *:focus { outline: none; }
    *:focus-visible {
      outline: 2px solid #E74C3C;
      outline-offset: 4px;
      border-radius: 1px;
    }
    /* CTA button keeps a slightly larger offset so the ring sits clear of the inset border */
    .cta-btn:focus-visible {
      outline-offset: 6px;
    }

    /* ─── Custom scrollbar — immersive dark theme, Ganbaru crimson on grip ─── */
    /* WebKit (Chrome, Safari, Edge) */
    ::-webkit-scrollbar {
      width: 8px;
      height: 8px;
    }
    ::-webkit-scrollbar-track {
      background: #050505;
    }
    ::-webkit-scrollbar-thumb {
      background: #1a1a1a;
      border-radius: 0;
      transition: background 0.2s ease-out;
    }
    ::-webkit-scrollbar-thumb:hover,
    ::-webkit-scrollbar-thumb:active {
      background: #E74C3C;
    }
    ::-webkit-scrollbar-corner { background: #050505; }
    /* Firefox */
    html { scrollbar-width: thin; scrollbar-color: #1a1a1a #050505; }

    /* ─── Typography line-length — heavy-user cognitive load reduction ─── */
    /* Wide desktop screens cause eye fatigue when paragraphs stretch edge-to-edge.
       Cap primary content paragraphs to ~75ch (≈800px). Specific exceptions
       (form labels, footer columns, hero stat labels) retain their own widths
       via more specific selectors or inline styles. */
    section p,
    .page-section p {
      max-width: 75ch;
    }

    /* ─── Smooth, controlled scrolling — "high-end machine" feel ─── */
    html { scroll-behavior: smooth; }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
    }

    /* ─── Hero "Out of the Dark" entrance ─── */
    /* Staggered reveal on initial home page load. Red elements illuminate FIRST
       (faint, then settle), then text emerges from below with heavy ease-out.
       Adds tension and presents the brand as monolithic emerging from shadow. */
    .hero-reveal {
      opacity: 0;
      will-change: opacity, transform;
    }
    .hero-reveal.is-red {
      animation: heroIlluminate 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    }
    .hero-reveal.is-text {
      transform: translateY(24px);
      animation: heroEmerge 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    @keyframes heroIlluminate {
      0%   { opacity: 0; filter: brightness(0.4); }
      50%  { opacity: 0.5; filter: brightness(0.7); }
      100% { opacity: 1; filter: brightness(1); }
    }
    @keyframes heroEmerge {
      0%   { opacity: 0; transform: translateY(24px); }
      100% { opacity: 1; transform: translateY(0); }
    }
    /* Stagger via inline animation-delay (set per element in JSX) */
    @media (prefers-reduced-motion: reduce) {
      .hero-reveal, .hero-reveal.is-red, .hero-reveal.is-text {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
      }
    }

    /* CTA button — "Industrial Switch" — matte black with thin red border,
       no background change on hover, sharp 0.15s transitions, engraved feel */
    .cta-btn {
      background: #0D0D0D;
      color: #ffffff;
      border: 1px solid #E74C3C;
      font-family: 'Assistant', sans-serif;
      font-weight: 700;
      font-size: 1rem;
      padding: 14px 32px;
      border-radius: 2px;
      cursor: pointer;
      letter-spacing: 1.5px;
      position: relative;
      overflow: hidden;
      transition:
        box-shadow 0.15s ease-out,
        border-color 0.15s ease-out,
        color 0.15s ease-out;
    }
    /* Engraved/pressed shadow on hover — feels like a precise industrial switch being seated */
    .cta-btn:hover {
      box-shadow:
        inset 0 0 0 1px #E74C3C,
        inset 0 1px 0 rgba(0,0,0,0.6),
        0 0 14px rgba(231,76,60,0.22);
      border-color: #E74C3C;
      color: #ffffff;
    }
    /* If the button has a trailing arrow (e.g., "קבע פגישה ←"), shift it sharply on hover */
    .cta-btn .cta-arrow,
    .cta-btn::after { transition: transform 0.15s ease-out; }
    /* Active/pressed state — slight inset for tactile feedback */
    .cta-btn:active {
      box-shadow:
        inset 0 0 0 1px #E74C3C,
        inset 0 2px 6px rgba(0,0,0,0.5);
      transform: none;
    }

    /* Form inputs */
    .form-input {
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 4px;
      color: #fff;
      font-family: 'Assistant', sans-serif;
      font-size: 0.95rem;
      padding: 12px 16px;
      width: 100%;
      outline: none;
      transition: border-color 0.2s;
      text-align: right;
    }
    .form-input:focus {
      border-color: rgba(231,76,60,0.5);
    }
    .form-input::placeholder { color: #555; }

    /* Text selection — "halo glow" matching the logo letter hover effect.
       The text itself turns crimson with a soft red glow that fades outward
       (via text-shadow). NO background tint — the glow is the only indicator. */
    ::selection {
      background: transparent;
      color: #E74C3C;
      text-shadow:
        0 0 14px rgba(231,76,60,0.85),
        0 0 28px rgba(231,76,60,0.45);
    }
    ::-moz-selection {
      background: transparent;
      color: #E74C3C;
      text-shadow:
        0 0 14px rgba(231,76,60,0.85),
        0 0 28px rgba(231,76,60,0.45);
    }

    /* Scrollbar */
    ::-webkit-scrollbar { width: 4px; }
    ::-webkit-scrollbar-track { background: #0D0D0D; }
    ::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

    

    /* Article card */
    .article-card {
      background: linear-gradient(135deg, rgba(26,26,26,0.8), rgba(13,13,13,0.9));
      border: 1px solid rgba(255,255,255,0.07);
      border-radius: 8px;
      padding: 28px;
      transition: all 0.3s ease;
      cursor: pointer;
    }
    .article-card:hover {
      border-color: rgba(231,76,60,0.3);
      transform: translateY(-3px);
      box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    }
    .article-card:hover .article-card-img {
      transform: scale(1.05);
    }

    /* Section transitions */
    .page-section {
      animation: fadeIn 0.4s ease;
    }
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* Mobile nav */
    @media (max-width: 768px) {
      .desktop-nav { display: none !important; }
      .mobile-nav-btn { display: block; }
      .hero-grid { grid-template-columns: 1fr !important; }
      .press-grid { grid-template-columns: 1fr !important; }
      .contact-grid { grid-template-columns: 1fr !important; }
    }
    @media (min-width: 769px) {
      .mobile-nav-btn { display: none !important; }
    }

    /* ─── Comprehensive mobile responsive overlay (≤768px) ─── */
    @media (max-width: 768px) {
      /* Prevent horizontal scroll from any rogue element */
      body, html { overflow-x: hidden !important; }

      /* Section padding reduction — desktop 120px/60px → mobile 56px/18px */
      section {
        padding: 56px 18px !important;
      }

      /* Detail page outer wrapper — sub-pages use .page-section */
      .page-section {
        padding: 0 !important;
      }
      .page-section > div {
        padding: 56px 18px !important;
        max-width: 100% !important;
      }
      .page-section > div > div {
        max-width: 100% !important;
      }

      /* Force single column for ALL multi-column grids (inline-styled ones too) */
      [style*="grid-template-columns: 1fr 1fr"],
      [style*="grid-template-columns: 1fr 1fr 1fr"],
      [style*="grid-template-columns: repeat(2"],
      [style*="grid-template-columns: repeat(3"],
      [style*="grid-template-columns: repeat(auto-fit"],
      [style*="grid-template-columns: repeat(auto-fill"] {
        grid-template-columns: 1fr !important;
      }
      /* Specific override: keep the inner footer nav (services + content lists) as 2-col on mobile */
      .footer-cols > div:nth-child(2)[style*="grid-template-columns"] {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 18px !important;
      }

      /* Detail page hero — shrink height (was 340px) */
      [style*="height: \"340px\""],
      [style*='height:"340px"'] {
        height: 240px !important;
      }
      /* Hero image teaser on case study row — was 220px */
      [style*="height: \"220px\""],
      [style*='height:"220px"'] {
        height: 180px !important;
      }
      /* Hero overlay text positioning — pull inwards from 40px to 18px */
      [style*='right: "40px"'][style*='left: "40px"'] {
        right: 18px !important;
        left: 18px !important;
        bottom: 18px !important;
      }
      [style*='right: "32px"'][style*='left: "32px"'] {
        right: 16px !important;
        left: 16px !important;
        bottom: 16px !important;
      }

      /* Cards — tighten padding */
      .article-card { padding: 0 !important; }
      .service-card { padding: 28px 22px !important; min-height: auto !important; }
      .ws-card { padding: 28px 22px !important; min-height: auto !important; }
      .ws-custom-card { padding: 28px 22px !important; min-height: auto !important; }
      .service-custom-card { padding: 28px 22px !important; min-height: auto !important; }

      /* Hide the "100% התאמה אישית" stat on mobile per request — leaves 4 strengths */
      .stat-mobile-hide { display: none !important; }

      /* ─── Scroll-center highlight on mobile ─────────────────────────────
         As the user scrolls through service / workshop cards, the one closest
         to the center of the viewport gets .is-centered. A subtle red halo +
         border tint elevates it for the moment, then fades as the user moves
         on. The class is toggled by an IntersectionObserver in GanbaruApp. */
      .service-card.is-centered,
      .ws-card.is-centered,
      .service-custom-card.is-centered,
      .ws-custom-card.is-centered {
        border-color: rgba(231,76,60,0.32) !important;
        box-shadow:
          0 0 28px 2px rgba(231,76,60,0.16),
          0 0 0 1px rgba(231,76,60,0.22) !important;
        transform: scale(1.012);
        transition:
          border-color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
          box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
          transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) !important;
      }

      /* ─── Case studies teaser on mobile ─────────────────────────────────
         All cards (including the "featured" one) collapse to compact size:
         220px image height, compact body padding, line-clamp on essences. */
      .case-teaser-card-featured > div:first-of-type {
        height: 220px !important;
      }
      .case-teaser-card-featured > div:nth-of-type(2) {
        padding: 14px 20px 12px !important;
        gap: 8px !important;
      }
      .case-teaser-card-featured > div:nth-of-type(2) > div:first-of-type {
        gap: 8px !important;
      }
      /* Essence paragraphs clamped to 3 lines so every card stays compact */
      .case-teaser-card p {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 0.88rem !important;
        line-height: 1.45 !important;
      }
      /* Featured title shrinks to compact size */
      .case-teaser-card-featured img + div + div div[style*="fontWeight: 800"] {
        font-size: 1.05rem !important;
      }
      /* Images start in grayscale on mobile; turn color when the card centers
         the viewport (.is-in-view added by the same IO that handles cards above) */
      .case-teaser-img {
        filter: grayscale(1) brightness(0.78) !important;
        transition: filter 0.6s cubic-bezier(0.22, 1, 0.36, 1) !important;
      }
      .case-teaser-card.is-in-view .case-teaser-img {
        filter: grayscale(0) brightness(0.95) !important;
      }

      /* ─── Article detail hero on mobile ─────────────────────────────────
         Title shifted down so it half-overlaps the image, half drops below.
         Image stays 16:9 (matches the grid-card teaser proportions). */
      .article-hero-wrapper {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
        margin-bottom: 64px !important;
      }
      .article-hero-image-frame {
        overflow: hidden;
        border-radius: 12px;
        aspect-ratio: 16 / 9;
        position: relative;
      }
      .article-hero-title-overlay {
        bottom: -50px !important;
        right: 8px !important;
        left: 8px !important;
      }
      /* Body extends to match the hero's outer margins on mobile */
      .article-body-container {
        max-width: 100% !important;
        margin: 0 !important;
      }

      /* Press cube spacing */
      .press-cube { padding: 28px 20px !important; min-height: 130px !important; }

      /* CTA button bigger tap target */
      .cta-btn {
        padding: 14px 26px !important;
        font-size: 1.08rem !important;
      }

      /* FAQ accordion — reduce padding so content has more room */
      /* Reduce padding-right on body sections containing bullets, sections etc.
         These currently use paddingRight: 32-36px to indent under the red bar */
      [style*='padding-right: "36px"'] { padding-right: 0 !important; }
      [style*='paddingRight: "36px"'] { padding-right: 0 !important; }
      [style*='padding-right: "32px"'] { padding-right: 0 !important; }
      [style*='paddingRight: "32px"'] { padding-right: 0 !important; }

      /* Workshop meta strip — wrap chips */
      [style*='display: "flex"'][style*='flex-wrap: "wrap"'] {
        gap: 8px !important;
      }

      /* Body text container max-width override (inner 780px wrapper in articles) */
      [style*='max-width: "780px"'] { max-width: 100% !important; }
      [style*='maxWidth: "780px"'] { max-width: 100% !important; }
      [style*='max-width: "820px"'] { max-width: 100% !important; }
      [style*='maxWidth: "820px"'] { max-width: 100% !important; }
      [style*='max-width: "1100px"'] { max-width: 100% !important; }
      [style*='maxWidth: "1100px"'] { max-width: 100% !important; }
      [style*='max-width: "1200px"'] { max-width: 100% !important; }
      [style*='maxWidth: "1200px"'] { max-width: 100% !important; }

      /* Nav links smaller in mobile menu */
      .nav-link { font-size: 1.02rem !important; }

      /* Hero home-page wordmark — shrink from clamp(5rem, 10vw, 9rem) to fit narrow screens */
      .logo-font {
        font-size: clamp(2.8rem, 13vw, 4.5rem) !important;
      }
      /* Kanji watermark behind the wordmark — shrink proportionally */
      [style*='clamp(96px, 14.4vw, 176px)'] {
        font-size: clamp(60px, 18vw, 110px) !important;
      }
      /* Hero number that often appears huge */
      [style*='font-size: "80px"'] {
        font-size: 56px !important;
      }

      /* ─── Mobile hamburger ─── */
      .mobile-nav-btn {
        display: flex !important;
        transition: border-color 0.25s ease, background 0.25s ease;
      }
      .mobile-nav-btn:hover { border-color: rgba(231,76,60,0.5) !important; }
      .hamburger-bars {
        display: inline-block;
        position: relative;
        width: 20px;
        height: 14px;
      }
      .hamburger-bars > span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background: #fff;
        border-radius: 1px;
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, background 0.25s ease;
        transform-origin: center center;
      }
      .hamburger-bars > span:nth-child(1) { top: 0; }
      .hamburger-bars > span:nth-child(2) { top: 6px; }
      .hamburger-bars > span:nth-child(3) { top: 12px; }
      .hamburger-bars.is-open > span { background: #E74C3C; }
      .hamburger-bars.is-open > span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
      }
      .hamburger-bars.is-open > span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
      }
      .hamburger-bars.is-open > span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
      }

      /* ─── Mobile header reorder: hamburger on RIGHT, logo on LEFT ─── */
      header {
        flex-direction: row-reverse !important;
        padding: 0 18px !important;
      }

      /* ─── Logo letters auto-pulse on mobile (softer "Silent Master" glow) ─── */
      /* Cycles every 3.2s, a wave of red flashes through G-a-n-b-a-r-u in sequence */
      .logo-letter {
        animation: ganLogoPulseMobile 3.2s ease-in-out infinite;
      }
      .logo-letter:nth-child(1) { animation-delay: 0s; }
      .logo-letter:nth-child(2) { animation-delay: 0.13s; }
      .logo-letter:nth-child(3) { animation-delay: 0.26s; }
      .logo-letter:nth-child(4) { animation-delay: 0.39s; }
      .logo-letter:nth-child(5) { animation-delay: 0.52s; }
      .logo-letter:nth-child(6) { animation-delay: 0.65s; }
      .logo-letter:nth-child(7) { animation-delay: 0.78s; }
      @keyframes ganLogoPulseMobile {
        0%, 100% {
          color: #ffffff;
          transform: scale(1);
          text-shadow: none;
        }
        6%, 13% {
          color: #E74C3C;
          transform: scale(1.1);
          text-shadow: 0 0 10px rgba(231,76,60,0.5), 0 0 18px rgba(231,76,60,0.22);
        }
      }

      /* ─── Mobile typography: bump prominent home section headlines ─── */
      /* Hero H1 — bigger on mobile for impact */
      .hero-title {
        font-size: clamp(2.3rem, 9vw, 2.8rem) !important;
        line-height: 1.18 !important;
      }
      /* Hero subtitle "מחלקת השיווק שלך במיקור חוץ" — smaller, supporting the H1 */
      .hero-tagline {
        font-size: clamp(1.05rem, 3.5vw, 1.4rem) !important;
        line-height: 1.4 !important;
      }
      /* Section H2 headlines: "ערך אמיתי. מדיד. מתמשך.", "ידע שנשאר בחברה שלך", "Ganbaru בתקשורת", "תיאום פגישת אבחון אסטרטגית" */
      .services-headline,
      .workshops-headline,
      .press-headline,
      .contact-headline {
        font-size: clamp(1.85rem, 7vw, 2.4rem) !important;
        line-height: 1.2 !important;
        font-weight: 800 !important;
      }

      /* ─── Service / Workshop card mobile preview (no hover available) ─── */
      /* Show the desc-on-hover content by default on mobile, since there's no mouseover */
      .service-card .service-desc,
      .ws-card .ws-desc {
        color: #888 !important;
        opacity: 1 !important;
      }
      .service-card .service-title,
      .ws-card .ws-title {
        color: #ffffff !important;
      }
      /* Make the "תגלה עוד" / "לפרטים נוספים" indicator always visible on mobile */
      .service-card .service-cta,
      .ws-card .ws-cta {
        opacity: 1 !important;
      }
      /* Show ember crack as visible by default on mobile */
      .service-card .service-ember,
      .ws-card .ws-ember {
        opacity: 0.7 !important;
      }

      /* ─── Footer: compact single-column layout on mobile ─── */
      /* Override the desktop 1fr 2fr 1fr grid completely */
      .footer-cols {
        display: flex !important;
        flex-direction: column !important;
        gap: 36px !important;
        text-align: center !important;
        margin-bottom: 36px !important;
      }
      .footer-cols > div { text-align: center !important; }
      /* Inner footer nav (services + content) — stay 2-col but centered */
      .footer-cols > div > div[style*="grid-template-columns"] {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 24px !important;
        text-align: center !important;
      }
      .footer-cols > div > div[style*="grid-template-columns"] > div {
        text-align: center !important;
      }
      /* Header logo + tagline */
      .footer-cols .logo-font {
        font-size: 1.8rem !important;
        text-align: center !important;
      }
      .footer-tagline {
        font-size: 0.92rem !important;
        line-height: 1.55 !important;
        margin-bottom: 16px !important;
      }
      /* Nav titles smaller */
      .footer-col-title {
        font-size: 0.85rem !important;
        margin-bottom: 12px !important;
        letter-spacing: 0.04em !important;
      }
      .footer-col-link {
        font-size: 0.95rem !important;
        padding: 4px 0 !important;
      }
      /* Hide the big 80px kanji watermark in the right column on mobile — saves vertical space */
      .footer-cols > div:last-child [style*='font-size: "80px"'] {
        display: none !important;
      }
      /* Footer outer padding */
      footer {
        padding: 48px 18px 28px !important;
      }
      /* Footer kanji-bg (the giant background watermark on left/right) — hide on mobile */
      .kanji-bg {
        display: none !important;
      }

      /* ─── Mobile scroll-reveal: slightly stronger lift for visibility on small screens ─── */
      .reveal-section {
        transform: translateY(60px) !important;
        transition:
          opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
          transform 1s cubic-bezier(0.16, 1, 0.3, 1) !important;
      }
      .reveal-section.is-visible {
        transform: translateY(0) !important;
      }
      /* Slightly thicker sweep line on mobile so it's more visible */
      .reveal-section::before {
        height: 1.5px !important;
        background: linear-gradient(to left, transparent 6%, rgba(231,76,60,0.65) 50%, transparent 94%) !important;
      }

      /* Section taglines and small headers — reduce letter-spacing for readability */
      [style*='letter-spacing: "0.15em"'] { letter-spacing: 0.1em !important; }

      /* Intro animation — slightly smaller on mobile */
      /* The wordmark uses clamp(3.5rem, 9vw, 7rem) — floor of 3.5rem (56px) might overflow on 360px screens */
      /* No fix needed: clamp does its job */
    }

    /* Extra-narrow phones (≤400px) — tighten further */
    @media (max-width: 400px) {
      section { padding: 48px 14px !important; }
      .page-section > div { padding: 48px 14px !important; }
      .service-card, .ws-card, .ws-custom-card { padding: 24px 18px !important; }
    }

    /* Case studies teaser grid — collapse to single column on mobile */
    @media (max-width: 768px) {
      .case-teaser-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
      }
      /* Release the fixed desktop heights — let mobile cards size to content */
      .case-teaser-card {
        height: auto !important;
        min-height: 0 !important;
      }
      .case-teaser-card > div:first-of-type {
        height: 220px !important;
      }
    }

    /* ─── Case teaser image: grayscale by default, gentle fade to color on hover ─── */
    /* Base brightness for all devices — keeps the title overlay readable */
    .case-teaser-img {
      filter: brightness(0.78);
      transition: filter 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    /* Desktop only (real hover): start in monochrome, soft 0.7s fade to color on hover */
    @media (hover: hover) {
      .case-teaser-img {
        filter: grayscale(1) brightness(0.78);
      }
      .case-teaser-card:hover .case-teaser-img {
        filter: grayscale(0) brightness(0.95);
      }
      /* CTA arrow shifts slightly when the card is hovered — RTL forward arrow ← moves left */
      .case-teaser-card:hover .case-cta-arrow {
        transform: translateX(-4px);
      }
    }

    /* ════════════════════════════════════════════════════════════════════
       ── MOBILE UX LAYER — additive, wrapped strictly in mobile queries ──
       ════════════════════════════════════════════════════════════════════
       1. "Mechanical Tap" — kill sticky hover on touch devices, replace with
          sharp :active feedback (0.1s industrial switch feel).
       2. Touch targets — min 48×48px hit areas on every interactive element.
       3. Scroll stability — strict overflow-x:hidden + faster IO reveal.
       4. Thumb-zone CTA — sticky bottom "צור קשר" full-width bar.
       Desktop CSS is NOT modified. All rules below live inside
       @media (hover: none) or @media (max-width: 768px).
       ════════════════════════════════════════════════════════════════════ */

    /* ─── 1. Mechanical Tap: kill sticky hover on touch, add :active feedback ─── */
    @media (hover: none) {
      /* Reset desktop hover states so they don't stick after tap.
         Each one is restored to its non-hover ground state. */
      .cta-btn:hover {
        box-shadow: none;
        border-color: #E74C3C;
        color: #ffffff;
      }
      .service-card:hover {
        box-shadow: none;
      }
      .service-card:hover .service-title {
        text-shadow: none;
      }
      .service-card:hover .service-ember {
        background: transparent;
        box-shadow: none;
      }
      .service-card:hover .service-ember-glow {
        background: transparent;
        opacity: 0;
      }
      .service-card:hover .service-desc {
        opacity: 1;       /* keep description visible on mobile (no hover to reveal) */
        transform: translateY(0);
      }
      .article-card:hover {
        border-color: rgba(255,255,255,0.07);
        transform: none;
        box-shadow: none;
      }
      .article-card:hover .article-card-img {
        transform: none;
      }
      .nav-link:hover {
        background: transparent;
      }
      .social-icon:hover {
        color: #A3A3A3;
        filter: none;
      }
      .press-link:hover {
        background: transparent;
        color: #A3A3A3;
        border-right-color: transparent;
      }

      /* ─── :active states — instantaneous physical feedback (0.1s) ─── */
      /* CTA button: matte black gets one shade deeper + sharp red border flash */
      .cta-btn:active {
        background: #050505 !important;
        box-shadow:
          inset 0 0 0 1px #E74C3C,
          inset 0 2px 8px rgba(0,0,0,0.7) !important;
        transition: all 0.1s ease-out !important;
      }
      /* Service card: red border flashes on tap, ember lights up */
      .service-card:active {
        border-color: #E74C3C !important;
        background: linear-gradient(135deg, rgba(231,76,60,0.06), rgba(13,13,13,0.95)) !important;
        transition: all 0.1s ease-out !important;
      }
      .service-card:active .service-ember {
        background: linear-gradient(90deg, transparent 0%, #E74C3C 40%, #c0392b 60%, transparent 100%) !important;
        box-shadow: 0 0 14px 2px rgba(231,76,60,0.45) !important;
        transition: all 0.1s ease-out !important;
      }
      /* Workshop card same pattern */
      .ws-card:active,
      .ws-custom-card:active {
        border-color: #E74C3C !important;
        background: linear-gradient(135deg, rgba(231,76,60,0.06), rgba(13,13,13,0.95)) !important;
        transition: all 0.1s ease-out !important;
      }
      /* Article card: sharp border + slight darken */
      .article-card:active {
        border-color: rgba(231,76,60,0.5) !important;
        background: #050505 !important;
        transition: all 0.1s ease-out !important;
      }
      /* Press cube: red border flash */
      .press-cube:active {
        border-color: rgba(231,76,60,0.4) !important;
        transition: all 0.1s ease-out !important;
      }
      /* Nav links and press-link tap feedback */
      .nav-link:active,
      .press-link:active {
        color: #E74C3C !important;
        transition: color 0.1s ease-out !important;
      }
      /* Social icons */
      .social-icon:active {
        color: #E74C3C !important;
        transition: color 0.1s ease-out !important;
      }
    }

    /* ─── 2. Touch target optimization (≥48×48px) + 16px paragraph minimum ─── */
    @media (max-width: 768px) {
      /* All interactive elements get a minimum tappable area */
      button,
      a,
      .nav-link,
      .social-icon,
      .press-link,
      .faq-item,
      .mobile-nav-btn {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
      }
      /* Hamburger explicit size */
      .mobile-nav-btn {
        width: 48px !important;
        height: 48px !important;
      }
      /* Footer compact links may need bigger touch area without disturbing layout */
      footer a {
        padding: 6px 0;
      }
      /* CTA buttons get generous tap padding */
      .cta-btn {
        min-height: 52px;
        padding: 14px 26px !important;
        font-size: 1.08rem !important;  /* 17.3px — above 16px floor */
      }
      /* Paragraphs in primary content: enforce a 1rem (16px) floor.
         Inline styles using rem-based fontSize ≥1rem are unaffected
         (max() picks the larger value). Smaller declarations get bumped. */
      section p,
      .page-section p {
        font-size: max(1rem, 1em) !important;
        line-height: 1.65 !important;
      }
    }

    /* ─── 3. Scroll stability: overflow-x hidden + faster IO reveal ─── */
    @media (max-width: 768px) {
      html, body {
        overflow-x: hidden !important;
        max-width: 100vw;
      }
      /* Faster reveal on mobile GPUs — 0.6s instead of 0.9s. Wrapped in
         this media query so desktop's 0.9s is untouched. */
      .reveal-section {
        transition:
          opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
          transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
      }
    }

    /* ─── 4. Thumb-zone sticky CTA — "צור קשר" bottom bar (mobile only) ─── */
    /* Hidden by default (desktop never sees it) */
    .mobile-bottom-cta {
      display: none;
    }
    @media (max-width: 768px) {
      .mobile-bottom-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        align-items: center;
        justify-content: center;
        background: #0D0D0D;
        color: #ffffff;
        border: none;
        border-top: 1px solid #E74C3C;
        padding: 14px 24px;
        padding-bottom: calc(14px + env(safe-area-inset-bottom));
        font-family: 'Assistant', sans-serif;
        font-weight: 700;
        font-size: 1.05rem;
        letter-spacing: 1.5px;
        z-index: 400;
        cursor: pointer;
        min-height: 52px;
        box-shadow: 0 -8px 24px rgba(0,0,0,0.55);
        transition: background 0.1s ease-out, border-color 0.1s ease-out;
      }
      .mobile-bottom-cta:active {
        background: #050505 !important;
        border-top-color: #E74C3C !important;
        box-shadow: 0 -8px 24px rgba(231,76,60,0.18), inset 0 1px 0 rgba(231,76,60,0.4) !important;
      }
      /* Ensure page content isn't hidden behind the sticky bar */
      body {
        padding-bottom: calc(60px + env(safe-area-inset-bottom));
      }
      /* Hide the sticky bar when the mobile menu is open (avoid covering its CTAs) */
      body.mobile-menu-open .mobile-bottom-cta {
        opacity: 0;
        pointer-events: none;
      }
    }

    /* Letter hover glow */

    .press-link {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      padding: 10px 16px;
      color: #A3A3A3;
      font-family: 'Assistant', sans-serif;
      font-size: 0.82rem;
      text-decoration: none;
      transition: all 0.2s;
      border-right: 2px solid transparent;
      direction: rtl;
      text-align: right;
    }
    .press-link:hover {
      color: #E74C3C;
      border-right-color: #E74C3C;
      background: rgba(231,76,60,0.05);
    }
    .press-link .arrow {
      color: #E74C3C;
      flex-shrink: 0;
      font-size: 0.75rem;
      margin-top: 2px;
      opacity: 0.7;
    }
    .press-link:hover .arrow { opacity: 1; }

    .kanji-bg {
      position: absolute;
      font-size: 224px;
      color: rgba(255,255,255,0.045);
      pointer-events: none;
      user-select: none;
      font-family: serif;
      line-height: 1;
      right: -20px;
      bottom: -40px;
    }
  


        @keyframes ganIntroPulse {
          0%, 100% { transform: scale(1); filter: brightness(1); }
          50%      { transform: scale(1.08); filter: brightness(1.3); }
        }
      


            @keyframes slideIn {
              from { opacity: 0; transform: translateY(-50%) translateX(-12px); }
              to   { opacity: 1; transform: translateY(-50%) translateX(0); }
            }
          


        .service-card {
          transition:
            background 0.4s ease,
            border-color 0.15s ease-out;
        }
        .service-card:hover {
          /* No jump. No scale. Just a heavier seat: subtle inset shadow + slightly stronger border. */
          box-shadow: 0 0 0 1px rgba(231,76,60,0.18), inset 0 -1px 0 rgba(0,0,0,0.4);
        }
        .service-num {
          transition: color 0.15s ease-out, opacity 0.15s ease-out;
        }
        .service-title {
          transition: color 0.15s ease-out, text-shadow 0.15s ease-out;
        }
        .service-card:hover .service-title {
          text-shadow: 0 0 14px rgba(231,76,60,0.25);
        }
        /* Description: still revealed on hover (content reveal — slower is fine for legibility) */
        .service-desc {
          opacity: 0;
          transform: translateY(8px);
          transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1) 0.05s,
                      transform 0.4s cubic-bezier(0.25, 1, 0.5, 1) 0.05s;
        }
        .service-card:hover .service-desc {
          opacity: 1;
          transform: translateY(0);
        }
        /* The illumination — a sharp red line lights up at the bottom edge */
        .service-ember {
          position: absolute;
          bottom: 0; left: 0; right: 0;
          height: 2px;
          background: transparent;
          transition: background 0.15s ease-out, box-shadow 0.15s ease-out;
          pointer-events: none;
        }
        .service-card:hover .service-ember {
          background: linear-gradient(90deg, transparent 0%, #E74C3C 40%, #c0392b 60%, transparent 100%);
          box-shadow: 0 0 14px 2px rgba(231,76,60,0.45), 0 0 32px 6px rgba(231,76,60,0.15);
        }
        .service-ember-glow {
          position: absolute;
          bottom: 0; left: 10%; right: 10%;
          height: 1px;
          background: transparent;
          filter: blur(8px);
          transition: background 0.15s ease-out, opacity 0.15s ease-out;
          pointer-events: none;
          opacity: 0;
        }
        .service-card:hover .service-ember-glow {
          background: #E74C3C;
          opacity: 0.8;
        }
        /* No watermark — title is the default presence */
        .service-watermark {
          position: absolute;
          bottom: -10px;
          left: -8px;
          font-family: 'Cormorant Garamond', serif;
          font-size: 7rem;
          font-weight: 600;
          color: rgba(255,255,255,0.04);
          line-height: 1;
          pointer-events: none;
          user-select: none;
          transition: color 0.4s ease;
          letter-spacing: -0.05em;
        }
        .service-card:hover .service-watermark {
          color: rgba(255,255,255,0.0);
        }
        .service-cta {
          opacity: 0;
          transform: translateX(8px);
          transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
        }
        .service-card:hover .service-cta {
          opacity: 1;
          transform: translateX(0);
        }
      


        .ws-card {
          transform: perspective(600px) translateZ(0px);
          transition:
            transform 0.55s cubic-bezier(0.23, 1, 0.32, 1),
            box-shadow 0.55s cubic-bezier(0.23, 1, 0.32, 1),
            background 0.4s ease,
            border-color 0.4s ease;
        }
        .ws-card:hover {
          transform: perspective(600px) translateZ(-6px);
        }
        .ws-title {
          transition: color 0.4s ease, text-shadow 0.4s ease;
        }
        .ws-desc {
          transition: color 0.4s ease;
        }
        .ws-ember {
          position: absolute;
          bottom: 0; left: 0; right: 0;
          height: 2px;
          background: transparent;
          transition: background 0.5s ease, box-shadow 0.5s ease;
          pointer-events: none;
        }
        .ws-card:hover .ws-ember {
          background: linear-gradient(90deg, transparent 0%, #E74C3C 40%, #c0392b 60%, transparent 100%);
          box-shadow: 0 0 18px 3px rgba(231,76,60,0.55), 0 0 40px 8px rgba(231,76,60,0.2);
        }
        .ws-watermark {
          position: absolute;
          bottom: -10px;
          left: -8px;
          font-family: 'Cormorant Garamond', serif;
          font-size: 7rem;
          font-weight: 600;
          color: rgba(255,255,255,0.04);
          pointer-events: none;
          user-select: none;
          transition: color 0.4s ease;
          line-height: 1;
          letter-spacing: -0.05em;
        }
        .ws-card:hover .ws-watermark {
          color: rgba(255,255,255,0.0);
        }
        .ws-cta {
          opacity: 0;
          transform: translateX(8px);
          transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
        }
        .ws-card:hover .ws-cta {
          opacity: 1;
          transform: translateX(0);
        }
        .ws-custom-card {
          transition: transform 0.55s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
        }
        .ws-custom-card:hover {
          transform: perspective(600px) translateZ(-4px);
          box-shadow: 0 0 0 1px rgba(231,76,60,0.5), 0 8px 32px rgba(231,76,60,0.15);
        }
      

/* ── SECTION 2: Static layer (replaces React inline styles) ── */

/* ── Reset & base ── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #0D0D0D;
  min-height: 100vh;
  color: #fff;
  font-family: 'Assistant', sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Header (fixed, hide-on-scroll-down) ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: rgba(13,13,13,0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 0 40px;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-logo { font-size: 1.5rem; cursor: pointer; letter-spacing: -0.05em; direction: ltr; unicode-bidi: embed; }
.header-logo .dot { color: #E74C3C; }
.desktop-nav { display: flex; gap: 36px; align-items: center; }
.nav-link.is-active { color: #E74C3C; }
.header-cta { font-size: 1.16rem; padding: 10px 24px; }

/* ── Mobile menu panel ── */
.mobile-menu-panel {
  position: fixed; top: 68px; left: 0; right: 0; z-index: 490;
  background: rgba(13,13,13,0.97);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 18px 24px 26px;
  display: none;
  flex-direction: column; gap: 4px;
}
.mobile-menu-panel.is-open { display: flex; animation: fadeIn 0.25s ease; }
.mobile-menu-panel a {
  color: #A3A3A3; font-size: 1.2rem; font-weight: 600;
  padding: 12px 6px; border-bottom: 1px solid rgba(255,255,255,0.04);
  min-height: 44px; display: flex; align-items: center;
}
.mobile-menu-panel a.is-active, .mobile-menu-panel a:active { color: #E74C3C; }

/* ── Scroll reveal (scan-beam sections) ── */
.reveal-section {
  position: relative;
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-section::before {
  content: ""; position: absolute; top: 0; left: 4%; right: 4%; height: 1px;
  background: linear-gradient(to left, transparent 8%, rgba(231,76,60,0.5) 50%, transparent 92%);
  opacity: 0; transition: opacity 0.9s ease 0.2s;
}
.reveal-section.is-visible { opacity: 1; transform: translateY(0); }
.reveal-section.is-visible::before { opacity: 1; }

/* ── Generic section scaffolding ── */
.section { padding: 120px 60px; position: relative; overflow: hidden; }
.section-inner { max-width: 1200px; margin: 0 auto; position: relative; }
.section-head { text-align: center; margin-bottom: 80px; }
.section-tag { color: #E74C3C; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.15em; margin-bottom: 16px; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: #fff; margin-bottom: 16px; }
.section-title .dot { color: #E74C3C; }
.section-sub { color: #A3A3A3; font-size: 1.16rem; max-width: 500px; margin: 0 auto; }
.bg-alt { background: linear-gradient(180deg, #0D0D0D, #1c1c1c); }
.ambient-glow { position: absolute; pointer-events: none; border-radius: 50%; }

/* ── Hero ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 140px 60px 80px; position: relative; overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  max-width: 1400px; margin: 0 auto; width: 100%; align-items: center;
}
.hero-glow-a { top: 20%; left: 30%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(231,76,60,0.04) 0%, transparent 70%); filter: blur(120px); }
.hero-glow-b { bottom: 10%; right: 10%; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(231,76,60,0.03) 0%, transparent 70%); filter: blur(100px); }
.hero-title { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.2; margin-bottom: 12px; color: #fff; }
.hero-title .dot { color: #E74C3C; }
.hero-tagline { font-size: clamp(1.4rem, 2.8vw, 2.2rem); font-weight: 600; line-height: 1.3; margin-bottom: 24px; color: #D9D9D9; }
.hero-lede { font-size: 1.22rem; color: #A3A3A3; line-height: 1.7; margin-bottom: 48px; max-width: 480px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-ghost {
  background: transparent; border: 1px solid rgba(255,255,255,0.15);
  color: #A3A3A3; font-family: 'Assistant', sans-serif;
  font-size: 1.16rem; font-weight: 600; padding: 14px 32px;
  border-radius: 4px; cursor: pointer; transition: all 0.25s;
  display: inline-block;
}
.btn-ghost:hover { border-color: rgba(231,76,60,0.4); color: #fff; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 32px 40px; margin-top: 60px;
  padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.06);
}
.hero-stat { text-align: center; }
.hero-stat b { display: block; font-size: 1.8rem; font-weight: 800; color: #E74C3C; }
.hero-stat span { display: block; font-size: 0.78rem; color: #A3A3A3; margin-top: 4px; }
.hero-brandmark { text-align: center; position: relative; }
.hero-kanji {
  font-size: clamp(96px, 14.4vw, 176px); color: rgba(255,255,255,0.055);
  font-family: serif; line-height: 1; position: absolute;
  inset-inline: 0; pointer-events: none; user-select: none; margin-top: -30px;
}
.hero-wordmark {
  font-size: clamp(5rem, 10vw, 9rem); letter-spacing: -0.03em;
  position: relative; line-height: 1.1; direction: ltr; unicode-bidi: embed;
}
.hero-wordmark .logo-letter { color: #fff; display: inline-block; }
.hero-wordmark .logo-letter.dot { color: #E74C3C; }
.hero-motto {
  color: #E74C3C; font-size: 1.16rem; letter-spacing: 0.25em;
  margin-top: 16px; font-weight: 700; direction: ltr; opacity: 0.9;
}
/* Staggered "Out of the Dark" entrance */
.hero-reveal { opacity: 0; animation: heroEmerge 1.1s cubic-bezier(0.16,1,0.3,1) forwards; }
.d-1 { animation-delay: 0.15s; } .d-2 { animation-delay: 0.35s; }
.d-3 { animation-delay: 0.55s; } .d-4 { animation-delay: 0.75s; }
.d-5 { animation-delay: 0.9s; }

/* ── About teaser ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-portrait { border-radius: 6px; border: 1px solid rgba(255,255,255,0.08); filter: grayscale(18%); }
.about-sub { color: #D9D9D9; font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; }
.about-p { color: #A3A3A3; font-size: 1.16rem; line-height: 1.85; margin-bottom: 18px; }
.about-quote {
  border-right: 3px solid #E74C3C; padding: 6px 20px 6px 0;
  margin: 28px 0; color: #fff; font-size: 1.22rem; font-weight: 600; line-height: 1.6;
}
.about-quote footer { color: #888; font-size: 0.95rem; font-weight: 400; margin-top: 8px; }

/* ── Cards grid helpers ── */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

/* ── Article teaser cards ── */
.article-card { display: flex; flex-direction: column; overflow: hidden; }
.article-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; filter: grayscale(30%); transition: filter 0.5s ease, transform 0.5s ease; }
.article-card:hover .article-card-img { filter: grayscale(0%); transform: scale(1.03); }
.article-card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.article-card-meta { color: #777; font-size: 0.82rem; display: flex; gap: 14px; }
.article-card-title { color: #fff; font-size: 1.18rem; font-weight: 700; line-height: 1.45; }
.article-card-excerpt { color: #A3A3A3; font-size: 1.02rem; line-height: 1.65; flex: 1; }
.card-more { color: #E74C3C; font-size: 0.95rem; font-weight: 700; margin-top: 6px; }

/* ── Contact ── */
.contact-glow { left: 20%; top: 30%; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(231,76,60,0.05) 0%, transparent 70%); filter: blur(100px); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: stretch; }
.contact-col { display: flex; flex-direction: column; }
.contact-col-title {
  color: #fff; font-weight: 700; margin-bottom: 32px; font-size: 1.27rem;
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.red-tick { display: inline-block; width: 3px; height: 18px; background: #E74C3C; border-radius: 2px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; flex: 1; }
.contact-form textarea { resize: none; flex: 1; min-height: 160px; }
.pill-label { color: #777; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 10px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-pill {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  color: #A3A3A3; border-radius: 40px; padding: 7px 16px;
  font-size: 0.82rem; font-family: 'Assistant', sans-serif; font-weight: 600;
  cursor: pointer; transition: all 0.2s ease; min-height: 34px;
}
.svc-pill:hover { border-color: rgba(231,76,60,0.4); color: #fff; }
.svc-pill.is-selected {
  background: rgba(231,76,60,0.15); border-color: #E74C3C; color: #E74C3C;
}
.form-success {
  background: rgba(231,76,60,0.1); border: 1px solid rgba(231,76,60,0.3);
  border-radius: 4px; padding: 14px; text-align: center;
  color: #E74C3C; font-weight: 600;
}
.form-error {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px; padding: 14px; text-align: center;
  color: #D9D9D9; font-weight: 600; font-size: 0.95rem;
}
[hidden] { display: none !important; }

/* ── Ganbaru Calendar (Calendly launcher) ── */
.gcal {
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px; padding: 22px; flex: 1; display: flex; flex-direction: column;
}
.gcal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.gcal-month { color: #fff; font-weight: 700; font-size: 1.05rem; }
.gcal-nav {
  background: transparent; border: 1px solid rgba(255,255,255,0.12); color: #A3A3A3;
  border-radius: 6px; width: 36px; height: 36px; cursor: pointer; font-size: 1rem;
  transition: all 0.2s;
}
.gcal-nav:hover:not(:disabled) { border-color: rgba(231,76,60,0.5); color: #E74C3C; }
.gcal-nav:disabled { opacity: 0.3; cursor: default; }
.gcal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.gcal-dow { color: #777; font-size: 0.72rem; font-weight: 700; text-align: center; padding: 6px 0; }
.gcal-day {
  background: rgba(255,255,255,0.03); border: 1px solid transparent; color: #D9D9D9;
  border-radius: 6px; aspect-ratio: 1; cursor: pointer; font-family: 'Assistant', sans-serif;
  font-size: 0.9rem; font-weight: 600; transition: all 0.18s;
}
.gcal-day:hover:not(:disabled) { border-color: #E74C3C; color: #E74C3C; background: rgba(231,76,60,0.08); }
.gcal-day:disabled { opacity: 0.22; cursor: default; }
.gcal-day.is-today { border-color: rgba(231,76,60,0.45); }
.gcal-hint { color: #777; font-size: 0.85rem; margin-top: 14px; text-align: center; }

/* ── Footer ── */
.site-footer {
  background: #080808; border-top: 1px solid rgba(255,255,255,0.05);
  padding: 80px 60px 40px; position: relative; overflow: hidden;
}
.footer-inner { max-width: 1200px; margin: 0 auto; position: relative; }
.footer-cols { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-brand { text-align: right; }
.footer-logo { font-size: 2rem; margin-bottom: 10px; direction: ltr; unicode-bidi: embed; text-align: right; }
.footer-tagline { color: #555; font-size: 1.16rem; line-height: 1.7; margin-bottom: 20px; text-align: right; }
.footer-social { display: flex; gap: 16px; justify-content: center; align-items: center; }
.footer-links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer-col-title { color: #fff; font-weight: 700; font-size: 1.16rem; margin-bottom: 20px; letter-spacing: 0.05em; }
.footer-col-link {
  display: block; color: #666; font-size: 1.16rem; margin-bottom: 12px;
  transition: all 0.2s;
}
.footer-col-link:hover { color: #E74C3C; transform: scale(1.05); filter: drop-shadow(0 0 6px rgba(231,76,60,0.6)); }
.footer-kanji-col { text-align: center; }
.footer-kanji { font-size: 80px; color: rgba(255,255,255,0.04); font-family: serif; line-height: 1; margin-bottom: 20px; user-select: none; }
.footer-legal { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.footer-legal a { color: #888; font-size: 0.82rem; font-weight: 600; transition: all 0.2s; }
.footer-legal a:hover { color: #E74C3C; filter: drop-shadow(0 0 6px rgba(231,76,60,0.5)); }
.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.04); padding-top: 32px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-copy { color: #888; font-size: 1.16rem; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal-section, .hero-reveal { opacity: 1 !important; transform: none !important; }
}

/* ── Responsive: tablet & mobile ── */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .section { padding: 80px 20px; }
  .site-header { padding: 0 18px; }
  .desktop-nav { display: none !important; }
  .mobile-nav-btn { display: flex !important; }
  .hero { padding: 120px 20px 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-brandmark { order: -1; }
  .about-grid, .contact-grid, .cards-grid, .cards-grid.cols-2 { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 44px; }
  .site-footer { padding: 48px 18px 28px; }
}

/* ── Press section (static-layer internals) ── */
.press-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.press-cube {
  padding: 34px 24px; min-height: 150px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.08); border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.005));
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  cursor: pointer; transition: border 0.4s ease, background 0.4s ease;
  text-align: center;
}
.press-item:hover .press-cube, .press-item.is-active .press-cube {
  border-color: rgba(255,255,255,0.18);
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(231,76,60,0.04));
}
.press-pub { font-size: 1.4rem; font-weight: 800; color: #A3A3A3; transition: color 0.3s; margin-bottom: 8px; line-height: 1.3; }
.press-item:hover .press-pub, .press-item.is-active .press-pub { color: #fff; }
.press-count { color: #555; font-size: 0.78rem; }
.press-dd-head { padding: 20px 20px 12px; text-align: center; border-bottom: 1px solid rgba(231,76,60,0.15); }
.press-dd-pub { color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: 4px; line-height: 1.2; }
.press-dd-count { color: #E74C3C; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; }
.press-dd-list { padding: 8px 0; }
.press-headline-row { margin-bottom: 80px; }

/* ── Service cards (static hover replacing React state) ── */
.service-card {
  background: linear-gradient(160deg, #1c1c1c 0%, #0f0f0f 100%);
  padding: 15px 40px 14px; cursor: pointer; position: relative;
  overflow: hidden; min-height: 65px; display: block;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.service-card:hover {
  background: linear-gradient(170deg, #1c1c1c 0%, #0e0e0e 100%);
  box-shadow: inset 0 -2px 0 0 rgba(0,0,0,0.8), 0 8px 32px rgba(0,0,0,0.5);
}
.service-card-content {
  position: relative; z-index: 1; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.service-num { color: rgba(255,255,255,0.1); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; margin-bottom: 14px; transition: color 0.3s; }
.service-card:hover .service-num { color: rgba(231,76,60,0.7); }
.service-title { color: rgba(255,255,255,0.72); font-weight: 800; transition: color 0.3s; }
.service-card:hover .service-title { color: #fff; }
.service-tagline { color: #8a8a8a; font-size: 0.98rem; font-weight: 600; margin-top: 8px; }
.service-desc { color: #A3A3A3; font-size: 1.02rem; line-height: 1.65; margin-top: 12px; }

/* ── Workshop cards ── */
.ws-card, .ws-custom-card { display: block; }
