/* ==========================================================================
   Colorado Design Build Fly  |  site stylesheet
   Dark, gold-accented look built around the black/white team logo and
   CU Boulder gold (#CFB87C). Single stylesheet, no build step.
   ========================================================================== */

:root {
  --bg: #0a0a0c;
  --bg-2: #101014;
  --surface: #17171c;
  --surface-2: #1f1f26;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f3f1ea;
  --text-2: #b9b6ad;
  --muted: #7f7c74;
  --gold: #cfb87c;
  --gold-2: #e8d59c;
  --gold-dim: rgba(207, 184, 124, 0.14);
  --sky: #8ec5ff;
  --danger: #ff6b6b;

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 18px;
  --radius-sm: 10px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --nav-h: 72px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.7s;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold); color: #111; }

/* ---------- layout helpers ---------- */
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 140px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section--flush { padding-top: 0; }
.grid { display: grid; gap: clamp(20px, 3vw, 40px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.h-xl { font-size: clamp(44px, 8vw, 112px); line-height: 0.95; letter-spacing: -0.035em; }
.h-lg { font-size: clamp(36px, 5.2vw, 68px); }
.h-md { font-size: clamp(26px, 3.2vw, 40px); }
.h-sm { font-size: clamp(20px, 2vw, 24px); }
.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--text-2); max-width: 60ch; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.mono { font-family: var(--font-mono); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p { margin-top: 18px; }
.center { text-align: center; }
.center .section-head { margin-inline: auto; }
.center .eyebrow { justify-content: center; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--gold);
  --btn-fg: #111;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), color 0.3s;
  will-change: transform;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-2);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
  z-index: -1;
  border-radius: inherit;
}
.btn:hover::after { transform: translateY(0); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(207, 184, 124, 0.55); }
.btn .arrow { transition: transform 0.35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border: 1px solid var(--line-strong);
}
.btn--ghost::after { background: rgba(255, 255, 255, 0.08); }
.btn--ghost:hover { box-shadow: none; border-color: rgba(255, 255, 255, 0.35); }
.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold); font-weight: 600; font-size: 15px;
}
.link-arrow svg { transition: transform 0.3s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s, transform 0.5s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__brand img { height: 36px; width: auto; }
.nav__brand span { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.02em; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  position: relative; padding: 10px 14px; font-size: 14px; font-weight: 500;
  color: var(--text-2); border-radius: 999px; transition: color 0.25s, background 0.25s;
}
.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav__links .btn, .nav__links .btn:hover { color: #111; background: var(--gold); }
.nav__links a:not(.btn)[aria-current="page"] { color: var(--text); }
.nav__links a:not(.btn)[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px;
  background: var(--gold); border-radius: 2px;
}
.nav__cta { margin-left: 8px; }
.nav__toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  border: 1px solid var(--line);
}
.nav__toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.35s var(--ease-out), opacity 0.2s; }
.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); }

.drawer {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; padding: var(--gutter);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s var(--ease-in-out);
}
.drawer.is-open { clip-path: inset(0 0 0 0); }
.drawer a {
  font-family: var(--font-display); font-size: clamp(28px, 7vw, 44px); font-weight: 600;
  padding: 8px 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.drawer.is-open a { opacity: 1; transform: none; }
.drawer.is-open a:nth-child(1) { transition-delay: 0.15s; }
.drawer.is-open a:nth-child(2) { transition-delay: 0.2s; }
.drawer.is-open a:nth-child(3) { transition-delay: 0.25s; }
.drawer.is-open a:nth-child(4) { transition-delay: 0.3s; }
.drawer.is-open a:nth-child(5) { transition-delay: 0.35s; }
.drawer.is-open a:nth-child(6) { transition-delay: 0.4s; }
.drawer.is-open a:nth-child(7) { transition-delay: 0.45s; }
.drawer.is-open a:nth-child(8) { transition-delay: 0.5s; }
.drawer.is-open a:nth-child(9) { transition-delay: 0.55s; }
.drawer a[aria-current="page"] { color: var(--gold); }
.drawer__foot { margin-top: 32px; color: var(--muted); font-size: 14px; }
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  padding-top: var(--nav-h); overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  transform: scale(1.12);
  animation: heroZoom 2.4s var(--ease-out) forwards;
  will-change: transform;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(10, 10, 12, 1) 0%, rgba(10, 10, 12, 0.7) 32%, rgba(10, 10, 12, 0.25) 65%, rgba(10, 10, 12, 0.55) 100%),
    radial-gradient(60% 50% at 20% 80%, rgba(207, 184, 124, 0.12), transparent 70%);
}
.hero__inner { position: relative; z-index: 2; padding-bottom: calc(clamp(44px, 9vw, 130px) + 40px); }
.hero__title { color: #fff; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); animation: riseIn 1.1s var(--ease-out) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero__title .line:nth-child(3) > span { animation-delay: 0.24s; }
.hero__title em { font-style: normal; color: var(--gold); }
@keyframes riseIn { to { transform: translateY(0); } }
.hero__sub { margin-top: 26px; max-width: 54ch; color: var(--text-2); font-size: clamp(17px, 1.6vw, 20px); opacity: 0; animation: fadeUp 1s 0.5s var(--ease-out) forwards; }
.hero__cta { margin-top: 34px; opacity: 0; animation: fadeUp 1s 0.7s var(--ease-out) forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 28px 44px; margin-top: 56px; padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  opacity: 0; animation: fadeUp 1s 0.9s var(--ease-out) forwards;
}
.hero__meta div { display: flex; flex-direction: column; gap: 4px; }
.hero__meta b { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: #fff; line-height: 1; }
.hero__meta small { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: calc(clamp(44px, 9vw, 130px) + 24px); z-index: 2;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-2);
  display: flex; align-items: center; gap: 12px; opacity: 0; animation: fadeUp 1s 1.2s var(--ease-out) forwards;
}
.hero__scroll i { width: 1px; height: 48px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: translateY(-100%); animation: scrollHint 1.8s var(--ease-in-out) infinite; }
@keyframes scrollHint { 0% { transform: translateY(-100%); } 60% { transform: translateY(100%); } 100% { transform: translateY(100%); } }
@media (max-width: 720px) { .hero__scroll { display: none; } .hero__meta b { font-size: 24px; } }

/* page hero (interior pages) */
.page-hero { position: relative; padding: calc(var(--nav-h) + clamp(56px, 10vw, 120px)) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; z-index: -1; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.32; transform: scale(1.06); animation: heroZoom 2s var(--ease-out) forwards; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 0%, rgba(10, 10, 12, 0.6) 55%, rgba(10, 10, 12, 0.7) 100%); }
.page-hero .h-xl { max-width: 14ch; }
.page-hero .lead { margin-top: 22px; }

/* airflow canvas over the hero */
.hero__flow { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: 0.55; mix-blend-mode: screen; pointer-events: none; }

/* custom cursor (pointer devices only) */
.cursor { position: fixed; left: 0; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); pointer-events: none; z-index: 300; transform: translate(-50%, -50%); transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), background 0.3s, opacity 0.3s; mix-blend-mode: difference; opacity: 0; }
.cursor-ring { position: fixed; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(207, 184, 124, 0.6); pointer-events: none; z-index: 300; transform: translate(-50%, -50%); transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), border-color 0.3s, opacity 0.3s; opacity: 0; }
body.has-cursor .cursor, body.has-cursor .cursor-ring { opacity: 1; }
body.has-cursor.cursor-link .cursor { width: 6px; height: 6px; }
body.has-cursor.cursor-link .cursor-ring { width: 56px; height: 56px; border-color: var(--gold); }
body.has-cursor.cursor-media .cursor-ring { width: 84px; height: 84px; border-color: transparent; background: rgba(207, 184, 124, 0.9); }
body.has-cursor.cursor-media .cursor-ring::after { content: "Drag"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #111; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-ring { display: none; } }

/* ---------- reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); transition-delay: var(--d, 0s); }
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal].is-in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(24px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.stagger.is-in > * { opacity: 1; transform: none; }
.stagger.is-in > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.is-in > *:nth-child(2) { transition-delay: 0.13s; }
.stagger.is-in > *:nth-child(3) { transition-delay: 0.21s; }
.stagger.is-in > *:nth-child(4) { transition-delay: 0.29s; }
.stagger.is-in > *:nth-child(5) { transition-delay: 0.37s; }
.stagger.is-in > *:nth-child(6) { transition-delay: 0.45s; }
.stagger.is-in > *:nth-child(7) { transition-delay: 0.53s; }
.stagger.is-in > *:nth-child(8) { transition-delay: 0.61s; }
.stagger.is-in > *:nth-child(9) { transition-delay: 0.69s; }
.stagger.is-in > *:nth-child(n+10) { transition-delay: 0.75s; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; background: var(--bg-2); }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-family: var(--font-display); font-size: clamp(18px, 2vw, 24px); font-weight: 600; white-space: nowrap; color: var(--text-2); display: inline-flex; align-items: center; gap: 48px; }
.marquee__track span::after { content: "✦"; color: var(--gold); font-size: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- split / feature ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--rev { grid-template-columns: 1fr 1.05fr; }
.split--rev .split__media { order: 2; }
@media (max-width: 860px) { .split, .split--rev { grid-template-columns: 1fr; } .split--rev .split__media { order: 0; } }
.split__media { position: relative; }
.media {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface);
  aspect-ratio: 4 / 3;
}
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.media:hover img { transform: scale(1.04); }
.media--tall { aspect-ratio: 3 / 4; }
.media--wide { aspect-ratio: 16 / 9; }
.media--frame { clip-path: inset(0 0 0 0 round var(--radius)); }
.media__tag {
  position: absolute; left: 16px; bottom: 16px; padding: 8px 12px; border-radius: 999px;
  background: rgba(10, 10, 12, 0.65); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #fff;
}
.media--reveal { clip-path: inset(0 100% 0 0 round var(--radius)); transition: clip-path 1.1s var(--ease-out); }
.media--reveal.is-in, .is-in .media--reveal { clip-path: inset(0 0 0 0 round var(--radius)); }
.sticker {
  position: absolute; right: -14px; top: -14px; width: 118px; height: 118px; border-radius: 50%;
  background: var(--gold); color: #111; display: grid; place-items: center; text-align: center;
  font-family: var(--font-display); font-weight: 700; font-size: 14px; line-height: 1.1; padding: 12px;
  animation: spin 18s linear infinite; box-shadow: 0 20px 40px -20px rgba(0,0,0,0.6);
}
.sticker b { font-size: 30px; display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.sticker--still { animation: none; }
@media (max-width: 640px) { .sticker { width: 96px; height: 96px; right: -6px; top: -6px; } .sticker b { font-size: 24px; } }

/* ---------- cards ---------- */
.card {
  position: relative; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); padding: clamp(22px, 2.5vw, 32px);
  transition: transform 0.5s var(--ease-out), border-color 0.4s, background 0.4s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(207, 184, 124, 0.13), transparent 45%);
  opacity: 0; transition: opacity 0.4s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(207, 184, 124, 0.35); }
.card:hover::before { opacity: 1; }
.card h3 { margin: 14px 0 8px; }
.card p { color: var(--text-2); font-size: 15.5px; margin: 0; }
.card__num { font-family: var(--font-mono); font-size: 12px; color: var(--gold); letter-spacing: 0.14em; }
.card__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--gold-dim); color: var(--gold); display: grid; place-items: center; }
.card__icon svg { width: 22px; height: 22px; }
.card--photo { padding: 0; }
.card--photo .media { border-radius: 0; aspect-ratio: 4 / 3; }
.card--photo .card__body { padding: 22px 24px 26px; }
.card--photo .card__body h3 { margin-top: 0; }
.card--photo .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--surface), transparent 45%); }

/* subteam tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }
.tile {
  position: relative; aspect-ratio: 4 / 4.6; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); display: flex; align-items: flex-end; padding: 26px; isolation: isolate;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.1s var(--ease-out), filter 0.6s; filter: saturate(0.85); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10, 10, 12, 0.95) 0%, rgba(10, 10, 12, 0.35) 55%, rgba(10, 10, 12, 0.1) 100%); transition: opacity 0.5s; }
.tile:hover img { transform: scale(1.06); filter: saturate(1); }
.tile__body { transform: translateY(14px); transition: transform 0.6s var(--ease-out); }
.tile:hover .tile__body { transform: translateY(0); }
.tile__body .card__num { display: block; margin-bottom: 8px; }
.tile h3 { font-size: clamp(22px, 2.2vw, 28px); color: #fff; }
.tile p { color: var(--text-2); font-size: 15px; margin: 8px 0 0; max-width: 34ch; opacity: 0; transform: translateY(6px); transition: opacity 0.5s var(--ease-out) 0.05s, transform 0.5s var(--ease-out) 0.05s; }
.tile:hover p { opacity: 1; transform: none; }
@media (hover: none) { .tile p { opacity: 1; transform: none; } .tile__body { transform: none; } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.stats > div { padding: clamp(24px, 3vw, 40px); border-right: 1px solid var(--line); position: relative; }
.stats > div:last-child { border-right: 0; }
.stats b { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 5vw, 64px); letter-spacing: -0.03em; line-height: 1; color: #fff; }
.stats b sup { font-size: 0.45em; color: var(--gold); vertical-align: top; top: 0.25em; position: relative; }
.stats small { display: block; margin-top: 10px; color: var(--text-2); font-size: 14px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } .stats > div:nth-child(2) { border-right: 0; } .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ---------- timeline ---------- */
.timeline { position: relative; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline::after {
  content: ""; position: absolute; left: 7px; top: 8px; width: 2px; height: calc((100% - 16px) * var(--progress, 0));
  background: linear-gradient(var(--gold-2), var(--gold)); transition: height 0.2s linear;
}
.timeline__item { position: relative; padding: 0 0 36px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: -36px; top: 7px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-strong); transition: border-color 0.4s, background 0.4s, box-shadow 0.4s;
}
.timeline__item.is-in::before { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 0 6px var(--gold-dim); }
.timeline__when { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; display: block; }
.timeline__item h3 { font-size: 22px; margin-bottom: 6px; }
.timeline__item p { color: var(--text-2); max-width: 56ch; margin: 0; }

/* ---------- history strip (horizontal scroll) ---------- */
.strip { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 24px; margin-inline: calc(-1 * var(--gutter)); scrollbar-width: thin; scrollbar-color: var(--gold) transparent; cursor: grab; }
.strip.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.strip::-webkit-scrollbar { height: 6px; }
.strip::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 6px; }
.strip__item { flex: 0 0 min(78vw, 520px); scroll-snap-align: start; }
.strip__item .media { aspect-ratio: 3 / 2; }
.strip__item figcaption { margin-top: 14px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.strip__item figcaption b { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.strip__item figcaption span { color: var(--muted); font-size: 14px; font-family: var(--font-mono); }

/* ---------- people ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 22px; }
.people--wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.person { text-align: left; }
.person__photo { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); position: relative; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.25); transition: transform 0.9s var(--ease-out), filter 0.5s; }
.person:hover .person__photo img { transform: scale(1.05); filter: grayscale(0); }
.person__photo::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); border-radius: inherit; }
.person__initials { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--font-display); font-size: 56px; font-weight: 700; color: var(--gold); background: linear-gradient(145deg, var(--surface-2), var(--surface)); }
.person b { display: block; margin-top: 14px; font-size: 19px; font-weight: 600; font-family: var(--font-display); }
.person span { display: block; color: var(--gold); font-size: 14px; margin-top: 3px; }
.person a { color: var(--gold); font-size: 13px; display: inline-block; margin-top: 6px; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.person a:hover { border-color: var(--gold); }

/* org chart */
.org { display: grid; gap: 12px; justify-items: center; }
.org__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.org__box { padding: 12px 18px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); font-family: var(--font-display); font-weight: 600; font-size: 15px; text-align: center; }
.org__box small { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-top: 4px; font-weight: 400; }
.org__box--top { border-color: var(--gold); }
.org__line { width: 1px; height: 18px; background: var(--line-strong); }
.person__meta { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.person__meta b { display: inline; color: var(--text-2); font-weight: 500; margin: 0; font-size: 13px; }

/* team strip on the home page */
.faces { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
@media (max-width: 960px) { .faces { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .faces { grid-template-columns: repeat(3, 1fr); gap: 8px; } }
.faces a { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); display: block; }
.faces img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out), filter 0.4s; filter: grayscale(0.2); }
.faces a:hover img { transform: scale(1.06); filter: none; }
.faces a span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; font-size: 12px; font-weight: 600; color: #fff; background: linear-gradient(to top, rgba(10,10,12,.9), transparent); }
.faces a small { display: block; font-weight: 400; color: var(--text-2); font-size: 11px; }

/* ---------- accordion / faq ---------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; text-align: left; font-family: var(--font-display); font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; }
.acc__btn .plus { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; flex: 0 0 auto; position: relative; transition: background 0.3s, border-color 0.3s; }
.acc__btn .plus::before, .acc__btn .plus::after { content: ""; position: absolute; background: var(--text); width: 12px; height: 1.5px; transition: transform 0.35s var(--ease-out); }
.acc__btn .plus::after { transform: rotate(90deg); }
.acc__btn[aria-expanded="true"] .plus { background: var(--gold); border-color: var(--gold); }
.acc__btn[aria-expanded="true"] .plus::before, .acc__btn[aria-expanded="true"] .plus::after { background: #111; }
.acc__btn[aria-expanded="true"] .plus::after { transform: rotate(0); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease-out); }
.acc__panel > div { overflow: hidden; }
.acc__panel p, .acc__panel ul { color: var(--text-2); max-width: 64ch; }
.acc__panel ul { padding-left: 20px; list-style: disc; margin-bottom: 1em; }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__item.is-open .acc__panel > div { padding-bottom: 24px; }

/* ---------- lists ---------- */
.list { display: grid; gap: 12px; }
.list li { position: relative; padding-left: 24px; color: var(--text-2); }
.list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.list b { color: var(--text); }
.checklist li::before { content: "✓"; background: none; color: var(--gold); font-weight: 700; width: auto; height: auto; top: 0; }

/* ---------- pricing / tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 1040px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tiers { grid-template-columns: 1fr; } }
.tier { position: relative; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); padding: 28px 26px; display: flex; flex-direction: column; gap: 18px; transition: transform 0.5s var(--ease-out), border-color 0.4s; }
.tier:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.22); }
.tier--hi { border-color: var(--gold); background: linear-gradient(180deg, rgba(207, 184, 124, 0.12), var(--surface) 55%); }
.tier--hi::before { content: "Top tier"; position: absolute; top: -12px; left: 24px; padding: 5px 10px; border-radius: 999px; background: var(--gold); color: #111; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.tier__name { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.tier__price { font-family: var(--font-display); font-size: 38px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.tier__price small { font-size: 14px; color: var(--muted); font-family: var(--font-body); letter-spacing: 0; margin-left: 6px; }
.tier ul { display: grid; gap: 10px; font-size: 14.5px; color: var(--text-2); flex: 1; }
.tier ul li { display: flex; gap: 10px; }
.tier ul li::before { content: "✓"; color: var(--gold); font-weight: 700; }
.tier .btn { justify-content: center; }

/* ---------- sponsors ---------- */
.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.logos > * { display: grid; place-items: center; min-height: 140px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); padding: 28px; transition: border-color 0.3s, transform 0.5s var(--ease-out); }
.logos > *:hover { border-color: rgba(255, 255, 255, 0.25); transform: translateY(-3px); }
.logos img { max-height: 76px; width: auto; filter: brightness(1.15); }
.logos .logos__hi { grid-column: span 2; border-color: rgba(207, 184, 124, 0.45); background: linear-gradient(180deg, rgba(207, 184, 124, 0.10), var(--surface) 70%); position: relative; min-height: 180px; }
.logos .logos__hi img { max-height: 64px; width: min(260px, 70%); }
.logos__tier { position: absolute; top: 14px; left: 16px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 460px) { .logos .logos__hi { grid-column: span 1; } }
.logos .logos__light { background: #fff; border-color: #fff; }
.logos .logos__light img { filter: none; max-height: 90px; width: min(300px, 80%); }
.logos .logos__light .logos__tier { color: #7a6a3a; }
.logos .logos__slot { color: var(--muted); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; border-style: dashed; }

/* ---------- big CTA ---------- */
.cta {
  position: relative; border-radius: calc(var(--radius) + 8px); overflow: hidden; padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 72px);
  background: var(--surface); border: 1px solid var(--line); isolation: isolate;
}
.cta::before { content: ""; position: absolute; inset: -40%; z-index: -1; background: conic-gradient(from 0deg, transparent 0 60%, rgba(207, 184, 124, 0.22) 75%, transparent 90%); animation: spin 14s linear infinite; }
.cta::after { content: ""; position: absolute; inset: 1px; z-index: -1; border-radius: inherit; background: radial-gradient(80% 100% at 0% 100%, rgba(207, 184, 124, 0.12), var(--surface) 60%); }
.cta__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 860px) { .cta__grid { grid-template-columns: 1fr; } }
.cta h2 { max-width: 14ch; }
.cta p { color: var(--text-2); max-width: 50ch; }

/* ---------- contact ---------- */
.contact-card { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); padding: 26px; display: flex; gap: 18px; align-items: center; transition: border-color 0.3s, transform 0.5s var(--ease-out); }
.contact-card:hover { border-color: rgba(207, 184, 124, 0.35); transform: translateY(-3px); }
.contact-card__photo { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; background: var(--surface-2); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: var(--gold); font-size: 22px; }
.contact-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.contact-card b { display: block; font-size: 17px; }
.contact-card span { display: block; color: var(--muted); font-size: 13.5px; }
.contact-card a { color: var(--gold); font-size: 14px; display: inline-block; overflow-wrap: anywhere; margin-right: 12px; }
.contact-card a:hover { text-decoration: underline; }
.big-mail { font-family: var(--font-display); font-size: clamp(22px, 4vw, 48px); font-weight: 600; letter-spacing: -0.02em; color: var(--text); display: inline-block; position: relative; }
.big-mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease-out); }
.big-mail:hover::after { transform: scaleX(1); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 32px; background: var(--bg-2); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand img { height: 64px; width: auto; margin-bottom: 18px; }
.footer__brand p { color: var(--muted); font-size: 14.5px; max-width: 36ch; }
.footer h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; font-weight: 600; }
.footer ul { display: grid; gap: 10px; }
.footer ul a { color: var(--text-2); font-size: 15px; transition: color 0.2s; }
.footer ul a:hover { color: var(--text); }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--text-2); transition: border-color 0.25s, color 0.25s, transform 0.4s var(--ease-out); }
.social a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.social svg { width: 18px; height: 18px; }

/* ---------- Colorado heritage ---------- */
.flatirons { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(44px, 9vw, 130px); fill: var(--bg); z-index: 1; pointer-events: none; }
.hero .flatirons { z-index: 1; }
.legacy { background: var(--bg-2); overflow: hidden; border-block: 1px solid var(--line); }
.legacy__c { position: absolute; right: -6vw; top: 50%; transform: translateY(-50%); width: min(56vw, 680px); height: auto; color: var(--gold); opacity: 0.06; pointer-events: none; }
.est { font-family: var(--font-display); font-weight: 700; font-size: clamp(64px, 12vw, 168px); line-height: 0.9; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px rgba(207, 184, 124, 0.7); display: flex; align-items: baseline; gap: 0.15em; }
.est span { font-size: 0.32em; -webkit-text-stroke: 0; color: var(--gold); font-weight: 600; letter-spacing: 0; }
.legacy__badge { position: absolute; left: 18px; bottom: 18px; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 12px; background: rgba(10, 10, 12, 0.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line-strong); max-width: calc(100% - 36px); }
.legacy__badge img { height: 34px; width: auto; }
.legacy__badge span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); line-height: 1.4; }

/* ---------- decorative ---------- */
.bg-grid { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px; mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent); -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent); opacity: 0.6; }
.glow { position: absolute; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; border-radius: 50%; background: radial-gradient(circle, rgba(207, 184, 124, 0.12), transparent 60%); filter: blur(20px); pointer-events: none; z-index: -1; }
.plane-path { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.35; }
.plane-path path { stroke: var(--gold); stroke-width: 1.5; fill: none; stroke-dasharray: 8 10; stroke-dashoffset: var(--dash, 0); }
.divider { height: 1px; background: var(--line); }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13px; color: var(--text-2); }
.tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(207, 184, 124, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(207, 184, 124, 0.6); } 100% { box-shadow: 0 0 0 10px rgba(207, 184, 124, 0); } }

/* text scrub (words light up as you scroll) */
.scrub { font-family: var(--font-display); font-size: clamp(28px, 4.2vw, 56px); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; max-width: 24ch; }
.scrub .w { color: rgba(243, 241, 234, 0.18); transition: color 0.35s; }
.scrub .w.is-on { color: var(--text); }
.scrub .w.gold.is-on { color: var(--gold); }

/* ---------- page transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut 0.35s var(--ease-in-out) forwards; }
::view-transition-new(root) { animation: vtIn 0.55s var(--ease-out) forwards; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.nav { view-transition-name: site-nav; }
::view-transition-old(site-nav), ::view-transition-new(site-nav) { animation: none; }

/* JS fallback for browsers without cross-document view transitions */
.page-leave { animation: vtOut 0.3s var(--ease-in-out) forwards; }
html.no-vt body { animation: vtIn 0.6s var(--ease-out); }

/* ---------- misc ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 14px; background: var(--gold); color: #111; border-radius: 8px; font-weight: 600; transition: top 0.2s; }
.skip:focus { top: 16px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--gold); color: #111; padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; transition: opacity 0.3s, transform 0.4s var(--ease-out); z-index: 200; pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 110; transform-origin: left; transform: scaleX(var(--p, 0)); background: var(--gold); pointer-events: none; }
.calendar-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.calendar-embed iframe { width: 100%; height: 600px; border: 0; display: block; }
.note { border-left: 3px solid var(--gold); padding: 14px 18px; background: var(--gold-dim); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-2); font-size: 15px; }
.note b { color: var(--text); }
.kbd { font-family: var(--font-mono); font-size: 13px; padding: 3px 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  [data-reveal], .stagger > * { opacity: 1; transform: none; }
  .media--reveal { clip-path: inset(0 0 0 0 round var(--radius)); }
  .scrub .w { color: var(--text); }
  html { scroll-behavior: auto; }
}
