/* ===========================================================================
   Matt Martin — portfolio
   Branding stolen from spencergabor.work: geometric caps display, charcoal on
   white, ghost-gray secondary, small wide-tracked labels.
   Structure stolen from marco.fyi: single-column -> bento grid, big rounded
   light-gray cards, oversized clipped screenshots. Color comes from the shots.
   =========================================================================== */

:root {
  --paper: #ffffff;
  --ink: #2c2c2c;          /* primary text */
  --ink-soft: #6b6b6b;     /* secondary text */
  --ghost: #d2d2d2;        /* ghost headline / faint */
  --card: #f6f6f8;         /* card background */
  --card-2: #efeff2;       /* alt card / hover */
  --line: #e7e7ea;         /* hairlines */
  --accent: #2c2c2c;       /* kept monochrome; screenshots supply color */

  --maxw: 940px;
  --gap: 16px;
  --radius: 28px;
  --radius-sm: 18px;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-bottom: 96px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px; top: 12px;
  background: var(--ink); color: #fff;
  padding: 8px 14px; border-radius: 8px; z-index: 50;
}

/* --- Display type ---------------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 0.98;
}

/* --- Small labels (Spencer's wide-tracked uppercase) ---------------------- */
.label,
.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

/* --- Top bar --------------------------------------------------------------- */
.topbar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mark {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  font-weight: 600;
  font-size: 16px;
}
.mark-link {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color .15s ease;
}
.mark-link:hover { color: var(--ink); }

.socials {
  display: flex;
  gap: 18px;
  align-items: center;
}
.socials a {
  color: var(--ink-soft);
  display: inline-flex;
  text-decoration: none;
  transition: color .15s ease;
}
.socials a:hover { color: var(--ink); }
.socials svg { width: 20px; height: 20px; display: block; }

/* --- Layout shell ---------------------------------------------------------- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Each nav target is a section; they stack with the same gap as the bento. */
.section { margin-bottom: var(--gap); scroll-margin-top: 24px; }

/* --- Text cards (everything that isn't a work screenshot) ----------------- */
.card-text { background: var(--card); }
.card-pad { padding: 32px; }
.card-eyebrow {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin: 0 0 20px;
}
.card-head {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  margin: 0 0 18px;
  max-width: 22ch;
}
.card-para {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0 0 12px;
  max-width: 46ch;
}
.card-para:last-child { margin-bottom: 0; }

/* --- Hero ------------------------------------------------------------------ */
.hero { padding: 40px 0 64px; }
.hero .eyebrow { margin-bottom: 24px; }
.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 11vw, 5.6rem);
}
.hero .ghost { color: var(--ghost); display: inline; }
.role-line {
  margin: 28px 0 0;
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 34ch;
}

/* --- Bento grid: screenshot-first cards (Marco) ---------------------------- */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

/* Discipline badge: a hairline pill on each work card (Product / Marketing /
   Live). Sits top-left over the mock, always visible for at-a-glance scanning.
   Near-transparent frosted bg keeps it legible over both light and dark mocks. */
.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 9px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(7px) saturate(1.1);
  backdrop-filter: blur(7px) saturate(1.1);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--ink-soft);
}
.badge-pm .badge-dot { background: #3f6fd6; }        /* product management */
.badge-pmm .badge-dot { background: #d98324; }       /* product marketing */
.badge-live .badge-dot {
  background: #16a34a;                                /* live product */
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5);
  animation: badgePulse 2s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .badge-live .badge-dot { animation: none; }
}
@keyframes badgePulse {
  0%   { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* Memoji poking out the top of its card. It's a separate grid item sharing the
   card's cell (align-self:start) so it escapes the card's overflow:hidden and
   peeks above the top edge. pointer-events:none keeps the card fully clickable. */
.bento-memoji {
  align-self: start;
  justify-self: start;
  position: relative;
  width: 92px;
  height: auto;
  margin: -52px 0 0 20px;
  z-index: 6;
  pointer-events: none;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.22));
}
/* Small face memoji beside the name in the top bar. */
.mark-memoji {
  width: 45px;
  height: 45px;
  vertical-align: -13px;
  margin-right: 8px;
}

/* 404 page: centered shrug memoji + message. */
.notfound {
  max-width: 560px;
  margin: 0 auto;
  padding: 12vh 24px 20vh;
  text-align: center;
}
.notfound-memoji { width: 150px; height: auto; margin: 0 auto 8px; display: block; }
.notfound-code {
  font-family: var(--mono, monospace);
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  margin: 0 0 6px;
}
.notfound-head { margin: 0 0 12px; }
.notfound-body { color: var(--ink-soft); font-size: 1.1rem; margin: 0 0 28px; }
.notfound-btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.notfound-btn:hover { opacity: 0.9; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
  transition: transform .28s ease, box-shadow .28s ease;
}
/* Container tiles stay fixed (marco pattern): the hover lift + shadow lives
   on the inner UI mock, not the card. See ".card:hover <mock>" rules below. */

/* Full-bleed screenshot fills the top of the card. Color comes from here. */
.card .shot {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--card-2);
}
.card .shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .5s ease;
}
.card:hover .shot img { transform: scale(1.04); }

/* --- RoundRecall card: a scrollable phone mockup instead of a screenshot ---
   Real HTML/CSS rebuild of RoundRecall's actual dashboard (Biggest Leak +
   Scoring Shape + bottom nav), scaled ~0.6x. Colors/fonts/radii pulled
   directly from the app's own design tokens (app/globals.css,
   docs/design/design_handoff_dashboard/colors_and_type.css), not guessed.
   This is the one place on the page meant to look like a different product,
   on purpose — color comes from RoundRecall's own palette, not the shell.
   Scroll is native overflow, no JS. ------------------------------------- */
.card .shot.phone-shot {
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f6;
  padding: 24px 0;
}
/* Outer box: real iPhone proportions (19.5:9), holds the side buttons that
   hang off the frame. No chrome of its own — .phone-frame carries that. */
.phone {
  position: relative;
  width: 210px;
  height: 100%;
  max-height: 455px;
  aspect-ratio: 9 / 19.5;
}
.phone::before, .phone::after {
  content: "";
  position: absolute;
  background: #14201a;
}
.phone::before { /* power button, right side */
  right: -3px;
  top: 26%;
  width: 3px;
  height: 9%;
  border-radius: 0 2px 2px 0;
}
.phone::after { /* volume rocker, left side */
  left: -3px;
  top: 16%;
  width: 3px;
  height: 16%;
  border-radius: 2px 0 0 2px;
}
.phone-frame {
  --rr-font-display: "Bricolage Grotesque", var(--font-display);
  --rr-font-mono: "Martian Mono", monospace;
  --rr-font-body: "Hanken Grotesk", var(--font-body);
  position: relative;
  width: 100%;
  height: 100%;
  background: #f6f3ec;
  border-radius: 30px;
  border: 8px solid #14201a;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 48px rgba(0,0,0,0.2);
}
.phone-island {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 18px;
  background: #14201a;
  border-radius: 999px;
  z-index: 2;
}
.phone-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 32px 14px 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.phone-screen::-webkit-scrollbar { display: none; }
/* Every direct child must resist flex-shrink, otherwise the two rows that
   have overflow:hidden (pm-leak, pm-bar — needed for rounded clipping) get
   crushed toward 0 height instead of the column properly overflowing to
   scroll: an overflow:hidden flex item's automatic min-height is 0, so it's
   the first thing sacrificed when content doesn't fit. */
.phone-screen > * { flex-shrink: 0; }
/* Sizes/colors below are pulled from the live app's computed styles
   (getComputedStyle on the real Dashboard, not eyeballed from a screenshot),
   scaled ~0.6x. Letter-spacing is kept in em so it survives the scale. */
.pm-appbar {
  font-family: var(--rr-font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.02em;
  color: #14201a;
}
.pm-leak {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e4e0d5;
  border-radius: 10px;
  overflow: hidden;
}
.pm-leak-top {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: #cdf23e;
  padding: 10px 12px 11px;
}
.pm-eyebrow {
  font-family: var(--rr-font-mono);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(29,58,44,0.55);
}
.pm-leak-label { font-family: var(--rr-font-display); font-weight: 700; font-size: 14px; letter-spacing: -0.02em; color: #1d3a2c; }
.pm-leak-number { font-family: var(--rr-font-mono); font-weight: 700; font-size: 23px; letter-spacing: -0.03em; color: #1d3a2c; }
.pm-leak-number .pm-unit { font-family: var(--rr-font-mono); font-size: 8px; font-weight: 500; margin-left: 3px; color: rgba(29,58,44,0.62); }
.pm-leak-sub { font-family: var(--rr-font-body); font-size: 7px; color: rgba(29,58,44,0.78); line-height: 1.3; }
.pm-leak-strip {
  font-family: var(--rr-font-body);
  font-size: 7px;
  color: #8f978f;
  padding: 7px 12px;
  border-top: 1px solid #e4e0d5;
}
.pm-leak-strip b { font-weight: 600; color: #14201a; }
.pm-section {
  font-family: var(--rr-font-mono);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(20,32,26,0.5);
  margin-top: 2px;
}
.pm-stat { display: flex; align-items: baseline; gap: 5px; }
.pm-stat-num { font-family: var(--rr-font-mono); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; color: #1e8f59; }
.pm-stat.loss .pm-stat-num { color: #d5443b; }
.pm-stat-sub { font-family: var(--rr-font-body); font-size: 7px; color: #8f978f; }
.pm-bar { display: flex; width: 100%; height: 6px; border-radius: 999px; overflow: hidden; background: #e4e0d5; margin: 2px 0; }
.pm-bar-seg { height: 100%; }
.pm-rows { display: flex; flex-direction: column; }
.pm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--rr-font-body);
  font-size: 8px;
  color: rgba(20,32,26,0.82);
  padding: 4px 0;
  border-bottom: 1px solid #e4e0d5;
}
.pm-row:last-child { border-bottom: none; }
.pm-row-label { display: flex; align-items: center; gap: 4px; }
.pm-row-val { font-family: var(--rr-font-mono); font-weight: 700; color: #14201a; white-space: nowrap; }
.pm-row-target { font-size: 7px; font-weight: 500; color: rgba(20,32,26,0.35); margin-left: 3px; }
.pm-row-delta { font-size: 7px; font-weight: 600; margin-left: 3px; }
.pm-row-delta.up { color: #1e8f59; }
.pm-row-delta.flat { color: rgba(20,32,26,0.35); }
.pm-row-delta.down { color: #d5443b; }
.pm-dot { width: 5px; height: 5px; border-radius: 50%; display: inline-block; }
.dot-eagle { background: #1e8f59; }
.dot-birdie { background: rgba(30,143,89,0.7); }
.dot-par { background: rgba(20,32,26,0.25); }
.dot-bogey { background: #e07a3e; }
.dot-double { background: #d5443b; }

/* Bottom nav: rounded pill, raised center FAB, matches BottomNav.tsx */
.phone-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin: 0 10px 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #0b2e1e;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 20px -8px rgba(11,46,30,0.6);
  flex-shrink: 0;
}
.pn-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #7e978a;
}
.pn-item svg { width: 13px; height: 13px; }
.pn-item.active { color: #cdf23e; background: rgba(255,255,255,0.12); border-radius: 8px; }
.pn-fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-top: -14px;
  border-radius: 50%;
  background: #15784a;
  color: #f6f3ec;
  box-shadow: 0 8px 16px -4px rgba(11,46,30,0.55), 0 0 0 3px rgba(205,242,62,0.28);
}
.pn-fab svg { width: 15px; height: 15px; }

/* --- Optional Membership card: two real, clickable plan cards from
   Outschool's actual membership page, radio-style (click either to select
   it — you can pick a plan, same "optional" story the card is about).
   Values are computed styles pulled live off the real page (getComputedStyle
   on the actual pricing cards), not eyeballed. Ginto Normal/Nord are paid
   fonts; substituted with the shell's own body/display fonts. ------------ */
.card .shot.mem-shot {
  background: #f4f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px;
  position: relative;
}
.mem-mock {
  display: flex;
  gap: 12px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.mem-mock::-webkit-scrollbar { display: none; }
/* Carousel chevron: scrolls the tier row right to reveal the 248 / 500 plans,
   like Outschool's own membership carousel. Wired in public/script.js. */
.mem-scroll {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  color: #4b01d4;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
  transition: background .15s ease, box-shadow .15s ease, opacity .2s ease;
}
.mem-scroll svg { width: 16px; height: 16px; display: block; }
.mem-scroll-right { right: 12px; }
.mem-scroll-left { left: 12px; }
.mem-scroll:hover { background: #f4f4f6; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14); }
.mem-scroll.is-hidden { opacity: 0; pointer-events: none; }
.mem-card {
  flex: 0 0 auto;
  width: 178px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e0e0e0;
  padding: 16px 14px;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.mem-card.selected {
  border-color: #4b01d4;
  box-shadow: 0 0 3px rgba(0,0,0,0.04), 0 6px 14px rgba(0,0,0,0.08);
}
.mem-credits {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #262626;
  margin-bottom: 6px;
}
.mem-credits b { font-weight: 700; }
.mem-price-row { display: flex; flex-direction: column; margin-bottom: 12px; }
.mem-price {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: #262626;
}
.mem-price-sub { font-family: var(--font-body); font-size: 11px; font-weight: 500; color: #262626; }
.mem-strike { color: #767676; text-decoration: line-through; }
.mem-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  padding: 8px 14px;
  text-align: center;
}
.mem-btn.primary { background: #4b01d4; color: #fff; }
.mem-btn.outline { background: #fff; color: #4b01d4; border: 1.5px solid #b4befe; }
.mem-hr { border: none; border-top: 1px solid rgba(0,0,0,0.12); margin: 14px 0; }
.mem-bullets { display: flex; flex-direction: column; gap: 8px; }
.mem-bullet {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 10.5px;
  line-height: 1.4;
  color: #262626;
}
.mem-bullet b { font-weight: 700; }
.mem-bullet-text { flex: 1; min-width: 0; }
.mem-dot { color: #4caf50; flex-shrink: 0; }
.mem-link { color: #4b01d4; }

/* --- Signup Rebuild card: a real, clickable fragment of the interest-picker
   quiz, not a full screen. Values below are computed styles pulled live off
   the actual Outschool quiz (getComputedStyle, same method as RoundRecall) —
   purple #4b01d4, white/#e0e0e0 unselected, 999px pill, "Ginto Normal"
   (licensed; substituted with the shell's own body font). Sits as a single
   white card floating on the grey shot backdrop, matching the Optional
   Membership treatment (marco.fyi's own widget-on-grey-canvas pattern).
   ------------------------------------------------------------------------ */
.card .shot.quiz-shot {
  background: #f4f4f6;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
}
.quiz-mock {
  width: 100%;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  padding: 18px 20px;
  /* Composable transform: --ms (responsive scale) × --ml (hover lift), so the
     hover lift stacks on top of the breakpoint scale instead of clobbering it. */
  transform: scale(var(--ms, 1)) translateY(var(--ml, 0px));
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease;
}
.card:hover .quiz-mock {
  --ml: -10px;
  box-shadow: 0 20px 44px -14px rgba(18, 20, 28, 0.20),
    0 6px 16px -6px rgba(18, 20, 28, 0.10);
}
.qm-label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: #262626;
  line-height: 1.3;
  margin-bottom: 12px;
  max-width: 92%;
}
.qm-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.qm-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: #000;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.qm-chip:hover:not(.selected) { border-color: #4b01d4; }
.qm-chip:focus-visible { outline: 2px solid #4b01d4; outline-offset: 2px; }
.qm-chip.selected {
  background: #4b01d4;
  border-color: #4b01d4;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(97,97,242,0.35);
}
.qm-icon { width: 16px; height: 16px; flex-shrink: 0; }
.qm-x { width: 13px; height: 13px; flex-shrink: 0; display: none; }
.qm-chip.selected .qm-x { display: inline-flex; }

/* Thin text strip below the image. Short label + one line. */
.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  padding: 18px 22px 22px;
}
.card-text-inline { display: flex; flex-direction: column; }
.card-label {
  font-size: clamp(1.25rem, 4.4vw, 1.7rem);
  line-height: 1;
}
.card-tagline {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 30ch;
}
.card-meta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.org {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.arrow {
  font-size: 18px;
  color: var(--ink-soft);
  transition: transform .25s ease, color .25s ease;
}
.card:hover .arrow { transform: translateX(4px); color: var(--ink); }

/* Placeholder tile: a calm coming-soon slot for the next portfolio item. */
.card-placeholder {
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px dashed var(--line);
}
.placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  opacity: 0.55;
}
.placeholder-plus { font-size: 30px; line-height: 1; font-weight: 300; }
.placeholder-label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
}

/* --- Ask-AI / footer ------------------------------------------------------- */
.ask-ai {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px 72px;
  border-top: 1px solid var(--line);
}
.ask-sub { color: var(--ink-soft); margin: 0 0 16px; }

/* --- Contact tiles: email + LinkedIn as their own app-style bento cards,
   stolen from marco.fyi's per-channel contact tiles (his SuperHuman/Twitter
   cards). No avatar photo — the rest of the site never uses one, so adding
   a face here just for these two tiles would break that. Hover shifts each
   tile's own color, same idea as his blue Twitter card deepening on hover. */
.contact-tile { text-decoration: none; color: inherit; }
.contact-tile-pad {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 190px;
}
.contact-tile-head { display: flex; flex-direction: column; gap: 2px; padding-right: 48px; }
.contact-tile-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.contact-tile-handle { font-size: 0.85rem; opacity: 0.7; }
.app-icon {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.app-icon svg { width: 22px; height: 22px; }
.contact-tile-btn {
  flex-shrink: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 16px 18px;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

/* Mail tile: light card, Mail.app-style icon badge, mail-compose preview */
.mail-tile { background: #fbfbfd; transition: background .2s ease; }
.mail-tile:hover { background: #eef4ff; }
.mail-icon { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 0 0 1px var(--line); }
.mail-compose {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid #3b82f6;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
}
.mail-compose p { margin: 0; }
.mail-compose-row { color: var(--ink-soft); margin-bottom: 6px !important; }
.mail-compose-label { font-weight: 600; color: var(--ink); }
.mail-compose-subject { font-weight: 600; margin-bottom: 4px !important; }
.mail-compose-body { color: var(--ink-soft); }
.mail-tile .contact-tile-btn { background: var(--ink); color: #fff; }
.mail-tile:hover .contact-tile-btn { background: #3b82f6; }

/* LinkedIn tile: grey at rest with an avatar left of the name (marco's Twitter
   card), flips to brand-blue on hover. */
.linkedin-tile { background: var(--card); color: var(--ink); transition: background .2s ease, color .2s ease; }
.linkedin-tile:hover { background: #0a66c2; color: #fff; }
.linkedin-tile .contact-tile-head { flex-direction: row; align-items: center; gap: 11px; padding-right: 48px; }
.linkedin-tile .contact-tile-headtext { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.linkedin-tile .contact-tile-handle { opacity: 0.7; }
.contact-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #0a66c2;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 0 0 1px var(--line);
}
.contact-avatar img { width: 100%; height: 100%; object-fit: cover; }
/* Memoji avatar: show the whole figure (arm + wave), not a cropped circle. */
.contact-avatar-memoji { background: #eef1f5; }
.contact-avatar-memoji img { object-fit: contain; }
/* Icon badge: blue on the grey rest state, inverts to white on the blue hover. */
.linkedin-icon { background: #0a66c2; color: #fff; transition: background .2s ease, color .2s ease; }
.linkedin-icon svg { width: 22px; height: 22px; }
.linkedin-tile:hover .linkedin-icon { background: #fff; color: #0a66c2; }
.linkedin-bio { font-size: 1.05rem; line-height: 1.4; margin: 0; }
.linkedin-tile .contact-tile-btn { background: var(--ink); color: #fff; transition: background .15s ease, color .15s ease; }
.linkedin-tile:hover .contact-tile-btn { background: #fff; color: #0a66c2; }

/* --- Search by Learner card: real, clickable learner picker lifted from
   Outschool's actual search bar dropdown (getComputedStyle on the live
   page). Purple #4b01d4 / lavender #e0e5ff chip-and-row tokens are exact,
   same method as the other three mocks. Click a learner row to select it
   (radio-style) — updates the checkmark and the search-bar chip, the same
   interaction the real dropdown does. Top-anchored crop, not horizontal
   bleed, so nothing ever cuts through a word. -------------------------- */
.card .shot.learner-shot {
  background: #f4f4f6;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
}
.learner-mock {
  width: 100%;
  max-width: 300px;
  transform: scale(var(--ms, 1)) translateY(var(--ml, 0px));
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease;
}
.card:hover .learner-mock {
  --ml: -10px;
}
.lm-searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid #e5e5e5;
  border-radius: 999px;
  padding: 6px 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.lm-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e0e5ff;
  color: #23055b;
  border-radius: 999px;
  padding: 5px 10px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.lm-chip-chevron { font-size: 8px; }
.lm-chip-avatar, .lm-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}
.lm-chip-avatar { width: 15px; height: 15px; font-size: 8px; }
.lm-avatar { width: 26px; height: 26px; font-size: 11px; }
.avatar-matt { background: #e0703e; }
.avatar-sav { background: #2a9d6f; }
.lm-search-text {
  flex: 1;
  font-family: var(--font-body);
  font-size: 12px;
  color: #a3a3a3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lm-search-icon { color: #767676; flex-shrink: 0; }
.lm-search-icon svg { width: 14px; height: 14px; }
.lm-dropdown {
  display: block;
  margin-top: 6px;
  background: #fff;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
}
.lm-all { display: block; padding: 8px 12px 8px 46px; border-bottom: 1px solid #eee; }
.lm-all-title { display: block; font-family: var(--font-display); font-size: 13px; font-weight: 600; color: #000; }
.lm-all-sub { display: block; font-family: var(--font-body); font-size: 10px; color: #5c5c5c; margin-top: 1px; }
.lm-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background .12s ease;
}
.lm-row.selected { background: #e0e5ff; }
.lm-row:hover:not(.selected) { background: #f7f7f9; }
.lm-row-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.lm-row-name { font-family: var(--font-body); font-size: 11px; font-weight: 600; color: #23055b; }
.lm-row-count { font-weight: 400; color: #767676; }
.lm-row-profile { font-family: var(--font-body); font-size: 9.5px; color: #767676; }
.lm-check { color: #4b01d4; font-weight: 700; font-size: 12px; flex-shrink: 0; opacity: 0; }
.lm-row.selected .lm-check { opacity: 1; }
.lm-add {
  display: block;
  padding: 7px 12px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: #4b01d4;
  cursor: pointer;
}

/* --- Dashboard Rebuild card: the real Outschool account dashboard (learner
   tabs, sidebar nav, status tabs, empty state), same pixel-match method as
   the other three mocks. This is the same page the Search by Learner
   dropdown sits on top of — the two cards are literally the same screen
   from different angles. Click a sidebar item or a status tab to see it
   highlight, demonstrating "every core job is one click away" directly
   rather than just claiming it in the tagline. ------------------------- */
.card .shot.dash-shot {
  background: #f4f4f6;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
}
.dash-mock {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  padding: 16px 18px;
  transform: scale(var(--ms, 1)) translateY(var(--ml, 0px));
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease;
}
.card:hover .dash-mock {
  --ml: -10px;
  box-shadow: 0 20px 44px -14px rgba(18, 20, 28, 0.20),
    0 6px 16px -6px rgba(18, 20, 28, 0.10);
}
.dash-learnertabs { display: flex; gap: 8px; }
.dt-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0f2ff;
  color: #000;
  border-radius: 12px;
  padding: 7px 13px;
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  transition: background .12s ease;
}
.dt-pill:hover:not(.selected) { background: #e6e9ff; }
.dt-pill.selected { background: #4b01d4; color: #fff; }
.dt-sub { font-size: 10.5px; color: rgba(255,255,255,0.7); }
.dash-body { display: flex; gap: 20px; }
.dash-sidebar { display: flex; flex-direction: column; gap: 7px; flex-shrink: 0; width: 108px; padding-top: 2px; }
.ds-item {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  color: #5c5c5c;
  cursor: pointer;
  padding: 5px 8px;
  margin: 0 -8px;
  border-radius: 7px;
  transition: background .12s ease;
}
.ds-item:hover { background: #f0f0f2; }
.ds-item.active { font-weight: 700; color: #000; }
.dash-panel {
  flex: 1;
  min-width: 0;
  border-left: 1px solid #eee;
  padding-left: 20px;
}
.dp-title { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 500; color: #262626; margin-bottom: 12px; }
.dp-tabs { display: flex; gap: 7px; margin-bottom: 16px; }
.dp-tab {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: #1a1a1a;
  background: #ebebeb;
  border-radius: 5px;
  padding: 8px 10px;
  cursor: pointer;
  transition: background .12s ease;
}
.dp-tab:hover:not(.selected) { background: #e0e0e4; }
.dp-tab.selected { background: #e0e5ff; }
.dp-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 0 4px; text-align: center; }
.dp-empty-text { font-family: var(--font-body); font-size: 13px; font-weight: 500; color: #1a1a1a; }
.dp-browse {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: #4b01d4;
  background: #fff;
  border: 1.5px solid #b4befe;
  border-radius: 999px;
  padding: 9px 20px;
}

/* --- Built This Site card: unlike the other four mocks, there's no
   external page to pixel-match here — the source of truth is this very
   codebase. A tiny, structurally-accurate recreation of the site's own
   bento layout (topbar, hero, about tiles, a swatch of each work card's
   accent color, the floating nav pill), using the real --card/--line/
   --radius tokens. Every span gets an explicit display: the learner-picker
   bug (an un-blockified inline span rendering as a fragmented ghost box)
   is exactly the kind of mistake this guards against. ------------------- */
.card .shot.site-shot {
  background: #f4f4f6;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
}
.site-mock {
  display: block;
  width: 100%;
  max-width: 280px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  transform: scale(var(--ms, 1)) translateY(var(--ml, 0px));
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease;
}
.card:hover .site-mock {
  --ml: -10px;
  box-shadow: 0 20px 44px -14px rgba(18, 20, 28, 0.20),
    0 6px 16px -6px rgba(18, 20, 28, 0.10);
}
.sm-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sm-mark { font-family: var(--font-display); font-size: 9px; font-weight: 700; letter-spacing: 0.02em; color: var(--ink); }
.sm-links { display: flex; gap: 4px; }
.sm-dot { display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--ghost); }
.sm-hero {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--card);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
}
.sm-row { display: flex; gap: 8px; margin-bottom: 8px; }
.sm-tile {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  background: var(--card);
  border-radius: 8px;
  padding: 8px 10px;
}
.sm-line { display: block; height: 3px; border-radius: 2px; background: var(--ghost); }
.sm-line.w90 { width: 90%; }
.sm-line.w70 { width: 70%; }
.sm-line.w60 { width: 60%; }
.sm-line.w50 { width: 50%; }
.sm-line.w40 { width: 40%; }
.sm-swatch { display: block; flex: 1; height: 22px; border-radius: 6px; }
.sm-lime { background: #cdf23e; }
.sm-purple { background: #4b01d4; }
.sm-orange { background: #e0703e; }
.sm-blue { background: #0a66c2; }
.sm-fab {
  display: block;
  width: 46px;
  height: 12px;
  margin: 4px auto 0;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
}

/* --- Sales-tax card: a live rebuild of Outschool's checkout panel with the
   sales-tax line added under the marketplace fee (the value is illustrative —
   Matt's state has no sales tax). -------------------------------------------- */
.card .shot.tax-shot {
  background: #f4f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 18px;
}
.tax-mock {
  width: 100%;
  max-width: 300px;
  background: #f3f2fb;
  border-radius: 12px;
  padding: 15px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-body);
  transform: scale(var(--ms, 1)) translateY(var(--ml, 0px));
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease;
}
.tax-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 12px;
  color: #1a1a1a;
}
.tax-val { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tax-discount { color: #1a8a4a; }
.tax-new {
  background: #fff6d6;
  border-radius: 6px;
  margin: 0 -6px;
  padding: 4px 6px;
}
.tax-new .tax-label, .tax-new .tax-val { font-weight: 600; }
.tax-hr { height: 1px; background: #dad8ea; margin: 3px 0; }
.tax-total { font-weight: 700; font-size: 13px; }

/* --- Kajabi card: three product tiles (Coaching / Newsletters / Podcasts) in
   Kajabi's minimal black-on-light menu style. --------------------------------- */
.card .shot.kaj-shot {
  background: #f4f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
}
.kaj-mock {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-body);
  transform: scale(var(--ms, 1)) translateY(var(--ml, 0px));
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease;
}
.kaj-head { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 2px; }
.kaj-mark { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: #0a0a0a; }
.kaj-logo { width: 18px; height: 18px; border-radius: 5px; background: #0a0a0a; flex-shrink: 0; }
.kaj-eyebrow { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 9px; font-weight: 500; color: #9a9a9a; }
.kaj-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #e6e6e9;
  border-radius: 12px;
  padding: 13px 14px;
  transition: background .14s ease, border-color .14s ease;
}
.kaj-tile:hover { background: #f0f0f2; border-color: #dcdce1; }
.kaj-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #f2f2f4;
  color: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kaj-icon svg { width: 18px; height: 18px; }
.kaj-tiletext { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.kaj-name { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: #0a0a0a; }
.kaj-desc { font-size: 11px; color: #6b6b6b; line-height: 1.3; }
.kaj-go { flex-shrink: 0; color: #0a0a0a; font-size: 16px; }

/* --- Tutoring card: compact Outschool tutoring hero (headline + rating +
   search bar). --------------------------------------------------------------- */
.card .shot.tut-shot {
  background: #f4f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px 24px;
}
.tut-mock {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-body);
  transform: scale(var(--ms, 1)) translateY(var(--ml, 0px));
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease;
}
.tut-head { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.1; color: #0e0e1a; }
.tut-accent { color: #4b01d4; }
.tut-rating { font-size: 11px; color: #4a4a4a; display: flex; align-items: center; gap: 6px; }
.tut-stars { color: #f5a623; letter-spacing: 1px; }
.tut-searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  padding: 5px 5px 5px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.tut-search-icon { color: #767676; display: flex; }
.tut-search-icon svg { width: 15px; height: 15px; }
.tut-search-text { flex: 1; font-size: 12.5px; color: #a3a3a3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tut-search-btn {
  flex-shrink: 0;
  background: #4b01d4;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12.5px;
  padding: 9px 16px;
  border-radius: 999px;
}

/* --- Landing-page card: compact Outschool landing hero (headline + bullets +
   CTA, playful hero blob). --------------------------------------------------- */
.card .shot.land-shot {
  background: #eef0fb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px 24px;
}
.land-mock {
  width: 100%;
  max-width: 460px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-body);
  transform: scale(var(--ms, 1)) translateY(var(--ml, 0px));
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease;
}
.land-left { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.land-crumb { font-size: 10px; color: #7a7a8a; }
.land-head { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.12; color: #1a1a2e; }
.land-bullets { display: flex; flex-direction: column; gap: 4px; }
.land-bullet { font-size: 11px; color: #4a4a5a; padding-left: 15px; position: relative; }
.land-bullet::before { content: ""; position: absolute; left: 0; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: #4b01d4; }
.land-cta {
  align-self: flex-start;
  margin-top: 3px;
  background: #4b01d4;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12.5px;
  padding: 9px 18px;
  border-radius: 999px;
}
.land-right { position: relative; flex-shrink: 0; width: 120px; height: 120px; }
.land-blob { position: absolute; border-radius: 50%; }
.land-blob-yellow { width: 88px; height: 88px; background: #ffcf3f; left: 6px; top: 20px; }
.land-blob-purple { width: 44px; height: 44px; background: #4b01d4; right: 0; top: 2px; }
.land-photo {
  position: absolute;
  left: 20px;
  top: 8px;
  width: 84px;
  height: 100px;
  border-radius: 10px;
  background: linear-gradient(150deg, #c9d4e8, #9aa9c8);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.land-heart {
  position: absolute;
  left: -4px;
  bottom: 6px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ef5b34;
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.ai-btn {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease, border-color .15s ease;
}
.ai-btn:hover { background: var(--card-2); border-color: var(--ghost); }
.ai-btn:active { transform: translateY(1px); }
.ask-note { min-height: 1.2em; margin: 14px 0 0; color: var(--ink-soft); font-size: 0.9rem; }

.foot-meta {
  max-width: var(--maxw);
  margin: 24px auto 0;
  padding: 0 24px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
}
.foot-meta a { text-decoration: none; }
.foot-meta a:hover { text-decoration: underline; }
.dot { margin: 0 8px; color: var(--ghost); }

/* --- Floating nav (FAB pill) ---------------------------------------------- */
.fab {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border: 0.5px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.14);
  z-index: 40;
}
.fab a {
  position: relative;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 9px 18px;
  border-radius: 999px;
  transition: background .18s ease, color .18s ease;
}
.fab a:hover { color: var(--ink); }
.fab a.active {
  color: var(--ink);
  background: var(--card);
}
.fab a.active::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e0503a;
  transform: translateY(-50%);
}
.fab a.active { padding-left: 22px; }

/* --- Detail / article pages ------------------------------------------------ */
.article {
  max-width: 720px;
  padding-top: 12px;
}
.article-head { padding: 30px 0 8px; }
.article-head h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 8vw, 3.2rem);
}
.article-stat {
  margin: 0 0 18px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.article-stat-num { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.article .lede {
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--ink);
  max-width: 40ch;
}
/* Hero at the top of the story: large rounded image or embedded video. */
.article-hero {
  margin: 8px 0 4px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.12);
}
.article-hero-media { display: block; width: 100%; height: auto; }
.article-hero-embed { position: relative; aspect-ratio: 16 / 9; }
.article-hero-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Two screenshots side by side in the hero slot (bento-style). Stacks on mobile. */
.article-hero-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 8px 0 4px;
  align-items: start;
}
.article-hero-pair .article-hero-tile { margin: 0; }
@media (max-width: 640px) {
  .article-hero-pair { grid-template-columns: 1fr; }
}

.article-section { padding: 26px 0; }
.article-section h2 { margin-bottom: 14px; }
.article-section p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 16px;
  max-width: 62ch;
}
.article-gallery { display: grid; gap: 16px; margin: 24px 0; }
.article-gallery img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.article-gallery figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-top: 8px; }

.article-cta { margin: 32px 0 0; }
.article-cta a {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 3px;
}
.article-back { margin: 56px 0 20px; border-top: 1px solid var(--line); padding-top: 28px; }
.article-back a {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  text-decoration: none;
  color: var(--ink-soft);
}
.article-back a:hover { color: var(--ink); }

/* --- Steal page: prompt blocks with a copy button -------------------------- */
.prompt-block {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--card);
}
.prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.prompt-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: var(--ink-soft);
}
.prompt-block pre {
  margin: 0;
  padding: 18px;
  max-height: 340px;
  overflow: auto;
  white-space: pre-wrap;
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink);
}

/* --- Reveal on scroll ------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

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

/* ===========================================================================
   Desktop: single column becomes a bento (Marco). Comfortable centered column,
   not a new layout.
   =========================================================================== */
@media (min-width: 720px) {
  .bento {
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: dense;
  }
  /* sizing: sm/md = 1 column (screenshot on top), lg/xl = full width feature
     with the screenshot beside the text, tall = 1 column x 2 rows (portrait). */
  .card-sm  { grid-column: span 1; }
  .card-md  { grid-column: span 1; }
  .card-lg,
  .card-xl  { grid-column: span 2; }
  .card-tall { grid-column: span 1; grid-row: span 2; }
  /* only work (screenshot) cards go side-by-side; text cards stay stacked */
  .card-lg:not(.card-text),
  .card-xl:not(.card-text) { flex-direction: row; align-items: stretch; min-height: 340px; }

  .card-lg .shot,
  .card-xl .shot { width: 60%; aspect-ratio: auto; height: auto; }
  .card-lg .card-foot,
  .card-xl .card-foot {
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 18px;
    padding: 32px;
  }
  .card-lg .card-label,
  .card-xl .card-label { font-size: 2rem; }

  /* Work: one unified bento mosaic (Marco), intro tile folded in top-left.
     Placement is explicit via named grid-areas (see projects.js `area`). This
     2-col arrangement is the tablet fallback; the full 4-col mosaic kicks in
     at >=1080 below. Shots flex to fill their tile height (no fixed aspect). */
  .work-bento {
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: row;
    grid-auto-rows: minmax(210px, auto);
    grid-template-areas:
      "intro intro"
      "memb  memb"
      "quiz  quiz"
      "dash  dash"
      "phone tax"
      "phone learn"
      "kaj   kaj"
      "tut   tut"
      "land  land";
  }
  .work-bento .card .shot { aspect-ratio: auto; flex: 1; min-height: 0; }
  .work-bento .phone-shot { padding: 20px 0; }

  /* Wide tile (dashboard): mock beside text, matching its short-landscape mock. */
  .card-wide { flex-direction: row; align-items: stretch; }
  .card-wide .shot { width: 58%; flex: 0 0 58%; }
  .card-wide .card-foot {
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
    padding: 28px;
  }
  .card-wide .card-label { font-size: 2rem; }
}

/* Work bento: full 4-col mosaic. 11 tiles fill a 4x7 grid exactly, spans matched
   to each card's shape (phone tall; intro/memb/kaj/dash 2x2 blocks; quiz/tut/land
   wide-short; tax/learn small; place closes the bottom row). */
@media (min-width: 1080px) {
  .work-bento {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: var(--work-row, 250px);
    grid-template-areas:
      "intro intro memb  memb"
      "intro intro quiz  quiz"
      "phone dash  dash  tax"
      "phone dash  dash  learn"
      "kaj   kaj   tut   tut"
      "kaj   kaj   land  land";
  }

  /* All mocks centered v+h (specificity ties the per-mock ".card .shot.x-shot"
     rules; later in the cascade wins). */
  .work-bento .card .shot { align-items: center; justify-content: center; }
}

/* ==========================================================================
   Bento v2 work-card interaction (hover-capable, >=720). At rest a card shows
   only its mock, bottom-anchored and floating off the bottom edge; on hover the
   mock lifts (the phone rotates upright) + shadows, and the caption reveals as a
   scrim overlay. Touch / mobile keep the caption visible (no :hover branch).
   ========================================================================== */
@media (hover: hover) and (min-width: 720px) {
  /* Caption: bottom scrim overlay, hidden until hover. */
  .work-bento a.card .card-foot {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 3;
    padding: 24px 22px 20px;
    background: linear-gradient(to top,
      var(--card) 34%, rgba(246, 246, 248, 0.82) 68%, rgba(246, 246, 248, 0));
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .26s ease, transform .26s ease;
    pointer-events: none;
  }
  .work-bento a.card:hover .card-foot { opacity: 1; transform: translateY(0); }
  .work-bento a.card .card-label { font-size: 1.4rem; line-height: 1.08; }
  .work-bento a.card .card-tagline { font-size: 0.9rem; margin-top: 6px; }

  /* Hover-hint arrow, top-right; fades out on hover. */
  .work-bento .hover-hint {
    position: absolute;
    top: 14px; right: 16px;
    z-index: 4;
    font-size: 19px;
    line-height: 1;
    color: var(--ink-soft);
    opacity: 0.45;
    transition: opacity .2s ease;
    pointer-events: none;
  }
  .work-bento a.card:hover .hover-hint { opacity: 0; }

  /* Give the mocks that lack it the composable transform (the four white-card
     mocks already have scale(--ms)*translateY(--ml) from earlier). */
  .work-bento .mem-mock {
    transform: scale(var(--ms, 1)) translateY(var(--ml, 0px));
    transition: transform .34s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease;
  }
  .work-bento .phone {
    transform: rotate(var(--rot, 0deg)) translateX(var(--tx, 0px)) scale(var(--ms, 1)) translateY(var(--ml, 0px));
    transition: transform .42s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease;
    transform-origin: center center;
  }
  /* Phone rests tilted + slightly oversized so its corners run past the tile
     edges; the tile CLIPS them (overflow hidden, like marco) so the phone tucks
     BEHIND the container edge rather than floating on top. Hover straightens it. */
  .work-bento .phone { --rot: -12deg; --tx: 0px; --ms: 1.12; }

  /* Hover: lift up (+ shadow on the solid white-card mocks only). */
  .work-bento a.card:hover .quiz-mock,
  .work-bento a.card:hover .dash-mock,
  .work-bento a.card:hover .tax-mock,
  .work-bento a.card:hover .site-mock {
    --ml: -10px;
    box-shadow: 0 20px 44px -14px rgba(18, 20, 28, 0.22),
      0 6px 16px -6px rgba(18, 20, 28, 0.10);
  }
  .work-bento a.card:hover .mem-mock { --ml: -6px; }
  .work-bento a.card:hover .learner-mock,
  .work-bento a.card:hover .kaj-mock,
  .work-bento a.card:hover .tut-mock,
  .work-bento a.card:hover .land-mock { --ml: -8px; }
  .work-bento a.card:hover .phone { --rot: 0deg; --tx: 0px; --ms: 1.0; --ml: -8px; }
}

@media (min-width: 960px) {
  :root { --radius: 32px; }
}

/* --- Large desktop: scale up like marco.fyi does past ~1400px, instead of
   just adding side margins around the same small layout. ------------------ */
@media (min-width: 1400px) {
  :root {
    --maxw: 1240px;
    --gap: 20px;
  }
  .card-head { font-size: clamp(1.6rem, 5vw, 2.8rem); }
  .hero h1 { font-size: clamp(2.6rem, 11vw, 6.6rem); }
  .card-lg .card-label,
  .card-xl .card-label { font-size: 2.3rem; }
  .work-bento { --work-row: 285px; }

  .number.big { font-size: clamp(3.4rem, 16vw, 8rem); }
  .article-head h1 { font-size: clamp(2rem, 8vw, 3.6rem); }
  .article .lede { font-size: 1.4rem; }
  .article-section p { font-size: 1.2rem; }

  /* Card title/tagline strip under every work screenshot, not just lg/xl. */
  .card-label { font-size: clamp(1.25rem, 4.4vw, 2rem); }
  .card-tagline { font-size: 1.05rem; }

  /* Per-tile mock scale via --ms (composes with the hover-lift --ml, and the
     phone's --rot). Values matched to each tile's size in the v2 mosaic. */
  /* All mocks centered v+h now (origin center); scale tuned per tile. */
  .phone { --ms: 1.0; }
  .mem-mock { --ms: 0.93; transform-origin: center; }
  .quiz-mock { width: 100%; --ms: 1.0; transform-origin: center; }
  .card .shot.learner-shot { padding: 0 20px; }
  .learner-mock { --ms: 1.0; transform-origin: center; }
  .dash-mock { --ms: 1.15; transform-origin: center; }
  .tax-mock { --ms: 0.9; transform-origin: center; }
  .kaj-mock { --ms: 1.15; transform-origin: center; }
  .tut-mock { --ms: 1.05; transform-origin: center; }
  .land-mock { --ms: 1.05; transform-origin: center; }
}

/* --- Very large / hi-res displays: the layout caps at a comfortable reading
   width, so on big monitors it can read small (a thin strip of content). Scale
   the whole page up proportionally on very wide viewports — the code equivalent
   of nudging browser zoom, so fonts AND the px-based mocks grow together. Kicks
   in only past normal desktop widths, so 1080p/1440p/4K-at-2x are untouched. */
@media (min-width: 2000px) { :root { zoom: 1.35; } }
@media (min-width: 2600px) { :root { zoom: 1.7; } }
@media (min-width: 3300px) { :root { zoom: 2.1; } }

/* ==========================================================================
   Mobile (< 720px): single-column stack. Each work card shows its mock in a
   flexible-height shot with the caption in-flow below (no hover on touch), and
   the wider mocks are scaled down to fit the phone width instead of clipping.
   ========================================================================== */
@media (max-width: 719px) {
  html, body { overflow-x: hidden; }

  /* The work cards carry inline `grid-area` names for the desktop mosaic; at
     mobile there are no named areas, so grid would pile them all into one cell.
     Stack them as a flex column instead (ignores grid-area, flows in DOM order). */
  .work-bento { display: flex; flex-direction: column; }

  /* Work-card mock area: height wraps the mock (no 4:3 crop), centered. */
  .work-bento .card .shot {
    aspect-ratio: auto;
    padding: 26px 16px;
    align-items: center;
    justify-content: center;
  }
  .work-bento .phone-shot { aspect-ratio: auto; min-height: 440px; padding: 16px 0; }
  .work-bento .hover-hint { display: none; }
  .work-bento a.card .card-label { font-size: 1.35rem; }

  /* Mocks wider than the phone: scale the whole thing down with `zoom` (which
     shrinks the layout box too, unlike transform), so each is a true smaller
     copy of the desktop mock — filling its card, no reserved empty space. The
     narrower mocks (membership/signup/tax/search/phone) already fit as-is. */
  .dash-mock { zoom: 0.66; }
  .tut-mock { zoom: 0.7; }
  .kaj-mock { zoom: 0.82; }
  .land-mock { zoom: 0.66; }

  .mem-scroll { width: 30px; height: 30px; }
}
