/* Venomous Media — dark, luxury look.
   Change colours only in :root. Gold and champagne are placeholders
   until the brand palette is confirmed. */
:root {
  --black: #07070a;
  --ink: #0d0d12;
  --surface: #121219;
  --text: #f4efe4;
  --muted: #a8a293;
  --gold: #c9a24a;
  --gold-light: #f3e2b0;
  --gold-dark: #7a5a1e;
  --gold-gradient: linear-gradient(135deg, #f3e2b0 0%, #c9a24a 45%, #7a5a1e 100%);
  --line: rgba(201, 162, 74, 0.22);
  --max: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold-light);
  text-decoration: none;
}

section,
.site-header,
.site-footer {
  padding-left: 20px;
  padding-right: 20px;
}

section > *,
.site-header > *,
.site-footer > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
  background: rgba(7, 7, 10, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.brand-logo {
  width: auto;
  height: 40px;
}

.brand-word {
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 0.95rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--gold-light);
}

.site-nav .nav-cta {
  padding: 8px 16px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-light);
}

.site-nav .nav-cta:hover {
  background: var(--gold);
  color: var(--black);
}

/* ---------- Opening screen ---------- */
/* A black screen with one gold line that grows across it, then the whole screen fades away
   and the page shows. It does not block clicks or scrolling. */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: intro-out 0.9s ease-in 1.9s forwards;
}

.intro-line {
  width: min(520px, 70vw);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-light), var(--gold), transparent);
  box-shadow: 0 0 18px rgba(201, 162, 74, 0.6);
  transform: scaleX(0);
  animation: intro-line 1.4s ease-in-out 0.2s forwards;
}

@keyframes intro-line {
  to {
    transform: scaleX(1);
  }
}

@keyframes intro-out {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: #07070a; /* the video behind the logo covers this */
  min-height: calc(100vh - 62px);
  min-height: calc(100svh - 62px);
  display: flex;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 96px;
  text-align: center;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* The logo and tagline sit on a full-width stage. The looping video fills the stage,
   dimmed, and fades out just below the tagline. */
.hero-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100vw;
  min-height: 72vh; /* the background video fills this height; the logo used to set it */
  margin-top: -64px; /* start the video right under the header */
  margin-left: calc(50% - 50vw);
  padding-top: 64px;
  padding-bottom: 30px;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.55;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(7, 7, 10, 0.25) 0%, rgba(7, 7, 10, 0.45) 50%, #07070a 100%);
  pointer-events: none;
}

/* Main logo (gold V, wordmark, services row). Its photo background
   fades into the black page through the mask. */
.hero-logo-wrap {
  position: relative;
  width: min(960px, 92vw);
  margin: 0 auto 28px;
  animation: logo-in 1.4s ease-out both;
}

.hero-logo {
  width: 100%;
  height: auto;
  animation: logo-settle 1.6s ease-out 1.1s both;
  filter: drop-shadow(0 0 30px rgba(201, 162, 74, 0.25));
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.4s ease;
}

/* 3D logo. The logo tilts toward the pointer (script.js sets --tilt-x and --tilt-y).
   On touch screens, which have no pointer, it sways slowly instead. */
.hero-logo-wrap {
  perspective: 900px;
}

@media (hover: none) and (prefers-reduced-motion: no-preference) {
  .hero-logo {
    animation: logo-settle 1.6s ease-out 1.1s both, logo-sway 9s ease-in-out 2.7s infinite;
  }
}

@keyframes logo-sway {
  0%,
  100% {
    transform: rotateY(-7deg);
  }
  50% {
    transform: rotateY(7deg);
  }
}

/* A light sweep that runs once when the logo is clicked. It is masked to the logo shape. */
.hero-flare {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 240, 200, 0.95) 50%, transparent 60%) 100% 0 / 250% 100%;
  -webkit-mask: url("assets/logo-full.png") center / contain no-repeat;
  mask: url("assets/logo-full.png") center / contain no-repeat;
  mix-blend-mode: screen;
}

.hero-logo-wrap.is-flaring .hero-flare {
  animation: hero-flare 0.9s ease-out;
}

@keyframes hero-flare {
  0% {
    opacity: 0;
    background-position: 100% 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    background-position: 0 0;
  }
}

/* Opening animation. The logo fades and rises in, a gold line traces the V,
   then the logo flares once and settles. Skipped for reduced motion. */
@keyframes logo-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes logo-settle {
  0% {
    filter: brightness(1.6) drop-shadow(0 0 30px rgba(201, 162, 74, 0.6));
  }
  100% {
    filter: brightness(1) drop-shadow(0 0 30px rgba(201, 162, 74, 0.25));
  }
}

/* Logo glow and shine. The glow is a blurred copy of the logo that breathes in and out.
   The shine is a light band that sweeps across, masked to the logo shape only. */
.hero-logo-wrap {
  isolation: isolate;
}

.hero-logo-wrap::before {
  content: "";
  position: absolute;
  inset: -4%;
  z-index: -1;
  background: url("assets/logo-full.png") center / contain no-repeat;
  filter: blur(22px) saturate(1.2) brightness(1.3);
  opacity: 0.6;
  pointer-events: none;
  animation: glow-breathe 3.6s ease-in-out infinite;
}

.hero-logo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 240, 200, 0.9) 50%, transparent 60%) 100% 0 / 250% 100%;
  -webkit-mask: url("assets/logo-full.png") center / contain no-repeat;
  mask: url("assets/logo-full.png") center / contain no-repeat;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: logo-shine 4.5s ease-in-out 1.5s infinite;
}

.logo-hit {
  z-index: 1;
}

@keyframes glow-breathe {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.04);
  }
}

@keyframes logo-shine {
  0% {
    background-position: 100% 0;
  }
  60%,
  100% {
    background-position: -100% 0;
  }
}

/* Hover boxes over the logo icons. Each one plays a clip on hover. */
.logo-hit {
  position: absolute;
  display: block;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.4s ease;
}

.logo-hit::before {
  /* Gold shimmer shown until a clip is playing (also the fallback if a clip is missing). */
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(7, 7, 10, 0.9);
  background-image: linear-gradient(110deg, transparent 35%, rgba(243, 226, 176, 0.35) 50%, transparent 65%);
  background-size: 260% 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: shimmer 2.6s linear infinite;
}

.logo-hit video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.logo-hit.is-playing {
  border-color: var(--gold);
}

.logo-hit.is-playing::before,
.logo-hit.is-playing video {
  opacity: 1;
}

.logo-hit:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

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

.hero-tagline {
  margin: 28px auto 18px;
  max-width: 760px;
  font-family: "Cinzel", Georgia, serif; /* matches the serif VENOMOUS in the logo */
  font-size: clamp(1rem, 2.6vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  color: var(--gold-light);
  text-transform: uppercase;
}

.lead {
  max-width: 560px;
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.15rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 2px;
  background: var(--gold-gradient);
  color: var(--black);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(201, 162, 74, 0.3);
}

.button-ghost {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--gold);
}

.button-ghost:hover {
  box-shadow: none;
  background: rgba(201, 162, 74, 0.08);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  padding-left: 0.3em;
}

.scroll-hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 36px;
  margin: 10px auto 0;
  background: linear-gradient(var(--gold), transparent);
  animation: drip 2.4s ease-in-out infinite;
}

/* ---------- Gold rule ---------- */
.gold-rule {
  height: 1px;
  margin: 0 auto;
  width: min(1160px, 100% - 40px);
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 14px rgba(201, 162, 74, 0.5);
}

/* ---------- Shared section type ---------- */
.kicker {
  margin: 0 0 14px;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  margin: 0 0 48px;
  font-weight: 300;
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.section-title em {
  font-style: italic;
  color: var(--gold-light);
}

/* ---------- Before and after slider ---------- */
/* --pos is the slider position. JavaScript in script.js updates it as the visitor drags. */
.before-after {
  padding-top: 110px;
  padding-bottom: 110px;
  background: var(--black);
}

.before-after-inner {
  width: min(1160px, 100% - 40px);
  margin: 0 auto;
}

.ba {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink);
  --pos: 50%;
}

.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The before picture is shown only to the left of the slider line. */
.ba-before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

/* The slider line and its round handle. */
.ba::before,
.ba::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  pointer-events: none;
  z-index: 1;
}

.ba::before {
  top: 50%;
  bottom: auto;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border: 2px solid var(--gold-light);
  border-radius: 50%;
  background: rgba(7, 7, 10, 0.6);
  box-shadow: 0 0 18px rgba(201, 162, 74, 0.5);
}

.ba::after {
  width: 2px;
  margin-left: -1px;
  background: var(--gold-light);
  box-shadow: 0 0 14px rgba(201, 162, 74, 0.6);
}

.ba-label {
  position: absolute;
  top: 14px;
  z-index: 1;
  padding: 6px 10px;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(7, 7, 10, 0.6);
  pointer-events: none;
}

.ba-label-before {
  left: 14px;
}

.ba-label-after {
  right: 14px;
}

/* The invisible range input covers the picture, so dragging and keyboard arrows both work. */
.ba-range {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.ba:focus-within {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

@media (max-width: 719px) {
  .ba {
    aspect-ratio: 4 / 5;
  }
}

/* ---------- Services ---------- */
.services {
  padding-top: 110px;
  padding-bottom: 110px;
  background:
    radial-gradient(ellipse at top right, rgba(201, 162, 74, 0.08), transparent 60%),
    var(--black);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}

.service {
  position: relative;
  padding: 30px 6px 30px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.35s ease, padding 0.35s ease;
}

.service::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold-gradient);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s ease;
}

.service-num {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 8px;
}

.service h3 {
  margin: 0 0 6px;
  font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.service p {
  margin: 0;
  color: var(--muted);
  max-width: 560px;
}

/* Cards with a clip: the clip fades in behind the text on hover. */
.service > * {
  position: relative;
  z-index: 1;
}

.service-clip {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.service-video-card::after {
  /* Dark wash so the text stays easy to read over the clip. */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(7, 7, 10, 0.92) 0%, rgba(7, 7, 10, 0.55) 100%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.service-video-card.is-playing .service-clip {
  opacity: 0.85;
}

.service-video-card.is-playing::after {
  opacity: 1;
}

.service-video-card:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

@media (min-width: 720px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 56px;
  }
}

@media (min-width: 1024px) {
  .service-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* ---------- Portfolio ---------- */
.work {
  padding-top: 110px;
  padding-bottom: 110px;
  background: var(--black);
}

.work-inner {
  width: min(1160px, 100% - 40px);
  margin: 0 auto;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.work-item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.work-item video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.work-item:hover video,
.work-item:focus-visible video {
  transform: scale(1.03);
}

.work-item:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.work-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 7, 10, 0.9), rgba(7, 7, 10, 0) 60%);
  pointer-events: none;
}

.work-meta {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}

.work-cat {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.work-name {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--text);
}

/* The full player. The browser's own dialog handles Escape and focus. */
.work-dialog {
  width: min(1100px, 94vw);
  max-height: 92vh;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--black);
  color: var(--text);
}

.work-dialog::backdrop {
  background: rgba(7, 7, 10, 0.9);
}

.work-player {
  display: block;
  width: 100%;
  max-height: 86vh;
  background: #000;
}

.work-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(7, 7, 10, 0.7);
  color: var(--gold-light);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Concept demo ---------- */
.demo-inner {
  width: min(1160px, 100% - 40px);
  margin: 0 auto;
}

.demo {
  padding-top: 110px;
  padding-bottom: 110px;
  background:
    radial-gradient(ellipse at top left, rgba(201, 162, 74, 0.08), transparent 60%),
    var(--black);
}

.demo-form {
  display: grid;
  gap: 22px;
  max-width: 620px;
}

.demo-field {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.demo-field input,
.demo-field select {
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  letter-spacing: normal;
  text-transform: none;
}

.demo-styles legend {
  margin-bottom: 8px;
}

.demo-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 1rem;
  letter-spacing: normal;
  text-transform: none;
  color: var(--text);
}

.demo-submit {
  justify-self: start;
}

.demo-output {
  max-width: 620px;
  margin-top: 36px;
}

.demo-output:empty {
  display: none;
}

.demo-output h3 {
  margin: 0 0 16px;
  font-weight: 400;
  font-size: 1.4rem;
}

.demo-output ol {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.demo-output li {
  margin-bottom: 12px;
}

.demo-note {
  max-width: 620px;
  margin: 28px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- About ---------- */
.about {
  position: relative;
  padding-top: 120px;
  padding-bottom: 120px;
  background: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.about::before {
  content: "";
  position: absolute;
  right: -15%;
  top: -30%;
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  border-radius: 50%;
  pointer-events: none;
}

/* The clip inside the circle. Same size and place as the rings below it. */
.about-orb {
  position: absolute;
  right: -15%;
  top: -30%;
  z-index: 0;
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.8;
  pointer-events: none;
}

/* Flowing gold ring: a rotating light band, masked to a thin circle. */
.about::before {
  background: conic-gradient(
    from var(--ring-angle),
    transparent 0deg,
    rgba(243, 226, 176, 0.2) 70deg,
    #f3e2b0 120deg,
    #c9a24a 170deg,
    transparent 250deg,
    transparent 360deg
  );
  -webkit-mask: radial-gradient(circle closest-side, transparent 93%, #000 94%, #000 98%, transparent 99%);
  mask: radial-gradient(circle closest-side, transparent 93%, #000 94%, #000 98%, transparent 99%);
  z-index: 1;
  animation: ring-flow 8s linear infinite;
}

/* Pulsing golden glow around the ring. */
.about::after {
  content: "";
  position: absolute;
  right: -15%;
  top: -30%;
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 74, 0.35);
  z-index: 1;
  pointer-events: none;
  animation: ring-pulse 4s ease-in-out infinite;
}

.about-inner {
  position: relative;
  max-width: 820px;
}

.about .section-title {
  margin-bottom: 28px;
}

.about-copy {
  margin: 0 0 36px;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--muted);
}

.client-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.client-list li {
  padding: 10px 18px;
  border: 1px solid var(--line);
  color: var(--gold-light);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Contact ---------- */
.contact {
  padding-top: 120px;
  padding-bottom: 120px;
  background:
    radial-gradient(ellipse at bottom left, rgba(201, 162, 74, 0.12), transparent 60%),
    var(--black);
}

.contact-inner {
  max-width: 820px;
}

.contact-details {
  display: grid;
  gap: 18px;
  margin-bottom: 40px;
}

.contact-details p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-details .label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-details a {
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  font-weight: 300;
  word-break: break-word;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.social a {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.social a:hover {
  color: var(--gold-light);
}

/* ---------- Footer ---------- */
.site-footer {
  padding-top: 26px;
  padding-bottom: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.site-footer p {
  margin: 0;
}

/* ---------- Motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@property --ring-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes ring-flow {
  to {
    --ring-angle: 360deg;
  }
}

@keyframes ring-pulse {
  0%,
  100% {
    box-shadow: 0 0 30px rgba(201, 162, 74, 0.25), inset 0 0 60px rgba(201, 162, 74, 0.06);
  }
  50% {
    box-shadow: 0 0 80px rgba(243, 226, 176, 0.55), inset 0 0 100px rgba(201, 162, 74, 0.18);
  }
}

/* Words in the hero button slam in on the first scroll. */
.hero-actions .word {
  display: inline-block;
}

.has-scrolled .hero-actions .word {
  animation: slam 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
  animation-delay: calc(var(--i) * 0.3s);
}

@keyframes slam {
  0% {
    opacity: 0;
    transform: translateY(-38px) scale(1.5);
  }
  60% {
    opacity: 1;
    transform: translateY(4px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  60% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ---------- Small phones ---------- */
@media (max-width: 480px) {
  .site-nav {
    gap: 14px;
  }

  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .services,
  .about,
  .contact {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .scroll-hint {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-actions .word {
    opacity: 1;
  }

  .intro {
    display: none;
  }

  .hero-logo-wrap::after {
    display: none;
  }

  .hero-video,
  .about-orb {
    display: none;
  }
}

/* Service cards: hovering (or tapping) a card opens it across the whole row and
   reveals its details one sentence at a time. */
.service-detail {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  color: var(--muted);
  max-width: 720px;
  transition: max-height 0.6s ease, opacity 0.4s ease;
}

.service-detail span {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.services {
  position: relative;
}

/* An open card covers the whole services section, with its details shown. */
.service.is-open {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow-y: auto;
  padding: 110px max(20px, calc((100% - 1160px) / 2));
  background: var(--black);
  border-bottom: none;
}

.service.is-open .service-detail {
  max-height: 900px;
  opacity: 1;
  margin-top: 16px;
}

.service.is-open .service-detail span {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.25s + var(--i) * 0.7s);
}

.service:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

/* Idea 1: a short clip appears inside the open card, after the first sentence. */
.service-reel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.8s ease, opacity 0.6s ease;
  transition-delay: 0.9s;
}

.service-reel video {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center 40%;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.service.is-open .service-reel {
  max-height: 260px;
  opacity: 1;
  margin: 14px 0 18px;
}

.detail-lead,
.detail-rest {
  margin: 0;
}

/* Sentence timing: the first sentence, then the clip, then the rest. */
.service.is-open .detail-lead span {
  transition-delay: 0.25s;
}

.service.is-open .detail-rest span {
  transition-delay: calc(1.8s + var(--i) * 0.7s);
}

/* AI Video card: the clip stands upright on the right, at its own 9:16 shape, so it is not cropped or stretched. */
.service-detail--side {
  display: flex;
  gap: 40px;
  align-items: center; /* text sits level with the middle of the clip */
  max-width: 1000px;
}

.service-detail--side .detail-text {
  flex: 1 1 auto;
  min-width: 0;
}

.service-detail--side .service-reel {
  flex: 0 0 auto;
  width: 0;
  max-height: none;
  overflow: hidden;
  transition: width 0.8s ease, opacity 0.6s ease;
  transition-delay: 0.9s;
}

.service-detail--side .service-reel video {
  width: 200px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.service.is-open .service-detail--side .service-reel {
  width: 260px;
  max-width: 42%;
  max-height: none;
  margin: 0;
}

@media (max-width: 719px) {
  .service-detail--side {
    gap: 20px;
  }

  .service-detail--side .service-reel video {
    width: 100%;
  }
}

/* Seven ways: service text sits on the left, centred vertically in each card. */
.services .service {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}
