/* ==========================================================================
   Wael Fahed — Media Production Portfolio
   Design system faithful to the source PDF: deep ink-navy gradients,
   lavender-silver accents, chrome type moments, HUD-framed media cards.
   ========================================================================== */

/* ---- fonts (self-hosted) ---- */
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/poppins-400.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/poppins-400i.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../assets/fonts/poppins-500.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../assets/fonts/poppins-600.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../assets/fonts/poppins-700.woff2") format("woff2");
}
@font-face {
  font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/anton-400.woff2") format("woff2");
}

/* ---- tokens ---- */
:root {
  --bg-0: #05070d;            /* near-black sections */
  --bg-1: #0b0e1a;            /* base page */
  --bg-2: #161b2e;            /* steel navy */
  --bg-3: #232946;            /* lifted steel (gradient tops) */
  --text: #e9ebf4;
  --text-muted: #aab2cc;
  --accent: #aab3d6;          /* PDF lavender-silver */
  --accent-bright: #cdd5f2;
  --hairline: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-strong: rgba(255, 255, 255, 0.09);
  --chrome: linear-gradient(180deg, #ffffff 15%, #c8cfe6 48%, #8a93b8 55%, #e8ecfa 90%);
  --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font-body: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --container: 1160px;
  --nav-h: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- base ---- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg-1);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  animation: page-in 0.9s var(--ease-out) both;
}

@keyframes page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

img, video { max-width: 100%; display: block; }

h1, h2, h3, p { margin: 0; }

a { color: inherit; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: #39406b; color: #fff; }

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 200;
  background: var(--bg-3);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  transition: top 0.2s;
}
.skip-link:focus { top: 0.75rem; }

/* ---- typography ---- */
.section-title {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--accent-bright);
}
.section-title .accent { color: var(--accent); }
.section-title--center { text-align: center; }

.display-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}
.display-title--center { text-align: center; }

.section-intro {
  max-width: 62ch;
  margin-top: 1.1rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}
.section-intro--center { margin-inline: auto; text-align: center; }

/* ---- scroll progress ---- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 150;
  background: transparent;
}
.progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #8f9ac4, var(--accent-bright));
  transform-origin: left;
  transform: scaleX(0);
}

/* ---- header / nav ---- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}
.site-header.is-scrolled {
  background: rgba(8, 10, 20, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--hairline);
}

.site-nav {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 1.02rem;
  text-decoration: none;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 1.8vw, 1.4rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.4rem 0.55rem;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.1rem;
  height: 1.5px;
  background: var(--accent-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-link:hover, .nav-link.is-active { color: #fff; }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }

.nav-link--cta {
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  color: var(--accent-bright);
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.nav-link--cta::after { display: none; }
.nav-link--cta:hover {
  background: var(--glass-strong);
  border-color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- hero ---- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 90% at 50% 0%, #2b3150 0%, #171b2c 45%, var(--bg-0) 100%);
  padding-top: var(--nav-h);
  min-height: 60svh;
}

.hero-art {
  position: relative;
  z-index: 1;
  width: min(1250px, 100%);
  overflow: hidden;
  animation: hero-in 1.4s var(--ease-out) both;
}
.hero-art img {
  width: 100%;
  height: auto;
  /* melt the crop's edges into the section background */
  -webkit-mask-image: radial-gradient(140% 120% at 50% 38%, #000 55%, transparent 98%);
  mask-image: radial-gradient(140% 120% at 50% 38%, #000 55%, transparent 98%);
}

/* PDF text layers rebuilt as real text over the art */
.hero-eyebrow {
  position: absolute;
  top: 18.5%;
  left: 9%;
  font-style: italic;
  font-size: clamp(0.85rem, 2vw, 1.55rem);
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: #e6e9f5;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.hero-sub {
  position: absolute;
  top: 78%;
  left: 0;
  width: 100%;
  text-align: center;
  font-style: italic;
  font-size: clamp(0.9rem, 2.4vw, 1.75rem);
  letter-spacing: 0.03em;
  color: #f2f4fb;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(26px) scale(1.015); }
  to { opacity: 1; transform: none; }
}

.hero-glow {
  position: absolute;
  inset: auto 0 -30% 0;
  height: 60%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(120, 132, 190, 0.18), transparent 70%);
  pointer-events: none;
}

.scroll-cue {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 1.5px solid var(--hairline);
  border-radius: 999px;
  display: grid;
  justify-items: center;
  padding-top: 7px;
}
.scroll-cue span {
  width: 3px;
  height: 8px;
  border-radius: 3px;
  background: var(--accent-bright);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  55% { transform: translateY(12px); opacity: 0.2; }
}

/* ---- about: problem / solution ---- */
.about {
  background: var(--bg-0);
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: clamp(1.6rem, 4vw, 3.2rem);
  align-items: start;
}

.about-divider { background: var(--hairline); height: 100%; min-height: 180px; }

.statement-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.statement-icon {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--glass);
  color: var(--accent-bright);
}
.statement-icon svg { width: 24px; height: 24px; }

.statement h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.statement p {
  color: var(--text-muted);
  text-align: justify;
}

/* ---- process ---- */
.process {
  background:
    radial-gradient(90% 70% at 80% 110%, rgba(97, 108, 160, 0.22), transparent 60%),
    linear-gradient(180deg, #10131f 0%, var(--bg-2) 55%, #12152a 100%);
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.process-steps {
  list-style: none;
  margin: clamp(2.4rem, 6vw, 4rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
}

.step { position: relative; }

/* dotted connector between steps, like the PDF */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 27px;
  left: calc(50% + 44px);
  width: calc(100% - 60px);
  height: 2px;
  background-image: radial-gradient(circle, var(--accent) 1.2px, transparent 1.6px);
  background-size: 12px 2px;
  opacity: 0.55;
}

.step-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-inline: auto;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 24px rgba(0, 0, 0, 0.35);
  color: var(--accent-bright);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.step-icon svg { width: 26px; height: 26px; }
.step:hover .step-icon {
  transform: translateY(-4px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 16px 30px rgba(0, 0, 0, 0.45);
}

.step { text-align: center; }

.step h3 {
  margin-top: 1.1rem;
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}
.step h3 b { color: var(--accent); font-weight: 600; }

.step p {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ---- expertise ---- */
.expertise {
  background: linear-gradient(180deg, #12152a 0%, var(--bg-0) 70%);
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.roles {
  margin-top: clamp(2.4rem, 6vw, 4rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.role {
  padding: 0.4rem clamp(1.1rem, 2.4vw, 1.8rem) 0.8rem;
  border-left: 1px solid var(--hairline);
  transition: background 0.35s;
}
.role:first-child { border-left: 0; }
.role:hover { background: rgba(255, 255, 255, 0.025); }

.role-head { margin-bottom: 0.9rem; }

.role-number {
  display: block;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.role-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: 0.9rem;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
  color: var(--accent-bright);
}
.role-icon svg { width: 22px; height: 22px; }

.role h3 {
  margin-top: 0.8rem;
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--text);
}

.role p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ---- creative access ---- */
.access {
  background: var(--bg-0);
  padding-top: clamp(3rem, 7vw, 5rem);
}

.access-band {
  margin: clamp(1.8rem, 4vw, 3rem) 0 0;
}
.access-band img {
  width: 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 9%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 9%);
}

/* ---- projects ---- */
.projects {
  background:
    radial-gradient(70% 40% at 15% 0%, rgba(96, 107, 158, 0.16), transparent 60%),
    linear-gradient(180deg, #171b2c 0%, var(--bg-0) 30%);
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
}

.category { margin-top: clamp(3rem, 7vw, 5rem); }

.category-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
}

.card-grid {
  margin-top: clamp(1.6rem, 4vw, 2.6rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3.4vw, 2.6rem);
  justify-items: center;
}

.project-card {
  width: 100%;
  max-width: 330px;
}

.card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 12.4;
  overflow: hidden;
  border-radius: 16px;
  background: var(--bg-2);
  box-shadow: var(--shadow-card);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s;
}
.project-card:hover .card-media,
.card-media:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.6);
}

.card-media video,
.card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.project-card:hover .card-media video,
.project-card:hover .card-media img { transform: scale(1.05); }

/* HUD frame: hairline, corner tick, //// slashes — echoing the PDF cards */
.hud {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  pointer-events: none;
}
.hud::before {           /* top-right slash marks */
  content: "";
  position: absolute;
  top: 10px;
  right: 12px;
  width: 44px;
  height: 14px;
  background: repeating-linear-gradient(115deg, #fff 0 5px, transparent 5px 11px);
  opacity: 0.92;
}
.hud::after {            /* bottom-left corner tick */
  content: "";
  position: absolute;
  left: 10px;
  bottom: 10px;
  width: 10px;
  height: 10px;
  border-left: 2px solid rgba(255, 255, 255, 0.75);
  border-bottom: 2px solid rgba(255, 255, 255, 0.75);
}

.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: rgba(10, 12, 22, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.35s var(--ease-out), background 0.35s;
}
.play-badge::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 53%;
  transform: translate(-50%, -50%);
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}
.project-card:hover .play-badge {
  transform: translate(-50%, -50%) scale(1.12);
  background: rgba(10, 12, 22, 0.45);
}

.card-caption {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.3s;
}
.project-card:hover .card-caption { color: var(--accent-bright); }

/* ---- clients ---- */
.clients {
  background:
    radial-gradient(70% 50% at 85% 0%, rgba(96, 107, 158, 0.14), transparent 60%),
    var(--bg-0);
  padding: clamp(4rem, 9vw, 7rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.clients-marquee {
  margin-top: clamp(2rem, 4.5vw, 3rem);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.clients-marquee + .clients-marquee { margin-top: clamp(1rem, 2vw, 1.4rem); }

.clients-track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.clients-marquee--reverse .clients-track { animation-direction: reverse; }
.clients-marquee:hover .clients-track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.clients-set {
  display: flex;
  gap: clamp(0.9rem, 2vw, 1.4rem);
  padding: 0 clamp(0.45rem, 1vw, 0.7rem);
  margin: 0;
  list-style: none;
}

.client-tile {
  display: grid;
  grid-template: 100% / 100%; /* definite area so the img's 100% height resolves */
  place-items: center;
  width: clamp(150px, 16vw, 190px);
  height: clamp(76px, 9vw, 96px);
  padding: 0.6rem 1rem;
  transition: transform 0.35s var(--ease-out), filter 0.35s;
}
.client-tile:hover {
  transform: translateY(-4px);
  filter: brightness(1.15);
}
.client-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* logos whose artwork needs a light plate to read (Tendie's, Nology) */
.client-tile--plate img {
  width: 92%;
  height: 82%;
  background: #fff;
  border-radius: 10px;
  padding: 0.5rem 0.85rem;
}

/* ---- BTS ---- */
.bts {
  background: var(--bg-0);
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.bts-grid {
  margin-top: clamp(2rem, 5vw, 3.4rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: clamp(0.8rem, 2vw, 1.4rem);
}

/* center portrait surrounded by the video tiles */
.bts-center {
  margin: 0;
  grid-area: 2 / 2 / 4 / 4;
  aspect-ratio: auto;
}
.bts-folder-tile {
  display: grid;
  place-items: center;
  text-align: center;
  text-decoration: none;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  background: var(--glass);
  color: var(--accent-bright);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.5;
  transition: background 0.3s, border-color 0.3s;
}
.bts-folder-tile:hover {
  background: var(--glass-strong);
  border-color: var(--accent);
}

.bts-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 4 / 3.4;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-2);
}

.bts-item img,
.bts-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out), filter 0.4s;
}
.bts-item:hover img,
.bts-item:hover video { transform: scale(1.06); filter: brightness(1.08); }

.play-badge--sm {
  width: 44px;
  height: 44px;
  opacity: 0.7;
}
.play-badge--sm::after {
  border-left-width: 11px;
  border-top-width: 7px;
  border-bottom-width: 7px;
}
.bts-item:hover .play-badge--sm,
.bts-item:focus-visible .play-badge--sm { opacity: 1; }

.bts-folder { margin-top: clamp(2rem, 5vw, 3rem); text-align: center; }

.ghost-button {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--accent-bright);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}
.ghost-button:hover {
  background: var(--glass-strong);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ---- contact ---- */
.contact {
  background:
    radial-gradient(60% 80% at 50% 120%, rgba(96, 107, 158, 0.2), transparent 65%),
    var(--bg-0);
  padding: clamp(4.5rem, 10vw, 8rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-links {
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.7rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--glass);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}
.contact-pill svg { width: 21px; height: 21px; color: var(--accent-bright); }
.contact-pill:hover {
  background: var(--glass-strong);
  border-color: var(--accent);
  transform: translateY(-3px);
}

/* ---- footer ---- */
.site-footer {
  background: var(--bg-0);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.6rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.site-footer p { margin: 0; }

/* ---- back to top ---- */
.back-to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 90;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: rgba(14, 17, 30, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--accent-bright);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  opacity: 0;
  translate: 0 8px;
  transition: opacity 0.3s, translate 0.3s var(--ease-out), background 0.3s;
}
.back-to-top.is-visible { opacity: 1; translate: 0 0; }
.back-to-top:hover { background: var(--bg-3); }
.back-to-top svg { width: 22px; height: 22px; }
.back-to-top[hidden] { display: none; }

/* ---- video modal ---- */
.video-modal {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  outline: none;
}
.video-modal::backdrop {
  background: rgba(4, 5, 10, 0.72);
  backdrop-filter: blur(14px) brightness(0.7);
}
.video-modal[open] { display: grid; place-items: center; }

.modal-frame {
  width: min(1080px, calc(100vw - 2.4rem));
  animation: modal-in 0.45s var(--ease-out) both;
}
.video-modal.is-closing .modal-frame { animation: modal-out 0.28s ease-in both; }

@keyframes modal-in {
  from { opacity: 0; transform: translateY(22px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes modal-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(16px) scale(0.97); }
}

.modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0.2rem 0.7rem;
}

.modal-title {
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.modal-close {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1rem;
  transition: background 0.25s, transform 0.25s var(--ease-out);
}
.modal-close:hover { background: rgba(255, 255, 255, 0.14); transform: rotate(90deg); }

.modal-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
}
.modal-stage video,
.modal-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.modal-stage video { object-fit: contain; }

/* ---- lightbox ---- */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  outline: none;
}
.lightbox::backdrop {
  background: rgba(4, 5, 10, 0.78);
  backdrop-filter: blur(14px);
}
.lightbox[open] { display: grid; place-items: center; }

.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 84vh;
  width: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
  animation: modal-in 0.4s var(--ease-out) both;
}

.lightbox .modal-close {
  position: fixed;
  top: 1.2rem;
  right: 1.4rem;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  translate: 0 -50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  transition: background 0.25s;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.15); }
.lightbox-nav--prev { left: 1.2rem; }
.lightbox-nav--next { right: 1.2rem; }

/* ---- scroll reveal (only hidden when JS is running: html.js) ---- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 90ms);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---- responsive ---- */
@media (max-width: 960px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.4rem; }
  .step:nth-child(2)::after { display: none; }
  .roles { grid-template-columns: repeat(2, 1fr); row-gap: 2.2rem; }
  .role:nth-child(3) { border-left: 0; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    width: min(300px, 80vw);
    height: calc(100dvh - var(--nav-h));
    padding: 1.4rem 1.2rem;
    background: rgba(8, 10, 20, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--hairline);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
  }
  .nav-menu.is-open { transform: translateX(0); }
  .nav-link { padding: 0.8rem 0.6rem; font-size: 1.05rem; }
  .nav-link--cta { text-align: center; margin-top: 0.6rem; }

  .about-grid { grid-template-columns: 1fr; }
  .about-divider { height: 1px; min-height: 0; width: 100%; }
  .statement p { text-align: left; }

  .process-steps { grid-template-columns: 1fr; }
  .step::after { display: none !important; }

  .roles { grid-template-columns: 1fr; }
  .role { border-left: 0; border-top: 1px solid var(--hairline); padding: 1.4rem 0.2rem; }
  .role:first-child { border-top: 0; }

  .card-grid { grid-template-columns: 1fr; }
  .project-card { max-width: 400px; }

  .bts-grid { grid-template-columns: repeat(2, 1fr); }
  /* keep the portrait mid-stack on mobile: videos above and below */
  .bts-center { grid-area: 5 / 1 / 6 / -1; }

  .contact-pill { width: 100%; justify-content: center; }
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body, .hero-art, .modal-frame, .lightbox img { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
  .clients-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .clients-set[aria-hidden="true"] { display: none; }
  .clients-set { flex-wrap: wrap; justify-content: center; }
  .clients-marquee { -webkit-mask-image: none; mask-image: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
