/* ─── Mobile-only elements — hidden by default ───────────────────── */
.mobile-header-bar,
.mobile-hero-row,
.mobile-work-heading,
.mobile-menu-overlay { display: none; }

/* ─── Tablet (≤ 1024px) ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --gutter: 1.5rem; }
  .hero-title span { font-size: clamp(1.75rem, 4vw, 3rem); }
}

/* ─── Tablet work table ─────────────────────────────────────────── */
@media (max-width: 960px) {
  .work-table-head,
  .wt-row-head { grid-template-columns: 1fr auto; }
  .work-table-head span:nth-child(2),
  .wt-services { display: none; }
  .wt-expand-inner { grid-template-columns: 1fr; }
  .wt-info-panel { grid-column: 1; height: auto; }
  .wt-carousel-wrap { grid-column: 1; }
  .wt-carousel-outer { height: 260px; }
}

/* ─── Mobile (≤ 768px) ──────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --gutter: 1.25rem; }

  /* ── Scroll: free scroll, no snap ───────────────────────────────── */
  html { scroll-snap-type: none; }
  .hero-section,
  .bio-section,
  .feed-showcase,
  .site-footer { scroll-snap-align: none; }

  /* Header */
  .site-header { height: 56px; }
  .header-btns-group { display: none !important; }

  /* ── Nav: always-visible links, no fish button ───────────────────── */
  .nav-fish-btn { display: none !important; }
  .nav-fish-wrap,
  .nav-fish-wrap:hover,
  .nav-fish-wrap:focus-within {
    padding: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    height: auto !important;
  }
  .nav-fish-pill,
  .nav-fish-pill.is-open,
  .nav-fish-wrap:hover .nav-fish-pill,
  .nav-fish-wrap:focus-within .nav-fish-pill {
    position: static !important;
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    background: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    gap: 1.25rem !important;
    max-width: none !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    z-index: auto !important;
    transition: none !important;
    overflow: visible !important;
    white-space: nowrap;
  }
  .nav-fish-link {
    font-size: 0.78rem;
    font-weight: 500;
    opacity: 0.5;
    color: var(--text);
  }
  .nav-fish-link.active { opacity: 1; font-weight: 600; }
  button.nav-fish-link { cursor: pointer; }

  /* Hero */
  .hero-section { padding-top: 120px; }
  .hero-title span { font-size: clamp(1.4rem, 6vw, 2.2rem); }
  .hero-photo-link { width: 110px; height: 110px; margin-top: 32px; }
  .welcome-tagline { font-size: 1rem; margin-top: 80px; }

  /* Featured */
  .featured-media { aspect-ratio: 4/3; }

  /* Work grid */
  .work-item--square { width: 220px; }
  .work-item--portrait { width: 180px; }

  /* Work table — thumbnail rows on mobile */
  .work-table-head { display: none; }
  .wt-row-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 0;
  }
  .wt-row-thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: var(--border);
  }
  .wt-name-cell {
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }
  .wt-name { font-size: 0.88rem; font-weight: 500; }
  .wt-sector { display: block; font-size: 0.65rem; opacity: 0.4; }
  .wt-services { display: none; }
  .wt-year { font-size: 0.72rem; opacity: 0.35; flex-shrink: 0; }
  .wt-carousel-outer { height: 240px; }

  /* Credits dropdown → inline on mobile so it doesn't float over carousel */
  .wt-credits-body {
    display: none;
    position: static;
    opacity: 1 !important;
    transform: none !important;
    box-shadow: none;
    width: 100%;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
    padding: 0.75rem 0;
    max-height: none;
  }
  .wt-credits.is-open .wt-credits-body {
    display: block;
    pointer-events: auto;
  }

  /* Case lightbox — bigger touch targets */
  .case-lb-prev,
  .case-lb-next {
    padding: 1.75rem;
    font-size: 2rem;
  }
  .case-lb-close {
    top: 1rem;
    right: 1rem;
    padding: 0.75rem;
    font-size: 1.35rem;
  }

  /* Hero — hidden on mobile */
  .hero-section { display: none !important; }
  .hero-card { display: none; }

  /* Bio */
  .bio-section {
    text-align: left;
    height: auto;
    align-items: flex-start;
    padding: calc(56px + 1.5rem) var(--gutter) 3rem;
    gap: 1.5rem;
  }
  .bio-head { text-align: left; }
  .bio-bottom { position: static; transform: none; left: auto; align-self: flex-start; white-space: normal; }
  .bio-scroll-down { display: none; }

  /* Section spacing */
  .feed-showcase   { display: none; }
  .work-table-wrap { margin-top: 0; }

  /* Footer — stack to 1 column */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem var(--gutter);
  }
  .footer-nav-big-link { font-size: clamp(1.6rem, 5vw, 2.5rem); }
  .footer-bottom-bar { flex-direction: column; align-items: flex-start; gap: 0.25rem; }

  /* Cookie banner */
  .cookie-bar {
    white-space: normal;
    max-width: calc(100% - 2rem);
    border-radius: 16px;
    left: 1rem;
    right: 1rem;
    transform: none;
  }

  /* About */
  .about-hero { grid-template-columns: 1fr; gap: 2rem; }
  .about-row { grid-template-columns: 1fr; gap: 1rem; }
  .about-clients-grid { grid-template-columns: repeat(2, 1fr); }

  /* ── Mobile header bar ───────────────────────────────────────────── */
  .mobile-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--gutter);
    height: 100%;
  }
  .mobile-logo { font-size: 1.4rem; line-height: 1; }
  .mobile-menu-btn {
    font-size: 0.8rem;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    letter-spacing: 0.03em;
    padding: 0.5rem 0;
  }

  /* ── Mobile hero row (name + photo) ─────────────────────────────── */
  .mobile-hero-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.25rem;
    align-items: start;
    width: 100%;
    margin-bottom: 1rem;
  }
  .mobile-hero-name {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 0.4rem;
    letter-spacing: -0.02em;
  }
  .mobile-hero-sub {
    font-size: 0.85rem;
    opacity: 0.55;
    line-height: 1.45;
    margin: 0;
  }
  .mobile-hero-photo {
    width: 88px;
    height: 110px;
    object-fit: cover;
    border-radius: 6px;
  }

  /* ── Mobile work heading ─────────────────────────────────────────── */
  .mobile-work-heading {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.4;
    padding: 1.5rem var(--gutter) 0;
    margin: 0;
  }

  /* ── Mobile menu overlay ─────────────────────────────────────────── */
  .mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: linear-gradient(160deg, #cde435 0%, #a3b91c 100%);
    display: flex;
    flex-direction: column;
    padding: 0 var(--gutter) calc(var(--gutter) * 2);
    transform: translateY(-100%);
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .mobile-menu-overlay.is-open { transform: translateY(0); }
  .mobile-menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    flex-shrink: 0;
  }
  .mobile-menu-logo { font-size: 1.4rem; line-height: 1; }
  .mobile-menu-close {
    font-size: 1.2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #1a1a00;
    padding: 0.5rem;
    margin-right: -0.5rem;
    opacity: 0.8;
  }
  .mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    flex: 1;
    justify-content: center;
  }
  .mobile-menu-link {
    font-size: clamp(2.2rem, 9vw, 3.5rem);
    font-weight: 700;
    color: #1a1a00;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    padding: 0.1rem 0;
    line-height: 1.1;
    display: block;
    letter-spacing: -0.02em;
  }
  .mobile-menu-link:active { opacity: 0.7; }
  .mobile-menu-footer {
    display: flex;
    align-items: center;
    padding-top: 1.5rem;
    flex-shrink: 0;
  }
  .mobile-menu-lang {
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.15);
    border: none;
    border-radius: 20px;
    padding: 0.35rem 1rem;
    cursor: pointer;
    color: #1a1a00;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

}

/* ─── Small mobile (≤ 480px) ────────────────────────────────────── */
@media (max-width: 480px) {
  :root { --gutter: 1rem; }
  .hero-title span { font-size: clamp(1.1rem, 5vw, 1.4rem); }
  .bio-section { padding: calc(56px + 1rem) var(--gutter) 2rem; }
  .work-item--square { width: 180px; }
  .work-item--portrait { width: 150px; }
  .footer-bottom-bar { font-size: 0.7rem; }
  .wl-hello { font-size: clamp(3rem, 14.4vw, 6rem); }
}
