/* ==========================================================================
   base.css — shared by every page.

   Contents:
     1. Fonts (self-hosted, no CDN)
     2. Design tokens
     3. Reset + document shell
     4. Typography helpers
     5. Layout helper
     6. Navigation
     7. Buttons
     8. Logo marquee
     9. Footer
    10. Reveal + parallax motion system (driven by js/site.js)
    11. Responsive + reduced-motion

   Pages add their own stylesheet after this one (e.g. css/home.css).
   ========================================================================== */

/* 1. FONTS ---------------------------------------------------------------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Comfortaa';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/comfortaa-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('../assets/fonts/syne-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. DESIGN TOKENS -------------------------------------------------------- */
/* Change --gold (and the derived rgba pairs used by gradients) to re-skin
   the whole site. .lp inline-styles it today; keep it in sync or delete. */
:root {
  --n9: #0d1b2a;                        /* deepest navy — body text */
  --n8: #1b263b;                        /* navy — gradients, dark surfaces */
  --n6: #415a77;                        /* steel blue — muted accents */
  --cream: #f7f3e9;                     /* page background */
  --gold: #ccae6f;                      /* accent — buttons, highlights */
  --gold-light: #e0ca9a;
  --gold-deep: #bd9848;
  --gd: #8a6209;                        /* accessible gold for text on cream */
  --mut: rgba(13, 27, 42, .72);         /* secondary text */
  --border: rgba(65, 90, 119, .25);     /* hairline borders */
  --radius: 22px;
  --radius-sm: 14px;
  --shell: 1240px;                      /* .wrap max-width */
  --gutter: 32px;                       /* .wrap side padding */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Comfortaa', 'Manrope', system-ui, sans-serif;
}

/* 3. RESET + DOCUMENT SHELL ----------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #f7f3e9;
}

/* `.lp` is the page shell — apply the class to <body> on every page so the
   shared rules below scope themselves without needing a wrapper div. */
.lp {
  position: relative;
  overflow-x: clip;
  background: var(--cream);
  color: var(--n6);
  font-family: var(--font-body);
  line-height: 1.6;
}
.lp * { box-sizing: border-box; }
.lp img, .lp svg, .lp video { display: block; max-width: 100%; }
.lp a { color: inherit; text-decoration: none; }
.lp h1, .lp h2, .lp h3 {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -.02em;
}
.lp h4 { font-family: var(--font-display); line-height: 1.2; }
.lp ul, .lp ol { list-style: none; }

/* 4. TYPOGRAPHY ----------------------------------------------------------- */
.h1 { font-size: clamp(38px, 5vw, 72px); font-weight: 700; margin: 26px 0 0; }
.h2 { font-size: clamp(36px, 4.6vw, 64px); font-weight: 700; margin-top: 16px; }
.h3 { font-size: clamp(24px, 2.2vw, 30px); font-weight: 700; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--mut); max-width: 540px; margin: 26px 0 0; }
.sub { color: var(--mut); font-size: 18px; max-width: 560px; margin: 20px 0 0; }
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gd);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 40px; }

/* 5. LAYOUT --------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }
.sec { position: relative; padding: 100px 0; }

/* 6. NAVIGATION ----------------------------------------------------------- */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 20; background: transparent; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 92px; gap: 24px; }
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav .logo { flex: none; }
/* The artwork carries its own wordmark, so the height is the only thing to
   hold constant; width follows the 633x200 intrinsic ratio. */
.logo img { height: 46px; width: auto; }
.foot .logo img { height: 70px; }
/* Keeps the CTA on one line when the bar gets tight. */
.nav .wrap > .btn { flex: none; white-space: nowrap; }
.links { display: flex; gap: 36px; font-weight: 900; font-size: 15px; }
.links a { position: relative; padding: 6px 0; opacity: .85; transition: opacity .3s, color .3s; }
.links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
  box-shadow: 0 0 10px var(--gold);
}
.links a:hover { opacity: 1; color: var(--gd); }
.links a:hover::after { transform: scaleX(1); }
.links a[aria-current="page"] { opacity: 1; color: var(--gd); }
.links a[aria-current="page"]::after { transform: scaleX(1); }

/* Hidden by default and revealed in the responsive section below, so a
   failure to load the script leaves the links on screen instead of
   replacing them with a button that cannot open. */
.burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  flex: none;
  padding: 0;
  border-radius: 12px;
  cursor: pointer;
  background: rgba(13, 27, 42, .06);
  border: 1px solid var(--border);
  transition: background .3s, border-color .3s;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--n6);
  transition: transform .35s var(--ease), opacity .2s;
}
.burger:hover { background: rgba(235, 176, 34, .16); border-color: var(--gold); }
.burger:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 3px; }
.nav.is-open .burger { background: rgba(235, 176, 34, .16); border-color: var(--gd); }
.nav.is-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .burger span:nth-child(2) { opacity: 0; }
.nav.is-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 7. BUTTONS -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  padding: 16px 30px;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-height: 48px;
  transition: transform .25s var(--ease), box-shadow .25s, background .3s, border-color .3s;
}
.btn-gold {
  color: #0d1b2a;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  box-shadow: 0 5px 0 #9b6f0c, 0 16px 30px -8px rgba(235, 176, 34, .55), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 #9b6f0c, 0 26px 40px -8px rgba(235, 176, 34, .7), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.btn-gold:active { transform: translateY(4px); box-shadow: 0 1px 0 #9b6f0c, 0 6px 12px -4px rgba(235, 176, 34, .5); }
.btn-ghost { color: var(--n6); border: 1px solid rgba(13, 27, 42, .3); background: rgba(255, 255, 255, .55); }
.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--gd);
  background: rgba(235, 176, 34, .14);
  box-shadow: 0 18px 36px -14px rgba(27, 38, 59, .35), 0 0 30px -6px rgba(235, 176, 34, .4);
}
.btn-sm {
  padding: 11px 22px;
  font-size: 14px;
  border-radius: 12px;
  box-shadow: 0 4px 0 #9b6f0c, 0 12px 24px -8px rgba(235, 176, 34, .5), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn:focus-visible, .links a:focus-visible, .logo:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 3px;
}

/* 8. LOGO MARQUEE --------------------------------------------------------- */
.marq {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #efe8d4;
  overflow: hidden;
  padding: 28px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.mt { display: flex; width: max-content; animation: marq 38s linear infinite; }
.marq:hover .mt { animation-play-state: paused; }
.mt span {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 44px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: rgba(13, 27, 42, .45);
  white-space: nowrap;
  transition: color .3s;
}
.mt span:hover { color: var(--gd); }
@keyframes marq { to { transform: translate3d(-50%, 0, 0); } }

/* 9. FOOTER --------------------------------------------------------------- */
.foot { color: var(--cream); background: var(--n8); padding: 80px 0 40px; }
.fg { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.fg .col { min-width: 150px; }
.fg h4 { margin: 0 0 18px; font-size: 16px; color: var(--gold); }
.fg .col a { display: block; margin: 10px 0; color: rgba(247, 243, 233, .7); transition: color .3s, transform .3s; }
.fg .col a:hover { color: var(--gold); transform: translateX(6px); }
.fb {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 60px;
  padding-top: 28px;
  border-top: 1px solid rgba(65, 90, 119, .3);
  color: rgba(247, 243, 233, .55);
  font-size: 14px;
}

/* 10. REVEAL + PARALLAX -------------------------------------------------- */
/* `.js` is added by js/site.js. Without it everything is simply visible, so
   the page still works if the script fails to load.
   `.rv` reveal up · `.rl` from left · `.rr` from right
   `--p` is a 0..1 scroll progress value written by js/site.js. */
@keyframes rv { from { opacity: 0; transform: translate3d(0, 60px, 0) rotateX(10deg); } to { opacity: 1; transform: none; } }
@keyframes rvL { from { opacity: 0; transform: translate3d(-110px, 0, 0) rotateY(-16deg); } to { opacity: 1; transform: none; } }
@keyframes rvR { from { opacity: 0; transform: translate3d(110px, 0, 0) rotateY(16deg); } to { opacity: 1; transform: none; } }
@keyframes inU { from { opacity: 0; transform: translate3d(0, 46px, 0); } }
@keyframes inL { from { opacity: 0; transform: translate3d(-90px, 0, 0); } }
@keyframes inR { from { opacity: 0; transform: translate3d(90px, 0, 0) rotateY(12deg); } }
@keyframes inD { from { opacity: 0; transform: translate3d(0, -30px, 0); } }

.inU { animation: inU 1s var(--ease) backwards; }
.inL { animation: inL 1.1s var(--ease) backwards; }
.inR { animation: inR 1.2s var(--ease) backwards; }
.inD { animation: inD .9s var(--ease) backwards; }

.js .rv:not(.in), .js .rl:not(.in), .js .rr:not(.in) { opacity: 0; }
.js .rv.in { animation: rv .95s var(--ease) backwards; }
.js .rl.in, .js .g3 .card.in:nth-child(3n+1), .js .steps .step.in:nth-of-type(1) { animation: rvL 1s var(--ease) backwards; }
.js .rr.in, .js .g3 .card.in:nth-child(3n+3), .js .steps .step.in:nth-of-type(3) { animation: rvR 1s var(--ease) backwards; }

.hA { transform: translate3d(0, calc(var(--p, 0) * 140px), 0); }
.hB { transform: translate3d(0, calc(var(--p, 0) * -90px), 0); opacity: calc(1 - var(--p, 0) * .9); }
.hC { transform: translate3d(0, calc(var(--p, 0) * 70px), 0) scale(calc(1 + var(--p, 0) * .08)); }
.s1 { transform: translate3d(0, calc(150px - var(--p, .5) * 260px), 0) rotateY(10deg) rotateX(4deg); }
.s2 { transform: translate3d(0, calc(230px - var(--p, .5) * 420px), 0) rotateY(-12deg) rotateX(5deg); }
.s3 { transform: translate3d(0, calc(80px - var(--p, .5) * 140px), 0) rotateY(8deg); }
.gx { transform: translate3d(calc(18% - var(--p, .5) * 44%), 0, 0); }
.rail .gl { stroke-dashoffset: calc(1 - var(--p, 1)); }

/* 11. RESPONSIVE + REDUCED MOTION ---------------------------------------- */
@media (max-width: 900px) {
  .sec { padding: 72px 0; }
}
@media (max-width: 1100px) {
  .burger { display: flex; }

  /* The links become a panel that drops from the bar. `.nav` is the
     positioned ancestor, so left/right 0 spans the viewport rather than the
     gutter-limited .wrap. visibility keeps them out of the tab order while
     closed, so keyboard users never tab into an invisible menu. */
  .links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px var(--gutter) 20px;
    background: rgba(247, 243, 233, .97);
    border: 1px solid var(--border);
    border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 30px 50px -24px rgba(13, 27, 42, .45);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav.is-open .links { opacity: 1; visibility: visible; transform: none; }

  /* Full-width touch targets, with a hairline between rows. The ::after
     underline is a hover affordance and gets in the way here. */
  .links a {
    padding: 15px 2px;
    font-size: 17px;
    opacity: 1;
    border-bottom: 1px solid var(--border);
  }
  .links a::after { display: none; }
  .links a:last-child { border-bottom: 0; }
  .links a[aria-current="page"] { color: var(--gd); font-weight: 700; }
}
@media (max-width: 620px) {
  :root { --gutter: 20px; }
  .nav .wrap { gap: 12px; }
  .nav .btn-sm { padding: 10px 16px; font-size: 13px; }
}
@media (max-width: 380px) {
  .nav .logo img { height: 38px; }
  .nav .btn-sm { padding: 9px 12px; font-size: 12px; }
}
@media (max-width: 340px) {
  :root { --gutter: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp *, .lp *::before, .lp *::after { animation: none !important; transition: none !important; }
  .js .rv, .js .rl, .js .rr { opacity: 1; }
}
