/* Design: "Dusk" - deep violet-black with a blush-pink to lavender gradient.
   To change colors, edit --accent, --accent-2 (the two gradient ends) and --bg below. */
:root {
  --bg: #0e0b12;
  --surface: #18131e;
  --surface-2: #221b2a;
  --line: #31283b;
  --text: #f3edf6;
  --muted: #a99fb2;
  --accent: #e8a8c4;
  --accent-2: #a89af0;
  --accent-hover: #f2c0d6;
  --accent-ink: #170c1e;
  --gradient: linear-gradient(110deg, var(--accent), var(--accent-2));
  --accent-solid: #e2b4e4; /* midpoint of the gradient, used where a gradient can't be shown */
  --radius: 14px;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 6.4vw, 5rem); max-width: 16ch; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: .6em 1em; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .75em 1.4em;
  background: var(--gradient) border-box; color: var(--accent-ink);
  border: 2px solid transparent; border-radius: 999px;
  font: 700 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: filter .2s, border-color .2s, color .2s, transform .2s;
  overflow-wrap: anywhere; text-align: center;
}
.btn:hover { filter: brightness(1.08) saturate(1.1); color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: transparent; filter: none; color: var(--accent); border-color: var(--accent); }
.grad-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn--small { min-height: 40px; padding: .45em 1.1em; font-size: .95rem; }

.eyebrow {
  color: var(--accent); font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(14, 11, 18, .82);
  backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { color: var(--text); font-weight: 800; letter-spacing: -0.02em; font-size: 1.15rem; text-decoration: none; margin: 0; }
.brand:hover { color: var(--text); }
.nav { list-style: none; display: flex; align-items: center; gap: clamp(.75rem, 2.5vw, 2rem); }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--text); }
@media (max-width: 640px) { .nav li:not(:last-child) { display: none; } }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  min-height: min(86svh, 820px); display: flex; align-items: center;
  padding: clamp(4rem, 10vw, 7rem) 0;
  background:
    radial-gradient(55% 65% at 88% 15%, rgba(168, 154, 240, .22), transparent 60%),
    radial-gradient(45% 55% at 60% 40%, rgba(232, 168, 196, .10), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(168, 154, 240, .08), transparent 70%);
}
.hero::before, .hero::after { /* letterbox bars */
  content: ""; position: absolute; left: 0; right: 0; height: clamp(10px, 2.2vw, 26px); background: #060409;
}
.hero::before { top: 0; }
.hero::after { bottom: 0; }
.hero__lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 56ch; margin: 1.25rem 0 2.25rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Sections */
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.section--tight { padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.section--alt { background: var(--surface); border-block: 1px solid rgba(255, 255, 255, .04); }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-lead { color: var(--muted); max-width: 60ch; }
.placeholder {
  display: grid; place-items: center; text-align: center; color: var(--muted);
  min-height: 180px; padding: 2rem; margin: 0;
  border: 1px dashed var(--line); border-radius: var(--radius); width: 100%; height: 100%;
}

/* Showreel */
.showreel {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  background: #000; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .06);
}
.showreel.is-vertical { aspect-ratio: 9 / 16; max-width: 420px; margin: 0 auto; }
.showreel iframe, .modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.showreel__caption { color: var(--muted); margin: 1rem 0 0; text-align: center; }
.showreel__caption strong { color: var(--text); }

/* Click-to-load facade (used by showreel + cards) */
.facade {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; border: 0; background: #000; cursor: pointer; color: inherit; overflow: hidden;
}
.facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; }
.facade .facade__bg { filter: blur(18px) brightness(.45); transform: scale(1.2); }
.facade .facade__fg { left: 50%; width: auto; aspect-ratio: 9 / 16; transform: translateX(-50%); }
.facade:hover img:not(.facade__bg):not(.facade__fg) { transform: scale(1.04); }
.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--gradient); box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  transition: transform .2s, filter .2s;
}
.play::after {
  content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--accent-ink);
}
.facade:hover .play, .facade:focus-visible .play { transform: translate(-50%, -50%) scale(1.08); filter: brightness(1.1); }
.facade--small .play { width: 56px; height: 56px; }
.facade--small .play::after { border-width: 9px 0 9px 15px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.filter {
  min-height: 44px; padding: .5em 1.15em; border-radius: 999px;
  background: transparent; color: var(--muted); border: 1px solid var(--line);
  font: 600 .95rem/1.2 var(--font); cursor: pointer; transition: all .2s;
}
.filter:hover { color: var(--text); border-color: #45454c; }
.filter[aria-pressed="true"] { background: var(--gradient) border-box; color: var(--accent-ink); border-color: transparent; }
.view-all-wrap { display: flex; justify-content: center; margin-top: clamp(2rem, 4vw, 3rem); }
.view-all-wrap .btn[hidden] { display: none; }
.work-status { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }

/* Grid + cards */
.grid {
  list-style: none; display: grid; gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.card { display: flex; flex-direction: column; }
.card[hidden] { display: none; }
.card__media {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: var(--surface-2); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06);
}
.card__media .placeholder { min-height: 0; border: 0; font-size: .95rem; }
.card__body { padding: 1rem .15rem 0; }
.card__meta { color: var(--accent); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .4rem; }
.card__title { font-size: 1.15rem; margin-bottom: .3rem; }
.card__caption { color: var(--muted); font-size: .97rem; margin: 0; }

/* Steps */
.steps { list-style: none; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.step { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.75rem; }
.step__num { display: block; color: var(--accent); font-weight: 800; font-size: 2.4rem; letter-spacing: -0.04em; line-height: 1; margin-bottom: 1.25rem; font-variant-numeric: tabular-nums; }
.step p { color: var(--muted); margin: 0; }

/* Services */
.services { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.service {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.75rem;
}
.service__for { color: var(--muted); font-size: .95rem; }
.service ul { list-style: none; margin: .5rem 0 1.5rem; display: grid; gap: .55rem; }
.service li { position: relative; padding-left: 1.4rem; }
.service li::before { content: ""; position: absolute; left: 0; top: .7em; width: .55rem; height: 2px; background: var(--gradient); }
.service__price { margin: auto 0 1rem; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.service__price small { display: block; color: var(--muted); -webkit-text-fill-color: var(--muted); font-size: .85rem; font-weight: 500; letter-spacing: 0; margin-top: .3rem; }

/* Phones in dark mode: some browsers (e.g. Samsung Internet, Chrome "dark theme for sites")
   force-darken gradients, which makes gradient text nearly invisible. Use a solid bright color there. */
@media (prefers-color-scheme: dark) and (hover: none) {
  .grad-text, .service__price {
    background: none;
    color: var(--accent-solid);
    -webkit-text-fill-color: var(--accent-solid);
  }
}
.service__link { font-weight: 700; text-decoration: none; }
.pricing { color: var(--muted); margin: 1.75rem 0 0; }

.offer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem;
  margin-top: clamp(2.5rem, 6vw, 4rem); padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(120deg, rgba(232, 168, 196, .16), rgba(168, 154, 240, .10) 60%, rgba(168, 154, 240, .03)), var(--surface);
  border: 1px solid rgba(200, 160, 230, .35);
}
.offer > div { flex: 1 1 380px; }
.offer h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
.offer p:last-child { color: var(--muted); margin: 0; }

/* Contact */
.contact { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.contact__intro p:not(.eyebrow) { color: var(--muted); }
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .95rem; }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .75em .9em;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form .btn { justify-self: start; }
.form__status { margin: 0; min-height: 1.5em; color: var(--muted); }
.form__status.is-ok { color: #7ee2a8; }
.form__status.is-error { color: #ff9b8a; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 3.5rem 0; font-size: .95rem; }
.footer { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.footer address { font-style: normal; color: var(--muted); margin-top: .5rem; }
.footer__notes p { color: var(--muted); }
.footer__copy { margin: 0; }

/* Modal player */
.modal {
  width: min(1100px, calc(100vw - 32px)); max-width: none; max-height: calc(100svh - 32px);
  padding: 0; border: 0; background: transparent; overflow: visible;
}
.modal::backdrop { background: rgba(8, 5, 12, .9); }
.modal__frame { position: relative; aspect-ratio: 16 / 9; width: 100%; background: #000; border-radius: var(--radius); overflow: hidden; }
.modal.is-vertical { width: min(calc((100svh - 150px) * 9 / 16), calc(100vw - 32px)); }
.modal.is-vertical .modal__frame { aspect-ratio: 9 / 16; }
.modal:not(.is-vertical) { width: min(1100px, calc(100vw - 32px), calc((100svh - 150px) * 16 / 9)); }
.modal__close {
  position: absolute; right: 0; top: -52px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line);
  font-size: 1.1rem; cursor: pointer;
}
.modal__close:hover { background: var(--gradient); color: var(--accent-ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
