/* ==========================================================================
   Blackriver Technology — design system
   Dark, engineering-grade. One stylesheet for the landing page and the blog.
   ========================================================================== */

:root {
  --bg:            #06080b;
  --bg-elev:       #0b0f15;
  --surface:       #0e141c;
  --surface-2:     #131b25;
  --line:          rgba(255, 255, 255, 0.09);
  --line-strong:   rgba(255, 255, 255, 0.16);

  --text:          #e8eef6;
  --text-dim:      #a3b1c2;
  --text-muted:    #6f7f92;

  --accent:        #3f9dff;
  --accent-soft:   #6fb8ff;
  --accent-2:      #22d3ee;
  --accent-glow:   rgba(63, 157, 255, 0.35);
  --success:       #34d399;
  --warn:          #fbbf24;

  --radius:        14px;
  --radius-lg:     20px;
  --wrap:          1200px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;

  --shadow: 0 24px 70px -24px rgba(0, 0, 0, 0.85);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-soft); text-decoration: none; }
a:hover { color: #fff; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -0.022em; font-weight: 650; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); letter-spacing: -0.03em; }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 24px; }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }

/* --------------------------------------------------------------------------
   Shared type helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 620;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--text-dim);
  max-width: 62ch;
  line-height: 1.7;
}
.section-title { margin-bottom: 12px; }
.section-intro { color: var(--text-dim); max-width: 64ch; margin-bottom: 48px; font-size: 1.05rem; }

.section-head { margin-bottom: 56px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 8, 11, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); background: rgba(6, 8, 11, 0.92); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand img { height: 30px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  color: var(--text-dim);
  font-size: .92rem;
  font-weight: 500;
  transition: color .2s ease;
}
.site-nav a:hover, .site-nav a.is-current { color: #fff; }
.nav-cta {
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color .2s ease, background .2s ease;
}
.nav-cta:hover { border-color: var(--accent); background: rgba(63, 157, 255, 0.14); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line-strong); border-radius: 10px;
  color: #fff; width: 42px; height: 38px; cursor: pointer; padding: 0;
  font-size: 1.1rem; line-height: 1;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 11px;
  font-size: .95rem;
  font-weight: 580;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #2f7fe0 100%);
  color: #fff;
  box-shadow: 0 10px 30px -10px var(--accent-glow);
}
@media (hover: hover) {
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -12px var(--accent-glow); color: #fff; }
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { border-color: var(--accent); color: #fff; background: rgba(63, 157, 255, 0.1); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(80px, 12vh, 140px) 24px clamp(70px, 10vh, 110px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: '';
  position: absolute;
  inset: -30% 0 auto -10%;
  width: 70%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(63, 157, 255, 0.18), transparent 72%);
  filter: blur(20px);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
  opacity: .55;
  pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 1; }

.hero h1 { max-width: 17ch; margin-bottom: 24px; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--accent-soft), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede { font-size: clamp(1.05rem, 1.7vw, 1.3rem); max-width: 62ch; }

.hero-status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: .82rem;
  color: var(--text-dim);
  margin-bottom: 30px;
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, .7);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); }
  70%  { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-sub { margin-top: 20px; font-size: .9rem; color: var(--text-muted); }

/* Marquee-free logo/keyword strip */
.hero-strip {
  margin-top: 64px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}
.strip-chip {
  font-size: .78rem;
  font-family: var(--mono);
  color: var(--text-muted);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 11px;
  background: rgba(255, 255, 255, 0.02);
}

/* --------------------------------------------------------------------------
   Stat band
   -------------------------------------------------------------------------- */
.stat-band {
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.stat {
  background: var(--bg-elev);
  padding: 38px 28px;
}
.stat .num {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 680;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 6px;
}
.stat .num .unit { color: var(--accent); }
.stat .lbl { font-size: .87rem; color: var(--text-muted); line-height: 1.5; }

/* --------------------------------------------------------------------------
   Capability cards
   -------------------------------------------------------------------------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
  gap: 20px;
}
.cap {
  position: relative;
  padding: 30px 28px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .28s ease, transform .28s ease, box-shadow .28s ease;
  overflow: hidden;
}
.cap::after {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity .3s ease;
}
@media (hover: hover) {
  .cap:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
  .cap:hover::after { opacity: .8; }
}

.cap-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: rgba(63, 157, 255, 0.12);
  border: 1px solid rgba(63, 157, 255, 0.25);
  color: var(--accent-soft);
  font-size: 1.15rem;
  margin-bottom: 20px;
}
.cap h3 { font-size: 1.12rem; margin-bottom: 10px; color: #fff; }
.cap p { color: var(--text-dim); font-size: .94rem; margin-bottom: 16px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--text-muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 6px;
  padding: 4px 9px;
  white-space: nowrap;
}
.chip.is-accent { color: var(--accent-soft); border-color: rgba(63, 157, 255, .3); background: rgba(63, 157, 255, .08); }

/* --------------------------------------------------------------------------
   Work showcases — live embedded previews
   -------------------------------------------------------------------------- */
.showcase {
  padding: 72px 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.showcase-head { margin-bottom: 34px; }
.showcase-head .eyebrow { margin-bottom: 12px; }
.showcase-head h3 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  letter-spacing: -0.032em;
  color: #fff;
  margin-bottom: 8px;
}
.showcase-head p {
  color: var(--text-dim);
  max-width: 76ch;
  font-size: 1.03rem;
  margin: 14px 0 0;
}
.showcase-detail { margin-top: 32px; }
.showcase-domain {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--accent-soft);
  margin-bottom: 14px;
  display: inline-block;
}
.proof-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}
.proof-list li {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  position: relative;
  padding-left: 24px;
  margin-bottom: 9px;
  color: var(--text-dim);
  font-size: .93rem;
}
.proof-list li::before {
  content: '';
  position: absolute; left: 4px; top: .62em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* Browser chrome */
.browser-frame {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform .35s ease, box-shadow .35s ease;
}
@media (hover: hover) {
  .showcase:hover .browser-frame { transform: translateY(-4px); }
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.dots { display: flex; gap: 7px; flex-shrink: 0; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #313d4c; display: block; }
.dots i:first-child { background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.browser-url {
  flex: 1;
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, .35);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 12px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.browser-open {
  flex-shrink: 0;
  font-size: .72rem;
  font-family: var(--mono);
  color: var(--text-muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
  transition: color .2s ease, border-color .2s ease;
}
.browser-open:hover { color: #fff; border-color: var(--accent); }

/* The viewport holds a desktop-width iframe scaled down to fit. */
.browser-viewport {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  background: #0a0d12;
}
/* Only the live panes get a placeholder ratio; the script then sets an exact
   height. The static fallback pane sizes to its own content instead, so it is
   never clipped on a narrow screen. */
.browser-viewport[data-src] { aspect-ratio: 16 / 10; }
/* Absolutely positioned: a 1440px-wide iframe must never contribute to layout,
   or it forces its grid track wider than the screen. Inert to pointer events so
   a touch drag always scrolls the page instead of being swallowed by the frame. */
.browser-viewport iframe {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  border: 0;
  display: block;
  transform-origin: 0 0;
  background: #fff;
  pointer-events: none;
}
/* Because the iframe is inert, this transparent layer carries the tap target. */
.frame-overlay-link { position: absolute; inset: 0; z-index: 2; display: block; }
.frame-placeholder {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 10px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: .85rem;
  text-align: center;
  padding: 24px;
  transition: opacity .5s ease;
}
.frame-placeholder.is-hidden { opacity: 0; pointer-events: none; }
.frame-load-btn {
  font: inherit; font-size: .88rem; font-weight: 560; color: #fff;
  background: rgba(63, 157, 255, 0.16);
  border: 1px solid rgba(63, 157, 255, 0.4);
  border-radius: 10px; padding: 12px 22px; cursor: pointer;
}
.frame-load-btn:active { background: rgba(63, 157, 255, 0.28); }
.frame-hint { font-size: .76rem; color: var(--text-muted); }
.spinner {
  width: 26px; height: 26px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   FAAST
   -------------------------------------------------------------------------- */
.faast {
  position: relative;
  background: linear-gradient(180deg, #070a0f 0%, #0a0f18 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.faast::before {
  content: '';
  position: absolute; top: -40%; right: -10%; width: 60%; height: 140%;
  background: radial-gradient(closest-side, rgba(34, 211, 238, .13), transparent 70%);
  pointer-events: none;
}
.faast > .wrap { position: relative; z-index: 1; }
.faast-head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 60px; align-items: end; margin-bottom: 52px; }
.faast-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em;
  color: var(--warn);
  border: 1px solid rgba(251, 191, 36, .3);
  background: rgba(251, 191, 36, .08);
  border-radius: 999px; padding: 5px 14px;
  margin-bottom: 18px;
}
.faast-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }

.faast-expand { font-size: clamp(1.05rem, 1.9vw, 1.45rem); color: var(--text); font-weight: 500; letter-spacing: -.02em; }
.faast-expand b { color: var(--accent-2); font-weight: 680; }

.faast-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.faast-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  background: rgba(255, 255, 255, 0.018);
}
.faast-card h4 { font-size: 1rem; color: #fff; margin-bottom: 10px; }
.faast-card p { font-size: .91rem; color: var(--text-dim); margin: 0; }

.venue-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 34px 0 0; }
.venue {
  border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px;
  background: rgba(255, 255, 255, 0.02);
}
.venue .k { font-family: var(--mono); font-size: .7rem; color: var(--accent-2); letter-spacing: .1em; text-transform: uppercase; }
.venue .v { font-size: .92rem; color: var(--text-dim); margin-top: 6px; }

/* --------------------------------------------------------------------------
   Providers / stack
   -------------------------------------------------------------------------- */
.provider-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 14px; }
.provider {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  background: var(--surface);
  text-align: center;
  transition: border-color .25s ease, transform .25s ease;
}
@media (hover: hover) {
  .provider:hover { border-color: var(--line-strong); transform: translateY(-2px); }
}
.provider .name { font-weight: 600; color: #fff; font-size: .98rem; }
.provider .role { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }

.stack-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 34px; }
.stack-col h4 {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.stack-col ul { list-style: none; margin: 0; padding: 0; }
.stack-col li { font-size: .91rem; color: var(--text-dim); padding: 6px 0; }
.stack-col li b { color: var(--text); font-weight: 550; }

/* --------------------------------------------------------------------------
   Process
   -------------------------------------------------------------------------- */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step { background: var(--bg-elev); padding: 30px 26px; }
.step .n { font-family: var(--mono); font-size: .76rem; color: var(--accent); margin-bottom: 14px; }
.step h4 { font-size: 1.02rem; color: #fff; margin-bottom: 8px; }
.step p { font-size: .89rem; color: var(--text-muted); margin: 0; }

/* --------------------------------------------------------------------------
   Founders
   -------------------------------------------------------------------------- */
.founder-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.founder {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  background: var(--surface);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.founder .avatar {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(63,157,255,.22), rgba(34,211,238,.14));
  border: 1px solid rgba(63, 157, 255, .28);
  color: #fff; font-weight: 640; font-size: 1.05rem;
}
.founder h4 { margin-bottom: 3px; color: #fff; font-size: 1.05rem; }
.founder .role { font-size: .82rem; color: var(--accent); margin-bottom: 8px; }
.founder p { font-size: .89rem; color: var(--text-muted); margin: 0; }

/* --------------------------------------------------------------------------
   Blog cards
   -------------------------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr)); gap: 22px; }
.post-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
@media (hover: hover) {
  .post-card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
}
.post-card > a { display: block; color: inherit; }
.card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 24px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: .78rem; color: var(--text-muted); margin-bottom: 12px; }
.post-card h3 { font-size: 1.1rem; color: #fff; margin-bottom: 9px; }
.post-card p { font-size: .9rem; color: var(--text-dim); margin-bottom: 14px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-size: .72rem; font-family: var(--mono);
  color: var(--accent-soft);
  border: 1px solid rgba(63, 157, 255, .22);
  background: rgba(63, 157, 255, .07);
  border-radius: 5px; padding: 3px 8px;
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 64px 32px;
  text-align: center;
  background: var(--surface);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 100% at 50% 100%, rgba(63, 157, 255, .13), transparent 70%),
    var(--bg);
}
.contact-inner { text-align: center; max-width: 760px; margin: 0 auto; }
.contact-inner .lede { margin: 0 auto 34px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.contact-lines { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; margin-top: 40px; font-size: .93rem; }
.contact-lines a { color: var(--text); font-family: var(--mono); font-size: .9rem; }
.contact-lines a:hover { color: var(--accent-soft); }

.cta-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg-elev) 100%);
  text-align: center;
}
.cta-panel h3 { font-size: 1.4rem; color: #fff; }
.cta-panel p { color: var(--text-dim); max-width: 52ch; margin: 0 auto 24px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-elev); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.footer-grid p, .footer-grid a { overflow-wrap: break-word; }
.footer-grid h4 { font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; color: var(--text); margin-bottom: 14px; }
.footer-grid p { font-size: .88rem; line-height: 1.75; margin: 0; }
.footer-grid img { margin-bottom: 16px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: .83rem;
}

/* --------------------------------------------------------------------------
   Blog page / post typography
   -------------------------------------------------------------------------- */
.page-hero { padding: 78px 0 44px; border-bottom: 1px solid var(--line); background: var(--bg-elev); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }

.post-header { padding: 60px 24px 26px; max-width: 800px; }
.post-header h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 18px; }
.back-link { display: inline-block; font-size: .85rem; color: var(--text-muted); margin-bottom: 26px; }
.back-link:hover { color: var(--accent-soft); }
.post-meta { display: flex; flex-wrap: wrap; gap: 9px; font-size: .86rem; color: var(--text-muted); margin-bottom: 16px; }

.post-cover { max-width: 900px; margin-bottom: 40px; }
.post-cover img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }

.post-body { max-width: 720px; font-size: 1.05rem; line-height: 1.8; color: var(--text-dim); padding-bottom: 40px; }
.post-body h2 { font-size: 1.6rem; color: #fff; margin: 2em 0 .6em; }
.post-body h3 { font-size: 1.25rem; color: #fff; margin: 1.8em 0 .5em; }
.post-body h4 { font-size: 1.05rem; color: #fff; margin: 1.6em 0 .5em; }
.post-body a { text-decoration: underline; text-underline-offset: 3px; }
.post-body strong { color: var(--text); }
.post-body ul, .post-body ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.post-body li { margin-bottom: .5em; }
.post-body blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent);
  color: var(--text);
  font-size: 1.08rem;
}
.post-body blockquote p { margin: 0; }
.post-body pre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 18px 20px;
  overflow-x: auto;
  font-size: .87rem;
  line-height: 1.6;
  margin: 1.5em 0;
}
.post-body code { font-family: var(--mono); font-size: .87em; color: var(--accent-soft); }
.post-body pre code { color: var(--text-dim); }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.post-figure { margin: 2em 0; }
.post-figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.post-figure figcaption { font-size: .84rem; color: var(--text-muted); text-align: center; margin-top: 12px; }
.post-body img { border-radius: 10px; }
.post-cta { max-width: 800px; margin: 20px auto 0; }

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse, .spinner { animation: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .showcase { padding: 52px 0; }
  .faast-head { grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
  .faast-grid, .venue-row { grid-template-columns: minmax(0, 1fr); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .section { padding: 68px 20px; }
  .wrap { padding: 0 20px; }
  .site-nav {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
    padding: 10px 20px 20px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
  .nav-cta { text-align: center; margin-top: 12px; }
  .nav-toggle { display: block; }
  .stat-grid, .process { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .founder { flex-direction: column; gap: 14px; }
  /* backdrop-filter and large blurs are the main source of scroll jank on phones */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(6, 8, 11, 0.97); }
  .site-header.is-stuck { background: rgba(6, 8, 11, 0.98); }
  .hero::before { filter: none; opacity: .75; }
  .hero::after { background-size: 42px 42px; }
  .showcase { padding: 36px 0; }
  .cta-panel { padding: 28px 22px; }
  .post-header { padding: 40px 20px 20px; }
}
