/* ============================================================
   milía — marketing site
   Warm paper, deep wine, EB Garamond + Hanken Grotesk.
   Two jobs: convert to paid signup, and be screenshot-beautiful.
   ============================================================ */

:root {
  --paper: oklch(0.978 0.004 80);
  --paper-2: oklch(0.955 0.006 80);
  --ink: oklch(0.23 0.015 30);
  --ink-dim: oklch(0.42 0.012 30);
  --ink-faint: oklch(0.56 0.01 30);
  --wine: oklch(0.45 0.13 16);
  --wine-deep: oklch(0.36 0.12 16);
  --wine-bg: oklch(0.45 0.13 16 / 0.08);
  --cream: oklch(0.985 0.008 80);
  --line: oklch(0.9 0.008 65);
  --serif: 'EB Garamond', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.serif { font-family: var(--serif); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- header ---------- */
.hd {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 30px;
  transition: background 300ms var(--ease), box-shadow 300ms var(--ease), padding 300ms var(--ease);
}
.hd.solid { background: oklch(0.978 0.004 80 / 0.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); padding: 12px 30px; }
.hd-brand { display: inline-flex; align-items: center; gap: 10px; }
.hd-brand img.mark { height: 30px; width: auto; }
.hd-brand img.word { height: 22px; width: auto; }
/* over the hero the header logo renders cream; solid header returns it to wine */
.hd:not(.solid) .hd-brand img { filter: brightness(0) invert(0.97); }
.hd-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 600; }
.hd:not(.solid) .hd-nav a:not(.cta) { color: oklch(0.97 0.01 80); }
.hd-nav a:not(.cta) { color: var(--ink-dim); transition: color 160ms; }
.hd-nav a:not(.cta):hover { color: var(--wine); }
.hd:not(.solid) .hd-nav a:not(.cta):hover { color: #fff; }
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--wine); color: var(--cream) !important;
  font-weight: 600; font-size: 14.5px; letter-spacing: 0.01em;
  padding: 12px 26px; border-radius: 999px; border: 0; cursor: pointer;
  transition: background 180ms var(--ease), transform 180ms var(--ease), box-shadow 180ms var(--ease);
  box-shadow: 0 10px 26px -10px oklch(0.45 0.13 16 / 0.55);
}
.cta:hover { background: var(--wine-deep); transform: translateY(-1px); }
.cta:active { transform: scale(0.97); }
.cta-big { font-size: 16px; padding: 16px 38px; }
.cta-ghost {
  background: transparent; color: var(--cream) !important;
  border: 1px solid oklch(1 0 0 / 0.5); box-shadow: none;
}
.cta-ghost:hover { background: oklch(1 0 0 / 0.12); }
.hd-burger { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100dvh;
  display: flex; align-items: flex-end; justify-content: center; text-align: center;
  color: var(--cream); overflow: hidden;
}
.hero-inner { padding-bottom: 13vh; }
.hero-media { position: absolute; inset: -6% 0; z-index: 0; }
.hero-media img, .hero-media video {
  width: 100%; height: 100%; object-fit: cover;
  animation: kenburns 22s var(--ease) both;
}
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, oklch(0.2 0.05 16 / 0.42), oklch(0.2 0.05 16 / 0.18) 40%, oklch(0.15 0.05 16 / 0.62));
}
.hero-inner { position: relative; z-index: 2; padding-left: 24px; padding-right: 24px; }
.hero-logo { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero-logo .mark {
  height: 74px; width: auto;
  filter: brightness(0) invert(0.97) drop-shadow(0 4px 24px oklch(0 0 0 / 0.3));
  clip-path: inset(0 0 100% 0);
  animation: markWipe 1.2s var(--ease) 0.2s forwards;
}
@keyframes markWipe { to { clip-path: inset(0 0 0% 0); } }
.hero-logo .word {
  height: 52px; width: auto;
  filter: brightness(0) invert(0.97) drop-shadow(0 4px 24px oklch(0 0 0 / 0.3));
  opacity: 0; transform: translateY(10px);
  animation: fadeUp 0.9s var(--ease) 1.1s forwards;
}
.hero-tag {
  font-family: var(--serif); font-size: clamp(20px, 2.6vw, 28px); font-style: italic;
  letter-spacing: 0.01em; opacity: 0; transform: translateY(10px);
  animation: fadeUp 0.9s var(--ease) 1.6s forwards;
  text-shadow: 0 2px 18px oklch(0 0 0 / 0.35);
}
.hero-cta-row { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  opacity: 0; transform: translateY(10px); animation: fadeUp 0.9s var(--ease) 2s forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
  font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 700;
  color: oklch(0.97 0.01 80 / 0.75); animation: fadeUp 1s var(--ease) 2.6s both;
}

/* ---------- generic section machinery ---------- */
section { position: relative; }
.sec { padding: 110px 0; }
.eyebrow {
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 700;
  color: var(--wine); margin-bottom: 18px;
}
.display {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(34px, 4.6vw, 58px); line-height: 1.08; letter-spacing: -0.01em;
  text-wrap: balance;
}
.lede { font-size: 18px; color: var(--ink-dim); max-width: 58ch; margin-top: 20px; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* apple ornament divider */
.orn { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 8px 0; }
.orn::before, .orn::after { content: ''; height: 1px; width: min(120px, 20vw); background: var(--line); }
.orn svg { width: 18px; height: 18px; color: var(--wine); opacity: 0.75; }

/* ---------- photo interludes (parallax stills) ---------- */
.interlude {
  position: relative; min-height: 84vh; display: flex; align-items: center;
  color: var(--cream); overflow: hidden;
}
.interlude .bg { position: absolute; inset: -12% 0; z-index: 0; will-change: transform; }
.interlude .bg img { width: 100%; height: 100%; object-fit: cover; }
.interlude::after { content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, oklch(0.2 0.05 16 / 0.36), oklch(0.16 0.05 16 / 0.55)); }
.interlude .wrap { position: relative; z-index: 2; }
.interlude .display { text-shadow: 0 2px 22px oklch(0 0 0 / 0.4); }
.interlude .lede { color: oklch(0.95 0.012 80); }

/* ---------- studio chapters ---------- */
.chapter { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; padding: 84px 0; }
.chapter:nth-child(even) .ch-copy { order: 2; }
.ch-copy h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3vw, 38px); line-height: 1.12; }
.ch-copy p { margin-top: 14px; font-size: 17px; color: var(--ink-dim); max-width: 44ch; }
.ch-copy .more { display: inline-block; margin-top: 18px; font-weight: 600; font-size: 14px; color: var(--wine); }
.ch-copy .more:hover { text-decoration: underline; }
.ch-frame {
  background: var(--cream); border: 1px solid var(--line); border-radius: 18px; padding: 14px;
  box-shadow: 0 2px 6px oklch(0.3 0.03 30 / 0.05), 0 30px 70px -30px oklch(0.3 0.06 20 / 0.28);
  transform: rotate(var(--tilt, 1.6deg)); transition: transform 700ms var(--ease);
}
.chapter:nth-child(even) .ch-frame { --tilt: -1.6deg; }
.ch-frame:hover { transform: rotate(0deg) scale(1.01); }
.ch-frame img { border-radius: 10px; }
.ch-note { margin-top: 10px; text-align: center; font-size: 12px; color: var(--ink-faint); font-style: italic; font-family: var(--serif); }

/* ---------- THE APPLE interstitial ---------- */
.apple-myth {
  min-height: 92vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 80px 24px;
  background: var(--paper);
}
.apple-myth img { height: 64px; width: auto; margin-bottom: 44px; }
.apple-myth p {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(20px, 2.6vw, 30px); line-height: 1.5; color: var(--ink);
  max-width: 30ch; text-wrap: balance;
}
.apple-myth p + p { margin-top: 26px; }
.apple-myth .attribution { margin-top: 40px; font-family: var(--sans); font-style: normal; font-size: 11px;
  letter-spacing: 0.28em; text-transform: uppercase; font-weight: 700; color: var(--wine); }

/* ---------- numbers strip ---------- */
.numbers { background: var(--wine); color: var(--cream); padding: 84px 0; }
.numbers .row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.nb b { display: block; font-family: var(--serif); font-size: clamp(44px, 5vw, 72px); line-height: 1; font-weight: 500; }
.nb span { display: block; margin-top: 10px; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; opacity: 0.8; }

/* ---------- quotes ---------- */
.quotes { padding: 120px 0; }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; margin-top: 40px; }
.pull q {
  display: block; font-family: var(--serif); font-style: italic;
  font-size: clamp(22px, 2.4vw, 29px); line-height: 1.45; quotes: '\201C' '\201D';
}
.pull q::before, .pull q::after { color: var(--wine); }
.pull footer { margin-top: 22px; font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: var(--ink-faint); }

/* ---------- pricing ---------- */
.pricing { background: var(--paper-2); padding: 120px 0; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 54px; align-items: stretch; }
.tier {
  background: var(--cream); border: 1px solid var(--line); border-radius: 20px; padding: 36px 32px;
  display: flex; flex-direction: column;
}
.tier.love { border-color: color-mix(in oklch, var(--wine) 45%, var(--line)); background: linear-gradient(180deg, var(--cream), color-mix(in oklch, var(--wine) 4%, var(--cream))); position: relative; }
.tier.love::before {
  content: 'Most loved'; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--wine); color: var(--cream); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; padding: 6px 16px; border-radius: 999px;
}
.tier h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; }
.tier .price { margin: 18px 0 4px; font-family: var(--serif); font-size: 52px; line-height: 1; color: var(--wine); }
.tier .per { font-size: 13px; color: var(--ink-faint); margin-bottom: 24px; }
.tier ul { list-style: none; display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; color: var(--ink-dim); flex: 1; }
.tier li { display: flex; gap: 10px; align-items: baseline; }
.tier li::before { content: '♥'; color: var(--wine); font-size: 11px; flex-shrink: 0; }
.tier .cta { margin-top: 30px; width: 100%; }
.tier.quiet .cta { background: transparent; color: var(--wine) !important; border: 1.5px solid var(--wine); box-shadow: none; }
.tier.quiet .cta:hover { background: var(--wine-bg); }
.sms-line { margin-top: 30px; text-align: center; font-size: 14px; color: var(--ink-dim); }
.sms-line button { background: none; border: 0; color: var(--wine); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.sms-detail { max-width: 560px; margin: 18px auto 0; display: none; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--cream); }
.sms-detail.open { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.sms-detail div { padding: 18px; text-align: center; }
.sms-detail div + div { border-left: 1px solid var(--line); }
.sms-detail b { display: block; font-family: var(--serif); font-size: 24px; color: var(--wine); }
.sms-detail span { font-size: 12px; color: var(--ink-faint); }
.own-it { margin-top: 44px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink-dim); }

/* ---------- vow / closing ---------- */
.vow { min-height: 96vh; }
.vow .inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; }

/* ---------- footer ---------- */
footer.ft { background: var(--paper); padding: 60px 0 44px; border-top: 1px solid var(--line); }
.ft-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-faint); }
.ft-row a:hover { color: var(--wine); }
.ft-links { display: flex; gap: 26px; }
.ft-apple { display: flex; justify-content: center; margin-top: 46px; }
.ft-apple img { height: 30px; opacity: 0.9; }

/* ---------- scroll progress apple ---------- */
.progress-apple {
  position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 34px; height: 38px;
  opacity: 0; transition: opacity 400ms var(--ease); pointer-events: none;
}
.progress-apple.show { opacity: 0.9; }
.progress-apple .fillrect { transition: height 120ms linear, y 120ms linear; }

/* ---------- subpage scaffolding ---------- */
.subhero { padding: 190px 0 80px; }
.subhero .display { max-width: 18ch; }
.table-wrap { overflow-x: auto; margin-top: 46px; border: 1px solid var(--line); border-radius: 16px; background: var(--cream); }
table.cmp { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
.cmp th, .cmp td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.cmp th { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.cmp td:not(:first-child), .cmp th:not(:first-child) { text-align: center; }
.cmp .yes { color: var(--wine); font-weight: 700; }
.cmp .no { color: var(--line); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 60px; margin-top: 50px; }
.faq-grid h4 { font-family: var(--serif); font-weight: 600; font-size: 19px; margin-bottom: 8px; }
.faq-grid p { font-size: 15px; color: var(--ink-dim); }
.story {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; padding: 70px 0;
  border-top: 1px solid var(--line);
}
.story:first-of-type { border-top: 0; }
.story img { border-radius: 18px; box-shadow: 0 30px 70px -30px oklch(0.3 0.06 20 / 0.3); }
.story .stats { display: flex; gap: 34px; margin-top: 24px; }
.story .stats b { display: block; font-family: var(--serif); font-size: 30px; color: var(--wine); }
.story .stats span { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }

/* ---------- mobile ---------- */
.mnav {
  position: fixed; inset: 0; z-index: 60; background: var(--wine); color: var(--cream);
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 34px;
  font-family: var(--serif); font-size: 30px;
}
.mnav.open { display: flex; }
.mnav a:hover { font-style: italic; }
.mnav .apple { position: absolute; bottom: 40px; height: 34px; filter: brightness(0) invert(0.97); }
.mnav-x { position: absolute; top: 20px; right: 24px; background: none; border: 0; color: var(--cream); font-size: 30px; cursor: pointer; }

@media (max-width: 880px) {
  .sec { padding: 72px 0; }
  .hd { padding: 14px 18px; }
  .hd-nav { display: none; }
  .hd-burger { display: block; background: none; border: 0; cursor: pointer; color: var(--cream); }
  .hd.solid .hd-burger { color: var(--ink); }
  .chapter { grid-template-columns: 1fr; gap: 30px; padding: 56px 0; }
  .chapter:nth-child(even) .ch-copy { order: 0; }
  .numbers .row { grid-template-columns: 1fr 1fr; gap: 40px 16px; }
  .quote-grid { grid-template-columns: 1fr; gap: 50px; }
  .tiers { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; gap: 26px; }
  .interlude { min-height: 64vh; }
  .hero-logo .mark { height: 56px; }
  .hero-logo .word { height: 40px; }
  .progress-apple { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img, .hero-media video { animation: none; }
  .hero-logo .mark { clip-path: none; animation: none; }
  .hero-logo .word, .hero-tag, .hero-cta-row, .hero-scroll { animation: none; opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .interlude .bg { transform: none !important; }
  .ch-frame { transform: none; }
}
