/* Vyntravo — horizon line + chapter stations. Palette from logo only. */
:root {
  --wine:        #7a004b;
  --wine-deep:   #4a002d;
  --wine-dark:   #2c001b;
  --wine-mid:    #9a3068;
  --rose:        #c07098;
  --blush:       #fff6f9;
  --blush-2:     #f8e6ee;
  --blush-3:     #f0d4e2;
  --ink:         #2c001b;
  --text-dark:   #fff6f9;
  --muted-dark:  #f0d4e2;
  --muted-light: #5c2340;
  --line-light:  rgba(122, 0, 75, 0.18);
  --line-dark:   rgba(255, 246, 249, 0.18);
  --radius:      14px;
  --maxw:        1120px;
  --ease:        cubic-bezier(.22, .61, .36, 1);
  --serif:       "Amiri", "Iowan Old Style", Georgia, serif;
  --sans:        "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html, body { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--blush);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name, .roman, .sign-roman, .station-name, .hq-board blockquote {
  font-family: var(--serif);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
  overflow-wrap: break-word;
}
p, li, blockquote { overflow-wrap: break-word; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--wine); color: var(--blush); padding: 10px 16px; font-weight: 700;
}
.skip-link:focus { left: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease),
    border-color .25s var(--ease), color .25s var(--ease);
}
.btn-primary {
  background: var(--wine); color: var(--blush);
  box-shadow: 0 10px 28px -12px rgba(122, 0, 75, 0.55);
}
.btn-ghost {
  background: transparent; color: var(--ink); border-color: rgba(122, 0, 75, 0.38);
}

/* Header sits on blush sky */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255, 246, 249, 0.9);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line-light);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand img { border-radius: 10px; border: 1px solid var(--line-light); flex: 0 0 auto; }
.brand-name { font-size: 22px; font-weight: 700; color: var(--wine); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 14px; font-weight: 600; color: var(--muted-light); transition: color .2s var(--ease), transform .25s var(--ease); }
.nav .nav-cta {
  color: var(--wine);
  border: 1px solid var(--line-light);
  padding: 8px 16px;
  border-radius: 999px;
}

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer;
  padding: 10px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--wine); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Vista: sky / horizon / earth ===== */
.vista {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto minmax(168px, 32vh);
  overflow: hidden;
}

.sky {
  position: relative;
  background:
    radial-gradient(ellipse 80% 55% at 72% 18%, rgba(192, 112, 152, 0.28), transparent 62%),
    linear-gradient(180deg, #fff6f9 0%, #f8e6ee 58%, #e8b8cc 100%);
  padding: 108px 0 36px;
  display: flex;
  align-items: flex-end;
}

.sun {
  position: absolute;
  top: 12%;
  left: 8%;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 32%, #fff6f9 0%, #e8b8cc 42%, #7a004b 78%);
  box-shadow: 0 0 60px 18px rgba(122, 0, 75, 0.22), 0 0 120px 40px rgba(192, 112, 152, 0.18);
  animation: sunArc 28s linear infinite;
  z-index: 1;
  pointer-events: none;
}
.sun-arc {
  position: absolute;
  inset: 8% 6% auto 6%;
  height: 42%;
  border: 1px dashed rgba(122, 0, 75, 0.16);
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  pointer-events: none;
  z-index: 0;
}
@keyframes sunArc {
  0%   { transform: translate(0, 42px); opacity: 0.55; }
  18%  { opacity: 1; }
  50%  { transform: translate(62vw, -28px); }
  82%  { opacity: 1; }
  100% { transform: translate(108vw, 56px); opacity: 0.4; }
}

.haze {
  position: absolute; inset: auto 0 0 0; height: 42%;
  background: linear-gradient(180deg, transparent, rgba(232, 184, 204, 0.55));
  pointer-events: none;
  animation: hazePulse 7s ease-in-out infinite;
}
@keyframes hazePulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.sky-copy {
  position: relative;
  z-index: 2;
  padding-bottom: 12px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wine);
  margin: 0 0 16px;
  font-weight: 600;
}
.vista h1 {
  font-size: clamp(2.15rem, 5.4vw, 3.7rem);
  font-weight: 700;
  color: var(--ink);
}
.vista h1 em {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--wine);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--muted-light);
  margin: 18px 0 0;
  max-width: min(52ch, 100%);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* Horizon: single dividing line, stations as pins */
.horizon {
  position: relative;
  z-index: 4;
  height: 0;
}
.horizon-svg {
  position: absolute;
  left: -2%;
  width: 104%;
  height: 72px;
  top: -36px;
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(255, 246, 249, 0.55));
}
.hz-shimmer {
  stroke-dasharray: 90 980;
  animation: gleam 5.5s ease-in-out infinite;
}
@keyframes gleam {
  0%   { stroke-dashoffset: 900; opacity: 0.15; }
  35%  { opacity: 0.95; }
  100% { stroke-dashoffset: -200; opacity: 0.1; }
}

.stations {
  position: absolute;
  left: 0; right: 0;
  top: -18px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  z-index: 5;
}
.station {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dark);
  text-align: center;
  min-width: 0;
  transition: transform .28s var(--ease);
}
.pin {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--blush);
  border: 2px solid var(--wine);
  box-shadow: 0 0 0 4px rgba(255, 246, 249, 0.35), 0 8px 16px -8px rgba(44, 0, 27, 0.5);
  position: relative;
}
.pin::after {
  content: "";
  position: absolute;
  top: 11px; left: 50%;
  width: 1px; height: 18px;
  background: linear-gradient(var(--blush), transparent);
  transform: translateX(-50%);
}
.roman {
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--rose);
  margin-top: 10px;
}
.station-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}

.earth {
  position: relative;
  background: var(--wine-deep);
  overflow: hidden;
}
.hills { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Chapters */
.chapter, .section, #chapters, #clarity, #alignment, #agility, #growth, #contact, #faq {
  scroll-margin-top: 84px;
}
.chapter { padding: 88px 0; }
.sky-band { background: var(--blush); color: var(--ink); }
.ground-band {
  background: var(--wine-dark);
  color: var(--text-dark);
  position: relative;
}
.ground-band .lead,
.ground-band p { color: var(--muted-dark); }
.ground-band h2 { color: var(--text-dark); }

.mini-horizon {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  overflow: hidden;
}
.mini-horizon span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--rose) 18%, var(--blush) 50%, var(--rose) 82%, transparent);
  background-size: 220% 100%;
  animation: miniShimmer 6s ease-in-out infinite;
}
@keyframes miniShimmer {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: 0 0; }
}

.chapter-inner {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 48px;
  align-items: start;
}
.station-sign { padding-top: 6px; }
.arrived {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--wine);
}
.ground-band .arrived { color: var(--rose); }
.sign-roman {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--wine);
}
.ground-band .sign-roman { color: var(--blush); }
.sign-line {
  display: block;
  width: 72px;
  height: 2px;
  margin-top: 16px;
  background: var(--wine);
}
.ground-band .sign-line { background: var(--rose); }

.chapter-copy h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  margin-bottom: 14px;
}
.lead {
  font-size: 1.12rem;
  color: var(--muted-light);
  margin: 0 0 16px;
}
.chapter-copy p { margin: 0 0 14px; color: var(--muted-light); }
.chapter-copy p:last-child { margin-bottom: 0; }

.forces { list-style: none; display: grid; gap: 16px; margin-top: 8px; }
.forces li {
  padding: 18px 20px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(74, 0, 45, 0.45);
  color: var(--muted-dark);
  transition: transform .28s var(--ease), border-color .28s var(--ease), background .28s var(--ease);
}
.force-k {
  display: block;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--blush);
  margin-bottom: 4px;
}

/* Quote planted on the horizon */
.horizon-quote {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  min-height: 420px;
}
.hq-sky {
  background: linear-gradient(180deg, var(--blush-2), #e8b8cc);
}
.hq-earth { background: var(--wine-dark); }
.hq-line {
  position: relative;
  height: 2px;
  background: var(--wine);
  box-shadow: 0 0 16px rgba(255, 246, 249, 0.45);
  z-index: 2;
}
.hq-gleam {
  position: absolute; top: -1px; height: 4px; width: 28%;
  background: linear-gradient(90deg, transparent, var(--blush), transparent);
  animation: gleamSlide 6.5s ease-in-out infinite;
}
@keyframes gleamSlide {
  0% { left: -28%; opacity: 0.3; }
  50% { opacity: 1; }
  100% { left: 100%; opacity: 0.3; }
}
.hq-board {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, calc(100% - 40px));
  background: var(--blush);
  border: 1px solid var(--line-light);
  border-radius: 4px 4px 18px 18px;
  padding: 36px 40px 32px;
  box-shadow: 0 24px 48px -28px rgba(44, 0, 27, 0.45);
  text-align: center;
  z-index: 3;
}
.hq-board.reveal.in { transform: translate(-50%, -50%); }
.hq-kicker {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--wine); font-weight: 600; margin: 0 0 14px;
}
.hq-board blockquote {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-style: italic;
  color: var(--ink);
  line-height: 1.35;
}
.hq-attr {
  margin: 18px 0 0;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wine);
  font-weight: 600;
}

/* FAQ */
.section { padding: 96px 0; }
.kicker {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--wine); font-weight: 600; margin: 0 0 12px;
}
.ground-band .kicker { color: var(--rose); }
.section-head h2, .faq-head h2, .contact-copy h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
}
.faq-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; }
.faq-head { margin: 0; position: sticky; top: 100px; }
.faq-head .lead { margin-top: 14px; }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .28s var(--ease), border-color .28s var(--ease);
}
.faq-item.open { border-color: var(--wine); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: 0; cursor: pointer; text-align: left; color: var(--ink);
  font-family: var(--serif); font-size: 1.15rem; font-weight: 700; padding: 20px 22px;
}
.faq-ico { position: relative; flex: 0 0 auto; width: 16px; height: 16px; }
.faq-ico::before, .faq-ico::after {
  content: ""; position: absolute; background: var(--wine); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.faq-ico::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-ico::after { top: 0; left: 7px; width: 2px; height: 16px; }
.faq-item.open .faq-ico::after { transform: scaleY(0); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 320px; }
.faq-a p { color: var(--muted-light); margin: 0; padding: 0 22px 20px; font-size: 0.98rem; }

/* Contact */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-copy p { color: var(--muted-dark); margin: 0 0 18px; }
.contact-email {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  color: var(--blush);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s, transform .25s var(--ease);
}
.contact-place { margin-top: 16px !important; font-size: 0.95rem; }
.li-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--rose);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
}
.contact-form {
  background: rgba(74, 0, 45, 0.55);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  gap: 16px;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; color: var(--muted-dark); font-weight: 500; }
.field input, .field textarea {
  background: var(--wine-dark);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  color: var(--text-dark);
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  width: 100%;
  resize: vertical;
  transition: border-color .2s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--rose); }

/* Footer (dark) */
.site-footer {
  background: #1a0010;
  color: var(--text-dark);
  padding: 48px 0 28px;
  border-top: 1px solid var(--line-dark);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; flex-wrap: wrap;
  padding-bottom: 28px; border-bottom: 1px solid var(--line-dark);
}
.site-footer .brand-name { color: var(--blush); }
.site-footer .brand img { border-color: var(--line-dark); }
.footer-tag { color: var(--muted-dark); margin: 12px 0 0; font-size: 0.95rem; max-width: 36ch; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: var(--muted-dark); font-size: 14px; font-weight: 600; transition: color .2s; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--muted-dark); font-size: 14px; padding-top: 20px;
}

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hq-board.reveal { transform: translate(-50%, calc(-50% + 22px)); }
.js .hq-board.reveal.in { transform: translate(-50%, -50%); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .hq-board.reveal, .js .hq-board.reveal.in { transform: translate(-50%, -50%); }
  .sun, .haze, .hz-shimmer, .mini-horizon span, .hq-gleam { animation: none; }
}

/* Hover AFTER reveal.in so lift is not overwritten */
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--wine); }
  .nav .nav-cta:hover {
    border-color: var(--wine);
    color: var(--wine);
    transform: translateY(-2px);
  }
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px -10px rgba(122, 0, 75, 0.7);
  }
  .btn-ghost:hover {
    transform: translateY(-2px);
    border-color: var(--wine);
    color: var(--wine);
  }
  .station:hover { transform: translateY(-6px); }
  .station:hover .pin {
    background: var(--wine);
    border-color: var(--blush);
  }
  .forces li:hover {
    transform: translateY(-4px);
    border-color: var(--rose);
    background: rgba(122, 0, 75, 0.5);
  }
  .faq-item:hover,
  .js .reveal.in.faq-item:hover {
    transform: translateY(-3px);
    border-color: var(--wine);
  }
  .faq-q:hover { color: var(--wine); }
  .contact-email:hover { border-bottom-color: var(--blush); color: var(--blush); }
  .li-link:hover { border-bottom-color: var(--rose); color: var(--blush); }
  .contact-form:hover,
  .js .reveal.in.contact-form:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -24px rgba(255, 246, 249, 0.2);
  }
  .footer-nav a:hover { color: var(--blush); }
  .hq-board:hover {
    transform: translate(-50%, calc(-50% - 4px));
  }
  .js .hq-board.reveal.in:hover {
    transform: translate(-50%, calc(-50% - 4px));
  }
}

/* Tablet */
@media (max-width: 960px) {
  .chapter-inner, .faq-wrap, .contact-inner { grid-template-columns: 1fr; gap: 28px; }
  .faq-head { position: static; }
  .vista { grid-template-rows: 1fr auto minmax(150px, 28vh); }
  .sky { padding: 100px 0 28px; }
}

/* Mobile */
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; align-items: stretch;
    background: rgba(255, 246, 249, 0.98); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-light);
    padding: 12px 24px 22px;
    transform: translateY(-120%);
    transition: transform .35s var(--ease);
    z-index: 90;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line-light); color: var(--ink); }
  .nav .nav-cta { text-align: center; margin-top: 12px; border: 1px solid var(--wine); }

  .vista { min-height: auto; grid-template-rows: auto auto 168px; }
  .sky { padding: 96px 0 20px; min-height: 0; }
  .hero-actions { gap: 10px; flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .chapter, .section { padding: 64px 0; }
  .hq-board { padding: 26px 22px 22px; }
  .horizon-quote { min-height: 360px; }
  .contact-form { padding: 22px 18px; }
  .footer-inner { flex-direction: column; }
  .stations { width: calc(100% - 16px); }
  .station-name { font-size: 13px; }
  .roman { font-size: 11px; }
}

@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .header-inner { height: 64px; }
  .brand-name { font-size: 18px; }
  .nav { inset: 64px 0 auto 0; padding: 12px 18px 20px; }
  .vista { grid-template-rows: auto auto 148px; }
  .sky { padding: 88px 0 16px; }
  .vista h1 { font-size: 1.85rem; }
  .hero-sub { font-size: 1rem; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .sun { width: 64px; height: 64px; }
  .stations { gap: 2px; top: -14px; }
  .station { gap: 6px; }
  .station-name { font-size: 11px; }
  .pin { width: 10px; height: 10px; }
  .chapter, .section { padding: 56px 0; }
  .forces li { padding: 16px; }
  .hq-board { width: calc(100% - 28px); padding: 22px 16px 18px; }
  .horizon-quote { min-height: 340px; }
}
