/* ============================================================
   Everything Beautiful Films — design tokens
   Palette: warm darkroom black + mustard accent
   Type: Helvetica Neue (display + body) / IBM Plex Mono (utility)
   ============================================================ */

:root {
  --black: #0d0c0a;
  --charcoal: #17150f;
  --charcoal-2: #201c14;
  --paper: #ede6d6;
  --paper-dim: #a69c89;
  --paper-faint: #6f6858;
  --accent: #c9a227;
  --accent-bright: #e0b93a;
  --rule: rgba(237, 230, 214, 0.14);
  --rule-strong: rgba(237, 230, 214, 0.28);

  --font-display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --measure: 40rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; max-width: 100%; }
html { overflow-x: hidden; }
img, svg, iframe { display: block; max-width: 100%; }
/* Without this, max-width squeezes the width while the HTML height attribute
   holds, which stretches the image. Class rules that need a fixed height
   (.reel-poster, .showreel-poster, .logo-mark) still win on specificity. */
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

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

body {
  background: var(--black);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- shared bits ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--gutter);
  background: rgba(13, 12, 10, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.logo-mark {
  display: block;
  height: 20px;
  width: auto;
  filter: brightness(0) invert(1);
}

@media (max-width: 640px) {
  .logo-mark { height: 13px; }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav a { color: var(--paper-dim); transition: color 0.25s var(--ease); }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--paper); }

.nav-cta {
  color: var(--black) !important;
  background: var(--accent);
  padding: 0.5rem 0.9rem;
  border-radius: 2px;
  white-space: nowrap;
}
.nav-cta:hover, .nav-cta:focus-visible { background: var(--accent-bright); color: var(--black) !important; }

@media (max-width: 960px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: clamp(2.5rem, 8vh, 5.5rem) var(--gutter) 2.5rem;
  max-width: 74rem;
  margin: 0 auto;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 2rem + 4vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0.9rem 0 1.1rem;
  max-width: 20ch;
}
.hero-headline em {
  font-style: normal;
  color: var(--accent-bright);
}

.hero-sub {
  color: var(--paper-dim);
  font-size: clamp(1rem, 0.92rem + 0.4vw, 1.25rem);
  max-width: var(--measure);
  margin-bottom: 1.75rem;
}

.hero-claim {
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem);
  max-width: var(--measure);
  margin-bottom: 1.75rem;
}
.hero-claim strong {
  font-weight: 500;
  color: var(--accent-bright);
}

.hero-creds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}
.cred-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-dim);
  border: 1px solid var(--rule-strong);
  padding: 0.4rem 0.75rem;
  border-radius: 2px;
}

.hero-frame {
  background: var(--black);
  border: 1px solid var(--rule);
  aspect-ratio: 2.2 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--charcoal);
  position: relative;
}
.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 720px) {
  .hero-frame { aspect-ratio: 16 / 9; }
}

.hero-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2.25rem;
  text-align: center;
  padding: 0 var(--gutter);
}

.caption-plate {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(1.5rem, 1.1rem + 2.2vw, 2.6rem);
  line-height: 1.25;
  color: var(--paper);
  max-width: 24ch;
}

.caption-hint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-faint);
}

/* ============================================================
   Work / Reel Index
   ============================================================ */
.work {
  padding: clamp(3rem, 8vh, 6rem) var(--gutter);
  max-width: 74rem;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--paper-faint);
  letter-spacing: 0.08em;
}

.reel-group-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin: 3rem 0 0;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--rule);
}
.reel-group-label:first-child { margin-top: 0; }

/* ---------- poster grid ---------- */
.reel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  column-gap: clamp(1rem, 2.2vw, 1.75rem);
  /* rows carry a caption between the frames, so they need more air than
     columns do - and more than the narrow-screen column-gap would give */
  row-gap: 1.75rem;
  margin: 1.5rem 0 0;
}

/* Once the grid stacks, every caption sits between two frames. Open the
   vertical rhythm further so a caption reads with the frame above it. */
@media (max-width: 700px) {
  .reel-grid { row-gap: 2.75rem; }
}

.reel-tile {
  width: 100%;
  display: block;
  cursor: pointer;
  text-align: left;
}

/* the 16:9 preview window */
.reel-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--charcoal);
  border: 1px solid var(--rule);
  transition: border-color 0.35s var(--ease), transform 0.45s var(--ease);
}

.reel-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.02);
  transition: filter 0.5s var(--ease), transform 0.7s var(--ease), opacity 0.4s var(--ease);
}

/* muted preview player mounts here */
.reel-stage {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
  /* the preview is cropped to fill the window, hiding player chrome */
  overflow: hidden;
}
.reel-stage iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  /* overscan so YouTube's edge chrome falls outside the frame */
  min-width: 118%;
  min-height: 118%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}
.reel-tile.is-playing .reel-stage { opacity: 1; }
.reel-tile.is-playing .reel-poster { opacity: 0; }

.reel-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(13, 12, 10, 0.72) 0%, rgba(13, 12, 10, 0) 52%),
    rgba(13, 12, 10, 0.18);
  transition: background 0.4s var(--ease), opacity 0.4s var(--ease);
}

.reel-num {
  position: absolute;
  top: 0.85rem;
  left: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--paper);
  opacity: 0.75;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  transition: opacity 0.35s var(--ease), color 0.35s var(--ease);
}

.reel-play {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  background: rgba(13, 12, 10, 0.42);
  backdrop-filter: blur(2px);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease),
              transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.reel-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent var(--paper);
  transform: translate(-40%, -50%);
  transition: border-left-color 0.3s var(--ease);
}

.reel-note {
  position: absolute;
  left: 0.95rem;
  right: 3.6rem;
  bottom: 1rem;
  font-family: var(--font-body);
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--paper);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(0.45rem);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

/* ---------- hover / focus state ---------- */
.reel-tile:hover .reel-frame,
.reel-tile:focus-visible .reel-frame {
  border-color: var(--rule-strong);
}
.reel-tile:focus-visible .reel-frame {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}
.reel-tile:hover .reel-poster,
.reel-tile:focus-visible .reel-poster {
  filter: saturate(1) contrast(1.04);
  transform: scale(1.03);
}
.reel-tile:hover .reel-veil,
.reel-tile:focus-visible .reel-veil {
  background:
    linear-gradient(to top, rgba(13, 12, 10, 0.8) 0%, rgba(13, 12, 10, 0) 58%),
    rgba(13, 12, 10, 0.04);
}
.reel-tile:hover .reel-note,
.reel-tile:focus-visible .reel-note {
  opacity: 1;
  transform: translateY(0);
}
.reel-tile:hover .reel-play,
.reel-tile:focus-visible .reel-play {
  border-color: var(--accent-bright);
  background: var(--accent);
  transform: scale(1.06);
}
.reel-tile:hover .reel-play::before,
.reel-tile:focus-visible .reel-play::before {
  border-left-color: var(--black);
}
.reel-tile:hover .reel-num,
.reel-tile:focus-visible .reel-num { opacity: 1; color: var(--accent-bright); }

/* while the muted preview is rolling, get out of its way */
.reel-tile.is-playing .reel-num { opacity: 0.55; }

/* ---------- caption under the window ---------- */
.reel-caption {
  display: block;
  padding: 0.8rem 0.15rem 0;
}

.reel-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.25rem);
  line-height: 1.25;
  color: var(--paper);
  transition: color 0.25s var(--ease);
}
.reel-tile:hover .reel-title,
.reel-tile:focus-visible .reel-title { color: var(--accent-bright); }

.reel-role {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--paper-faint);
}

/* touch / no-hover devices never get a preview, so keep the note visible */
@media (hover: none) {
  .reel-note { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reel-poster, .reel-frame, .reel-play { transition: none; }
  .reel-tile:hover .reel-poster,
  .reel-tile:focus-visible .reel-poster { transform: none; }
}

/* ============================================================
   Video lightbox
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
}
.lightbox[hidden] { display: none; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 6, 0.92);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.lightbox.is-open .lightbox-backdrop { opacity: 1; }

.lightbox-panel {
  position: relative;
  /* the last term keeps the 16:9 stage from overflowing short viewports */
  width: min(100%, 68rem, max(22rem, (100vh - 9rem) * 16 / 9));
  opacity: 0;
  transform: translateY(0.75rem) scale(0.985);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.lightbox.is-open .lightbox-panel { opacity: 1; transform: none; }

.lightbox-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.lightbox-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.lightbox-close {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-dim);
  cursor: pointer;
  padding: 0.3rem 0.1rem;
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.lightbox-close:hover,
.lightbox-close:focus-visible { color: var(--paper); border-bottom-color: var(--accent-bright); }

.lightbox-stage {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--charcoal);
  border: 1px solid var(--rule);
}
.lightbox-stage iframe { width: 100%; height: 100%; border: 0; }

body.is-locked { overflow: hidden; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Services
   ============================================================ */
.services-section {
  padding: clamp(3rem, 8vh, 6rem) var(--gutter);
  max-width: 74rem;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 1.5rem;
}

.service-card {
  background: var(--black);
  padding: 1.75rem 1.5rem;
  transition: background 0.3s var(--ease);
}
.service-card:hover { background: var(--charcoal); }

.service-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--accent-bright);
  margin-bottom: 0.85rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--paper-dim);
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Kalpnik Studios Teaser
   ============================================================ */
.kalpnik-teaser {
  padding: clamp(3rem, 8vh, 6rem) var(--gutter);
  max-width: 74rem;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
}
.kalpnik-teaser-inner {
  border: 1px solid var(--rule-strong);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  max-width: 42rem;
  margin: 0 auto;
}
.kalpnik-teaser-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 1.5rem + 1.5vw, 2.5rem);
  margin: 0.75rem 0 1rem;
}
.kalpnik-teaser-copy {
  color: var(--paper-dim);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 38ch;
  margin: 0 auto 1.75rem;
}
.kalpnik-teaser-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--accent);
  padding: 0.65rem 1.25rem;
  border-radius: 2px;
  transition: background 0.25s var(--ease);
}
.kalpnik-teaser-link:hover, .kalpnik-teaser-link:focus-visible { background: var(--accent-bright); }

/* ============================================================
   Studio / How We Work
   ============================================================ */
.studio {
  padding: clamp(3rem, 8vh, 6rem) var(--gutter);
  max-width: 74rem;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
}

.lede {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem);
  line-height: 1.35;
  color: var(--paper);
  margin-top: 1rem;
  max-width: 42ch;
}

.stat-list {
  margin-top: 2.5rem;
  border-top: 1px solid var(--rule);
}
.stat-list li {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
}
.stat-list strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--accent-bright);
  margin-bottom: 0.4rem;
}
.stat-list span {
  display: block;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--paper-dim);
  max-width: 46ch;
}

/* ============================================================
   In Production
   ============================================================ */
.production {
  padding: 1.75rem var(--gutter);
  max-width: 74rem;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
}

.production-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-top: 0.6rem;
}

.production-title {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--paper);
}

.production-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-faint);
}

/* ============================================================
   Contact
   ============================================================ */
.contact {
  padding: clamp(4rem, 12vh, 8rem) var(--gutter);
  max-width: 74rem;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
  text-align: center;
}

.contact h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 1.6rem + 3vw, 3.75rem);
  letter-spacing: -0.01em;
  margin: 0.75rem 0 2rem;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
  color: var(--accent-bright);
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.2rem;
  transition: color 0.25s var(--ease);
}
.contact-email:hover, .contact-email:focus-visible { color: var(--paper); }

.whatsapp-btn {
  display: inline-block;
  margin: 1.5rem auto 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--accent);
  padding: 0.65rem 1.25rem;
  border-radius: 2px;
  transition: background 0.25s var(--ease);
}
.whatsapp-btn:hover, .whatsapp-btn:focus-visible { background: var(--accent-bright); }

.socials {
  margin-top: 1.75rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
.socials a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-dim);
  transition: color 0.25s var(--ease);
}
.socials a:hover, .socials a:focus-visible { color: var(--accent-bright); }

.location {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-faint);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  padding: 3rem var(--gutter) 2.5rem;
  max-width: 74rem;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
}

.footer-logo {
  display: block;
  width: 100%;
  max-width: 30rem;
  height: auto;
  margin: 0 auto 1.25rem;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.footer-note {
  text-align: center;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 0.95rem;
  color: var(--paper-faint);
  margin: 0 0 2rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--paper-faint);
}
.footer-bottom a { transition: color 0.25s var(--ease); }
.footer-bottom a:hover, .footer-bottom a:focus-visible { color: var(--paper); }

@media (max-width: 560px) {
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ============================================================
   Kalpnik Studios page
   ============================================================ */
.brand-block {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.parent-link {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-faint);
  transition: color 0.25s var(--ease);
}
.parent-link:hover, .parent-link:focus-visible { color: var(--paper-dim); }

.kalpnik-logo {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--paper);
}

@media (max-width: 560px) {
  .parent-link { display: none; }
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 2.5rem;
}
@media (max-width: 640px) {
  .capability-grid { grid-template-columns: 1fr; }
}

.process-list {
  margin-top: 2.5rem;
  border-top: 1px solid var(--rule);
}
.process-list li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.5rem 0.25rem;
  border-bottom: 1px solid var(--rule);
}
.process-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-bright);
}
.process-list strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}
.process-list span {
  display: block;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--paper-dim);
  max-width: 46ch;
}
@media (max-width: 560px) {
  .process-list li { grid-template-columns: 2.25rem 1fr; }
}

.relation {
  padding: clamp(3rem, 8vh, 6rem) var(--gutter);
  max-width: 74rem;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
}
.relation-copy {
  margin-top: 1.25rem;
  color: var(--paper-dim);
  font-size: 1rem;
  line-height: 1.6;
  max-width: var(--measure);
}

/* ============================================================
   Kalpnik — From the Feed (Instagram embed)
   ============================================================ */
.feed {
  padding: clamp(3rem, 8vh, 6rem) var(--gutter);
  max-width: 74rem;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
}

.feed-handle {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--paper-faint);
  transition: color 0.25s var(--ease);
}
.feed-handle:hover,
.feed-handle:focus-visible { color: var(--accent-bright); }

.feed-layout {
  display: grid;
  grid-template-columns: minmax(0, 34rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  margin-top: 1.75rem;
}

/* the reel plays as a plain 16:9 window - no platform chrome, no card */
.feed-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--charcoal);
  border: 1px solid var(--rule);
  min-width: 0;
}

.feed-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* sound toggle */
.feed-sound {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(13, 12, 10, 0.6);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.feed-sound:hover,
.feed-sound:focus-visible {
  border-color: var(--accent-bright);
  background: rgba(13, 12, 10, 0.85);
  color: var(--accent-bright);
}
.feed-sound[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent-bright);
}

.feed-copy { padding-top: 0.25rem; }

.feed-note {
  margin-top: 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--paper-dim);
  max-width: 34ch;
}

.feed-cta {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--rule-strong);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.feed-cta:hover,
.feed-cta:focus-visible { color: var(--accent-bright); border-bottom-color: var(--accent-bright); }

@media (max-width: 800px) {
  .feed-layout { grid-template-columns: 1fr; }
}

/* ============================================================
   Showreel poster (click to load the Vimeo player)
   ============================================================ */
.showreel-play {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  overflow: hidden;
  background: var(--charcoal);
}

.showreel-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease), opacity 0.4s var(--ease);
}
.showreel-play:hover .showreel-poster,
.showreel-play:focus-visible .showreel-poster {
  transform: scale(1.02);
  filter: brightness(1.06);
}

/* the muted hover preview mounts here, on top of the poster */
.showreel-stage {
  position: absolute;
  inset: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}
.showreel-stage iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  /* overscan so the player's own edge chrome falls outside the frame */
  min-width: 118%;
  min-height: 118%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}
.showreel-play.is-playing .showreel-stage { opacity: 1; }
.showreel-play.is-playing .showreel-poster { opacity: 0; }

.showreel-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4.5rem;
  height: 4.5rem;
  transform: translate(-50%, -50%);
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  background: rgba(13, 12, 10, 0.45);
  backdrop-filter: blur(2px);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.showreel-badge::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--paper);
  transform: translate(-38%, -50%);
  transition: border-left-color 0.3s var(--ease);
}
.showreel-play:hover .showreel-badge,
.showreel-play:focus-visible .showreel-badge {
  background: var(--accent);
  border-color: var(--accent-bright);
  transform: translate(-50%, -50%) scale(1.06);
}
.showreel-play:hover .showreel-badge::before,
.showreel-play:focus-visible .showreel-badge::before { border-left-color: var(--black); }

@media (prefers-reduced-motion: reduce) {
  .showreel-poster, .showreel-badge { transition: none; }
  .showreel-play:hover .showreel-poster { transform: none; }
}
