/* =========================================================
   Opulent Creatives — styles.css
   Adapted from the "Studio Gruhl" matte-black gallery system
   (DESIGN.md) for Opulent: Helvetica grotesque, carbon canvas,
   achromatic, flat (no shadows), 12px radius, full-bleed media.
   ========================================================= */

:root {
  /* Surfaces */
  --carbon: #2e2e30;        /* page canvas */
  --obsidian: #18181b;      /* nav, deep cards, footer */
  --lime: #eef0b1;          /* rare inverted band */
  --white: #ffffff;         /* text, hairline borders */
  --ash: #969696;           /* muted body / captions */
  --black: #000000;

  /* Accent (cobalt blue) */
  --accent: #0047ab;
  --accent-hover: #00368a;
  --accent-ink: #ffffff;

  /* Lines & glass (theme-aware) */
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.45);
  --glass: rgba(24, 24, 27, 0.55);
  --glass-card: rgba(24, 24, 27, 0.42);
  --glass-menu: rgba(20, 20, 22, 0.72);

  /* Type */
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Radius */
  --r-card: 12px;
  --r-icon: 9px;
  --r-pill: 9999px;

  /* Rhythm */
  --section-gap: 120px;
  --maxw: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Light "gallery" theme ---------- */
[data-theme="light"] {
  --carbon: #f4f2ec;        /* warm off-white canvas */
  --obsidian: #ffffff;      /* raised surfaces, nav, footer, inputs */
  --white: #1a1a1c;         /* foreground / text */
  --ash: #6f6e69;           /* muted */
  --black: rgba(0, 0, 0, 0.18);
  --line: rgba(0, 0, 0, 0.12);
  --line-strong: rgba(0, 0, 0, 0.28);
  --glass: rgba(255, 255, 255, 0.6);
  --glass-card: rgba(255, 255, 255, 0.5);
  --glass-menu: rgba(244, 242, 236, 0.72);
}

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

/* Smooth theme flip */
body, .card, .price, .footer, .field input, .field textarea,
.info-card, .nav__pill, .float-cta, .menu {
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--carbon);
  color: var(--white);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---------- Shared type ---------- */
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ash);
  margin: 0 0 32px;
  font-weight: 400;
}
.eyebrow--dark { color: rgba(255,255,255,0.7); }

.block__title {
  font-size: clamp(1.6rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0 0 48px;
  max-width: 18ch;
}
.block__lead {
  font-size: clamp(1.5rem, 3.6vw, 2.5rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 56px;
  max-width: 22ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 9px 18px;
  border-radius: var(--r-card);
  transition: all 0.35s var(--ease);
  cursor: pointer;
  text-transform: uppercase;
}
.btn--ghost { background: transparent; color: var(--white); border: 1px solid var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--carbon); }
.btn--filled { background: var(--carbon); color: var(--white); border: 1px solid var(--black); }
.btn--filled:hover { background: var(--obsidian); }

/* ---------- Floating pill nav ---------- */
.nav {
  position: fixed; top: 24px; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center;
  pointer-events: none;
}
.nav__pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: 22px;
  background: var(--obsidian);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 9px 18px;
}
.nav__icon {
  background: none; border: none; color: var(--white);
  display: flex; align-items: center; cursor: pointer; padding: 0;
  opacity: 0.9; transition: opacity 0.3s var(--ease);
}
.nav__icon:hover { opacity: 1; }
.icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: inline-flex; }
.nav__mono {
  font-size: 15px; font-weight: 700; letter-spacing: 0.04em;
  padding: 0 4px;
}
.nav__logo { display: flex; align-items: center; padding: 0 6px; }
.nav__logo img { height: 13px; width: auto; display: block; }
[data-theme="light"] .nav__logo img { filter: invert(1); }

/* ---------- Fullscreen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 100;
  background: var(--obsidian);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.menu.open { opacity: 1; visibility: visible; }
.menu__close {
  position: absolute; top: 30px; right: clamp(20px, 5vw, 48px);
  background: none; border: none; color: var(--white);
  font-family: var(--font); font-size: 13px; letter-spacing: 0.18em; cursor: pointer;
}
.menu__list { list-style: none; margin: 0; padding: 0; text-align: center; }
.menu__list a {
  display: block;
  font-size: clamp(2rem, 8vw, 4.5rem);
  font-weight: 700; line-height: 1.05;
  text-transform: uppercase; letter-spacing: -0.02em;
  transition: color 0.3s var(--ease);
}
.menu__list a:hover { color: var(--ash); }
.menu__meta {
  margin-top: 48px; display: flex; gap: 28px;
  font-size: 10px; letter-spacing: 0.2em; color: var(--ash); text-transform: uppercase;
}
.menu__meta a:hover { color: var(--white); }

/* ---------- Manifesto hero ---------- */
.manifesto {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px clamp(20px, 5vw, 59px) 59px;
  max-width: var(--maxw); margin: 0 auto;
}
/* Full-bleed media backing with left-weighted dark gradient */
.manifesto__media {
  position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100vw; z-index: 0;
  background-image:
    linear-gradient(180deg, transparent 55%, var(--carbon) 99%),
    linear-gradient(90deg, rgba(8, 8, 10, 0.88) 0%, rgba(8, 8, 10, 0.55) 48%, rgba(8, 8, 10, 0.18) 100%),
    linear-gradient(180deg, rgba(8, 8, 10, 0.34) 0%, rgba(8, 8, 10, 0.16) 45%, rgba(8, 8, 10, 0.45) 100%),
    url("assets/hero.jpg");
  background-size: cover;
  background-position: center;
}
/* Fine grain over the hero — softens the blend into the next section */
.manifesto__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  opacity: 0.1;
  mix-blend-mode: overlay;
}
/* Keep all hero text above the media, and light over the darkened image */
.manifesto__kicker, .manifesto__headline, .manifesto__foot { position: relative; z-index: 1; }
.manifesto__headline { color: #ffffff; text-shadow: 0 2px 22px rgba(0, 0, 0, 0.35); }
.manifesto__kicker { color: rgba(255, 255, 255, 0.88); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); }
.manifesto__sub { color: rgba(255, 255, 255, 0.95); text-shadow: 0 1px 16px rgba(0, 0, 0, 0.6); }
.manifesto .btn--ghost { color: #ffffff; border-color: rgba(255, 255, 255, 0.55); }
.manifesto .btn--ghost:hover { background: #ffffff; color: #14140f; }
.manifesto__kicker {
  position: relative; z-index: 1;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7); margin: 0 0 40px;
}
.manifesto__headline {
  font-size: clamp(3rem, 11vw, 8rem);
  font-weight: 700; line-height: 1.0;
  letter-spacing: -0.03em; text-transform: uppercase;
  margin: 0; max-width: 14ch;
}
.manifesto__foot {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap; margin-top: 59px;
}
.manifesto__sub {
  max-width: 46ch; color: rgba(255, 255, 255, 0.95); font-size: 16px; margin: 0;
}

/* ---------- Full-bleed video ---------- */
.reel { padding: 0 clamp(20px, 5vw, 59px); }
.reel__frame {
  position: relative;
  height: 80vh; min-height: 460px;
  border-radius: var(--r-card);
  overflow: hidden;
  background: linear-gradient(135deg, #232325, #18181b);
}
.reel__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Floating info card */
.info-card {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 16px;
  background: var(--obsidian);
  border-radius: var(--r-card);
  padding: 16px 24px;
  width: min(440px, calc(100% - 48px));
}
.info-card__tile {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: var(--r-icon);
  background: #ffffff; color: #14140f;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}
.info-card__text { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.info-card__title { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; color: #ffffff; }
.info-card__desc { font-size: 13px; color: rgba(255, 255, 255, 0.72); line-height: 1.3; }

/* ---------- Trusted-by logo carousel ---------- */
.logos { max-width: var(--maxw); margin: 0 auto; padding: 56px clamp(20px, 5vw, 59px); }
.logos__label { text-align: center; margin-bottom: 28px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex; align-items: center; width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-item {
  flex: none; margin: 0 40px;
  font-size: clamp(18px, 2.6vw, 24px); font-weight: 700; letter-spacing: 0.1em;
  color: var(--ash); white-space: nowrap; opacity: 0.65;
  transition: opacity 0.3s var(--ease), color 0.3s var(--ease);
}
.logo-item:hover { opacity: 1; color: var(--white); }
.logo-item img {
  height: 44px; width: auto; max-width: 220px; object-fit: contain; display: block;
  filter: brightness(0) invert(1);            /* normalise every logo to white */
  transition: filter 0.35s var(--ease);
}
.logo-item:hover img { filter: none; }        /* reveal real brand colour on hover */
[data-theme="light"] .logo-item img { filter: brightness(0); }   /* black on the light theme */
[data-theme="light"] .logo-item:hover img { filter: none; }

/* ---------- Results / stats ---------- */
.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  max-width: 680px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 44px 0;
}
.stat__num {
  display: block; font-size: clamp(2rem, 5.5vw, 3.6rem); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1; color: var(--accent);
}
.stat__label {
  display: block; margin-top: 12px; font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ash);
}

/* ---------- Generic block ---------- */
.block {
  max-width: var(--maxw); margin: 0 auto;
  padding: var(--section-gap) clamp(20px, 5vw, 59px);
}
.block--center { text-align: center; }
.block--center .eyebrow { color: var(--ash); }

/* ---------- Prose ---------- */
.prose__lead {
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  font-weight: 500; line-height: 1.12; letter-spacing: -0.02em;
  margin: 0 0 32px; max-width: 24ch;
}
.prose p:not(.prose__lead) { color: var(--ash); max-width: 62ch; margin: 0 0 20px; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 10px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--carbon);
  border-radius: var(--r-card);
  padding: 28px;
}
.card--lined { border: 1px solid var(--line); }
.card__index { display: block; font-size: 10px; letter-spacing: 0.2em; color: var(--ash); margin-bottom: 24px; }
.card h3 { font-size: 16px; font-weight: 700; letter-spacing: 0.01em; margin: 0 0 12px; text-transform: uppercase; }
.card p { color: var(--ash); font-size: 15px; margin: 0; }
.card__avatar {
  width: 48px; height: 48px; border-radius: var(--r-icon);
  background: var(--white); color: var(--obsidian);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; margin-bottom: 24px;
}
.card__role { color: var(--ash); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 16px !important; }

/* Studio pillars use lined cards too */
.grid--3 .card { border: 1px solid var(--line); }

/* ---------- Work grid ---------- */
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.work-item { margin: 0; }
.work-item img,
.work-item video {
  display: block;
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: var(--r-card);
  background: linear-gradient(135deg, #262628, #1a1a1c);
  transition: opacity 0.4s var(--ease);
}
.work-item img:hover,
.work-item video:hover { opacity: 0.85; }
.work-item figcaption {
  font-size: 13px; color: var(--ash); margin-top: 10px;
  text-transform: uppercase; letter-spacing: 0.04em;
}

/* ---------- Inverted band (testimonials) ---------- */
.invert {
  background: var(--accent); color: var(--accent-ink);
  padding: var(--section-gap) clamp(20px, 5vw, 59px);
}
.invert .grid { max-width: var(--maxw); margin: 0 auto; }
.quote { margin: 0; }
.quote p {
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-weight: 500; line-height: 1.18; letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.quote cite { font-style: normal; font-size: 10px; letter-spacing: 0.2em; color: rgba(255,255,255,0.7); }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.price {
  background: var(--carbon);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px;
  display: flex; flex-direction: column;
}
.price--featured {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 55px rgba(0, 71, 171, 0.55), 0 0 130px 8px rgba(0, 71, 171, 0.3);
}
.price--featured h3,
.price--featured .price__from,
.price--featured .price__amount,
.price--featured .price__list li { color: var(--accent-ink); }
.price--featured .price__code,
.price--featured .price__desc { color: rgba(255, 255, 255, 0.78); }
.price--featured .price__per { color: rgba(255, 255, 255, 0.7); }
.price--featured .price__list li::before { background: rgba(255, 255, 255, 0.7); }
.price--featured .price__tag { border-color: rgba(255, 255, 255, 0.5); color: var(--accent-ink); }
.price--featured .price__cta.btn--filled {
  background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink);
}
.price--featured .price__cta.btn--filled:hover { background: rgba(255, 255, 255, 0.88); }
/* Light spill from PKG-02 onto its immediate neighbours (inset glow sits behind text) */
.price:has(+ .price--featured) { box-shadow: inset -45px 0 50px -24px rgba(0, 71, 171, 0.4); }
.price--featured + .price { box-shadow: inset 45px 0 50px -24px rgba(0, 71, 171, 0.4); }
.price--soon { opacity: 0.85; }
.price__head { margin-bottom: 20px; }
.price__code { display: block; font-size: 10px; letter-spacing: 0.2em; color: var(--ash); margin-bottom: 14px; }
.price__tag {
  display: inline-block; font-size: 9px; letter-spacing: 0.18em;
  padding: 4px 9px; border: 1px solid var(--line-strong);
  border-radius: var(--r-pill); margin-bottom: 12px;
}
.price__tag--soon { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.price h3 { font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; margin: 0; }
.price__from { font-size: 15px; color: var(--white); margin: 0 0 16px; }
.price__amount { font-weight: 700; }
.price__per { color: var(--ash); font-size: 13px; }
.price__from--soon { color: var(--ash); }
.price__desc { color: var(--ash); font-size: 14px; line-height: 1.45; margin: 0 0 22px; }
.price__list { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.price__list li { font-size: 14px; color: var(--white); padding-left: 18px; position: relative; }
.price__list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 1px; background: var(--ash); }
.price__cta { display: block; text-align: center; }
.price__note { text-align: center; color: var(--ash); font-size: 12px; letter-spacing: 0.02em; margin-top: 28px; }

/* ---------- Floating enquiry button ---------- */
.float-cta {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--obsidian); color: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: 14px 22px;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.float-cta.visible { opacity: 1; transform: none; pointer-events: auto; }
.float-cta:hover { background: var(--white); color: var(--carbon); border-color: var(--white); }

/* ---------- Contact ---------- */
.cta__title {
  font-size: clamp(1.6rem, 4.2vw, 3rem);
  font-weight: 700; line-height: 1.04; letter-spacing: -0.02em;
  text-transform: uppercase;
  max-width: 22ch; margin: 0 auto 56px;
}
.contact-form { max-width: 640px; margin: 0 auto; text-align: left; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ash); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%;
  background: var(--obsidian);
  border: 1px solid var(--line);
  color: var(--white);
  font-family: var(--font); font-size: 15px;
  padding: 12px 14px;
  border-radius: var(--r-card);
  resize: vertical;
  transition: border-color 0.3s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(150,150,150,0.7); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.22); }
.contact-form__submit { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.contact-form__submit button { font-family: var(--font); }
.contact-form__status { text-align: center; margin: 16px 0 0; font-size: 14px; min-height: 1.2em; }
.contact-form__status.ok { color: var(--white); }
.contact-form__status.err { color: #e6b8b0; }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; font-size: clamp(1rem, 2.1vw, 1.3rem); font-weight: 500;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; font-size: 1.5em; font-weight: 400; line-height: 1;
  color: var(--accent); transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 26px; color: var(--ash); max-width: 72ch; font-size: 15px; line-height: 1.6; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  max-width: var(--maxw); margin: 0 auto;
  padding: 30px clamp(20px, 5vw, 59px);
  display: flex; flex-wrap: wrap; gap: 16px 29px;
  align-items: center; justify-content: space-between;
}
.footer__mono { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 29px; }
.footer__nav a { font-size: 13px; color: var(--ash); }
.footer__nav a:hover { color: var(--white); }
.footer__legal { font-size: 10px; letter-spacing: 0.16em; color: var(--ash); text-transform: uppercase; }

/* ---------- Floating CTA as scroll progress ----------
   The "Start a project" button fills with cobalt as the page scrolls.
   Locked to a dark base so white text stays readable over the fill. */
.float-cta {
  overflow: hidden;
  background: #16161a;
  color: #ffffff;
  --progress: 0;
}
.float-cta::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--accent);
  transform: scaleX(var(--progress)); transform-origin: left center;
  transition: transform 0.12s linear;
}
.float-cta > span, .float-cta > svg { position: relative; z-index: 1; }
.float-cta:hover::before { opacity: 0; }
.float-cta:hover { color: var(--carbon); }

/* ---------- Global film grain ---------- */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.08;
  mix-blend-mode: overlay;
}
[data-theme="light"] .grain { opacity: 0.06; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Apple-style translucency (frosted glass) ----------
   Applied only to chrome that floats over other content. */
.nav__pill,
.float-cta {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}
.info-card {
  background: rgba(24, 24, 27, 0.5);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
}
.menu {
  background: var(--glass-menu);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  backdrop-filter: blur(30px) saturate(150%);
}
/* Solid fallback where blur isn't supported, so text stays legible */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav__pill, .float-cta { background: var(--obsidian); }
  .info-card { background: rgba(24, 24, 27, 0.92); }
  .menu { background: var(--obsidian); }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 10px; }
  .price--featured { transform: none; }
  .manifesto__foot { flex-direction: column; align-items: flex-start; gap: 24px; }
}

@media (max-width: 600px) {
  .work-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  :root { --section-gap: 72px; }

  /* Cards stack vertically — spill the cobalt glow DOWN, not sideways */
  .price--featured { box-shadow: 0 28px 60px -14px rgba(0, 71, 171, 0.5); }
  .price--featured + .price { box-shadow: inset 0 46px 52px -26px rgba(0, 71, 171, 0.42); }

  /* Floating button: centred at the bottom on phones */
  .float-cta {
    left: 50%; right: auto; bottom: 16px;
    transform: translateX(-50%) translateY(12px);
    padding: 12px 20px; font-size: 12px;
  }
  .float-cta.visible { transform: translateX(-50%); }

  /* Bigger tap targets in the pill nav (44px min) */
  .nav__icon { padding: 12px; margin: -12px; }
  .nav__pill { gap: 14px; }

  /* Manifesto: prevent long words overflowing on narrow screens */
  .manifesto { padding-top: 120px; }
  .manifesto__headline { font-size: clamp(2.6rem, 13vw, 4rem); line-height: 1.02; hyphens: none; }
  .manifesto__sub { font-size: 15px; }
  /* Stronger, even overlay on phones so full-width text stays legible */
  .manifesto__media {
    background-image:
      linear-gradient(180deg, transparent 74%, var(--carbon) 100%),
      linear-gradient(180deg, rgba(8, 8, 10, 0.5) 0%, rgba(8, 8, 10, 0.4) 42%, rgba(8, 8, 10, 0.76) 100%),
      url("assets/hero.jpg");
  }

  /* Video band shorter on phones so it doesn't dominate */
  .reel__frame { height: 62vh; min-height: 380px; }
  .info-card { top: 50%; left: 16px; right: 16px; transform: translateY(-50%); width: auto; padding: 14px 16px; }

  /* Cards and inputs a touch tighter */
  .card { padding: 22px; }
  .contact-form__row { grid-template-columns: 1fr; gap: 0; }

  /* Footer stacks cleanly */
  .footer { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer__nav { gap: 16px 22px; }
}

/* Make any media/inputs safe from horizontal overflow */
img, video, input, textarea { max-width: 100%; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
