/*
 * Carlos Marquez Landing V2 Preview
 * Header, editorial typography and restrained motion.
 * Transport intentionally ASCII-only.
 */

:root {
  --font-display: var(--font-serif);
  --font-sans: var(--font-body);
  --cm-header-desktop: 78px;
  --cm-header-mobile: 72px;
  --cm-motion-time: 560ms;
  --cm-motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Header */

.cm-header,
.cm-header.is-scrolled {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: none !important;
  min-height: var(--cm-header-desktop);
  padding: 0 20px !important;
  transform: none !important;
  border-bottom: 1px solid #2d2d2d;
  background: rgba(18, 18, 18, 0.97);
  box-shadow: none;
}

.cm-header.is-scrolled {
  background: rgba(18, 18, 18, 0.99);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.cm-header__inner {
  width: min(100%, 1240px);
  min-height: var(--cm-header-desktop);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2.3vw, 32px);
}

.cm-brand {
  flex: 0 0 auto;
  max-width: 250px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
}

.cm-brand__name {
  max-width: none;
  color: var(--cm-gold-title);
  font-family: var(--font-title);
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cm-brand__tagline {
  padding-left: 0;
  color: var(--cm-gold-soft);
  font-family: var(--font-title);
  font-size: clamp(0.5rem, 0.67vw, 0.58rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 1;
}

.cm-desktop-nav {
  min-width: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.35vw, 21px);
}

.cm-desktop-nav a {
  position: relative;
  padding: 10px 0;
  color: var(--cm-text-soft);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease;
}

.cm-desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 3px;
  height: 1px;
  background: var(--cm-gold);
  transition: right 220ms ease;
}

.cm-desktop-nav a:hover,
.cm-desktop-nav a:focus-visible {
  color: var(--cm-gold-title);
}

.cm-desktop-nav a:hover::after,
.cm-desktop-nav a:focus-visible::after {
  right: 0;
}

.cm-header__actions {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.cm-header__cta,
.cm-mobile-cta__link {
  min-height: 42px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9bd88;
  border-radius: 3px;
  background: #b9935f;
  color: #17130f;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.cm-header__cta:hover,
.cm-header__cta:focus-visible,
.cm-mobile-cta__link:hover,
.cm-mobile-cta__link:focus-visible {
  border-color: var(--cm-gold-title);
  background: #c9a36c;
  color: #17130f;
  box-shadow: 0 0 0 2px rgba(240, 210, 138, 0.12);
}

.cm-menu-toggle {
  flex: 0 0 auto;
  display: grid;
  width: 42px;
  height: 42px;
  border: 1px solid #44413e;
  border-radius: 4px;
  background: #141414;
}

.cm-menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  box-shadow: none;
}

.cm-mobile-cta {
  display: none;
}

/* Typography */

body,
button,
input,
textarea,
select {
  font-family: var(--font-body);
}

body {
  font-size: 16px;
  line-height: 1.7;
}

h1,
h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  text-transform: none;
  text-wrap: balance;
}

.hero-v2__copy h1 {
  max-width: 760px;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 4.25vw, 4.2rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.018em;
}

.hero-v2__copy h1 em {
  font-style: italic;
  font-weight: 500;
}

.section h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.05rem, 3vw, 2.85rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.012em;
  text-transform: none;
}

h3,
.commercial-card h3,
.value-card h3,
.fit-card h3,
.process-card h3,
.step-card h3,
.testimonial-card h3,
.agenda-card h3,
.faq-card h3,
.faq-card summary {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: 0;
  text-transform: none;
}

.section p,
.hero-v2__lead,
.about-copy p,
.faq-card p,
.commercial-card p,
.fit-card p,
.process-card p,
.step-card p,
.testimonial-card p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.72;
  letter-spacing: 0;
}

.eyebrow,
.commercial-card__label {
  font-family: var(--font-title);
  font-size: 0.66rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.btn,
.text-link,
.nav-modal__panel a,
.cm-footer a {
  font-family: var(--font-body);
  text-transform: none;
}

/* Motion */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--cm-motion-time) var(--cm-motion-ease),
    transform var(--cm-motion-time) var(--cm-motion-ease);
  will-change: opacity, transform;
}

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

.section-head.reveal,
.about-copy.reveal,
.hero-v2__copy.reveal,
.commercial-grid.reveal,
.steps.reveal,
.faq-accordion.reveal {
  opacity: 1;
  transform: none;
  transition: none;
  will-change: auto;
}

.section-head.reveal .eyebrow,
.section-head.reveal h2,
.about-copy.reveal h2,
.hero-v2__copy.reveal .eyebrow,
.hero-v2__copy.reveal h1 {
  opacity: 0;
  transform: translateX(-26px);
  transition:
    opacity var(--cm-motion-time) var(--cm-motion-ease),
    transform var(--cm-motion-time) var(--cm-motion-ease);
}

.section-head.reveal.is-visible .eyebrow,
.section-head.reveal.is-visible h2,
.about-copy.reveal.is-visible h2,
.hero-v2__copy.reveal.is-visible .eyebrow,
.hero-v2__copy.reveal.is-visible h1 {
  opacity: 1;
  transform: translateX(0);
}

.section-head.reveal > p,
.about-copy.reveal > p,
.hero-v2__copy.reveal .hero-v2__lead,
.hero-v2__copy.reveal .hero-v2__actions,
.hero-v2__copy.reveal .hero-v2__facts {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--cm-motion-time) var(--cm-motion-ease),
    transform var(--cm-motion-time) var(--cm-motion-ease);
}

.section-head.reveal.is-visible > p,
.about-copy.reveal.is-visible > p,
.hero-v2__copy.reveal.is-visible .hero-v2__lead,
.hero-v2__copy.reveal.is-visible .hero-v2__actions,
.hero-v2__copy.reveal.is-visible .hero-v2__facts {
  opacity: 1;
  transform: translateY(0);
}

.section-head.reveal h2,
.about-copy.reveal h2,
.hero-v2__copy.reveal h1 {
  transition-delay: 45ms;
}

.section-head.reveal > p,
.about-copy.reveal > p:first-of-type,
.hero-v2__copy.reveal .hero-v2__lead {
  transition-delay: 105ms;
}

.about-copy.reveal > p:nth-of-type(2),
.hero-v2__copy.reveal .hero-v2__actions {
  transition-delay: 155ms;
}

.about-copy.reveal > p:nth-of-type(3),
.hero-v2__copy.reveal .hero-v2__facts {
  transition-delay: 205ms;
}

.about-copy.reveal > p:nth-of-type(4) {
  transition-delay: 255ms;
}

.commercial-grid.reveal > *,
.steps.reveal > *,
.faq-accordion.reveal > * {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--cm-motion-time) var(--cm-motion-ease),
    transform var(--cm-motion-time) var(--cm-motion-ease);
}

.commercial-grid.reveal.is-visible > *,
.steps.reveal.is-visible > *,
.faq-accordion.reveal.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.commercial-grid.reveal > *:nth-child(1),
.steps.reveal > *:nth-child(1),
.faq-accordion.reveal > *:nth-child(1) {
  transition-delay: 40ms;
}

.commercial-grid.reveal > *:nth-child(2),
.steps.reveal > *:nth-child(2),
.faq-accordion.reveal > *:nth-child(2) {
  transition-delay: 90ms;
}

.commercial-grid.reveal > *:nth-child(3),
.steps.reveal > *:nth-child(3),
.faq-accordion.reveal > *:nth-child(3) {
  transition-delay: 140ms;
}

.commercial-grid.reveal > *:nth-child(4),
.steps.reveal > *:nth-child(4),
.faq-accordion.reveal > *:nth-child(4) {
  transition-delay: 190ms;
}

.commercial-grid.reveal > *:nth-child(5),
.steps.reveal > *:nth-child(5),
.faq-accordion.reveal > *:nth-child(5) {
  transition-delay: 240ms;
}

.faq-accordion.reveal > *:nth-child(n + 6) {
  transition-delay: 280ms;
}

/* Responsive */

@media (min-width: 1180px) {
  .cm-desktop-nav {
    display: flex;
  }

  .cm-header__cta {
    display: inline-flex;
  }

  .cm-menu-toggle {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1179px) {
  .cm-header,
  .cm-header.is-scrolled {
    padding-inline: 24px !important;
  }

  .cm-desktop-nav {
    display: none;
  }

  .cm-header__cta {
    display: inline-flex;
  }

  .cm-menu-toggle {
    display: grid;
  }
}

@media (max-width: 767px) {
  body {
    padding-bottom:
      calc(70px + env(safe-area-inset-bottom));
  }

  .cm-header,
  .cm-header.is-scrolled {
    min-height: var(--cm-header-mobile);
    padding: 0 14px !important;
  }

  .cm-header__inner {
    min-height: var(--cm-header-mobile);
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 8px;
  }

  .cm-brand {
    grid-column: 2;
    justify-self: center;
    max-width: 230px;
  }

  .cm-brand__name {
    max-width: 230px;
    font-size: clamp(0.68rem, 3.25vw, 0.78rem);
    letter-spacing: 0.12em;
    white-space: normal;
  }

  .cm-brand__tagline {
    font-size: clamp(0.45rem, 2.2vw, 0.52rem);
    letter-spacing: 0.08em;
    white-space: normal;
  }

  .cm-header__actions {
    grid-column: 3;
    justify-self: end;
  }

  .cm-header__cta {
    display: none;
  }

  .cm-menu-toggle {
    display: grid;
  }

  .cm-mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: flex;
    justify-content: center;
    padding:
      10px
      14px
      calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid #303030;
    background: rgba(18, 18, 18, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .cm-mobile-cta__link {
    width: min(100%, 430px);
    min-height: 46px;
    font-size: 0.8rem;
  }

  .hero-v2__copy h1 {
    font-size: clamp(2.55rem, 12vw, 3.35rem);
    line-height: 1.02;
  }

  .section h2 {
    font-size: clamp(1.9rem, 9vw, 2.45rem);
    line-height: 1.14;
  }

  .section-head.reveal .eyebrow,
  .section-head.reveal h2,
  .about-copy.reveal h2,
  .hero-v2__copy.reveal .eyebrow,
  .hero-v2__copy.reveal h1 {
    transform: translateX(-16px);
  }

  .section-head.reveal > p,
  .about-copy.reveal > p,
  .hero-v2__copy.reveal .hero-v2__lead,
  .hero-v2__copy.reveal .hero-v2__actions,
  .hero-v2__copy.reveal .hero-v2__facts,
  .commercial-grid.reveal > *,
  .steps.reveal > *,
  .faq-accordion.reveal > * {
    transform: translateY(14px);
  }
}

@media (max-width: 380px) {
  .cm-brand__name {
    font-size: 0.66rem;
    letter-spacing: 0.09em;
  }

  .cm-brand__tagline {
    font-size: 0.43rem;
    letter-spacing: 0.065em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .section-head.reveal,
  .about-copy.reveal,
  .hero-v2__copy.reveal,
  .commercial-grid.reveal,
  .steps.reveal,
  .faq-accordion.reveal,
  .section-head.reveal *,
  .about-copy.reveal *,
  .hero-v2__copy.reveal *,
  .commercial-grid.reveal > *,
  .steps.reveal > *,
  .faq-accordion.reveal > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}
