/* ==========================================================================
   New Visions Productions — Core Stylesheet
   Brand palette derived from the NVP mark: deep black + crimson gradient
   ========================================================================== */

:root {
  /* Brand */
  --crimson:       #e11d48;
  --crimson-light: #ff4d6d;
  --crimson-deep:  #9f1239;
  --crimson-glow:  rgba(225, 29, 72, 0.35);

  /* Spicy sub-brand accent */
  --spicy:         #ff6b35;
  --spicy-light:   #ffa05c;

  /* Neutrals */
  --ink:           #050507;
  --ink-soft:      #0c0c11;
  --panel:         rgba(255, 255, 255, 0.035);
  --panel-line:    rgba(225, 29, 72, 0.16);
  --text:          #f6f6f8;
  --muted:         #9ca0ad;
  --muted-dim:     #70747f;

  /* System */
  --radius:        18px;
  --radius-sm:     12px;
  --maxw:          1180px;
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: clamp(84px, 4vw + 70px, 112px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--ink);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--crimson); color: #fff; }

/* Scrollbar ------------------------------------------------------------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--crimson), var(--crimson-deep));
  border-radius: 10px;
}

/* ==========================================================================
   Ambient background
   ========================================================================== */
.bg-base {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(225, 29, 72, 0.18), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, rgba(159, 18, 57, 0.14), transparent 60%),
    linear-gradient(160deg, #0a0206 0%, var(--ink) 45%, #0a0206 100%);
}

.bg-grain {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.35;
  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='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
  pointer-events: none;
  animation: drift 18s var(--ease) infinite alternate;
}
.bg-orb.one   { width: 520px; height: 520px; top: 8%;  left: -8%;  background: radial-gradient(circle, rgba(225,29,72,0.22), transparent 70%); }
.bg-orb.two   { width: 420px; height: 420px; bottom: 6%; right: -6%; background: radial-gradient(circle, rgba(255,77,109,0.14), transparent 70%); animation-delay: -6s; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(40px, -50px, 0) scale(1.12); }
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

section { padding: 6rem 0; position: relative; }
section.tight { padding: 4rem 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crimson-light);
  border: 1px solid var(--panel-line);
  background: rgba(225, 29, 72, 0.07);
  padding: 0.4rem 0.95rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 10px var(--crimson);
}

h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }

h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.15rem; }

.grad {
  background: linear-gradient(100deg, var(--crimson-light), var(--crimson) 45%, var(--crimson-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.grad-spicy {
  background: linear-gradient(100deg, var(--spicy-light), var(--spicy) 50%, var(--crimson));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lead { color: var(--muted); font-size: 1.05rem; max-width: 62ch; }

.section-head { text-align: center; margin-bottom: 3.5rem; }
.section-head .lead { margin: 1rem auto 0; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.9rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(100deg, var(--crimson-light), var(--crimson) 60%, var(--crimson-deep));
  color: #fff;
  box-shadow: 0 10px 30px -10px var(--crimson-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px var(--crimson-glow); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--crimson); background: rgba(225, 29, 72, 0.1); transform: translateY(-2px); }

.btn-spicy {
  background: linear-gradient(100deg, var(--spicy-light), var(--spicy) 55%, var(--crimson));
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(255, 107, 53, 0.4);
}
.btn-spicy:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(255, 107, 53, 0.45); }

.btn-sm { padding: 0.65rem 1.4rem; font-size: 0.88rem; }

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0.5rem 0;
  transition: background 0.35s, backdrop-filter 0.35s, border-color 0.35s, padding 0.35s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(5, 5, 7, 0.82);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom-color: var(--panel-line);
  padding: 0.3rem 0;
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
/* The mark is a tall, narrow silhouette, so it needs real height to read.
   Height scales with the viewport and eases down once the navbar condenses. */
.brand img {
  height: clamp(64px, 3.2vw + 52px, 92px);
  width: auto;
  transition: height 0.35s var(--ease);
}
.navbar.scrolled .brand img { height: clamp(52px, 2.4vw + 43px, 72px); }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-weight: 800;
  font-size: clamp(1.02rem, 0.42vw + 0.92rem, 1.3rem);
  letter-spacing: 0.02em;
  color: var(--text);
}
.brand-sub {
  font-size: clamp(0.62rem, 0.22vw + 0.57rem, 0.76rem);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--crimson-light);
  font-weight: 600;
}

.nav-menu { display: flex; align-items: center; gap: 2rem; }

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  transition: color 0.25s;
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--crimson-light), var(--crimson));
  transition: width 0.3s var(--ease);
}
.nav-link:hover,
.nav-link.active { color: var(--text); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-link.spicy { color: var(--spicy-light); }
.nav-link.spicy::after { background: linear-gradient(90deg, var(--spicy-light), var(--spicy)); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--crimson-light);
  border-radius: 3px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero h1 { margin-bottom: 1.5rem; }
.hero .lead { font-size: 1.1rem; margin-bottom: 2.25rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-art::before {
  content: '';
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--crimson-glow), transparent 68%);
  filter: blur(50px);
}
.hero-art img {
  position: relative;
  max-height: 560px;
  width: auto;
  filter: drop-shadow(0 30px 60px rgba(225, 29, 72, 0.3));
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-18px); }
}

/* Stats strip ----------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  border-top: 1px solid var(--panel-line);
  padding-top: 2rem;
}
.stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  background: linear-gradient(100deg, var(--crimson-light), var(--crimson));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--muted-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ==========================================================================
   Cards & grids
   ========================================================================== */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(225, 29, 72, 0.1), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--panel-line);
  background: rgba(255, 255, 255, 0.055);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.2), rgba(159, 18, 57, 0.1));
  border: 1px solid var(--panel-line);
}
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--muted); font-size: 0.94rem; }

.card.spicy .card-icon {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.22), rgba(225, 29, 72, 0.12));
  border-color: rgba(255, 107, 53, 0.25);
}
.card.spicy:hover { border-color: rgba(255, 107, 53, 0.3); }

/* Feature list ---------------------------------------------------------- */
.check-list { list-style: none; display: grid; gap: 0.9rem; }
.check-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.95rem;
}
.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--crimson-light), var(--crimson-deep));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/70% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/70% no-repeat;
}

/* Split section --------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.split-panel {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 2.25rem;
}

/* Process steps --------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 1.25rem; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.25rem;
  align-items: start;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.step:hover { border-color: var(--panel-line); transform: translateX(6px); }
.step-num {
  counter-increment: step;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--crimson-light);
  background: rgba(225, 29, 72, 0.1);
  border: 1px solid var(--panel-line);
}
.step-num::before { content: counter(step, decimal-leading-zero); }
.step h3 { margin-bottom: 0.35rem; }
.step p { color: var(--muted); font-size: 0.94rem; }

/* CTA band -------------------------------------------------------------- */
.cta-band {
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(225, 29, 72, 0.18), transparent 70%),
    var(--ink-soft);
  border-top: 1px solid var(--panel-line);
  border-bottom: 1px solid var(--panel-line);
  text-align: center;
}
.cta-band h2 { margin-bottom: 1rem; }
.cta-band .lead { margin: 0 auto 2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-card {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 2.25rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.45rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--crimson);
  background: rgba(225, 29, 72, 0.06);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.14);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-dim); }
.field select option { background: var(--ink-soft); color: var(--text); }

.form-note { font-size: 0.8rem; color: var(--muted-dim); margin-top: 1rem; }

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.form-status.ok   { display: block; background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.35); color: #86efac; }
.form-status.err  { display: block; background: rgba(225, 29, 72, 0.12); border: 1px solid var(--panel-line); color: var(--crimson-light); }

/* ==========================================================================
   Contact info tiles
   ========================================================================== */
.info-tile {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  padding: 1.35rem;
  transition: border-color 0.3s;
}
.info-tile:hover { border-color: var(--panel-line); }
.info-tile .card-icon { margin-bottom: 0; width: 42px; height: 42px; font-size: 1.15rem; }
.info-tile h4 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.info-tile p, .info-tile a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  word-break: break-word;
}
.info-tile a:hover { color: var(--crimson-light); }

/* ==========================================================================
   Legal / long-form pages
   ========================================================================== */
.page-hero {
  padding: 11rem 0 4rem;
  text-align: center;
  border-bottom: 1px solid var(--panel-line);
}
.page-hero .lead { margin: 1rem auto 0; }

.legal { padding: 4rem 0 6rem; }
.legal-body {
  max-width: 820px;
  margin: 0 auto;
  color: var(--muted);
}
.legal-body h2 {
  color: var(--text);
  font-size: 1.4rem;
  margin: 2.5rem 0 0.9rem;
  padding-top: 0.5rem;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 {
  color: var(--text);
  font-size: 1.05rem;
  margin: 1.6rem 0 0.6rem;
}
.legal-body p { margin-bottom: 1rem; font-size: 0.96rem; }
.legal-body ul, .legal-body ol { margin: 0 0 1.25rem 1.3rem; }
.legal-body li { margin-bottom: 0.5rem; font-size: 0.96rem; }
.legal-body a { color: var(--crimson-light); text-decoration: none; }
.legal-body a:hover { text-decoration: underline; }
.legal-body strong { color: var(--text); }

.legal-meta {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.9rem;
}

/* FAQ accordion --------------------------------------------------------- */
.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  background: var(--panel);
  margin-bottom: 0.85rem;
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item.open { border-color: var(--panel-line); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-q::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--crimson-light);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-a p { padding: 0 1.5rem 1.35rem; color: var(--muted); font-size: 0.94rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--ink-soft);
  border-top: 1px solid var(--panel-line);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand img {
  height: clamp(96px, 5vw + 76px, 150px);
  width: auto;
  margin-bottom: 1.1rem;
}
.footer-brand p { color: var(--muted); font-size: 0.9rem; max-width: 34ch; }

.footer h4 {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--crimson-light);
  margin-bottom: 1.1rem;
}
.footer ul { list-style: none; display: grid; gap: 0.65rem; }
.footer ul a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.25s, padding-left 0.25s;
}
.footer ul a:hover { color: var(--text); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted-dim);
}
.footer-bottom a { color: var(--muted-dim); text-decoration: none; }
.footer-bottom a:hover { color: var(--crimson-light); }
.footer-legal-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .hero-art { order: -1; }
  .hero-art img { max-height: 340px; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .split { grid-template-columns: 1fr; gap: 2.25rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 760px) {
  section { padding: 4.5rem 0; }

  .hamburger { display: flex; }

  /* backdrop-filter on the scrolled navbar creates a containing block, which
     would trap the fixed slide-in panel inside the 63px-tall bar. Swap the blur
     for a solid background on mobile so the panel stays anchored to the
     viewport and fills the screen. */
  .navbar.scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(5, 5, 7, 0.97);
  }

  /* Slide-in panel: brand at the top, links below it, CTA pinned to the bottom.
     Width uses % of the viewport (not vw) so it matches the inset edge exactly
     when a scrollbar is present — otherwise the closed panel sits a few pixels
     inside the viewport and its close button stays visible. */
  .nav-menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(340px, 86%);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: calc(1rem + env(safe-area-inset-top)) 1.5rem
             calc(1.5rem + env(safe-area-inset-bottom));
    background: rgba(8, 4, 7, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid var(--panel-line);
    transform: translateX(calc(100% + 16px));
    transition: transform 0.4s var(--ease), visibility 0.4s;
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
  }
  .nav-menu.open { transform: none; visibility: visible; }

  /* Brand lockup inside the panel. Sits clear of the close button, which
     overlays the panel at the same top offset. */
  .nav-menu::before {
    content: '';
    display: block;
    height: 56px;
    margin-bottom: 1.5rem;
    background: url('../nvp-logo.png') left center / contain no-repeat;
    flex-shrink: 0;
  }

  .nav-menu > a.nav-link,
  .nav-menu .nav-toggle {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .nav-link { font-size: 1.08rem; }
  .nav-link::after { bottom: 0.45rem; }

  /* CTA sits at the foot of the panel, pushed down by the auto margin */
  .nav-menu .btn {
    width: 100%;
    margin-top: auto;
    padding-block: 0.95rem;
    flex-shrink: 0;
  }

  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-hero { padding: 9rem 0 3.5rem; }
  .card { padding: 1.6rem; }
  .step { grid-template-columns: 44px 1fr; gap: 1rem; padding: 1.25rem; }
  .step-num { width: 40px; height: 40px; font-size: 0.9rem; }
}

@media (max-width: 420px) {
  /* The bigger mark leaves room for the wordmark; just tighten it slightly. */
  .brand { gap: 0.5rem; }
  .brand-name { font-size: 0.9rem; }
  .brand-sub  { font-size: 0.56rem; letter-spacing: 0.2em; }
  .hero-actions .btn { width: 100%; }
}

/* Long email addresses inside contact tiles must not overflow on phones */
@media (max-width: 420px) {
  .info-tile a,
  .info-tile p { font-size: 0.84rem; overflow-wrap: anywhere; }
  .legal-body { font-size: 0.95rem; }
}

/* ==========================================================================
   Liquid / fluid responsive scale
   Type, spacing and the container breathe with the viewport instead of
   jumping at breakpoints.
   ========================================================================== */
:root {
  --step--1: clamp(0.82rem, 0.78rem + 0.20vw, 0.94rem);
  --step-0:  clamp(0.95rem, 0.90rem + 0.25vw, 1.08rem);
  --step-1:  clamp(1.10rem, 1.00rem + 0.50vw, 1.35rem);
  --step-2:  clamp(1.35rem, 1.15rem + 1.00vw, 1.95rem);
  --step-3:  clamp(1.85rem, 1.40rem + 2.20vw, 3.00rem);
  --step-4:  clamp(2.35rem, 1.60rem + 3.80vw, 4.50rem);

  --space-s: clamp(0.85rem, 0.70rem + 0.70vw, 1.40rem);
  --space-m: clamp(1.40rem, 1.10rem + 1.50vw, 2.40rem);
  --space-l: clamp(2.60rem, 1.80rem + 3.80vw, 6.00rem);

  --gutter:  clamp(1.1rem, 0.7rem + 2vw, 1.5rem);
}

body   { font-size: var(--step-0); }
.wrap  { padding-inline: var(--gutter); }

section       { padding-block: var(--space-l); }
section.tight { padding-block: clamp(2.2rem, 1.6rem + 2.6vw, 4rem); }

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }

.lead        { font-size: var(--step-1); }
.card p      { font-size: var(--step--1); }
.stat-num    { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); }
.grid        { gap: var(--space-s); }
.split       { gap: var(--space-m); }
.card        { padding: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
.form-card   { padding: clamp(1.4rem, 1.1rem + 1.4vw, 2.25rem); }
.section-head{ margin-bottom: var(--space-m); }

/* Fluid grids — no fixed breakpoint needed for the common cases */
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); }

/* ==========================================================================
   Photography
   ========================================================================== */
.media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--ink-soft);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s var(--ease), filter 0.6s;
}
.media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(5, 5, 7, 0.75));
  pointer-events: none;
}
.media:hover img { transform: scale(1.05); }

.media-4x3  { aspect-ratio: 4 / 3; }
.media-16x9 { aspect-ratio: 16 / 9; }
.media-3x4  { aspect-ratio: 3 / 4; }

/* Tint photography toward the brand so stills sit in the palette */
.media.tint img { filter: saturate(0.75) contrast(1.06); }
.media.tint::after {
  background:
    linear-gradient(180deg, transparent 30%, rgba(5, 5, 7, 0.8)),
    linear-gradient(140deg, rgba(225, 29, 72, 0.22), transparent 55%);
}
body.spicy-page .media.tint::after {
  background:
    linear-gradient(180deg, transparent 30%, rgba(5, 5, 7, 0.8)),
    linear-gradient(140deg, rgba(255, 107, 53, 0.24), transparent 55%);
}

/* Caption sitting over the bottom of a still */
.media-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: clamp(1rem, 0.8rem + 0.8vw, 1.5rem);
  z-index: 1;
}
.media-caption h3 { margin-bottom: 0.2rem; }
.media-caption p  { color: var(--muted); font-size: var(--step--1); }

/* A card that leads with a photo */
.card-media { padding: 0; overflow: hidden; }
.card-media .media { border: none; border-radius: 0; }
.card-media .card-body { padding: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); }

/* Full-bleed photo band */
.photo-band {
  position: relative;
  min-height: clamp(280px, 38vw, 460px);
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  border-block: 1px solid var(--panel-line);
}
.photo-band img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.6) brightness(0.45);
}
.photo-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(225, 29, 72, 0.3), rgba(5, 5, 7, 0.75) 60%);
}
body.spicy-page .photo-band::after {
  background: linear-gradient(140deg, rgba(255, 107, 53, 0.32), rgba(5, 5, 7, 0.75) 60%);
}
.photo-band .wrap { position: relative; z-index: 1; }

/* Hero collage used on the homepage */
.hero-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.6rem, 0.4rem + 0.8vw, 1rem);
  width: 100%;
}
.hero-collage .media:first-child { grid-column: 1 / -1; }

@media (max-width: 980px) {
  .hero-collage { max-width: 560px; margin-inline: auto; }
}

/* Reveal is a progressive enhancement: without JS the content must still show.
   main.js adds .js to <html> before anything is hidden. */
html:not(.js) .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   Navigation dropdown
   Opens on hover + focus on desktop; toggled by tap on mobile, where it
   flattens into the stacked menu rather than floating.
   ========================================================================== */
.nav-item { position: relative; display: flex; align-items: center; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: color 0.25s;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-toggle::after {
  content: '';
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}
.nav-item:hover .nav-toggle,
.nav-item:focus-within .nav-toggle,
.nav-toggle[aria-expanded="true"],
.nav-toggle.active { color: var(--text); }

.nav-item:hover .nav-toggle::after,
.nav-toggle[aria-expanded="true"]::after {
  transform: rotate(-135deg) translate(-3px, -3px);
}

/* Underline to match the sibling .nav-link items */
.nav-toggle-label { position: relative; }
.nav-toggle-label::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--crimson-light), var(--crimson));
  transition: width 0.3s var(--ease);
}
.nav-item:hover .nav-toggle-label::after,
.nav-toggle.active .nav-toggle-label::after { width: 100%; }

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  translate: -50% 0;
  margin-top: 1.1rem;
  min-width: 232px;
  padding: 0.5rem;
  background: rgba(12, 10, 14, 0.97);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.8);
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  z-index: 1001;
}
/* Bridges the gap so the pointer can travel into the panel */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -1.1rem; left: 0; right: 0;
  height: 1.1rem;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav-dropdown a {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: 9px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  transition: background 0.2s, color 0.2s;
}
.nav-dropdown a small {
  display: block;
  font-size: 0.74rem;
  font-weight: 400;
  color: var(--muted-dim);
  margin-top: 1px;
}
.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  background: rgba(225, 29, 72, 0.12);
  color: var(--text);
  outline: none;
}
.nav-dropdown a.spicy { color: var(--spicy-light); }
.nav-dropdown a.spicy:hover,
.nav-dropdown a.spicy:focus-visible {
  background: rgba(255, 107, 53, 0.14);
  color: var(--spicy-light);
}
.nav-dropdown a.spicy small { color: rgba(255, 160, 92, 0.65); }

@media (max-width: 760px) {
  /* In the slide-in panel the dropdown is just an indented list */
  .nav-item { display: block; width: 100%; }

  .nav-toggle { font-size: 1.08rem; width: 100%; justify-content: flex-start; }
  .nav-toggle::after { margin-left: auto; }

  .nav-dropdown {
    position: static;
    translate: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s var(--ease), margin 0.35s var(--ease);
  }
  .nav-dropdown::before { display: none; }
  .nav-dropdown > * { overflow: hidden; min-height: 0; }

  .nav-dropdown.open {
    grid-template-rows: 1fr;
    margin: 0.85rem 0 0.35rem;
  }
  /* Hover must not open it on touch — only the explicit toggle does */
  .nav-item:hover .nav-dropdown:not(.open),
  .nav-item:focus-within .nav-dropdown:not(.open) { grid-template-rows: 0fr; }

  .nav-dropdown .nav-dropdown-inner {
    display: grid;
    gap: 0.15rem;
    padding-left: 0.9rem;
    border-left: 2px solid var(--panel-line);
  }
  .nav-dropdown a { font-size: 0.95rem; padding: 0.5rem 0.2rem; }
  .nav-dropdown a small { font-size: 0.75rem; }
}

/* Short phones: tighten the slide-in panel so an open submenu still leaves the
   CTA reachable without hunting for it. */
@media (max-width: 760px) and (max-height: 700px) {
  .nav-menu::before { height: 44px; margin-bottom: 1rem; }
  .nav-menu > a.nav-link,
  .nav-menu .nav-toggle { padding: 0.65rem 0; }
  .nav-link, .nav-toggle { font-size: 1rem; }
  .nav-dropdown.open { margin: 0.6rem 0 0.25rem; }
  .nav-dropdown a { padding: 0.4rem 0.2rem; }
  .nav-dropdown a small { display: none; }
  .nav-menu .btn { padding-block: 0.8rem; }
}
