/* Layout: one narrow phone-first column; photo runs edge to edge, everything else sits in a 640px max gutter. */
:root {
  --ink: #0a0d11;      /* graphite, blue-biased like the shadows in the photo */
  --steel: #131820;
  --steel-2: #1b222c;
  --line: #29323e;
  --frost: #ecf1f5;    /* snow */
  --mute: #95a2b0;
  --soft: #c3cdd7;
  --sky: #5a9df0;      /* the Wasatch sky */
  --led: #ffe1a1;      /* warm LED white, used only for "lit" states */
  --f-display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --f-body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--frost);
  font-family: var(--f-body); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--led); outline-offset: 3px; border-radius: 8px; }
svg { display: block; }

.wrap { padding-left: var(--gutter-l); padding-right: var(--gutter-r); max-width: 640px; margin-inline: auto; }
.section { padding-block: 56px 8px; display: grid; gap: 14px; scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 56px); }

/* ---------- type ---------- */
.eyebrow { font-family: var(--f-mono); font-weight: 500; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.display { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; line-height: .9; text-wrap: balance; }
.h1 { font-size: clamp(56px, 17vw, 92px); }
.h2 { font-size: clamp(36px, 10vw, 52px); }
.lede { color: var(--soft); max-width: 36ch; }

/* ---------- top bar: logo + follow, always visible ---------- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: calc(env(safe-area-inset-top, 0px) + 8px); padding-bottom: 8px;
  padding-left: max(14px, env(safe-area-inset-left, 0px)); padding-right: max(14px, env(safe-area-inset-right, 0px));
  background: rgba(10, 13, 17, .74);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand img { width: 30px; height: auto; }
.brand b { font-stretch: 125%; font-weight: 800; font-size: 13px; letter-spacing: .05em; line-height: 1.05; text-transform: uppercase; }
.brand b span { display: block; font-weight: 600; font-size: 9px; letter-spacing: .34em; color: var(--mute); }

.btn-ig {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--frost); color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: 14px; white-space: nowrap;
}
.btn-ig svg { width: 18px; height: 18px; flex: none; }
.btn-ig.lg { min-height: 56px; font-size: 17px; padding: 0 22px; width: 100%; }
.btn-ig:active { transform: scale(.98); }

/* ---------- hero ---------- */
.hero { position: relative; }
.hero-media { position: relative; }
.hero-video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; max-height: 82svh; object-fit: cover; object-position: 50% 55%; background: var(--steel); }
/* darken the whole photo, then fade the bottom into the page so the copy reads cleanly */
.hero-media::after {
  content: ""; position: absolute; inset: 0 0 -2px; pointer-events: none; /* -2px hides the video's anti-aliased bottom edge */
  background:
    linear-gradient(to bottom, rgba(10,13,17,.15) 0%, rgba(10,13,17,.35) 45%, rgba(10,13,17,.88) 80%, var(--ink) 95%);
}
.hero-copy { position: relative; z-index: 1; margin-top: -190px; display: grid; gap: 14px; padding-bottom: 8px; }
.hero-copy .eyebrow { color: var(--frost); text-shadow: 0 1px 12px rgba(0,0,0,.8); }
.hero-copy .h1 { text-shadow: 0 2px 30px rgba(0,0,0,.5); }
.bio { color: var(--soft); font-size: 16px; max-width: 40ch; }
@media (min-width: 700px) { .bio { max-width: none; } }
/* desktop: the reel is vertical, so show it whole beside the copy instead of cropping it to a wide band */
@media (min-width: 900px) {
  .hero {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 64px;
    max-width: 1120px; margin-inline: auto;
    padding-top: calc(env(safe-area-inset-top, 0px) + 96px);
    padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
  .hero-media { order: 2; }
  .hero-media::after { display: none; }
  .hero-video { width: auto; height: min(78svh, 760px); max-height: none; aspect-ratio: 9 / 16; border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
  .hero-copy { order: 1; margin-top: 0; padding: 0; max-width: 560px; margin-inline: 0; }
}

/* ---------- spotlight tour ---------- */
@property --sx { syntax: '<length>'; inherits: true; initial-value: 0px; }
@property --sy { syntax: '<length>'; inherits: true; initial-value: 0px; }
@property --rx { syntax: '<length>'; inherits: true; initial-value: 0px; }
@property --ry { syntax: '<length>'; inherits: true; initial-value: 0px; }
@property --dim { syntax: '<number>'; inherits: true; initial-value: .55; }
@property --glow { syntax: '<number>'; inherits: true; initial-value: 0; }

.tour { position: relative; margin-top: 40px; }
.stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--ink);
  --sx: 50%; --sy: 40%; --rx: 0px; --ry: 0px; --dim: .55; --glow: 0;
  transition: --sx .9s cubic-bezier(.65,0,.35,1), --sy .9s cubic-bezier(.65,0,.35,1), --rx .9s cubic-bezier(.65,0,.35,1), --ry .9s cubic-bezier(.65,0,.35,1), --dim .7s ease, --glow .9s ease;
}
.stage-img {
  position: absolute; left: 0; top: 0; width: 2000px; height: 1333px !important; max-width: none;
  transform-origin: 0 0; transition: transform .9s cubic-bezier(.65,0,.35,1);
  -webkit-mask-image: linear-gradient(to bottom, #000 90%, transparent); mask-image: linear-gradient(to bottom, #000 90%, transparent);
  will-change: transform;
}
.shade {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(var(--rx) var(--ry) at var(--sx) var(--sy), rgba(4,6,9,0) 70%, rgba(4,6,9,var(--dim)) 100%);
}
.glow {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: var(--glow);
  background: radial-gradient(calc(var(--rx) * 1.25) calc(var(--ry) * 1.6) at var(--sx) var(--sy), rgba(255,225,161,.42), rgba(255,225,161,0) 100%);
}
.ring {
  position: absolute; left: var(--sx); top: var(--sy); width: calc(var(--rx) * 1.62); height: calc(var(--ry) * 1.62);
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  border: 1.5px solid rgba(255,225,161,.9); box-shadow: 0 0 18px rgba(255,225,161,.45), inset 0 0 18px rgba(255,225,161,.25);
  opacity: 0; transition: opacity .5s ease;
}
.stage[data-on="1"] .ring { opacity: 1; }

.skip {
  position: absolute; z-index: 3; right: var(--gutter-r); top: calc(env(safe-area-inset-top, 0px) + 72px);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft);
  background: rgba(10,13,17,.6); border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; min-height: 36px;
  display: inline-flex; align-items: center; text-decoration: none;
}
.dots { position: absolute; z-index: 3; left: var(--gutter-l); top: calc(env(safe-area-inset-top, 0px) + 80px); display: flex; gap: 6px; }
.dots span { width: 18px; height: 3px; border-radius: 2px; background: rgba(236,241,245,.22); transition: background .4s; }
.dots span.on { background: var(--led); box-shadow: 0 0 8px rgba(255,225,161,.6); }

.card {
  position: absolute; z-index: 3; left: var(--gutter-l); right: var(--gutter-r);
  bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 520px; margin-inline: auto;
  padding: 18px 18px 16px; border-radius: 18px;
  background: rgba(19,24,32,.88); border: 1px solid rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  display: grid; gap: 6px;
}
.card .inner { display: grid; gap: 6px; transition: opacity .25s ease, transform .25s ease; }
.card.swap .inner { opacity: 0; transform: translateY(6px); }
.card .idx { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--led); }
.card .pname { font-family: var(--f-display); font-weight: 800; font-size: 40px; line-height: .92; text-transform: uppercase; }
.card .pwhat { color: var(--soft); font-size: 15px; }
.card .pspec { font-family: var(--f-mono); font-size: 13px; color: var(--frost); }
.card .follow { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 16px; border-radius: 12px; background: var(--frost); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.card .follow svg { width: 18px; height: 18px; }
.card .follow .l { display: inline-flex; gap: 8px; align-items: center; }

.steps { pointer-events: none; margin-top: -100svh; }
.step { height: 95svh; }
.step:first-child { height: 80svh; }
.step:last-child { height: 120svh; }

@media (min-width: 700px) {
  .card { left: auto; right: max(32px, env(safe-area-inset-right, 0px)); width: 380px; bottom: 40px; }
}

/* ---------- build sheet: grouped by system ---------- */
.sys { display: grid; gap: 10px; }
.sys + .sys { margin-top: 18px; }
.sys h3 { display: flex; align-items: baseline; gap: 10px; font-family: var(--f-mono); font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.sys h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.rows { display: grid; gap: 10px; }
.row {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) 20px; gap: 14px; align-items: center;
  padding: 10px 14px 10px 10px; min-height: 92px;
  background: var(--steel); border: 1px solid var(--line); border-radius: 14px; text-decoration: none;
}
/* partner logos: each file is a square with its padding baked in, so they all sit on the same white tile */
.row img { width: 72px; height: 72px; border-radius: 12px; object-fit: contain; background: #fff; }
.meta { display: grid; gap: 1px; min-width: 0; }
.cat { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.name { font-family: var(--f-display); font-weight: 800; font-size: 26px; line-height: 1; text-transform: uppercase; margin-top: 2px; }
.what { font-size: 14px; color: var(--soft); line-height: 1.35; }
.handle { font-family: var(--f-mono); font-size: 13px; color: var(--sky); margin-top: 3px; }
.go { width: 20px; height: 20px; color: var(--mute); }
.row:active, .group:active { background: var(--steel-2); }

/* ---------- facebook groups ---------- */
.groups { display: grid; gap: 10px; margin-top: 6px; }
.group {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 20px; gap: 14px; align-items: center;
  min-height: 72px; padding: 12px 14px; border-radius: 14px; text-decoration: none;
  background: var(--steel); border: 1px solid var(--line);
}
.fb { width: 40px; height: 40px; border-radius: 50%; background: #1d5fc9; color: #fff; display: grid; place-items: center; }
.fb svg { width: 24px; height: 24px; }
.gmeta { display: grid; min-width: 0; }
.gname { font-weight: 700; font-size: 17px; line-height: 1.25; }
.gcount { font-family: var(--f-mono); font-size: 12.5px; color: var(--mute); }

/* ---------- footer ---------- */
.footer { display: grid; justify-items: center; gap: 22px; padding-block: 64px calc(40px + env(safe-area-inset-bottom, 0px)); }
.foot-brand img { width: 96px; }
.fine { color: var(--mute); font-size: 13px; }

/* ---------- intro: the logo powers on like the light bar, then hands off to the page ----------
   Only runs when the head script adds .intro-on (first visit per session, motion allowed).
   Timeline: strike 0.25–0.8s · pulse 0.85s · wordmark 1.0s · light bar 1.2s · logo out 1.85s · backdrop out 2.1s · page in 2.2s */
.intro { display: none; }
.intro-on .intro {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: radial-gradient(60% 45% at 50% 46%, #121821 0%, var(--ink) 70%);
  animation: intro-out .45s ease-in 2.1s forwards; cursor: pointer;
}
.intro-inner { display: grid; justify-items: center; gap: 18px; animation: logo-out .35s ease-in 1.85s forwards; }
.intro-mark { position: relative; width: 92px; }
.intro-mark img {
  width: 100%; opacity: .08;
  animation: strike .55s steps(1, end) .25s forwards, bloom 1.2s ease-out .8s forwards;
}
.intro-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; animation: ring 1s cubic-bezier(.2,.7,.3,1) .85s forwards; }
.intro-ring.r2 { animation-delay: 1.05s; }
.intro-ring polygon { fill: none; stroke: var(--led); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.intro-word { width: 150px; opacity: 0; transform: translateY(8px); animation: rise .5s ease-out 1s forwards; }
.intro-bar {
  width: 168px; height: 2px; border-radius: 2px; background: var(--led);
  box-shadow: 0 0 10px rgba(255,225,161,.9), 0 0 24px rgba(255,225,161,.5);
  transform: scaleX(0); animation: sweep .55s cubic-bezier(.65,0,.35,1) 1.2s forwards;
}
.intro-on .topbar, .intro-on main, .intro-on .footer { animation: page-in .7s ease-out 2.2s both; }

@keyframes strike { /* LED pods warming up: two quick flickers, then on */
  0% { opacity: .08; } 15% { opacity: .85; } 28% { opacity: .2; } 45% { opacity: 1; } 60% { opacity: .45; } 72%, 100% { opacity: 1; }
}
@keyframes bloom {
  0% { filter: drop-shadow(0 0 0 rgba(255,225,161,0)); }
  35% { filter: drop-shadow(0 0 14px rgba(255,225,161,.95)) drop-shadow(0 0 34px rgba(255,225,161,.55)); }
  100% { filter: drop-shadow(0 0 6px rgba(255,225,161,.5)); }
}
@keyframes ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes sweep { to { transform: scaleX(1); } }
@keyframes logo-out { to { opacity: 0; transform: scale(1.06); } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

@media (hover: hover) {
  .row:hover, .group:hover { background: var(--steel-2); border-color: #34404e; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .stage, .stage-img { transition: none; }
}
