html {
  scroll-behavior: smooth;
}

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

section {
  scroll-margin-top: 96px;
}

/* ──────────── SELF-HOSTED KALAM 700 ──────────── */
@font-face {
  font-family: 'Kalam';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/kalam-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Kalam';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/kalam-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ──────────── REVEAL ANIMATIONS ──────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ──────────── HERO EMPHASIS ──────────── */
.hero-emphasis {
  font-family: 'Kalam', 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
  font-weight: 700;
  color: #C4A6FF;
  font-size: 1.15em;
  display: inline-block;
}

.hero-line-2 .hero-plate-line {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .hero-line-2 .hero-emphasis {
    font-size: clamp(1.35rem, 6.4vw, 2.1rem);
  }
}

.hero-line-2 {
  opacity: 0;
  transform: translateY(16px);
  animation: heroReveal 0.8s ease 0.6s forwards;
}

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

@media (prefers-reduced-motion: reduce) {
  .hero-line-2 {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@media (max-width: 640px) {
  #top {
    align-items: flex-start;
  }

  .hero-content {
    padding-top: 14.5rem;
    padding-bottom: 4.5rem;
  }
}

/* ──────────── CAROUSEL ──────────── */
.quote-window {
  overflow: hidden;
}

.quote-track {
  display: flex;
  transition: transform 0.5s ease;
}

.quote-card {
  flex: 0 0 calc(100% - 1.8rem);
  margin: 0.9rem;
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
  padding: 2.75rem 3rem;
  text-align: left;
}

@media (min-width: 768px) {
  .quote-card {
    padding: 3rem 3.5rem;
  }
}

.quote-card__quote {
  font-size: 1.35rem;
  line-height: 1.55;
  color: #111827;
  margin: 0 0 1.6rem;
  font-weight: 600;
}

.quote-card__meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.quote-card__avatar {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.quote-card__name {
  font-weight: 700;
  color: #111827;
  font-size: 0.95rem;
  margin: 0 0 0.2rem;
}

.quote-card__role {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0;
}

@media (max-width: 640px) {
  .quote-card {
    padding: 2.25rem 2rem;
  }

  .quote-card__quote {
    font-size: 1.15rem;
  }
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: #d1d5db;
  cursor: pointer;
}

.dot.active {
  background: #111827;
}

/* Carousel arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #374151;
  transition: all 0.2s ease;
}

.carousel-arrow:hover {
  background: #f9fafb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-arrow--prev {
  left: -22px;
}

.carousel-arrow--next {
  right: -22px;
}

@media (max-width: 640px) {
  .carousel-arrow {
    display: none;
  }
}

/* ──────────── TICKER (IMAGE-BASED) ──────────── */
@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.ticker-track {
  animation: ticker var(--ticker-speed, 50s) linear infinite;
  will-change: transform;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
  }
}

/* ──────────── STATS ──────────── */
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3.25rem;
}

.stat-item {
  min-width: 180px;
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
}

.stat-label {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
}

.stat-link {
  display: inline-block;
  margin-top: 2.5rem;
  font-weight: 600;
  color: #16a34a;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.stat-link:hover {
  color: #15803d;
}

/* ──────────── HERO SUBTITLE ──────────── */
.hero-subtitle {
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  line-height: 1.65;
  font-weight: 500;
  color: #374151;
  letter-spacing: -0.005em;
}

/* ──────────── GLOBAL SPACING TUNES ──────────── */
.type-section {
  margin-bottom: 2rem;
}

.type-subhead {
  margin-bottom: 1.5rem;
}

.type-lead {
  margin-top: 1.25rem;
}

.type-card-title {
  margin-bottom: 0.75rem;
}

.type-card-body + .type-card-body {
  margin-top: 0.5rem;
}

/* ──────────── CASE STUDY NOTE ──────────── */
.note-callout {
  margin: 1rem auto 0;
  max-width: 42rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #6b7280;
  font-style: normal;
}

/* ──────────── FAQ LINE BREAKS ──────────── */
.faq-paragraph {
  margin: 0 0 0.9rem 0;
}

.faq-end {
  height: 0.6rem;
}

/* ──────────── LOGO STRIP WIDTH ──────────── */
.logo-strip {
  max-width: min(78rem, 100%);
}

/* ──────────── NAV LOGO TWEAKS ──────────── */
.nav-logo {
  height: 36px;
  width: 160px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.nav-logo__img {
  height: 46px;
  width: auto;
  object-fit: cover;
  transform: translateY(-4px);
}

/* ──────────── HERO VIDEO FADE ──────────── */
.hero-video {
  filter: brightness(0.6);
  transition: opacity 1.2s ease;
}

.hero-video.is-fading {
  opacity: 0;
}

/* ──────────── NAV ALIGNMENT ──────────── */
.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 600;
}

/* ──────────── MOBILE FLOATING MENU ──────────── */
.mobile-menu-toggle {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  border: none;
}

.mobile-menu-toggle:hover {
  background: #15803d;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 59;
  display: none;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}

.mobile-menu__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 1.5rem 1.5rem 2rem;
  transform: translateY(100%);
  transition: transform 0.25s ease;
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.15);
}

.mobile-menu__cta {
  margin-top: 1rem;
}

.mobile-menu__cta .btn-handdrawn {
  width: 100%;
  justify-content: center;
}

.mobile-menu.is-open .mobile-menu__panel {
  transform: translateY(0);
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu__title {
  font-weight: 700;
  font-size: 1rem;
  color: #111827;
}

.mobile-menu__close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  background: #fff;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.mobile-menu__links a {
  font-weight: 500;
  color: #374151;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: inline-flex;
  }
}

/* ──────────── METLIFE-STYLE BREATHING ROOM ──────────── */
section[class] {
  padding-top: clamp(4.25rem, 5.5vw, 6.5rem);
  padding-bottom: clamp(4.25rem, 5.5vw, 6.5rem);
}

.intro-section {
  padding-top: clamp(3rem, 3.75vw, 4.5rem);
  padding-bottom: clamp(3.5rem, 4.5vw, 5.25rem);
}

.proof-section {
  padding-top: clamp(2.25rem, 3.2vw, 3.5rem);
  padding-bottom: clamp(2.25rem, 3.2vw, 3.5rem);
}

.proof-tight {
  padding-bottom: 0;
}

.proof-tight + .proof-section {
  padding-top: 0;
}

.proof-tight + .proof-section .text-center.mb-16 {
  margin-top: 0;
  margin-bottom: 2.5rem;
}

.showreel-section {
  padding-top: 0;
  padding-bottom: 0;
}

.benefits-section {
  padding-top: 0;
}

.showreel-section .text-center.mb-16 {
  margin-bottom: 1.5rem;
}

.showreel-section .bg-white.rounded-2xl {
  margin-bottom: 0;
}

.benefits-section .text-center.mb-16 {
  margin-top: 1.25rem;
  margin-bottom: 2.25rem;
}

.examples-section {
  padding-top: clamp(1.25rem, 2vw, 2.25rem);
  padding-bottom: clamp(1.25rem, 2vw, 2.25rem);
}

.text-center.mb-16,
.text-left.mb-16,
h2.mb-16 {
  margin-bottom: clamp(2.5rem, 3.5vw, 3.75rem);
}

.space-y-10 > :not(:last-child) {
  margin-block-end: 2.25rem;
}

@media (min-width: 768px) {
  .md\:space-y-12 > :not(:last-child) {
    margin-block-end: 2.75rem;
  }
}

.mt-16 {
  margin-top: 4rem;
}

.mt-20 {
  margin-top: 4.75rem;
}

.mt-28 {
  margin-top: 6rem;
}

.mt-32 {
  margin-top: 7rem;
}

@media (min-width: 768px) {
  .md\:mt-20 {
    margin-top: 5.25rem;
  }

  .md\:mt-32 {
    margin-top: 8rem;
  }
}

.hero-subtitle--emphasis {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  line-height: 1.2;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
}

/* ──────────── BENEFIT TRIPLET ──────────── */
.benefit-triplet {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem;
  max-width: 56rem;
  margin: 0 auto;
}

.benefit-triplet__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.benefit-triplet__icon {
  width: 48px;
  height: 48px;
}

.benefit-triplet__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.45;
}

.benefit-triplet__body {
  font-size: 0.95rem;
  color: #4b5563;
  max-width: 18rem;
}

/* ──────────── ROOM / BOARDROOM TABLE ──────────── */
.benefit-grid {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 2.5rem;
  align-items: center;
}

.benefit-grid--head {
  margin-bottom: 2.25rem;
}

.benefit-grid__label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-align: center;
}

.benefit-grid__dash {
  height: 1px;
  background: #d1d5db;
  width: 56px;
  margin: 0 auto;
}

.benefit-rows {
  display: grid;
  gap: 2.25rem;
}

.benefit-card {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #f3f4f6;
}

.benefit-card__label {
  display: none;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9ca3af;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* ──────────── SKETCH LIGHTBOX ──────────── */
.sketch-lightbox-image--original {
  background: #ffffff;
  padding: 0;
}

.sketch-lightbox-image--ai {
  background: #212529;
  padding: 1rem;
}

/* ──────────── YOUTUBE FACADE ──────────── */
.youtube-facade {
  transition: opacity 0.3s ease;
}

.youtube-facade:hover > div {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

/* ──────────── CTA MODAL ──────────── */
#cta-modal.is-open {
  display: flex;
}

.cta-modal-content {
  animation: modalSlideUp 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ──────────── MOBILE RESPONSIVE ──────────── */
@media (max-width: 640px) {
  .site-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .cta-modal-content {
    width: calc(100% - 2.5rem);
    margin: 0 1.25rem;
  }

  .stat-strip {
    gap: 2.25rem;
  }

  .stat-item {
    min-width: 140px;
  }

  .benefit-triplet {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .benefit-triplet__body {
    max-width: 22rem;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .benefit-grid--head {
    display: none;
  }

  .benefit-grid__dash {
    display: none;
  }

  .benefit-card {
    padding: 1.5rem;
  }
}

@media (min-width: 640px) {
  .cta-modal-content {
    max-height: none;
    overflow: visible;
  }
}
@media (max-width: 900px) {
  .benefit-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .benefit-grid--head {
    display: none;
  }

  .benefit-grid__dash {
    display: none;
  }

  .benefit-card__label {
    display: block;
  }
}
