/* Filmic Frontier — palette pulled from the logo: night sky, sunset coral, lagoon teal */
:root {
  --bg: #0b0b0c;
  --surface: #151517;
  --text: #eeece6;
  --muted: #9b988f;
  --line: rgba(238, 236, 230, 0.12);
  --accent: #ff8a5c;
  --accent-2: #7fd6c8;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--body); overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #000; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.92; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(56px, 11vw, 168px); }
h2 { font-size: clamp(36px, 5vw, 64px); }
h2.sub { font-size: clamp(26px, 3vw, 36px); margin: 72px 0 24px; }
.kicker { font: 600 12px/1 var(--body); letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 60ch; }

/* ─── Nav ─── */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter); transition: background 0.3s, backdrop-filter 0.3s; }
.nav.solid { background: rgba(11, 11, 12, 0.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 800 22px/1 var(--display); text-transform: uppercase; letter-spacing: 0.06em; }
.brand img { border-radius: 6px; }
.nav nav { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); transition: color 0.2s; }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--text); }
.menu { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; cursor: pointer; }
.menu i { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text); transition: transform 0.3s var(--ease); }
.menu i:first-child { top: 17px; } .menu i:last-child { top: 25px; }
.menu[aria-expanded="true"] i:first-child { transform: translateY(4px) rotate(45deg); }
.menu[aria-expanded="true"] i:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 700px) {
  .menu { display: block; }
  .nav nav { position: fixed; inset: 0; top: 72px; flex-direction: column; gap: 8px; padding: 24px var(--gutter);
    background: var(--bg); transform: translateY(-110%); transition: transform 0.4s var(--ease); }
  .nav nav.open { transform: none; }
  .nav nav a { font: 800 44px/1.2 var(--display); text-transform: uppercase; color: var(--text); }
  .brand span { font-size: 19px; }
}

/* ─── Buttons ─── */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; text-decoration: none; font-weight: 600; font-size: 15px; cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.btn:hover { border-color: var(--text); }
.btn-solid { background: var(--accent); color: #140b06; border-color: var(--accent); }
.btn-solid:hover { background: #ffa37f; border-color: #ffa37f; }
.tri { width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.more { color: var(--accent); text-decoration: none; font-weight: 600; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ─── Hero ─── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 0 var(--gutter) clamp(40px, 8vh, 96px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,12,.55) 0%, rgba(11,11,12,0) 25%, rgba(11,11,12,.15) 55%, var(--bg) 100%); }
.hero-copy { position: relative; max-width: 1100px; text-shadow: 0 1px 24px rgba(0,0,0,.45); }
.hero-copy .btn { text-shadow: none; }
.hero h1 { font-size: clamp(64px, 14vw, 220px); font-weight: 900; }
.hero-role { font-size: clamp(18px, 2vw, 24px); margin: 14px 0 32px; color: var(--text); opacity: 0.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-copy .hero-actions { margin-top: 0; }
.hero-tc { position: absolute; top: 88px; right: var(--gutter); font: 500 13px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: 0.08em; color: var(--text); opacity: 0.8; }
.hero-tc span:first-child { color: #ff4d4d; }
.hero-tc span:first-child::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; margin-right: 6px; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 700px) { .hero-tc { display: none; } }

/* ─── Sections ─── */
.section { padding: clamp(72px, 10vw, 140px) var(--gutter) 0; }
.page-top { padding-top: clamp(120px, 16vw, 200px); }
.page-top h1 { margin-bottom: 24px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: none; padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--muted); cursor: pointer; transition: all 0.2s; }
.chip:hover { color: var(--text); border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ─── Work grid ─── */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.4vw, 36px) clamp(16px, 2vw, 28px); }
@media (max-width: 700px) { .grid { grid-template-columns: 1fr; } }
.card { text-decoration: none; display: block; }
.card[hidden] { display: none; }
.card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); border-radius: 4px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease), filter 0.5s; filter: saturate(0.9); }
.card:hover .card-media img { transform: scale(1.045); filter: saturate(1.1); }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 14px; }
.card-meta h3 { font-size: clamp(24px, 2.4vw, 34px); transition: color 0.2s; }
.card:hover h3 { color: var(--accent); }
.card-meta span { color: var(--muted); font-size: 14px; white-space: nowrap; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ─── Stills strip ─── */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(180px, 22vw, 320px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scrollbar-width: thin; }
.strip a { scroll-snap-align: start; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.strip a:hover img { transform: scale(1.05); }

/* ─── About ─── */
.about-teaser, .about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.about { align-items: start; }
@media (max-width: 800px) { .about-teaser, .about { grid-template-columns: 1fr; } }
.about-img { border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 5; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-copy h2 { margin-bottom: 24px; }
.about-copy p { color: var(--muted); max-width: 60ch; }
.about-copy p.kicker { color: var(--accent); }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.wide { margin-top: clamp(72px, 10vw, 140px); }
.wide img { width: 100%; max-height: 80vh; object-fit: cover; }

/* ─── Project ─── */
.project { padding: clamp(120px, 16vw, 200px) var(--gutter) 0; }
.project-head { margin-bottom: clamp(36px, 5vw, 64px); }
.project-head h1 { font-size: clamp(52px, 10vw, 150px); }
.meta { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--muted); font-size: 15px; }
.meta li:first-child { color: var(--text); }
.project-head .lede { margin-top: 20px; }
.player { display: grid; gap: 24px; }
.player video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 4px; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: 4px; cursor: pointer; overflow: hidden;
  background: #000 var(--poster) center / cover no-repeat; }
.yt::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.25); transition: background 0.3s; }
.yt:hover::after { background: rgba(0,0,0,.05); }
.play { position: absolute; z-index: 1; left: 50%; top: 50%; width: clamp(64px, 8vw, 96px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: var(--accent); transition: transform 0.3s var(--ease); }
.play::before { content: ""; position: absolute; left: 54%; top: 50%; translate: -50% -50%; border-left: 22px solid #140b06; border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.yt:hover .play { transform: scale(1.08); }
.yt iframe, .modal iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.episodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 28px 20px; margin-top: 28px; }
.episodes figure { margin: 0; }
.episodes .play { width: 56px; }
.episodes .play::before { border-left-width: 16px; border-top-width: 10px; border-bottom-width: 10px; }
.episodes figcaption { font-size: 15px; color: var(--muted); padding-top: 10px; }
.verticals { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }
@media (max-width: 700px) { .verticals { grid-template-columns: 1fr 1fr; gap: 8px; } }
.verticals video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #000; border-radius: 6px; }

.stills-chips { margin: 36px 0 28px; }
.masonry a[hidden] { display: none; }
/* Phones: one swipeable row of filter tabs, roomier tap targets */
@media (max-width: 700px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: calc(100% + var(--gutter) * 2);
    margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 2px var(--gutter); }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; padding: 11px 16px; }
  .more, .links a { display: inline-block; padding: 10px 0; }
  .section-head { margin-bottom: 24px; }
}
.masonry.js { columns: auto; display: flex; gap: 14px; align-items: flex-start; }
.masonry.js .m-col { flex: 1; min-width: 0; }
@media (max-width: 700px) { .masonry.js { gap: 8px; } }
.masonry { columns: 3 320px; column-gap: 14px; }
.masonry a { display: block; margin-bottom: 14px; break-inside: avoid; border-radius: 3px; overflow: hidden; cursor: zoom-in; }
.masonry img { width: 100%; transition: transform 0.8s var(--ease), opacity 0.3s; }
.masonry a:hover img { transform: scale(1.03); }
@media (max-width: 700px) { .masonry { columns: 2 140px; column-gap: 8px; } .masonry a { margin-bottom: 8px; } }

.next { position: relative; display: block; margin: clamp(80px, 12vw, 160px) calc(var(--gutter) * -1) 0; padding: clamp(80px, 14vw, 180px) var(--gutter);
  text-decoration: none; overflow: hidden; isolation: isolate; }
.next-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: 0.35; transition: opacity 0.5s, transform 1.2s var(--ease); }
.next:hover .next-bg { opacity: 0.6; transform: scale(1.03); }
.next-title { display: block; font: 800 clamp(44px, 8vw, 120px)/0.95 var(--display); text-transform: uppercase; }

/* ─── Contact ─── */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
@media (max-width: 800px) { .contact { grid-template-columns: 1fr; } }
.contact h1 { font-size: clamp(52px, 8vw, 120px); }
.links { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 10px; }
.links a { font: 800 28px/1.2 var(--display); text-transform: uppercase; text-decoration: none; }
.links a:hover { color: var(--accent); }
.form { display: grid; gap: 18px; align-content: start; }
.form label { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.form input, .form textarea, .form select { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--accent); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }

/* ─── Footer ─── */
.foot { padding: clamp(96px, 14vw, 200px) var(--gutter) 32px; }
.foot-cta { border-top: 1px solid var(--line); padding-top: 48px; }
.big-link { font: 900 clamp(44px, 9vw, 150px)/0.92 var(--display); text-transform: uppercase; text-decoration: none; display: inline-block; transition: color 0.3s; }
.big-link:hover { color: var(--accent); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 72px; color: var(--muted); font-size: 14px; }
.foot-social { display: flex; gap: 20px; }
.foot-social a { text-decoration: none; }
.foot-social a:hover { color: var(--text); }

/* ─── Modal / lightbox ─── */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(5,5,6,.94); display: grid; place-items: center; padding: 56px var(--gutter); }
.modal[hidden] { display: none; }
.modal-body { position: relative; width: min(1400px, 100%); }
.modal-body.video { aspect-ratio: 16 / 9; }
.modal-body img { max-height: calc(100vh - 112px); width: auto; margin: 0 auto; }
.modal-x { position: absolute; top: 12px; right: 16px; background: none; border: 0; font-size: 40px; line-height: 1; cursor: pointer; z-index: 2; }
.modal-nav { position: absolute; top: 50%; translate: 0 -50%; background: rgba(255,255,255,.08); border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.modal-nav:hover { background: rgba(255,255,255,.18); }
.modal-prev { left: 8px; } .modal-next { right: 8px; }
