/* joshuavelasco.com: the public site (homepage/). One look for every page:
   deep smoke, warm orange light, neon from the bar's signs, wide Archivo for
   headlines, Martian Mono for labels. Since R5.1 it wears the house theme,
   Ember (/ui/themes.css, <html data-look="ember" data-scheme="dark">): the
   theme's bg/text tokens override the ones below, and the "Ember" section at
   the end adds its glow, frosted boxes and moving titles.
   Fonts come from /ui/fonts (OFL, credits in ui/CREDITS.md). */

@font-face { font-family: "Archivo"; src: url("/ui/fonts/Archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("/ui/fonts/MartianMono.woff2") format("woff2"); font-weight: 100 800; font-stretch: 75% 112.5%; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #070605;
  --bg-2: #0E0C0A;
  --bg-3: #15120F;
  --line: rgba(255, 236, 214, .09);
  --line-2: rgba(255, 236, 214, .16);
  --text: #F3EDE3;
  --text-2: #ABA398;
  --text-3: #6F685F;
  --orange: #F28C2C;
  --orange-hi: #FFB466;
  --orange-lo: #C9600C;
  --pink: #FF3D8B;
  --cyan: #45D4FF;
  --green: #56CF86;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 18px;
  --r-sm: 10px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --top-h: 64px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--display); font-size: 17px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
/* Film grain over everything: keeps big dark areas from looking flat. */
body::after {
  content: ""; position: fixed; inset: -50%; pointer-events: none; z-index: 100; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 125%; letter-spacing: -.025em; line-height: 1.02; text-wrap: balance; }
::selection { background: var(--orange); color: #1C0E06; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 300; background: var(--orange); color: #1C0E06; padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 12px; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--orange);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow.plain::before { display: none; }
.lede { font-size: clamp(18px, 2.2vw, 22px); line-height: 1.5; color: var(--text-2); max-width: 40ch; }
.dim { color: var(--text-2); }
.hl { color: var(--orange); }
.strike { text-decoration: line-through; text-decoration-color: var(--pink); text-decoration-thickness: 3px; color: var(--text-3); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  font-family: var(--display); font-weight: 700; font-stretch: 110%; font-size: 15px; letter-spacing: .01em;
  transition: transform .12s var(--ease), box-shadow .2s, background .2s, color .2s;
}
.btn:active { transform: translateY(2px); }
.btn-go {
  color: #1C0E06; background: linear-gradient(180deg, var(--orange-hi) 0%, var(--orange) 50%, var(--orange-lo) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 3px 0 #5A2A04, 0 8px 28px rgba(242,140,44,.35);
}
.btn-go::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0) 50%); pointer-events: none; }
.btn-go:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 3px 0 #5A2A04, 0 10px 40px rgba(242,140,44,.55); }
.btn-go:active { box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 0 #5A2A04, 0 4px 14px rgba(242,140,44,.4); }
.btn-ghost { color: var(--text); background: rgba(255,240,220,.06); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: rgba(255,240,220,.1); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 17px; border-radius: 14px; }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.link-quiet { text-decoration: none; color: var(--text-2); font-weight: 600; font-size: 14px; }
.link-quiet:hover { color: var(--text); }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; color: var(--text-2); font-size: 15px; }
.link-btn:hover { color: var(--text); }
.arrow-link { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; text-decoration: none; color: var(--orange); }
.arrow-link:hover span { transform: translateX(3px); }
.arrow-link span { transition: transform .2s var(--ease); }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px);
       background: rgba(7,6,5,.72); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
       border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.top.scrolled { border-bottom-color: var(--line); background: rgba(7,6,5,.86); }
.top-in { height: var(--top-h); display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand .mark { width: 28px; height: 28px; filter: drop-shadow(0 0 10px rgba(242,140,44,.35)); }
.brand span { font-weight: 800; font-stretch: 125%; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; }
.tabs { display: none; margin-left: 18px; gap: 4px; }
.tabs a { position: relative; padding: 8px 12px; border-radius: 9px; text-decoration: none; color: var(--text-2); font-weight: 600; font-size: 14px; transition: color .15s, background .15s; }
.tabs a:hover { color: var(--text); background: rgba(255,240,220,.05); }
.tabs a[aria-current="page"] { color: var(--text); }
.tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--orange); box-shadow: 0 0 10px var(--orange); }
.tabs .tab-portal { color: var(--orange); }
.tabs .tab-portal::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); margin-right: 7px; vertical-align: 2px; box-shadow: 0 0 8px var(--orange); }
.top-act { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.top-act .btn-go { display: none; }
.signin-link { display: none; }
.who { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 4px 10px 4px 4px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13px; font-weight: 600; }
.who .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, var(--orange-hi), var(--orange-lo)); color: #1C0E06; font-weight: 800; font-size: 12px; }
.who-n { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.burger { width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; cursor: pointer; display: grid; place-content: center; gap: 6px; }
.burger i { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .25s var(--ease); }
.burger[aria-expanded="true"] i:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { transform: translateY(-4px) rotate(-45deg); }
.drawer { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--top-h) - env(safe-area-inset-top, 0px)); height: calc(100dvh - var(--top-h) - env(safe-area-inset-top, 0px)); background: rgba(7,6,5,.97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); overflow-y: auto; }
.drawer nav { display: grid; padding-top: 18px; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 28px); }
.drawer nav > a:not(.btn), .drawer-out { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer;
  text-decoration: none; font-weight: 800; font-stretch: 125%; font-size: 30px; letter-spacing: -.02em; }
.drawer nav > a .num { font-size: 12px; color: var(--text-3); font-weight: 400; letter-spacing: 0; }
.drawer nav > a[aria-current="page"] { color: var(--orange); }
.drawer-out { font-size: 16px !important; font-stretch: 100% !important; color: var(--text-2); font-weight: 600 !important; }
.drawer .btn { margin-top: 26px; }
.drawer:not([hidden]) nav > * { animation: rise .45s var(--ease) both; }
.drawer:not([hidden]) nav > *:nth-child(2) { animation-delay: .03s; } .drawer:not([hidden]) nav > *:nth-child(3) { animation-delay: .06s; }
.drawer:not([hidden]) nav > *:nth-child(4) { animation-delay: .09s; } .drawer:not([hidden]) nav > *:nth-child(5) { animation-delay: .12s; }
.drawer:not([hidden]) nav > *:nth-child(6) { animation-delay: .15s; } .drawer:not([hidden]) nav > *:nth-child(n+7) { animation-delay: .18s; }
body.menu-open { overflow: hidden; }
@media (min-width: 560px) { .top-act .btn-go { display: inline-flex; } .signin-link { display: inline; } }
@media (min-width: 960px) {
  .tabs { display: flex; }
  .burger { display: none; }
  .drawer { display: none !important; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.section.tight { padding: clamp(48px, 7vw, 88px) 0; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 60px); max-width: 820px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.h-xl { font-size: clamp(44px, 9.5vw, 128px); line-height: .92; letter-spacing: -.04em; }
.h-lg { font-size: clamp(36px, 6.4vw, 80px); line-height: .96; letter-spacing: -.035em; }
.h-md { font-size: clamp(28px, 4.2vw, 52px); }
.h-sm { font-size: clamp(21px, 2.4vw, 28px); letter-spacing: -.015em; }
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); border: 0; margin: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100svh - var(--top-h)); display: grid; align-items: end; 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% 45%; transform: scale(1.08); animation: drift 22s ease-in-out infinite alternate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(242,140,44,.18), transparent 60%),
    linear-gradient(180deg, rgba(7,6,5,.55) 0%, rgba(7,6,5,.25) 35%, rgba(7,6,5,.85) 72%, var(--bg) 100%),
    linear-gradient(90deg, rgba(7,6,5,.75), transparent 70%); }
.hero-in { padding-top: 120px; padding-bottom: clamp(40px, 7vw, 84px); display: grid; gap: 26px; }
.hero h1 { max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--orange); text-shadow: 0 0 28px rgba(242,140,44,.35); }
.hero-media picture { display: contents; }
.hero .lede { color: #D7CFC3; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.hero-small { min-height: auto; }
.hero-small .hero-in { padding-top: clamp(80px, 14vw, 170px); }
.pill { display: inline-flex; align-items: center; gap: 10px; width: fit-content; padding: 6px 14px 6px 8px; border-radius: 99px;
  background: rgba(10,9,8,.6); box-shadow: inset 0 0 0 1px var(--line-2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); text-decoration: none; }
.pill b { background: var(--orange); color: #1C0E06; padding: 3px 8px; border-radius: 99px; font-weight: 700; letter-spacing: .06em; }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--green); animation: ping 2s ease-out infinite; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: slide 46s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-weight: 800; font-stretch: 125%; font-size: clamp(20px, 3vw, 30px); letter-spacing: -.02em; white-space: nowrap; color: var(--text-2); }
.marquee-track span::after { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--orange); transform: rotate(45deg); box-shadow: 0 0 12px var(--orange); }
.marquee-track span:nth-child(3n+2) { color: var(--text); }

/* ---------- Pillars / cards ---------- */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: 1fr; } .g3 { grid-template-columns: 1fr; } .g4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 720px) { .g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .g4 { grid-template-columns: repeat(4, 1fr); } }
.card { position: relative; border-radius: var(--r); background: linear-gradient(180deg, #17140F, #0F0D0B); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 0 1px var(--line); padding: 26px; overflow: hidden; isolation: isolate; }
.card h3 { font-size: 22px; margin: 18px 0 10px; letter-spacing: -.015em; }
.card p { color: var(--text-2); font-size: 15.5px; }
.card .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(242,140,44,.1); box-shadow: inset 0 0 0 1px rgba(242,140,44,.3); color: var(--orange); }
.card .ic svg { width: 22px; height: 22px; }
.card.glow::before { content: ""; position: absolute; z-index: -1; width: 260px; height: 260px; right: -90px; top: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(242,140,44,.18), transparent 70%); }
.card .idx { position: absolute; top: 22px; right: 24px; font-family: var(--mono); font-size: 11px; color: var(--text-3); }

/* Image cards (the games, the spots) */
.shot { position: relative; border-radius: var(--r); overflow: hidden; background: var(--bg-3); box-shadow: 0 0 0 1px var(--line); isolation: isolate; display: block; text-decoration: none; }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .8s var(--ease), filter .6s; filter: saturate(1.05); }
.shot:hover img { transform: scale(1.04); }
.shot .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 20px 18px; background: linear-gradient(180deg, transparent, rgba(7,6,5,.92)); display: grid; gap: 4px; }
.shot .cap b { font-weight: 800; font-stretch: 125%; font-size: 20px; letter-spacing: -.015em; }
.shot .cap span { color: var(--text-2); font-size: 14px; }
.shot .tag { position: absolute; top: 14px; left: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 9px; border-radius: 6px; background: rgba(7,6,5,.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px var(--line-2); }
.shot.tall img { aspect-ratio: 4 / 5; }
.shot.wide img { aspect-ratio: 21 / 9; }

/* Game tiles: neon-tinted panels when there is no picture */
.game { position: relative; border-radius: var(--r); padding: 22px; min-height: 210px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 22%, #0F0D0B), #0C0A09 70%); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); }
.game::before { content: ""; position: absolute; z-index: -1; inset: auto -30% -60% auto; width: 90%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 40%, transparent), transparent 65%); filter: blur(10px); transition: transform .6s var(--ease); }
.game:hover::before { transform: scale(1.2) translate(-6%, -6%); }
.game .glyph { position: absolute; top: 20px; right: 20px; width: 54px; height: 54px; color: var(--c); filter: drop-shadow(0 0 12px var(--c)); }
.game b { font-weight: 800; font-stretch: 125%; font-size: 22px; letter-spacing: -.02em; }
.game span { color: var(--text-2); font-size: 14.5px; line-height: 1.45; }
.game .where { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--c); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 28px 18px 26px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.stat:nth-child(odd) { border-right: 1px solid var(--line); }
.stat:nth-child(even) { padding-left: 18px; }
@media (min-width: 900px) { .stat { border-right: 1px solid var(--line); padding-left: 22px; } .stat:first-child { padding-left: 0; } .stat:last-child { border-right: 0; } }
.stat b { font-weight: 800; font-stretch: 125%; font-size: clamp(42px, 6vw, 72px); line-height: 1; letter-spacing: -.04em; }
.stat b small { font-size: .45em; color: var(--orange); letter-spacing: 0; margin-left: 4px; }
.stat > span { color: var(--text-2); font-size: 14px; line-height: 1.45; max-width: 24ch; }

/* ---------- Split (text + picture) ---------- */
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.1fr; } .split.flip > :first-child { order: 2; } }
.split .copy { display: grid; gap: 20px; }
.ticks { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--text-2); font-size: 16px; }
.ticks li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; border-radius: 5px; background: rgba(242,140,44,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.6L13 6.6' fill='none' stroke='%23F28C2C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; box-shadow: inset 0 0 0 1px rgba(242,140,44,.35); }
.ticks li b { color: var(--text); font-weight: 700; }

/* ---------- The secret (redacted lines) ---------- */
.vault { position: relative; border-radius: var(--r); background: #0B0A08; box-shadow: inset 0 0 0 1px var(--line), 0 30px 80px rgba(0,0,0,.5); padding: 22px 22px 26px; overflow: hidden; font-family: var(--mono); font-size: 12.5px; line-height: 2; }
.vault-top { display: flex; align-items: center; gap: 7px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--text-3); font-size: 11px; }
.vault-top i { width: 10px; height: 10px; border-radius: 50%; background: #2A2622; }
.vault-top i:first-child { background: var(--pink); opacity: .7; } .vault-top i:nth-child(2) { background: var(--orange); opacity: .7; } .vault-top i:nth-child(3) { background: var(--green); opacity: .7; }
.vault-top span { margin-left: auto; letter-spacing: .1em; text-transform: uppercase; }
.vault .ln { display: flex; gap: 14px; white-space: nowrap; color: var(--text-2); }
.vault .ln .n { color: var(--text-3); width: 22px; text-align: right; flex: none; }
.vault .k { color: var(--orange); } .vault .c { color: var(--text-3); } .vault .s { color: var(--cyan); }
.redact { display: inline-block; height: 1.05em; vertical-align: -2px; border-radius: 3px; background: linear-gradient(90deg, #1E1B17, #2C2823, #1E1B17); background-size: 200% 100%; animation: shimmer 2.6s linear infinite; }
.vault .stamp { position: absolute; right: 18px; bottom: 30px; transform: rotate(-9deg); padding: 6px 14px; border: 2px solid var(--pink); color: var(--pink); border-radius: 6px; font-weight: 700; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; opacity: .85; box-shadow: 0 0 22px rgba(255,61,139,.25), inset 0 0 22px rgba(255,61,139,.15); }
.vault::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 55%, #0B0A08); }

/* ---------- Pipeline diagram (engine) ---------- */
.flow { display: grid; gap: 12px; }
@media (min-width: 820px) { .flow { grid-template-columns: repeat(4, 1fr); } }
.flow-step { position: relative; padding: 22px; border-radius: 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.flow-step .num { font-size: 11px; color: var(--orange); letter-spacing: .1em; }
.flow-step b { display: block; margin: 10px 0 6px; font-weight: 800; font-stretch: 125%; font-size: 20px; letter-spacing: -.015em; }
.flow-step p { color: var(--text-2); font-size: 14.5px; }
@media (min-width: 820px) { .flow-step:not(:last-child)::after { content: "→"; position: absolute; right: -11px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; display: grid; place-items: center; z-index: 2; border-radius: 50%; background: var(--bg); color: var(--orange); font-size: 13px; box-shadow: 0 0 0 1px var(--line-2); } }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(180deg, var(--orange), var(--line) 80%); }
.timeline li { position: relative; padding: 0 0 30px 38px; display: grid; gap: 4px; }
.timeline li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 2px var(--orange); }
.timeline li.now::before { background: var(--orange); box-shadow: 0 0 0 2px var(--orange), 0 0 16px var(--orange); }
.timeline li.later::before { box-shadow: 0 0 0 2px var(--text-3); }
.timeline .when { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.timeline b { font-weight: 800; font-stretch: 125%; font-size: 20px; letter-spacing: -.015em; }
.timeline p { color: var(--text-2); font-size: 15.5px; max-width: 60ch; }

/* ---------- Quote / manifesto ---------- */
.manifesto { font-weight: 800; font-stretch: 125%; font-size: clamp(30px, 5.4vw, 66px); line-height: 1.05; letter-spacing: -.035em; max-width: 18ch; }
.manifesto .soft { color: var(--text-3); }
.big-quote { font-weight: 300; font-stretch: 100%; font-size: clamp(24px, 3.6vw, 40px); line-height: 1.3; letter-spacing: -.02em; max-width: 30ch; }
.big-quote b { font-weight: 800; color: var(--orange); }

/* ---------- Steps (how to join) ---------- */
.steps { counter-reset: s; display: grid; gap: 14px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { list-style: none; counter-increment: s; padding: 26px; border-radius: var(--r); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 10px; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); color: var(--orange); font-size: 13px; }
.steps b { font-weight: 800; font-stretch: 125%; font-size: 21px; letter-spacing: -.015em; }
.steps p { color: var(--text-2); font-size: 15px; }
.steps ol, ol.steps { padding: 0; margin: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-weight: 700; font-stretch: 110%; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 20px; color: var(--orange); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--text-2); max-width: 66ch; }

/* ---------- News strip ---------- */
.news-list { display: grid; gap: 14px; }
@media (min-width: 820px) { .news-list { grid-template-columns: repeat(3, 1fr); } }
.news-item { display: grid; gap: 12px; padding: 18px; border-radius: var(--r); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; transition: box-shadow .2s, transform .2s var(--ease); }
.news-item:hover { box-shadow: inset 0 0 0 1px rgba(242,140,44,.45); transform: translateY(-2px); }
.news-item img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; background: var(--bg-3); }
.news-item .when { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.news-item b { font-weight: 800; font-stretch: 115%; font-size: 18px; line-height: 1.25; letter-spacing: -.01em; }
.news-item p { color: var(--text-2); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; border-radius: 26px; padding: clamp(40px, 7vw, 90px) clamp(24px, 5vw, 70px); text-align: center; display: grid; justify-items: center; gap: 22px;
  background: radial-gradient(ellipse 70% 90% at 50% 120%, rgba(242,140,44,.35), transparent 70%), linear-gradient(180deg, #16120E, #0B0907); box-shadow: inset 0 0 0 1px rgba(242,140,44,.25), 0 40px 100px rgba(0,0,0,.6); }
.cta::before { content: ""; position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000, transparent); -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000, transparent); }
.cta h2 { max-width: 14ch; }
.cta p { color: var(--text-2); max-width: 44ch; font-size: 18px; }
.neon { color: #FFE3C4; text-shadow: 0 0 6px rgba(255,170,90,.9), 0 0 22px rgba(242,140,44,.8), 0 0 60px rgba(242,140,44,.5); animation: flicker 6s infinite; }

/* ---------- More projects ---------- */
.projects { display: grid; gap: 10px; }
.projects a { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 20px; border-radius: 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; transition: box-shadow .2s; }
.projects a:hover { box-shadow: inset 0 0 0 1px rgba(242,140,44,.4); }
.projects b { font-weight: 700; font-stretch: 110%; }
.projects small { color: var(--text-2); font-size: 14px; text-align: right; }

/* ---------- Forms (sign in) ---------- */
.auth { min-height: calc(100svh - var(--top-h)); display: grid; place-items: center; padding: 48px 0 80px; position: relative; isolation: isolate; }
.auth::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(242,140,44,.16), transparent 70%); }
.auth-box { width: min(440px, 100%); display: grid; gap: 22px; }
.auth-box .panel { padding: 26px; border-radius: 22px; background: linear-gradient(180deg, #17140F, #0E0C0A); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 1px var(--line), 0 30px 80px rgba(0,0,0,.5); display: grid; gap: 16px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: #0A0908; box-shadow: inset 0 0 0 1px var(--line); }
.seg button { min-height: 40px; border: 0; border-radius: 9px; background: none; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--text-2); }
.seg button[aria-selected="true"] { background: linear-gradient(180deg, #3B3733, #24211E); color: var(--text); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 2px 6px rgba(0,0,0,.5); }
.fld { display: grid; gap: 7px; }
.fld label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.fld input { width: 100%; min-height: 50px; padding: 0 14px; border-radius: 11px; border: 0; background: #0A0908; color: var(--text); font: inherit; font-size: 17px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.6), inset 0 0 0 1px #26221E; transition: box-shadow .15s; }
.fld input:focus { outline: none; box-shadow: inset 0 2px 4px rgba(0,0,0,.6), inset 0 0 0 1.5px var(--orange), 0 0 0 4px rgba(242,140,44,.15); }
.fld small { color: var(--text-3); font-size: 12.5px; }
.form-msg { min-height: 1.4em; font-size: 14px; color: #FF8A84; }
.form-msg.ok { color: var(--green); }
.auth .fine { color: var(--text-3); font-size: 13px; text-align: center; }
.auth .fine a { color: var(--text-2); }

/* ---------- Portal ---------- */
.portal-hero { padding-top: clamp(48px, 8vw, 96px); padding-bottom: 30px; display: grid; gap: 16px; }
.badge-role svg { width: 15px; height: 15px; }
.badge-role { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 6px 12px; border-radius: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #1C0E06; background: linear-gradient(180deg, var(--orange-hi), var(--orange)); box-shadow: 0 0 22px rgba(242,140,44,.35); font-weight: 700; }
.tiles { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { position: relative; display: grid; gap: 10px; align-content: start; padding: 24px; min-height: 190px; border-radius: var(--r); text-decoration: none; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #17140F, #0E0C0A); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 0 1px var(--line); transition: transform .2s var(--ease), box-shadow .2s; }
.tile:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 0 1px rgba(242,140,44,.45), 0 18px 50px rgba(0,0,0,.5); }
.tile.hero-tile { grid-column: 1 / -1; min-height: 260px; background: radial-gradient(ellipse 60% 100% at 100% 0%, rgba(242,140,44,.28), transparent 65%), linear-gradient(180deg, #1A1611, #0E0C0A); }
@media (min-width: 1000px) { .tile.hero-tile { grid-column: span 2; } }
.tile .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(242,140,44,.1); box-shadow: inset 0 0 0 1px rgba(242,140,44,.3); color: var(--orange); }
.tile .ic svg { width: 22px; height: 22px; }
.tile b { font-weight: 800; font-stretch: 125%; font-size: 23px; letter-spacing: -.02em; margin-top: 6px; }
.tile.hero-tile b { font-size: clamp(28px, 4vw, 40px); }
.tile p { color: var(--text-2); font-size: 15px; }
.tile .go { position: absolute; right: 22px; top: 24px; color: var(--text-3); transition: color .2s, transform .2s var(--ease); }
.tile:hover .go { color: var(--orange); transform: translate(2px, -2px); }
.tile .lock { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-top: auto; }
.tool-row { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .tool-row { grid-template-columns: 1fr 1fr; } }
.tool { min-width: 0; grid-template-columns: minmax(0, 1fr); padding: 22px; border-radius: var(--r); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 12px; align-content: start; }
.tool form { display: flex; gap: 10px; }
.tool input { flex: 1; width: 0; min-width: 0; min-height: 46px; padding: 0 14px; border-radius: 10px; border: 0; background: #0A0908; color: var(--text); font-family: var(--mono); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; box-shadow: inset 0 2px 4px rgba(0,0,0,.6), inset 0 0 0 1px #26221E; }
.tool input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--orange); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 14.5px; }
.kv dt { color: var(--text-3); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding-top: 3px; }
.kv dd { margin: 0; color: var(--text); min-width: 0; overflow-wrap: anywhere; }

/* ---------- 404 ---------- */
.lost { min-height: calc(100svh - var(--top-h) - 120px); display: grid; place-content: center; text-align: center; gap: 20px; justify-items: center; padding: 60px 0; }
.lost .code { font-weight: 900; font-stretch: 125%; font-size: clamp(110px, 28vw, 240px); line-height: .85; letter-spacing: -.06em; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg), #050403); margin-top: 40px; }
.foot-in { display: grid; gap: 36px; padding-top: 60px; padding-bottom: 40px; grid-template-columns: 1fr 1fr; }
.foot-brand { grid-column: 1 / -1; display: grid; gap: 16px; max-width: 360px; }
.foot-brand p { color: var(--text-2); font-size: 15px; }
@media (min-width: 860px) { .foot-in { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .foot-brand { grid-column: auto; } }
.foot-col { display: grid; gap: 10px; align-content: start; }
.foot-col .eyebrow { margin-bottom: 6px; }
.foot-col a, .foot-me { color: var(--text-2); text-decoration: none; font-size: 15px; }
.foot-col a:hover { color: var(--text); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 22px; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 26px); border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px; }
.foot-base .mono { font-size: 11px; letter-spacing: .06em; }
.live { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2) !important; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.08) translate3d(0, 0, 0); } to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); } }
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes flicker { 0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; } 20%, 24%, 55% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Ember (PLAN.md R5.1): the house theme on the site ----------
   The layout, boxes and animations above stay; these lines dress them in
   Ember's tokens: a three-colour glow drifting behind everything, frosted
   see-through boxes, a light passing through the big titles. */
:root[data-look="ember"] { --orange: var(--accent); --line: var(--rule); --r: var(--panel-r); }
body { background: var(--bg); }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -10; pointer-events: none;
  background-image: var(--bg-glow); background-size: var(--bg-size); background-repeat: no-repeat;
  animation: var(--bg-motion, none) 28s ease-in-out infinite alternate;
}
.card, .tile, .flow-step, .steps li, .news-item, .tool, .auth-box .panel, .projects a {
  background: var(--panel); box-shadow: var(--panel-edge);
  -webkit-backdrop-filter: var(--panel-blur); backdrop-filter: var(--panel-blur);
}
.tile.hero-tile { background: radial-gradient(ellipse 60% 100% at 100% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 65%), var(--panel); }
.tile:hover { box-shadow: var(--panel-edge), 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.card .ic, .tile .ic { background: color-mix(in srgb, var(--accent) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); color: var(--accent); }
.marquee { background: color-mix(in srgb, var(--bg) 70%, transparent); -webkit-backdrop-filter: var(--panel-blur); backdrop-filter: var(--panel-blur); }
.top, .top.scrolled { background: var(--over); }
.btn-go { background: var(--go-bg); color: var(--go-text); }
.h-xl, .h-lg, .hero h1 {
  background-image: var(--title-fill, none); background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: var(--title-ink, currentColor);
  animation: var(--title-motion, none) var(--title-speed, 7s) ease-in-out infinite;
}
.h-xl em, .h-lg em, .hero h1 em, .h-xl .hl, .h-lg .hl, .h-lg .neon, .h-xl .neon { -webkit-text-fill-color: currentColor; }
@keyframes lp-drift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
@keyframes lp-shimmer { from { background-position: 100% 0; } to { background-position: 0% 0; } }
@keyframes lp-glow { 0%, 100% { filter: drop-shadow(0 0 6px var(--title-glow)); } 50% { filter: drop-shadow(0 0 18px var(--title-glow)); } }
@keyframes lp-shimmer-glow { 0% { background-position: 100% 0; filter: drop-shadow(0 0 6px var(--title-glow)); } 50% { filter: drop-shadow(0 0 16px var(--title-glow)); } 100% { background-position: 0% 0; filter: drop-shadow(0 0 6px var(--title-glow)); } }
@keyframes lp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { body::before, .h-xl, .h-lg, .hero h1 { animation: none; } }
.shot.highlight img { aspect-ratio: 16 / 9; }
.shot.highlight .cap b { font-size: clamp(22px, 4vw, 34px); }
.shot.highlight .cap span { font-size: 15.5px; color: #E9E1D6; max-width: 52ch; }
a.card { display: block; text-decoration: none; color: inherit; }
