/* ============================================================================
   MAYA — AI Commercial Content Studio
   Design system + layout
   ----------------------------------------------------------------------------
   1.  Tokens
   2.  Reset & base
   3.  Typography
   4.  Layout primitives
   5.  Buttons, tags, badges
   6.  Media slots
   7.  Header & navigation
   8.  Hero
   9.  Showreel
   10. What we create
   11. Selected work
   12. Project viewer
   13. Meet Maya
   14. Video Factory
   15. About & production at scale
   16. Creative Lab
   17. Contact
   18. Footer
   19. Motion, states, utilities
   ========================================================================== */

/* ---------------------------------------------------------------- 1. tokens */

:root {
  --bg: #08090c;
  --bg-soft: #0b0d12;
  --surface: #11141a;
  --surface-2: #161a22;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #f3f4f7;
  --text-dim: #c3c8d4;
  --muted: #98a0b0;

  --accent: #e3a866;
  --accent-soft: rgba(227, 168, 102, 0.14);
  --accent-2: #8f7ae6;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --container: 1180px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 8.5rem);

  --shadow-lg: 0 32px 90px -34px rgba(0, 0, 0, 0.9);
  --shadow-md: 0 18px 45px -22px rgba(0, 0, 0, 0.85);

  --font-sans: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system,
    "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(0.79rem, 0.77rem + 0.1vw, 0.86rem);
  --step-0: clamp(0.95rem, 0.92rem + 0.14vw, 1.05rem);
  --step-1: clamp(1.05rem, 0.99rem + 0.3vw, 1.2rem);
  --step-2: clamp(1.28rem, 1.1rem + 0.85vw, 1.75rem);
  --step-3: clamp(1.6rem, 1.25rem + 1.6vw, 2.45rem);
  --step-4: clamp(2rem, 1.4rem + 2.6vw, 3.3rem);
  --step-5: clamp(2.4rem, 1.5rem + 4.4vw, 4.8rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ----------------------------------------------------------- 2. reset/base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  /* Faint studio glow behind everything — keeps the page from looking flat. */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 45% at 82% -5%, rgba(227, 168, 102, 0.1), transparent 70%),
    radial-gradient(55% 40% at 5% 12%, rgba(143, 122, 230, 0.09), transparent 72%);
}

img,
svg,
video,
iframe {
  max-width: 100%;
  display: block;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: rgba(227, 168, 102, 0.32);
}

[x-cloak] {
  display: none !important;
}

/* --------------------------------------------------------- 3. typography */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.022em;
}

h1 {
  font-size: var(--step-5);
  font-weight: 660;
}

h2 {
  font-size: var(--step-4);
}

h3 {
  font-size: var(--step-2);
  line-height: 1.2;
}

p {
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.lead {
  max-width: 62ch;
  color: var(--text-dim);
  font-size: var(--step-1);
}

.muted {
  color: var(--muted);
}

.balance {
  text-wrap: balance;
}

/* ------------------------------------------------- 4. layout primitives */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  z-index: 1;
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.section--soft {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.017), transparent);
}

.section--panel {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 3rem);
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section__head > div {
  max-width: 62ch;
}

.section__head .lead {
  margin-top: 1.1rem;
}

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

.grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}

.grid--cards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 200;
  translate: -50% -140%;
  padding: 0.7rem 1.1rem;
  background: var(--accent);
  color: #17120b;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  translate: -50% 0;
}

.noscript-note {
  position: relative;
  z-index: 5;
  margin: 0;
  padding: 0.9rem var(--gutter);
  background: var(--accent-soft);
  border-bottom: 1px solid rgba(227, 168, 102, 0.3);
  color: var(--text-dim);
  font-size: var(--step--1);
  text-align: center;
}

.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;
}

/* ------------------------------------------- 5. buttons, tags and badges */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-border: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-pill);
  font-size: var(--step-0);
  font-weight: 560;
  letter-spacing: 0.005em;
  text-align: center;
  transition: transform 0.35s var(--ease), background-color 0.3s var(--ease),
    border-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.35s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(227, 168, 102, 0.55);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  --btn-bg: linear-gradient(135deg, #eab677, #d9944b);
  --btn-fg: #1a130a;
  --btn-border: transparent;
  font-weight: 640;
  box-shadow: 0 14px 34px -16px rgba(227, 168, 102, 0.6);
}

.btn--primary:hover {
  --btn-bg: linear-gradient(135deg, #f2c288, #e0a058);
  box-shadow: 0 18px 40px -16px rgba(227, 168, 102, 0.72);
}

.btn--ghost {
  --btn-bg: rgba(255, 255, 255, 0.04);
  --btn-border: var(--line);
}

.btn--ghost:hover {
  --btn-bg: rgba(255, 255, 255, 0.08);
}

.btn--sm {
  min-height: 40px;
  padding: 0.45rem 1rem;
  font-size: var(--step--1);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--text-dim);
  font-size: var(--step--1);
  letter-spacing: 0.02em;
}

.tag--accent {
  background: var(--accent-soft);
  border-color: rgba(227, 168, 102, 0.35);
  color: #f0c894;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* -------------------------------------------------------- 6. media slots */

.media {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 20% 0%, rgba(255, 255, 255, 0.05), transparent 60%),
    var(--surface);
  isolation: isolate;
}

.media__poster,
.media__video,
.media__embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.media__poster {
  z-index: 0;
}

.media__video,
.media__embed {
  z-index: 1;
}

.media.is-fallback .media__video,
.media.is-fallback .media__embed {
  display: none;
}

.media.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.05) 45%, transparent 70%);
  background-size: 220% 100%;
  animation: media-shimmer 1.8s linear infinite;
}

@keyframes media-shimmer {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -120% 0;
  }
}

.media__note {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  padding: 0.45rem 0.9rem;
  background: rgba(8, 9, 12, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--text-dim);
  font-size: var(--step--1);
  white-space: nowrap;
  backdrop-filter: blur(6px);
}

/* ----------------------------------------------- 7. header & navigation */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(8, 9, 12, 0.74);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px) saturate(140%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  font-size: 1.05rem;
}

.brand__mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.brand__sub {
  display: none;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav__links {
  display: none;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.9rem);
}

.nav__link {
  position: relative;
  padding: 0.4rem 0;
  color: var(--text-dim);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  transition: color 0.25s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  scale: 0 1;
  transform-origin: left;
  transition: scale 0.3s var(--ease);
}

.nav__link:hover {
  color: var(--text);
}

.nav__link:hover::after {
  scale: 1 1;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav__cta {
  display: none;
}

.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.nav__toggle span {
  display: block;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 76px 0 auto;
  z-index: 99;
  max-height: calc(100dvh - 76px);
  overflow-y: auto;
  padding: 1.5rem var(--gutter) 2.5rem;
  background: rgba(9, 10, 14, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  border-bottom: 1px solid var(--line);
  font-size: var(--step-2);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.mobile-nav__link span:last-child {
  color: var(--muted);
  font-size: var(--step-0);
}

.mobile-nav__cta {
  width: 100%;
  margin-top: 1.5rem;
}

/* ------------------------------------------------------------------ 8. hero */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 88vh;
  min-height: 88svh;
  padding-block: 8rem clamp(3rem, 7vw, 6rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(8, 9, 12, 0.82) 0%, rgba(8, 9, 12, 0.5) 38%, rgba(8, 9, 12, 0.96) 100%),
    linear-gradient(90deg, rgba(8, 9, 12, 0.86) 0%, rgba(8, 9, 12, 0.28) 62%, rgba(8, 9, 12, 0.6) 100%);
}

.hero__inner {
  position: relative;
  z-index: 3;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  width: 100%;
}

.hero__title {
  max-width: 22ch;
  text-wrap: balance;
}

.hero__copy {
  max-width: 58ch;
  color: var(--text-dim);
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.22rem);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 0.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--step--1);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero__scroll {
  display: none;
}

/* -------------------------------------------------------------- 9. showreel */

.reel {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}

.reel__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  background: linear-gradient(180deg, rgba(8, 9, 12, 0.28), rgba(8, 9, 12, 0.68));
  transition: background-color 0.4s var(--ease), opacity 0.4s var(--ease);
}

.reel__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(243, 244, 247, 0.94);
  color: #14100a;
  box-shadow: 0 18px 48px -14px rgba(0, 0, 0, 0.85);
  transition: transform 0.4s var(--ease), background-color 0.3s var(--ease);
}

.reel:hover .reel__play {
  transform: scale(1.07);
}

.reel__play svg {
  width: 26px;
  height: 26px;
  margin-left: 3px;
}

.reel__label {
  font-size: var(--step--1);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e9ebf1;
}

.reel__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: var(--step--1);
}

/* ------------------------------------------------------ 10. what we create */

.create-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(280px, 42vw, 360px);
  padding: 1.4rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.45s var(--ease), border-color 0.4s var(--ease);
}

.create-card:hover {
  transform: translateY(-4px);
  border-color: rgba(227, 168, 102, 0.35);
}

.create-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.create-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.9s var(--ease);
}

.create-card:hover .create-card__media img {
  scale: 1.05;
}

.create-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 9, 12, 0.15) 0%, rgba(8, 9, 12, 0.72) 58%, rgba(8, 9, 12, 0.95) 100%);
}

.create-card__body {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.5rem;
}

.create-card__title {
  font-size: var(--step-2);
}

.create-card__text {
  color: var(--text-dim);
  font-size: var(--step-0);
}

.create-card__index {
  position: absolute;
  top: 1.2rem;
  left: 1.4rem;
  z-index: 2;
  color: rgba(255, 255, 255, 0.55);
  font-size: var(--step--1);
  letter-spacing: 0.2em;
}

/* --------------------------------------------------------- 11. selected work */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.filter {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.42rem 1rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--text-dim);
  font-size: var(--step--1);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.filter:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.filter[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: rgba(227, 168, 102, 0.45);
  color: #f2cd9c;
}

.filter__count {
  color: inherit;
  opacity: 0.55;
  font-size: 0.72rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: clamp(0.9rem, 1.8vw, 1.4rem);
  grid-auto-flow: dense;
}

.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: left;
  transition: transform 0.45s var(--ease), border-color 0.4s var(--ease), box-shadow 0.45s var(--ease);
}

.work-card:hover {
  transform: translateY(-5px);
  border-color: rgba(227, 168, 102, 0.34);
  box-shadow: var(--shadow-md);
}

.work-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.work-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.9s var(--ease);
}

.work-card:hover .work-card__media img {
  scale: 1.06;
}

.work-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 9, 12, 0.05), rgba(8, 9, 12, 0.75));
}

.work-card__badge {
  position: absolute;
  z-index: 2;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.25rem 0.6rem;
  background: rgba(8, 9, 12, 0.68);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--text-dim);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.work-card__play {
  position: absolute;
  z-index: 2;
  right: 0.9rem;
  bottom: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(243, 244, 247, 0.92);
  color: #14100a;
  opacity: 0;
  translate: 0 6px;
  transition: opacity 0.35s var(--ease), translate 0.35s var(--ease);
}

.work-card:hover .work-card__play,
.work-card:focus-visible .work-card__play {
  opacity: 1;
  translate: 0 0;
}

.work-card__play svg {
  width: 15px;
  height: 15px;
  margin-left: 2px;
}

.work-card__body {
  display: grid;
  gap: 0.4rem;
  padding: 1.05rem 1.15rem 1.25rem;
}

.work-card__meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-card__title {
  font-size: var(--step-1);
  font-weight: 600;
}

.work-card__text {
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.6;
}

.work-empty {
  padding: 3rem 1rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--muted);
  text-align: center;
}

/* ------------------------------------------------------- 12. project viewer */

.viewer {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: clamp(0.75rem, 3vw, 2.5rem);
  background: rgba(4, 5, 8, 0.82);
  backdrop-filter: blur(10px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.viewer__dialog {
  position: relative;
  width: min(1080px, 100%);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.viewer__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #06070a;
}

.viewer__stage .media__poster {
  opacity: 0.85;
}

.viewer__close {
  position: absolute;
  z-index: 5;
  top: 0.7rem;
  right: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(8, 9, 12, 0.72);
  border: 1px solid var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.viewer__close:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: rotate(90deg);
}

.viewer__close svg {
  width: 17px;
  height: 17px;
}

.viewer__body {
  display: grid;
  gap: 1.4rem;
  padding: clamp(1.25rem, 3vw, 2.2rem);
}

.viewer__title {
  font-size: var(--step-3);
}

.viewer__desc {
  max-width: 70ch;
  color: var(--text-dim);
}

.viewer__details {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.viewer__list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.9rem;
  color: var(--text-dim);
  font-size: var(--step-0);
}

.viewer__list li {
  display: flex;
  gap: 0.6rem;
}

.viewer__list li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 0.62em;
  border-radius: 50%;
  background: var(--accent);
}

.viewer__facts {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  padding: 1.1rem 1.2rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.viewer__fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.viewer__fact:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.viewer__fact dt {
  color: var(--muted);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.viewer__fact dd {
  margin: 0;
  font-size: var(--step-0);
  text-align: right;
}

/* ------------------------------------------------------------ 13. meet Maya */

.maya-layout {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.maya-portrait {
  position: relative;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.maya-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(8, 9, 12, 0) 45%, rgba(8, 9, 12, 0.72) 100%);
}

.maya-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.6rem, 1.5vw, 1rem);
}

.maya-shot {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.maya-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.8s var(--ease);
}

.maya-shot:hover img {
  scale: 1.06;
}

.maya-shot figcaption {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  padding: 1.4rem 0.8rem 0.7rem;
  background: linear-gradient(180deg, transparent, rgba(8, 9, 12, 0.86));
  color: var(--text-dim);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------- 14. video factory */

.pipeline {
  display: grid;
  gap: clamp(0.7rem, 1.5vw, 1rem);
  counter-reset: step;
}

.pipeline__step {
  position: relative;
  display: grid;
  gap: 0.45rem;
  padding: 1.15rem 1.2rem 1.2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.pipeline__step:hover {
  border-color: rgba(227, 168, 102, 0.32);
  transform: translateY(-3px);
}

.pipeline__icon {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.pipeline__num {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  color: rgba(255, 255, 255, 0.22);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
}

.pipeline__title {
  font-size: var(--step-1);
  font-weight: 600;
}

.pipeline__note {
  color: var(--muted);
  font-size: var(--step--1);
}

.outputs {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: clamp(2rem, 4vw, 3.5rem);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.outputs__source {
  display: grid;
  gap: 0.35rem;
  place-content: center;
  padding: 1.5rem 1.25rem;
  background: linear-gradient(135deg, rgba(227, 168, 102, 0.16), rgba(143, 122, 230, 0.12));
  border: 1px solid rgba(227, 168, 102, 0.3);
  border-radius: var(--radius);
  text-align: center;
}

.outputs__source strong {
  font-size: var(--step-2);
  font-weight: 620;
}

.outputs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 0.7rem;
}

.output-chip {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.output-chip:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(227, 168, 102, 0.32);
}

.output-chip span:first-child {
  font-size: var(--step-0);
  font-weight: 540;
}

.output-chip span:last-child {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* --------------------------------------------- 15. about & production scale */

.scale-card {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  padding: clamp(1.25rem, 2.5vw, 1.9rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.scale-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.scale-card__note {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.about-note {
  display: grid;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-left: 1.2rem;
  border-left: 2px solid rgba(227, 168, 102, 0.45);
  color: var(--text-dim);
}

/* ---------------------------------------------------------- 16. creative lab */

.lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.lab-item {
  display: grid;
  gap: 0.35rem;
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  background: rgba(255, 255, 255, 0.012);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.35s var(--ease);
}

.lab-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.lab-item__title {
  font-size: var(--step-1);
  font-weight: 560;
}

.lab-item__note {
  color: var(--muted);
  font-size: var(--step--1);
}

/* --------------------------------------------------------------- 17. contact */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3.5rem);
  background:
    radial-gradient(120% 140% at 85% 10%, rgba(227, 168, 102, 0.18), transparent 60%),
    linear-gradient(135deg, rgba(143, 122, 230, 0.14), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.cta-band__inner {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
}

.contact-layout {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.contact-card {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  color: var(--muted);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color 0.28s var(--ease), background-color 0.28s var(--ease);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398a0b0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 18px;
  padding-right: 2.4rem;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--line-strong);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(227, 168, 102, 0.6);
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.field--full {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.form-error {
  color: #f3a08c;
  font-size: var(--step--1);
}

.form-success {
  display: grid;
  gap: 0.75rem;
  place-items: start;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--surface-2);
  border: 1px solid rgba(227, 168, 102, 0.3);
  border-radius: var(--radius-lg);
}

.form-success h3 {
  font-size: var(--step-2);
}

.contact-aside {
  display: grid;
  gap: 1.1rem;
  align-content: start;
}

.contact-aside__row {
  display: grid;
  gap: 0.25rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.contact-aside__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-aside__row span:first-child {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-aside__row span:last-child {
  font-size: var(--step-1);
}

/* ---------------------------------------------------------------- 18. footer */

.site-footer {
  position: relative;
  z-index: 1;
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 2rem;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.footer-brand {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.footer-brand .brand {
  font-size: 1.25rem;
}

.footer-links {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.footer-links a {
  color: var(--text-dim);
  font-size: var(--step-0);
  transition: color 0.25s var(--ease);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--step--1);
}

/* ------------------------------------------- 19. motion, states, utilities */

/* Reveal-on-scroll only hides content when JavaScript confirmed it can show it
   again — so the page is never left blank without scripting. */
html.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

html.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

html.is-locked,
html.is-locked body {
  overflow: hidden;
}

.text-accent {
  color: var(--accent);
}

.hide {
  display: none !important;
}

/* --------------------------------------------------------- responsive */

@media (min-width: 600px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 860px) {
  .brand__sub {
    display: inline;
  }

  .nav__links {
    display: flex;
  }

  .nav__cta {
    display: inline-flex;
  }

  .nav__toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }

  .maya-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }

  .maya-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pipeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .outputs {
    grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr);
    align-items: center;
  }

  .viewer__details {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }

  .cta-band__inner {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, auto);
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.75fr);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  }

  .hero__scroll {
    position: absolute;
    right: var(--gutter);
    bottom: clamp(3rem, 7vw, 6rem);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
  }

  .hero__scroll::after {
    content: "";
    width: 1px;
    height: 54px;
    background: linear-gradient(180deg, var(--accent), transparent);
  }
}

@media (min-width: 1024px) {
  .work-card.is-featured {
    grid-column: span 2;
  }

  .work-card.is-featured .work-card__media {
    aspect-ratio: 16 / 9;
  }

  .work-card.is-featured .work-card__title {
    font-size: var(--step-2);
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Wider type and spacing only when there is room for it. */
@media (max-width: 599px) {
  .section__head {
    margin-bottom: 1.75rem;
  }

  .hero {
    min-height: 86vh;
    min-height: 86svh;
  }

  .reel__play {
    width: 62px;
    height: 62px;
  }

  .work-card__play {
    opacity: 1;
    translate: 0 0;
  }

  .viewer {
    padding: 0;
  }

  .viewer__dialog {
    max-height: 100dvh;
    border-radius: 0;
    border-inline: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  html.js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .media.is-loading::after {
    display: none;
  }
}

@media print {
  body::before,
  .site-header,
  .mobile-nav,
  .viewer {
    display: none !important;
  }
}
