/* Self-hosted brand fonts (Fontshare licence). Removes the render-blocking
   external stylesheet and two extra DNS lookups; same families as before. */
@font-face { font-family: "Clash Display"; src: url("/media/fonts/ClashDisplay-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Clash Display"; src: url("/media/fonts/ClashDisplay-Semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Clash Display"; src: url("/media/fonts/ClashDisplay-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/media/fonts/Satoshi-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/media/fonts/Satoshi-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/media/fonts/Satoshi-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* Magno · askmagno.com · Variant C FINAL: "One house" brand bridge with Magno Sites.
   Cream #F6F4EF + vermilion #FF4D2E + Clash Display, with a full-bleed ink
   guarantee statement and duotone photography. Mobile-first. */

:root {
  --bg: #F6F4EF;
  --ink: #16171B;
  --ink-deep: #101216;
  --muted: #55575F;          /* AA on cream */
  --muted-soft: #6C6E76;
  --line: rgba(20, 21, 26, .12);
  --card: #FFFFFF;
  --accent: #FF4D2E;         /* vermilion, display accents only */
  --accent-strong: #C93511;  /* AA for small text + button fills */
  --radius: 16px;
  --font-display: "Clash Display", "Avenir Next", system-ui, sans-serif;
  --font-body: "Satoshi", system-ui, -apple-system, sans-serif;
  --wrap: 1200px;
  --pad: clamp(20px, 4vw, 40px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -.02em;
  font-size: clamp(40px, 5vw, 72px);
}
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -.02em;
}
.eyebrow {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); flex: none; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 54ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, background .2s ease;
}
.btn-primary {
  background: var(--accent-strong);
  color: #fff;
  box-shadow: 0 14px 34px -14px rgba(201, 53, 17, .55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(201, 53, 17, .6); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-lg { padding: 18px 34px; font-size: 17px; }
.btn .arr { transition: transform .25s ease; }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  padding: 18px 0;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 12px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -.01em;
}
.logo span { color: var(--accent); }
.nav-links { display: none; align-items: center; gap: 28px; }
.nav-links a { font-weight: 500; font-size: 15px; color: var(--ink); position: relative; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 2px; width: 0;
  background: var(--accent); transition: width .25s ease;
}
.nav-links a:not(.btn):hover::after { width: 100%; }
.nav-links .btn { padding: 11px 22px; font-size: 14px; }

.burger {
  background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { width: 22px; height: 2px; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 980px) { .nav-links { display: flex; } .burger { display: none; } }

.mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; z-index: 55;
  background: var(--bg);
  padding: 96px var(--pad) 36px;
  display: grid; gap: 6px;
  transform: translateY(-102%);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 20px 50px -20px rgba(16,18,22,.25);
  border-bottom: 1px solid var(--line);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  font-family: var(--font-display); font-weight: 600; font-size: 26px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: 0; color: var(--accent-strong); }

/* ---------- reveal ---------- */
.js-anim .rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js-anim .rv.in { opacity: 1; transform: none; }
.js-anim .rv.d1 { transition-delay: .08s; }
.js-anim .rv.d2 { transition-delay: .16s; }
.js-anim .rv.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .js-anim .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 130px 0 70px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(55% 45% at 80% 12%, rgba(255, 77, 46, .10), transparent 70%),
    radial-gradient(45% 45% at 6% 92%, rgba(255, 77, 46, .07), transparent 70%);
}
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 56px; } }

.hero .display em { font-style: normal; color: var(--accent-strong); position: relative; display: inline-block; }
/* refined: a single fine rule that sweeps in on load (the thick marker read as clumsy) */
.hero .display em .u {
  position: absolute; left: .02em; right: .04em; bottom: -.045em; height: .042em;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  border-radius: 99px;
}
.js-anim .hero .display em .u { transition: transform .9s cubic-bezier(.2,.7,.2,1) .55s; }
.hero .display em .u.in, html:not(.js-anim) .hero .display em .u { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .hero .display em .u { transform: scaleX(1) !important; transition: none !important; } }

.hero .lead { margin-top: 24px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.hero-note b { color: var(--ink); font-weight: 700; }

/* --- signature: the AI answer device --- */
.chat-device {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 48px 100px -42px rgba(16, 18, 22, .45);
  overflow: hidden;
  max-width: 520px;
  width: 100%;
  justify-self: center;
}
@media (min-width: 1000px) { .chat-device { justify-self: end; } }
.chat-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(#FBFAF7, #F3F1EB);
}
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.js-anim .chat-dot { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,77,46,.35); } 50% { box-shadow: 0 0 0 6px rgba(255,77,46,0); } }
@media (prefers-reduced-motion: reduce) { .js-anim .chat-dot { animation: none; } }
.chat-bar b { font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.chat-tabs { display: inline-flex; gap: 5px; margin-left: auto; margin-right: 4px; }
.chat-tabs i {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(20, 21, 26, .16);
  transition: background .3s ease, transform .3s ease;
}
.chat-tabs i.on { background: var(--accent-strong); transform: scale(1.2); }
.chat-ill {
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 3px 9px; border-radius: 999px;
}
.chat-body { padding: 22px 22px 24px; display: grid; gap: 16px; }

.chat-q { display: flex; justify-content: flex-end; }
.chat-q-bubble {
  background: var(--ink-deep); color: #fff;
  font-size: 15px; font-weight: 500;
  padding: 11px 16px; border-radius: 18px 18px 4px 18px;
  max-width: 85%;
  min-height: 45px;
}
.chat-caret { display: inline-block; width: 2px; height: 1em; background: #fff; vertical-align: -2px; margin-left: 1px; opacity: 0; }
.chat.typing .chat-caret { opacity: 1; animation: blink .8s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.chat-think { display: none; gap: 5px; padding: 4px 2px; }
.chat.thinking .chat-think { display: flex; }
.chat-think i { width: 7px; height: 7px; border-radius: 50%; background: #C9C5BB; animation: bob 1s ease-in-out infinite; }
.chat-think i:nth-child(2) { animation-delay: .15s; }
.chat-think i:nth-child(3) { animation-delay: .3s; }
@keyframes bob { 0%,100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-4px); opacity: 1; } }

.chat-a { font-size: 15.5px; line-height: 1.65; color: #33353C; min-height: 5em; }
.chat-a .w { opacity: 0; filter: blur(6px); transition: opacity .35s ease, filter .5s ease; }
.chat-a .w.on { opacity: 1; filter: blur(0); }
.chat.done .chat-a .w, html:not(.js-anim) .chat-a .w { opacity: 1; filter: none; }
@media (prefers-reduced-motion: reduce) { .chat-a .w { opacity: 1 !important; filter: none !important; transition: none !important; } }
.chat-a mark {
  background: linear-gradient(transparent 58%, rgba(255, 77, 46, .28) 58%);
  color: var(--ink); font-weight: 700;
}

.chat-cite {
  display: flex; align-items: center; gap: 13px;
  border: 1px solid var(--line);
  background: #FBFAF7;
  border-radius: 14px;
  padding: 13px 15px;
  opacity: 0; transform: translateY(10px) scale(.98);
}
.js-anim .chat.done .chat-cite { opacity: 1; transform: none; transition: opacity .5s ease .15s, transform .5s cubic-bezier(.2,.7,.2,1) .15s; }
html:not(.js-anim) .chat-cite { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .chat-cite { opacity: 1 !important; transform: none !important; } }
.chat-cite-logo {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: var(--ink-deep); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.chat-cite-body { display: grid; line-height: 1.35; min-width: 0; }
.chat-cite-body b { font-size: 14.5px; }
.chat-cite-body span { font-size: 12.5px; color: var(--muted); }
.chat-cited {
  position: relative;
  margin-left: auto; flex: none;
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  color: #fff; background: var(--accent-strong);
  padding: 5px 11px; border-radius: 999px;
}
.js-anim .chat.done .chat-cited::after {
  content: ""; position: absolute; inset: -3px; border-radius: 999px;
  border: 1px solid rgba(201, 53, 17, .7);
  animation: cited-pulse 1.3s cubic-bezier(.2,.7,.2,1) .35s 1 both;
  pointer-events: none;
}
@keyframes cited-pulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6); } }
@media (prefers-reduced-motion: reduce) { .js-anim .chat.done .chat-cited::after { animation: none; opacity: 0; } }
.chat-src { font-size: 11.5px; color: var(--muted-soft); letter-spacing: .02em; }

/* ---------- engines band (dark strip) ---------- */
.band {
  background: var(--ink-deep);
  color: #fff;
  padding: 26px 0;
  overflow: hidden;
  position: relative;
}
.band-label {
  text-align: center;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, .68);
  margin-bottom: 16px;
  padding: 0 var(--pad);
}
.band-mask { position: relative; overflow: hidden; }
.band-mask::before, .band-mask::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.band-mask::before { left: 0; background: linear-gradient(90deg, var(--ink-deep), transparent); }
.band-mask::after { right: 0; background: linear-gradient(-90deg, var(--ink-deep), transparent); }
.band-track { display: flex; width: max-content; gap: 0; }
.js-anim .band-track { animation: slide 30s linear infinite; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .js-anim .band-track { animation: none; }
  .band-mask { overflow-x: auto; }
}
.band-set { display: flex; align-items: center; flex: none; }
.band-set span {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(20px, 2.6vw, 30px);
  color: rgba(255, 255, 255, .92);
  padding: 0 30px;
  white-space: nowrap;
  display: flex; align-items: center; gap: 30px;
}
.band-set span::after { content: "✦"; color: var(--accent); font-size: .55em; }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .h2 em { font-style: normal; color: var(--accent-strong); }

/* what we do: numbered editorial rows */
.moves { display: grid; }
.move {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: clamp(26px, 4vw, 42px) 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.move:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .move { grid-template-columns: 130px 1fr 1.15fr; gap: 34px; } }
.move-num {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--accent-strong);
}
.move h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(24px, 3.2vw, 36px);
  letter-spacing: -.01em;
  line-height: 1.1;
}
.move-tag {
  display: inline-block;
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-strong);
  border: 1px solid rgba(201, 53, 17, .35);
  border-radius: 999px;
  padding: 4px 10px;
  vertical-align: middle;
  margin-left: 10px;
  transform: translateY(-3px);
}
.move p { color: var(--muted); max-width: 52ch; }
@media (max-width: 859px) { .move p { grid-column: 2; margin-top: 6px; } }
.move p a { color: var(--accent-strong); font-weight: 600; border-bottom: 1px solid rgba(201,53,17,.4); }
.move p a:hover { border-bottom-color: var(--accent-strong); }

/* ---------- guarantee: full-bleed ink statement (the memorable moment) ---------- */
.guarantee {
  position: relative;
  color: #fff;
  padding: clamp(100px, 15vw, 200px) 0;
  overflow: clip;
  background: #111216;
}
.guarantee::before {
  content: ""; position: absolute; inset: 0; opacity: .45; pointer-events: none;
  background-image: radial-gradient(rgba(246, 244, 239, .07) 1px, transparent 1px);
  background-size: 3px 3px;
}
.guarantee-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 65% at 84% 4%, rgba(255, 77, 46, .16), transparent 70%),
    radial-gradient(45% 60% at 4% 100%, rgba(255, 77, 46, .1), transparent 70%);
}
.guarantee .wrap { position: relative; z-index: 1; }
.guarantee .eyebrow { color: var(--accent); }
.guarantee .eyebrow::before { background: var(--accent); }
.guarantee-h {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(46px, 8.4vw, 116px);
  line-height: .98; letter-spacing: -.025em;
  max-width: 19ch;
}
.guarantee-h em { font-style: normal; color: var(--accent); }
.guarantee-terms {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(24px, 3vw, 34px);
  border-top: 1px solid rgba(255, 255, 255, .18);
  display: flex; flex-wrap: wrap; gap: 14px 0;
}
.guarantee-terms p {
  flex: 1 1 220px; padding-right: 24px;
  color: rgba(255, 255, 255, .85);
  font-size: clamp(15px, 1.8vw, 18px);
  display: flex; align-items: baseline; gap: 12px;
}
.guarantee-terms p::before {
  content: "→"; color: var(--accent); font-weight: 700; flex: none;
}

/* ---------- who we help ---------- */
.who-grid { display: grid; gap: 20px; }
@media (min-width: 800px) { .who-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
/* duotone plates: grayscale photo, luminosity-blended over a deep vermilion plate,
   so the dark imagery sits inside the house palette instead of fighting the cream */
.who-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #6E2817;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: flex-end;
}
.who-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(1.16);
  mix-blend-mode: luminosity; opacity: .92;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.who-card:hover img { transform: scale(1.045); }
.who-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(43, 13, 6, 0) 40%, rgba(43, 13, 6, .85));
}
.who-body { position: relative; z-index: 1; padding: 24px; color: #fff; }
.who-body h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -.01em; }
.who-body p { font-size: 14px; color: rgba(255, 255, 255, .8); margin-top: 6px; max-width: 30ch; }
.who-note { font-size: 12.5px; color: var(--muted-soft); margin-top: 16px; }

/* ---------- how it works ---------- */
.steps-wrap { background: var(--card); border-radius: calc(var(--radius) + 8px); border: 1px solid var(--line); padding: clamp(28px, 4.5vw, 60px); }
.steps { display: grid; gap: 30px; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.step { border-top: 2px solid var(--accent); padding-top: 20px; position: relative; }
.step-num { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--accent-strong); }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.6vw, 30px); margin: 8px 0 10px; }
.step p { color: var(--muted); font-size: 15.5px; max-width: 40ch; }
.step .free-chip, .step .credit-chip {
  display: inline-block; margin-top: 14px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.step .free-chip { color: var(--accent-strong); border: 1px solid rgba(201, 53, 17, .35); }
.step-score { display: inline-flex; align-items: center; gap: 14px; margin: 4px 0 14px; }
.score-ring {
  --v: 0; width: 62px; height: 62px; border-radius: 999px; position: relative; flex: none;
  background: conic-gradient(var(--accent-strong) calc(var(--v) * 1%), rgba(16, 18, 22, .09) 0);
  display: grid; place-items: center;
}
.score-ring::after { content: ""; position: absolute; inset: 5px; border-radius: 999px; background: var(--card); }
.score-ring b {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 600; font-size: 19px;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.step-score > span:last-child { font-size: 12px; color: var(--muted); max-width: 14ch; line-height: 1.4; }
.step .credit-chip { color: var(--muted); border: 1px solid var(--line); }
.steps-cta { margin-top: clamp(28px, 4vw, 44px); display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.steps-cta .fine { font-size: 14px; color: var(--muted); max-width: 42ch; }

/* ---------- founder ---------- */
.founder { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .founder { grid-template-columns: 340px 1fr; gap: 64px; } }
.founder-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--ink-deep);
  max-width: 340px;
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-photo .ph-fallback {
  position: absolute; inset: 0;
  display: none; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 64px; color: #fff;
  background: linear-gradient(145deg, #1B1D23, #101216);
}
.founder-photo.broken img { display: none; }
.founder-photo.broken .ph-fallback { display: flex; }
.founder-photo::after {
  content: ""; position: absolute; inset: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(16, 18, 22, .08);
  pointer-events: none;
}
.founder-name { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 4vw, 48px); letter-spacing: -.015em; }
.founder-role { font-weight: 700; color: var(--accent-strong); margin: 4px 0 18px; }
.founder-bio { color: var(--muted); font-size: clamp(16px, 1.9vw, 19px); max-width: 58ch; }
.founder-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 24px;
  font-weight: 700; color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 3px;
}
.founder-link:hover { color: var(--accent-strong); }

/* ---------- final CTA (dark card) ---------- */
.final-sec { padding: 0 0 clamp(72px, 10vw, 140px); }
.final {
  position: relative;
  background: var(--ink-deep);
  color: #fff;
  border-radius: calc(var(--radius) + 10px);
  overflow: hidden;
  text-align: center;
  padding: clamp(64px, 10vw, 130px) var(--pad);
}
.final-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 60% at 50% 0%, rgba(255, 77, 46, .16), transparent 70%),
    radial-gradient(40% 45% at 85% 100%, rgba(255, 77, 46, .1), transparent 70%);
  pointer-events: none;
}
.final > * { position: relative; }
.final .h2 { max-width: 17ch; margin: 0 auto; }
.final .h2 em { font-style: normal; color: var(--accent); }
.final p { color: rgba(255, 255, 255, .78); max-width: 46ch; margin: 18px auto 32px; }
.final .btn-primary { background: var(--accent-strong); }
.final-fine { font-size: 13px !important; color: rgba(255, 255, 255, .55) !important; margin: 18px auto 0 !important; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 80px) 0 36px; }
.foot-grid { display: grid; gap: 36px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; } }
.foot-about { color: var(--muted); font-size: 14.5px; max-width: 34ch; margin-top: 12px; }
.foot-h { font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.foot-grid a { display: block; color: var(--muted); font-size: 14.5px; padding: 4px 0; }
.foot-grid a:hover { color: var(--accent-strong); }
.foot-bottom {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--muted); font-size: 13.5px;
}
.foot-bottom a { color: var(--muted); }
.foot-bottom a:hover { color: var(--accent-strong); }

/* ---------- mobile sticky CTA ---------- */
.mbar { display: none; }
@media (max-width: 820px) {
  .mbar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 48;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .mbar .btn { width: 100%; }
  body { padding-bottom: 78px; }
}


/* Home: guides teaser */
.pg-home-guides { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.pg-home-guides a { display: block; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: clamp(20px, 2.6vw, 28px); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.pg-home-guides a:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -24px rgba(16,18,22,.25); }
.pg-home-guides h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--ink); margin: 0 0 8px; letter-spacing: -.01em; line-height: 1.2; }
.pg-home-guides p { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0 0 12px; }
.pg-home-guides .go { color: var(--accent-strong); font-weight: 700; font-size: 14.5px; }


/* ---------- wide tables: edge fade so you can tell there is more to the right ----------
   Every .pg-*-tablewrap is an overflow-x:auto scroller. Each page re-declares the
   wrapper with `background:#fff` in its own inline <style>, which the browser reads
   after this file, so the `html` prefix buys the extra specificity our gradients need
   to survive that shorthand.

   Four layers: two "covers" painted in the wrapper's own background colour, attached
   `local` so they travel with the content, and two shadows attached `scroll` so they
   stay pinned to the box. At rest the left cover hides the left shadow; the right
   cover only reaches the right shadow once you have scrolled to the end. When the
   table already fits (desktop), both covers sit on both shadows and nothing shows. */
html [class*="-tablewrap"] {
  background-color: var(--card);
  background-image:
    linear-gradient(to right, var(--card) 32%, rgba(255, 255, 255, 0)),
    linear-gradient(to left,  var(--card) 32%, rgba(255, 255, 255, 0)),
    linear-gradient(to right, rgba(20, 21, 26, .13), rgba(20, 21, 26, 0)),
    linear-gradient(to left,  rgba(201, 53, 17, .20), rgba(201, 53, 17, 0));
  background-position: 0 0, 100% 0, 0 0, 100% 0;
  background-repeat: no-repeat;
  background-size: 26px 100%, 26px 100%, 15px 100%, 15px 100%;
  background-attachment: local, local, scroll, scroll;
}
