/* ==========================================================================
   DARK PARK MEDIA — base styles
   Palette: near-black / fog grey / sodium-vapor amber
   Type: Big Shoulders (condensed grotesk display) + Newsreader (literary serif)
   ========================================================================== */

:root {
  --black: #0a0b0d;
  --ink: #121417;
  --panel: #17191d;
  --fog-dark: #33373c;
  --fog: #8d9298;
  --fog-light: #c8ccd0;
  --paper: #ecedee;
  --amber: #e8973a;
  --amber-bright: #ffb35c;
  --amber-dim: rgba(232, 151, 58, 0.14);
  --display: "Big Shoulders", "Arial Narrow", sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--black);
  color: var(--fog-light);
  font-family: var(--serif);
  font-size: 1.075rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--amber); color: var(--black); }

h1, h2, h3, h4, .display {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
  color: var(--paper);
}

a { color: inherit; text-decoration: none; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
  border-radius: 2px;
}

img, video { max-width: 100%; display: block; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }

.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  color: var(--amber);
}

.section { padding: clamp(5rem, 12vh, 9rem) 0; position: relative; }

.section-title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  margin: 0.75rem 0 1.5rem;
}

.lede {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--fog);
  max-width: 46ch;
}

/* --------------------------------------------------------------------------
   Custom aperture cursor
   -------------------------------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }

  .cursor-ring, .cursor-trail {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    will-change: transform, width, height;
  }
  .cursor-ring {
    width: 34px; height: 34px;
    border: 1.5px solid var(--amber);
    transition: width 0.22s ease, height 0.22s ease, opacity 0.2s ease;
  }
  .cursor-ring::after {
    content: "";
    position: absolute;
    inset: 50%;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--amber);
    transform: translate(-50%, -50%);
  }
  .cursor-ring.is-tight { width: 18px; height: 18px; }
  .cursor-trail {
    width: 52px; height: 52px;
    border: 1px solid rgba(232, 151, 58, 0.28);
    transition: width 0.3s ease, height 0.3s ease;
  }
  .cursor-trail.is-tight { width: 30px; height: 30px; }
}
.cursor-ring, .cursor-trail { display: none; }
body.has-cursor .cursor-ring, body.has-cursor .cursor-trail { display: block; }

@media (prefers-reduced-motion: reduce) {
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: auto; }
  body.has-cursor .cursor-ring, body.has-cursor .cursor-trail { display: none; }
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(10, 11, 13, 0.92), rgba(10, 11, 13, 0.72));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(141, 146, 152, 0.12);
}
.nav-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: var(--paper);
}
.nav-logo .logo-accent,
.hero-title .logo-accent { color: var(--amber); }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  list-style: none;
}
.nav-links a {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  color: var(--fog);
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--paper);
  border-bottom-color: var(--amber);
}
.nav-cta {
  border: 1px solid var(--amber) !important;
  border-radius: 999px;
  padding: 0.55rem 1.3rem !important;
  color: var(--amber) !important;
  transition: background 0.2s ease, color 0.2s ease !important;
}
.nav-cta:hover, .nav-cta:focus-visible {
  background: var(--amber);
  color: var(--black) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(141, 146, 152, 0.3);
  border-radius: 6px;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--paper);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 11, 13, 0.98);
    border-bottom: 1px solid rgba(141, 146, 152, 0.15);
    padding: 0.5rem 0 1.25rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-links li { text-align: center; }
  .nav-links a { display: block; padding: 0.9rem 1.5rem; font-size: 1rem; border-bottom: none; }
  .nav-links a[aria-current="page"] { color: var(--amber); }
  .nav-cta { margin: 0.75rem auto 0; display: inline-block !important; width: fit-content; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

.skip-link {
  position: absolute;
  top: -100px; left: 1rem;
  z-index: 200;
  background: var(--amber);
  color: var(--black);
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 6px 6px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* --------------------------------------------------------------------------
   Hero — scroll-scrubbed video
   -------------------------------------------------------------------------- */
.hero-scrub { height: 380vh; position: relative; }
.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-media {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 80%, #1c1a15 0%, var(--black) 65%);
}
.hero-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.9;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,11,13,0.35) 0%, rgba(10,11,13,0.1) 40%, rgba(10,11,13,0.75) 100%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1rem;
  width: 100%;
}
.hero-title {
  font-size: clamp(3.2rem, 12.5vw, 15rem);
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 0.88;
  color: var(--paper);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.55);
}
.hero-tag {
  margin-top: clamp(1.25rem, 3vh, 2.5rem);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.8rem);
  color: var(--fog-light);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.hero-tag.is-visible { opacity: 1; transform: translateY(0); }
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  color: var(--fog);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  transition: opacity 0.4s ease;
}
.hero-scroll-hint::after {
  content: "";
  width: 1px; height: 34px;
  background: linear-gradient(to bottom, var(--amber), transparent);
}
.hero-scroll-hint.is-hidden { opacity: 0; }

/* Reduced motion / no-scrub: hero collapses to one viewport */
body.reduced-motion .hero-scrub { height: 100vh; height: 100svh; }

/* --------------------------------------------------------------------------
   Manifesto — CAPTURE. CREATE. DELIVER. (single static beat, no scroll-jack)
   -------------------------------------------------------------------------- */
.manifesto-beat {
  position: relative;
  min-height: 45vh;
  background: var(--black);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}
.manifesto-beat-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 135%;
  height: 100%;
  z-index: 0;
  will-change: transform;
}
.manifesto-beat-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.manifesto-beat-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
}
.manifesto-beat-line {
  position: relative;
  z-index: 1;
  font-size: clamp(1.8rem, 5.5vw, 4.2rem);
  font-weight: 800;
  color: var(--paper);
  line-height: 1.2;
  max-width: 24ch;
}
.manifesto-beat-line .dot { color: var(--amber); }
.beat-word {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  will-change: opacity, filter;
}
body.reduced-motion .beat-word { opacity: 1; filter: none; }

/* --------------------------------------------------------------------------
   Division gateway cards
   -------------------------------------------------------------------------- */
.gateway { background: var(--ink); position: relative; overflow: hidden; }
.gateway-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.gateway-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  will-change: opacity, transform;
}
body.reduced-motion .gateway-media video { opacity: 0.22; transform: none; }
.gateway-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--ink) 0%, rgba(18,20,23,0.55) 45%, var(--ink) 100%);
}
.gateway .wrap { position: relative; z-index: 2; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr; } }

.division-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  padding: 2rem 1.75rem;
  background: rgba(23, 25, 29, 0.85);
  border: 1px solid rgba(141, 146, 152, 0.16);
  border-radius: 10px;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.division-card:hover, .division-card:focus-visible {
  border-color: var(--amber);
  background: rgba(23, 25, 29, 0.97);
  transform: translateY(-6px);
}
.division-card .card-num {
  font-family: var(--display);
  font-weight: 600;
  color: var(--fog-dark);
  font-size: 0.9rem;
  letter-spacing: 0.25em;
}
.division-card h3 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin: 1rem 0 0.75rem;
}
.division-card p {
  color: var(--fog);
  font-size: 1.02rem;
}
.card-go {
  margin-top: 2rem;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.card-go::after { content: "→"; transition: transform 0.25s ease; }
.division-card:hover .card-go::after,
.division-card:focus-visible .card-go::after { transform: translateX(6px); }

/* --------------------------------------------------------------------------
   Capabilities
   -------------------------------------------------------------------------- */
.capabilities { background: var(--black); }
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: 3rem;
}
@media (max-width: 900px) { .cap-grid { grid-template-columns: 1fr; } }
.cap-col h3 {
  font-size: 1.5rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--fog-dark);
  margin-bottom: 1.1rem;
}
.cap-col ul { list-style: none; }
.cap-col li {
  padding: 0.55rem 0;
  color: var(--fog);
  border-bottom: 1px solid rgba(141, 146, 152, 0.08);
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.cap-col li:hover { color: var(--paper); padding-left: 0.5rem; }
.cap-col a.cap-more {
  display: inline-block;
  margin-top: 1.1rem;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--amber);
  border-bottom: 1px solid transparent;
}
.cap-col a.cap-more:hover, .cap-col a.cap-more:focus-visible { border-bottom-color: var(--amber); }

/* --------------------------------------------------------------------------
   Together / project path
   -------------------------------------------------------------------------- */
.together { background: var(--ink); }
.path {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 1rem;
  margin-top: 3.5rem;
}
@media (max-width: 900px) {
  .path { grid-template-columns: 1fr; }
  .path-arrow { transform: rotate(90deg); margin: -0.25rem auto; }
}
.path-node {
  background: var(--panel);
  border: 1px solid rgba(141, 146, 152, 0.16);
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
}
.path-node h4 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.path-node .who {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--amber);
  display: block;
  margin-bottom: 0.9rem;
}
.path-node p { font-size: 0.98rem; color: var(--fog); }
.path-arrow {
  align-self: center;
  color: var(--amber);
  font-size: 1.5rem;
  font-family: var(--display);
}
.path-note {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  border-left: 3px solid var(--amber);
  background: var(--amber-dim);
  border-radius: 0 8px 8px 0;
  max-width: 70ch;
  color: var(--fog-light);
}

/* --------------------------------------------------------------------------
   People — over third clip
   -------------------------------------------------------------------------- */
.people {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.people-media { position: absolute; inset: 0; background: var(--ink); overflow: hidden; }
.people-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  will-change: opacity, transform;
}
body.reduced-motion .people-media video { opacity: 0.5; transform: none; }
.people-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10,11,13,0.92) 25%, rgba(10,11,13,0.55) 60%, rgba(10,11,13,0.35) 100%);
}
.people .wrap { position: relative; z-index: 2; padding-top: 6rem; padding-bottom: 6rem; }
.people-copy { max-width: 58ch; }
.people-copy p { margin-bottom: 1.25rem; color: var(--fog-light); }
.people-copy p strong { color: var(--paper); font-weight: 600; }

/* --------------------------------------------------------------------------
   Footer CTA + footer
   -------------------------------------------------------------------------- */
.cta {
  background: var(--black);
  text-align: center;
  padding: clamp(6rem, 16vh, 11rem) 0 clamp(4rem, 8vh, 6rem);
}
.cta-title {
  font-size: clamp(3rem, 10vw, 9.5rem);
  font-weight: 800;
}
.cta-title em {
  font-style: normal;
  color: var(--amber);
}
.cta .lede {
  margin-left: auto;
  margin-right: auto;
}
.cta-actions {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.92rem;
  padding: 1rem 2.2rem;
  border-radius: 999px;
  border: 1px solid var(--fog-dark);
  color: var(--fog-light);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn:hover, .btn:focus-visible { border-color: var(--amber); color: var(--paper); transform: translateY(-2px); }
.btn-primary {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--black);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--amber-bright);
  border-color: var(--amber-bright);
  color: var(--black);
}

.footer {
  background: var(--black);
  border-top: 1px solid rgba(141, 146, 152, 0.12);
  padding: 3.5rem 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 {
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  color: var(--fog);
  margin-bottom: 1rem;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.55rem; }
.footer a { color: var(--fog); transition: color 0.2s ease; font-size: 0.98rem; }
.footer a:hover, .footer a:focus-visible { color: var(--amber); }
.footer-brand .nav-logo { font-size: 1.5rem; }
.footer-brand p { color: var(--fog); margin-top: 0.9rem; max-width: 32ch; font-size: 0.98rem; }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(141, 146, 152, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--fog-dark);
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Division pages
   -------------------------------------------------------------------------- */
.subhero {
  padding: calc(var(--nav-h) + clamp(4rem, 10vh, 8rem)) 0 clamp(3rem, 8vh, 6rem);
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(232, 151, 58, 0.07), transparent 70%),
    var(--black);
}
.subhero h1 { font-size: clamp(2.8rem, 8vw, 7rem); margin: 1rem 0; }
.subhero .lede { font-size: clamp(1.15rem, 2.2vw, 1.5rem); max-width: 52ch; }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }
.svc {
  background: var(--panel);
  border: 1px solid rgba(141, 146, 152, 0.14);
  border-radius: 10px;
  padding: 1.6rem 1.5rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.svc:hover { border-color: rgba(232, 151, 58, 0.55); transform: translateY(-4px); }
.svc h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.svc p { color: var(--fog); font-size: 0.98rem; }

/* --------------------------------------------------------------------------
   Expandable service tiles (Four One Five Visuals): tap to grow 175% from
   the top-left corner, siblings slide clear to preserve their gaps, and a
   placeholder-reel carousel fades in. Transform/opacity are fully JS-driven
   (see js/svc-expand.js) so the scale, sibling push, and carousel speed can
   stay locked to one shared progress value.
   -------------------------------------------------------------------------- */
.svc-grid--expand {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: visible;
}
@media (max-width: 900px) { .svc-grid--expand { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 600px) { .svc-grid--expand { grid-template-columns: minmax(0, 1fr); } }

.svc--expandable {
  position: relative;
  z-index: 1;
  min-width: 0;
  transform-origin: top left;
  cursor: pointer;
}
.svc--expandable:hover { transform: none; }
.svc--expandable.svc-is-expanded {
  z-index: 10;
  border-color: rgba(232, 151, 58, 0.55);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.svc-carousel {
  /* Taken out of flow so its animated height never resizes the tile's own
     box — that would nudge the CSS Grid row height and shift the row below
     it, which is exactly the sibling movement this component should avoid.
     It hangs below the tile's natural (unscaled) bottom edge instead,
     scaling and moving together with the tile via its transform. */
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  top: 100%;
  margin-top: 1rem;
  overflow: hidden;
  height: 0;
  opacity: 0;
  border-radius: 8px;
}
.svc-carousel-track {
  display: flex;
  gap: 10px;
  height: 100%;
  width: 0;
  min-width: 100%;
  cursor: grab;
  touch-action: pan-y;
}
.svc-carousel-track:active { cursor: grabbing; }
.svc-card {
  flex: 0 0 auto;
  height: 100%;
  border: 1px dashed var(--fog-dark);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  padding: 0.4rem;
  background: repeating-linear-gradient(-45deg, rgba(141,146,152,0.03) 0 12px, transparent 12px 24px);
  user-select: none;
  -webkit-user-select: none;
}
.svc-card.ratio-16-9 { aspect-ratio: 16 / 9; }
.svc-card.ratio-9-16 { aspect-ratio: 9 / 16; }
.svc-card .ph-label {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.6rem;
  color: var(--fog);
}
.svc-card .ph-sub { font-size: 0.68rem; color: var(--fog-dark); font-style: italic; }

.svc-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(232, 151, 58, 0.5);
  background: rgba(10, 11, 13, 0.75);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.svc-carousel-arrow:hover { background: rgba(232, 151, 58, 0.2); border-color: var(--amber); }
.svc-carousel-arrow.prev { left: 6px; }
.svc-carousel-arrow.next { right: 6px; }

body.reduced-motion .svc--expandable { transition: none; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
@media (max-width: 600px) { .portfolio-grid { grid-template-columns: 1fr; } }
/* Portfolio tiles: clickable video thumbnails */
.portfolio-tile {
  aspect-ratio: 16 / 10;
  border: none;
  border-radius: 10px;
  background-color: var(--panel);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  padding: 0;
  transition: transform 0.3s ease;
  will-change: transform;
}
.portfolio-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,11,13,0.75) 0%, rgba(10,11,13,0.1) 25%, rgba(10,11,13,0.1) 60%, rgba(10,11,13,0.75) 100%);
  transition: background 0.3s ease;
}
.portfolio-tile:hover { transform: scale(1.02); }
.portfolio-tile:hover::after { background: linear-gradient(to bottom, rgba(10,11,13,0.85) 0%, rgba(10,11,13,0.25) 30%, rgba(10,11,13,0.25) 55%, rgba(10,11,13,0.85) 100%); }
.portfolio-tile:active { transform: scale(0.99); }

.tile-play-icon {
  position: absolute;
  right: 1.1rem;
  bottom: 0.9rem;
  z-index: 1;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(18, 20, 23, 0.55);
  border: 1.5px solid rgba(236, 237, 238, 0.85);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.tile-play-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--paper);
  margin-left: 2px;
  transition: fill 0.3s ease;
}
.portfolio-tile:hover .tile-play-icon {
  transform: scale(1.1);
  background: var(--amber);
  border-color: var(--amber);
}
.portfolio-tile:hover .tile-play-icon svg { fill: var(--black); }

.tile-label {
  position: absolute;
  z-index: 1;
  right: 1.1rem;
  left: 1.1rem;
  top: 0.9rem;
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.92rem;
  color: var(--paper);
  text-align: left;
}

/* Portfolio modal: expanded fullscreen video player */
.portfolio-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.portfolio-modal.open {
  display: flex;
  pointer-events: auto;
}
.portfolio-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 13, 0.95);
  backdrop-filter: blur(2px);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.portfolio-modal.open .portfolio-modal-backdrop { opacity: 1; }

.portfolio-modal-container {
  position: relative;
  z-index: 1;
  width: 90vw;
  max-width: 1200px;
  aspect-ratio: 16 / 10;
  background: var(--black);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  transform-origin: center;
  transform: scale(0.8);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
}
.portfolio-modal.open .portfolio-modal-container {
  transform: scale(1);
  opacity: 1;
}

.portfolio-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid var(--fog-dark);
  border-radius: 50%;
  background: rgba(18, 20, 23, 0.8);
  color: var(--paper);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}
.portfolio-modal-close:hover {
  background: var(--fog-dark);
  border-color: var(--paper);
  transform: scale(1.1);
}
.portfolio-modal-close:active { transform: scale(0.95); }

.portfolio-modal-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--black);
}

.process-list { margin-top: 3rem; display: grid; gap: 1rem; counter-reset: step; }
.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  background: var(--panel);
  border: 1px solid rgba(141, 146, 152, 0.14);
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
}
.process-step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--amber);
  line-height: 1;
}
.process-step h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.process-step p { color: var(--fog); font-size: 0.98rem; }

.division-contact {
  background: var(--ink);
  text-align: center;
}
.division-contact .section-title { font-size: clamp(2.2rem, 6vw, 4rem); }


/* --------------------------------------------------------------------------
   Reveal-on-scroll (disabled under reduced motion)
   -------------------------------------------------------------------------- */
/* Hidden state only applies when JS is running (html.js set inline in <head>),
   so content stays readable with scripts disabled or broken. */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.js .reveal.is-in { opacity: 1; transform: none; }
html.js body.reduced-motion .reveal { opacity: 1; transform: none; transition: none; }
