/* =========================================================
   SQUIDY MEDIA — styles.css
   Design tokens first; change the accent in one place.
   ========================================================= */
:root {
  --acc: #C6F24E;          /* accent (lime) */
  --bg: #0E0F11;           /* page */
  --surface: #17191C;      /* contact panel */
  --ph-1: #202226;         /* media placeholders */
  --ph-2: #26292D;
  --ph-3: #1C1E21;
  --ph-4: #23252A;
  --ink: #F2EFE8;          /* primary text */
  --ink-2: #CFCAC0;        /* body text */
  --muted: #A09B91;        /* labels */
  --faint: #8C887F;
  --line: #34363B;         /* hairlines */
  --line-2: #3A3C40;

  --f-display: 'Bricolage Grotesque', 'Arial Black', sans-serif;
  --f-body: 'Hanken Grotesk', 'Helvetica Neue', Helvetica, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --gutter: clamp(20px, 2.8vw, 40px);
  --section-gap: clamp(88px, 12.5vw, 180px);

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 80px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--acc); }
button { font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- type ---------- */
.display { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.04em; margin: 0; }
.mono { font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.accent { color: var(--acc); }
.muted { color: var(--muted); }
.balance { text-wrap: balance; }
.h2 { font-size: clamp(44px, 6.1vw, 88px); line-height: 0.92; }

/* ---------- layout ---------- */
.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section-gap); display: flex; flex-direction: column; gap: clamp(28px, 3.3vw, 48px); }
.section__titles { display: flex; flex-direction: column; gap: clamp(12px, 1.1vw, 16px); }
.section__head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* ---------- ui bits ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; border: 1px solid var(--line-2);
  background: rgba(14, 15, 17, .72); cursor: default;
}
button.chip { cursor: pointer; min-height: 32px; }
button.chip:hover { border-color: var(--ink); }
button.chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; min-height: 44px; }
.btn--accent { background: var(--acc); color: var(--bg); }
.btn--accent:hover { color: var(--bg); filter: brightness(1.08); }
.btn--lg { padding: 16px 22px; font-size: 14px; align-self: flex-start; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--acc); color: var(--bg); padding: 10px 14px; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header {
  position: relative; z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px var(--gutter);
}
.brand { font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.brand__sub { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; }
.site-nav { display: flex; gap: 32px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 0; cursor: pointer; align-items: center; justify-content: flex-end; }

/* ---------- hero ---------- */
.hero__frame { position: relative; height: clamp(600px, 57vw, 820px); background: var(--ph-1); overflow: hidden; }
.hero__video, .hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,15,17,0) 35%, rgba(14,15,17,.92) 100%); }
.hero__chips { position: absolute; top: 24px; left: 24px; right: 24px; display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); }
.hero__body { position: absolute; left: clamp(18px, 2.8vw, 40px); right: clamp(18px, 2.8vw, 40px); bottom: clamp(22px, 2.8vw, 40px); display: flex; flex-direction: column; gap: clamp(20px, 2.2vw, 32px); }
.hero__title { font-size: clamp(36px, 6.4vw, 92px); line-height: 0.96; max-width: 1180px; }
.hero__foot { display: flex; align-items: center; gap: 16px; }
.progress { flex-grow: 1; height: 2px; background: var(--line-2); }
.progress__bar { width: 22%; height: 2px; background: var(--acc); }

/* ---------- media placeholders (visible until real files load) ---------- */
.media { position: relative; overflow: hidden; background: var(--ph-1); }
.media > video, .media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel video::-webkit-media-controls-fullscreen-button { display: none !important; }
.reel-controls { position: absolute; z-index: 2; left: 10px; right: 10px; bottom: 10px; display: grid; grid-template-columns: 24px minmax(0, 1fr) 24px; align-items: center; gap: 6px; padding: 0; color: #fff; opacity: 0; pointer-events: none; transition: opacity .18s ease; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .8)); }
.is-controls-visible > .reel-controls, .reel-controls:has(:focus-visible) { opacity: 1; pointer-events: auto; }
@media (hover: hover) and (pointer: fine) { .media--reel:hover > .reel-controls { opacity: 1; pointer-events: auto; } }
@media (prefers-reduced-motion: reduce) { .reel-controls { transition: none; } }
.reel-controls button { display: flex; align-items: center; justify-content: center; width: 24px; height: 28px; padding: 2px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.reel-controls svg { width: 18px; height: 18px; fill: none; }
.reel-controls button:first-child svg { fill: currentColor; stroke: none; }
.reel-controls input { appearance: none; -webkit-appearance: none; width: 100%; min-width: 0; height: 28px; margin: 0; background: transparent; cursor: pointer; }
.reel-controls input::-webkit-slider-runnable-track { height: 2px; background: rgba(255, 255, 255, .7); }
.reel-controls input::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 8px; height: 8px; margin-top: -3px; border: 0; border-radius: 50%; background: #fff; }
.reel-controls input::-moz-range-track { height: 2px; background: rgba(255, 255, 255, .7); }
.reel-controls input::-moz-range-thumb { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #fff; }
.reel-controls :focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.media::before {
  position: absolute; left: 14px; bottom: 14px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint);
}
.media--reel { aspect-ratio: 9 / 16; }
.media--reel::before { content: '[ 9:16 Video ]'; }
.media--shot { aspect-ratio: 3 / 4; }
.media--shot::before { content: '[ 3:4 Image ]'; }
.reel:nth-child(5n+2) .media, .media--shot:nth-child(4n+2) { background: var(--ph-2); }
.reel:nth-child(5n+3) .media, .media--shot:nth-child(4n+3) { background: var(--ph-3); }
.reel:nth-child(5n+4) .media, .media--shot:nth-child(4n+4) { background: var(--ph-4); }

/* ---------- work ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.reels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 16px; row-gap: 36px; }
.reel { display: flex; flex-direction: column; gap: 14px; }
.reel.is-hidden { display: none; }
.reel__title { font-family: var(--f-display); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
.reel__scope { margin: 0; font-size: 12px; color: var(--muted); }

/* ---------- services ---------- */
.channels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.channel { border: 1px solid var(--line); border-top: 3px solid var(--acc); padding: 28px 24px 32px; display: flex; flex-direction: column; gap: 28px; }
.channel:hover { border-color: var(--acc); }
.channel__meta { display: flex; justify-content: space-between; color: var(--muted); }
.channel__name { font-family: var(--f-display); font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: -0.04em; margin: 0; }
.channel__list { display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 20px; }
.shots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }

/* ---------- clients ---------- */
.logos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logo { height: 130px; display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px; }
.logo img { max-height: 48px; width: auto; opacity: .85; }
@media (max-width: 760px) { .logo:not(.is-loaded)::before { font-size: 9px; } }
.logo:not(.is-loaded)::before { content: '[ Logo ]'; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--muted); }
.logo { position: relative; }
.logo:not(.is-loaded) img { position: absolute; opacity: 0; }

/* ---------- contact ---------- */
.contact { background: var(--surface); border: 1px solid var(--line); padding: clamp(32px, 5vw, 72px) clamp(20px, 3.9vw, 56px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; align-items: end; }
.contact__main { grid-column: span 7; display: flex; flex-direction: column; gap: 28px; }
.contact__title { font-size: clamp(60px, 8.3vw, 120px); line-height: 0.9; letter-spacing: -0.05em; }
.contact__info { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 20px; font-size: 16px; }
.info { display: flex; flex-direction: column; gap: 6px; }
.info__label { font-size: 11px; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { padding-top: clamp(72px, 8.3vw, 120px); display: flex; flex-direction: column; gap: clamp(16px, 2vw, 28px); overflow: hidden; }
.site-footer__bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; }
.site-footer__social { display: flex; gap: 24px; }
.wordmark {
  font-family: var(--f-display); font-weight: 800; color: var(--acc);
  font-size: min(23.6vw, 340px); line-height: 0.8; letter-spacing: -0.06em;
  height: 0.79em; overflow: hidden; white-space: nowrap; text-align: center;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .reels { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .contact__main { grid-column: 1 / -1; }
  .contact__info { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .site-header { padding: 12px var(--gutter); }
  .brand { font-size: 20px; }
  .brand__sub, .site-header__cta { display: none; }
  .menu-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid var(--line); font-size: 14px; }
  .site-nav__contact { display: flex; color: var(--acc); }

  .hero.wrap { padding-left: 12px; padding-right: 12px; }
  .hero__frame { height: 640px; }
  .hero__chips { top: 14px; left: 14px; right: 14px; font-size: 10px; }
  .hero__now { font-size: 0; }
  .hero__now::after { content: 'Squidy Media'; font-size: 10px; }
  .hero__foot { flex-direction: column; align-items: stretch; gap: 20px; }
  .hero__foot .mono { font-size: 10px; }

  .filters { display: none; }
  .reels { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 8px; row-gap: 20px; }
  .reel:nth-child(n+10) { display: none; }
  .reel { gap: 6px; }
  .reel__title { font-size: 13px; letter-spacing: -0.01em; }
  .reel__scope { font-size: 9px; line-height: 1.4; }
  .media::before { left: 8px; bottom: 8px; font-size: 9px; }
  .media--reel::before { content: ''; }

  .channels { grid-template-columns: 1fr; gap: 28px; }
  .channel { padding: 20px; gap: 14px; display: grid; grid-template-columns: 1fr auto; }
  .channel__meta { grid-column: 2; grid-row: 1; align-self: center; }
  .channel__meta span:last-child { display: none; }
  .channel__name { grid-column: 1; grid-row: 1; font-size: 30px; }
  .channel__list { grid-column: 1 / -1; display: block; border-top: 0; padding-top: 0; font-size: 14px; line-height: 1.6; }
  .channel__list li { display: inline; }
  .channel__list li:not(:last-child)::after { content: ', '; }
  .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

  .logos { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .logo { height: 80px; padding: 6px; }

  .contact { display: flex; flex-direction: column; align-items: stretch; gap: 24px; }
  .btn--lg { align-self: stretch; min-height: 48px; }
  .contact__info { border-top: 1px solid var(--line); padding-top: 20px; font-size: 15px; }
  .site-footer__bar { font-size: 10px; padding-top: 14px; }
  .site-footer__social { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
