/* ============================================================
   RESPONSIVE.CSS
   Mobile-first base lives in components.css. This file adds
   layouts, hover states, and visual flourishes for tablets +
   desktop. Everything is min-width media queries.
   ============================================================ */

/* ──────────────────────────────────────────────
   TABLET — 640px and up
   ────────────────────────────────────────────── */
@media (min-width: 640px) {
  /* HERO: stays vertically stacked + centred (overrides any row layout). */
  .hero-meta {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    font-size: 11px;
  }
  .hero-main {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(26px, 4vh, 44px);
  }
  .hero .badge-col {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 3vw, 32px);
    width: auto;
  }
  .hero-foot {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 30px;
  }
  .est-badge {
    width: 120px;
    height: 120px;
  }
  .est-badge .center svg {
    width: 30px;
    height: 30px;
  }

  /* STATS: 4-up */
  .stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
  .stat {
    padding: 0 24px;
    border-left: 1px solid var(--rule);
  }
  .stat:first-child {
    border-left: 0;
    padding-left: 0;
  }

  /* ABOUT: pillars 3-up */
  .pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--rule);
    border-block: 1px solid var(--rule);
  }
  .pillar {
    background: var(--bone);
    padding: 32px 24px;
    border-bottom: 0;
  }
  .pillar:hover {
    background: var(--paper);
  }

  /* TIMELINE — bigger gutter */
  .timeline .t-list {
    padding-left: 28px;
  }

  /* SERVICES: 2-up */
  .svc-grid {
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--rule);
  }
  .svc {
    --svc-px: clamp(20px, 2.5vw, 40px);
    padding: clamp(32px, 3.5vw, 48px) var(--svc-px);
    border-right: 1px solid var(--rule);
  }
  .svc:nth-child(2n) {
    border-right: 0;
  }
  .svc:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  /* TOOLS: 5-up */
  .tools-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  /* EQUIPMENT: show category */
  .equip-row {
    grid-template-columns: 80px 2fr 1.6fr 80px;
    gap: 20px;
    padding: 28px 0;
  }
  .equip-row .cat {
    display: block;
  }
  .equip-row .n {
    font-size: 11px;
  }
  .equip-row .arr {
    font-size: 22px;
  }

  /* CLIENTS: 2-up */
  .client-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .ig-card {
    padding: 18px;
    border-radius: 18px;
  }
  .ig-card .avatar {
    width: 60px;
    height: 60px;
    font-size: 19px;
  }
  .ig-card .ig-mid {
    grid-template-columns: 60px 1fr;
  }
  .ig-card .stat-block {
    font-size: 14px;
  }
  .ig-card .stat-block span {
    font-size: 11px;
  }

  /* RESULTS: 2-up */
  .result-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .result-card {
    padding: 28px;
  }
  .result-journey {
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
  }
  .result-journey .arrow {
    transform: none;
    padding: 0;
  }

  /* GRAPHICS: 12-col grid */
  .graphics-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
  }
  .gtile.s3 {
    grid-column: span 6;
    aspect-ratio: 3/4;
  }
  .gtile.s4 {
    grid-column: span 6;
    aspect-ratio: 3/4;
  }
  .gtile.s6 {
    grid-column: span 6;
    aspect-ratio: 3/4;
  }

  /* BEFORE/AFTER: 2-up */
  .ba-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .ba-side {
    padding: 22px;
  }

  /* CONTACT: 2-up */
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
  .contact-card {
    padding: 36px;
  }

  /* FAQ: a touch more breathing room */
  .faq-q {
    grid-template-columns: 44px 1fr 20px;
    padding: 26px 0;
  }
  .faq-a-inner {
    padding-left: 60px;
  }

  /* PROCESS: 2-up */
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* FOOTER: 4-col */
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 36px;
  }
  .footer-grid .col1 {
    grid-column: span 1;
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
  }
}

/* ──────────────────────────────────────────────
   DESKTOP — 900px and up
   ────────────────────────────────────────────── */
@media (min-width: 900px) {
  body {
    cursor: none;
    font-size: 15px;
  }

  /* Show custom cursor + section ticker on desktop */
  .cursor,
  .cursor-trail {
    display: block;
  }
  .section-tick {
    display: flex;
  }

  body.cursor-hover .cursor {
    width: 0;
    height: 0;
  }
  body.cursor-hover .cursor-trail {
    width: 84px;
    height: 84px;
  }
  body.cursor-text .cursor-trail {
    width: 110px;
    height: 110px;
  }
  body.cursor-text .cursor-trail::after {
    opacity: 1;
  }

  a,
  button,
  [data-magnet] {
    cursor: none;
  }

  /* NAV: full layout */
  .nav {
    grid-template-columns: 1fr auto 1fr;
    padding: 16px var(--pad);
  }
  .nav .mark .mark-logo {
    height: 60px;
  }
  .nav.scrolled .mark .mark-logo {
    height: 50px;
  }
  .nav-links {
    display: flex;
    /* Tighter on small laptops so all seven links clear the logo + CTA */
    gap: clamp(14px, 1.9vw, 28px);
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }
  .nav-links a {
    position: relative;
    padding: 6px 0;
  }
  .nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1.5px;
    background: var(--orange);
    transition: width 0.35s var(--ease);
  }
  .nav-links a:hover::after {
    width: 100%;
  }
  .nav-right {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    justify-self: end;
  }
  .hamburger {
    display: none;
  }
  .mobile-menu {
    display: none;
  }

  /* Hide mobile FAB on desktop */
  .mobile-fab {
    display: none !important;
  }

  /* HERO scaled up — kept inside a single viewport. */
  .hero {
    padding: clamp(110px, 13vh, 140px) var(--pad) clamp(70px, 9vh, 90px);
    gap: clamp(28px, 4vh, 44px);
  }
  .hero-meta {
    font-size: 11px;
    padding-bottom: 16px;
  }
  .hero h1 .strk::after {
    height: 9px;
  }

  .scroll-cue {
    bottom: 24px;
    left: var(--pad);
  }
  .scroll-cue::before {
    width: 26px;
  }

  /* Pillars hover micro-anim on desktop */
  .pillar {
    transition:
      background 0.4s var(--ease),
      padding 0.4s var(--ease);
  }
  .pillar:hover {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  /* Services: custom cursor (hover flip lives in the hover-only block below) */
  .svc {
    cursor: none;
  }
  .svc .arr {
    width: 44px;
    height: 44px;
    font-size: 16px;
    top: clamp(32px, 3.5vw, 48px);
  }

  /* Tools hover */
  .tool:hover {
    background: var(--paper);
  }
  .tool:hover .ico {
    transform: rotate(-6deg) scale(1.05);
    background: var(--orange);
  }

  /* Equipment hover orange wipe */
  .equip-row:hover::before {
    transform: scaleX(1);
  }
  .equip-row:hover {
    padding-left: 24px;
  }
  .equip-row:hover .n {
    color: var(--ink);
  }
  .equip-row:hover .cat {
    color: var(--ink);
  }
  .equip-row:hover .arr {
    transform: rotate(0deg) translateX(6px);
  }

  /* Clients hover lift */
  .ig-card:hover {
    transform: translateY(-6px) rotate(-1deg);
  }

  /* Graphics hover */
  .gtile:hover {
    transform: translateY(-6px);
  }

  /* Contact card hover */
  .contact-card {
    transition: transform 0.5s var(--ease-spring);
  }
  .contact-card:hover {
    transform: translateY(-6px) rotate(-0.5deg);
  }
  .contact-card .lines a:hover {
    color: var(--orange);
  }
  .contact-card .lines a:hover::after {
    transform: translate(4px, -4px);
  }

  /* Showreel hover */
  .showreel:hover {
    background: var(--ink);
    color: var(--paper);
  }

  /* About lead bigger */
  .about-lead {
    padding: 36px 0;
  }
}

/* Services orange flip — real hover devices only, so a tap on
   touch screens never triggers it. */
@media (min-width: 900px) and (hover: hover) {
  .svc:hover {
    background: var(--orange);
    color: #fff;
  }
  .svc:hover .num {
    color: #fff;
  }
  .svc:hover p {
    color: #fff;
  }
  .svc:hover .icon {
    border-color: #fff;
    color: #fff;
  }
  .svc:hover .arr {
    background: var(--ink);
    color: var(--orange);
    border-color: var(--ink);
    transform: rotate(0deg);
  }
  /* SERVICES on hover keep chips legible */
  .svc:hover .svc-tag {
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
  }
}

/* ──────────────────────────────────────────────
   HERO SQUIGGLES — mobile shifts the headline + CTA up so the
   lower half is free for its own composition; desktop swaps to
   the desktop canvas.
   ────────────────────────────────────────────── */
@media (max-width: 1023.98px) {
  .hero {
    justify-content: flex-start;
    padding-top: clamp(110px, 17vh, 160px);
  }
}
@media (min-width: 1024px) {
  .hero-squiggles .sq-canvas-d {
    display: block;
  }
  .hero-squiggles .sq-canvas-m {
    display: none;
  }
}

/* ──────────────────────────────────────────────
   LARGE DESKTOP — 1200px and up
   ────────────────────────────────────────────── */
@media (min-width: 1200px) {
  .hero {
    padding: clamp(120px, 13vh, 150px) var(--pad) clamp(70px, 9vh, 96px);
    gap: clamp(32px, 4vh, 48px);
  }
  .est-badge {
    width: 130px;
    height: 130px;
  }

  /* PROCESS: 4-up */
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .process .head {
    flex-direction: row;
    justify-content: space-between;
    gap: 40px;
    align-items: end;
  }
  .process .head h2 {
    flex: 1.4;
  }
  .process .head .sub {
    flex: 1;
  }

  /* Services head 2-col */
  .services .head {
    flex-direction: row;
    justify-content: space-between;
    gap: 40px;
    align-items: end;
  }
  .services .head h2 {
    flex: 1.4;
  }
  .services .head .sub {
    flex: 1;
    max-width: 36ch;
  }

  /* Tools head 2-col */
  .tools .head {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
  }
  .tools .head h2 {
    flex: 1.4;
  }
  .tools .head .meta {
    flex: 1;
    max-width: 28ch;
  }

  /* Equipment bigger */
  .equip h2 {
    margin-bottom: 60px;
  }

  /* Clients head 2-col */
  .clients .head {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
  }
  .clients .head h2 {
    flex: 1.4;
  }
  .clients .head .sub {
    flex: 1;
  }

  /* Clients: 3-up */
  .client-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  /* Results head 2-col */
  .results .head {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
  }
  .results .head h2 {
    flex: 1.4;
  }
  .results .head .sub {
    flex: 1;
  }
  .result-card {
    padding: 32px;
  }

  /* Graphics head 2-col */
  .graphics .head {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
  }
  .graphics .head h2 {
    flex: 1.4;
  }
  .graphics .head .sub {
    flex: 1;
  }

  /* Graphics 12-col proper layout */
  .graphics-grid {
    gap: 16px;
  }
  .gtile.s3 {
    grid-column: span 3;
    aspect-ratio: 3/4;
  }
  .gtile.s4 {
    grid-column: span 4;
    aspect-ratio: 3/4;
  }
  .gtile.s6 {
    grid-column: span 6;
    aspect-ratio: 16/9;
  }
  .gtile.s9 {
    grid-column: span 9;
    aspect-ratio: 16/9;
  }


  .contact-foot {
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 24px;
  }

  /* Footer */
  .footer {
    padding-top: 80px;
    padding-bottom: 0;
  }
}

/* ──────────────────────────────────────────────
   EXTRA NARROW — 360px and below (small phones)
   ────────────────────────────────────────────── */
@media (max-width: 360px) {
  .stat .num {
    font-size: 36px;
  }
  .ig-card {
    padding: 14px;
  }
  .ig-card .avatar {
    width: 50px;
    height: 50px;
    font-size: 16px;
  }
  .ig-card .ig-mid {
    grid-template-columns: 50px 1fr;
    gap: 12px;
  }
  .contact-card {
    padding: 22px;
  }
  .contact-card .who {
    font-size: 32px;
  }
  .nav .mark .mark-logo {
    height: 38px;
  }
}

/* ──────────────────────────────────────────────
   POINTER FINE TUNING (separates touch from hover)
   ────────────────────────────────────────────── */

/* Hover-capable devices keep cursor-driven UI */
@media (hover: hover) and (pointer: fine) {
  /* nothing specific needed beyond min-width: 900px above */
}

/* Touch-only: don't show custom cursor; ensure tap targets feel right */
@media (hover: none) {
  body {
    cursor: auto;
  }
  .cursor,
  .cursor-trail {
    display: none !important;
  }
  a,
  button,
  [data-magnet] {
    cursor: pointer;
  }
}

/* ============================================================
   2026 REBRAND ADDITIONS — responsive overrides
   Component bases live in components.css; these MQs handle
   tablet / desktop layouts for the new sections.
   ============================================================ */

/* ────── TABLET — 640px and up ────── */
@media (min-width: 640px) {
  /* SERVICES sub-service chips: slightly bigger */
  .svc-tags {
    max-width: 52ch;
    gap: 10px;
  }
  .svc-tag {
    font-size: 11px;
    padding: 7px 12px;
  }

  /* CLIENTS marquee bigger names */
  .client-marquee {
    padding: 48px 0;
  }

  /* PORTFOLIO — 2-up */
  .pf-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
  .pf-tabs {
    gap: 6px;
  }
  .pf-tab {
    font-size: 12px;
    padding: 13px 22px;
  }

  /* CONTACT FORM — 2-col with full-width spans for textarea + dropdown */
  .contact-form {
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
  }
  .cf-full {
    grid-column: 1 / -1;
  }
  .cf-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .cf-cta {
    min-width: 200px;
  }
  .cf-note {
    text-align: left;
  }

  /* CONSULT dialog: 2-col detail fields, inline actions */
  .cd-fields {
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
  }
  .cd-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  /* WHATSAPP — 2-up */
  .wa-links {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

/* ────── DESKTOP — 900px and up ────── */
@media (min-width: 900px) {
  /* HERO CTA hover */
  .hero-cta {
    cursor: none;
  }
  .hero-cta:hover {
    background: var(--orange);
    color: var(--ink);
  }
  .hero-cta:hover .arr {
    background: var(--ink);
    color: var(--orange);
  }

  /* CLIENTS marquee subtle hover-pause */
  .client-marquee:hover .cm-track {
    animation-play-state: paused;
  }

  /* PORTFOLIO — 3-up at desktop */
  .pf-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
  }
  .pf-item {
    cursor: none;
  }
  .pf-item:hover {
    transform: translateY(-6px);
  }
  .pf-item:hover .pf-img {
    transform: scale(1.04);
  }
  /* Smooth scroll: tiles keep their own GPU layer so the lift + zoom never
     repaint, and hover sits out while the page is scrolling, so tiles
     sliding under a still cursor don't each kick off an animation. The
     hover itself is unchanged once scrolling stops. */
  .pf-item,
  .pf-thumb .pf-img {
    will-change: transform;
  }
  .is-scrolling .pf-grid {
    pointer-events: none;
  }
  .pf-tab {
    cursor: none;
  }

  .portfolio .head {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
  }
  .portfolio .head h2 {
    flex: 1.4;
  }
  .portfolio .head .sub {
    flex: 1;
  }

  /* FAQ: two columns — heading + contact link left, accordion right */
  .faq {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
  }
  .faq-head {
    position: sticky;
    top: 120px;
  }

  /* CONTACT: intro left, form right */
  .contact-wrap {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
  }
  .wa-links {
    grid-template-columns: 1fr;
  }
  .wa-link:hover {
    border-color: var(--ink);
  }

  .cf-cta:hover {
    background: var(--ink);
    color: var(--paper);
  }
  .cf-cta:hover .arr {
    background: var(--orange);
    color: var(--ink);
  }

  .consult-btn:hover {
    background: var(--orange);
    color: var(--ink);
  }
  .consult-btn:hover .arr {
    background: var(--ink);
    color: var(--orange);
  }

  /* WHATSAPP hover */
  .wa-link:hover {
    transform: translateY(-3px);
  }
}

/* ────── LARGE DESKTOP — 1200px and up ────── */
@media (min-width: 1200px) {
  .pf-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  /* Videography tab: five Shorts sit in one row under the featured video */
  .pf-grid:has(> .pf-video:not([hidden])) {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ──────────────────────────────────────────────
   MOBILE PORTFOLIO TABS — only the active tab shows its label;
   inactive tabs collapse to their icon so all three fit cleanly.
   ────────────────────────────────────────────── */
@media (max-width: 767.98px) {
  .pf-tab span {
    display: none;
  }
  .pf-tab.active span {
    display: inline;
  }
  /* Icon-only tabs become compact, evenly padded squares. */
  .pf-tab:not(.active) {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* ──────────────────────────────────────────────
   PORTFOLIO GALLERY — phone only. Larger screens keep the classic
   grid, so the Grid / Camera roll switch is hidden there.
   ────────────────────────────────────────────── */
@media (min-width: 768px) {
  .pf-view {
    display: none;
  }
}
@media (max-width: 767.98px) {
  .pf-tabs-row {
    gap: 6px;
  }
  .pf-tabs-row .pf-tab {
    gap: 7px;
    padding-left: 13px;
    padding-right: 13px;
  }
  .pf-tabs-row .pf-tab:not(.active) {
    padding-left: 11px;
    padding-right: 11px;
  }
  .pf-view button {
    width: 30px;
    height: 30px;
  }
  .pf-nav {
    width: 36px;
    height: 36px;
    margin-top: -18px;
    font-size: 13px;
  }
  .pf-strip {
    height: 84px;
  }
  .pf-strip-thumb {
    height: 52px;
  }
  .pf-strip-thumb[aria-current="true"] {
    height: 72px;
  }
}
/* Small phones (e.g. 320–375px): tighter tabs so all three + the switch fit */
@media (max-width: 379.98px) {
  .pf-tabs-row {
    gap: 4px;
  }
  .pf-tabs-row .pf-tab {
    padding-left: 10px;
    padding-right: 10px;
    letter-spacing: 0.06em;
  }
  .pf-tabs-row .pf-tab:not(.active) {
    padding-left: 9px;
    padding-right: 9px;
  }
  .pf-view button {
    width: 28px;
  }
}

/* ──────────────────────────────────────────────
   TESTIMONIALS — from tablet up: title left, intro + CTA in the
   last column, quote left-aligned under the title. Tiles scale with
   the viewport so the strip always runs past the screen edge.
   ────────────────────────────────────────────── */
@media (min-width: 768px) {
  .testi-head,
  .testi-body {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
  .testi-head {
    align-items: start;
    gap: 0;
  }
  .testi-title {
    grid-column: 1 / 4;
  }
  .testi-aside {
    grid-column: 4;
    padding-top: clamp(28px, 4vw, 56px);
  }
  .testi-body {
    row-gap: 22px;
    column-gap: 0;
  }
  .testi-mark,
  .testi-slides {
    grid-column: 1 / 4;
  }
  .testi-slides {
    grid-row: 2;
  }
  /* Controls sit on the caption line, in the last column */
  .testi-controls {
    grid-column: 4;
    grid-row: 2;
    align-self: end;
  }
  .testi-strip {
    gap: 10px;
  }
  .testi-tile {
    --s: 13vw;
    padding: clamp(10px, 1vw, 16px);
  }
  .testi-tile[aria-selected="true"] {
    --s: 20vw;
  }
  .testi-tile-name {
    font-size: clamp(24px, 2.3vw, 36px);
    transform: scale(0.57);
  }
}
@media (min-width: 900px) {
  .testi-btn,
  .testi-tile,
  .testi-cta {
    cursor: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .testi-slide,
  .testi-slide.is-active,
  .testi-tile,
  .testi-tile-name,
  .testi-tile-img,
  .testi-tile.has-img::before {
    transition: none;
  }
}

/* Small laptops: seven nav links + the CTA need a little less room */
@media (min-width: 900px) and (max-width: 1099.98px) {
  .nav-links {
    gap: 13px;
    font-size: 11px;
    letter-spacing: 0.06em;
  }
  .nav-cta {
    white-space: nowrap;
  }
}

/* Hero headline on phones: both lines scale with the screen so they keep
   the artwork's proportions (lead ≈ 1.3× the width of "we should ;)") */
@media (max-width: 767.98px) {
  .hero-quote .hq-lead {
    font-size: 5.4vw;
  }
  .hero-quote .hq-punch {
    font-size: 13.3vw;
  }
}
