/* ==========================================================================
   Third Eye Media — responsive enhancements (mobile-first, min-width only)
   Breakpoints: 640 (large phones) · 860 (tablet) · 1100 (laptop) · 1500 (large)
   ========================================================================== */

@media (min-width: 640px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .hero__foot ul { grid-template-columns: repeat(3, 1fr); }
  .hero__foot li { border-bottom: 0; border-right: 1px solid var(--line); padding: 1.4rem 1.5rem; flex-direction: column; gap: 0.3rem; }
  .hero__foot li:first-child { padding-left: 0; }
  .hero__foot li:last-child { border-right: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); column-gap: 2rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (min-width: 860px) {
  :root { --header-h: 76px; }
  .two-col { grid-template-columns: 5fr 7fr; gap: 4rem; }
  .founder { grid-template-columns: 5fr 7fr; gap: 4rem; }
  .founder .portrait { position: sticky; top: calc(var(--header-h) + 2rem); }
  .statement { grid-template-columns: 6fr 5fr; gap: 5rem; align-items: start; }
  .integrated { grid-template-columns: 5fr 6fr; gap: 5rem; }
  .contact-grid { grid-template-columns: 7fr 5fr; gap: 5rem; align-items: start; }
  .cat-desc { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; }
  .index-row { grid-template-columns: 4rem 1fr 1.1fr 3.5rem; align-items: center; }
  .index-row p { grid-column: 3; grid-row: 1; }
  .index-row__go { grid-column: 4; }
  .footer-top { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
  .footer-brand { grid-column: auto; }

  /* services: sticky side-nav layout */
  .svc-layout { grid-template-columns: 17rem 1fr; gap: 4rem; align-items: start; }
  .svc-nav {
    position: sticky; top: calc(var(--header-h) + 2rem); margin: 0; padding: 0; border: 0; background: transparent; overflow: visible;
  }
  body.header-hidden .svc-nav { top: 2rem; }
  .svc-nav ol { flex-direction: column; width: auto; gap: 0; border-top: 1px solid var(--line); }
  .svc-nav a { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0.95rem 0.2rem; white-space: normal; justify-content: flex-start; gap: 1rem; transition: padding 0.4s var(--ease), color 0.3s, background 0.3s; }
  .svc-nav a:hover { border-color: var(--line); padding-left: 0.6rem; }
  .svc-nav a.is-active { background: transparent; color: var(--ink); padding-left: 0.9rem; position: relative; font-weight: 700; }
  .svc-nav a.is-active::before { content: ""; position: absolute; left: 0; top: 50%; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--ink); transform: translateY(-50%); }
  .svc-nav a.is-active b { color: var(--ink); }
  .svc__body { grid-template-columns: 1fr; }
}

@media (min-width: 1100px) {
  .nav-list { display: flex; gap: clamp(1.2rem, 2.2vw, 2.4rem); }
  .btn.header-cta { display: inline-flex; min-height: 2.75rem; padding: 0.65rem 1.25rem; font-size: 0.9rem; }
  .menu-btn { display: none; }
  .mobile-menu { display: none; }
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; }
  .hero__visual { width: 100%; max-width: 580px; }
  .page-hero__art { right: -6vw; opacity: 0.16; }
  .steps { grid-template-columns: repeat(5, 1fr); column-gap: 0; }
  .step { padding: 1.8rem 1.6rem 1.8rem 0; border-right: 1px solid var(--line); border-bottom: 0; }
  .step + .step { padding-left: 1.6rem; }
  .step:last-child { border-right: 0; }
  .steps { border-bottom: 1px solid var(--line); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .work-grid { grid-template-columns: repeat(3, 1fr); }

  /* horizontal timeline */
  .timeline { grid-template-columns: repeat(5, 1fr); gap: 2rem; padding-top: 0.5rem; }
  .timeline .tl-track { left: 0; right: 0; top: calc(0.5rem + 0.55rem - 1px); bottom: auto; width: auto; height: 2px; }
  .timeline .tl-fill { transform: scaleX(var(--p)); }
  .tl-step { padding: 3.2rem 0 0 0; }
  .tl-step::before { left: 0; top: 0; }
  .tl-step:last-child { padding-bottom: 0; }
}

@media (min-width: 1500px) {
  :root { --maxw: 1480px; }
  body { font-size: 1.125rem; }
}

/* narrow phones: tighten */
@media (max-width: 380px) {
  .btn { width: 100%; }
  .hero__ctas .btn { width: 100%; }
  .wordmark { font-size: 0.82rem; letter-spacing: 0.1em; }
  .index-row__go { display: none; }
  .index-row { grid-template-columns: auto 1fr; }
}
@media (min-width: 860px) { .svc-section { padding-top: 4rem; } }

/* ---------- portfolio: real imagery (masonry), logo wall, insights ---------- */
.work-grid { display: block; column-count: 1; column-gap: 1.2rem; }
.work-card { break-inside: avoid; margin: 0 0 1.6rem; }
.work-card .work-art { aspect-ratio: auto; background: var(--ink-3); }
.work-card .work-art img { display: block; width: 100%; height: auto; transition: transform 0.9s var(--ease); }
.work-card:hover .work-art img, .work-card:focus-visible .work-art img { transform: scale(1.04); }
.work-card__meta h3 { font-size: 1rem; line-height: 1.3; }
.tile-img { aspect-ratio: 4 / 3; background: var(--ink-3); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.9s var(--ease); }
.cat-tile:hover .tile-img img { transform: scale(1.06); }
.modal__art { aspect-ratio: auto; background: #fff; max-height: 62vh; overflow: auto; text-align: center; }
.modal__art img { display: block; margin: 0 auto; max-width: 100%; max-height: 62vh; width: auto; height: auto; object-fit: contain; }
.logo-wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 3rem; background: var(--line); border: 1px solid var(--line); }
.logo-wall li { min-width: 0; display: grid; place-items: center; height: clamp(96px, 10vw, 140px); overflow: hidden; padding: 0.9rem; background: #fff; }
.logo-wall img { max-width: 100%; max-height: calc(clamp(96px, 10vw, 140px) - 1.8rem); width: auto; height: auto; object-fit: contain; }
.logo-wall { grid-auto-rows: auto; }
.insights { margin-top: 4rem; }
.insights h3 { font-size: 1.3rem; }
.insights p { color: var(--mut); margin: 0.6rem 0 1.6rem; max-width: 60ch; }
.insights__row { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 1rem; scroll-snap-type: x proximity; }
.insights__row li { flex: 0 0 auto; width: 200px; scroll-snap-align: start; }
.insights__row img { width: 100%; height: auto; border-radius: 12px; display: block; }
@media (min-width: 640px) { .work-grid { column-count: 2; } .logo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .work-grid { column-count: 3; } .logo-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .logo-wall { grid-template-columns: repeat(6, minmax(0, 1fr)); } .insights__row li { width: 220px; } }
