/* ============================================================
   PREZ MEDIA LLC — "Midnight Signal" design system
   Cinematic dark-studio aesthetic. Deep indigo ink, cool paper,
   iris-violet signal. No orange.
   Type: Archivo (variable, expanded display) / Instrument Serif
   (italic accents) / IBM Plex Mono (timecode labels).
   ============================================================ */

:root {
  --ink: #06070f;
  --ink-2: #0a0d1a;
  --ink-3: #111425;
  --paper: #eceaf6;
  --paper-dim: rgba(236, 234, 246, 0.64);
  --paper-faint: rgba(236, 234, 246, 0.40);
  --hairline: rgba(236, 234, 246, 0.13);
  --iris: #8c7bff;
  --iris-bright: #a99cff;
  --iris-soft: rgba(140, 123, 255, 0.14);
  --blue: #4f7cff;
  --max: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --display: "Archivo", "Helvetica Neue", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--iris); color: var(--ink); }

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

/* Film-grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 90;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Hide elements pre-reveal only when JS + motion confirmed */
.js-motion [data-reveal] { opacity: 0; }

/* ---------- type utilities ---------- */

.mono-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-faint);
}

.mono-label .tick { color: var(--iris); }

/* ---------- header ---------- */

.site-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-head.scrolled {
  background: rgba(6, 7, 15, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
}

.wordmark {
  font-weight: 800;
  font-stretch: 125%;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wordmark .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--iris);
  box-shadow: 0 0 12px rgba(140, 123, 255, 0.8);
  animation: rec-blink 2.4s ease-in-out infinite;
}
@keyframes rec-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
@media (prefers-reduced-motion: reduce) {
  .wordmark .dot { animation: none; }
}

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper-dim);
  background-image: linear-gradient(var(--iris), var(--iris));
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  padding-bottom: 3px;
  transition: color 0.25s ease, background-size 0.3s ease;
}
.site-nav a:hover { color: var(--paper); background-size: 100% 1px; }
.site-nav a.btn { background-image: none; padding-bottom: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--iris);
  border: 1px solid var(--iris);
  border-radius: 999px;
  padding: 12px 24px;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}
.btn:hover {
  background: transparent;
  color: var(--iris-bright);
  box-shadow: 0 0 24px rgba(140, 123, 255, 0.25);
}

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--hairline);
}
.btn--ghost:hover {
  border-color: var(--iris);
  color: var(--iris-bright);
  background: transparent;
}

@media (max-width: 760px) {
  .site-nav a:not(.btn) { display: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 96px var(--gutter) 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 620px at 80% 12%, rgba(79, 124, 255, 0.11), transparent 62%),
    radial-gradient(900px 560px at 14% 88%, rgba(140, 123, 255, 0.09), transparent 58%),
    var(--ink);
}
.hero-bg::after {
  /* faint frame-grid, like a viewfinder */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 25% 25%;
  opacity: 0.2;
  mask-image: radial-gradient(70% 70% at 50% 45%, black, transparent);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 45%, black, transparent);
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: clamp(22px, 3.5vh, 42px);
}

.rec-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--paper-dim);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 8px 16px;
}
.rec-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--iris);
  box-shadow: 0 0 10px rgba(140, 123, 255, 0.9);
  animation: rec-blink 1.6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .rec-badge .dot { animation: none; }
}

.hero-title {
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(48px, 8.6vw, 122px);
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  font-stretch: 100%;
  letter-spacing: 0;
  color: var(--iris-bright);
  font-size: 1.04em;
}

/* sub + CTAs left, monitor panel right */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: end;
  margin-top: clamp(18px, 3vh, 32px);
}

.hero-sub {
  max-width: 540px;
  color: var(--paper-dim);
  font-size: clamp(16px, 1.4vw, 19px);
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: clamp(22px, 3.5vh, 38px);
}

/* the preview monitor */
.hero-panel {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  overflow: hidden;
  background: var(--ink-3);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(6, 7, 15, 0.6);
}
.hero-panel .panel-bar,
.hero-panel .panel-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-faint);
  background: rgba(6, 7, 15, 0.65);
}
.hero-panel .panel-bar { border-bottom: 1px solid var(--hairline); }
.hero-panel .panel-foot { border-top: 1px solid var(--hairline); }
.hero-panel .panel-bar .rec { color: var(--iris-bright); }
.hero-panel img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.06);
}

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px 20px;
  border-top: 1px solid var(--hairline);
  margin-top: clamp(26px, 4.5vh, 52px);
  padding: 16px 0 20px;
}
.hero-foot .stat-chip strong {
  font-weight: 800;
  font-stretch: 125%;
  font-size: 22px;
  color: var(--paper);
  margin-right: 8px;
}

@media (max-width: 880px) {
  .hero-split { grid-template-columns: 1fr; align-items: start; }
  .hero-panel { max-width: 560px; }
}

/* ---------- ticker ---------- */

.ticker {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  padding: 16px 0;
  background: var(--ink-2);
  position: relative;
  z-index: 2;
}
.ticker-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: ticker-scroll 36s linear infinite;
}
.ticker-track span {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-dim);
  white-space: nowrap;
  padding: 0 18px;
}
.ticker-track span i {
  font-style: normal;
  color: var(--iris);
  padding-right: 36px;
}
@keyframes ticker-scroll {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ---------- layout shell + snake line ---------- */

.page-body { position: relative; }

/* THE SNAKE — full-page decorative path behind the content.
   Path geometry is built at runtime (js/main.js) from the page
   height; the stroke draws itself with scroll via dashoffset. */
.snake {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.snake svg { display: block; width: 100%; height: 100%; overflow: visible; }
.snake .snake-track {
  stroke: var(--paper);
  opacity: 0.07;
  stroke-width: 1.5;
  fill: none;
}
.snake .snake-draw {
  /* one constant signal color top to bottom — never background-reactive */
  stroke: var(--iris);
  stroke-width: 2;
  fill: none;
  opacity: 0.62;
  filter: drop-shadow(0 0 7px rgba(140, 123, 255, 0.5));
}
.snake .snake-dot {
  fill: var(--iris-bright);
  filter: drop-shadow(0 0 9px rgba(140, 123, 255, 0.95));
}

/* content rides above the snake */
.section { position: relative; z-index: 1; }

.section {
  padding: clamp(90px, 14vh, 160px) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}

.section-head { margin-bottom: clamp(40px, 6vh, 72px); }
.section-head .mono-label { display: block; margin-bottom: 18px; }
.section-title {
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  max-width: 14em;
}
.section-title .accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  font-stretch: 100%;
  color: var(--iris-bright);
}

/* ---------- services ---------- */

.service-rows { border-top: 1px solid var(--hairline); }
.service-row {
  display: grid;
  grid-template-columns: 48px 140px 1.1fr 1.5fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  position: relative;
  transition: transform 0.35s ease;
}
.service-row:hover { transform: translateX(12px); }
@media (prefers-reduced-motion: reduce) {
  .service-row { transition: none; }
  .service-row:hover { transform: none; }
}
.service-row .idx {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--paper-faint);
}
.service-row .thumb {
  width: 140px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 5px;
  filter: saturate(0.45) contrast(1.05) brightness(0.95);
  transition: filter 0.4s ease, transform 0.4s ease;
}
.service-row:hover .thumb {
  filter: saturate(1) contrast(1.05) brightness(1);
  transform: scale(1.04);
}
@media (prefers-reduced-motion: reduce) {
  .service-row .thumb { transition: none; }
  .service-row:hover .thumb { transform: none; }
}
.service-row h3 {
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(19px, 2.1vw, 27px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
}
.service-row:hover h3 { color: var(--iris-bright); }
.service-row p {
  color: var(--paper-dim);
  font-size: 15.5px;
  max-width: 44ch;
}
.service-row .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-faint);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}

@media (max-width: 880px) {
  .service-row {
    grid-template-columns: 36px 96px 1fr;
    gap: 10px 16px;
    align-items: center;
  }
  .service-row .thumb { width: 96px; }
  .service-row p { grid-column: 1 / -1; }
  .service-row .tag { display: none; }
}

/* ---------- work / metric ---------- */

.work {
  background: rgba(10, 13, 26, 0.72);
  max-width: none;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.work-inner { max-width: var(--max); margin: 0 auto; }

.metric {
  padding: clamp(30px, 5vh, 60px) 0 clamp(50px, 8vh, 90px);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: clamp(50px, 8vh, 90px);
}
.metric .big {
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(44px, 12.5vw, 190px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  display: block;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(100deg, var(--paper) 30%, var(--iris-bright) 78%, var(--blue) 105%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.metric .caption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.collage {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: clamp(16px, 2.5vw, 32px);
}
.collage .frame:nth-child(1) { grid-row: span 2; }

.frame {
  position: relative;
  overflow: hidden;
  background: var(--ink-3);
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.06);
  transition: transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.frame:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  .frame img { transition: none; }
  .frame:hover img { transform: none; }
}

/* viewfinder corner brackets */
.frame::before,
.frame::after,
.frame .corners::before,
.frame .corners::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--paper);
  z-index: 2;
  opacity: 0.85;
}
.frame::before { top: 12px; left: 12px; border-right: none; border-bottom: none; }
.frame::after { top: 12px; right: 12px; border-left: none; border-bottom: none; }
.frame .corners::before { bottom: 12px; left: 12px; border-right: none; border-top: none; }
.frame .corners::after { bottom: 12px; right: 12px; border-left: none; border-top: none; }

.frame .frame-label {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

@media (max-width: 820px) {
  .collage { grid-template-columns: 1fr; }
  .collage .frame:nth-child(1) { grid-row: auto; }
  .frame img { aspect-ratio: 16 / 10; }
}

.cap-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(36px, 5vh, 56px);
}
.cap-list span {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-dim);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 9px 18px;
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.about-copy p {
  color: var(--paper-dim);
  margin-bottom: 1.2em;
  font-size: clamp(16px, 1.35vw, 18.5px);
}
.about-copy p strong { color: var(--paper); font-weight: 600; }
.about-copy .lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35;
  color: var(--paper);
  margin-bottom: 1em;
}
.gear-strip {
  display: block;
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  color: var(--paper-faint);
  line-height: 2;
}
.gear-strip .tick { color: var(--iris); }
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ---------- CTA bands (mid-page entry points to #contact) ---------- */

.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: clamp(44px, 6vh, 68px);
}
.cta-band .cta-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.3vw, 29px);
  line-height: 1.3;
  color: var(--paper);
}
.cta-band .cta-line .accent { color: var(--iris-bright); }

.about-cta { margin-top: 26px; }

/* ---------- contact ---------- */

.contact { text-align: left; }
.contact-title {
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(44px, 8vw, 110px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  margin-bottom: clamp(28px, 4vh, 48px);
}
.contact-title .accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  font-stretch: 100%;
  color: var(--iris-bright);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-form { display: grid; gap: 18px; }
.contact-form label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-faint);
  margin-bottom: 8px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  color: var(--paper);
  font-family: var(--display);
  font-size: 17px;
  padding: 10px 2px 14px;
  transition: border-color 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--iris);
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form .btn { justify-self: start; margin-top: 8px; }

.contact-details { display: grid; gap: 26px; }
.contact-details .item .mono-label { display: block; margin-bottom: 6px; }
.contact-details .item a,
.contact-details .item span {
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 600;
  text-decoration: none;
}
.contact-details .item a:hover { color: var(--iris-bright); }

/* ---------- footer ---------- */

.site-foot {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--hairline);
  padding: 36px var(--gutter) 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--ink-2);
}
.site-foot .legal {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--paper-faint);
}
.site-foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-foot nav a {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-dim);
  text-decoration: none;
}
.site-foot nav a:hover { color: var(--iris-bright); }

/* ---------- legal pages (privacy / terms) ---------- */

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 160px var(--gutter) 100px;
}
.legal-page h1 {
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(36px, 6vw, 64px);
  text-transform: uppercase;
  line-height: 1.0;
  margin-bottom: 10px;
}
.legal-page .effective {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-faint);
  display: block;
  margin-bottom: 48px;
}
.legal-page h2 {
  font-weight: 700;
  font-stretch: 115%;
  font-size: 22px;
  margin: 44px 0 14px;
}
.legal-page p, .legal-page li {
  color: var(--paper-dim);
  margin-bottom: 14px;
  font-size: 16.5px;
}
.legal-page ul { padding-left: 22px; margin-bottom: 14px; }
.legal-page strong { color: var(--paper); }
.legal-page blockquote {
  border-left: 3px solid var(--iris);
  background: var(--iris-soft);
  padding: 18px 22px;
  margin: 22px 0;
  border-radius: 0 6px 6px 0;
}
.legal-page blockquote p { color: var(--paper); margin-bottom: 0; }
.legal-page a { color: var(--iris-bright); }
