/* =========================================================
   ZULYMEDIA — creative studio
   Colors: black #0B0A09 · charcoal #1A1816 · cream #F2EBDD
           beige #CBBBA0 · dusty fuchsia #9E4673
   ========================================================= */

:root {
  --black: #0B0A09;
  --charcoal: #1A1816;
  --cream: #F2EBDD;
  --cream-hover: #E9E0CE;
  --beige: #CBBBA0;
  --taupe: #8F877B;
  --umber: #5E554A;
  --brown: #3A332C;
  --line: #2A2622;
  --accent: #9E4673;

  --display: 'Anton', sans-serif;
  --serif: 'Bodoni Moda', serif;
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'Archivo', system-ui, sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --section-pad: clamp(80px, 10vw, 160px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body { margin: 0; background: var(--black); }

a { color: var(--cream); }
a:hover { color: var(--beige); }

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

.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;
}

/* ---------- Animations ---------- */
@keyframes zmMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes zmRec { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes zmRise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

.zm-marquee { animation: zmMarquee 28s linear infinite; }
.zm-rec { animation: zmRec 1.4s ease-in-out infinite; }
.zm-rise { animation: zmRise 1.2s var(--ease) both; }
.zm-frame { transition: transform .8s var(--ease); }
.zm-tile:hover .zm-frame { transform: scale(1.04); }
.zm-row { transition: padding .5s var(--ease), background .5s; }
.zm-row:hover { padding-left: 28px; background: var(--cream-hover); }
.zm-btn { transition: background .3s, color .3s; }
.zm-btn:hover { background: var(--cream); color: var(--black); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .zm-marquee, .zm-rec, .zm-rise { animation: none; }
  .zm-frame, .zm-row, .zm-btn { transition: none; }
}

/* ---------- Page wrapper ---------- */
.page {
  font-family: var(--sans);
  color: var(--cream);
  background: var(--black);
  overflow: hidden;
}

/* Shared type */
.mono { font-family: var(--mono); }
.serif-italic { font-family: var(--serif); font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center;
  min-height: 52px; padding: 0 28px;
  text-decoration: none;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em;
}
.btn--solid { background: var(--cream); color: var(--black); font-weight: 500; }
.btn--solid:hover { color: var(--black); }
.btn--outline { border: 1px solid var(--cream); color: var(--cream); }
.btn--bold { font-weight: 500; }

/* ---------- Header / nav ---------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  padding: 28px var(--gutter);
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
}
.site-header__logo {
  font-family: var(--display); font-size: 22px; letter-spacing: 0.08em;
  text-decoration: none; color: var(--cream);
}
.site-nav {
  display: flex; flex-wrap: wrap; gap: clamp(16px, 3vw, 40px);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
}
.site-nav a { text-decoration: none; }
.rec {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--beige);
}
.rec__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); display: inline-block;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gutter) 48px;
  background: radial-gradient(ellipse at 65% 35%, #3A332C 0%, #1A1816 45%, #0B0A09 100%);
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 44%; pointer-events: none;
}
.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,10,9,0) 35%, rgba(11,10,9,0.55) 65%, rgba(11,10,9,0.92) 100%);
}
.hero__letterbox { position: absolute; top: 0; left: 0; right: 0; height: 9vh; background: var(--black); }
.hero__rule { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--accent); }

.hero__meta {
  position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--beige);
  margin-bottom: 18px;
}
.hero__title {
  position: relative; margin: 0;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(72px, 16.4vw, 248px); line-height: 0.84; letter-spacing: -0.01em;
  color: var(--cream);
}
.hero__bottom {
  position: relative; display: flex; flex-wrap: wrap;
  align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: 32px;
}
.hero__copy { flex: 1 1 520px; max-width: 760px; }
.hero__tagline {
  margin: 0 0 18px; font-family: var(--serif);
  font-size: clamp(36px, 4.4vw, 64px); line-height: 1; color: var(--cream);
}
.hero__tagline em { font-style: italic; color: var(--beige); }
.hero__lede { margin: 0; font-size: 17px; line-height: 1.5; color: var(--beige); max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--accent); color: var(--cream);
  overflow: hidden; white-space: nowrap; padding: 18px 0;
}
.marquee__track {
  display: inline-flex; gap: 48px;
  font-family: var(--serif); font-style: italic; font-size: 30px;
}

/* ---------- Selected work ---------- */
.work { padding: var(--section-pad) var(--gutter); max-width: 1600px; margin: 0 auto; }
.work__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: clamp(48px, 6vw, 96px);
}
.work__title {
  margin: 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(64px, 11vw, 176px); line-height: 0.86;
}
.work__title span { font-family: var(--serif); font-style: italic; font-size: 0.78em; color: var(--beige); }

.work__row { display: flex; flex-wrap: wrap; gap: clamp(24px, 3vw, 48px); align-items: flex-start; }

.tile { display: block; text-decoration: none; }
.tile--tall { flex: 1 1 560px; }
.tile--wide { flex: 1.4 1 520px; margin-top: clamp(0px, 14vw, 320px); }
.tile--cinema { margin-top: clamp(48px, 7vw, 120px); }

.tile__media { overflow: hidden; background: var(--charcoal); position: relative; }
.tile__media--4x5 { aspect-ratio: 4 / 5; }
.tile__media--16x9 { aspect-ratio: 16 / 9; }
.tile__media--cinema { aspect-ratio: 2.39 / 1; }
.tile__media video { width: 100%; height: 100%; object-fit: cover; display: block; }

.tile__fade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(11,10,9,0.7) 0%, rgba(11,10,9,0) 50%);
}
.tile__quote {
  position: absolute; left: clamp(20px, 3vw, 48px); bottom: clamp(16px, 3vw, 40px); margin: 0;
  font-family: var(--serif); font-style: italic; font-size: clamp(28px, 4vw, 60px); color: var(--cream);
}
.tile__caption {
  display: flex; justify-content: space-between; gap: 16px; padding-top: 14px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--beige);
}

.work__outro { display: flex; flex-wrap: wrap; justify-content: flex-end; margin-top: clamp(48px, 7vw, 120px); }
.work__outro-inner { flex: 0 1 760px; }
.work__outro-text {
  margin: 0 0 32px; font-family: var(--serif);
  font-size: clamp(32px, 3.6vw, 56px); line-height: 1.08;
}
.work__outro-text em { color: var(--beige); }

/* ---------- What we make ---------- */
.services { background: var(--cream); color: var(--black); padding: var(--section-pad) var(--gutter); }
.container { max-width: 1600px; margin: 0 auto; }
.services__meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-bottom: 64px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--umber);
}
.service {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px 40px;
  padding: 36px 0; border-top: 1px solid var(--black);
  text-decoration: none; color: var(--black);
}
.service:hover { color: var(--black); }
.service:last-child { border-bottom: 1px solid var(--black); }
.service__num { font-family: var(--mono); font-size: 13px; color: var(--accent); width: 48px; }
.service__name {
  flex: 1 1 520px; font-family: var(--display);
  font-size: clamp(48px, 7.4vw, 120px); line-height: 0.9;
}
.service__name span { font-family: var(--serif); font-style: italic; font-size: 0.8em; }
.service__desc { flex: 0 1 340px; font-size: 16px; line-height: 1.55; color: var(--brown); }

/* ---------- Studio / about ---------- */
.studio { background: var(--beige); color: var(--black); padding: var(--section-pad) var(--gutter); }
.studio__inner {
  max-width: 1600px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 96px); align-items: center;
}
.studio__media { flex: 1 1 380px; max-width: 520px; position: relative; }
.studio__frame { aspect-ratio: 4 / 5; background: var(--charcoal); overflow: hidden; }
.studio__frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.studio__tag {
  position: absolute; right: -16px; bottom: -16px;
  background: var(--accent); color: var(--cream); padding: 14px 18px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
}
.studio__copy { flex: 1 1 520px; }
.studio__eyebrow {
  margin: 0 0 24px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--brown);
}
.studio__title {
  margin: 0 0 32px; font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 5vw, 80px); line-height: 1.02;
}
.studio__body {
  display: flex; flex-wrap: wrap; gap: 32px;
  font-size: 17px; line-height: 1.6; color: var(--charcoal);
}
.studio__body p { margin: 0; flex: 1 1 260px; }

/* ---------- Contact ---------- */
.contact { background: var(--black); padding: var(--section-pad) var(--gutter) 48px; }
.contact__eyebrow {
  margin: 0 0 24px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--taupe);
}
.contact__title {
  margin: 0 0 64px; font-family: var(--display); font-weight: 400;
  font-size: clamp(64px, 12vw, 200px); line-height: 0.86;
}
.contact__title span { font-family: var(--serif); font-style: italic; color: var(--beige); }

.form { display: flex; flex-wrap: wrap; gap: 32px 40px; max-width: 1100px; }
.field {
  flex: 1 1 300px; display: flex; flex-direction: column; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--beige);
}
.field--full { flex: 1 1 100%; }
.field input,
.field textarea,
.field select {
  background: transparent; border: 0; border-bottom: 1px solid var(--umber);
  color: var(--cream); font-family: var(--sans); font-size: 22px;
  padding: 10px 0; outline: none; border-radius: 0;
}
.field textarea { resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23CBBBA0' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center;
}
.field select option { color: var(--black); }
.field input:focus,
.field textarea:focus,
.field select:focus { border-bottom-color: var(--cream); }

.choices { flex: 1 1 100%; border: 0; margin: 0; padding: 0; min-width: 0; }
.choices legend {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--beige);
  margin-bottom: 14px; padding: 0;
}
.choices__list { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--umber); font-size: 15px; color: var(--cream); cursor: pointer;
}

.form__submit {
  min-height: 56px; padding: 0 36px; background: var(--cream); color: var(--black); border: 0;
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.16em; cursor: pointer;
}
.form__submit[disabled] { opacity: .6; cursor: wait; }

.form__status {
  flex: 1 1 100%; margin: 0; font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.1em; color: var(--beige); min-height: 1em;
}
.form-success { max-width: 1100px; }
.form-success__title {
  margin: 0 0 16px; font-family: var(--serif); font-style: italic;
  font-size: clamp(32px, 3.6vw, 56px); line-height: 1.08; color: var(--cream);
}
.form-success__text { margin: 0; font-size: 17px; line-height: 1.6; color: var(--beige); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: clamp(80px, 10vw, 160px); padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--taupe);
}
.site-footer a { text-decoration: none; }

/* ---------- Simple inner pages (thanks / onboarding / 404) ---------- */
.inner {
  min-height: 100vh; padding: 140px var(--gutter) 48px;
  display: flex; flex-direction: column;
}
.inner__body { flex: 1; max-width: 1600px; width: 100%; margin: 0 auto; }
.inner .site-footer { max-width: 1600px; width: 100%; margin-left: auto; margin-right: auto; }
.form-group-title {
  flex: 1 1 100%; margin: 24px 0 0; padding-top: 24px; border-top: 1px solid var(--line);
  font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--cream); font-weight: 400;
}
.form-group-title:first-of-type { margin-top: 0; }
