/* ============================================================
   Ignácio Correia — bio.igcorreia.com
   Cognitive / neural theme · 2026
   ============================================================ */

:root {
  /* Surface */
  --bg-0: #05060a;
  --bg-1: #0a0c14;
  --bg-2: #11141f;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #f3f4f8;
  --text-soft: #b6bac6;
  --text-muted: #7a7f8e;

  /* Accent — cognitive gradient */
  --accent-1: #ff4400;   /* brand orange */
  --accent-2: #ff7a3d;   /* light orange */
  --accent-3: #a1a1aa;   /* gray */
  --accent-glow: rgba(255, 68, 0, 0.3);

  /* Type */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Layout */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

/* Inline SVG icon helper */
.ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.ico svg {
  width: 1em;
  height: 1em;
  display: block;
}
.share-button .ico { font-size: 14px; }
.social .ico { font-size: 17px; }
.hero-cta .icon .ico { font-size: 18px; }
.hero-cta .arrow .ico { font-size: 14px; }
.link-card .icon .ico { font-size: 14px; }
.link-card .arrow .ico { font-size: 12px; }
.name .verified.ico { font-size: 18px; color: var(--accent-2); filter: drop-shadow(0 0 6px var(--accent-2)); }

html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Background lives on html only: body must stay transparent so the fixed
   z-index:-1 layers (ascii canvas, mesh, grain) are not painted over. */
html { background: var(--bg-0); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Animated cognitive mesh background ---------- */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 15% 10%, rgba(255, 68, 0, 0.12) 0%, transparent 60%),
    radial-gradient(50% 50% at 90% 20%, rgba(255, 255, 255, 0.04) 0%, transparent 60%),
    radial-gradient(60% 60% at 80% 90%, rgba(255, 255, 255, 0.04) 0%, transparent 65%),
    radial-gradient(70% 60% at 10% 90%, rgba(34, 51, 68, 0.6) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  filter: saturate(115%);
  animation: meshDrift 22s ease-in-out infinite alternate;
}

.bg-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

@keyframes meshDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-2%, 1%, 0) scale(1.05); }
  100% { transform: translate3d(2%, -1%, 0) scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-mesh { animation: none; }
}

/* ---------- Layout ---------- */
.shell {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.brand-mark .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px var(--accent-2);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Language switch — shows the language you'd switch TO ("PT" on the English
   page and vice versa), styled as a compact sibling of the share pill. */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.lang-toggle:hover {
  color: var(--text);
  background: var(--surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.share-button:hover {
  color: var(--text);
  background: var(--surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

/* ---------- Profile ---------- */
.profile {
  text-align: center;
  margin-bottom: 28px;
}

.avatar-wrap {
  position: relative;
  display: inline-block;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  box-shadow: 0 0 60px var(--accent-glow);
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--bg-2);
}

.name {
  margin: 18px 0 6px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
/* .name .verified styling now handled by .name .verified.ico above */

.tagline {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}

.about {
  color: var(--text-soft);
  font-size: 15px;
  max-width: 520px;
  margin: 0 auto;
}

/* ---------- Socials ---------- */
.socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 32px;
  flex-wrap: wrap;
}
.social {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 16px;
  transition: all 0.2s var(--ease);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.social:hover {
  color: var(--text);
  background: var(--surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* ---------- Hero CTA (Presentation) ---------- */
.hero-cta {
  position: relative;
  display: block;
  padding: 22px 22px 22px 72px;
  margin: 0 0 36px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06) 60%, rgba(255, 255, 255, 0.05)),
    var(--surface);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.hero-cta::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.55;
  pointer-events: none;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 60px -20px var(--accent-glow);
}
.hero-cta .icon {
  position: absolute;
  top: 50%;
  left: 22px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text);
  font-size: 16px;
}
.hero-cta .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 4px;
}
.hero-cta .title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #fff 0%, #e4e4e7 60%, #b9b9c0 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.hero-cta .subtitle {
  font-size: 15.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.hero-cta .cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: var(--accent-1);
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 18px rgba(255, 68, 0, 0.35);
}
.hero-cta .arrow {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  font-size: 14px;
  transition: transform 0.25s var(--ease);
}
.hero-cta:hover .arrow { transform: translateY(-50%) translateX(4px); color: var(--text); }

/* Book-cover variant: text on the left, the deck's first page as a tilted
   portrait cover on the right. */
.hero-cta.has-cover {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-right: 28px;
}
.hero-cta.has-cover .hero-body { flex: 1; min-width: 0; }
.hero-cover {
  /* The deck is a 16:9 slide deck — show the first slide in its native
     landscape format, like a slide thumbnail. */
  display: block;
  width: clamp(150px, 30vw, 220px);
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    -14px 18px 34px -12px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(0, 0, 0, 0.4);
  transform: rotate(2deg);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.hero-cta:hover .hero-cover {
  transform: rotate(0deg) scale(1.03);
  box-shadow:
    -10px 22px 44px -12px rgba(0, 0, 0, 0.75),
    0 0 24px var(--accent-glow);
}
.hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mobile: stack the card — slide thumbnail full-width on top, text below */
@media (max-width: 600px) {
  .hero-cta.has-cover {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px 16px 20px;
  }
  .hero-cta.has-cover .icon { display: none; }
  .hero-cover {
    order: -1;
    width: 100%;
    transform: none;
    border-radius: 12px;
    box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.7);
  }
  .hero-cta:hover .hero-cover { transform: none; }
  /* The download CTA becomes a full-width, thumb-sized button */
  .hero-cta .cta-pill {
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 15px 18px;
    font-size: 15.5px;
  }
}

/* ---------- Email gate modal ---------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.gate[hidden] { display: none; }
.gate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 8, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.gate-dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 30px 26px 26px;
  text-align: center;
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
}
.gate-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  padding: 4px 8px;
  color: var(--text-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.gate-close:hover { color: var(--text); }
.gate-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 6px;
}
.gate-dialog h3 {
  margin: 0 0 8px;
  font-size: 21px;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.gate-sub {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--text-soft);
  text-wrap: balance;
}
.gate-input {
  width: 100%;
  margin: 16px 0 10px;
  padding: 13px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  box-sizing: border-box;
}
.gate-input:focus { border-color: var(--accent-1); }
/* Deck-language picker — the decks ship in English and Italian */
.gate-langs {
  display: flex;
  gap: 8px;
  margin: 16px 0 0;
}
.gate-lang {
  flex: 1;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.gate-lang:hover { color: var(--text); }
.gate-lang.on {
  color: #ffffff;
  background: rgba(255, 68, 0, 0.16);
  border-color: var(--accent-1);
}
/* Honeypot field — off-screen for humans, present for bots */
.gate-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.gate-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  background: var(--accent-1);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255, 68, 0, 0.35);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  box-sizing: border-box;
}
.gate-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(255, 68, 0, 0.45); }
.gate-btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.gate-fineprint {
  margin: 12px 0 0;
  font-size: 11.5px;
  color: var(--text-muted);
}
.gate-error {
  margin: 12px 0 0;
  font-size: 13px;
  color: #ff8a65;
}
.gate-check {
  width: 52px;
  height: 52px;
  margin: 4px auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  border-radius: 50%;
  box-shadow: 0 0 30px var(--accent-glow);
}
#gate-done-view .gate-btn { margin-top: 14px; text-decoration: none; }

/* ---------- Sections ---------- */
.section-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 32px 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-heading::before,
.section-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ---------- Speaking schedule ---------- */
.schedule { margin-bottom: 10px; }
a.sched-next {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, rgba(255, 68, 0, 0.12), rgba(255, 122, 61, 0.03)), var(--surface);
  border: 1px solid rgba(255, 68, 0, 0.4);
  border-radius: var(--radius-md);
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s var(--ease);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
a.sched-next:hover {
  border-color: var(--accent-1);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -16px var(--accent-glow);
}
.sched-next .icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #ffffff;
}
.sched-next .icon svg { width: 20px; height: 20px; }
.sched-next .k {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.sched-next .t { font-size: 16px; font-weight: 600; }
.sched-next .w { font-size: 13.5px; color: var(--text-muted); }
.sched-past {
  list-style: none;
  margin: 0 0 10px;
  padding: 2px 6px;
}
.sched-past li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 7px 14px;
  font-size: 14px;
  color: var(--text-soft);
}
.sched-past .d {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.sched-past b { font-weight: 600; color: var(--text); }

.link-card {
  position: relative;
  display: block;
  padding: 16px 50px 16px 60px;
  margin-bottom: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  transition: all 0.2s var(--ease);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.link-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.6);
}
.link-card .icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-2);
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.link-card .label {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}
.link-card .sublabel {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-top: 2px;
}
.link-card .arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 12px;
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}
.link-card:hover .arrow {
  color: var(--text);
  transform: translateY(-50%) translateX(3px);
}

/* Compact tile grid — quick actions presented 3-up instead of full cards */
.link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}
.link-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.link-tile:hover {
  border-color: var(--border-strong);
  color: var(--accent-2);
}
.link-tile .ico {
  font-size: 16px;
  display: inline-flex;
  flex-shrink: 0;
}
.link-tile .label {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .link-tile {
    flex-direction: column;
    gap: 6px;
    padding: 12px 6px;
  }
  .link-tile .label { font-size: 12px; white-space: normal; text-align: center; }
}

/* Featured / lead-magnet variant */
.link-card--featured {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.05) 60%, rgba(255, 255, 255, 0.06)),
    var(--surface);
  border-color: var(--border-strong);
}
.link-card--featured::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.5;
  pointer-events: none;
}
.link-card--featured .icon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}
.link-card--featured .label .badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
  border-radius: var(--radius-pill);
  vertical-align: 2px;
}
.link-card--featured:hover {
  box-shadow: 0 14px 40px -16px var(--accent-glow);
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 48px;
  /* Clearance for the floating chat bubble (56px + 20px offset): at full
     scroll the footer text sits above it with nothing behind the bubble. */
  padding-bottom: calc(120px + env(safe-area-inset-bottom));
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer a { color: var(--text-soft); transition: color 0.2s var(--ease); }
.footer a:hover { color: var(--accent-2); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease);
  z-index: 50;
  backdrop-filter: blur(12px);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  animation: reveal 0.6s var(--ease) forwards;
}
.reveal[data-delay="1"] { animation-delay: 0.05s; }
.reveal[data-delay="2"] { animation-delay: 0.10s; }
.reveal[data-delay="3"] { animation-delay: 0.15s; }
.reveal[data-delay="4"] { animation-delay: 0.20s; }
.reveal[data-delay="5"] { animation-delay: 0.25s; }
@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; animation: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 480px) {
  .shell { padding: 24px 16px 64px; }
  .name { font-size: 22px; }
  .hero-cta { padding: 20px 18px 20px 64px; }
  .hero-cta .icon { left: 16px; }
  .link-card { padding: 16px 44px 16px 56px; }
  /* CTA titles read larger on phones */
  .hero-cta .title { font-size: 22px; }
  .link-card .label { font-size: 17px; font-weight: 600; }
  .link-tile .label { font-size: 13px; }
}
