/* ==========================================================================
   Pario LLC — pario.io
   Design tokens derived from the Pario mark: teal → cyan → blue on deep navy.
   ========================================================================== */

:root {
  /* Surfaces */
  --bg:            #070f1e;
  --bg-alt:        #0a1628;
  --surface:       #0f1c33;
  --surface-raised:#142442;
  --border:        rgba(148, 180, 230, 0.12);
  --border-strong: rgba(148, 180, 230, 0.24);

  /* Brand — sampled from the logo */
  --teal:          #5eead4;
  --cyan:          #38bdf8;
  --blue:          #3b82f6;
  --blue-deep:     #2563eb;
  --accent:        var(--cyan);
  --accent-ink:    #04121f;

  /* Text */
  --text:          #e8eefb;
  --text-muted:    #97a9c4;
  --text-dim:      #6b7f9e;

  /* Type */
  --font-display: 'Sora', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Rhythm */
  --container: 1120px;
  --radius:    14px;
  --radius-lg: 20px;

  --shadow-md: 0 12px 28px -12px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 28px 60px -20px rgba(0, 0, 0, 0.65);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  /* Offset anchor targets so the fixed nav doesn't cover section headings */
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

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

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.022em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--teal); }

ul, ol { margin: 0 0 1rem; padding-left: 1.35rem; }
li { margin-bottom: 0.4rem; }

/* Accessible focus ring — visible for keyboard users, quiet for mouse users */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* overflow:hidden clips the decorative .glow blobs, which are deliberately
   wider than small viewports and would otherwise force horizontal scroll. */
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; overflow: hidden; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: clamp(48px, 6vw, 72px) 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
  color: var(--accent-ink);
}

/* ---------- Decorative ---------- */
.grid-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 35%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 35%, #000 30%, transparent 78%);
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.gradient-text {
  background: linear-gradient(105deg, var(--teal) 0%, var(--cyan) 45%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--cyan); /* fallback if background-clip is unsupported */
}

/* ---------- Eyebrow / pill ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.09);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: var(--cyan);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
              border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
  text-align: center;
}

.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: linear-gradient(120deg, var(--cyan), var(--blue-deep));
  color: #fff;
  box-shadow: 0 10px 26px -12px rgba(56, 189, 248, 0.75);
}
.btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -12px rgba(56, 189, 248, 0.9);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(148, 180, 230, 0.4);
  transform: translateY(-2px);
}

.btn--sm { padding: 10px 18px; font-size: 0.9rem; }
.btn--block { width: 100%; }

.btn[disabled], .btn[aria-disabled='true'] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(7, 15, 30, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.nav.is-scrolled {
  background: rgba(7, 15, 30, 0.94);
  border-bottom-color: var(--border);
}
.nav.is-menu-open {
  background: rgba(7, 15, 30, 0.985);
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  flex: none;
}
.nav__brand:hover { color: #fff; }
.nav__brand img { width: 34px; height: 34px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__link {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.18s var(--ease);
  white-space: nowrap;
}
.nav__link:hover { color: #fff; }

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  padding: 8px;
  cursor: pointer;
  line-height: 0;
}
.nav__toggle:hover { color: #fff; border-color: var(--border-strong); }
.nav__toggle svg { width: 22px; height: 22px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded='true'] .icon-open  { display: none; }
.nav__toggle[aria-expanded='true'] .icon-close { display: block; }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 12px 0 18px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.nav__mobile.is-open { display: flex; }
.nav__mobile .nav__link { padding: 10px 2px; font-size: 1rem; }
.nav__mobile .btn { margin-top: 8px; }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(140px, 20vh, 190px) 0 clamp(80px, 12vw, 130px);
  overflow: hidden;
}

.hero__glow-a {
  top: -140px; left: -120px;
  width: 560px; height: 560px;
  background: rgba(56, 189, 248, 0.16);
}
.hero__glow-b {
  bottom: -200px; right: -140px;
  width: 620px; height: 620px;
  background: rgba(37, 99, 235, 0.16);
}

.hero__inner { position: relative; z-index: 1; max-width: 860px; }

.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.15rem);
  margin-bottom: 22px;
}

.hero__lede {
  font-size: clamp(1.075rem, 2.1vw, 1.3rem);
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 34px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 56px);
  padding-top: 34px;
  border-top: 1px solid var(--border);
}
.hero__stat-value {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.hero__stat-label {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* ---------- Section headings ---------- */
.section__head {
  max-width: 700px;
  margin: 0 auto clamp(44px, 6vw, 68px);
  text-align: center;
}
.section__head h2 { font-size: clamp(1.95rem, 4.2vw, 2.85rem); }
.section__head p {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  margin: 0;
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.4vw, 36px);
  overflow: hidden;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease),
              box-shadow 0.28s var(--ease);
}
.card::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.14), transparent 68%);
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
  opacity: 0.8;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.card:hover::after { transform: scale(1.35); opacity: 1; }
.card > * { position: relative; z-index: 1; }

.card__icon {
  width: 50px; height: 50px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--cyan);
}
.card__icon svg { width: 25px; height: 25px; }
.card__icon--blue {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.24);
  color: #60a5fa;
}
.card__icon--teal {
  background: rgba(94, 234, 212, 0.12);
  border-color: rgba(94, 234, 212, 0.22);
  color: var(--teal);
}

.card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 20px; }
.tag {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 6px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.status__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex: none;
}
.status__dot--amber { background: #fbbf24; box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.16); }
.status__dot--teal  { background: var(--teal); box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.16); }

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--cyan);
}
.card__link svg { width: 15px; height: 15px; transition: transform 0.2s var(--ease); }
.card__link:hover svg { transform: translate(2px, -2px); }

/* ---------- Capability tiles ---------- */
.tile { text-align: center; padding: 8px; }
.tile__icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.18);
  color: var(--cyan);
}
.tile__icon svg { width: 23px; height: 23px; }
.tile h4 { font-size: 1.05rem; margin-bottom: 6px; }
.tile p { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Team ---------- */
.team { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); max-width: 860px; margin-inline: auto; }

.person { text-align: center; }
.person__photo {
  width: 96px; height: 96px;
  border-radius: 50%;
  margin: 0 auto 18px;
  overflow: hidden;
  padding: 3px;
  background: linear-gradient(135deg, var(--teal), var(--cyan), var(--blue));
}
.person__photo img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface);
}
.person h3 { font-size: 1.2rem; margin-bottom: 3px; }
.person__role {
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.person p { font-size: 0.9rem; color: var(--text-muted); }

/* ---------- Tech strip ---------- */
.tech {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid var(--border);
}
.tech__label {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.tech__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tech__list li {
  margin: 0;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.tech__list li:hover { color: var(--text); border-color: var(--border-strong); }

/* ---------- Contact / form ---------- */
.contact__grid {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 940px) {
  .contact__grid { grid-template-columns: 0.85fr 1.15fr; }
}

.contact__aside h2 { font-size: clamp(1.95rem, 4vw, 2.6rem); }
.contact__aside p { color: var(--text-muted); }

.contact__methods { list-style: none; padding: 0; margin: 26px 0 0; }
.contact__methods li { margin-bottom: 14px; }
.contact__method {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 500;
}
.contact__method:hover { color: var(--cyan); }
.contact__method svg { width: 18px; height: 18px; color: var(--cyan); flex: none; }

.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 36px);
}

.form__row { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}
.field .req { color: var(--cyan); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 11px;
  background: rgba(7, 15, 30, 0.7);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }

.field input::placeholder,
.field textarea::placeholder { color: var(--text-dim); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

.field input[aria-invalid='true'],
.field textarea[aria-invalid='true'] {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.14);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2397a9c4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 17px;
  padding-right: 40px;
}
.field select option { background: var(--surface); color: var(--text); }

.field__error {
  display: none;
  color: #fca5a5;
  font-size: 0.8125rem;
  margin-top: 6px;
}
.field__error.is-visible { display: block; }

/* Consent block — the opt-in disclosure carriers look for */
.consent {
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 20px;
}

.consent__check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.consent__check input[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  flex: none;
  accent-color: var(--cyan);
  cursor: pointer;
}
.consent__check span {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text);
}

.consent__fine {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 12px 0 0;
  padding-left: 30px;
}
.consent__fine a { color: var(--text-muted); text-decoration: underline; }
.consent__fine a:hover { color: var(--cyan); }

.form__note {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 14px;
  text-align: center;
}

.form__status {
  display: none;
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 11px;
  font-size: 0.9rem;
  line-height: 1.55;
}
.form__status.is-visible { display: block; }
.form__status--ok {
  background: rgba(94, 234, 212, 0.1);
  border: 1px solid rgba(94, 234, 212, 0.3);
  color: #a7f3e4;
}
.form__status--err {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #fca5a5;
}

/* Honeypot — hidden from humans, catches naive bots */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: clamp(44px, 6vw, 64px) 0 32px;
  background: var(--bg-alt);
}

.footer__top {
  display: grid;
  gap: 34px;
  grid-template-columns: 1fr;
  margin-bottom: 36px;
}
@media (min-width: 760px) {
  .footer__top { grid-template-columns: 1.6fr 1fr 1fr; }
}

.footer__brand-row {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.footer__brand-row img { width: 30px; height: 30px; }
.footer__blurb {
  color: var(--text-dim);
  font-size: 0.9rem;
  max-width: 340px;
}

.footer__col h5 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 14px;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: 9px; }
.footer__col a {
  color: var(--text-dim);
  font-size: 0.9rem;
  transition: color 0.18s var(--ease);
}
.footer__col a:hover { color: var(--text); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.85rem;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__legal a { color: var(--text-dim); }
.footer__legal a:hover { color: var(--text); }

/* ---------- Legal / prose pages ---------- */
.page-header {
  padding: clamp(120px, 16vh, 160px) 0 clamp(36px, 5vw, 52px);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); margin-bottom: 10px; }
.page-header__meta { color: var(--text-dim); font-size: 0.9rem; margin: 0; }

.prose {
  max-width: 760px;
  margin-inline: auto;
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.78;
}
.prose h2 {
  font-size: 1.32rem;
  color: var(--text);
  margin: 2.4em 0 0.7em;
  padding-top: 1.1em;
  border-top: 1px solid var(--border);
}
.prose h2:first-of-type { margin-top: 0.6em; border-top: none; padding-top: 0; }
.prose h3 {
  font-size: 1.06rem;
  color: var(--text);
  margin: 1.8em 0 0.5em;
}
.prose a { text-decoration: underline; }
.prose strong { color: var(--text); font-weight: 600; }
.prose li { margin-bottom: 0.55rem; }

.prose .callout {
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-left: 3px solid var(--cyan);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 1.6em 0;
  color: var(--text);
  font-size: 0.93rem;
}
.prose .callout p:last-child { margin-bottom: 0; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 0.9rem;
}
.prose th, .prose td {
  text-align: left;
  padding: 11px 14px;
  border: 1px solid var(--border);
  vertical-align: top;
}
.prose th { background: rgba(255, 255, 255, 0.035); color: var(--text); font-weight: 600; }

.table-wrap { overflow-x: auto; }

/* ---------- 404 ---------- */
.notfound {
  min-height: 78vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.notfound__code {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 16vw, 8.5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

/* ---------- Reveal on scroll ----------
   Applied by JS only. Without JS (or without IntersectionObserver) content
   stays visible — never hide content behind an animation that may not run. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  will-change: opacity, transform;
}
.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js-reveal .reveal { opacity: 1; transform: none; }
  .card:hover, .btn:hover { transform: none; }
}

@media print {
  /* Never let a scroll animation print as a blank section */
  .js-reveal .reveal { opacity: 1 !important; transform: none !important; }
  .nav, .footer, .glow, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .prose, .prose h2, .prose h3, .prose strong { color: #000; }
  a { color: #000; }
}
