/* =========================================================
   DAVID W COFFE — Mindset & Habits Coach
   Palette: Burnt Merlot #3b0000  /  Warm Bone #ede4c9
   ========================================================= */

:root {
  --merlot: #3b0000;
  --merlot-deep: #2a0000;
  --merlot-soft: #4a0a0a;
  --apricot: #ede4c9;
  --apricot-dim: #d4caac;
  --apricot-soft: rgba(237, 228, 201, 0.10);
  --apricot-line: rgba(237, 228, 201, 0.22);
  --grain-opacity: 0.06;

  --font-display: "Anton", "Bebas Neue", Impact, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Fraunces", "Playfair Display", Georgia, serif;

  --maxw: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--merlot);
  color: var(--apricot);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* Subtle film grain on body for editorial feel */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");
  mix-blend-mode: overlay;
}

::selection { background: var(--apricot); color: var(--merlot); }

a { color: inherit; text-decoration: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(3.5rem, 12vw, 11rem);
}

h2 {
  font-size: clamp(2.5rem, 7vw, 6rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

p { font-size: clamp(1rem, 1.1vw, 1.125rem); }

.lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  line-height: 1.4;
  max-width: 60ch;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.85;
}

.serif { font-family: var(--font-serif); }
.italic { font-style: italic; }

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

section {
  padding: clamp(4rem, 10vh, 9rem) 0;
  position: relative;
}

.divider {
  height: 1px;
  background: var(--apricot-line);
  width: 100%;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease;
  mix-blend-mode: normal;
}

.nav.scrolled {
  background: rgba(59, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--apricot-line);
  padding: 0.85rem var(--gutter);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: var(--apricot);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__logo .dot {
  width: 8px; height: 8px;
  background: var(--apricot);
  border-radius: 50%;
  display: inline-block;
}

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

.nav__menu a {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  padding: 0.25rem 0;
  font-weight: 500;
}

.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--apricot);
  transition: width 0.3s ease;
}

.nav__menu a:hover::after,
.nav__menu a.active::after { width: 100%; }

.nav__cta {
  background: transparent;
  color: var(--apricot);
  border: 0;
  padding: 0.25rem 0;
  border-radius: 0;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1;
  margin-left: 1.25rem;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.nav__cta .nav__cta-arrow {
  display: inline-block;
  margin-left: 0.55rem;
  font-size: 1rem;
  transition: transform 0.25s ease;
}

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

.nav__cta:hover {
  background: transparent;
  color: var(--apricot);
}

.nav__burger {
  display: none;
  width: 32px;
  height: 24px;
  position: relative;
  cursor: pointer;
  background: transparent;
  border: none;
  z-index: 110;
}

.nav__burger span {
  display: block;
  position: absolute;
  height: 1.5px;
  width: 100%;
  background: var(--apricot);
  transition: all 0.3s ease;
}

.nav__burger span:nth-child(1) { top: 4px; }
.nav__burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav__burger span:nth-child(3) { bottom: 4px; }

.nav__burger.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav__burger.active span:nth-child(2) { opacity: 0; }
.nav__burger.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

@media (max-width: 880px) {
  .nav__menu {
    position: fixed;
    top: 0; right: 0;
    width: min(80vw, 360px);
    height: 100vh;
    background: var(--merlot-deep);
    flex-direction: column;
    padding: 6rem 2.5rem 2.5rem;
    gap: 1.75rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1);
    align-items: flex-start;
    border-left: 1px solid var(--apricot-line);
  }
  .nav__menu.open { transform: translateX(0); }
  .nav__menu a { font-size: 1.1rem; }
  .nav__burger { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.2rem 2.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid var(--apricot);
  background: transparent;
  color: var(--apricot);
  font-family: var(--font-body);
  line-height: 1;
}

.btn--primary {
  background: var(--apricot);
  color: var(--merlot);
}

.btn--primary:hover {
  background: var(--merlot);
  color: var(--apricot);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(237, 228, 201, 0.18);
}

.btn--ghost:hover {
  background: var(--apricot);
  color: var(--merlot);
}

.btn .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

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

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  padding-bottom: clamp(2rem, 6vh, 5rem);
  padding-top: 8rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(59,0,0,0.55) 0%, rgba(59,0,0,0.85) 60%, var(--merlot) 100%),
    radial-gradient(ellipse at 70% 30%, rgba(237,228,201,0.06), transparent 60%);
}

.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05) brightness(0.7);
  mix-blend-mode: luminosity;
  opacity: 0.55;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: clamp(1rem, 2vh, 2rem);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--apricot-line);
}

.hero__meta .col { display: flex; flex-direction: column; gap: 0.4rem; }
.hero__meta .col strong { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.05em; }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 13.5vw, 13rem);
  letter-spacing: -0.02em;
  line-height: 0.88;
  text-transform: uppercase;
}

.hero__title .line {
  display: block;
}
.hero__title .line.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--apricot);
  text-stroke: 1.5px var(--apricot);
}

.hero__sub {
  margin-top: clamp(1.5rem, 3vh, 2.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: end;
}

@media (max-width: 760px) {
  .hero__sub { grid-template-columns: 1fr; gap: 1.5rem; }
}

.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  right: var(--gutter);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.7;
}

.hero__scroll .line {
  width: 40px; height: 1px; background: var(--apricot);
  position: relative; overflow: hidden;
}

.hero__scroll .line::after {
  content: ""; position: absolute; left: -100%; top: 0;
  width: 100%; height: 100%; background: var(--merlot);
  animation: scrollLine 2s linear infinite;
}

@keyframes scrollLine {
  0% { left: -100%; } 100% { left: 100%; }
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--apricot-line);
  border-bottom: 1px solid var(--apricot-line);
  padding: 1.5rem 0;
  overflow: hidden;
  position: relative;
  background: var(--merlot-deep);
}

.marquee__track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  width: max-content;
}

.marquee__item {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.marquee__item span.dot {
  width: 14px; height: 14px;
  background: var(--apricot);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.marquee__item.outline {
  color: var(--apricot);
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: -0.01em;
  opacity: 0.92;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Section header ---------- */
.section-head {
  display: grid;
  grid-template-columns: minmax(auto, 200px) 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  margin-bottom: clamp(2rem, 5vh, 5rem);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--apricot-line);
}

.section-head__num {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.section-head__title h2 { margin-bottom: 1rem; }
.section-head__title p { max-width: 60ch; opacity: 0.8; }

@media (max-width: 700px) {
  .section-head { grid-template-columns: 1fr; }
}

/* ---------- About preview ---------- */
.about-preview {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.about-preview__img {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 4px;
}

.about-preview__img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.about-preview__img:hover img { transform: scale(1.04); }

.about-preview__img::after {
  content: "DAVID W. — '26";
  position: absolute;
  bottom: 1rem; left: 1rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  background: var(--merlot);
  color: var(--apricot);
  padding: 0.4rem 0.7rem;
}

.about-preview__text h2 { margin-bottom: 1.5rem; }
.about-preview__text p { margin-bottom: 1.25rem; opacity: 0.92; max-width: 52ch; }

.about-preview__sig {
  margin-top: 2rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.about-preview__sig::before {
  content: ""; width: 30px; height: 1px; background: var(--apricot); display: inline-block;
}

@media (max-width: 860px) {
  .about-preview { grid-template-columns: 1fr; }
}

/* ---------- Services / Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--apricot-line);
  border-left: 1px solid var(--apricot-line);
}

.pillar {
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  border-right: 1px solid var(--apricot-line);
  border-bottom: 1px solid var(--apricot-line);
  position: relative;
  transition: background 0.4s ease;
  display: flex; flex-direction: column;
  min-height: 320px;
}

.pillar:hover { background: var(--apricot-soft); }

.pillar__num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  opacity: 0.7;
  margin-bottom: 2rem;
}

.pillar__title {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  margin-bottom: 1.5rem;
  line-height: 0.95;
}

.pillar__desc {
  opacity: 0.85;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.pillar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  width: fit-content;
}

.pillar__link .arrow { transition: transform 0.3s ease; display: inline-block; }
.pillar:hover .pillar__link .arrow { transform: translateX(6px); }

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

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--apricot-line);
  border-bottom: 1px solid var(--apricot-line);
}

.stat {
  padding: 2.5rem 1.5rem;
  border-right: 1px solid var(--apricot-line);
  text-align: left;
}

.stat:last-child { border-right: none; }

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.stat__label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.75;
}

@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--apricot-line); }
}

/* ---------- Method timeline ---------- */
.method-list { display: flex; flex-direction: column; }

.method-step {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
  border-top: 1px solid var(--apricot-line);
  align-items: start;
  position: relative;
  transition: padding-left 0.4s ease;
}

.method-step:last-child { border-bottom: 1px solid var(--apricot-line); }
.method-step:hover { padding-left: 1rem; }

.method-step__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  color: var(--apricot);
  opacity: 0.55;
}

.method-step__body h3 { margin-bottom: 0.75rem; }
.method-step__body p { max-width: 55ch; opacity: 0.85; }

.method-step__tag {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--apricot-line);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
  height: fit-content;
}

@media (max-width: 760px) {
  .method-step { grid-template-columns: 60px 1fr; }
  .method-step__tag { grid-column: 1 / -1; }
}

/* ---------- Image grid ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.5rem, 1.5vw, 1.25rem);
}

.gallery__item {
  overflow: hidden;
  position: relative;
  border-radius: 4px;
  background: var(--merlot-deep);
}

.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(100%) contrast(1.05) brightness(0.95);
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
}

.gallery__item:hover img {
  transform: scale(1.05);
  filter: grayscale(100%) contrast(1.1) brightness(1);
}

.g-1 { grid-column: span 7; aspect-ratio: 4/3; }
.g-2 { grid-column: span 5; aspect-ratio: 3/4; }
.g-3 { grid-column: span 4; aspect-ratio: 1/1; }
.g-4 { grid-column: span 8; aspect-ratio: 16/10; }

@media (max-width: 760px) {
  .g-1, .g-2, .g-3, .g-4 { grid-column: span 12; aspect-ratio: 4/3; }
}

/* ---------- Quote / pull ---------- */
.pullquote {
  text-align: center;
  padding: clamp(4rem, 10vh, 8rem) 0;
  position: relative;
}

.pullquote blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  line-height: 1.2;
  max-width: 18ch;
  margin: 0 auto;
}

.pullquote cite {
  display: block;
  margin-top: 2rem;
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.75;
}

.pullquote::before, .pullquote::after {
  content: "❝";
  font-family: var(--font-serif);
  font-size: 4rem;
  position: absolute;
  opacity: 0.3;
}

.pullquote::before { top: 1rem; left: 50%; transform: translateX(-50%); }
.pullquote::after { content: "❞"; bottom: 4rem; left: 50%; transform: translateX(-50%); }

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.testimonial {
  border: 1px solid var(--apricot-line);
  padding: clamp(2rem, 3vw, 2.75rem);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: background 0.3s ease, transform 0.4s ease;
  background: rgba(74, 10, 10, 0.3);
}

.testimonial:hover {
  background: var(--apricot-soft);
  transform: translateY(-4px);
}

.testimonial__stars {
  letter-spacing: 0.3em;
  font-size: 0.95rem;
}

.testimonial__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.testimonial__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--apricot);
  color: var(--merlot);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.testimonial__name { font-weight: 600; font-size: 0.9rem; letter-spacing: 0.05em; }
.testimonial__role { font-size: 0.75rem; opacity: 0.7; letter-spacing: 0.15em; text-transform: uppercase; }

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

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; }
.faq__item {
  border-top: 1px solid var(--apricot-line);
  padding: 1.75rem 0;
  cursor: pointer;
}
.faq__item:last-child { border-bottom: 1px solid var(--apricot-line); }

.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.faq__toggle {
  width: 36px; height: 36px;
  border: 1px solid var(--apricot);
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease;
  font-size: 1.1rem;
}

.faq__item.open .faq__toggle {
  transform: rotate(45deg);
  background: var(--apricot);
  color: var(--merlot);
}

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

.faq__a-inner { padding-top: 1rem; max-width: 70ch; opacity: 0.88; }

.faq__item.open .faq__a {
  max-height: 400px;
  opacity: 1;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--apricot);
  color: var(--merlot);
  padding: clamp(4rem, 10vh, 7rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before, .cta-banner::after {
  content: "";
  position: absolute;
  width: 200%; height: 200%;
  border: 1px solid var(--merlot);
  border-radius: 50%;
  opacity: 0.08;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.cta-banner::after { width: 140%; height: 140%; opacity: 0.15; }

.cta-banner h2 {
  font-size: clamp(2.5rem, 8vw, 7rem);
  line-height: 0.92;
  margin-bottom: 1.5rem;
}

.cta-banner p { max-width: 50ch; margin: 0 auto 2.5rem; font-size: 1.1rem; }

.cta-banner .btn {
  background: var(--merlot);
  color: var(--apricot);
  border-color: var(--merlot);
}
.cta-banner .btn:hover {
  background: transparent;
  color: var(--merlot);
}

/* ---------- Calendly box ---------- */
.calendly-box {
  background: var(--merlot-deep);
  border: 1px solid var(--apricot-line);
  border-radius: 8px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  min-height: 720px;
  display: flex;
  flex-direction: column;
}

.calendly-placeholder {
  flex-grow: 1;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1.5px dashed var(--apricot-line);
  border-radius: 6px;
  padding: 3rem 1.5rem;
  min-height: 500px;
}
.calendly-placeholder p { max-width: 40ch; opacity: 0.85; }
.calendly-placeholder .eyebrow { margin-bottom: 1rem; }

/* ---------- Form ---------- */
.form { display: grid; gap: 1.25rem; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }

.form input, .form textarea, .form select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--apricot-line);
  color: var(--apricot);
  padding: 0.85rem 0;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color 0.25s ease;
}

.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--apricot);
}

.form input::placeholder, .form textarea::placeholder { color: var(--apricot); opacity: 0.55; }

.form textarea { min-height: 140px; resize: vertical; }

.form label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 0.25rem;
  display: block;
}

.form button { justify-self: start; margin-top: 1rem; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--apricot-line);
  padding: clamp(3rem, 6vh, 5rem) 0 2rem;
  margin-top: clamp(4rem, 8vh, 6rem);
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--apricot-line);
}

@media (max-width: 880px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer__top { grid-template-columns: 1fr; }
}

.footer__brand h3 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 1rem;
}

.footer__brand p { max-width: 40ch; opacity: 0.85; margin-bottom: 1.5rem; }

.footer__col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
  font-weight: 600;
  opacity: 0.7;
}

.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer__col a { font-size: 0.95rem; opacity: 0.9; transition: opacity 0.25s ease; }
.footer__col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.footer__bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  opacity: 0.7;
  letter-spacing: 0.1em;
}

/* ---------- Page header (internal pages) ---------- */
.page-header {
  padding: 12rem 0 4rem;
  border-bottom: 1px solid var(--apricot-line);
}

.page-header .crumbs {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 2rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.page-header .crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }

.page-header h1 {
  font-size: clamp(3rem, 12vw, 10rem);
  line-height: 0.9;
  margin-bottom: 1rem;
}

.page-header .subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  max-width: 60ch;
  opacity: 0.9;
}

/* ---------- Pricing cards ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.price-card {
  border: 1px solid var(--apricot-line);
  border-radius: 8px;
  padding: clamp(2rem, 3vw, 3rem) clamp(1.5rem, 2.5vw, 2.25rem);
  background: rgba(74, 10, 10, 0.4);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: all 0.4s ease;
  position: relative;
}

.price-card:hover {
  transform: translateY(-6px);
  border-color: var(--apricot);
}

.price-card--feat {
  background: var(--apricot);
  color: var(--merlot);
  border-color: var(--apricot);
}

.price-card--feat .price-card__price { color: var(--merlot); }

.price-card__badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--merlot);
  color: var(--apricot);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border: 1px solid var(--apricot);
}

.price-card__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
}

.price-card__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  opacity: 0.85;
}

.price-card__price {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.price-card__price small {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.7;
}

.price-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex-grow: 1;
}

.price-card__list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.95rem;
  line-height: 1.4;
}

.price-card__list li::before {
  content: "→";
  font-weight: 700;
  flex-shrink: 0;
}

.price-card .btn--primary {
  background: var(--apricot);
  color: var(--merlot);
}
.price-card--feat .btn--primary {
  background: var(--merlot);
  color: var(--apricot);
  border-color: var(--merlot);
}
.price-card--feat .btn--primary:hover {
  background: transparent;
  color: var(--merlot);
}

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

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Sticky labels for editorial detail ---------- */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--apricot-line);
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.tag-pill .dot {
  width: 6px; height: 6px;
  background: var(--apricot);
  border-radius: 50%;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ---------- Two col ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Product (Libreta) ---------- */
.product {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  background: var(--merlot-deep);
  border: 1px solid var(--apricot-line);
  border-radius: 10px;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 4rem);
}

.product__media {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 6px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(237,228,201,0.14), transparent 60%),
    linear-gradient(160deg, var(--merlot-soft), var(--merlot-deep));
  display: grid;
  place-items: center;
}

.product__media .book {
  width: 65%;
  aspect-ratio: 3/4;
  background: var(--apricot);
  color: var(--merlot);
  border-radius: 2px 6px 6px 2px;
  box-shadow:
    -2px 0 0 rgba(0,0,0,0.18) inset,
    14px 24px 50px rgba(0,0,0,0.45),
    0 2px 0 rgba(255,255,255,0.15) inset;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 1.25rem;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-align: center;
  transform: rotate(-3deg);
  transition: transform 0.6s cubic-bezier(0.2,0.8,0.2,1);
}

.product:hover .product__media .book { transform: rotate(-1deg) translateY(-4px); }

/* Portada real de la libreta (imagen) */
.product__media .book-cover {
  width: 66%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 2px 6px 6px 2px;
  box-shadow:
    -2px 0 0 rgba(0,0,0,0.18) inset,
    14px 24px 50px rgba(0,0,0,0.45);
  transform: rotate(-3deg);
  transition: transform 0.6s cubic-bezier(0.2,0.8,0.2,1);
}
.product:hover .product__media .book-cover { transform: rotate(-1deg) translateY(-4px); }

.product__media .book::before {
  content: "";
  position: absolute;
  left: 8px; top: 8px; bottom: 8px; right: 8px;
  border: 1px solid rgba(59,0,0,0.35);
  border-radius: 2px;
  pointer-events: none;
}

.product__media .book__top {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  opacity: 0.75;
}

.product__media .book__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.3vw, 2.2rem);
  line-height: 1.05;
  text-transform: none;
  letter-spacing: -0.01em;
}

.product__media .book__author {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
}

.product__badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--apricot);
  color: var(--merlot);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
}

.product__body .eyebrow { display: block; margin-bottom: 0.75rem; }
.product__body h2 { margin-bottom: 1.25rem; }
.product__body p { margin-bottom: 1.25rem; opacity: 0.9; max-width: 50ch; }

.product__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1.25rem 0 1.75rem;
}
.product__list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.95rem;
  opacity: 0.9;
}
.product__list li::before {
  content: "—";
  color: var(--apricot);
  flex-shrink: 0;
}

.product__meta {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.product__price {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}
.product__price small {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  font-weight: 500;
  margin-left: 0.4rem;
}
.product__stock {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.75;
}

@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; padding: 1.5rem; }
}

/* ---------- Locked / disabled card overlay ---------- */
.price-card--locked {
  opacity: 0.55;
  pointer-events: none;
  position: relative;
}
.price-card--locked::after {
  content: "Próximamente";
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--merlot-deep);
  border: 1px solid var(--apricot-line);
  color: var(--apricot);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* =========================================================
   MOBILE OPTIMIZATIONS
   ========================================================= */

html, body { overflow-x: hidden; }

@media (max-width: 880px) {
  /* Nav inside drawer */
  .nav__cta {
    margin-left: 0;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--apricot-line);
    width: 100%;
    font-size: 1.05rem;
  }
  .nav__cta .nav__cta-arrow { font-size: 1.15rem; }

  /* Burger al borde derecho (con space-between y 3 hijos quedaba centrado) */
  .nav__burger { margin-left: auto; }

  /* Sin fondo al hacer scroll en móvil — barra siempre transparente */
  .nav.scrolled {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
  }

  /* Legibilidad del logo/burger sobre cualquier fondo sin barra */
  .nav__logo { text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45); }
  .nav__burger span { box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45); }
}

@media (max-width: 760px) {
  :root { --gutter: 1.25rem; }

  /* Sections: tighter vertical rhythm */
  section { padding: clamp(2.5rem, 7vh, 5rem) 0; }

  /* Nav bar */
  .nav { padding: 0.9rem var(--gutter); }
  .nav.scrolled { padding: 0.65rem var(--gutter); }
  .nav__logo { font-size: 1rem; }
  .nav__logo .dot { width: 6px; height: 6px; }

  /* Hero */
  .hero {
    padding-top: 6rem;
    padding-bottom: 2.5rem;
    min-height: 92vh;
    align-items: flex-end;
  }
  .hero__meta {
    gap: 0.85rem 1.25rem;
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
  }
  .hero__meta .col { gap: 0.2rem; flex: 1 1 45%; }
  .hero__meta .col strong { font-size: 0.85rem; letter-spacing: 0.03em; }
  .hero__meta .col .eyebrow { font-size: 0.6rem; letter-spacing: 0.22em; }
  .hero__title {
    font-size: clamp(2.8rem, 13vw, 4.8rem);
    line-height: 0.92;
    letter-spacing: -0.015em;
  }
  .hero__title .line.outline { -webkit-text-stroke: 1px var(--apricot); text-stroke: 1px var(--apricot); }
  .hero__sub { margin-top: 1.25rem; }
  .lead { font-size: 1.05rem; line-height: 1.45; }
  .hero__cta { gap: 0.6rem; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
  .hero__scroll { display: none; }

  /* Page headers */
  .page-header { padding: 7rem 0 2.5rem; }
  .page-header .crumbs { margin-bottom: 1.25rem; }

  /* Marquee */
  .marquee { padding: 1rem 0; }
  .marquee__track { gap: 2rem; }
  .marquee__item { gap: 2rem; font-size: clamp(1.5rem, 6vw, 2.5rem); }
  .marquee__item span.dot { width: 9px; height: 9px; }

  /* Section header */
  .section-head { padding-bottom: 1rem; margin-bottom: 1.75rem; gap: 0.5rem; }
  .section-head__num { font-size: 0.8rem; }

  /* Stats: keep 2 cols, smaller numbers */
  .stat { padding: 1.5rem 1rem; }
  .stat__num { font-size: clamp(1.85rem, 9vw, 2.6rem); margin-bottom: 0.4rem; }
  .stat__label { font-size: 0.62rem; letter-spacing: 0.15em; }

  /* Pillars stacked: kill left/right borders so it doesn't look broken */
  .pillars { border-left: 0; }
  .pillar { border-right: 0; min-height: auto; padding: 1.75rem 1.25rem; }
  .pillar__num { margin-bottom: 1rem; }
  .pillar__title { margin-bottom: 1rem; }
  .pillar__desc { margin-bottom: 1.25rem; }

  /* Buttons */
  .btn { padding: 1rem 1.7rem; font-size: 0.78rem; letter-spacing: 0.13em; gap: 0.6rem; }

  /* Pricing */
  .pricing { gap: 1rem; }
  .price-card { padding: 1.75rem 1.5rem; gap: 1.25rem; }
  .price-card__name { font-size: 1.3rem; }
  .price-card__price { font-size: 2.4rem; }

  /* Testimonials */
  .testimonial { padding: 1.5rem; gap: 1.1rem; }
  .testimonial__quote { font-size: 1rem; line-height: 1.5; }
  .testimonial__avatar { width: 40px; height: 40px; font-size: 0.95rem; }

  /* FAQ */
  .faq__item { padding: 1.25rem 0; }
  .faq__q { font-size: 1.05rem; gap: 1rem; }
  .faq__toggle { width: 30px; height: 30px; font-size: 0.95rem; flex-shrink: 0; }

  /* Pull quote */
  .pullquote { padding: 2.75rem 0; }
  .pullquote blockquote { font-size: clamp(1.4rem, 6vw, 2.2rem); }
  .pullquote::before { top: 0.3rem; font-size: 2.25rem; }
  .pullquote::after { bottom: 0.6rem; font-size: 2.25rem; }
  .pullquote cite { margin-top: 1.25rem; font-size: 0.7rem; }

  /* CTA banner */
  .cta-banner { padding: 3.5rem 0; }
  .cta-banner h2 { font-size: clamp(2rem, 10vw, 3.4rem); margin-bottom: 1.1rem; }
  .cta-banner p { font-size: 1rem; margin-bottom: 1.75rem; }

  /* About preview */
  .about-preview__img { aspect-ratio: 4/5; max-height: 420px; }
  .about-preview__img::after { font-size: 0.65rem; padding: 0.3rem 0.55rem; }

  /* Product (Libreta) */
  .product { padding: 1.5rem; gap: 1.5rem; }
  .product__media .book { width: 72%; padding: 1.1rem 1rem; }
  .product__media .book-cover { width: 74%; }
  .product__media .book__title { font-size: 1.4rem; }
  .product__meta { flex-direction: column; align-items: flex-start; gap: 0.4rem; margin-bottom: 1.25rem; }

  /* Method step */
  .method-step { padding: 1.25rem 0; gap: 1rem; }
  .method-step__num { font-size: 2.25rem; }
  .method-step:hover { padding-left: 0; }
  .method-step__body h3 { font-size: 1.4rem; }
  .method-step__tag { margin-top: 0.5rem; font-size: 0.65rem; padding: 0.3rem 0.7rem; }

  /* Footer */
  .footer { padding: 3rem 0 1.5rem; margin-top: 3rem; }
  .footer__top { padding-bottom: 2rem; gap: 1.75rem; }
  .footer__brand h3 { font-size: 2.5rem; margin-bottom: 0.75rem; }
  .footer__col a { font-size: 0.95rem; }
  .footer__bottom { font-size: 0.7rem; }

  /* Calendly */
  .calendly-box { padding: 1.25rem; min-height: 520px; }
  .calendly-placeholder { padding: 2rem 1rem; min-height: 400px; }

  /* Form */
  .form input, .form textarea, .form select { font-size: 0.95rem; }

  /* Two-col tightening */
  .two-col { gap: 1.75rem; }

  /* Tap targets — make sure links in nav drawer are easy */
  .nav__menu a { padding: 0.5rem 0; }
}

@media (max-width: 400px) {
  .hero__meta { gap: 0.7rem 1rem; }
  .hero__meta .col { flex: 1 1 100%; }
  .hero__title { font-size: clamp(2.4rem, 12vw, 3.6rem); }
  .stat__num { font-size: clamp(1.65rem, 8.5vw, 2.2rem); }
  .stat__label { font-size: 0.58rem; }
  .cta-banner h2 { font-size: clamp(1.85rem, 11vw, 3rem); }
  .footer__brand h3 { font-size: 2.1rem; }
}

/* ---------- Sobre: relato (texto + foto alternados, reveal al scroll) ---------- */
.story { display: flex; flex-direction: column; gap: clamp(3rem, 8vw, 6.5rem); }
.story__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.75rem, 5vw, 4.5rem);
  align-items: center;
}
.story__row:nth-child(even) .story__media { order: 2; }
.story__media {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
}
.story__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
  transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.story__media:hover img { transform: scale(1.04); }
.story__media figcaption {
  position: absolute;
  bottom: 1rem; left: 1rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--merlot);
  color: var(--apricot);
  padding: 0.4rem 0.7rem;
}
.story__text p { margin-bottom: 1.1rem; opacity: 0.9; }
.story__text p:first-child { font-size: 1.12rem; opacity: 1; }
.story__text p:last-child { margin-bottom: 0; }

@media (max-width: 760px) {
  .story { gap: 2.75rem; }
  .story__row { grid-template-columns: 1fr; gap: 1.1rem; }
  .story__row .story__media { order: -1; } /* por defecto: foto encima del texto */
  .story__row:nth-child(3) .story__media { order: 1; } /* "El reset": foto debajo del texto */
  .story__media { aspect-ratio: 4/3; max-height: 380px; }
  .story__text p:first-child { font-size: 1.05rem; }
}

/* =========================================================
   MOBILE POLISH (v6) — iOS anti-zoom, dynamic viewport, tap feel
   ========================================================= */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 90px; /* fixed nav offset for anchor jumps */
}
* { -webkit-tap-highlight-color: rgba(237, 228, 201, 0.15); }

/* Dynamic viewport height: avoids mobile URL-bar jump / overflow */
@supports (height: 100dvh) {
  .hero { min-height: 100dvh; }
  @media (max-width: 760px) { .hero { min-height: 92dvh; } }
}

/* Prevent iOS auto-zoom on focus: inputs must be >= 16px */
@media (max-width: 760px) {
  .form input,
  .form textarea,
  .form select { font-size: 16px; }
}

/* Reduce motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee__track { animation: none; }
  .hero__scroll .line::after { animation: none; }
}
