/* =====================================================================
   IRL — Interactions & Relationships Lab
   Custom Weebly theme. Overrides all base theme styling.
   Layouts: thread (Home, People) · editorial (all other pages)
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink: #0b0d0e;
  --ink-2: #3c4245;
  --ink-3: #6e7679;
  --line: rgba(11, 13, 14, .09);
  --paper: #ffffff;
  --paper-2: #f5f6f4;
  --paper-3: #eceeeb;

  --teal: #69a39f;
  --teal-deep: #2f6f6a;
  --teal-ink: #163a37;
  --teal-wash: #e6f1ef;

  --blue-1: #34a3ff;
  --blue-2: #0a7cff;
  --blue: #0a84ff;
  --gray-bubble: #e9e9eb;
  --gray-bubble-ink: #0b0d0e;
  --stamp: #8a8f93;

  --tos-1: #50336a;
  --tos-2: #de678a;

  --radius-b: 20px;
  --shadow-1: 0 1px 2px rgba(0,0,0,.04), 0 6px 24px rgba(16,24,40,.06);
  --shadow-2: 0 2px 6px rgba(0,0,0,.05), 0 24px 60px rgba(16,24,40,.12);

  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  --spring: cubic-bezier(.2, 1.35, .4, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 64px;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f4f5f5; --ink-2: #c4c9cb; --ink-3: #8e9598; --line: rgba(255,255,255,.1);
    --paper: #000000; --paper-2: #0f1112; --paper-3: #1a1d1e;
    --teal-wash: #10201f; --teal-ink: #cfe7e4;
    --gray-bubble: #26252a; --gray-bubble-ink: #f4f5f5; --stamp: #8e9598;
    --shadow-1: 0 1px 2px rgba(0,0,0,.4), 0 6px 24px rgba(0,0,0,.4);
    --shadow-2: 0 2px 6px rgba(0,0,0,.4), 0 24px 60px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"] {
  --ink: #f4f5f5; --ink-2: #c4c9cb; --ink-3: #8e9598; --line: rgba(255,255,255,.1);
  --paper: #000000; --paper-2: #0f1112; --paper-3: #1a1d1e;
  --teal-wash: #10201f; --teal-ink: #cfe7e4;
  --gray-bubble: #26252a; --gray-bubble-ink: #f4f5f5; --stamp: #8e9598;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.5 var(--font-ui); letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.irl-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Neutralise Weebly element wrappers inside our layouts */
#wsite-content, .wsite-elements, .wsite-section, .wsite-section-content,
.wsite-section-elements, .container, .wsite-section-wrap { margin: 0; padding: 0; max-width: none; background: none; }
.wcustomhtml { overflow: visible !important; }
.wsite-multicol-table { border-spacing: 0; }

/* ---------- Header ---------- */
.irl-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.irl-header.is-scrolled { border-bottom-color: var(--line); }
.irl-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.irl-brand-mark { width: 42px; height: auto; flex-shrink: 0; }
.irl-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.irl-brand-text b { font: 700 15px/1.1 var(--font-display); letter-spacing: -.02em; }
.irl-brand-text span { font-size: 11.5px; color: var(--ink-3); letter-spacing: 0; }
.irl-brand .wsite-logo, .irl-brand .wsite-logo a { all: unset; }

/* Conversation title that slides into the header on thread pages */
.irl-convo {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -30%); opacity: 0;
  display: flex; flex-direction: column; align-items: center; pointer-events: none;
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out);
}
.irl-convo img, .irl-convo .irl-av { width: 26px; height: 26px; border-radius: 50%; }
.irl-convo span { font-size: 11px; font-weight: 600; margin-top: 2px; }
.irl-header.show-convo .irl-convo { opacity: 1; transform: translate(-50%, -50%); }

.irl-nav { margin-left: auto; }
.irl-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.irl-nav li { position: relative; }
.irl-nav a, .irl-nav .wsite-menu-item {
  display: block; padding: 8px 13px; border-radius: 999px; text-decoration: none;
  font-size: 14.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  transition: background .2s, color .2s;
}
.irl-nav a:hover { background: var(--paper-3); color: var(--ink); }
.irl-nav li#active > a, .irl-nav li.active > a, .irl-nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.irl-nav .wsite-menu-wrap {
  position: absolute; top: calc(100% + 8px); left: 0; display: block !important;
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .2s var(--ease-out);
}
.irl-nav li:hover > .wsite-menu-wrap, .irl-nav li:focus-within > .wsite-menu-wrap { opacity: 1; visibility: visible; transform: none; }
.irl-nav .wsite-menu { display: block; min-width: 220px; padding: 6px; border-radius: 16px; background: var(--paper); box-shadow: var(--shadow-2); border: 1px solid var(--line); }
.irl-nav .wsite-menu a { border-radius: 10px; }
.irl-nav .wsite-menu-arrow { display: none; }
.irl-nav a[href*="framer.app"]::after { content: "↗"; margin-left: 4px; font-size: .85em; opacity: .55; }

.irl-burger {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--paper-3); color: var(--ink); cursor: pointer; place-items: center;
}
.irl-burger i, .irl-burger i::before, .irl-burger i::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: .3s var(--ease-out); }
.irl-burger i::before, .irl-burger i::after { content: ""; position: absolute; left: 0; }
.irl-burger i::before { top: -6px; } .irl-burger i::after { top: 6px; }
.menu-open .irl-burger i { background: transparent; }
.menu-open .irl-burger i::before { top: 0; transform: rotate(45deg); }
.menu-open .irl-burger i::after { top: 0; transform: rotate(-45deg); }

/* Mobile menu: links arrive as chat bubbles */
.irl-sheet {
  position: fixed; inset: 0; z-index: 99; padding: calc(var(--header-h) + 20px) 20px 40px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; overflow-y: auto;
}
.menu-open .irl-sheet { opacity: 1; visibility: visible; }
.irl-sheet .stamp { text-align: center; font-size: 12px; color: var(--stamp); margin-bottom: 16px; }
.irl-sheet .ask { display: inline-block; background: var(--gray-bubble); color: var(--gray-bubble-ink); padding: 9px 15px; border-radius: 20px; font-size: 17px; margin-bottom: 14px; }
.irl-sheet ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.irl-sheet li { opacity: 0; transform: translateY(14px) scale(.9); transform-origin: 100% 100%; transition: .45s var(--spring); }
.menu-open .irl-sheet li { opacity: 1; transform: none; }
.irl-sheet a { display: inline-block; text-decoration: none; padding: 10px 18px; border-radius: 22px; font-size: 20px; font-weight: 500; color: #fff; background: linear-gradient(180deg, var(--blue-1), var(--blue-2)); }
.irl-sheet li#active > a, .irl-sheet li.active > a { box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 30%, transparent); }
.irl-sheet .wsite-menu-wrap { display: contents !important; }
.irl-sheet .wsite-menu { display: contents; }
.irl-sheet .wsite-menu a { font-size: 16px; opacity: .92; }
.irl-sheet .wsite-menu-arrow { display: none; }

@media (max-width: 1080px) {
  .irl-nav { display: none; }
  .irl-burger { display: grid; }
}

/* ---------- Footer ---------- */
.irl-footer { background: #0b1312; color: #d7e2e0; padding: 72px var(--gutter) 28px; position: relative; overflow: hidden; }
.irl-footer::before {
  content: ""; position: absolute; width: 600px; height: 600px; right: -200px; top: -320px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(105,163,159,.35), transparent); pointer-events: none;
}
.irl-footer-in { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; position: relative; }
.irl-footer h3 { font: 600 12px/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: #7fa9a5; margin: 0 0 16px; }
.irl-footer p { margin: 0; font-size: 15px; line-height: 1.7; color: #b7c6c3; }
.irl-footer a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); }
.irl-footer a:hover { border-color: #fff; }
.irl-footer .big { font: 400 clamp(34px, 4vw, 52px)/1.02 var(--font-serif); color: #fff; margin: 0 0 18px; letter-spacing: -.01em; }
.irl-footer .big em { color: #9fd0cb; }
.irl-footer-logo { width: 150px; opacity: .95; margin-bottom: 22px; }
.irl-footer-base { max-width: 1200px; margin: 56px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: #7f9491; position: relative; }
.irl-footer-base #footer, .irl-footer-base .wsite-footer { all: unset; }
@media (max-width: 860px) { .irl-footer-in { grid-template-columns: 1fr; gap: 36px; } }

/* =====================================================================
   THREAD LAYOUT (Home + People)
   ===================================================================== */
.layout-thread main { padding-top: 0; }

/* Hero */
.irl-hero {
  position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center;
  padding: calc(var(--header-h) + 40px) var(--gutter) 120px; overflow: hidden; isolation: isolate;
}
.irl-hero::before {
  content: ""; position: absolute; inset: -20%; z-index: -2;
  background:
    radial-gradient(40% 35% at 20% 25%, color-mix(in srgb, var(--teal) 30%, transparent), transparent 70%),
    radial-gradient(35% 30% at 82% 30%, color-mix(in srgb, var(--blue) 20%, transparent), transparent 70%),
    radial-gradient(45% 40% at 60% 85%, color-mix(in srgb, var(--teal) 18%, transparent), transparent 70%);
  animation: irl-aurora 18s ease-in-out infinite alternate;
}
@keyframes irl-aurora { to { transform: translate3d(3%, -2%, 0) rotate(6deg) scale(1.06); } }

.irl-hero-in { max-width: 980px; position: relative; z-index: 2; }
.irl-kicker {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 70%, transparent); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 13.5px; font-weight: 500; color: var(--ink-2); margin-bottom: 28px; text-decoration: none;
}
.irl-kicker b { background: var(--teal); color: #fff; border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 600; }
.irl-hero h1 {
  font: 700 clamp(44px, 8.4vw, 116px)/.94 var(--font-display); letter-spacing: -.045em; margin: 0;
  text-wrap: balance;
}
.irl-hero h1 .serif { font: italic 400 1.08em/1 var(--font-serif); letter-spacing: -.02em; color: var(--teal-deep); padding-right: .04em; }
.irl-hero h1 .irl-chip {
  display: inline-block; position: relative; padding: .02em .22em .08em; margin: 0 .04em; border-radius: .32em;
  color: #fff; background: linear-gradient(180deg, var(--blue-1), var(--blue-2)); transform: rotate(-3deg);
  box-shadow: 0 .12em .4em color-mix(in srgb, var(--blue) 35%, transparent);
}
.irl-hero h1 .irl-chip::after {
  content: ""; position: absolute; right: -.1em; bottom: 0; width: .32em; height: .32em;
  background: var(--blue-2); clip-path: path("M0 0 C 2 12, 10 18, 22 20 C 10 22, 0 18, 0 10 Z");
  -webkit-mask: radial-gradient(circle at 100% 0, transparent 60%, #000 61%); mask: radial-gradient(circle at 100% 0, transparent 60%, #000 61%);
}
.irl-hero h1 .word { display: inline-block; opacity: 0; transform: translateY(.35em); animation: irl-rise .9s var(--ease-out) forwards; }
@keyframes irl-rise { to { opacity: 1; transform: none; } }
.irl-hero p.lede { max-width: 640px; margin: 28px auto 0; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); line-height: 1.55; text-wrap: pretty; }
.irl-hero-cta { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.irl-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 15.5px/1 var(--font-ui); text-decoration: none; transition: transform .25s var(--spring), box-shadow .25s, background .2s;
}
.irl-btn:hover { transform: translateY(-2px); }
.irl-btn:active { transform: scale(.97); }
.irl-btn-primary { color: #fff; background: linear-gradient(180deg, var(--blue-1), var(--blue-2)); box-shadow: 0 8px 24px color-mix(in srgb, var(--blue) 35%, transparent); }
.irl-btn-ghost { color: var(--ink); background: color-mix(in srgb, var(--paper) 60%, transparent); border: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.irl-btn-ink { color: var(--paper); background: var(--ink); }
.irl-btn svg { width: 16px; height: 16px; }

/* Orbiting text bubbles (positioned by irl.js) — liquid glass */
.irl-float { position: absolute; inset: 0; pointer-events: none; }
.irl-float .fb {
  position: absolute; left: 0; top: 0; padding: 9px 15px; border-radius: 20px; font-size: 17px; font-weight: 500; letter-spacing: -.01em; line-height: 1.25; white-space: nowrap;
  opacity: 0; will-change: transform, opacity, filter; pointer-events: auto; cursor: pointer; user-select: none; transform-origin: 50% 50%;
  color: var(--ink); background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.38));
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.95), inset 0 -2px 6px rgba(255,255,255,.35), 0 10px 30px -8px rgba(16,24,40,.22);
}
.irl-float .fb.out { color: #fff; border-color: rgba(255,255,255,.35); background: linear-gradient(180deg, rgba(64,170,255,.94), rgba(10,124,255,.9)); box-shadow: inset 0 1px 1px rgba(255,255,255,.55), inset 0 -3px 8px rgba(0,60,160,.25), 0 10px 30px -8px rgba(10,124,255,.45); }
.irl-float .fb.teal { color: #fff; border-color: rgba(255,255,255,.35); background: linear-gradient(180deg, rgba(122,184,179,.95), rgba(86,146,141,.92)); box-shadow: inset 0 1px 1px rgba(255,255,255,.5), inset 0 -3px 8px rgba(20,70,66,.25), 0 10px 30px -8px rgba(47,111,106,.4); }
.irl-float .fb.is-front { -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%); }
.irl-float .fb.in.is-front { background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.62)); }
@keyframes irl-bob { from { translate: 0 0; } to { translate: 0 -14px; } }
.fb-burst { position: absolute; width: 0; height: 0; pointer-events: none; }
.fb-burst i { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--gray-bubble); animation: irl-burst .6s var(--ease-out) forwards; }
.fb-burst.out i { background: var(--blue); } .fb-burst.teal i { background: var(--teal); }
@keyframes irl-burst { from { transform: rotate(var(--a)) translateX(6px) scale(1); opacity: 1; } to { transform: rotate(var(--a)) translateX(46px) scale(.2); opacity: 0; } }
.irl-hero-in { z-index: 20; pointer-events: none; }
.irl-hero-in a, .irl-hero-in button, .irl-hero-in .cluster img { pointer-events: auto; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .irl-float .fb.in { color: var(--ink); border-color: rgba(255,255,255,.14); background: linear-gradient(180deg, rgba(70,72,78,.7), rgba(38,37,42,.5)); box-shadow: inset 0 1px 1px rgba(255,255,255,.18), 0 10px 30px -8px rgba(0,0,0,.6); }
}
:root[data-theme="dark"] .irl-float .fb.in { color: var(--ink); border-color: rgba(255,255,255,.14); background: linear-gradient(180deg, rgba(70,72,78,.7), rgba(38,37,42,.5)); box-shadow: inset 0 1px 1px rgba(255,255,255,.18), 0 10px 30px -8px rgba(0,0,0,.6); }

.irl-scrollcue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 22;
  display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); text-decoration: none;
}
.irl-scrollcue .typing { transform: scale(.85); }

/* Contact header at the top of a conversation */
.irl-contact { text-align: center; padding: 24px 16px 8px; }
.irl-contact .avatar { width: 84px; height: 84px; margin: 0 auto 10px; border-radius: 50%; box-shadow: var(--shadow-1); }
.irl-contact h2 { font: 600 20px/1.2 var(--font-display) !important; letter-spacing: -.02em; margin: 0; display: inline-flex; align-items: center; gap: 2px; }
.irl-contact h2::after { content: "›"; color: var(--ink-3); font-weight: 400; margin-left: 4px; }
.irl-contact p { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); }
.irl-contact .cluster { display: flex; justify-content: center; margin-bottom: 12px; }
.irl-contact .cluster img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 3px solid var(--paper); margin-left: -16px; box-shadow: var(--shadow-1); transition: transform .3s var(--spring); }
.irl-contact .cluster img:first-child { margin-left: 0; }
.irl-contact .cluster img:hover { transform: translateY(-6px) scale(1.08); z-index: 2; }

/* The thread */
.irl-thread-wrap { position: relative; padding: 24px var(--gutter) 160px; }
.irl-thread { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 2px; }
.t-stamp { text-align: center; font-size: 12px; font-weight: 500; color: var(--stamp); margin: 26px 0 10px; }
.t-stamp b { font-weight: 600; }
.t-system { text-align: center; font-size: 12.5px; color: var(--stamp); margin: 18px auto; max-width: 520px; line-height: 1.45; }
.t-system button { all: unset; cursor: pointer; color: var(--blue); font-weight: 600; }

.t-group { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; position: relative; }
.t-group.from-lab { align-items: flex-end; }
.t-group.from-visitor { align-items: flex-start; }
.t-name { font-size: 11.5px; color: var(--stamp); margin: 0 14px 2px; }
.t-group.has-avatar.from-lab { padding-right: 40px; }
.t-group.has-avatar.from-visitor { padding-left: 40px; }
.t-avatar { position: absolute; bottom: 0; width: 30px; height: 30px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--paper); }
.from-lab > .t-avatar { right: 0; } .from-visitor > .t-avatar { left: 0; }

.b {
  position: relative; max-width: min(78%, 520px); margin: 0; padding: 9px 14px 10px; border-radius: var(--radius-b);
  font-size: 17px; line-height: 1.36; letter-spacing: -.012em; overflow-wrap: anywhere; text-wrap: pretty;
}
.from-lab .b { color: #fff; background: linear-gradient(180deg, var(--blue-1), var(--blue-2)); }
.from-visitor .b { color: var(--gray-bubble-ink); background: var(--gray-bubble); }
.b a { color: inherit; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.b strong { font-weight: 600; }

/* iMessage grouping: tighten inner corners, tail on the last bubble */
.from-lab .b:not(.is-last) { border-bottom-right-radius: 6px; }
.from-lab .b:not(.is-first) { border-top-right-radius: 6px; }
.from-visitor .b:not(.is-last) { border-bottom-left-radius: 6px; }
.from-visitor .b:not(.is-first) { border-top-left-radius: 6px; }
.b.is-last::before, .b.is-last::after { content: ""; position: absolute; bottom: 0; height: 20px; }
.from-lab .b.is-last::before { right: -7px; width: 20px; background: var(--blue-2); border-bottom-left-radius: 16px 14px; }
.from-lab .b.is-last::after { right: -26px; width: 26px; background: var(--paper); border-bottom-left-radius: 10px; }
.from-visitor .b.is-last::before { left: -7px; width: 20px; background: var(--gray-bubble); border-bottom-right-radius: 16px 14px; }
.from-visitor .b.is-last::after { left: -26px; width: 26px; background: var(--paper); border-bottom-right-radius: 10px; }
.b.no-tail::before, .b.no-tail::after, .b-media.is-last::before, .b-media.is-last::after,
.b-link.is-last::before, .b-link.is-last::after, .b-card.is-last::before, .b-card.is-last::after,
.b-carousel::before, .b-carousel::after, .b-emoji::before, .b-emoji::after, .b-video::before, .b-video::after { display: none !important; }

.b-emoji { background: none !important; font-size: 48px; line-height: 1; padding: 4px 0; }

/* Link preview bubble */
.b-link { padding: 0 !important; overflow: hidden; width: min(360px, 78%); background: var(--paper-3) !important; color: var(--ink) !important; text-decoration: none; display: block; border: 1px solid var(--line); }
.b-link img { width: 100%; aspect-ratio: 1.6; object-fit: cover; transition: transform .6s var(--ease-out); }
.b-link:hover img { transform: scale(1.04); }
.b-link .meta { padding: 10px 14px 12px; background: var(--paper-3); position: relative; }
.b-link .meta b { display: block; font-size: 15px; line-height: 1.3; font-weight: 600; }
.b-link .meta span { font-size: 13px; color: var(--ink-3); }
.b-link.tos .meta { background: linear-gradient(90deg, var(--tos-1), var(--tos-2)); color: #fff; }
.b-link.tos .meta span { color: rgba(255,255,255,.75); }
.b-link .pill { position: absolute; top: -14px; right: 12px; background: #34c759; color: #fff; font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; letter-spacing: .02em; box-shadow: 0 4px 12px rgba(52,199,89,.4); }
.b-link .pill::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #fff; margin-right: 6px; vertical-align: 1px; animation: irl-pulse 1.6s ease-in-out infinite; }
@keyframes irl-pulse { 50% { opacity: .3; } }

/* Contact card bubble */
.b-card { padding: 0 !important; width: min(330px, 78%); overflow: hidden; background: var(--paper-3) !important; color: var(--ink) !important; border: 1px solid var(--line); text-decoration: none; display: block; }
.b-card .row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.b-card img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; }
.b-card b { display: block; font-size: 16px; font-weight: 600; }
.b-card span { font-size: 13px; color: var(--ink-3); }
.b-card .act { border-top: 1px solid var(--line); padding: 10px 14px; text-align: center; color: var(--blue); font-weight: 600; font-size: 15px; }

/* Media bubble (photo/video) */
.b-media { padding: 0 !important; overflow: hidden; width: min(360px, 78%); background: #000 !important; }
.b-media img, .b-media video { width: 100%; display: block; }
.b-video { padding: 0 !important; overflow: hidden; width: min(420px, 82%); aspect-ratio: 16/9; background: #000 !important; cursor: pointer; border: 0; }
.b-video img, .b-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.b-video .play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.55)); transition: background .3s; }
.b-video .play i { width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.25); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: grid; place-items: center; transition: transform .3s var(--spring); }
.b-video:hover .play i { transform: scale(1.12); }
.b-video .play i::before { content: ""; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.b-video .cap { position: absolute; left: 14px; bottom: 11px; right: 14px; text-align: left; color: #fff; font-size: 13.5px; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.b-video .cap small { display: block; font-weight: 400; opacity: .8; }
.b-video.playing .play { display: none; }

/* Voice memo bubble (NPR) */
.b-voice { display: flex; align-items: center; gap: 12px; min-width: 260px; cursor: pointer; border: 0; font: inherit; text-align: left; }
.b-voice .pp { width: 34px; height: 34px; border-radius: 50%; background: #fff; flex-shrink: 0; display: grid; place-items: center; }
.b-voice .pp::before { content: ""; border-left: 11px solid var(--blue-2); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.b-voice .wave { display: flex; align-items: center; gap: 2.5px; height: 28px; flex: 1; }
.b-voice .wave i { width: 3px; border-radius: 3px; background: rgba(255,255,255,.65); height: var(--h); transition: background .2s; }
.b-voice:hover .wave i { background: #fff; }
.b-voice .dur { font-size: 13px; opacity: .85; font-variant-numeric: tabular-nums; }
.voice-embed { width: min(520px, 90%); border-radius: 18px; overflow: hidden; margin-top: 6px; box-shadow: var(--shadow-1); }
.voice-embed iframe { display: block; width: 100%; height: 290px; border: 0; }

/* Carousel of cards */
.b-carousel {
  width: 100%; max-width: none; padding: 4px 0 8px !important; background: none !important; display: flex; gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-mask: linear-gradient(90deg, #000 85%, transparent); mask: linear-gradient(90deg, #000 85%, transparent);
}
.b-carousel::-webkit-scrollbar { display: none; }
.from-lab .b-carousel { flex-direction: row-reverse; -webkit-mask: linear-gradient(270deg, #000 85%, transparent); mask: linear-gradient(270deg, #000 85%, transparent); }
.p-card {
  flex: 0 0 236px; scroll-snap-align: start; border-radius: 20px; padding: 16px; text-decoration: none; color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--line); display: flex; flex-direction: column; min-height: 210px;
  transition: transform .35s var(--spring), box-shadow .35s;
}
.p-card:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: var(--shadow-2); }
.p-card .n { font: italic 400 34px/1 var(--font-serif); color: var(--teal-deep); }
.p-card b { font-size: 16.5px; line-height: 1.25; margin-top: auto; letter-spacing: -.015em; }
.p-card span { font-size: 13px; color: var(--ink-3); margin-top: 6px; line-height: 1.4; }
.p-card.feat { background: linear-gradient(150deg, var(--tos-1), var(--tos-2)); color: #fff; border: 0; }
.p-card.feat .n, .p-card.feat span { color: rgba(255,255,255,.85); }

/* Tapback reactions */
.tapback {
  position: absolute; top: -14px; min-width: 32px; height: 28px; padding: 0 7px; border-radius: 16px; display: grid; place-items: center;
  font-size: 15px; background: var(--paper-3); border: 2px solid var(--paper); box-shadow: var(--shadow-1); z-index: 2;
  animation: irl-tap .5s var(--spring) both;
}
.from-lab .tapback { left: -14px; }
.from-visitor .tapback { right: -14px; }
@keyframes irl-tap { from { transform: scale(0) rotate(-20deg); } }
.tap-menu {
  position: absolute; z-index: 20; top: -56px; display: flex; gap: 4px; padding: 6px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 85%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: var(--shadow-2); border: 1px solid var(--line); animation: irl-tap .35s var(--spring) both;
}
.from-lab .tap-menu { right: 0; } .from-visitor .tap-menu { left: 0; }
.tap-menu button { all: unset; cursor: pointer; width: 36px; height: 36px; display: grid; place-items: center; font-size: 20px; border-radius: 50%; transition: transform .2s var(--spring), background .2s; }
.tap-menu button:hover { transform: scale(1.25); background: var(--paper-3); }

.t-receipt { align-self: flex-end; font-size: 11.5px; color: var(--stamp); margin: 4px 4px 0; }
.t-receipt b { font-weight: 600; }

/* Quick-reply chips */
.t-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; justify-content: flex-start; }
.t-chips a, .t-chips button {
  all: unset; cursor: pointer; padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500;
  color: var(--blue); border: 1.5px solid color-mix(in srgb, var(--blue) 40%, transparent); transition: background .2s, transform .25s var(--spring);
}
.t-chips a:hover, .t-chips button:hover { background: color-mix(in srgb, var(--blue) 10%, transparent); transform: translateY(-2px); }

/* Typing indicator */
.typing { display: inline-flex; gap: 4px; padding: 13px 14px; border-radius: 20px; background: var(--gray-bubble); position: relative; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--stamp); animation: irl-dot 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes irl-dot { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.t-typing { display: flex; margin-top: 14px; }
.t-typing.lab { justify-content: flex-end; }
.t-typing.lab .typing { background: color-mix(in srgb, var(--blue) 18%, var(--gray-bubble)); }
.t-typing.lab .typing i { background: var(--blue); }

/* Reveal choreography (only once JS has taken over) */
.irl-js .t-group:not(.is-in) { visibility: hidden; }
.irl-js .t-group .b, .irl-js .t-group .t-name, .irl-js .t-group .t-avatar, .irl-js .t-group .t-chips { opacity: 0; }
.irl-js .t-group.is-in .b, .irl-js .t-group.is-in .t-name, .irl-js .t-group.is-in .t-avatar, .irl-js .t-group.is-in .t-chips { animation: irl-pop .55s var(--spring) both; animation-delay: calc(var(--i, 0) * 140ms); }
.irl-js .from-lab .b { transform-origin: 100% 100%; }
.irl-js .from-visitor .b { transform-origin: 0 100%; }
@keyframes irl-pop { from { opacity: 0; transform: translateY(16px) scale(.8); } to { opacity: 1; transform: none; } }
.irl-js .t-stamp, .irl-js .t-system { opacity: 0; transition: opacity .6s; }
.irl-js .t-stamp.is-in, .irl-js .t-system.is-in { opacity: 1; }

/* Compose bar */
.irl-compose {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 10px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 78%, transparent); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .5s var(--ease-out);
}
.irl-compose.is-on { transform: none; }
.irl-compose form { max-width: 760px; margin: 0 auto; display: flex; gap: 10px; align-items: center; }
.irl-compose .plus { width: 36px; height: 36px; border-radius: 50%; background: var(--paper-3); display: grid; place-items: center; color: var(--ink-3); font-size: 22px; flex-shrink: 0; border: 0; cursor: pointer; }
.irl-compose .field { flex: 1; display: flex; align-items: center; border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); border-radius: 22px; padding: 3px 3px 3px 16px; background: var(--paper); }
.irl-compose input { flex: 1; border: 0; outline: 0; background: none; font: 16px var(--font-ui); color: var(--ink); padding: 6px 0; min-width: 0; }
.irl-compose input::placeholder { color: var(--ink-3); }
.irl-compose .send { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform .25s var(--spring), opacity .2s; }
.irl-compose .send:disabled { opacity: .35; cursor: default; }
.irl-compose .send svg { width: 16px; height: 16px; }
.irl-compose .sugg { max-width: 760px; margin: 0 auto 8px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.irl-compose .sugg::-webkit-scrollbar { display: none; }
.irl-compose .sugg button { all: unset; cursor: pointer; white-space: nowrap; font-size: 13.5px; padding: 6px 12px; border-radius: 999px; background: var(--paper-3); color: var(--ink-2); transition: background .2s; }
.irl-compose .sugg button:hover { background: color-mix(in srgb, var(--blue) 14%, var(--paper-3)); color: var(--ink); }
.irl-compose .compose-note { max-width: 760px; margin: 5px auto 0; font-size: 11px; line-height: 1.25; color: var(--ink-3); text-align: center; }
.irl-compose .compose-note a { color: var(--ink-2); text-underline-offset: 2px; }

/* People: filter + expandable bios */
.irl-filter { position: sticky; top: calc(var(--header-h) + 10px); z-index: 20; display: flex; justify-content: center; margin: 8px 0 6px; }
.irl-filter .seg { display: inline-flex; padding: 3px; border-radius: 12px; background: color-mix(in srgb, var(--paper-3) 85%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--shadow-1); position: relative; }
.irl-filter button { all: unset; cursor: pointer; position: relative; z-index: 1; padding: 7px 14px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); border-radius: 9px; transition: color .25s; }
.irl-filter button[aria-pressed="true"] { color: var(--ink); }
.irl-filter .knob { position: absolute; top: 3px; bottom: 3px; border-radius: 9px; background: var(--paper); box-shadow: 0 1px 4px rgba(0,0,0,.12); transition: left .4s var(--spring), width .4s var(--spring); }
.t-person.is-hidden { display: none; }
.b-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.b-more > div { overflow: hidden; }
.b.open .b-more { grid-template-rows: 1fr; }
.b-more p { margin: 10px 0 2px; font-size: 15px; line-height: 1.5; opacity: .95; }
.b-toggle { all: unset; cursor: pointer; display: inline-block; margin-top: 6px; font-size: 13.5px; font-weight: 600; opacity: .85; border-bottom: 1px solid rgba(255,255,255,.5); }
.b-role { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(255,255,255,.22); padding: 3px 8px; border-radius: 999px; margin-bottom: 6px; }
.alumni { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 12px auto 0; max-width: 700px; }
.alumni span { font-size: 13px; padding: 5px 11px; border-radius: 999px; background: var(--paper-3); color: var(--ink-2); animation: irl-pop .45s var(--spring) both; animation-delay: calc(var(--i) * 18ms); }

/* =====================================================================
   EDITORIAL LAYOUT (Projects, Michaeline Jensen, Teaching, Join, Contact…)
   ===================================================================== */
.layout-editorial main { padding-top: var(--header-h); }

.ed-wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.ed-hero { padding: clamp(56px, 10vw, 128px) 0 clamp(40px, 6vw, 72px); position: relative; }
.ed-label {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--teal-deep);
  background: var(--teal-wash); padding: 6px 12px; border-radius: 14px 14px 14px 4px; margin-bottom: 22px;
}
.ed-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.ed-hero h1 { font: 700 clamp(48px, 9vw, 132px)/.9 var(--font-display); letter-spacing: -.05em; margin: 0; max-width: 12ch; text-wrap: balance; }
.ed-hero h1 em { font: italic 400 1.06em/1 var(--font-serif); letter-spacing: -.02em; color: var(--teal-deep); }
.thanks-typing {
  display: inline-flex; align-items: center; justify-content: center; gap: .09em;
  width: 1.2em; height: .84em; margin-left: .04em; vertical-align: -.1em;
  position: relative; isolation: isolate; border-radius: 50%;
  background: radial-gradient(ellipse at 45% 30%, #fff 35%, #f3f3f3 65%, #d7d7d7 100%);
  box-shadow: inset 0 2px 5px #fff, inset 0 -4px 9px #b9b9b9, 0 4px 10px #0002;
}
.thanks-typing::after {
  content: ""; position: absolute; left: .12em; bottom: -.1em; z-index: -1;
  width: .3em; height: .28em; border-radius: 0 0 0 90%;
  transform: skew(-20deg) rotate(18deg); background: #dedede;
  box-shadow: -2px 3px 4px #0002;
}
.thanks-typing i {
  display: block; width: .13em; height: .13em; border-radius: 50%;
  background: #555; box-shadow: 0 1px 2px #0002;
  animation: irl-dot 1.2s infinite ease-in-out;
}
.thanks-typing i:nth-child(2) { animation-delay: .15s; }
.thanks-typing i:nth-child(3) { animation-delay: .3s; }
.ed-hero .intro { margin-top: 28px; max-width: 680px; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.ed-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 88px); align-items: end; }
@media (max-width: 900px) { .ed-hero-grid { grid-template-columns: 1fr; } }

.ed-section { padding: clamp(56px, 8vw, 112px) 0; border-top: 1px solid var(--line); }
.ed-h2 { font: 700 clamp(34px, 5vw, 64px)/.98 var(--font-display); letter-spacing: -.04em; margin: 0 0 20px; text-wrap: balance; }
.ed-h2 em { font: italic 400 1.06em/1 var(--font-serif); color: var(--teal-deep); letter-spacing: -.01em; }
.ed-p { font-size: 18px; line-height: 1.65; color: var(--ink-2); margin: 0 0 16px; max-width: 68ch; text-wrap: pretty; }
.ed-p a, .ed-link { color: var(--ink); text-decoration: none; background: linear-gradient(var(--teal), var(--teal)) 0 100% / 100% 1.5px no-repeat; transition: background-size .3s, color .2s; }
.ed-p a:hover, .ed-link:hover { color: var(--teal-deep); background-size: 100% 100%; background-image: linear-gradient(var(--teal-wash), var(--teal-wash)); }

.irl-js .ed-reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.irl-js .ed-reveal.is-in { opacity: 1; transform: none; }

/* Chips */
.ed-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ed-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 16px 16px 16px 5px;
  font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink); background: var(--paper-2); border: 1px solid var(--line);
  transition: transform .3s var(--spring), background .2s, border-color .2s;
}
.ed-chip:hover { transform: translateY(-2px); background: var(--teal-wash); border-color: color-mix(in srgb, var(--teal) 40%, transparent); }
.ed-chip .y { font-size: 12px; font-weight: 700; color: var(--teal-deep); }
.ed-chip::after { content: "↗"; color: var(--ink-3); font-size: 12px; }
.ed-chip.no-arrow::after { display: none; }

/* Projects */
.tos-feature {
  position: relative; border-radius: 32px; overflow: hidden; color: #fff; isolation: isolate;
  background: linear-gradient(135deg, var(--tos-1) 10%, #8b3f79 55%, var(--tos-2));
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: clamp(28px, 5vw, 64px); margin-bottom: 24px;
}
.tos-feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 60% at 85% 20%, rgba(255,255,255,.18), transparent 60%); }
.tos-feature .tos-logo { width: 88px; filter: brightness(0) invert(1); margin-bottom: 26px; }
.tos-feature h2 { font: 700 clamp(36px, 5vw, 68px)/.95 var(--font-display); letter-spacing: -.045em; margin: 0 0 18px; }
.tos-feature h2 em { font: italic 400 1.06em var(--font-serif); }
.tos-feature p { font-size: 17.5px; line-height: 1.6; color: rgba(255,255,255,.88); margin: 0 0 14px; }
.tos-feature .live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: rgba(255,255,255,.16); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.tos-feature .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5cf08a; box-shadow: 0 0 0 4px rgba(92,240,138,.25); animation: irl-pulse 1.6s infinite; }
.tos-feature .irl-btn { background: #fff; color: var(--tos-1); margin-top: 10px; }
.tos-feature .art { position: relative; min-height: 360px; perspective: 1000px; }
.tos-feature .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.35); transform: rotateY(-10deg) rotateX(4deg); transition: transform .8s var(--ease-out); }
.tos-feature:hover .art img { transform: rotateY(-2deg) rotateX(0); }
.tos-feature .collab { font-size: 14px; color: rgba(255,255,255,.75); }
.tos-feature .collab a { color: #fff; }
@media (max-width: 900px) { .tos-feature { grid-template-columns: 1fr; } .tos-feature .art { min-height: 0; aspect-ratio: 1.3; } }

.proj { display: grid; grid-template-columns: 120px 1fr minmax(0, .9fr); gap: clamp(20px, 4vw, 56px); padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); align-items: start; }
.proj .num { font: italic 400 clamp(56px, 7vw, 96px)/.8 var(--font-serif); color: var(--teal); position: sticky; top: calc(var(--header-h) + 24px); }
.proj h3 { font: 700 clamp(28px, 3.4vw, 44px)/1 var(--font-display); letter-spacing: -.035em; margin: 0 0 18px; }
.proj h3 small { display: block; font: 600 13px/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.proj .side { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 1000px) { .proj { grid-template-columns: 1fr; } .proj .num, .proj .side { position: static; } }

/* Lazy YouTube */
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16/9; border-radius: 20px; overflow: hidden; background: #000; border: 0; padding: 0; cursor: pointer; box-shadow: var(--shadow-2); }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .7s var(--ease-out), opacity .3s; }
.yt:hover img { transform: scale(1.04); opacity: 1; }
.yt::after { content: ""; position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: rgba(255,255,255,.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%230b0d0e'/%3E%3C/svg%3E") 55% 50% / 28px no-repeat; transition: transform .3s var(--spring); }
.yt:hover::after { transform: scale(1.1); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-cap { font-size: 13.5px; color: var(--ink-3); margin-top: 10px; }

/* Profile (Michaeline Jensen) */
.prof-photo { position: relative; }
.prof-photo img { width: 100%; border-radius: 28px; aspect-ratio: 4/3.3; object-fit: cover; box-shadow: var(--shadow-2); }
.prof-photo .bubble-tag { position: absolute; left: -18px; bottom: 28px; background: linear-gradient(180deg, var(--blue-1), var(--blue-2)); color: #fff; padding: 10px 16px; border-radius: 20px 20px 20px 6px; font-size: 15px; font-weight: 500; box-shadow: var(--shadow-2); animation: irl-bob 4s ease-in-out infinite alternate; }
.prof-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 32px; }
.prof-meta a, .prof-meta div { display: block; padding: 16px 18px; border-radius: 18px; background: var(--paper-2); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .3s var(--spring), background .2s; }
.prof-meta a:hover { transform: translateY(-3px); background: var(--teal-wash); }
.prof-meta small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.prof-meta b { font-weight: 600; font-size: 15.5px; overflow-wrap: anywhere; }

.pubs-heading { margin: 0 0 8px; font: 700 clamp(24px, 2.6vw, 32px)/1.1 var(--font-display); letter-spacing: -.03em; }
.pubs-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 8px 0 28px; }
.pubs-search { flex: 1; min-width: 240px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: var(--paper-2); border: 1px solid var(--line); }
.pubs-search input { all: unset; flex: 1; font-size: 16px; color: var(--ink); }
.pubs-search svg { width: 18px; color: var(--ink-3); }
.pubs-count { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pubs-years { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.pubs-years button { all: unset; cursor: pointer; font-size: 13.5px; font-weight: 600; padding: 7px 13px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line); transition: .2s; }
.pubs-years button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pub { display: grid; grid-template-columns: 76px 1fr 40px; gap: 18px; align-items: start; padding: 20px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background .2s; }
.pub:hover { background: linear-gradient(90deg, transparent, var(--teal-wash) 30%, transparent); }
.pub .yr { font: italic 400 30px/1 var(--font-serif); color: var(--teal-deep); }
.pub .t { font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.pub .a { font-size: 14.5px; color: var(--ink-3); margin-top: 4px; line-height: 1.5; }
.pub .a mark { background: none; color: var(--ink); font-weight: 600; }
.pub .j { font-style: italic; }
.pub .go { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); transition: .3s var(--spring); }
.pub:hover .go { background: var(--blue); color: #fff; transform: rotate(-45deg); }
.pub.hide { display: none; }
@media (max-width: 640px) { .pub { grid-template-columns: 1fr; gap: 6px; } .pub .go { display: none; } }

/* Course cards (Teaching) */
.courses { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.course { position: relative; padding: 28px; border-radius: 28px; background: var(--paper-2); border: 1px solid var(--line); overflow: hidden; transition: transform .4s var(--spring), box-shadow .4s; display: flex; flex-direction: column; min-height: 320px; }
.course:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.course .code { font: 700 clamp(40px, 4.4vw, 60px)/.9 var(--font-display); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px var(--teal); margin-bottom: 18px; }
.course h3 { font: 700 23px/1.15 var(--font-display); letter-spacing: -.025em; margin: 0 0 12px; }
.course p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.course.grad { background: var(--teal-ink); color: #eaf4f2; border: 0; }
.course.grad h3 { color: #fff; } .course.grad p { color: #bcd3cf; }
.course.grad .code { -webkit-text-stroke-color: #9fd0cb; }
.course.grad.supervision { grid-column: 1 / -1; min-height: 0; }
.course.grad.supervision p { max-width: 75ch; }

/* Join */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .paths { grid-template-columns: 1fr; } }
.path { border-radius: 32px; padding: clamp(28px, 4vw, 48px); position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 16px; }
.path.grad { background: linear-gradient(160deg, #0f2725, #1f4d49); color: #fff; }
.path.ug { background: var(--paper-2); border: 1px solid var(--line); }
.path h3 { font: 700 clamp(30px, 3.6vw, 48px)/.98 var(--font-display); letter-spacing: -.04em; margin: 0; }
.path h3 em { font: italic 400 1.06em var(--font-serif); }
.path p { margin: 0; font-size: 17px; line-height: 1.6; opacity: .88; }
.path .badge { align-self: flex-start; font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: #34c759; color: #fff; }
.path .ways { display: grid; gap: 8px; margin: 4px 0; }
.path .ways div { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); font-weight: 500; }
.path .ways i { font-style: normal; font-size: 22px; }
.path .links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.path.grad .ed-chip { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }
.path.grad .ed-chip::after { color: rgba(255,255,255,.6); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.c-card { border-radius: 28px; padding: 32px; background: var(--paper-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.c-card h3 { margin: 0; font: 700 26px/1.1 var(--font-display); letter-spacing: -.03em; }
.c-card p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.c-card.big { background: linear-gradient(180deg, var(--blue-1), var(--blue-2)); color: #fff; border: 0; border-radius: 32px 32px 32px 10px; }
.c-card.big p { color: rgba(255,255,255,.88); }
.c-card.big a.mail { font: 700 clamp(22px, 2.8vw, 34px)/1.1 var(--font-display); letter-spacing: -.03em; color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.c-card.big a.mail:hover { text-decoration: underline; text-underline-offset: 6px; }
.copy-btn { all: unset; cursor: pointer; align-self: flex-start; margin-top: 12px; font-size: 14px; font-weight: 600; padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,.2); transition: background .2s; }
.copy-btn:hover { background: rgba(255,255,255,.3); }
.map { border-radius: 28px; overflow: hidden; border: 1px solid var(--line); min-height: 380px; margin-top: 20px; }
.map iframe { width: 100%; height: 420px; border: 0; display: block; filter: saturate(.6) contrast(1.05); }
:root[data-theme="dark"] .map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.5); }

/* Marquee for editorial pages */
.ed-marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; white-space: nowrap; }
.ed-marquee div { display: inline-flex; gap: 14px; animation: irl-marquee 40s linear infinite; }
.ed-marquee span { font: 400 clamp(28px, 3.4vw, 44px)/1 var(--font-serif); color: var(--ink-3); }
.ed-marquee span.b2 { font-family: var(--font-ui); font-size: 15px; align-self: center; padding: 8px 14px; border-radius: 18px; color: #fff; background: linear-gradient(180deg, var(--blue-1), var(--blue-2)); }
.ed-marquee span.b3 { font-family: var(--font-ui); font-size: 15px; align-self: center; padding: 8px 14px; border-radius: 18px; color: var(--gray-bubble-ink); background: var(--gray-bubble); }
@keyframes irl-marquee { to { transform: translateX(-50%); } }

/* Generic native-Weebly content inside editorial pages (for elements added in the editor) */
.layout-editorial #wsite-content > .wsite-elements > *:not(.wcustomhtml-host) { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.layout-editorial .wsite-content-title { font: 700 clamp(30px, 4vw, 52px)/1 var(--font-display) !important; letter-spacing: -.035em; margin: 48px auto 16px; }
.layout-editorial .paragraph { font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.wsite-button { display: inline-flex !important; padding: 13px 22px !important; border-radius: 999px !important; background: var(--ink) !important; color: var(--paper) !important; text-decoration: none; border: 0 !important; }
.wsite-button .wsite-button-inner { font: 600 15px/1 var(--font-ui) !important; color: inherit !important; background: none !important; padding: 0 !important; }

/* Weebly native form (Apply page) */
.wsite-form-field { margin-bottom: 18px !important; }
.wsite-form-label { font-weight: 600 !important; font-size: 15px !important; color: var(--ink) !important; }
.wsite-form-input, .wsite-form-field select, .wsite-form-field textarea {
  border-radius: 14px !important; border: 1px solid var(--line) !important; background: var(--paper-2) !important;
  padding: 12px 14px !important; font: 16px var(--font-ui) !important; color: var(--ink) !important; width: 100% !important; box-shadow: none !important;
}
.wsite-form-input:focus { outline: 3px solid color-mix(in srgb, var(--blue) 35%, transparent) !important; border-color: var(--blue) !important; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .irl-js .t-group:not(.is-in) { visibility: visible; }
  .irl-js .t-group .b, .irl-js .t-group .t-name, .irl-js .t-group .t-avatar, .irl-js .t-group .t-chips, .irl-js .t-stamp, .irl-js .t-system, .ed-reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Additions ---------- */
button.b { font: inherit; text-align: left; cursor: pointer; border: 0; }
.b-video { color: #fff; display: block; }
.irl-hero.compact { min-height: 0; padding-bottom: 32px; }
.irl-hero.compact h1 { font-size: clamp(40px, 7vw, 92px); }
.irl-hero.compact .irl-contact { padding-top: 0; }
.irl-hero .avatar, .irl-contact .avatar { display: block; }
.path .yt { margin: 6px 0; }
.irl-footer-weebly { opacity: .7; }
.irl-footer-weebly a { border: 0; color: inherit; }

/* Fixes */
.b-carousel .p-card { color: var(--ink); text-decoration: none; }
.b-carousel .p-card.feat { color: #fff; }
.from-lab .b-carousel { flex-direction: row; -webkit-mask: linear-gradient(90deg, #000 88%, transparent); mask: linear-gradient(90deg, #000 88%, transparent); }
.b-link.tos img { aspect-ratio: 1035 / 800; object-fit: cover; }
.b-card .act { display: block; }
.b-card .row > span { display: block; }
.irl-hero h1 .irl-chip::after { display: none; }

.irl-footer-brand { display: inline-block; border: 0 !important; margin-bottom: 26px; }
.irl-footer-brand img { width: 110px; height: auto; }
.b-video + .b-voice { margin-top: 4px; }
.tos-feature .art { min-height: 0; align-self: center; }
.tos-feature .art img { position: relative; inset: auto; height: auto; aspect-ratio: 1035 / 800; object-fit: cover; }
.pub .t, .pub .a { display: block; }
@media (max-width: 700px) { .irl-hero { min-height: 92svh; } }

/* Application form (Netlify Forms) */
.irl-form { display: flex; flex-direction: column; gap: 20px; max-width: 980px; }
.f-step { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: clamp(24px, 4vw, 40px); border-radius: 28px; background: var(--paper-2); border: 1px solid var(--line); }
.f-step h3 { font: 700 26px/1.1 var(--font-display); letter-spacing: -.03em; margin: 4px 0 20px; }
.f-num { font: italic 400 56px/.9 var(--font-serif); color: var(--teal); }
.f-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin-bottom: 14px; }
.f-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.f-grid .f-field { margin: 0; }
.f-field > span, .f-rate legend { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.f-field small { font-size: 13.5px; color: var(--ink-3); margin-top: -2px; }
.f-field input, .f-field textarea {
  font: 16px/1.4 var(--font-ui); color: var(--ink); background: var(--paper); border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  border-radius: 14px; padding: 12px 14px; width: 100%; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.f-field input:focus, .f-field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent); }
.f-rate { border: 0; padding: 0; margin: 0 0 20px; }
.f-rate legend { margin-bottom: 10px; padding: 0; }
.f-rate > div { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.f-rate label { cursor: pointer; position: relative; }
.f-rate input { position: absolute; opacity: 0; pointer-events: none; }
.f-rate label span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 10px 10px 11px; border-radius: 14px 14px 14px 5px; background: var(--paper); border: 1px solid var(--line); font-size: 12.5px; line-height: 1.25; color: var(--ink-2); transition: .2s; }
.f-rate label span b { font-size: 16px; color: var(--ink); }
.f-rate label:hover span { border-color: color-mix(in srgb, var(--blue) 40%, transparent); }
.f-rate input:checked + span { background: linear-gradient(180deg, var(--blue-1), var(--blue-2)); color: #fff; border-color: transparent; transform: translateY(-2px); }
.f-rate input:checked + span b { color: #fff; }
.f-rate input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.f-ref { margin-bottom: 18px; }
.f-ref h4 { margin: 0 0 12px; font-size: 15px; font-weight: 700; color: var(--teal-deep); }
.f-submit { display: flex; justify-content: flex-end; }
.f-submit .irl-btn { font-size: 17px; padding: 16px 26px; }
@media (max-width: 760px) {
  .f-step { grid-template-columns: 1fr; gap: 4px; }
  .f-num { font-size: 40px; }
  .f-grid { grid-template-columns: 1fr; }
  .f-rate > div { grid-template-columns: 1fr; }
  .f-rate label span { flex-direction: row; align-items: center; gap: 10px; }
}
.t-receipt.dyn { align-self: flex-start; }

/* Editorial photos */
.ed-photo { margin: 0; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-2); background: var(--paper-3); }
.ed-photo img { width: 100%; height: 100%; object-fit: cover; }
.ed-sticky .ed-photo { margin-top: clamp(24px, 3vw, 40px); aspect-ratio: 3 / 2; }
@media (min-width: 901px) { .ed-sticky { position: sticky; top: calc(var(--header-h) + 32px); } }
.ed-photo.wide { aspect-ratio: 16 / 8; border-radius: 32px; }
.ed-photo.wide img { object-position: 50% 42%; }
@media (max-width: 700px) { .ed-photo.wide { aspect-ratio: 4 / 3; border-radius: 24px; } }
.prof-photo img { aspect-ratio: 3 / 2.2; object-position: 52% 30%; }

/* People: photo that drops into an opened bio bubble */
.b-photo { display: block; width: 100%; aspect-ratio: 1; max-height: 400px; object-fit: cover; object-position: 50% 30%; border-radius: 14px; margin: 12px 0 2px; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.b.open .b-photo { animation: irl-photo-in .7s var(--spring) both .08s; }
@keyframes irl-photo-in { from { opacity: 0; transform: scale(.9) translateY(10px); } }
.b-photo[src*="jensen-classroom"] { aspect-ratio: 4 / 3; object-position: 54% 25%; }
.t-person .b.open { max-width: min(86%, 520px); }

/* Home: liquid-glass CTA that morphs into the first message */
.irl-btn.is-morph-src { opacity: 0; }
.irl-morph {
  position: fixed; left: 0; top: 0; z-index: 95; display: block; overflow: visible; text-decoration: none; cursor: pointer;
  transform-origin: 0 50%; will-change: transform, width, height;
  -webkit-backdrop-filter: blur(16px) saturate(190%); backdrop-filter: blur(16px) saturate(190%);
  box-shadow: 0 10px 30px -6px rgba(10,124,255,calc(.45 * var(--shadow, 1))), 0 2px 6px rgba(16,24,40,calc(.08 * var(--shadow, 1)));
}
.irl-morph.is-gone { visibility: hidden; }
.irl-morph.is-focus { outline: 3px solid var(--blue); outline-offset: 3px; }
.irl-morph > span { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.irl-morph .m-glass { background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,.16)); box-shadow: inset 0 1px 1px rgba(255,255,255,.95), inset 0 -1px 2px rgba(255,255,255,.4), inset 0 0 0 1px rgba(255,255,255,.55); }
.irl-morph .m-blue { background: linear-gradient(180deg, var(--blue-1), var(--blue-2)); opacity: var(--blue, 1); box-shadow: inset 0 1px 1px rgba(255,255,255,.4); }
.irl-morph .m-gray { background: var(--gray-bubble); opacity: var(--gray, 0); }
.irl-morph .m-glint { background: linear-gradient(105deg, transparent calc(var(--glint, 0%) - 30%), rgba(255,255,255,.55) var(--glint, 0%), transparent calc(var(--glint, 0%) + 30%)); mix-blend-mode: soft-light; opacity: calc(1 - var(--gray, 0)); }
.irl-morph .m-a { display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; font: 600 15.5px/1 var(--font-ui); white-space: nowrap; opacity: var(--ta, 1); }
.irl-morph .m-a svg { width: 16px; height: 16px; }
.irl-morph .m-b { inset: 0 auto 0 0; display: flex; align-items: center; padding: 0 14px; color: var(--gray-bubble-ink); font-size: 17px; line-height: 1.36; letter-spacing: -.012em; white-space: nowrap; opacity: var(--tb, 0); }
.irl-morph .m-tail { inset: auto; left: -7px; bottom: 0; width: 20px; height: 20px; background: var(--gray-bubble); border-bottom-right-radius: 16px 14px; opacity: var(--gray, 0); z-index: -1; }
.t-group.is-morph-dst.is-in .b { animation: none !important; opacity: 1 !important; }
.irl-morph .m-tail::after { content: ""; position: absolute; left: -19px; bottom: 0; width: 26px; height: 20px; background: var(--paper); border-bottom-right-radius: 10px; }
.b-gif { width: min(220px, 60%); border-radius: 18px; }
.b-gif img { aspect-ratio: 220 / 243; object-fit: cover; }

/* ---------- Michaeline Jensen: Google Scholar stats + co-author network ---------- */
.sch { --hl: #2f6f6a; --co: color-mix(in srgb, var(--ink) 30%, var(--paper-2)); --edge: color-mix(in srgb, var(--ink) 15%, transparent); --edge-peer: color-mix(in srgb, var(--ink) 6%, transparent); margin: 8px 0 56px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sch { --hl: #7fc4bd; } }
:root[data-theme="dark"] .sch { --hl: #7fc4bd; }
.sch-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.6fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 1000px) { .sch-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sch-years { grid-column: 1 / -1; } }
.sch-stats .stat { padding: 18px 20px; border-radius: 22px; background: var(--paper-2); border: 1px solid var(--line); min-width: 0; }
.sch-stats small { display: block; font-size: 13px; font-weight: 600; color: var(--ink-3); margin-bottom: 6px; }
.sch-stats b { display: block; font: 700 clamp(30px, 3.4vw, 44px)/1 var(--font-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.sch-stats .stat > span { display: block; margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.sch-years { display: flex; flex-direction: column; }
.sch-years .cols { flex: 1; min-height: 64px; display: flex; align-items: flex-end; gap: 3px; padding-top: 18px; }
.sch-years .col { flex: 1; max-width: 24px; height: var(--h); min-height: 2px; border-radius: 4px 4px 0 0; background: var(--teal); position: relative; cursor: default; outline: none; transition: background .2s; }
.sch-years .col:hover, .sch-years .col:focus-visible { background: var(--teal-deep); }
.sch-years .col:focus-visible { box-shadow: 0 0 0 2px var(--paper-2), 0 0 0 4px var(--blue); }
.sch-years .col em { position: absolute; bottom: calc(100% + 4px); right: 0; font: 600 12px var(--font-ui); color: var(--ink-2); white-space: nowrap; }
.sch-years .axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11.5px; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 5px; }
.irl-js .sch-years .col { transform-origin: bottom; animation: sch-col .7s var(--ease-out) both; animation-delay: calc(var(--i) * 35ms); }
@keyframes sch-col { from { transform: scaleY(0); } }

.sch-card { border-radius: 28px; background: var(--paper-2); border: 1px solid var(--line); padding: clamp(18px, 3vw, 32px); }
.sch-head h3 { margin: 0 0 6px; font: 700 clamp(24px, 2.6vw, 32px)/1.05 var(--font-display); letter-spacing: -.03em; }
.sch-head p { margin: 0 0 8px; font-size: 15px; color: var(--ink-3); max-width: 62ch; }
.sch-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .sch-body { grid-template-columns: 1fr; } }
.sch-graph svg { display: block; width: 100%; height: auto; }
.sch .node { outline: none; cursor: pointer; }
.sch .node:focus-visible circle { outline: none; }
.sch-key { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin-top: 10px; }
.sch-key i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.sch-key i.me { background: var(--ink); } .sch-key i.lab { background: var(--hl); } .sch-key i.co { background: var(--co); }
.sch-side { border-radius: 20px; background: var(--paper); border: 1px solid var(--line); padding: 18px; font-size: 14px; }
.sch-side h4 { margin: 0 0 4px; font: 700 20px/1.15 var(--font-display); letter-spacing: -.02em; }
.sch-side .sub { color: var(--ink-3); margin: 0 0 12px; }
.sch-side ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; max-height: 360px; overflow: auto; }
.sch-side li { line-height: 1.35; }
.sch-side li a { color: var(--ink); text-decoration: none; font-weight: 500; }
.sch-side li a:hover { text-decoration: underline; text-underline-offset: 2px; }
.sch-side li > span { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-3); }
.sch-side ol.top button { all: unset; cursor: pointer; font-weight: 600; color: var(--ink); }
.sch-side ol.top button:hover { color: var(--teal-deep); }
.sch-side ol.top button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.sch-filter { all: unset; cursor: pointer; margin-top: 14px; font-size: 13.5px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.sch-filter:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.sch-src { margin: 12px 4px 0; font-size: 13px; color: var(--ink-3); }
.sch-src a { color: var(--ink-2); }

/* Shared chart tooltip (liquid glass) */
.viz-tip { position: fixed; z-index: 200; pointer-events: none; max-width: 300px; padding: 10px 13px; border-radius: 14px 14px 14px 5px;
  background: color-mix(in srgb, var(--paper) 80%, transparent); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--line); box-shadow: var(--shadow-2); opacity: 0; transform: translateY(6px) scale(.97); transition: opacity .15s, transform .2s var(--spring); }
.viz-tip.on { opacity: 1; transform: none; }
.viz-tip b { display: block; font-size: 15px; color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.viz-tip .j { display: block; font-size: 12.5px; color: var(--ink-3); }
.sch-layer { pointer-events: none; }

/* Contact Us: the 👋 waves hello once (and again on hover) */
.wave-hand { display: inline-block; transform-origin: 72% 78%; animation: irl-wave 1.9s ease-in-out .7s both; }
.wave-hand:hover { animation: irl-wave-again 1.4s ease-in-out both; }
@keyframes irl-wave { 0%, 62%, 100% { rotate: 0deg; } 8% { rotate: 16deg; } 18% { rotate: -9deg; } 28% { rotate: 15deg; } 38% { rotate: -5deg; } 48% { rotate: 10deg; } }
@keyframes irl-wave-again { 0%, 62%, 100% { rotate: 0deg; } 8% { rotate: 16deg; } 18% { rotate: -9deg; } 28% { rotate: 15deg; } 38% { rotate: -5deg; } 48% { rotate: 10deg; } }
#join { scroll-margin-top: calc(var(--header-h) + 12px); }
