/* Frontier Creative Media — site styles
   Dark, cinematic, image-first. One accent, used sparingly. */

:root {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --bg-3: #1a1a1d;
  --line: rgba(242, 239, 233, 0.12);
  --line-2: rgba(242, 239, 233, 0.24);
  --text: #f2efe9;
  --muted: #a6a199;
  --accent: #ff6a2b;
  --accent-ink: #0a0a0b;
  --paper: #ece8e1;
  --paper-ink: #121212;
  --paper-muted: #5c5852;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1680px;
  --header-h: 76px;
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(16px, 0.35vw + 14.5px, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
html.lb-open, html.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; font-weight: 600; transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */

.display {
  font-stretch: 125%;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere; /* last resort for long single words on small phones */
}

.label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.label .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-right: 10px; vertical-align: 1px;
}

.lead {
  font-size: clamp(1.4rem, 2.4vw + 0.6rem, 2.6rem);
  line-height: 1.22;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.prose p + p { margin-top: 1.1em; }
.prose { color: var(--muted); max-width: 62ch; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 22px;
  border-radius: var(--radius);
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  line-height: 1;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--text); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-dark { background: var(--paper-ink); color: var(--paper); }
.btn-dark:hover { background: var(--accent); color: var(--accent-ink); }

.arrow { width: 16px; height: 16px; flex: none; }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -40px 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(10, 10, 11, 0.7), transparent);
  transition: opacity 0.35s;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 11, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--line);
}
.site-header.is-scrolled::before { opacity: 0; }
.site-header.is-hidden { transform: translateY(-100%); }

.header-inner {
  position: relative; height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand img { height: 34px; width: auto; }
.brand-name {
  font-stretch: 125%; font-weight: 700; font-size: 13px; letter-spacing: 0.06em;
  text-transform: uppercase; line-height: 1.05;
}
.brand-name span { display: block; color: var(--muted); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative; font-size: 14px; font-weight: 500; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted); transition: color 0.2s; padding-block: 6px;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.icon-link {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 50%; color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}
.icon-link:hover { color: var(--text); border-color: var(--line-2); }
.icon-link svg { width: 17px; height: 17px; }

.nav .btn { padding: 13px 18px; }

.menu-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  position: relative; z-index: 60;
}
.menu-toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 25px; }
.menu-open .menu-toggle span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--bg);
  padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.menu-open .site-header { z-index: 60; background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-open .site-header::before { opacity: 0; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu li a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 0; font-size: clamp(2rem, 9vw, 3.25rem);
}
.mobile-menu li a small { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.1em; }
.mobile-menu .btn { width: 100%; justify-content: center; margin-top: 32px; padding: 20px; }
.mobile-menu-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; }

@media (max-width: 960px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
}
@media (min-width: 961px) {
  .mobile-menu { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-media video.is-playing { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(10, 10, 11, 0.95) 0%, rgba(10, 10, 11, 0.35) 45%, rgba(10, 10, 11, 0.15) 70%, rgba(10, 10, 11, 0.55) 100%),
    linear-gradient(to right, rgba(10, 10, 11, 0.55), transparent 60%);
}
.hero-content { padding-bottom: clamp(40px, 8vh, 96px); padding-top: calc(var(--header-h) + 40px); }
.hero h1 { margin-bottom: clamp(16px, 2.5vh, 28px); }
.hero-tagline { font-size: clamp(2.6rem, min(7.4vw, 13vh), 9rem); }
@media (max-width: 700px) { .hero-tagline { font-size: clamp(2.5rem, 12.5vw, 4.5rem); } }
.hero-tagline span { display: block; }
.hero-tagline span:last-child { color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 4vh, 44px); }
.hero-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: clamp(32px, 6vh, 72px); padding-top: 20px; border-top: 1px solid var(--line);
}
.hero-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.hero-toggle:hover { color: var(--text); }
.hero-toggle svg { width: 14px; height: 14px; }
.hero-toggle .i-play { display: none; }
.hero-toggle[aria-pressed="true"] .i-play { display: block; }
.hero-toggle[aria-pressed="true"] .i-pause { display: none; }

/* ---------- Marquee ---------- */

.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden; white-space: nowrap;
  padding-block: clamp(18px, 2.4vw, 30px);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: inline-flex; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track a {
  display: inline-flex; align-items: center;
  font-stretch: 125%; font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.4rem, 3.2vw, 3rem); letter-spacing: -0.01em; line-height: 1;
  color: var(--muted); transition: color 0.2s;
}
.marquee-track a:hover { color: var(--text); }
.marquee-track a::after {
  content: ""; width: 0.38em; height: 0.38em; margin-inline: 0.7em;
  background: var(--accent); transform: rotate(45deg);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section { padding-block: clamp(72px, 11vw, 168px); }
.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.section-title { font-size: clamp(2.4rem, 6.5vw, 6.5rem); }

/* Intro statement */
.statement { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.statement .lead { max-width: 26ch; }
.statement .lead em { font-style: normal; color: var(--muted); }
.statement-side { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.statement-side p { color: var(--muted); max-width: 36ch; font-size: 1.1rem; }
@media (min-width: 900px) {
  .statement { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: end; gap: 64px; }
}

/* Who / What */
.whowhat { display: grid; gap: 40px; border-top: 1px solid var(--line); padding-top: clamp(40px, 6vw, 80px); }
.whowhat h2 { font-size: clamp(2rem, 7.4vw, 3.4rem); white-space: nowrap; }
@media (min-width: 900px) { .whowhat h2 { font-size: clamp(2.6rem, 4vw, 4.6rem); } }
.whowhat h2 + h2 { color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.whowhat .prose { font-size: 1.15rem; color: var(--text); opacity: 0.86; }
@media (min-width: 900px) {
  .whowhat { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: end; gap: 64px; }
}

/* ---------- Work panels (home) ---------- */

.panels { display: grid; gap: 12px; }
@media (min-width: 900px) { .panels { grid-template-columns: 1fr 1fr; } }

.panel {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(560px, 92vh, 960px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(24px, 3vw, 44px);
  background: var(--bg-2);
}
.panel-media { position: absolute; inset: 0; z-index: -2; }
.panel-media img, .panel-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease), opacity 0.6s var(--ease);
}
.panel::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(10, 10, 11, 0.95) 0%, rgba(10, 10, 11, 0.75) 32%, rgba(10, 10, 11, 0) 62%, rgba(10, 10, 11, 0.3));
}
.panel:hover .panel-media img { transform: scale(1.04); }
.panel-title { font-size: clamp(3.2rem, 7vw, 7.5rem); margin: 10px 0 24px; }
.panel-title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.panel-list { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; border-top: 1px solid var(--line-2); }
.panel-list li { border-bottom: 1px solid var(--line); }
.panel-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 13px 0; font-weight: 500; transition: color 0.2s, padding 0.35s var(--ease);
}
.panel-list a span:last-child { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.08em; }
.panel-list a:hover { color: var(--accent); padding-left: 8px; }

/* ---------- Featured film ---------- */

.featured {
  position: relative; display: block; overflow: hidden; isolation: isolate;
  aspect-ratio: 16 / 9; max-height: 86vh; width: 100%;
  background: var(--bg-2);
}
.featured img, .featured video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 11, 0.85), transparent 55%);
}
.featured-info {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap;
  padding: clamp(20px, 3vw, 44px);
}
.featured-info h3 { font-size: clamp(1.8rem, 4.8vw, 4.5rem); margin-top: 10px; }
.play-big {
  display: inline-grid; place-items: center; flex: none;
  width: clamp(64px, 8vw, 104px); aspect-ratio: 1; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  transition: transform 0.4s var(--ease), background-color 0.25s;
}
.play-big svg { width: 32%; height: 32%; margin-left: 6%; }
.featured:hover .play-big { transform: scale(1.08); background: var(--text); }

/* ---------- Logos band ---------- */

.paper { background: var(--paper); color: var(--paper-ink); }
.logos-head { text-align: center; font-size: clamp(1.2rem, 1.8vw, 1.6rem); font-weight: 500; letter-spacing: -0.01em; }
.logos {
  list-style: none; margin: clamp(36px, 5vw, 64px) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: clamp(28px, 5vw, 72px) clamp(32px, 6vw, 88px);
}
.logos img {
  height: var(--h); width: auto;
  filter: grayscale(1) contrast(1.15);
  mix-blend-mode: multiply; opacity: 0.78;
  transition: filter 0.3s, opacity 0.3s;
}
.logos li:hover img { filter: none; opacity: 1; }
@media (max-width: 600px) { .logos img { height: calc(var(--h) * 0.72); } }

/* ---------- CTA band ---------- */

.cta { border-top: 1px solid var(--line); }
.cta-inner { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr); }
.cta-title { font-size: clamp(2rem, 8.5vw, 9rem); }
.cta-title a { transition: color 0.3s; }
.cta-title a:hover { color: var(--accent); }
.cta-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.cta-row .prose p:first-child { color: var(--text); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 80px) 28px; background: var(--bg); }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
.footer-brand img { height: 56px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); max-width: 34ch; }
.footer-col h3 { margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--text); opacity: 0.85; transition: color 0.2s, opacity 0.2s; }
.footer-col a:hover { color: var(--accent); opacity: 1; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: clamp(40px, 6vw, 72px); padding-top: 22px; border-top: 1px solid var(--line);
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* ---------- Page header (inner pages) ---------- */

.page-head { padding-top: calc(var(--header-h) + clamp(48px, 8vw, 120px)); padding-bottom: clamp(28px, 4vw, 48px); }
.crumbs { display: flex; gap: 10px; align-items: center; margin-bottom: 20px; }
.crumbs a:hover { color: var(--text); }
.crumbs .sep { opacity: 0.5; }
.page-title { font-size: clamp(2.4rem, 11vw, 11rem); }
@media (max-width: 600px) { .page-title { font-size: max(2rem, 8.6vw); } }
.page-meta { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 22px; }

.chips {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding-block: 4px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.chip sup { font-size: 10px; opacity: 0.7; vertical-align: 0; }
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip[aria-current="page"], .chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

.chips-bar {
  position: sticky; top: var(--header-h); z-index: 20;
  background: rgba(10, 10, 11, 0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding-block: 12px;
  transition: top 0.4s var(--ease);
}
.header-hidden .chips-bar { top: 0; }

/* ---------- Tiles (category index pages) ---------- */

.tiles { display: grid; gap: 12px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tile {
  position: relative; display: block; overflow: hidden; isolation: isolate;
  grid-column: span 6; aspect-ratio: 4 / 3; background: var(--bg-2);
}
.tile img, .tile video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease), opacity 0.6s var(--ease);
}
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(10, 10, 11, 0.88), rgba(10, 10, 11, 0) 55%);
}
.tile:hover img { transform: scale(1.045); }
.tile-info {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: end; gap: 16px;
  padding: clamp(18px, 2.4vw, 32px);
}
.tile-name { font-size: clamp(1.9rem, 3.6vw, 3.6rem); margin-top: 8px; }
.tile-go {
  display: inline-grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line-2); transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}
.tile:hover .tile-go { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: rotate(-45deg); }

@media (min-width: 760px) {
  .tiles--photo .tile { grid-column: span 3; aspect-ratio: 3 / 2; }
  .tiles--video .tile { grid-column: span 3; aspect-ratio: 16 / 10; }
  .tiles--video .tile:nth-child(n + 3) { grid-column: span 2; aspect-ratio: 4 / 5; }
}

/* Viewfinder corners on hover */
.frame::before {
  content: ""; position: absolute; z-index: 4; inset: 18px; pointer-events: none;
  --c: rgba(242, 239, 233, 0.9); --l: 22px; --t: 1.5px;
  background:
    linear-gradient(var(--c) 0 0) top left / var(--l) var(--t),
    linear-gradient(var(--c) 0 0) top left / var(--t) var(--l),
    linear-gradient(var(--c) 0 0) top right / var(--l) var(--t),
    linear-gradient(var(--c) 0 0) top right / var(--t) var(--l),
    linear-gradient(var(--c) 0 0) bottom left / var(--l) var(--t),
    linear-gradient(var(--c) 0 0) bottom left / var(--t) var(--l),
    linear-gradient(var(--c) 0 0) bottom right / var(--l) var(--t),
    linear-gradient(var(--c) 0 0) bottom right / var(--t) var(--l);
  background-repeat: no-repeat;
  opacity: 0; transform: scale(1.04);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.frame:hover::before, .frame:focus-visible::before { opacity: 1; transform: none; }

/* Hover preview videos */
.pv-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.5s var(--ease); pointer-events: none;
}
.pv-video.is-playing { opacity: 1; }

/* ---------- Video grids ---------- */

.vgroup + .vgroup { margin-top: clamp(48px, 6vw, 80px); }
.vgroup-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.vgroup-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.vgrid { display: grid; gap: clamp(20px, 2vw, 28px) 12px; }
.vgrid--landscape { grid-template-columns: 1fr; }
.vgrid--vertical { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) {
  .vgrid--landscape { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vgrid--vertical { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .vgrid--vertical { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.vcard { display: block; text-align: left; width: 100%; }
.vcard-media {
  position: relative; overflow: hidden; background: var(--bg-2);
  aspect-ratio: var(--ar);
}
.vcard-media img, .vcard-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease), opacity 0.5s var(--ease);
}
.vcard:hover .vcard-media img { transform: scale(1.04); }
.vcard-play {
  position: absolute; z-index: 5; left: 14px; bottom: 14px;
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(10, 10, 11, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line-2);
  transition: background-color 0.25s, color 0.25s, transform 0.35s var(--ease);
}
.vcard-play svg { width: 14px; height: 14px; margin-left: 2px; }
.vcard:hover .vcard-play { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: scale(1.08); }
.vcard-time {
  position: absolute; z-index: 5; right: 12px; top: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  padding: 4px 7px; background: rgba(10, 10, 11, 0.6); border-radius: var(--radius);
}
.vcard-title {
  display: block; margin-top: 12px; font-weight: 500; font-size: 1rem; line-height: 1.3;
  transition: color 0.2s;
}
.vcard:hover .vcard-title { color: var(--accent); }
.vgrid--vertical .vcard-title { font-size: 0.94rem; }

/* ---------- Justified photo grid ---------- */

.jgrid { --row: 220px; --gap: 6px; display: flex; flex-wrap: wrap; gap: var(--gap); }
.jgrid::after { content: ""; flex-grow: 999; }
.jgrid > a {
  position: relative; display: block; overflow: hidden;
  flex: var(--ar) 1 calc(var(--ar) * var(--row));
  aspect-ratio: var(--ar);
  background: var(--c, var(--bg-2));
}
.jgrid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease), opacity 0.6s; }
.jgrid > a:hover img { transform: scale(1.03); }
.jgrid > a::after {
  content: ""; position: absolute; inset: 0; background: rgba(10, 10, 11, 0);
  transition: background-color 0.3s;
}
.jgrid > a:hover::after { background: rgba(10, 10, 11, 0.12); }
@media (min-width: 700px) { .jgrid { --row: 240px; --gap: 8px; } }
@media (min-width: 1300px) { .jgrid { --row: 290px; } }

.pgroup { scroll-margin-top: calc(var(--header-h) + 80px); }
.pgroup + .pgroup { margin-top: clamp(56px, 7vw, 96px); }
.pgroup-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.pgroup-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.8rem); }
.pgroup[hidden] { display: none; }

/* ---------- Next category ---------- */

.next-cat {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  border-top: 1px solid var(--line); padding-block: clamp(32px, 5vw, 64px);
  margin-top: clamp(64px, 8vw, 120px);
}
.next-cat .display { font-size: clamp(2rem, 6vw, 6rem); transition: color 0.3s; }
.next-cat:hover .display { color: var(--accent); }
.next-cat .tile-go { width: clamp(56px, 6vw, 88px); height: clamp(56px, 6vw, 88px); }
.next-cat:hover .tile-go { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: rotate(-45deg); }

/* ---------- About ---------- */

.about-intro { display: grid; gap: 40px; }
.about-intro .lead { max-width: 30ch; }
.about-cols { display: grid; gap: 28px; color: var(--muted); }
.about-core {
  border-left: 2px solid var(--accent); padding-left: clamp(18px, 2.4vw, 32px);
  font-size: clamp(1.25rem, 1.8vw + 0.4rem, 2rem); line-height: 1.3; font-weight: 500; letter-spacing: -0.01em;
  max-width: 40ch;
}
@media (min-width: 900px) {
  .about-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
}

.owner { display: grid; gap: clamp(32px, 5vw, 80px); align-items: start; }
.owner-photo { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-2); }
.owner-photo img { width: 100%; height: 100%; object-fit: cover; }
.owner-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 20px;
  background: linear-gradient(to top, rgba(10, 10, 11, 0.8), transparent);
}
.owner-text .lead { margin: 18px 0 28px; max-width: 22ch; }
@media (min-width: 900px) {
  .owner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .owner-photo { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* ---------- Book ---------- */

.book { display: grid; gap: clamp(40px, 6vw, 96px); padding-bottom: clamp(72px, 10vw, 140px); }
.book-copy h1 { font-size: clamp(2.2rem, 9.5vw, 5rem); }
.book-copy .lead { margin-top: 28px; max-width: 24ch; }
.book-copy .prose { margin-top: 20px; }
.book-aside { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.book-aside a { display: inline-flex; align-items: center; gap: 12px; }
.book-aside a:hover { color: var(--accent); }
@media (min-width: 960px) {
  .book { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; }
  .book-copy h1 { font-size: clamp(2.2rem, 3.8vw, 4.2rem); }
}

.form-card { background: var(--bg-2); border: 1px solid var(--line); padding: clamp(24px, 3.5vw, 48px); }
.field { display: grid; gap: 8px; }
.field + .field, .field-row + .field { margin-top: 26px; }
.field label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field label .req { color: var(--accent); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text);
  background: transparent; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  padding: 10px 0 12px; font-size: 1.15rem;
  transition: border-color 0.25s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field input:focus-visible, .field textarea:focus-visible { box-shadow: 0 1px 0 var(--accent); }
.field-row { display: grid; gap: 22px; }
.field-row .field + .field { margin-top: 0; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 36px; }
.form-error { color: #ff8f6b; font-size: 0.95rem; }
.form-success { display: none; text-align: left; }
.form-card.is-sent form { display: none; }
.form-card.is-sent .form-success { display: block; }
.form-success .lead { margin: 18px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Lightbox ---------- */

.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: #060607; color: var(--text);
  overscroll-behavior: contain;
}
.lightbox::backdrop { background: rgba(6, 6, 7, 0.9); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: lb-in 0.3s var(--ease); }
@keyframes lb-in { from { opacity: 0; } }
.lb-top, .lb-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px var(--gutter); }
.lb-bottom { min-height: 64px; }
.lb-title { font-weight: 500; }
.lb-stage { position: relative; display: grid; place-items: center; padding: 0 var(--gutter); min-height: 0; touch-action: pan-y; }
.lb-media { width: 100%; height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lb-stage img, .lb-stage video { max-width: none; object-fit: contain; background: #000; } /* sized by app.js fit() */
.lb-stage img { animation: lb-in 0.35s var(--ease); }
.lb-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(10, 10, 11, 0.6);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.lb-btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.lb-btn svg { width: 18px; height: 18px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lb-prev { left: max(12px, calc(var(--gutter) - 32px)); }
.lb-next { right: max(12px, calc(var(--gutter) - 32px)); }
@media (hover: none) and (pointer: coarse) { .lb-prev, .lb-next { display: none; } }
.lb-count { font-variant-numeric: tabular-nums; }

/* ---------- 404 ---------- */

.notfound { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding-top: var(--header-h); }

/* ---------- Reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
