/* ═══════════════════════════════════════════════════════════
   Eastern Silver Group — Mobile-B Overrides
   "Cinematic" treatment, applied below 768px.
   Hero sections become full-bleed images with overlay text;
   header turns transparent at top; alternating dark/ivory blocks
   gain more drama; business-area cards on home become stacked
   image-led moments.
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* ─── HEADER — transparent at top, ivory on scroll ───────── */
  header {
    background: transparent;
    border-bottom: 1px solid transparent;
    height: 56px;
    padding: 0 18px;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  }
  header.scrolled {
    background: var(--ivory);
    border-bottom: 1px solid var(--rule);
  }
  /* While transparent (top of page), force text + lines white */
  header:not(.scrolled) .logo-name,
  header:not(.scrolled) .logo-sub { color: #fff; }
  header:not(.scrolled) .logo-sub { color: rgba(255,255,255,0.65); }
  header:not(.scrolled) .logo-mark text { fill: oklch(76% 0.075 76); }
  header:not(.scrolled) .hamburger span { background: #fff; }

  /* Shrink logo */
  .logo { gap: 9px; }
  .logo-mark { width: 30px; height: 30px; }
  .logo-name { font-size: 11px; letter-spacing: 0.15em; }
  .logo-sub { font-size: 8px; letter-spacing: 0.2em; }

  main { padding-top: 0; }

  /* ─── MOBILE NAV — cinematic dark fullscreen menu ────────── */
  .mobile-nav {
    background: var(--charcoal);
    color: var(--ivory);
    padding: 90px 26px 36px;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
  }
  .mobile-nav::before {
    content: 'Menu — A Cross-Border Platform';
    font-family: var(--sans);
    font-size: 9px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 32px;
    display: block;
  }
  .mobile-nav a {
    color: var(--ivory);
    font-family: var(--serif);
    font-size: 38px;
    font-weight: 300;
    line-height: 1.25;
    padding: 10px 0;
    border-bottom: 1px solid oklch(32% 0.006 70);
    width: 100%;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    transition: color 0.2s, padding-left 0.25s;
  }
  .mobile-nav a::after {
    content: attr(data-num);
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--brass);
    font-weight: 400;
  }
  .mobile-nav a:hover, .mobile-nav a:active {
    color: var(--brass);
    padding-left: 8px;
  }
  .mobile-nav-footer {
    display: block;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid oklch(32% 0.006 70);
    font-size: 11px;
    color: oklch(58% 0.008 78);
    line-height: 1.7;
    letter-spacing: 0.04em;
  }
  .mobile-nav-footer .brass { color: var(--brass); }

  /* When menu open, hamburger lines turn white */
  .mobile-nav.open ~ header .hamburger span,
  body:has(.mobile-nav.open) .hamburger span { background: #fff !important; }

  /* ─── INDEX HERO ─────────────────────────────────────────── */
  .hero {
    grid-template-columns: 1fr;
    min-height: 100svh;
    max-width: none;
    margin: 0;
    position: relative;
    overflow: hidden;
  }
  .hero-right {
    position: absolute;
    inset: 0;
    z-index: 0;
    height: 100%;
  }
  .hero-right img, .hero-right .img-ph {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
  }
  .hero-left {
    position: relative;
    z-index: 2;
    padding: 80px 22px 56px;
    color: #fff;
    align-items: flex-start;
    background: linear-gradient(180deg,
      rgba(0,0,0,0.45) 0%,
      rgba(0,0,0,0.05) 25%,
      rgba(0,0,0,0.05) 55%,
      rgba(0,0,0,0.85) 100%);
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  .hero-eyebrow {
    color: var(--brass) !important;
    margin-bottom: 18px;
    font-size: 10px;
    letter-spacing: 0.3em;
  }
  .hero-title {
    color: #fff !important;
    font-size: 46px;
    line-height: 1.02;
    letter-spacing: -0.015em;
    font-weight: 300;
    margin-bottom: 18px;
  }
  .hero-sub {
    color: rgba(255,255,255,0.82) !important;
    font-size: 13px;
    line-height: 1.7;
    max-width: 320px;
    margin-bottom: 22px;
  }
  .hero-left > p[style*="margin-top:-28px"] {
    color: rgba(255,255,255,0.55) !important;
    font-size: 10px !important;
    letter-spacing: 0.15em;
    margin-top: 0 !important;
    margin-bottom: 28px !important;
  }
  .hero-left .btn-group { gap: 16px; flex-wrap: wrap; }
  .hero-left .btn-primary {
    background: #fff;
    color: var(--charcoal);
    border-color: #fff;
    padding: 13px 22px;
  }
  .hero-left .btn-ghost {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.7);
  }
  .section-index { display: none; }

  /* Scroll cue (added by JS as .scroll-cue) */
  .scroll-cue {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    pointer-events: none;
  }
  .scroll-cue-label {
    font-size: 8px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
  }
  .scroll-cue-line {
    width: 1px;
    height: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0));
    animation: cueDrop 1.8s ease-in-out infinite;
  }
  @keyframes cueDrop {
    0% { transform: translateY(-6px); opacity: 0.3; }
    50% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(6px); opacity: 0.3; }
  }

  /* ─── INDEX — INTRO SECTION (big italic) ─────────────────── */
  .hero ~ section > div[style*="max-width: var(--max)"] > div[style*="padding: 72px"] {
    padding: 48px 22px 0 !important;
  }
  .hero ~ section h2 {
    font-size: 36px !important;
    line-height: 1.05 !important;
  }
  .hero ~ section > div > div[style*="display:grid"][style*="padding"] {
    display: block !important;
    padding: 24px 22px 48px !important;
  }
  .hero ~ section > div > div[style*="display:grid"] > div[style*="border-left"] {
    border-left: none !important;
    border-top: 1px solid var(--rule) !important;
    padding-left: 0 !important;
    padding-top: 22px !important;
    margin-top: 18px;
  }

  /* ─── INDEX — OUR VIEW dark section ──────────────────────── */
  section[style*="background: var(--charcoal)"][style*="color: var(--ivory)"] {
    padding: 56px 22px !important;
  }
  section[style*="background: var(--charcoal)"][style*="color: var(--ivory)"] p[style*="font-family:var(--serif)"] {
    font-size: 26px !important;
    line-height: 1.35 !important;
  }
  section[style*="background: var(--charcoal)"][style*="color: var(--ivory)"] > div > div[style*="display:grid"] {
    display: block !important;
  }

  /* ─── INDEX — BUSINESS AREAS ─────────────────────────────── */
  /* The asymmetric grid (3fr 2fr) collapses into 3 stacked
     full-bleed cinematic cards. We use the wrapper section[id="film"]
     and rely on hook classes added to the inner divs. */
  section[id="film"] > div[style*="max-width:var(--max)"][style*="display:grid"] {
    display: block !important;
    margin-top: 0 !important;
    min-height: 0 !important;
  }
  section[id="film"] > div[style*="padding:60px"] {
    padding: 48px 22px 24px !important;
  }
  .home-area {
    position: relative;
    height: 460px;
    overflow: hidden;
    border-right: none !important;
    border-bottom: 1px solid var(--rule) !important;
    display: block !important;
  }
  .home-area > div:first-child {
    position: absolute;
    inset: 0;
    z-index: 0;
    min-height: 0 !important;
    flex: none !important;
  }
  .home-area > div:first-child > div {
    width: 100%;
    height: 100%;
    background-size: 320% 100% !important;
  }
  .home-area > div:last-child {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 36px 22px !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    background: linear-gradient(180deg,
      rgba(0,0,0,0.1) 0%,
      rgba(0,0,0,0.1) 35%,
      rgba(0,0,0,0.85) 100%);
    border-top: none !important;
  }
  .home-area > div:last-child > span:first-child {
    color: var(--brass) !important;
    letter-spacing: 0.32em !important;
    font-size: 9.5px !important;
    margin-bottom: 14px !important;
  }
  .home-area > div:last-child h3 {
    color: #fff !important;
    font-size: 30px !important;
    line-height: 1.1 !important;
    margin-bottom: 12px !important;
    max-width: 260px;
  }
  .home-area > div:last-child p {
    color: rgba(255,255,255,0.8) !important;
    font-size: 12.5px !important;
    line-height: 1.65 !important;
    margin-bottom: 20px !important;
    max-width: 290px;
  }
  .home-area .explore-link {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.7);
  }

  /* ─── INDEX — APPROACH ───────────────────────────────────── */
  section[style*="border-top:1px solid var(--rule)"][style*="border-bottom:1px solid var(--rule)"] > div > div[style*="grid-template-columns:repeat(3,1fr)"] {
    display: block !important;
    padding: 24px 22px 48px !important;
  }
  section[style*="border-top:1px solid var(--rule)"][style*="border-bottom:1px solid var(--rule)"] > div > div[style*="grid-template-columns:repeat(3,1fr)"] > div {
    padding: 24px 0 !important;
    border-right: none !important;
    border-bottom: 1px solid var(--rule);
  }
  section[style*="border-top:1px solid var(--rule)"][style*="border-bottom:1px solid var(--rule)"] > div > div[style*="grid-template-columns:repeat(3,1fr)"] > div:last-child {
    border-bottom: none;
  }

  /* ─── INDEX — CTA ─────────────────────────────────────────── */
  .cta {
    display: block;
    min-height: 0;
    position: relative;
  }
  .cta-image {
    position: relative;
    min-height: 0;
  }
  .cta-image img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    display: block;
  }
  .cta-content {
    padding: 0 22px 44px !important;
    background: transparent !important;
    color: #fff;
    position: absolute;
    inset: 0;
    z-index: 2;
    justify-content: flex-end;
    background-image: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 100%) !important;
  }
  .cta-title { font-size: 36px !important; line-height: 1.1 !important; }
  .cta-sub { color: rgba(255,255,255,0.78) !important; font-size: 12.5px !important; }

  /* ─── INNER HERO (about/film/art/ip) ─────────────────────── */
  .inner-hero {
    grid-template-columns: 1fr;
    min-height: 88svh;
    position: relative;
    overflow: hidden;
    border-bottom: none;
  }
  .inner-hero-right {
    position: absolute;
    inset: 0;
    z-index: 0;
    height: 100%;
    overflow: hidden;
  }
  .inner-hero-right img,
  .inner-hero-right > div[style*="background-image"] {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    background-size: cover !important;
    background-position: center !important;
    min-height: 0 !important;
    will-change: transform;
  }
  .inner-hero-left {
    position: relative;
    z-index: 2;
    padding: 80px 22px 64px !important;
    color: #fff;
    min-height: 88svh;
    justify-content: flex-end;
    background: linear-gradient(180deg,
      rgba(0,0,0,0.5) 0%,
      rgba(0,0,0,0.08) 28%,
      rgba(0,0,0,0.08) 55%,
      rgba(0,0,0,0.88) 100%);
  }
  .inner-hero-left .eyebrow { color: var(--brass); font-size: 10px; letter-spacing: 0.3em; }
  .inner-hero-left .section-title {
    color: #fff;
    font-size: 50px !important;
    line-height: 0.98 !important;
    letter-spacing: -0.02em;
    font-weight: 300;
  }
  .inner-hero-left .body-text {
    color: rgba(255,255,255,0.82) !important;
    font-size: 13px;
    line-height: 1.7;
    max-width: 320px;
  }
  .inner-hero-left p[style*="font-size:11px"] {
    color: rgba(255,255,255,0.55) !important;
  }

  /* ─── BODY SECTIONS — generally ──────────────────────────── */
  .section-pad { padding: 56px 22px; }
  .section-pad-sm { padding: 44px 22px; }
  .section-title { font-size: 32px; line-height: 1.1; }
  .section-title-italic { font-size: 26px; line-height: 1.25; }
  .body-text { font-size: 13.5px; line-height: 1.8; }
  .small-text { font-size: 12.5px; line-height: 1.75; }
  .eyebrow { font-size: 9px; letter-spacing: 0.3em; }
  .brass-rule { width: 28px; margin-bottom: 22px; }

  /* Two-col layouts everywhere collapse with rules */
  .two-col, .two-col-40-60 { gap: 24px; }
  .two-col > div + div, .two-col-40-60 > div + div {
    border-left: none !important;
    padding-left: 0 !important;
    border-top: 1px solid var(--rule);
    padding-top: 24px;
  }

  /* ─── ABOUT ──────────────────────────────────────────────── */
  .about-hero-quote { font-size: 22px !important; line-height: 1.45 !important; }
  .stat-row { grid-template-columns: 1fr 1fr !important; }
  .stat-item {
    padding: 32px 16px !important;
    border-right: 1px solid var(--rule) !important;
    border-bottom: 1px solid var(--rule) !important;
  }
  .stat-item:nth-child(2n) { border-right: none !important; }
  .stat-item:nth-child(n+3) { border-bottom: none !important; }
  .stat-num { font-size: 38px !important; }
  .values-grid, .team-grid { display: block !important; }
  .value-item {
    padding: 30px 0 !important;
    border-right: none !important;
    border-bottom: 1px solid var(--rule);
  }
  .value-item:last-child { border-bottom: none; }

  /* About leadership block (currently inline-styled split) */
  main > section > div[style*="grid-template-columns:1fr 1fr"][style*="min-height:480px"] {
    display: block !important;
  }
  main > section > div[style*="grid-template-columns:1fr 1fr"][style*="min-height:480px"] > div:first-child {
    height: 320px;
  }
  main > section > div[style*="grid-template-columns:1fr 1fr"][style*="min-height:480px"] > div:last-child {
    border-left: none !important;
    padding: 48px 22px !important;
  }

  /* ─── FILM ───────────────────────────────────────────────── */
  .service-list { grid-template-columns: 1fr !important; border-left: none !important; }
  .service-item {
    padding: 30px 0 !important;
    border-right: none !important;
    border-bottom: 1px solid var(--rule);
    border-left: none !important;
  }
  .service-item:last-child { border-bottom: none; }
  .process-row { display: block !important; }
  .process-step {
    padding: 24px 0 !important;
    border-right: none !important;
    border-bottom: 1px solid var(--rule);
    display: flex;
    gap: 18px;
    align-items: baseline;
  }
  .process-step:last-child { border-bottom: none; }
  .process-step-num {
    font-size: 32px !important;
    min-width: 40px;
    margin-bottom: 0 !important;
  }
  .process-step-title { font-size: 18px !important; margin-bottom: 4px !important; }

  /* ─── ART ────────────────────────────────────────────────── */
  .advisory-grid { display: block !important; }
  .advisory-item {
    padding: 32px 0 !important;
    border-right: none !important;
    border-bottom: 1px solid var(--rule);
  }
  .advisory-item:last-child { border-bottom: none; }
  .market-row { grid-template-columns: 1fr !important; min-height: 0 !important; }
  .market-image { height: 380px; position: relative; }
  .market-image img { object-position: center 35%; }
  .market-content {
    background: var(--charcoal) !important;
    color: var(--ivory) !important;
    padding: 48px 22px !important;
  }
  .market-content .eyebrow { color: var(--brass); }
  .market-content .section-title-italic { color: var(--ivory); }
  .market-content .body-text { color: oklch(80% 0.008 80) !important; }
  .market-content .btn-ghost { color: var(--brass); border-color: var(--brass); }

  .focus-list { gap: 0; }
  .focus-item {
    grid-template-columns: 50px 1fr !important;
    gap: 16px !important;
    padding: 24px 0 !important;
  }
  .focus-item-desc { display: block !important; grid-column: 2 !important; font-size: 12px !important; }

  /* Art quote block */
  section[style*="padding: clamp(64px,9vw,120px)"] {
    padding: 56px 22px !important;
  }
  section[style*="padding: clamp(64px,9vw,120px)"] p {
    font-size: 22px !important;
    line-height: 1.4 !important;
  }

  /* ─── IP ────────────────────────────────────────────────── */
  .thesis-block { padding: 56px 22px !important; }
  .thesis-quote { font-size: 24px !important; line-height: 1.4 !important; }
  .ip-types { grid-template-columns: 1fr !important; border-left: none !important; }
  .ip-type-item {
    padding: 36px 0 !important;
    border-right: none !important;
    border-bottom: 1px solid var(--rule);
    border-left: none !important;
  }
  .ip-type-item:last-child { border-bottom: none; }
  .ip-type-num { font-size: 56px !important; top: 8px !important; right: 0 !important; }
  .ip-type-title { font-size: 22px !important; }
  .approach-detail { grid-template-columns: 1fr !important; gap: 32px !important; }
  .approach-divider { display: none; }

  /* IP "How we evaluate IP" inner h3s */
  .approach-detail h3 { font-size: 19px !important; margin-bottom: 12px !important; }

  /* ─── CTA bands shared across film/art/ip ─────────────────── */
  main > section > div.inner-max.section-pad[style*="flex-wrap:wrap"] {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 28px !important;
    padding: 48px 22px !important;
  }
  main > section > div.inner-max.section-pad[style*="flex-wrap:wrap"] .section-title-italic {
    font-size: 26px !important;
  }

  /* ─── CONTACT ────────────────────────────────────────────── */
  .contact-grid {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }
  .contact-left {
    border-right: none !important;
    border-bottom: 1px solid var(--rule);
    padding: 80px 22px 48px !important;
    position: relative;
    background: var(--charcoal);
    color: var(--ivory);
    overflow: hidden;
  }
  .contact-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('uploads/pasted-1777448951588-0.jpg');
    background-size: cover;
    background-position: center 30%;
    opacity: 0.35;
    z-index: 0;
    will-change: transform;
  }
  .contact-left::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.4) 30%, rgba(0,0,0,0.85) 100%);
    z-index: 0;
  }
  .contact-left > * { position: relative; z-index: 1; }
  .contact-left .eyebrow { color: var(--brass); }
  .contact-left .section-title {
    color: #fff;
    font-size: 44px !important;
    line-height: 1.0 !important;
    letter-spacing: -0.02em;
    font-weight: 300;
  }
  .contact-left .body-text { color: rgba(255,255,255,0.78) !important; }
  .contact-left .office-type { color: var(--brass); }
  .contact-left .office-city { color: #fff; font-size: 19px !important; }
  .contact-left .office-detail { color: rgba(255,255,255,0.68) !important; font-size: 11.5px !important; }
  .contact-left .office-item {
    border-top-color: oklch(45% 0.006 70) !important;
  }
  .contact-left .office-item:last-child {
    border-bottom-color: oklch(45% 0.006 70) !important;
  }
  .contact-left > div:last-child p {
    color: var(--brass) !important;
    letter-spacing: 0.08em !important;
  }

  .contact-right { padding: 48px 22px !important; }
  .form-row { grid-template-columns: 1fr !important; gap: 0 !important; }
  .form-field { margin-bottom: 22px !important; }
  .form-submit-row { gap: 18px !important; }
  .form-submit-row .btn-primary { width: 100%; text-align: center; padding: 16px 26px; }

  /* ─── FOOTER ─────────────────────────────────────────────── */
  footer { padding: 56px 22px 32px; }
  .footer-top {
    grid-template-columns: 1fr !important;
    gap: 32px;
    padding-bottom: 36px;
  }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* Below 380 — squeeze further */
@media (max-width: 380px) {
  .hero-title { font-size: 40px !important; }
  .inner-hero-left .section-title { font-size: 44px !important; }
  .contact-left .section-title { font-size: 38px !important; }
  .cta-title { font-size: 30px !important; }
  .home-area > div:last-child h3 { font-size: 26px !important; }
}
