/* Dark editorial portfolio — aligned with Chaachie-style references */
:root {
  --bg: #000000;
  --text: #ffffff;
  --text-dim: #a3a3a3;
  --text-muted: #737373;
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.06);
  --accent-green: #3ddc84;
  --accent-blue: #5eb0ff;
  --accent-pink: #ff4d8d;
  --accent-orange: #ff6b35;
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1100px;
  --max-wide: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* White heart cursor — home + about (`page--heart-cursor` in app.js route) */
body.page--heart-cursor,
body.page--heart-cursor * {
  cursor:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24'%3E%3Cg stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round'%3E%3Cline x1='12' y1='3.5' x2='12' y2='20.5'/%3E%3Cline x1='3.5' y1='12' x2='20.5' y2='12'/%3E%3Cline x1='5.6' y1='5.6' x2='18.4' y2='18.4'/%3E%3Cline x1='18.4' y1='5.6' x2='5.6' y2='18.4'/%3E%3C/g%3E%3C/svg%3E")
      11 11,
    auto !important;
}

/* —— Header —— */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}

.site-head__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 1.1rem clamp(1.25rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 1;
}

.brand__mark {
  flex-shrink: 0;
  color: var(--text);
  display: block;
}

.brand__mark-inner,
.brand__echo-wrap {
  transform-box: fill-box;
  transform-origin: 50% 55%;
  transition: transform 0.5s cubic-bezier(0.25, 0.85, 0.2, 1);
}

.brand:hover .brand__mark-inner {
  transform: translateY(-0.5px) scale(1.035);
}

.brand:hover .brand__echo-wrap {
  transform: translate(1.1px, 1.35px);
}

.brand__echo,
.brand__letters {
  font-family: var(--font-sans);
  font-size: 14.75px;
  font-weight: 600;
  font-style: italic;
  font-variation-settings: "wght" 600, "opsz" 14;
  letter-spacing: -0.102em;
  text-rendering: geometricPrecision;
}

.brand__echo {
  fill: rgba(255, 255, 255, 0.065);
  pointer-events: none;
}

.brand__letter-m {
  font-weight: 580;
  font-variation-settings: "wght" 580, "opsz" 14;
}

.brand__letter-d {
  font-weight: 700;
  font-variation-settings: "wght" 700, "opsz" 14;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav__link {
  font-size: 0.875rem;
  font-weight: 450;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav__link:hover {
  color: var(--text);
}

.site-nav__link.is-active {
  color: var(--text);
}

/* —— Main —— */
.main {
  --main-pad-x: clamp(0.85rem, 2.8vw, 1.35rem);
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.25rem) var(--main-pad-x)
    clamp(2.5rem, 6vw, 4.25rem);
}

/* —— Hero (serif + color italics + hover blurbs) —— */
.hero-wrap {
  container-type: inline-size;
  position: relative;
  text-align: center;
  /* Bleed into main horizontal padding so hero uses full content band width */
  margin: 0 calc(-1 * var(--main-pad-x, 0px)) clamp(1.75rem, 4vw, 2.75rem);
  width: calc(100% + 2 * var(--main-pad-x, 0px));
  max-width: none;
  padding-bottom: clamp(2rem, 5vw, 3.25rem);
  padding-inline: clamp(0.2rem, 1.2vw, 0.6rem);
  box-sizing: border-box;
}

.hero-intro {
  font-family: var(--font-serif);
  /* Fallback; cqi tracks hero width so two nowrap rows fit without clipping */
  font-size: clamp(1.55rem, 3.5vw, 3.06rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
  /* Vertical gutter for top/bottom blurbs */
  padding: clamp(4.5rem, 11vw, 6.25rem) clamp(0.35rem, 1.2vw, 0.85rem);
  box-sizing: border-box;
  max-width: none;
  width: 100%;
}

@supports (font-size: 1cqi) {
  .hero-intro {
    /* ~3.4% of hero width → two long nowrap rows fit before hitting max */
    font-size: clamp(1.42rem, 3.4cqi, 3.06rem);
  }
}

@media (min-width: 640px) {
  .hero-intro .hero-row {
    white-space: nowrap;
  }
}

.hero-name {
  font-style: italic;
  font-weight: 600;
  color: var(--text);
  transition: color 0.22s ease;
}

.hero-star {
  color: var(--accent-orange);
  font-style: normal;
  font-weight: 500;
  margin-left: 0.02em;
  transition: color 0.22s ease;
}

.hero-tap--name.is-active .hero-name,
.hero-tap--name.is-active .hero-star {
  color: var(--accent-orange);
}

.hero-row {
  display: block;
}

.hero-row + .hero-row {
  margin-top: 0.06em;
}

.hero-line {
  font-style: normal;
  font-weight: 500;
}

.hero-muted {
  color: var(--text-dim);
  transition: color 0.22s ease, opacity 0.22s ease;
}

.hero-tap {
  cursor: pointer;
  white-space: nowrap;
}

@media (max-width: 639px) {
  .hero-intro .hero-row {
    white-space: normal;
  }
}

@media (max-width: 620px) {
  .hero-tap {
    white-space: normal;
  }

  .hero-intro {
    padding: clamp(1rem, 4vw, 1.5rem) clamp(0.35rem, 2vw, 0.75rem)
      clamp(4.5rem, 12vw, 5.5rem);
  }
}

.hero-tap:focus {
  outline: none;
}

.hero-tap:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 3px;
  border-radius: 2px;
}

.hero-intro .hl {
  font-style: italic;
  font-weight: 600;
  transition: color 0.22s ease;
}

.hero-intro .hl--g {
  color: var(--accent-green);
}

.hero-intro .hl--b {
  color: var(--accent-blue);
}

.hero-intro .hl--p {
  color: var(--accent-pink);
}

/* Hover / focus: rest of hero sinks to grey; active tap stays vivid */
.hero-wrap--dim .hero-muted {
  color: #545454;
}

.hero-wrap--dim .hero-tap:not(.is-active) .hl {
  color: #545454 !important;
}

.hero-wrap--dim .hero-tap--name:not(.is-active) .hero-name,
.hero-wrap--dim .hero-tap--name:not(.is-active) .hero-star {
  color: #545454;
}

/* Blurb panel — corners by tone on desktop fallback; JS anchors under hovered phrase (hero-blurb--anchored) */
.hero-blurb {
  position: absolute;
  right: 0;
  bottom: 0;
  left: auto;
  top: auto;
  max-width: min(100%, 280px);
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0;
  margin: 0;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.52;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 0.25s var(--ease),
    transform 0.3s var(--ease);
}

/* Default / purple: bottom-right */
.hero-blurb.hero-blurb--p {
  right: 0;
  bottom: 0;
  left: auto;
  top: auto;
  transform: translateY(8px);
}

.hero-blurb.hero-blurb--p.is-visible {
  transform: translateY(0);
}

/* Name: top-left */
.hero-blurb.hero-blurb--o {
  left: 0;
  top: 0;
  right: auto;
  bottom: auto;
  transform: translateY(-8px);
}

.hero-blurb.hero-blurb--o.is-visible {
  transform: translateY(0);
}

/* Green: top-right */
.hero-blurb.hero-blurb--g {
  right: 0;
  top: 0;
  left: auto;
  bottom: auto;
  transform: translateY(-8px);
}

.hero-blurb.hero-blurb--g.is-visible {
  transform: translateY(0);
}

/* Blue: bottom-left */
.hero-blurb.hero-blurb--b {
  left: 0;
  bottom: 0;
  right: auto;
  top: auto;
  transform: translateY(8px);
}

.hero-blurb.hero-blurb--b.is-visible {
  transform: translateY(0);
}

.hero-blurb.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Desktop pointer: blurb tracks hovered keyword (position set in app.js) -
   "above" targets use negative translateY so motion never slides down onto the phrase. */
@media (min-width: 621px) {
  .hero-wrap .hero-blurb.hero-blurb--anchored {
    left: var(--blurb-left, 50%);
    top: var(--blurb-top, 0);
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, 8px);
    z-index: 2;
  }

  .hero-wrap .hero-blurb.hero-blurb--anchored.is-visible {
    transform: translate(-50%, 0);
  }

  .hero-wrap .hero-blurb.hero-blurb--anchored.hero-blurb--anchored-above {
    transform: translate(-50%, -8px);
  }

  .hero-wrap .hero-blurb.hero-blurb--anchored.hero-blurb--anchored-above.is-visible {
    transform: translate(-50%, 0);
  }
}

.hero-blurb__svg {
  flex-shrink: 0;
  margin-top: 0.12em;
}

.hero-blurb__text {
  margin: 0;
}

.hero-blurb--o {
  color: var(--accent-orange);
}

.hero-blurb--g {
  color: var(--accent-green);
  max-width: min(100%, 340px);
}

.hero-blurb--b {
  color: var(--accent-blue);
}

.hero-blurb--p {
  color: var(--accent-pink);
}

@media (max-width: 620px) {
  .hero-blurb.hero-blurb--o,
  .hero-blurb.hero-blurb--g,
  .hero-blurb.hero-blurb--b,
  .hero-blurb.hero-blurb--p {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    max-width: 100%;
    transform: translateY(8px);
  }

  .hero-blurb.hero-blurb--o.is-visible,
  .hero-blurb.hero-blurb--g.is-visible,
  .hero-blurb.hero-blurb--b.is-visible,
  .hero-blurb.hero-blurb--p.is-visible {
    transform: translateY(0);
  }
}

/* —— Work / portfolio grid (image-first + spotlight hover) —— */
.work-block {
  margin-bottom: clamp(3.5rem, 8vw, 5rem);
}

.work-block:last-of-type {
  margin-bottom: 0;
}

.work-block--portfolio {
  margin-bottom: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

@media (min-width: 1100px) {
  .project-grid {
    gap: 1.5rem 1.75rem;
  }
}

@media (max-width: 780px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(360px, 48vw, 520px);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  background: var(--panel, #333);
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s ease;
}

.project-card:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
  z-index: 6;
}

/* Spotlight: dim siblings */
.project-grid--dim .project-card:not(.project-card--active)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  border-radius: inherit;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.project-grid--dim .project-card--active {
  z-index: 4;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  transform: scale(1.018);
  transition-delay: 0s;
}

.project-card--active .device {
  transform: translateY(-4px) scale(1.035);
}

.project-card--c0 {
  --panel: #5a7a5c;
}
.project-card--c1 {
  --panel: #d9652a;
}
.project-card--c2 {
  --panel: #3a9fd9;
}
.project-card--c3 {
  --panel: #1f8a6a;
}
.project-card--c4 {
  --panel: #7a5fb8;
}
.project-card--c5 {
  --panel: #c44a6b;
}

.project-card__panel {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--panel);
  min-height: clamp(320px, 44vw, 480px);
}

.project-card__mock {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 220px;
}

.project-card__mock--empty {
  min-height: 140px;
}

/* Flat art / illustration thumbs (no device chrome) — sized near device mock footprint */
.project-card__illustration {
  max-width: min(100%, clamp(196px, 28vw, 304px));
  max-height: clamp(204px, 30vw, 312px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.36));
}

.project-card__illustration img {
  max-width: 100%;
  max-height: clamp(204px, 30vw, 312px);
  width: auto;
  height: auto;
  display: block;
  border-radius: clamp(5px, 1vw, 8px);
  object-fit: contain;
}

@media (hover: hover) {
  .project-card:not(.project-card--active):hover .project-card__illustration {
    transform: translateY(-3px) scale(1.02);
  }
}

.project-card--active .project-card__illustration {
  transform: translateY(-4px) scale(1.035);
}

/* —— Device frames (project thumbnails) —— */
.device {
  transition: transform 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
  filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.4));
}

@media (hover: hover) {
  .project-card:not(.project-card--active):hover .device {
    transform: translateY(-3px) scale(1.02);
  }
}

/* iPhone */
.device--iphone {
  max-height: clamp(260px, 36vw, 360px);
  padding: 8px;
  background: linear-gradient(148deg, #3a3a3a 0%, #0d0d0d 45%, #1a1a1a 100%);
  border-radius: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}

.device--iphone .device__screen {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 19.2;
  max-height: clamp(244px, 34vw, 340px);
}

.device--iphone .device__screen::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  max-width: 88px;
  height: 24px;
  background: #000;
  border-radius: 14px;
  z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.device--iphone .device__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Desktop browser */
.device--desktop {
  width: min(100%, 400px);
  border-radius: 10px;
  overflow: hidden;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.device__desktop-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 11px;
  background: linear-gradient(180deg, #3d3d3d, #2a2a2a);
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
}

.device__desktop-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.device__desktop-bar span:nth-child(1) {
  background: #ff5f57;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.device__desktop-bar span:nth-child(2) {
  background: #febc2e;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.device__desktop-bar span:nth-child(3) {
  background: #28c840;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.device--desktop .device__screen {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0a0a0a;
}

.device--desktop .device__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Letterboxed thumbs — full image visible inside a fixed-aspect web frame */
.device .device__screen.device__screen--contain img {
  object-fit: contain;
  object-position: center center;
}

/* Questrade-style: same width cap as standard desktop mock; image drives screen height (no L/R bars) */
.device--desktop.device--natural-thumb {
  width: min(100%, 400px);
}

.device--desktop.device--natural-thumb .device__screen.device__screen--natural {
  aspect-ratio: unset;
  min-height: 0;
  overflow: hidden;
  background: #0a0a0a;
}

.device--desktop.device--natural-thumb .device__screen--natural img {
  width: 100%;
  height: auto;
  max-height: none;
  display: block;
  object-fit: unset;
  object-position: unset;
}

.device__screen--empty {
  min-height: 120px;
  background: radial-gradient(
    ellipse 70% 60% at 50% 45%,
    rgba(255, 255, 255, 0.12),
    transparent 62%
  );
}

.device--iphone .device__screen--empty {
  min-height: 0;
  aspect-ratio: 9 / 19.2;
}

.device--desktop .device__screen--empty {
  min-height: 140px;
  aspect-ratio: 16 / 10;
}

.project-card__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  width: 100%;
  padding: 1.1rem 1.25rem 1.35rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82) 28%);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 0 0 12px 12px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 0.35s var(--ease),
    transform 0.4s var(--ease);
}

@media (hover: hover) {
  .project-grid--dim .project-card--active .project-card__meta {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.project-card__title {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
  line-height: 1.25;
  color: #fff;
}

.project-card__desc {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}

.project-card__nda {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

/* Touch / no hover: always show titles */
@media (hover: none) {
  .project-card__meta {
    position: absolute;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75) 35%);
    padding-bottom: 1.15rem;
  }

  .project-grid--dim .project-card:not(.project-card--active)::after {
    display: none;
  }

  .project-grid--dim .project-card--active {
    transform: none;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-grid--dim .project-card--active,
  .project-card--active .device,
  .project-card:not(.project-card--active):hover .device,
  .project-card--active .project-card__illustration,
  .project-card:not(.project-card--active):hover .project-card__illustration {
    transform: none !important;
  }

  .project-card__meta {
    transition-duration: 0.01ms;
  }

  .brand:hover .brand__mark-inner,
  .brand:hover .brand__echo-wrap {
    transform: none;
  }

  .about-terminal:hover,
  .about-photo--tilt,
  .about-photo--tilt:hover {
    transform: none !important;
  }

  a.case-back.case-back--chaachie:hover {
    transform: none;
  }
}

/* —— Pill back (About / case) —— */
.pill-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  margin-bottom: 2.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.pill-back:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.pill-back svg {
  width: 14px;
  height: 14px;
}

/* —— About: quote + bio —— */
.about-page {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  z-index: 0;
}

.about-page::before {
  content: "";
  position: absolute;
  inset: -3rem -1.5rem auto;
  height: min(440px, 52vh);
  background:
    radial-gradient(
      ellipse 75% 65% at 18% 5%,
      rgba(94, 176, 255, 0.09),
      transparent 58%
    ),
    radial-gradient(
      ellipse 55% 45% at 92% 18%,
      rgba(255, 107, 53, 0.06),
      transparent 52%
    );
  pointer-events: none;
  z-index: -1;
}

.about-quote-wrap {
  position: relative;
  margin-top: clamp(1.75rem, 4.5vw, 3rem);
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  padding: 0 0.25rem;
}

.about-quote-deco {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 0.5;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22);
  position: absolute;
  pointer-events: none;
}

.about-quote-deco--tl {
  top: -0.35em;
  left: -0.08em;
}

.about-quote-deco--br {
  bottom: -0.5em;
  right: 0;
  transform: rotate(180deg);
}

.about-quote {
  font-family: var(--font-sans);
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0;
  padding: 0.5rem 0 0 0.15rem;
  border: none;
  position: relative;
}

.about-attrib {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-muted);
  margin: 1.25rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.about-attrib__dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--text-muted), var(--text-dim));
  flex-shrink: 0;
}

.about-intro {
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.about-bio-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 800px) {
  .about-bio-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
  }
}

.about-media {
  justify-self: center;
  width: 100%;
  max-width: 360px;
}

.about-terminal {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2.35rem);
  padding: clamp(1.35rem, 3vw, 1.95rem);
  margin-top: clamp(0.35rem, 2vw, 0.75rem);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(0, 0, 0, 0.35) 100%
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 18px 48px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.5s cubic-bezier(0.25, 0.85, 0.2, 1),
    box-shadow 0.45s ease,
    border-color 0.4s ease;
  transform-style: preserve-3d;
}

.about-terminal--solo {
  max-width: 40rem;
}

@media (hover: hover) {
  .about-terminal:hover {
    border-color: rgba(94, 176, 255, 0.38);
    box-shadow:
      0 0 0 1px rgba(94, 176, 255, 0.1) inset,
      0 26px 64px rgba(0, 0, 0, 0.48),
      0 0 56px -18px rgba(94, 176, 255, 0.28);
    transform: perspective(920px) rotateX(1.25deg) translateY(-4px);
  }
}

.about-terminal__col {
  min-width: 0;
}

.about-terminal__h {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-style: italic;
  color: var(--text);
  margin: 0 0 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.3;
}

.about-terminal__emoji {
  font-style: normal;
  letter-spacing: 0;
  font-size: 1rem;
  line-height: 1;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.15));
}

.about-terminal__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.58;
  color: rgba(255, 255, 255, 0.82);
}

.about-terminal__list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.72rem;
}

.about-terminal__list li:last-child {
  margin-bottom: 0;
}

.about-terminal__list li::before {
  content: ">";
  position: absolute;
  left: 0;
  top: 0.05em;
  color: var(--accent-blue);
  font-weight: 600;
  opacity: 0.75;
}

.about-photo {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.about-photo--tilt {
  transform: rotate(-2deg);
  transform-origin: center center;
  transition:
    transform 0.55s cubic-bezier(0.33, 1.15, 0.4, 1),
    box-shadow 0.45s ease,
    border-color 0.35s ease;
}

@media (hover: hover) {
  .about-photo--tilt:hover {
    transform: rotate(-0.5deg) scale(1.025);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow:
      0 32px 76px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(255, 255, 255, 0.07),
      0 0 40px -12px rgba(94, 176, 255, 0.22);
  }
}

.about-photo img {
  width: 100%;
  display: block;
}

.about-photo .prose {
  padding: 0.75rem 0.9rem;
  margin: 0;
  max-width: none;
  font-size: 0.8125rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid var(--line-soft);
}

/* —— Case study back —— */
a.case-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  margin-bottom: 2.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

a.case-back:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

/* Chaachie-style case study: back link */
a.case-back.case-back--chaachie {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  transition:
    color 0.2s ease,
    transform 0.28s var(--ease);
}

a.case-back.case-back--chaachie svg {
  flex-shrink: 0;
  opacity: 0.85;
}

a.case-back.case-back--chaachie:hover {
  border: none;
  background: none;
  color: var(--text);
  transform: translateX(-3px);
}

/* Chaachie-style case article */
.case-article {
  max-width: 44rem;
  margin: 0 auto;
}

.case-meta-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 1.5rem;
  padding-bottom: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line-soft);
}

@media (min-width: 640px) {
  .case-meta-bar {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem 1.25rem;
  }
}

.case-meta-bar__label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.case-meta-bar__value {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 450;
  line-height: 1.45;
  color: var(--text);
}

.case-hero-ch {
  scroll-margin-top: calc(var(--header-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2rem);
  padding-bottom: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: clamp(0.25rem, 1vw, 0.5rem);
  border-bottom: 1px solid var(--line-soft);
}

.case-hero-ch__intro {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.case-hero-ch__title :is(h1, h2) {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.85rem, 4.8vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
  color: var(--text);
}

.case-hero-ch__dek {
  max-width: 38rem;
}

.case-hero-ch__dek p {
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0;
}

.case-hero-ch__figure.figure-shot {
  border-radius: 12px;
  margin: 0 auto;
  max-width: min(100%, 280px);
}

.case-article[data-case-slug="presto-web-redesign"] .case-hero-ch__figure.figure-shot {
  max-width: min(100%, 560px);
}

.case-article[data-case-slug="questmortgage-affordability-calculator"] .case-hero-ch__figure.figure-shot {
  max-width: 100%;
  width: 100%;
}

/* Questrade nav bar — wider column + full-width hero so both screenshots read at portfolio scale */
.case-article[data-case-slug="questrade-navigation-bar"] {
  max-width: min(56rem, 100%);
}

.case-article[data-case-slug="questrade-navigation-bar"] .case-hero-ch__figure.figure-shot {
  /* 754px = native width of hero PNG — avoids upscaling blur on large screens */
  max-width: min(100%, 754px);
  width: 100%;
  margin-inline: auto;
}

.case-article[data-case-slug="questrade-navigation-bar"] .case-hero-ch__figure.figure-shot img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center top;
  image-rendering: high-quality;
}

.case-hero-ch__figure.figure-shot img {
  width: 100%;
  height: auto;
  display: block;
}

.case-stream {
  display: flex;
  flex-direction: column;
  gap: clamp(2.1rem, 4vw, 3.1rem);
}

.segment {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* Case body typography — scannable for UX hiring managers */
.case-article .segment .prose {
  max-width: none;
}

.case-article .prose * + h2 {
  margin-top: 0.25rem;
}

.case-article .prose h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.32rem, 2.6vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.22;
  margin: 0 0 0.85rem;
  padding-top: clamp(1.15rem, 2.5vw, 1.5rem);
  color: var(--text);
  border-top: 1px solid var(--line-soft);
}

.case-article .prose h2:first-child {
  border-top: none;
  padding-top: 0;
}

.case-article .prose h2 + p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0;
  margin-bottom: 1rem;
}

.case-article .prose h3 {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 1.5rem 0 0.55rem;
  color: var(--text);
}

.case-article .prose p,
.case-article .prose li {
  font-size: 0.96875rem;
  line-height: 1.66;
  color: rgba(255, 255, 255, 0.76);
}

.case-article .prose p {
  margin: 0 0 0.9rem;
}

.case-article .prose p:last-child {
  margin-bottom: 0;
}

.case-article .prose ul,
.case-article .prose ol {
  margin: 0.35rem 0 1rem;
  padding-left: 1.2rem;
}

.case-article .prose li {
  margin: 0 0 0.45rem;
}

.case-article .prose ul ul,
.case-article .prose ol ol,
.case-article .prose ul ol,
.case-article .prose ol ul {
  margin: 0.35rem 0 0.5rem;
}

.case-article .prose li p {
  margin: 0 0 0.35rem;
}

.case-article .prose strong {
  color: rgba(255, 255, 255, 0.94);
  font-weight: 600;
}

.case-article .prose a {
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 500;
}

.case-article .prose a:hover {
  border-bottom-color: var(--accent-blue);
  color: var(--text);
}

.case-article .prose blockquote {
  margin: 1.5rem 0;
  padding: 1.1rem 0 1.1rem 1.15rem;
  border-left: 3px solid rgba(94, 176, 255, 0.55);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
}

.case-article .prose blockquote p {
  margin: 0;
  font-size: inherit;
  color: inherit;
}

.case-article .figure-caption {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.case-article .stat-card .big {
  font-size: clamp(1.85rem, 3.5vw, 2.55rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

/* Stat descriptions are authored as headings in CMS; keep them clearly subordinate to .big */
.case-article .stat-card .desc.prose :is(h1, h2, h3, h4) {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  color: var(--text-dim);
}

.case-article .columns-2 {
  gap: clamp(1.25rem, 3vw, 2rem);
}

.case-article .process-chip {
  letter-spacing: 0.12em;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
  white-space: nowrap;
}

.case-article .segment:has(> .process-rail) {
  margin-top: -0.35rem;
}

/* Case: text + media stacked — .segment.text-media beats two-col .text-media rules */
.case-article .segment.text-media {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.5vw, 1.65rem);
  align-items: stretch;
}

.case-article .segment.text-media .tm-media {
  width: 100%;
  max-width: 100%;
}

.case-article .segment.text-media.flipped .tm-media {
  order: -1;
}

.case-article .segment.text-media .tm-media .figure-shot {
  margin-inline: 0;
}

.case-article .figure-shot iframe {
  min-height: min(720px, 78vh);
}

@media (min-width: 900px) {
  .case-article .figure-shot iframe {
    min-height: min(820px, 82vh);
  }
}

.figure-shot {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0a0a;
}

.figure-shot img {
  width: 100%;
  height: auto;
  display: block;
}

.figure-shot iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}

.figure-caption {
  padding: 0.65rem 0.9rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  border-top: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.02);
}

.figure-caption.figure-caption--above {
  border-top: none;
  border-bottom: 1px solid var(--line-soft);
  /* Tighter band — caption is a label, not a full prose section */
  padding: 0.4rem 0.9rem 0.55rem;
}

/* Beat .case-article .prose h3 { margin-top: 1.5rem } inside prototype captions */
.case-article .figure-caption.figure-caption--above :is(h1, h2, h3, h4) {
  color: var(--text);
  margin: 0 0 0.3rem;
  padding-top: 0;
}

.text-media {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .text-media:not(.flipped) {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .text-media.flipped {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .text-media.flipped .tm-media {
    order: -1;
  }
}

.gallery-rail {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.35rem;
}

.gallery-rail img {
  scroll-snap-align: start;
  max-height: 420px;
  width: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

/* —— Illustration carousel (Akhar, etc.) —— */
.illustration-carousel {
  outline: none;
}

/* Same band + h3 treatment as .figure-caption--above on Figma prototypes */
.illustration-carousel__heading {
  margin: 0 0 0.5rem;
}

.illustration-carousel__viewport {
  overflow: hidden;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0a0a0a;
}

.illustration-carousel__track {
  display: flex;
  flex-direction: row;
  transition: transform 0.38s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

.illustration-carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  box-sizing: border-box;
}

.illustration-carousel__slide img {
  max-width: 100%;
  width: auto;
  max-height: min(72vh, 560px);
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.illustration-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.illustration-carousel__counter {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  min-width: 5.5rem;
  text-align: center;
}

.illustration-carousel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.illustration-carousel__btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
}

.illustration-carousel__btn:disabled {
  opacity: 0.28;
  cursor: default;
}

.illustration-carousel__btn--next svg {
  transform: scaleX(-1);
}

.columns-2 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .columns-2 {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  /* Typography + Colours row, then Buttons full width (e.g. PRESTO redesign) */
  .columns-2.columns-2--last-row-full > *:nth-child(3) {
    grid-column: 1 / -1;
  }
}

.stats {
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  overflow: hidden;
}

@media (min-width: 600px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats.stats--pair {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.25rem 1.1rem;
}

.stat-card .big {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  margin: 0 0 0.5rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
  white-space: nowrap;
}

.stat-card .big :is(h1, h2, h3, h4) {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  white-space: inherit;
}

.stat-card .desc {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.45;
}

.stat-card .desc.prose :is(h1, h2, h3, h4) {
  font-size: inherit;
  font-weight: 500;
  letter-spacing: 0;
  line-height: inherit;
  margin: 0;
  padding: 0;
  color: inherit;
}

.process-rail {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.2rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.process-sep {
  color: var(--text-muted);
  font-size: 0.75rem;
  opacity: 0.6;
  user-select: none;
  flex-shrink: 0;
}

.process-chip {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
  white-space: nowrap;
}

/* —— Prose —— */
.prose {
  max-width: 38rem;
}

.prose :is(h1, h2, h3, h4) {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

.prose h1 {
  font-size: 2rem;
}
.prose h2 {
  font-size: 1.45rem;
  margin-top: 1.5rem;
}
.prose h3 {
  font-size: 1.2rem;
  margin-top: 1.25rem;
}

.prose p,
.prose li {
  color: var(--text-dim);
}

.prose a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
}

.prose a:hover {
  text-decoration-color: var(--accent-blue);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose ul {
  padding-left: 1.15rem;
}

.prose code {
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.12em 0.35em;
  border-radius: 4px;
}

/* —— Gate —— */
.gate-screen {
  min-height: 48vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.gate-card {
  width: 100%;
  max-width: 380px;
  padding: 2rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  text-align: center;
}

.gate-card h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.gate-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 0 0 1.35rem;
  line-height: 1.5;
}

.gate-card input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text);
  font: inherit;
  margin-bottom: 0.6rem;
}

.gate-card input:focus {
  outline: none;
  border-color: rgba(94, 176, 255, 0.55);
}

.gate-card button {
  width: 100%;
  padding: 0.75rem;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  color: #000;
  background: var(--text);
  transition: opacity 0.2s ease;
}

.gate-card button:hover {
  opacity: 0.9;
}

.gate-error {
  color: #ff8a8a;
  font-size: 0.8rem;
  margin-top: 0.55rem;
  min-height: 1.2em;
}

/* —— Footer —— */
.site-foot {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 3rem clamp(1.25rem, 4vw, 2rem) 4rem;
  border-top: 1px solid var(--line-soft);
}

.foot-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
}

.foot-meta {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.foot-made {
  font-size: 1.1875rem;
  color: var(--text-dim);
  margin: 0;
  font-style: italic;
  font-family: var(--font-serif);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
}

.foot-links__sep {
  color: var(--text-muted);
  user-select: none;
  margin: 0 -0.35rem;
}

.foot-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.foot-links a:hover {
  color: var(--text);
  border-color: var(--text);
}

.foot-tagline {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}

.foot-tagline-accent {
  font-style: italic;
  color: var(--accent-blue);
}

/* —— Motion —— */
.motion-in {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.75s var(--ease) forwards;
  animation-delay: var(--motion-d, 0s);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-in {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

.prose--bare {
  max-width: 28rem;
}
