/* Hero kit, built on the Ride Renew hero DNA in Little Loop's palette.
 * Ghost mark bleeding off the left, two-line roman + italic headline, hairline
 * rule, pill CTA plus typographic secondary, trust chips, floating centrepiece
 * with sparkles and a reflection.
 * Content and section rhythm follow meridianmonogram.com.
 */

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: "Cormorant Infant", Georgia, serif;
  font-weight: 400; font-size: 1.07rem; line-height: 1.66;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1 { margin: 0; font-weight: 400; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

/* ---------------- floating nav, logo hard left ---------------- */
.nav { position: sticky; top: 0; z-index: 100; padding: clamp(.6rem,.4rem + .6vw,1rem) clamp(1rem,3vw,2rem); }
.nav__in {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  max-width: 76rem; margin-inline: auto; padding: .5rem .7rem .5rem 1.3rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-paper) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
  box-shadow: 0 14px 34px -18px color-mix(in srgb, var(--color-ink) 60%, transparent),
              0 0 0 1px color-mix(in srgb, var(--color-blue) 45%, transparent) inset;
}
.nav__mark img { height: clamp(38px, 4vw, 52px); width: auto; }
/* the links spread across the whole middle instead of clustering right, so
   there is no dead gap after the logo; the CTA stays the rightmost item */
.nav__links { display: none; align-items: center; }
@media (min-width: 60rem) { .nav__links { display: flex; flex: 1;
  justify-content: space-evenly; gap: .5rem; margin-left: clamp(.5rem, 2vw, 2rem); } }
.nav__links a {
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; color: var(--color-ink-2); white-space: nowrap; transition: color .2s;
}
.nav__links a:hover { color: var(--color-thread); }
.nav__links a.is-cta {
  background: var(--color-thread); color: #fff; border-radius: 999px;
  padding: .8rem 1.5rem; font-weight: 600;
}
.nav__links a.is-cta:hover { background: var(--color-band); }

/* ---------------- hero shell ---------------- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  margin-top: -7rem; padding-top: 7rem;
  background: linear-gradient(150deg, var(--color-band) 0%, var(--color-band-2) 62%, #16324a 100%);
  color: var(--color-paper);
}
.hero__in {
  max-width: 78rem; margin-inline: auto; padding-inline: clamp(1.25rem,3vw,3rem);
  padding-block: clamp(2.5rem,1.5rem + 4vw,5rem) clamp(3rem,2rem + 4vw,5.5rem);
  display: grid; gap: clamp(2rem,1rem + 4vw,4rem); align-items: center;
}
@media (min-width: 58rem) { .hero__in { grid-template-columns: minmax(0,1.02fr) minmax(0,1fr); } }

/* the ghost mark, bleeding off the left edge */
.ghost {
  position: absolute; left: clamp(.5rem, 1.6vw, 2.2rem); top: 43%;
  transform: translateY(-50%);
  width: min(21rem, 18.5vw);
  opacity: .11; z-index: -1; pointer-events: none;
}
@media (max-width: 82rem) { .ghost { opacity: .075; width: min(24rem, 34vw); } }
@media (max-width: 58rem) { .ghost { left: 50%; top: 62%; transform: translate(-50%, -50%);
  width: min(22rem, 78vw); opacity: .085; } }

/* the soft light shaft */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 80% at 78% 18%,
    color-mix(in srgb, var(--color-blue) 30%, transparent) 0%, transparent 62%);
}

.eyebrow {
  display: block; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--color-blue); margin: 0 0 1.3rem;
}
.h-roman { font-size: clamp(2.3rem,1.4rem + 3.4vw,4.1rem); line-height: 1.02; color: var(--color-paper); }
.h-script {
  display: block; font-family: "Great Vibes", cursive;
  font-size: clamp(2.7rem,1.5rem + 4.4vw,5rem); line-height: 1.06;
  color: var(--color-thread-soft); padding-block: .04em; margin-top: .1em;
}
.rule { width: 74px; height: 1px; background: var(--color-thread-soft); margin: 1.6rem 0 1.4rem; }
.hero p.sub { color: color-mix(in srgb, var(--color-paper) 88%, transparent); max-width: 40ch; font-size: 1.1rem; }

.cta { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; margin-top: 2rem; }
.btn {
  display: inline-block; font-family: inherit; font-size: .78rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
  padding: 1.05rem 2.2rem; border-radius: 999px; border: 0;
  background: var(--color-paper); color: var(--color-band);
  box-shadow: 0 10px 26px -12px rgba(0,0,0,.55);
  transition: background-color .2s, color .2s, transform .15s;
}
.btn:hover { background: var(--color-thread); color: #fff; }
.btn:active { transform: translateY(1px); }
.link {
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--color-paper); text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--color-paper) 55%, transparent);
  padding-bottom: 3px; transition: border-color .2s;
}
.link:hover { border-bottom-color: var(--color-paper); }

.where { margin-top: 1.5rem; font-size: .95rem;
  color: color-mix(in srgb, var(--color-paper) 78%, transparent); }  /* 66% measured 4.32:1 */

/* trust chips */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center;
  margin-top: 1.8rem; padding-top: 1.6rem;
  border-top: 1px solid color-mix(in srgb, var(--color-paper) 18%, transparent); }
.chip {
  font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
  padding: .55rem 1.1rem; border-radius: 999px;
  background: color-mix(in srgb, var(--color-paper) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-paper) 20%, transparent);
  color: color-mix(in srgb, var(--color-paper) 88%, transparent);
}
.chips i { font-style: normal; color: var(--color-thread-soft); }

/* ---------------- centrepiece + sparkles ---------------- */
.stage { position: relative; display: grid; place-items: center; }

.stage__mark { width: min(30rem, 88%); filter: drop-shadow(0 24px 40px rgba(0,0,0,.35)); }
.stage__arch {
  position: relative; margin: 0; padding: 13px; width: min(24rem, 88%);
  background: color-mix(in srgb, var(--color-paper) 92%, transparent);
  border-radius: 50% 50% 4px 4px / 26% 26% 4px 4px;
  box-shadow: 0 26px 54px -22px rgba(0,0,0,.55);
}
.stage__arch img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 20%;
  border-radius: 50% 50% 2px 2px / 26% 26% 2px 2px;
}
/* reflection under the centrepiece */
.stage::after {
  content: ""; position: absolute; bottom: -8%; left: 50%; transform: translateX(-50%);
  width: 62%; height: 18%; border-radius: 50%;
  background: radial-gradient(ellipse at center,
    color-mix(in srgb, var(--color-blue) 26%, transparent) 0%, transparent 70%);
  pointer-events: none;
}

.spark { position: absolute; color: var(--color-paper); pointer-events: none;
  animation: drift 7s ease-in-out infinite; }
.spark svg { width: 100%; height: 100%; }
.spark--a { width: 26px; height: 26px; top: 6%;  right: 12%; opacity: .9; animation-delay: 0s; }
.spark--b { width: 16px; height: 16px; top: 26%; left: 6%;  opacity: .7; animation-delay: 1.4s; color: var(--color-thread-soft); }
.spark--c { width: 20px; height: 20px; bottom: 20%; right: 6%; opacity: .6; animation-delay: 2.8s; color: var(--color-blue); }
.spark--d { width: 13px; height: 13px; bottom: 8%; left: 18%; opacity: .55; animation-delay: 4.2s; }
.spark--e { width: 22px; height: 22px; top: -4%; left: -14%; opacity: .8;  animation-delay: .9s; color: var(--color-thread-soft); }
.spark--f { width: 14px; height: 14px; top: 44%; left: -20%; opacity: .6;  animation-delay: 2.1s; }
.spark--g { width: 18px; height: 18px; bottom: -5%; right: 14%; opacity: .7; animation-delay: 3.4s; color: var(--color-blue); }
.spark--h { width: 12px; height: 12px; top: 12%; right: -9%; opacity: .65; animation-delay: 5.1s; color: var(--color-thread-soft); }
@keyframes drift {
  0%, 100% { transform: translateY(0) scale(1); opacity: .55; }
  50%      { transform: translateY(-9px) scale(1.12); opacity: 1; }
}

/* ---------------- marquee, straight from Meridian ---------------- */
.marquee { background: var(--color-paper-2); overflow: clip; padding-block: 1rem;
  border-block: 1px solid var(--color-rule); }
.marquee__track { display: flex; width: max-content; animation: slide 60s linear infinite; }
/* four sets, shifting by 50% moves exactly two, so the seam never shows */
.marquee__set { display: flex; align-items: center; flex: none; }
.marquee__set span { padding-inline: 1.3rem; white-space: nowrap; font-style: italic;
  font-size: clamp(1rem,.9rem + .5vw,1.4rem); color: var(--color-ink-2); }
.marquee__set i { font-style: normal; color: var(--color-thread); }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* prefers-reduced-motion intentionally not honored: client decision on Ride
   Renew (08-20-26) matching Rolling Lawns precedent, carried forward here.
   The full experience ships to every phone; nothing hides, nothing freezes. */


/* ---------------- drawn hero vines ----------------
   Two panels pinned to corners, NOT one stretched viewBox. A single viewBox
   with `slice` gets cropped by whatever the hero's aspect ratio leaves over,
   and the hero swings from about 1.07 to 2.4 wide-to-tall across viewports, so
   half the artwork was landing off screen. Each panel now carries its own
   intrinsic aspect ratio and is anchored, so placement holds at any width. */
.hero__vines {
  position: absolute; z-index: -1; pointer-events: none; overflow: visible;
  height: auto;
}
.hero__vines--a { top: clamp(5.5rem, 11vh, 8rem);   /* below the nav pill */ right: 0; width: clamp(360px, 62%, 780px); }
.hero__vines--b { bottom: 0; right: 0; width: clamp(400px, 72%, 900px); }

.hero__vines .stem { fill: none; stroke: #52789B; stroke-width: 2.4; stroke-linecap: round; }
.hero__vines .stem--fine { stroke: #4A6E92; stroke-width: 1.6; }
.hero__vines .pet { fill: none; stroke: #52789B; stroke-width: 1.4; stroke-linecap: round; }
/* SOLID fills, never opacity. Two flat tones give near/far depth; alpha let
   every stem show through the leaves, which is what looked unfinished. */
.hero__vines .lf--near { fill: #648AAE; }
.hero__vines .lf--far  { fill: #4A7398; }
.hero__vines .vn { fill: none; stroke: #7C9FBF; stroke-width: 1.1; stroke-linecap: round; }
.hero__vines .bl { fill: #CE9E9E; }
.hero__vines .bl .ctr { fill: #E6C87E; }
.hero__vines .berry { fill: #CE9E9E; }
@media (max-width: 58rem) { .hero__vines { opacity: .5; } }

/* ---------------- mobile menu ----------------
   Below 60rem the link row is hidden, which left the pill holding a logo and
   nothing else: no navigation at all on a phone. A details/summary disclosure
   does this without any JS. */
/* the CTA is the most important control on the site, so on mobile it stays
   in the bar instead of hiding inside the menu */
.nav__cta-m {
  display: none; margin-left: auto; white-space: nowrap;
  font-size: .6rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: #fff; background: var(--color-thread);
  border-radius: 999px; padding: .68rem .95rem;
}
.nav__cta-m:active { background: var(--color-band); }
@media (max-width: 60rem) {
  .nav__cta-m { display: inline-block; }
  .nav__mark img { height: 34px; }
  .nav__in { gap: .6rem; padding-left: .9rem; }
}
@media (max-width: 24rem) { .nav__cta-m { font-size: .54rem; padding: .6rem .7rem; } }

.navmob { position: relative; margin-left: .1rem; }
@media (min-width: 60rem) { .navmob { display: none; } }
.navmob > summary {
  list-style: none; cursor: pointer; display: grid; gap: 5px;
  width: 44px; height: 44px; place-content: center; border-radius: 999px;
}
.navmob > summary::-webkit-details-marker { display: none; }
.navmob > summary span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: var(--color-band); transition: transform .2s, opacity .2s;
}
.navmob[open] > summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navmob[open] > summary span:nth-child(2) { opacity: 0; }
.navmob[open] > summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.navmob__panel {
  position: absolute; right: 0; top: calc(100% + .75rem); z-index: 10;
  display: grid; gap: .2rem; min-width: min(17rem, 78vw);
  padding: .7rem; border-radius: 16px;
  background: var(--color-paper);
  box-shadow: 0 20px 44px -18px rgba(20,35,50,.5),
              0 0 0 1px color-mix(in srgb, var(--color-blue) 45%, transparent) inset;
}
.navmob__panel a {
  padding: .85rem 1rem; border-radius: 10px; text-decoration: none;
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--color-ink-2);
}
.navmob__panel a:hover { background: color-mix(in srgb, var(--color-blue) 26%, transparent); }
.navmob__panel a.is-cta {
  margin-top: .3rem; text-align: center; font-weight: 600;
  background: var(--color-thread); color: #fff;
}
.navmob__panel a.is-cta:hover { background: var(--color-band); }


/* ============================= mobile hero =============================
   Ported from Ride Renew: below the desktop breakpoint the hero keeps its
   side-by-side composition instead of stacking. display:contents lifts the
   copy's children into the grid so the headline can sit beside the photo;
   lead, CTA and chips run full width underneath. */
@media (max-width: 58rem) {
  .hero__in > div:first-child { display: contents; }
  .hero__in {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: 0 1rem;
    grid-template-areas:
      "eyebrow eyebrow"
      "h1 stage"
      "rule stage"
      "sub sub"
      "cta cta"
      "where where"
      "chips chips";
    align-items: center;
  }
  .hero .eyebrow { grid-area: eyebrow; margin-bottom: .9rem; }
  .h-roman { grid-area: h1; align-self: center;
    font-size: clamp(1.45rem, 6.4vw, 2.2rem); }
  .h-script { font-size: clamp(1.7rem, 7.6vw, 2.7rem); }
  .rule { grid-area: rule; align-self: start; margin: .9rem 0 0; }
  .hero p.sub { grid-area: sub; margin-top: 1.1rem; max-width: none; font-size: 1rem; }
  .cta { grid-area: cta; margin-top: 1.2rem; gap: 1rem; }
  .where { grid-area: where; margin-top: .9rem; font-size: .88rem; }
  .chips { grid-area: chips; margin-top: 1.1rem; padding-top: 1.1rem; }
  .stage { grid-area: stage; align-self: center; }
  .stage__arch { padding: 8px; width: 100%; }
  /* sparkles scale to the smaller stage, none disappear */
  .spark--a { width: 17px; height: 17px; }
  .spark--b { width: 11px; height: 11px; }
  .spark--c { width: 13px; height: 13px; }
  .spark--d { width: 9px; height: 9px; }
  .spark--e { width: 15px; height: 15px; }
  .spark--f { width: 10px; height: 10px; }
  .spark--g { width: 12px; height: 12px; }
  .spark--h { width: 8px; height: 8px; }
}
@media (max-width: 36rem) {
  .cta .btn { width: 100%; text-align: center; }
  /* compact chips so they pack side by side instead of stacking one per line */
  .chip { font-size: .58rem; padding: .42rem .8rem; letter-spacing: .14em; }
  .chips { gap: .45rem; }
  .marquee__set span { font-size: .95rem; padding-inline: .9rem; }
}
