/* --- self-hosted fonts (SIL Open Font License — see assets/fonts/) -------- */
@font-face {
  font-family: 'Young Serif';
  src: url('../assets/fonts/YoungSerif-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('../assets/fonts/Outfit-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('../assets/fonts/Outfit-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ==========================================================================
   AIging Edge Labs — stylesheet
   Palette: Navy #182642 · Teal #1C6E76 · Gold #BF8F2B · Cream #FAF8F4 · Slate #6E7A8C
   Type:    Young Serif (display) · Outfit (interface)
   ========================================================================== */

:root {
  --navy:  #182642;
  --navy-2:#1F2F52;
  --teal:  #1C6E76;
  --gold:  #BF8F2B;
  --gold-2:#D4A94C;
  --cream: #FAF8F4;
  --slate: #6E7A8C;
  --slate-ac: #5A6576;   /* accessible slate: 5.6:1 on cream, 5.1:1 on tint */
  --ink:   #33415C;
  --line:  rgba(24, 38, 66, .14);
  --line-d:rgba(250, 248, 244, .14);

  --serif: 'Young Serif', Georgia, 'Times New Roman', serif;
  --sans:  'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --wrap: 1140px;
  --pad: clamp(20px, 5vw, 56px);
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--navy); margin: 0; }
h1 { font-size: clamp(2.35rem, 5.6vw, 4rem); line-height: 1.08; letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); line-height: 1.16; }
h3 { font-size: 1.28rem; line-height: 1.34; }
p  { margin: 0 0 1.1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.eyebrow {
  display: block;
  font-size: .69rem;
  letter-spacing: .30em;
  text-transform: uppercase;
  color: var(--slate-ac);
  margin-bottom: 1.05rem;
}
.eyebrow--gold { color: var(--gold); }

.section { padding-block: clamp(64px, 9vw, 112px); }
.section--tint { background: #F1EEE8; }
.section--navy { background: var(--navy); color: #C3CBD9; }
.section--navy h2, .section--navy h3 { color: var(--cream); }
.section--navy .eyebrow { color: #8E9AAD; }

.lede { font-size: clamp(1.05rem, 1.7vw, 1.28rem); line-height: 1.66; color: var(--ink); }
.section--navy .lede { color: #C3CBD9; }

/* --- skip link ----------------------------------------------------------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--navy); padding: 12px 18px;
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
}
.skip:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* --- header -------------------------------------------------------------- */
.masthead {
  position: sticky; top: 0; z-index: 100;
  background: rgba(24, 38, 66, .97);
  border-bottom: 1px solid var(--line-d);
  backdrop-filter: saturate(140%) blur(6px);
}
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand__mark { width: 46px; flex: 0 0 auto; }
.brand__mark svg { width: 100%; height: auto; }
.brand__name {
  font-family: var(--serif); font-size: 1.24rem; color: var(--cream); line-height: 1.1;
  white-space: nowrap;
}
.brand__name em { font-style: normal; color: var(--gold); }
.brand__name span {
  display: block; font-family: var(--sans); font-size: .56rem; letter-spacing: .30em;
  text-transform: uppercase; color: #8E9AAD; margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: .84rem; letter-spacing: .10em; text-transform: uppercase;
  color: #B9C2D1; text-decoration: none;
}
.nav a:hover { color: var(--gold); }

.btn {
  display: inline-block; font-family: var(--sans);
  font-size: .82rem; letter-spacing: .13em; text-transform: uppercase;
  padding: 14px 26px; border-radius: var(--radius); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .18s, color .18s, border-color .18s;
}
.btn--gold { background: var(--gold); color: var(--navy); font-weight: 600; }
.btn--gold:hover { background: var(--gold-2); color: var(--navy); }
.btn--ghost { border-color: rgba(191,143,43,.55); color: var(--gold); }
.btn--ghost:hover { background: rgba(191,143,43,.12); color: var(--gold); }
.btn--ink { border-color: var(--navy); color: var(--navy); }
.btn--ink:hover { background: var(--navy); color: var(--cream); }

.nav__toggle {
  display: none; background: none; border: 1px solid var(--line-d);
  border-radius: var(--radius); padding: 9px 11px; cursor: pointer;
}
.nav__toggle span { display: block; width: 20px; height: 2px; background: var(--cream); margin: 4px 0; }

@media (max-width: 880px) {
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy); flex-direction: column; align-items: flex-start;
    gap: 0; padding: 8px var(--pad) 24px; border-bottom: 1px solid var(--line-d);
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line-d); }
  .nav .btn { margin-top: 16px; border-bottom: 1px solid transparent; }
  .nav__toggle { display: block; }
}

/* --- hero ---------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(120% 90% at 50% 0%, #22355C 0%, #1A2B4A 58%, #101B31 100%);
  color: #C3CBD9;
  padding-block: clamp(72px, 11vw, 136px);
  position: relative; overflow: hidden;
}
.hero__rings {
  position: absolute; left: 50%; bottom: -58%; transform: translateX(-50%);
  width: min(1500px, 165%); aspect-ratio: 1; pointer-events: none; opacity: .5;
}
.hero__inner { position: relative; z-index: 2; }
.hero h1 { color: var(--cream); max-width: 17ch; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lede { margin-top: 1.5rem; max-width: 60ch; color: #C7D0DE; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.4rem; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 12px 36px; margin-top: 3rem;
  padding-top: 1.6rem; border-top: 1px solid var(--line-d);
  font-size: .76rem; letter-spacing: .20em; text-transform: uppercase; color: #8E9AAD;
}

/* --- generic grids ------------------------------------------------------- */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); }

.split { display: grid; gap: clamp(32px, 5vw, 68px); grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; align-items: start; } }
@media (min-width: 900px) { .split--wide-left { grid-template-columns: 1.3fr 1fr; } }

/* --- cards --------------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px 32px;
}
.card__n {
  font-family: var(--serif); font-size: 1.1rem; color: var(--gold); display: block;
  margin-bottom: .6rem;
}
.card p { font-size: .96rem; margin-top: .55rem; }

.audience { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.audience li {
  padding: 20px 0 20px 30px; border-bottom: 1px solid var(--line); position: relative;
  font-size: 1rem;
}
.audience li::before {
  content: ""; position: absolute; left: 0; top: 30px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--teal);
}

/* --- engagement tiers ---------------------------------------------------- */
.tier {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px 34px; display: flex; flex-direction: column;
  border-top: 3px solid var(--teal);
}
.tier:nth-child(2) { border-top-color: #848B4B; }
.tier:nth-child(3) { border-top-color: var(--gold); }
.tier h3 { margin-bottom: .55rem; }
.tier__fee {
  font-family: var(--serif); font-size: 1.62rem; color: var(--navy); margin: .2rem 0 1rem;
}
.tier__fee small { font-family: var(--sans); font-size: .82rem; color: var(--slate-ac); }
.tier p { font-size: .96rem; }
.tier__for {
  margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--slate-ac);
}

/* --- process ------------------------------------------------------------- */
.phases { list-style: none; margin: 42px 0 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 780px) { .phases { grid-template-columns: repeat(5, 1fr); } }
.phase { position: relative; padding: 34px 18px 0; text-align: center; }
.phase::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--line-d);
}
.phase__dot {
  width: 15px; height: 15px; border-radius: 50%; background: var(--teal);
  position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
}
.phase:nth-child(2) .phase__dot { background: #3E7F68; }
.phase:nth-child(3) .phase__dot { background: #6E8857; }
.phase:nth-child(4) .phase__dot { background: #A08C3B; }
.phase:nth-child(5) .phase__dot { background: var(--gold); }
.phase h3 { font-size: 1.12rem; color: var(--cream); }
.phase p { font-size: .89rem; margin-top: .5rem; color: #A9B3C4; max-width: 30ch; margin-inline: auto; }
@media (max-width: 779px) {
  .phase { text-align: left; padding: 26px 0 26px 30px; }
  .phase__dot { left: 0; top: 30px; transform: none; }
  .phase p { margin-inline: 0; max-width: none; }
}

/* --- proof / quote ------------------------------------------------------- */
.pull {
  font-family: var(--serif); font-size: clamp(1.35rem, 2.5vw, 1.95rem);
  line-height: 1.4; color: var(--navy); margin: 0;
}
.pull--rule { padding-left: 26px; border-left: 3px solid var(--gold); }

.factlist { list-style: none; margin: 0; padding: 0; }
.factlist li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.factlist strong {
  display: block; font-size: .74rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .35rem; font-weight: 500;
}
.factlist span { font-size: .97rem; }

/* --- contact ------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label {
  font-size: .73rem; letter-spacing: .22em; text-transform: uppercase; color: #8E9AAD;
}
.field input, .field textarea, .field select {
  font-family: var(--sans); font-size: 1rem; color: var(--cream);
  background: rgba(250,248,244,.05); border: 1px solid var(--line-d);
  border-radius: var(--radius); padding: 14px 16px; width: 100%;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6E7A8C; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold); background: rgba(250,248,244,.08);
}
.field select option { color: var(--navy); }
.form__note { font-size: .84rem; color: #8E9AAD; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 620px) { .form__row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* --- footer -------------------------------------------------------------- */
.foot {
  background: #101B31; color: #8E9AAD; padding-block: 54px 40px;
  border-top: 1px solid var(--line-d);
}
.foot a { color: #B9C2D1; text-decoration: none; }
.foot a:hover { color: var(--gold); }
.foot__top { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.foot__rule {
  height: 2px; margin: 36px 0 22px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  opacity: .8;
}
.foot__bottom {
  display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between;
  font-size: .76rem; letter-spacing: .12em;
}

/* --- reveal on scroll ---------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Without JavaScript nothing ever adds .is-in, so these sections would stay at
   opacity 0 and the page would look blank. Show them outright instead. */
@media (scripting: none) { .reveal { opacity: 1; transform: none; } }
