/* ============================================================
   CHRIS MICHAEL — THE VAULT
   dark · gold/ember/teal · motion-driven
   ============================================================ */

:root {
  --bg: #060505;
  --bg-soft: #0c0a09;
  --ink: #f4efe8;
  --muted: rgba(244, 239, 232, 0.55);
  --faint: rgba(244, 239, 232, 0.16);
  --hairline: rgba(244, 239, 232, 0.10);

  --gold: #e8b54c;
  --ember: #ff5a26;
  --teal: #2ee6c8;

  --accent: var(--gold);

  --font-ui: "Inter", system-ui, sans-serif;
  --font-quote: "Playfair Display", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --pad: clamp(1.25rem, 4vw, 4rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100dvh;
}

::selection { background: var(--gold); color: #110d04; }

a { color: inherit; text-decoration: none; }
em { font-family: var(--font-quote); font-style: italic; font-weight: 400; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- focus ---------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ---------- grain ---------- */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, 2%); }
  100% { transform: translate(2%, -1%); }
}

/* ---------- progress ---------- */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 1500;
  background: transparent;
}
.progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold), var(--ember), var(--teal));
}

/* ---------- cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 3000;
  border-radius: 50%;
  display: none;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(232, 181, 76, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
              border-color 0.3s, background-color 0.3s;
}
.cursor-ring.is-hover {
  width: 64px; height: 64px;
  border-color: rgba(232, 181, 76, 0.9);
  background: rgba(232, 181, 76, 0.08);
}
@media (pointer: fine) {
  .cursor-dot, .cursor-ring { display: block; }
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
}

/* ---------- preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pre-inner { text-align: center; }
.pre-mark {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}
.pre-mark em { color: var(--gold); }
.pre-count {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.pre-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--pad);
  mix-blend-mode: difference;
}
.nav-mark {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.nav-mark em { color: var(--gold); }
.nav-links { display: flex; gap: clamp(0.9rem, 2.5vw, 2rem); }
.nav-link, .nav-cta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 0.4rem 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  border: 1px solid var(--faint);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  transition: background-color 0.3s, color 0.3s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--ink); color: var(--bg); }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 0 var(--pad) 2.2rem;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-portrait {
  position: absolute;
  right: clamp(-1rem, 2vw, 4rem);
  bottom: 0;
  height: min(82vh, 880px);
  width: auto;
  max-width: 44vw;
  object-fit: contain;
  object-position: bottom;
  pointer-events: none;
  user-select: none;
  /* B&W is baked into the canvas pixels so the X-ray brain keeps its color */
  filter: drop-shadow(0 0 42px rgba(232, 181, 76, 0.14));
  -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 14%);
          mask-image: linear-gradient(to top, transparent 0%, #000 14%);
}
@media (max-width: 900px) {
  .hero-portrait {
    height: 52vh;
    max-width: 70vw;
    right: -12vw;
    opacity: 0.45;
  }
}
.hero-glow { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute;
  width: 55vmax; height: 55vmax;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.16;
  will-change: transform;
}
.blob-a { background: var(--gold); top: -20%; left: -15%; animation: drift-a 26s ease-in-out infinite alternate; }
.blob-b { background: var(--ember); bottom: -30%; right: -20%; animation: drift-b 32s ease-in-out infinite alternate; }
.blob-c { background: var(--teal); top: 20%; right: 10%; width: 30vmax; height: 30vmax; opacity: 0.09; animation: drift-c 38s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(18vw, 12vh) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-14vw, -10vh) scale(0.9); } }
@keyframes drift-c { to { transform: translate(-10vw, 14vh) scale(1.2); } }

.hero-meta {
  position: relative;
  z-index: 5;
  pointer-events: none;
  margin-bottom: clamp(2rem, 6vh, 4rem);
}
.hero-kicker { margin-bottom: 1rem; color: var(--gold); }
.hero-sub {
  font-size: clamp(1.15rem, 2.4vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.45;
  max-width: 34ch;
}
.hero-sub em { color: var(--gold); }

.hero-foot {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--hairline);
  padding-top: 1.2rem;
}
.hero-foot .mono { font-size: 0.65rem; }
.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(var(--gold), transparent);
  animation: cue 2s var(--ease-out) infinite;
  transform-origin: top;
}
@keyframes cue {
  0% { transform: scaleY(0); }
  45% { transform: scaleY(1); }
  100% { transform: scaleY(1); opacity: 0; }
}
@media (max-width: 720px) {
  .hero-foot .mono:last-child { display: none; }
  .hero-foot .mono { font-size: 0.55rem; letter-spacing: 0.13em; }
  .hero-foot { gap: 0.6rem; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-wrap {
  padding: clamp(3rem, 8vh, 6rem) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}
.marquee { overflow: hidden; white-space: nowrap; }
.marquee-track {
  display: inline-flex;
  will-change: transform;
  font-weight: 900;
  font-size: clamp(2.6rem, 7vw, 6rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--ink);
}
.marquee-alt .marquee-track {
  font-weight: 400;
  font-family: var(--font-quote);
  font-style: italic;
  text-transform: none;
  font-size: clamp(1.6rem, 4vw, 3rem);
  color: var(--muted);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.rsec {
  position: relative;
  padding: clamp(6rem, 16vh, 11rem) var(--pad);
}
.sec-num {
  position: absolute;
  top: clamp(1rem, 4vh, 3rem);
  right: var(--pad);
  font-weight: 900;
  font-size: clamp(8rem, 26vw, 24rem);
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px var(--faint);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.sec-head { position: relative; z-index: 2; max-width: 60rem; margin-bottom: clamp(3rem, 7vh, 5rem); }
.sec-kicker { color: var(--accent); margin-bottom: 1.2rem; }
.sec-title {
  font-size: clamp(3.2rem, 9vw, 8.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
}
.sec-title em {
  text-transform: none;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.sec-title .line { display: block; overflow: hidden; }
.sec-title .line > span { display: inline-block; will-change: transform; }
.sec-desc {
  margin-top: 1.6rem;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 44ch;
}

/* per-section accent */
.sec-documents { --accent: var(--gold); }
.sec-links     { --accent: var(--ember); }
.sec-tools     { --accent: var(--gold); }
.sec-watch     { --accent: var(--gold); }

/* ---------- cards ---------- */
.card-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr));
  gap: 1.1rem;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.6rem;
  justify-content: space-between;
  min-height: 240px;
  padding: 1.6rem;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background:
    radial-gradient(120% 120% at var(--gx, 50%) var(--gy, 0%),
      color-mix(in srgb, var(--accent) 9%, transparent) 0%,
      transparent 55%),
    var(--bg-soft);
  transform-style: preserve-3d;
  will-change: transform;
  transition: border-color 0.35s;
  overflow: hidden;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  transform: translateZ(30px);
}
.card-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}
.card-arrow {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: background-color 0.35s, color 0.35s, transform 0.45s var(--ease-out);
}
.card-arrow svg { width: 16px; height: 16px; }
.card:hover .card-arrow {
  background: var(--accent);
  color: #0a0805;
  transform: rotate(45deg);
}
.card-body { transform: translateZ(20px); }
.card-title {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.card-desc { color: var(--muted); font-size: 0.92rem; }
.card-price {
  display: inline-block;
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.card-cta svg { width: 13px; height: 13px; transition: transform 0.4s var(--ease-out); }
.card:hover .card-cta {
  background: var(--accent);
  border-color: var(--accent);
  color: #110d04;
}
.card:hover .card-cta svg { transform: rotate(45deg); }

/* ---- for-hire card personalities ---- */
.card--keynotes { --accent: var(--gold); }
.card--keynotes .card-title {
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.card--training { --accent: var(--teal); }
.card--certs { --accent: #8fd0ff; }
.card--certs .card-title {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
}
.card--consulting { --accent: #cfd6e4; }
.card--consulting .card-title {
  font-family: var(--font-quote);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.45rem, 2.2vw, 1.8rem);
}
.card--dev { --accent: #a3e635; }
.card--dev .card-title {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
}
.card--dev .card-title::before { content: "> "; color: var(--accent); }
.card--performance { --accent: var(--ember); }
.card--performance .card-title {
  text-transform: uppercase;
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* ---------- dossier papers (documents) ---------- */
.paper-fan {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  padding-top: 1rem;
}
.paper-wrap { margin: 0 -0.8rem 1.6rem; will-change: transform; }
.paper-wrap:hover { position: relative; z-index: 6; }
.paper {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(300px, 82vw);
  aspect-ratio: 3 / 4;
  padding: 1.5rem 1.5rem 1.3rem;
  border-radius: 6px;
  background: linear-gradient(168deg, #f3ebda 0%, #e8dcc4 70%, #ddcfb2 100%);
  color: #171106;
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.55s var(--ease-out), box-shadow 0.55s;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 18px 45px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.paper::before {
  /* folded corner */
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 36px; height: 36px;
  background: linear-gradient(225deg, var(--bg) 0%, var(--bg) 49%, #c9b993 50%, #b8a67e 100%);
  box-shadow: -3px 3px 6px rgba(0, 0, 0, 0.15);
}
.paper::after {
  /* paper grain */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23p)' opacity='0.25'/%3E%3C/svg%3E");
}
.paper:hover {
  transform: rotate(0deg) translateY(-16px) scale(1.04);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 34px 70px rgba(0, 0, 0, 0.65);
}
.paper-index {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(23, 17, 6, 0.5);
}
.paper-badge {
  position: absolute;
  top: 22px;
  left: -38px;
  width: 150px;
  text-align: center;
  transform: rotate(-45deg);
  background: linear-gradient(100deg, var(--ember) 0%, #ff7847 100%);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  padding: 0.45rem 0 0.4rem 0.3rem;
  box-shadow: 0 4px 14px rgba(255, 90, 38, 0.45);
  animation: badge-pulse 2.4s ease-in-out infinite;
  z-index: 3;
  pointer-events: none;
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(255, 90, 38, 0.45); }
  50% { box-shadow: 0 4px 26px rgba(255, 90, 38, 0.85); }
}
/* document preview: the actual file, framed like a page on the folder */
.paper-preview {
  display: block;
  margin-top: 0.9rem;
  border: 1px solid rgba(23, 17, 6, 0.22);
  background: #fff;
  box-shadow: 0 6px 18px rgba(23, 17, 6, 0.22);
  overflow: hidden;
  height: 168px;
  flex-shrink: 0;
}
.paper-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transform: scale(1.01);
  transition: transform 0.7s var(--ease-out);
}
.paper:hover .paper-preview img { transform: scale(1.06); }
.paper.has-preview { aspect-ratio: auto; min-height: 420px; }
.paper.has-preview .paper-stamp {
  position: absolute;
  top: 118px;
  right: 1rem;
  margin-top: 0;
  z-index: 2;
  background: rgba(243, 235, 218, 0.85);
}
.paper.has-preview .paper-title {
  margin-top: 1.1rem;
  font-size: 1.42rem;
}
.paper.has-preview .paper-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.paper.has-preview .paper-open { margin-top: auto; }

.paper-stamp {
  align-self: flex-start;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #b3330f;
  border: 2px solid currentColor;
  border-radius: 3px;
  padding: 0.35rem 0.75rem 0.3rem;
  transform: rotate(-5deg);
  opacity: 0.8;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.45' numOctaves='3'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='0 .4 .7 1 1 1 1 1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='120' height='40' filter='url(%23r)'/%3E%3C/svg%3E");
  -webkit-mask-size: cover;
}
.paper-title {
  margin-top: auto;
  font-family: var(--font-quote);
  font-style: italic;
  font-weight: 500;
  font-size: 1.65rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.paper-desc {
  margin: 0.55rem 0 1.3rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(23, 17, 6, 0.62);
}
.paper-open {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border-top: 1px dashed rgba(23, 17, 6, 0.35);
  padding-top: 0.85rem;
  color: #171106;
}
.paper-open svg { width: 14px; height: 14px; transition: transform 0.4s var(--ease-out); }
.paper:hover .paper-open svg { transform: rotate(45deg); }

/* ---------- branded banners (the work) ---------- */
.brand-list {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--hairline);
}
.brand-row {
  --brand: var(--gold);
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.8rem, 5vh, 3.2rem) 0.8rem;
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  isolation: isolate;
}
.brand-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    color-mix(in srgb, var(--brand) 88%, #000) 0%,
    var(--brand) 60%,
    color-mix(in srgb, var(--brand) 70%, #fff) 130%);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease-out);
  z-index: -1;
}
a.brand-row:hover::before { transform: scaleY(1); transform-origin: top; }
.brand-name {
  font-size: clamp(2rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  transition: color 0.3s, transform 0.5s var(--ease-out);
}
.brand-name em { color: var(--brand); transition: color 0.3s; }
.brand-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  text-align: right;
  transition: color 0.3s;
}
.brand-status {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  transition: color 0.3s, border-color 0.3s, background-color 0.3s;
}
.brand-status.is-soon {
  color: var(--muted);
  border-color: var(--faint);
  border-style: dashed;
}
/* price/free badge perched on the top edge of the wordmark */
.brand-extra {
  display: inline-block;
  vertical-align: top;
  margin-left: 0.7rem;
  transform: translateY(0.2em);
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 1vw, 0.72rem);
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  background: var(--brand);
  color: #0c0703;
  border-radius: 999px;
  padding: 0.4rem 0.75rem 0.35rem;
  transition: background-color 0.3s, color 0.3s;
}
a.brand-row:hover .brand-extra {
  background: #0c0703;
  color: var(--ink);
}
.brand-tagline { color: var(--muted); font-size: 0.9rem; transition: color 0.3s; }
.brand-arrow {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.45s var(--ease-out), border-color 0.3s, color 0.3s, background-color 0.3s;
}
.brand-arrow svg { width: 20px; height: 20px; }
a.brand-row:hover .brand-name,
a.brand-row:hover .brand-name em { color: #0c0703; }
a.brand-row:hover .brand-name { transform: translateX(1.2rem); }
a.brand-row:hover .brand-tagline { color: rgba(12, 7, 3, 0.8); }
a.brand-row:hover .brand-status {
  color: #0c0703;
  border-color: rgba(12, 7, 3, 0.45);
}
a.brand-row:hover .brand-arrow {
  border-color: rgba(12, 7, 3, 0.45);
  color: #0c0703;
  transform: rotate(45deg);
}
div.brand-row { opacity: 0.85; }
div.brand-row .brand-arrow { border-style: dashed; }

/* group sub-headings */
.brand-group {
  padding: 1.4rem 0.8rem 0.9rem;
  border-bottom: 1px solid var(--hairline);
  color: var(--accent);
  font-weight: 400;
}
.brand-group ~ .brand-group { margin-top: clamp(2rem, 5vh, 3.5rem); }

/* per-brand identities */
.brand--decodebehavior { --brand: var(--teal); }
.brand--decodebehavior .brand-name { font-weight: 700; }
.brand--decodex { --brand: var(--teal); }
.brand--decodex .brand-name {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.brand--reflex { --brand: var(--ember); }
.brand--reflex .brand-name { font-weight: 800; letter-spacing: -0.04em; }
.brand--reflex .brand-name em {
  font-family: var(--font-ui);
  font-style: normal;
  color: var(--ember);
}
.brand--cuekiller { --brand: var(--ember); }
.brand--cuekiller .brand-name {
  font-weight: 900;
  text-transform: uppercase;
  font-style: italic;
  letter-spacing: -0.01em;
}
.brand--sybil { --brand: #8fd0ff; }
.brand--sybil .brand-name { font-weight: 500; letter-spacing: 0; }
/* Cut Above: thin, wide-tracked, Apple-quiet luxury */
.brand--cutabove { --brand: var(--gold); }
.brand--cutabove .brand-name {
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: clamp(1.5rem, 4.4vw, 3.2rem);
}
.brand--cutabove .brand-name em {
  font-family: var(--font-ui);
  font-style: normal;
  font-weight: 200;
  color: var(--gold);
}
.brand--proillusions { --brand: #9d6bff; }
.brand--proillusions .brand-name {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.10em;
  color: #9d6bff;
  text-shadow: 0 0 22px rgba(157, 107, 255, 0.65), 0 0 50px rgba(157, 107, 255, 0.3);
}
.brand--proillusions .brand-name em {
  font-family: var(--font-ui);
  font-style: normal;
  color: var(--ink);
  text-shadow: none;
}
a.brand--proillusions:hover .brand-name { text-shadow: none; }
/* Built for Wonder: the book; serif italic with a sunset-gradient foil */
.brand--wonder { --brand: var(--ember); }
.brand--wonder .brand-name em {
  background: linear-gradient(95deg, #f5cd74 10%, var(--ember) 60%, #ff8a4d 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.brand--secrets { --brand: var(--gold); }
.brand--secrets .brand-name {
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(1.6rem, 4.6vw, 3.4rem);
}
/* Body Language Academy: scholarly parchment */
.brand--navarro { --brand: #e3d7bd; }
.brand--navarro .brand-name { font-weight: 600; letter-spacing: -0.01em; }

/* Chris Michael Speaks: marquee-poster caps, "SPEAKS" as hollow gold outline */
.brand--speaks { --brand: var(--gold); }
.brand--speaks .brand-name {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.brand--speaks .brand-name em {
  font-family: var(--font-ui);
  font-style: normal;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold);
}
a.brand--speaks:hover .brand-name em {
  color: transparent;
  -webkit-text-stroke-color: #0c0703;
}

@media (max-width: 720px) {
  .brand-row { grid-template-columns: 1fr auto; }
  .brand-meta { display: none; }
}

/* ============================================================
   HORIZONTAL SECTION (watch)
   ============================================================ */
.hsec { position: relative; }
.hsec-pin {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 14vh, 9rem) var(--pad) clamp(4rem, 10vh, 7rem);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hsec .sec-num { top: clamp(1rem, 4vh, 3rem); }
.hsec-head { margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.hsec-hint { max-width: none; color: var(--muted); }
.htrack {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 1.4rem;
  will-change: transform;
  width: max-content;
}
.hcard {
  position: relative;
  width: clamp(300px, 38vw, 520px);
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
  border-radius: 22px;
  border: 1px solid var(--hairline);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.8rem;
  isolation: isolate;
}
.hcard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hgrad);
  opacity: 0.6;
  transition: transform 0.7s var(--ease-out), opacity 0.5s;
  transform: scale(1.02);
}
.hcard:hover::before { transform: scale(1.1); opacity: 0.85; }
.hcard-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: grayscale(0.5) contrast(1.06) brightness(0.85);
  transform: scale(1.03);
  transition: transform 0.7s var(--ease-out), filter 0.5s;
}
.hcard.has-thumb::before {
  opacity: 0.35;
  background:
    linear-gradient(to top, rgba(6, 5, 5, 0.85) 0%, transparent 60%),
    var(--hgrad);
}
.hcard.has-thumb:hover::before { opacity: 0.3; }
.hcard.has-thumb:hover .hcard-thumb { transform: scale(1.1); filter: grayscale(0.1) contrast(1.03) brightness(0.95); }
.hcard-index {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: rgba(244, 239, 232, 0.7);
}
.hcard-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.8;
  margin-bottom: 0.6rem;
}
.hcard-title {
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
.hcard-desc { color: rgba(244, 239, 232, 0.75); font-size: 0.9rem; max-width: 36ch; }
.hcard-play {
  position: absolute;
  top: 50%; left: 50%;
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(244, 239, 232, 0.4);
  background: rgba(6, 5, 5, 0.35);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  transition: opacity 0.4s, transform 0.5s var(--ease-out);
}
.hcard-play svg { width: 20px; height: 20px; margin-left: 3px; }
.hcard:hover .hcard-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* vertical fallback (mobile / reduced motion) */
.hsec.is-static .hsec-pin { min-height: 0; }
.hsec.is-static .hsec-hint { display: none; }
.hsec.is-static .htrack {
  width: 100%;
  flex-direction: column;
}
.hsec.is-static .hcard { width: 100%; aspect-ratio: 16 / 9; }

/* ============================================================
   ABOUT
   ============================================================ */
.sec-about { --accent: var(--gold); }
.about-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.about-desc { max-width: 46ch; font-size: clamp(1.05rem, 1.8vw, 1.35rem); line-height: 1.7; }
.about-desc em { color: var(--gold); }
.about-stats {
  margin-top: 2.4rem;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hairline);
}
.about-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--hairline);
}
.about-stat b { font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em; text-align: right; }

.cutout-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  min-height: 420px;
}
.cutout-glow {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 181, 76, 0.25) 0%, rgba(255, 90, 38, 0.07) 45%, transparent 68%);
  filter: blur(28px);
  pointer-events: none;
}
.cutout { position: relative; width: min(560px, 94%); will-change: transform; }
.cutout img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(1) contrast(1.07) brightness(1.05)
          drop-shadow(0 0 26px rgba(232, 181, 76, 0.16));
}
.cutout-shadow {
  display: block;
  width: 58%;
  height: 16px;
  margin: 14px auto 0;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.6) 0%, transparent 70%);
  filter: blur(5px);
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .cutout-stage { min-height: 0; margin-top: 1rem; }
}

.strip {
  position: relative;
  z-index: 2;
  margin-top: clamp(3.5rem, 9vh, 6rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.frame {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--hairline);
  aspect-ratio: 4 / 5;
  isolation: isolate;
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.08) brightness(0.96);
  transform: scale(1.04);
  transition: transform 0.9s var(--ease-out), filter 0.6s;
}
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(6, 5, 5, 0.55) 0%, transparent 35%),
    linear-gradient(160deg, rgba(232, 181, 76, 0.14), rgba(255, 90, 38, 0.08));
  mix-blend-mode: normal;
  pointer-events: none;
}
.frame:hover img { transform: scale(1.11); filter: grayscale(0.15) contrast(1.04) brightness(1); }
.frame-caption {
  position: absolute;
  z-index: 1;
  bottom: 0.95rem;
  left: 1.1rem;
  color: rgba(244, 239, 232, 0.9);
}
@media (max-width: 720px) {
  .strip { grid-template-columns: 1fr; }
  .frame { aspect-ratio: 4 / 3; }
}

/* ============================================================
   CONSULTANCY
   ============================================================ */
.sec-consult { --accent: var(--ember); }
.consult-kicker {
  font-size: 1.05rem;
  letter-spacing: 0.26em;
  font-weight: 500;
}
.consult-pillars {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.consult-pillar {
  border-top: 1px solid var(--hairline);
  padding: 1.6rem 0.2rem 0.4rem;
}
.consult-pillar .mono { color: var(--ember); font-size: 0.62rem; }
.consult-pillar h3 {
  margin: 0.7rem 0 0.4rem;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.consult-pillar p { color: var(--muted); font-size: 0.92rem; max-width: 30ch; }
@media (max-width: 720px) {
  .consult-pillars { grid-template-columns: 1fr; }
}
.consult-cta-row {
  position: relative;
  z-index: 2;
  margin-top: clamp(2.5rem, 6vh, 4rem);
}
.consult-cta:hover {
  background: var(--ember);
  border-color: var(--ember);
  color: #1a0700;
}

/* ============================================================
   JOIN (work for chris)
   ============================================================ */
.sec-join { --accent: var(--teal); }
.join-roles {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.join-roles span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 239, 232, 0.75);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  transition: border-color 0.3s, color 0.3s;
}
.join-roles span:hover { border-color: var(--teal); color: var(--teal); }
.join-cta:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #03211c;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  border-top: 1px solid var(--hairline);
  padding-bottom: 2rem;
  overflow: hidden;
}
.footer-marquee { padding: clamp(2.5rem, 7vh, 5rem) 0 1rem; }
.footer-track {
  font-size: clamp(4rem, 13vw, 12rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 239, 232, 0.35);
  transition: color 0.4s;
}
.footer:hover .footer-track { color: var(--gold); -webkit-text-stroke: 1px transparent; }
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.8rem;
  padding: clamp(3rem, 8vh, 5rem) var(--pad) 3rem;
}
.footer-line {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: var(--muted);
}
.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  border: 1px solid var(--faint);
  border-radius: 999px;
  padding: 1.1rem 2rem;
  transition: background-color 0.35s, color 0.35s, border-color 0.35s;
}
.footer-cta svg { width: 22px; height: 22px; transition: transform 0.4s var(--ease-out); }
.footer-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #110d04;
}
.footer-cta:hover svg { transform: rotate(45deg); }
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.65rem;
}
.footer-meta a:hover { color: var(--gold); }

/* ============================================================
   VIDEO LIGHTBOX
   ============================================================ */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(6, 5, 5, 0.92);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 4rem);
  animation: lightbox-in 0.35s var(--ease-out);
}
@keyframes lightbox-in { from { opacity: 0; } }
.lightbox-frame {
  width: min(1100px, 100%);
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--faint);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
  animation: lightbox-pop 0.45s var(--ease-out);
}
@keyframes lightbox-pop { from { transform: scale(0.94) translateY(14px); opacity: 0; } }
.lightbox-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.lightbox-close {
  position: absolute;
  top: clamp(0.8rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2.5rem);
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--faint);
  background: rgba(6, 5, 5, 0.6);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, transform 0.3s;
}
.lightbox-close:hover { background: var(--gold); color: #110d04; transform: rotate(90deg); }

/* ============================================================
   REVEAL DEFAULTS (JS adds motion; without JS everything shows)
   ============================================================ */
[data-intro] { opacity: 1; }

/* ============================================================
   MOBILE PERFORMANCE
   heavy blurs and animated layers are the big GPU costs on
   phones; soften them without changing the look much
   ============================================================ */
@media (max-width: 900px) {
  .blob { filter: blur(60px); animation: none; opacity: 0.13; }
  .grain { animation: none; opacity: 0.04; }
  .footer-track { transition: none; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  .scroll-line { animation: none; }
}
