/* ============================================================
   OPULENT CREATIVES — modelled on ciridae.com
   Constellation mark · alternating dark/cream bands ·
   mono eyebrows · frosted glass · cinematic black canvas
   ============================================================ */

/* Actual typefaces from the reference site (with free fallbacks).
   NOTE: Pragmatica Cond & Monument Grotesk Mono are commercial/trial
   fonts — for production, license them or keep the Google fallbacks. */
@font-face {
  font-family: 'Pragmatica Cond';
  src: url('https://cdn.prod.website-files.com/68532a35829494931a29b25b/6853fdba9c58625939c1be42_PragmaticaCond-Book.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Pragmatica';
  src: url('https://cdn.prod.website-files.com/68532a35829494931a29b25b/687cef288e6840a0f4e9be10_Pragmatica-Book.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'ABC monument grotesk mono';
  src: url('https://cdn.prod.website-files.com/68532a35829494931a29b25b/6853fd8eec5e7315c3bdc738_ABCMonumentGroteskMono-Regular-Trial.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --void: #0b0b0b;
  --carbon: #1c1d1f;
  --carbon-2: #262829;
  --cream: #e8e4dc;
  --ink: #0b0b0b;
  --ash: #858585;
  --fog: #cecece;
  --pure: #ffffff;
  --ember: #cc6437;

  --font-display: 'Pragmatica Cond', 'Barlow Condensed', ui-sans-serif, sans-serif;
  --font-logo: 'Pragmatica Cond', 'Barlow Condensed', ui-sans-serif, sans-serif;
  --font-mono: 'ABC monument grotesk mono', 'Roboto Mono', ui-monospace, monospace;
  --font-sans: 'Pragmatica', 'Inter', ui-sans-serif, sans-serif;

  --page-max: 1200px;
  --radius-pill: 1440px;
  --radius-card: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--void);
  color: var(--pure);
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* ---------------- Mark (constellation) ---------------- */
.mark { display: block; height: auto; }
.mark-hero { width: 188px; }
.mark-card { width: 72px; opacity: 0.92; margin: 10px 0; }
.mark-footer { width: 168px; }
.mark-decor {
  width: 480px; opacity: 0.06; margin-top: 56px;
}

/* ---------------- Pills ---------------- */
.pill {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pure);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-pill);
  padding: 11px 22px;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.pill:hover { background: var(--pure); color: var(--void); border-color: var(--pure); }
.pill-solid { background: rgba(255,255,255,0.06); }

/* ---------------- Header ---------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 16px;
  padding: 22px 32px;
  mix-blend-mode: difference;
}
.nav-cta { justify-self: start; }
.nav-logo { justify-self: center; display: inline-flex; align-items: center; }
.nav-logo img { height: 22px; width: auto; display: block; }
.menu-btn { justify-self: end; display: inline-flex; align-items: center; gap: 12px; }
.ham { display: inline-flex; flex-direction: column; gap: 4px; width: 16px; }
.ham i { display: block; height: 1px; width: 100%; background: currentColor; }

/* ---------------- Nav overlay ---------------- */
.nav-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: var(--void);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
}
.nav-overlay.open { opacity: 1; visibility: visible; }

/* Menu logo — "loads in" (left→right reveal of the sparkles) when the menu opens */
.menu-logo {
  position: absolute; top: 13vh; left: 0; right: 0;
  display: flex; justify-content: center; pointer-events: none;
}
.menu-logo img {
  width: 132px; height: auto; display: block;
  clip-path: inset(0 100% 0 0);
  opacity: 0; transform: scale(0.92); filter: blur(4px);
}
.nav-overlay.open .menu-logo img {
  clip-path: inset(0 0 0 0);
  opacity: 1; transform: scale(1); filter: blur(0);
  transition:
    clip-path 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.18s,
    opacity 0.55s ease 0.18s,
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.18s,
    filter 0.7s ease 0.18s;
}
.nav-close {
  position: absolute; top: 22px; right: 32px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--pure); background: transparent;
  border: 1px solid rgba(255,255,255,0.35); border-radius: var(--radius-pill);
  padding: 11px 22px; cursor: pointer;
}
.nav-list { list-style: none; text-align: center; }
.nav-list a {
  display: block; padding: 5px 0;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(30px, 5vw, 44px); line-height: 1.1;
  text-transform: uppercase; letter-spacing: -0.02em; color: var(--fog);
  transition: color .25s ease, letter-spacing .3s ease;
}
.nav-list a:hover { color: var(--pure); letter-spacing: 0.01em; }
.nav-meta {
  position: absolute; bottom: 32px; width: 100%;
  max-width: var(--page-max); padding: 0 32px;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ash);
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--void); overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 80% at 50% 45%, transparent 0%, rgba(11,11,11,0.35) 60%, rgba(11,11,11,0.8) 100%),
    linear-gradient(180deg, rgba(11,11,11,0.55) 0%, rgba(11,11,11,0.25) 35%, rgba(11,11,11,0.55) 100%);
}
.hero-center {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 26px;
}
.hero .hero-sub { z-index: 2; }
.wordmark {
  font-family: var(--font-logo); font-weight: 400;
  font-size: 30px; letter-spacing: 0.16em; padding-left: 0.16em;
  text-transform: uppercase; line-height: 1;
}
.hero-sub {
  position: absolute; bottom: 48px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 11px; line-height: 1.7;
  letter-spacing: 0.06em; text-transform: uppercase; text-align: center;
  color: var(--fog);
}

/* Flanking edge text — horizontal, vertically centred */
.flank {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-family: var(--font-sans); font-size: 13px; letter-spacing: 0.01em;
  text-transform: uppercase; color: var(--pure); white-space: nowrap; z-index: 5;
}
.flank-left { left: 24px; }
.flank-right { right: 24px; }

/* ---------------- Bands / sections ---------------- */
.band {
  position: relative;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 120px 32px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.band-light {
  max-width: none; width: 100%;
  background: var(--cream); color: var(--ink);
}
.band-light .eyebrow { color: var(--ink); }

.eyebrow {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--pure);
  margin-bottom: 40px;
}
.statement {
  font-family: var(--font-display); font-weight: 400;
  font-size: 32px; line-height: 1.05;
  letter-spacing: -0.64px; text-transform: uppercase; max-width: 880px;
}
.heading {
  font-family: var(--font-display); font-weight: 400;
  font-size: 32px; line-height: 1.05;
  letter-spacing: -0.64px; text-transform: uppercase;
}
.heading-ink { color: var(--ink); }

/* ---------------- Proof band ---------------- */
.proof-row {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(36px, 7vw, 96px); flex-wrap: wrap; width: 100%;
}
.proof-logo {
  height: 30px; width: auto; display: block;
  opacity: 0.72; transition: opacity .25s ease;
  filter: grayscale(1);
}
.proof-logo--p7 { height: 48px; }   /* stacked mark needs a touch more height */
.proof-logo:hover { opacity: 1; }

/* ---------------- Studio statement — logo build-on-scroll ---------------- */
.statement-band {
  position: relative; width: 100%;
  padding: 120px 32px 160px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.statement-inner {
  display: flex; flex-direction: column; align-items: center;
  max-width: var(--page-max);
}
.logo-build {
  /* --p (0 → 1) is driven by scroll position via script.js */
  --p: 0;
  position: relative;
  margin-top: clamp(70px, 12vh, 150px);
  display: flex; flex-direction: column; align-items: center;
  width: min(420px, 72vw);
}
.mark-build {
  width: 100%;
  opacity: var(--p);
  transform: scale(calc(0.74 + 0.26 * var(--p)));
  filter: blur(calc((1 - var(--p)) * 7px));
  will-change: opacity, transform, filter;
}
.mark-build-reflection {
  position: absolute; top: 100%; left: 0;
  margin-top: 14px;
  transform: scaleY(-1) scale(calc(0.74 + 0.26 * var(--p)));
  transform-origin: top center;
  opacity: calc(var(--p) * 0.18);
  filter: blur(calc((1 - var(--p)) * 7px));
  -webkit-mask: linear-gradient(180deg, #000 0%, transparent 72%);
  mask: linear-gradient(180deg, #000 0%, transparent 72%);
}

/* ---------------- Sky + frosted cards ---------------- */
.sky {
  position: relative; width: 100%;
  padding: 160px 24px 200px;
  background: linear-gradient(180deg, var(--void) 0%, #0a1320 22%, #0c1a27 52%, #0a0f15 84%, var(--void) 100%);
  overflow: hidden;
}
.stars { position: absolute; top: 60px; left: 0; width: 1px; height: 1px; }
.mountains { position: absolute; bottom: 0; left: 0; width: 100%; height: 240px; }
.card-row {
  position: relative; z-index: 2;
  max-width: var(--page-max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  align-items: start;
}
.glass-card {
  background: rgba(255,255,255,0.05);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-card);
  padding: 28px 26px 36px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  min-height: 440px;
}
.glass-card:nth-child(2) { margin-top: 56px; }
.glass-card:nth-child(3) { margin-top: 112px; }
.num-pill {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  border: 1px solid rgba(255,255,255,0.4); border-radius: var(--radius-pill);
  padding: 4px 12px; color: var(--pure);
}
.card-title {
  font-family: var(--font-display); font-weight: 400; font-size: 24px;
  letter-spacing: -0.24px; text-transform: uppercase; margin-top: 22px;
}
.card-body {
  font-family: var(--font-sans); font-size: 14px; line-height: 1.55;
  color: var(--fog); margin-top: auto;
}

/* ---------------- Narrative ---------------- */
.narrative { gap: 24px; }
.narrative .lead {
  font-family: var(--font-display); font-weight: 400;
  font-size: 24px; line-height: 1.15; letter-spacing: -0.24px;
  max-width: 720px; text-transform: uppercase;
}
.narrative .body-col {
  font-family: var(--font-sans); font-size: 15px; line-height: 1.55;
  color: var(--fog); max-width: 560px;
}

/* ---------------- Capabilities accordion ---------------- */
.capabilities .heading { margin-bottom: 56px; }
.accordion {
  width: 100%; max-width: var(--page-max);
  display: flex; gap: 14px; height: 460px;
}
.panel {
  position: relative; flex: 1 1 0; overflow: hidden;
  border-radius: var(--radius-card); cursor: pointer;
  display: flex; flex-direction: column; align-items: center;
  padding: 28px 18px;
  transition: flex-grow .55s cubic-bezier(.4,0,.2,1);
  outline: none;
}
.panel::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  transition: transform .6s ease;
}
.panel::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
}
.panel--1::before { background: url('assets/work/work-5.jpg') center/cover no-repeat; }
.panel--2::before { background: url('assets/work/work-2.jpg') center/cover no-repeat; }
.panel--3::before { background: url('assets/work/work-1.jpg') center/cover no-repeat; }
.panel--4::before { background: url('assets/work/work-6.jpg') center/cover no-repeat; }
.panel > * { position: relative; z-index: 2; }
.panel-title {
  font-family: var(--font-display); font-weight: 400; font-size: 20px;
  letter-spacing: -0.2px; text-transform: uppercase; text-align: center;
  margin-top: 28px;
}
.panel-body {
  font-family: var(--font-sans); font-size: 14px; line-height: 1.55;
  color: var(--fog); text-align: center; max-width: 340px;
  opacity: 0; transition: opacity .4s ease .15s;
  margin-top: 28px; pointer-events: none;
}
.panel.is-open { flex-grow: 3; }
.panel.is-open .panel-body { opacity: 1; }

/* ---------------- Team ---------------- */
.team .heading { margin-bottom: 56px; }
.team-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  width: 100%; max-width: 860px;
}
.member {
  text-align: left; padding: 32px;
  border: 1px solid rgba(11,11,11,0.14); border-radius: var(--radius-card);
  display: flex; flex-direction: column; gap: 10px;
}
.member-mark {
  width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(11,11,11,0.3); border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: 13px; color: var(--ink); margin-bottom: 8px;
}
.member-name {
  font-family: var(--font-display); font-weight: 400; font-size: 24px;
  text-transform: uppercase; letter-spacing: -0.24px; color: var(--ink);
}
.member-role {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ember);
}
.member-bio {
  font-family: var(--font-sans); font-size: 14px; line-height: 1.55;
  color: rgba(11,11,11,0.62); margin-top: 6px;
}

/* ---------------- Testimonials ---------------- */
.testimonials .heading { margin-bottom: 56px; }
.quote-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  width: 100%; max-width: var(--page-max);
}
.quote-card {
  background: var(--carbon); border-radius: var(--radius-card);
  padding: 36px 36px 32px; text-align: left;
  display: flex; flex-direction: column; min-height: 300px;
}
.quote-mark {
  font-family: var(--font-logo); font-weight: 900; font-size: 64px; line-height: 0.6;
  color: var(--ember); margin-bottom: 20px;
}
.quote-text {
  font-family: var(--font-display); font-weight: 400; font-size: 20px;
  line-height: 1.2; letter-spacing: -0.2px; text-transform: uppercase; color: var(--pure);
}
.quote-foot {
  margin-top: auto; padding-top: 28px;
  display: flex; align-items: center; gap: 14px;
}
.quote-name {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ember);
  border: 1px solid var(--ember); border-radius: var(--radius-pill); padding: 4px 12px;
}
.quote-org {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ash);
}

/* ---------------- Selected work marquee ---------------- */
.work-head { padding-bottom: 56px; }
.marquee {
  width: 100%; overflow: hidden; padding-bottom: 120px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  display: flex; gap: 18px; width: max-content;
  animation: marquee 64s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.work-item {
  flex: 0 0 auto; width: 300px; height: 410px;
  border-radius: var(--radius-card); overflow: hidden; margin: 0;
}
.work-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------- Closing ---------------- */
.closing { padding-bottom: 0; }
.closing .statement { max-width: 1040px; }

/* ---------------- Footer ---------------- */
.site-footer {
  position: relative; width: 100%; min-height: 100vh;
  display: flex; align-items: center; justify-content: flex-start;
  flex-direction: column; padding-top: 20vh;
  overflow: hidden;
}
.site-footer .flank { top: 64%; }
.footer-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(11,11,11,0.55) 0%, rgba(11,11,11,0.35) 40%, rgba(11,11,11,0.7) 100%),
    url('assets/work/work-1.jpg') center/cover no-repeat;
}
.footer-center {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.wordmark-footer { font-size: 26px; }
.footer-actions { display: flex; gap: 12px; margin-top: 22vh; }
.footer-nav {
  display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 28px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
}
.footer-nav a { color: var(--fog); padding: 2px 0; transition: color .2s ease; }
.footer-nav a:hover { color: var(--pure); }
.footer-nav .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--fog); margin: 8px 0; }
.footer-copy {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ash);
}

/* ---------------- Reveal ---------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 860px) {
  .card-row { grid-template-columns: 1fr; }
  .glass-card:nth-child(2), .glass-card:nth-child(3) { margin-top: 0; }
  .glass-card { min-height: 0; }
  .team-row, .quote-row { grid-template-columns: 1fr; }
  .accordion { flex-direction: column; height: auto; }
  .panel { min-height: 90px; }
  .panel-title { writing-mode: horizontal-tb; transform: none; margin-top: 18px; }
  .panel.is-open { flex-grow: 1; }
  .panel:not(.is-open) .panel-body { display: none; }
  .flank { display: none; }
  .band { padding: 80px 24px; }
  .work-item { width: 220px; height: 300px; }
  .marquee { padding-bottom: 80px; }
  /* Section 2 — stack the trusted-by logos vertically */
  .proof-row { flex-direction: column; gap: 26px; }
  /* Section 3 — tighten the build-up logo */
  .statement-band { padding: 80px 24px 120px; }
  .logo-build { width: min(300px, 66vw); margin-top: clamp(56px, 9vh, 90px); }
}
/* Mobile header — frosted floating bar (matches ciridae.com) */
@media (max-width: 767px) {
  .site-header {
    mix-blend-mode: normal;
    left: 10px; right: 10px; top: 12px;
    padding: 7px 8px 7px 8px;
    column-gap: 10px;
    background: rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
  }
  .nav-logo img { height: 18px; }
  .menu-label { display: none; }              /* show only the hamburger on mobile */
  .menu-btn {
    border: none; background: transparent;
    padding: 8px 12px; justify-self: end;
  }
  .ham { width: 20px; gap: 5px; }
  .ham i { height: 1.5px; }

  /* Over light sections the bar switches to dark content (like ciridae) */
  .site-header.nav-on-light {
    background: rgba(255, 255, 255, 0.45);
    border-color: rgba(11, 11, 11, 0.12);
  }
  .site-header.nav-on-light .nav-logo img { filter: brightness(0); }
  .site-header.nav-on-light .nav-cta {
    color: var(--ink); border-color: rgba(11, 11, 11, 0.4);
  }
  .site-header.nav-on-light .nav-cta:hover {
    background: var(--ink); color: var(--pure); border-color: var(--ink);
  }
  .site-header.nav-on-light .ham i { background: var(--ink); }
}
@media (max-width: 520px) {
  .nav-cta { font-size: 11px; padding: 9px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .panel { transition: none; }
  .marquee-track { animation: none; }
  .menu-logo img,
  .nav-overlay.open .menu-logo img {
    clip-path: inset(0); opacity: 1; transform: none; filter: none; transition: none;
  }
}
