/* ==========================================================================
   VOLTED MEDIA — Global Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --bg-primary: #2A3137;
  --bg-secondary: #1F252A;
  --bg-tertiary: #353D44;
  --silver-light: #CFD2D7;
  --silver-mid: #A4ADB4;
  --silver-muted: #6B747C;
  --teal-light: #98BEBF;
  --teal-mid: #8BB7BA;
  --teal-accent: #74A1A7;
  --teal-deep: #577C8C;
  --border: rgba(207, 210, 215, 0.08);
  --border-strong: rgba(207, 210, 215, 0.16);

  /* Type */
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 7.5rem;

  /* Layout */
  --container: 1240px;
  --container-narrow: 920px;
  --radius: 6px;
  --radius-lg: 12px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.2s;
  --t-mid: 0.4s;
  --t-slow: 0.7s;
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: #1F252A;  /* matches video overlay so overscroll/notch never flashes white */
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--silver-light);
  background-color: #1F252A;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

::selection {
  background: var(--teal-mid);
  color: var(--bg-primary);
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--silver-light);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.75rem, 7vw, 5.75rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 500;
}

h4 {
  font-size: 1.25rem;
  font-weight: 500;
}

p {
  color: var(--silver-mid);
  font-weight: 400;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: var(--teal-light);
  margin-bottom: var(--space-md);
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.65;
  color: var(--silver-mid);
  max-width: 600px;
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-2xl) 0;
}

.section-sm {
  padding: var(--space-xl) 0;
}

@media (max-width: 768px) {
  .section,
  .section-sm {
    padding: 4rem 0;
  }
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.85rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all var(--t-mid) var(--ease);
  position: relative;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal-mid);
  color: var(--bg-primary);
  border-color: var(--teal-mid);
}

.btn-primary:hover {
  background: var(--teal-light);
  border-color: var(--teal-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 183, 186, 0.18);
}

.btn-ghost {
  background: transparent;
  color: var(--silver-light);
  border: 1px solid var(--silver-muted);
}

.btn-ghost:hover {
  background: var(--teal-mid);
  border-color: var(--teal-mid);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

.btn-arrow::after {
  content: '→';
  display: inline-block;
  transition: transform var(--t-mid) var(--ease);
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   6. Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  background: transparent;
  transition: background-color var(--t-mid) var(--ease),
              padding var(--t-mid) var(--ease),
              border-color var(--t-mid) var(--ease),
              backdrop-filter var(--t-mid) var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(31, 37, 42, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  padding: 0.85rem 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--silver-light);
}

.nav__brand img {
  height: 40px;
  width: auto;
  border-radius: 4px;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

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

.nav__link {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--silver-mid);
  position: relative;
  padding: 0.4rem 0;
  letter-spacing: 0.3px;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--teal-light);
  transition: width var(--t-mid) var(--ease);
}

.nav__link:hover {
  color: var(--silver-light);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  width: 100%;
}

.nav__link.is-active {
  color: var(--silver-light);
}

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

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 110;
}

.nav__toggle span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1.5px;
  background: var(--silver-light);
  transition: transform var(--t-mid) var(--ease),
              opacity var(--t-fast) var(--ease),
              top var(--t-mid) var(--ease);
}

.nav__toggle span:nth-child(1) { top: 14px; }
.nav__toggle span:nth-child(2) { top: 20px; }
.nav__toggle span:nth-child(3) { top: 26px; }

.nav.is-open .nav__toggle span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}

.nav.is-open .nav__toggle span:nth-child(2) {
  opacity: 0;
}

.nav.is-open .nav__toggle span:nth-child(3) {
  top: 20px;
  transform: rotate(-45deg);
}

@media (max-width: 880px) {
  .nav__toggle {
    display: block;
  }

  .nav__menu {
    position: fixed;
    inset: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform var(--t-slow) var(--ease);
  }

  .nav.is-open .nav__menu {
    transform: translateX(0);
  }

  .nav__links {
    flex-direction: column;
    gap: 1.75rem;
    text-align: center;
  }

  .nav__link {
    font-size: 1.4rem;
    font-family: var(--font-display);
  }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: 8rem 1.5rem 5rem;
}

.hero--mid {
  min-height: 70vh;
}

.hero--small {
  min-height: 60vh;
}

.hero__video,
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42, 49, 55, 0.6) 0%, rgba(42, 49, 55, 0.85) 100%);
  z-index: 1;
}

.hero--mid .hero__overlay,
.hero--small .hero__overlay {
  background: linear-gradient(180deg, rgba(42, 49, 55, 0.78) 0%, rgba(42, 49, 55, 0.92) 100%);
}

.hero--gradient {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(87, 124, 140, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(139, 183, 186, 0.10) 0%, transparent 55%),
    var(--bg-primary);
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
}

.hero__title {
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.65;
  color: var(--silver-mid);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--silver-muted);
}

.hero__scroll::after {
  content: '';
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--silver-muted), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50% { transform: scaleY(0.5); opacity: 1; transform-origin: top; }
}

/* Hero load animation */
.hero__inner > * {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.9s var(--ease) forwards;
}

.hero__inner > *:nth-child(1) { animation-delay: 0.1s; }
.hero__inner > *:nth-child(2) { animation-delay: 0.3s; }
.hero__inner > *:nth-child(3) { animation-delay: 0.5s; }
.hero__inner > *:nth-child(4) { animation-delay: 0.7s; }

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   7b. Video-background sections (used on inner pages)
   -------------------------------------------------------------------------- */
.video-section {
  position: relative;
  padding: var(--space-2xl) 0;
  overflow: hidden;
  isolation: isolate;
}

.video-section--tall {
  padding: calc(var(--space-2xl) + 2rem) 0;
}

.video-section--top {
  padding-top: calc(var(--space-2xl) + 4rem);
}

.video-section__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.video-section__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 37, 42, 0.85) 0%, rgba(42, 49, 55, 0.78) 50%, rgba(31, 37, 42, 0.92) 100%);
  z-index: -1;
}

@media (max-width: 768px) {
  .video-section,
  .video-section--tall {
    padding: 4.5rem 0;
  }
  .video-section--top {
    padding-top: 7rem;
  }
}

/* Glass content card sitting over video */
.glass-card {
  background: rgba(31, 37, 42, 0.55);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.glass-card--narrow {
  max-width: 760px;
  margin: 0 auto;
}

.glass-card--center {
  text-align: center;
}

.glass-card--header {
  padding: 2.5rem 3rem;
  text-align: center;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .glass-card {
    padding: 2.25rem 1.75rem;
  }
  .glass-card--header {
    padding: 1.75rem 1.5rem;
    margin-bottom: 2rem;
  }
}

/* On video sections, cards/values/steps need their own opaque backgrounds */
.video-section .card {
  background: rgba(31, 37, 42, 0.7);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  border-color: var(--border-strong);
}

.video-section .card:hover {
  background: rgba(31, 37, 42, 0.82);
  border-color: var(--teal-deep);
}

.video-section .step,
.video-section .value {
  background: rgba(31, 37, 42, 0.6);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.85rem;
}

.video-section .value::before {
  top: 1.5rem;
  left: 1.85rem;
}

.video-section .value {
  padding-top: 2.5rem;
}

.video-section .step__number {
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   8. Section Header
   -------------------------------------------------------------------------- */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--silver-mid);
}

/* --------------------------------------------------------------------------
   9. Process / Steps
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(3, 1fr);
}

.steps--four {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 980px) {
  .steps,
  .steps--four { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .steps,
  .steps--four { grid-template-columns: 1fr; }
}

.step {
  position: relative;
}

.step__number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--teal-mid);
  margin-bottom: 1.25rem;
  letter-spacing: 1px;
  display: block;
}

.step__title {
  font-size: 1.5rem;
  margin-bottom: 0.85rem;
  color: var(--silver-light);
}

.step__desc {
  color: var(--silver-mid);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   10. Service Cards
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .cards { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: transform var(--t-mid) var(--ease),
              border-color var(--t-mid) var(--ease),
              box-shadow var(--t-mid) var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--teal-deep);
  box-shadow: 0 12px 40px rgba(87, 124, 140, 0.12);
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--silver-light);
  margin-bottom: 0.85rem;
}

.card__desc {
  color: var(--silver-mid);
  line-height: 1.7;
  font-size: 0.97rem;
}

/* --------------------------------------------------------------------------
   11. Values / Why
   -------------------------------------------------------------------------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

@media (max-width: 880px) {
  .values { grid-template-columns: 1fr; gap: 2.5rem; }
}

.value {
  position: relative;
  padding-top: 1.5rem;
}

.value::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 1px;
  background: var(--teal-mid);
}

.value__title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  margin-bottom: 0.85rem;
  color: var(--silver-light);
}

.value__desc {
  color: var(--silver-mid);
  line-height: 1.7;
  font-size: 0.97rem;
}

/* --------------------------------------------------------------------------
   12. CTA Band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  padding: var(--space-2xl) 1.5rem;
  text-align: center;
  background:
    linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 50%, var(--bg-tertiary) 100%);
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(139, 183, 186, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(87, 124, 140, 0.10) 0%, transparent 50%);
  pointer-events: none;
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.cta-band h2 {
  margin-bottom: 1rem;
}

.cta-band p {
  font-size: 1.15rem;
  color: var(--silver-mid);
  margin-bottom: 2.5rem;
}

/* --------------------------------------------------------------------------
   13. About / Two-column
   -------------------------------------------------------------------------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

@media (max-width: 880px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
}

.two-col__content p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--silver-mid);
}

.two-col__content p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   14. Forms
   -------------------------------------------------------------------------- */
.form-section {
  background: var(--bg-secondary);
}

.form-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.form-header {
  text-align: center;
  margin-bottom: 3rem;
}

.form-header h2 {
  margin-bottom: 0.75rem;
}

.form-header p {
  color: var(--silver-mid);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form__label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--silver-muted);
}

.form__input,
.form__textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-strong);
  padding: 0.85rem 0.25rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--silver-light);
  transition: border-color var(--t-mid) var(--ease);
  resize: none;
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--silver-muted);
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-bottom-color: var(--teal-mid);
}

.form__textarea {
  min-height: 140px;
}

.form__submit {
  margin-top: 1rem;
  align-self: flex-start;
}

.form__success {
  background: rgba(139, 183, 186, 0.08);
  border: 1px solid var(--teal-deep);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  color: var(--silver-light);
  display: none;
  opacity: 0;
  transition: opacity var(--t-slow) var(--ease);
}

.form__success.is-shown {
  display: block;
  opacity: 1;
}

.form__success strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--teal-light);
}

.form__error {
  font-size: 0.85rem;
  color: #d97a7a;
  display: none;
}

.form__group.has-error .form__input,
.form__group.has-error .form__textarea {
  border-bottom-color: #d97a7a;
}

.form__group.has-error .form__error {
  display: block;
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 4.5rem 0 1.75rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.footer__brand img {
  height: 36px;
  width: auto;
  margin-bottom: 1.25rem;
  border-radius: 4px;
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--silver-light);
}

.footer__tagline {
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--teal-light);
  margin-bottom: 1rem;
}

.footer__desc {
  font-size: 0.9rem;
  color: var(--silver-muted);
  max-width: 320px;
  line-height: 1.7;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--silver-light);
  margin-bottom: 1.25rem;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__list a {
  color: var(--silver-mid);
  font-size: 0.92rem;
  transition: color var(--t-fast) var(--ease);
}

.footer__list a:hover {
  color: var(--teal-light);
}

.footer__bottom {
  text-align: center;
  padding-top: 1.75rem;
  font-size: 0.82rem;
  color: var(--silver-muted);
  letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   16. Reveal Animations
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

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

/* --------------------------------------------------------------------------
   17. 404
   -------------------------------------------------------------------------- */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem;
  background:
    radial-gradient(ellipse at top, rgba(87, 124, 140, 0.15), transparent 70%),
    var(--bg-primary);
}

.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 11rem);
  font-weight: 500;
  line-height: 1;
  color: var(--teal-light);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.error-page__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.error-page__desc {
  font-size: 1.1rem;
  color: var(--silver-mid);
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   18. Utilities
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

main {
  display: block;
}

/* ==========================================================================
   19. Page Background Video (fixed, full-viewport, scrolls behind content)
   ========================================================================== */
/* When a page has a fixed video bg, the body must not paint over it */
body:has(.page-bg) {
  background-color: transparent;
}

.page-bg {
  position: fixed;
  top: -10vh;
  left: 0;
  right: 0;
  bottom: -10vh;
  width: 100vw;
  height: 120vh;            /* taller than viewport so URL-bar collapse + overscroll never reveal a gap */
  height: 120dvh;
  overflow: hidden;
  z-index: -2;
  background-color: #1F252A;
}

.page-bg__overlay {
  position: fixed;
  top: -10vh;
  left: 0;
  right: 0;
  bottom: -10vh;
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
  pointer-events: none;
}

.page-bg__video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  pointer-events: none;
}

/* Kill any iOS Safari fallback "play" overlay on background videos */
.page-bg__video::-webkit-media-controls,
.page-bg__video::-webkit-media-controls-start-playback-button,
.page-bg__video::-webkit-media-controls-panel,
.page-bg__video::-webkit-media-controls-overlay-play-button,
.hero__video::-webkit-media-controls,
.hero__video::-webkit-media-controls-start-playback-button,
.video-section__media::-webkit-media-controls,
.video-section__media::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* (overlay rules consolidated above with overscroll-safe stretching) */

/* ==========================================================================
   20. Top Logo Bar (subnav-free header used on inner pages)
   ========================================================================== */
.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: max(1.75rem, env(safe-area-inset-top) + 1rem) max(1.5rem, env(safe-area-inset-right)) 1rem max(1.5rem, env(safe-area-inset-left));
  display: flex;
  justify-content: center;
}

.topbar__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--silver-light);
  transition: opacity var(--t-fast) var(--ease);
}

.topbar__logo:hover {
  opacity: 0.85;
}

.topbar__logo img {
  height: 38px;
  width: auto;
  border-radius: 4px;
}

/* ==========================================================================
   21. Landing Hero (index.html — logo + tagline + 2 CTAs)
   ========================================================================== */
.landing {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem;
  padding-top: max(5rem, env(safe-area-inset-top));
  padding-bottom: max(5rem, env(safe-area-inset-bottom));
  text-align: center;
}

.landing__inner {
  max-width: 640px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.landing__logo {
  height: 110px;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.9s var(--ease) 0.1s forwards;
}

.landing__brand {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--silver-light);
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.9s var(--ease) 0.25s forwards;
}

.landing__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 400;
  color: var(--silver-mid);
  margin: -1.25rem 0 0;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.9s var(--ease) 0.4s forwards;
}

.landing__ctas {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.9s var(--ease) 0.55s forwards;
}

.btn-lg {
  padding: 1.15rem 2.5rem;
  font-size: 1rem;
  letter-spacing: 0.75px;
  min-width: 200px;
}

@media (max-width: 540px) {
  .landing__logo {
    height: 88px;
  }
  .landing__ctas {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }
  .btn-lg {
    width: 100%;
  }
}

/* ==========================================================================
   22. Frosted card pages (brands.html / influencers.html)
   ========================================================================== */
.page-stack {
  position: relative;
  padding:
    max(7rem, env(safe-area-inset-top) + 5rem)
    max(1.5rem, env(safe-area-inset-right))
    max(5rem, env(safe-area-inset-bottom) + 3rem)
    max(1.5rem, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.25rem;
  min-height: 100vh;
  min-height: 100dvh;
}

.frost-card {
  width: 100%;
  max-width: 640px;
  background: rgba(20, 24, 28, 0.62);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45),
              0 2px 8px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.85s var(--ease) forwards;
}

.frost-card--delay { animation-delay: 0.2s; }

.frost-card__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--teal-light);
  margin-bottom: 1.25rem;
}

.frost-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 600;
  color: var(--silver-light);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.frost-card__body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--silver-mid);
}

.frost-card__body p {
  margin-bottom: 1rem;
}

.frost-card__body p:last-child {
  margin-bottom: 0;
}

.frost-card__list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.frost-card__list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--silver-light);
  font-size: 0.97rem;
  line-height: 1.55;
}

.frost-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 1px;
  background: var(--teal-mid);
}

/* Form layout inside frost cards */
.frost-form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.frost-form .form__input,
.frost-form .form__textarea,
.frost-form .form__select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.97rem;
  color: var(--silver-light);
  transition: border-color var(--t-mid) var(--ease),
              background var(--t-mid) var(--ease);
}

.frost-form .form__input::placeholder,
.frost-form .form__textarea::placeholder {
  color: var(--silver-muted);
}

.frost-form .form__input:focus,
.frost-form .form__textarea:focus,
.frost-form .form__select:focus {
  outline: none;
  border-color: var(--teal-mid);
  background: rgba(255, 255, 255, 0.07);
}

.frost-form .form__textarea {
  min-height: 120px;
  resize: vertical;
}

.frost-form .form__select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23A4ADB4' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.frost-form .form__select option {
  background: var(--bg-secondary);
  color: var(--silver-light);
}

.frost-form .form__submit {
  margin-top: 0.5rem;
  width: 100%;
}

@media (max-width: 540px) {
  .frost-card {
    padding: 2rem 1.4rem;
    border-radius: 14px;
  }
  .page-stack {
    padding:
      max(6rem, env(safe-area-inset-top) + 4.5rem)
      max(1rem, env(safe-area-inset-right))
      max(3rem, env(safe-area-inset-bottom) + 2rem)
      max(1rem, env(safe-area-inset-left));
    gap: 1.5rem;
  }
  .topbar__logo span {
    font-size: 1.15rem;
  }
  .topbar__logo img {
    height: 32px;
  }
  .frost-card__title {
    font-size: clamp(1.65rem, 7vw, 2rem);
  }
}

/* ==========================================================================
   23. Mobile-first finishing touches
   ========================================================================== */

/* iOS/Android: prevent overscroll bg flash + improve tap response */
html,
body {
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
}

/* Smooth glass topbar — visible against any video, blends with mobile URL bar */
@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
  .topbar {
    background: linear-gradient(180deg, rgba(31, 37, 42, 0.55) 0%, rgba(31, 37, 42, 0) 100%);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
  }
}

/* Frosted-glass form inputs (the "search bar like a glass" effect, applied site-wide) */
.frost-form .form__input,
.frost-form .form__textarea,
.frost-form .form__select {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06),
              0 4px 14px rgba(0, 0, 0, 0.18);
}

.frost-form .form__input:hover,
.frost-form .form__textarea:hover,
.frost-form .form__select:hover {
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(255, 255, 255, 0.20);
}

.frost-form .form__input:focus,
.frost-form .form__textarea:focus,
.frost-form .form__select:focus {
  background: rgba(255, 255, 255, 0.10);
  border-color: var(--teal-light);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08),
              0 0 0 3px rgba(139, 183, 186, 0.18),
              0 6px 18px rgba(0, 0, 0, 0.25);
}

/* Larger touch targets on phones */
@media (max-width: 640px) {
  .frost-form .form__input,
  .frost-form .form__textarea,
  .frost-form .form__select {
    padding: 1rem 1.1rem;
    font-size: 16px; /* iOS will not zoom into focused inputs at 16px+ */
  }
  .btn {
    padding: 1.05rem 1.85rem;
    font-size: 0.98rem;
  }
  .btn-lg {
    min-height: 56px;
  }
  .frost-form .form__submit {
    min-height: 56px;
  }
}

/* Allow landscape phone use without breaking landing */
@media (max-height: 520px) and (orientation: landscape) {
  .landing {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  .landing__logo {
    height: 64px;
  }
  .landing__inner {
    gap: 1.5rem;
  }
}
