/* =========================================================
   TALIA — portfolio styles
   Colour tokens live in :root. Dark mode overrides them.
   ========================================================= */

:root {
  --bg: #fff8f1; /* cream */
  --surface: #ffffff;
  --surface-2: #fdeef1; /* blush wash */
  --ink: #141111; /* near-black text */
  --ink-soft: #5a5052;
  --line: #ecdcdc;
  --pink: #f6c4cf; /* soft pink */
  --pink-strong: #e98aa3; /* decorative accents (bullets, flowers, quote marks) */
  --accent-text: #b0385c; /* accent TEXT + focus rings: 5.2:1+ on every light background (WCAG AA) */
  --footer-accent: var(
    --pink
  ); /* pink text on the footer (dark in light mode, cream in dark mode) */
  --butter: #fbe7b4;
  --sage: #d6e6cf;
  --lilac: #e3d7f3;
  --highlight: var(--pink); /* marker behind highlighted words */
  --shadow: 0 1px 2px rgb(60 20 30 / 0.06),
    0 12px 32px -12px rgb(120 40 60 / 0.18);
  --sticker-shadow: drop-shadow(0 6px 10px rgb(80 30 40 / 0.22));

  --font-display: 'Bricolage Grotesque', 'Arial Black', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-hand: 'Caveat', 'Comic Sans MS', cursive;

  --radius: 22px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #171214;
    --surface: #221b1e;
    --surface-2: #2a1f24;
    --ink: #fbf1ec;
    --ink-soft: #d8cbcc;
    --line: #3a2d32;
    --pink: #f3b7c5;
    --pink-strong: #f59bb2;
    --accent-text: #f59bb2;
    --footer-accent: #b0385c;
    --butter: #5a4a26;
    --sage: #34443a;
    --lilac: #3e3450;
    --highlight: #7a3b50;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 36px -14px rgb(0 0 0 / 0.6);
    --sticker-shadow: drop-shadow(0 8px 14px rgb(0 0 0 / 0.5));
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --bg: #171214;
  --surface: #221b1e;
  --surface-2: #2a1f24;
  --ink: #fbf1ec;
  --ink-soft: #d8cbcc;
  --line: #3a2d32;
  --pink: #f3b7c5;
  --pink-strong: #f59bb2;
  --accent-text: #f59bb2;
  --footer-accent: #b0385c;
  --butter: #5a4a26;
  --sage: #34443a;
  --lilac: #3e3450;
  --highlight: #7a3b50;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 36px -14px rgb(0 0 0 / 0.6);
  --sticker-shadow: drop-shadow(0 8px 14px rgb(0 0 0 / 0.5));
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  transition:
    background-color 0.35s ease,
    color 0.35s ease;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
em {
  font-style: italic;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--pink);
  color: #141111;
}

/* Text for screen readers only */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  text-decoration: none;
}
.skip-link:focus {
  top: 16px;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav__logo span {
  color: var(--pink-strong);
}

.nav__links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav__links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background-color 0.2s ease;
}
.nav__links a:hover {
  background: var(--surface-2);
}

.theme-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--pink);
  color: #141111;
  cursor: pointer;
  transition: transform 0.25s ease;
}
.theme-toggle:hover {
  transform: rotate(-15deg) scale(1.05);
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Moon in light mode, sun in dark mode, for every theme button */
[data-theme-toggle] .icon-sun {
  display: none;
}
:root[data-theme='dark'] [data-theme-toggle] .icon-sun {
  display: block;
}
:root[data-theme='dark'] [data-theme-toggle] .icon-moon {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) [data-theme-toggle] .icon-sun {
    display: block;
  }
  :root:not([data-theme='light']) [data-theme-toggle] .icon-moon {
    display: none;
  }
}

/* ---------- Thumb nav (phones) ---------- */
/* Phones first: the top bar keeps just the logo; the nav and theme toggle live in the thumb bar */
.nav__links,
.nav .theme-toggle {
  display: none;
}

.thumb-nav {
  display: block;
  position: fixed;
  z-index: 60;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  padding: 6px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--ink);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.thumb-nav ul {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.thumb-nav a,
.thumb-nav button {
  width: 100%;
  min-height: 52px; /* comfortably above the 44px touch-target minimum */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px;
  border: 0;
  border-radius: 18px;
  background: none;
  color: var(--ink);
  font: 500 0.75rem/1.1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease;
}
.thumb-nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.thumb-nav a:active,
.thumb-nav button:active {
  background: var(--surface-2);
}
.thumb-nav a[aria-current='true'] {
  background: var(--pink);
  color: #141111;
  font-weight: 700;
}
.thumb-nav :focus-visible {
  outline-offset: -3px;
}

/* Keep the footer's last line clear of the floating bar */
body > .footer {
  padding-bottom: calc(28px + 88px + env(safe-area-inset-bottom));
}

/* Tablets and up: normal header nav, no thumb bar */
@media (min-width: 641px) {
  .nav__links {
    display: flex;
  }
  .nav .theme-toggle {
    display: grid;
  }
  .thumb-nav {
    display: none;
  }
  body > .footer {
    padding-bottom: 28px;
  }
}

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100svh - 72px);
  padding: clamp(16px, 3vh, 48px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: radial-gradient(
      60% 50% at 20% 20%,
      color-mix(in srgb, var(--pink) 45%, transparent),
      transparent 70%
    ),
    radial-gradient(
      50% 45% at 85% 80%,
      color-mix(in srgb, var(--pink) 35%, transparent),
      transparent 70%
    );
}

.hero__eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-hand);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--ink-soft);
}
.hero__eyebrow span {
  color: var(--pink-strong);
}

/* The stage is the positioning box for the name + the stickers floating around it.
   It's a size container: the name is sized in cqi (1% of stage width) and
   sticker positions/sizes are % of the stage, so the whole composition
   scales as one unit from phone to desktop. Vertical padding leaves a ring
   of space above and below the name for the stickers. */
.hero__stage {
  position: relative;
  /* also capped by screen height so short laptops still see the tagline */
  width: min(100%, 1100px, max(300px, (100svh - 340px) * 1.15));
  margin: 0 auto;
  padding: 30% 0;
  container-type: inline-size;
}

.hero__name {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(
    5.5rem,
    25vw,
    20rem
  ); /* fallback for browsers without container units */
  font-size: 28cqi;
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: var(--ink);
  user-select: none;
}
.hero__name span {
  display: inline-block;
  animation: letter-in 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}
.hero__name span:nth-child(1) {
  animation-delay: 0.05s;
}
.hero__name span:nth-child(2) {
  animation-delay: 0.12s;
}
.hero__name span:nth-child(3) {
  animation-delay: 0.19s;
}
.hero__name span:nth-child(4) {
  animation-delay: 0.26s;
}
.hero__name span:nth-child(5) {
  animation-delay: 0.33s;
}

@keyframes letter-in {
  from {
    opacity: 0;
    transform: translateY(40px) rotate(-6deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Stickers: pop in, then drift gently, each on its own rhythm.
   Each is an <a>; without an href it's just a picture, with one it becomes a link. */
.sticker {
  display: block;
  position: absolute;
  z-index: 2;
  left: var(--xs, var(--x));
  top: var(--ys, var(--y));
  width: var(--ws, var(--w));
  height: auto;
  rotate: var(--r);
  filter: var(--sticker-shadow);
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  border-radius: 18px;
  animation:
    sticker-in 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.4)
      calc(0.45s + var(--i, 0) * 0.08s) both,
    sticker-float var(--float, 6s) ease-in-out calc(1.2s + var(--i, 0) * -0.9s)
      infinite;
}
.sticker img {
  width: 100%;
  height: auto;
  -webkit-user-drag: none;
}
.sticker[href] {
  pointer-events: auto;
  cursor: pointer;
  transition: scale 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.4);
}
.sticker[href]:hover,
.sticker[href]:focus-visible {
  scale: 1.08;
  z-index: 3;
}

.sticker:nth-of-type(1) {
  --i: 0;
  --float: 6.5s;
}
.sticker:nth-of-type(2) {
  --i: 1;
  --float: 5.2s;
}
.sticker:nth-of-type(3) {
  --i: 2;
  --float: 7s;
}
.sticker:nth-of-type(4) {
  --i: 3;
  --float: 5.8s;
}
.sticker:nth-of-type(5) {
  --i: 4;
  --float: 6.8s;
}
.sticker:nth-of-type(6) {
  --i: 5;
  --float: 5.5s;
}
.sticker:nth-of-type(7) {
  --i: 6;
  --float: 6.2s;
}
.sticker:nth-of-type(8) {
  --i: 7;
  --float: 5.9s;
}
.sticker:nth-of-type(9) {
  --i: 8;
  --float: 4.6s;
}

@keyframes sticker-in {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes sticker-float {
  0%,
  100% {
    translate: 0 0;
    rotate: var(--r);
  }
  50% {
    translate: 0 -1.1cqi;
    rotate: calc(var(--r) + 2.5deg);
  }
}

/* Phones and portrait tablets use the stacked layout above (--xs/--ys/--ws), with extra
   room above and below the short, wide word. Landscape tablets, laptops and desktops
   switch to the wide ring (--x/--y/--w). */
@media (min-width: 1025px), (min-width: 641px) and (orientation: landscape) {
  .hero__stage {
    width: min(100%, 1100px, max(340px, (100svh - 500px) * 2.1));
    padding: 10% 0;
  }
  .hero__name {
    font-size: 27cqi;
  }
  .sticker {
    left: var(--x);
    top: var(--y);
    width: var(--w);
  }
}

.hero__tagline {
  max-width: 46ch;
  margin: 12px auto 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  text-wrap: balance;
}
/* Handwritten nudge under the tagline (decorative: the sticker links already say where they go) */
.hero__hint {
  display: block;
  margin-top: 2px;
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--ink-soft);
  text-wrap: balance;
}
.hint-tap {
  display: none;
}
@media (hover: none) {
  .hint-click {
    display: none;
  }
  .hint-tap {
    display: inline;
  }
} /* "tap" on touch screens */
.hero__tagline em {
  font-style: normal;
  background: linear-gradient(transparent 58%, var(--highlight) 58%);
  padding: 0 2px;
  color: var(--ink);
}

.scroll-cue {
  margin-top: 18px;
  padding: 10px 20px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s ease;
}
.scroll-cue:hover {
  background: var(--pink);
  color: #141111;
}
.scroll-cue span {
  display: inline-block;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob {
  50% {
    transform: translateY(4px);
  }
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(72px, 12vw, 140px) var(--gutter);
}
.section > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
.section--tinted {
  background: var(--surface-2);
}

.section__head {
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section__kicker {
  margin: 0 0 8px;
  font-family: var(--font-hand);
  font-size: 1.6rem;
  color: var(--accent-text);
}
.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 7vw, 5rem);
  letter-spacing: -0.03em;
}
.section__intro {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 1.15rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}
.btn--primary {
  background: var(--pink);
  color: #141111;
  box-shadow: 4px 4px 0 var(--ink);
}
.btn--primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

/* The big "Want to know more?" button under the About FAQs */
.btn--cta {
  margin-top: 36px;
  gap: 12px;
  padding: 18px 32px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  letter-spacing: -0.02em;
}
.btn--cta span {
  transition: translate 0.2s ease;
}
.btn--cta:hover span,
.btn--cta:focus-visible span {
  translate: 4px 0;
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--surface-2);
}

/* ---------- Projects ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.project {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.project:hover {
  transform: translateY(-6px) rotate(-0.4deg);
}

.project__media {
  aspect-ratio: 16 / 10;
  background: var(--tint, var(--pink));
  padding: 6% 8% 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.project__media img {
  width: 100%;
  height: auto;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -4px 24px rgb(0 0 0 / 0.08);
  transition: transform 0.4s ease;
}
.project:hover .project__media img {
  transform: translateY(-4px) scale(1.02);
}

/* "Coming soon" card: no screenshot yet, and no hover lift since there's nothing to open */
.project--soon:hover {
  transform: none;
}
.project__media--soon {
  align-items: center;
  justify-content: center;
  padding: 0;
  background: repeating-linear-gradient(
      -45deg,
      transparent 0 14px,
      color-mix(in srgb, var(--surface) 35%, transparent) 14px 28px
    ),
    var(--tint, var(--pink));
}
/* Cream + brown stripes (client card): fixed colours so they match in both themes */
.project__media--cocoa {
  background: repeating-linear-gradient(
    -45deg,
    #fff8f1 0 14px,
    #8b5e3c 14px 28px
  );
}
.soon-badge {
  padding: 12px 26px;
  border: 2px dashed var(--ink);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-hand);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  rotate: -4deg;
}
.soon-badge span {
  color: var(--pink-strong);
}

.project__body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.project__meta {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.project__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
}
.project__desc {
  margin: 0;
  color: var(--ink-soft);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tags li {
  padding: 3px 12px;
  font-size: 0.85rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.project__links {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.link-arrow {
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(var(--pink-strong), var(--pink-strong)) 0 100% / 0
    2px no-repeat;
  transition: background-size 0.25s ease;
}
.link-arrow:hover {
  background-size: 100% 2px;
}

/* The hidden attribute always wins (used to keep unfinished sections off the page) */
[hidden] {
  display: none !important;
}

/* ---------- Testimonials ---------- */
.quotes {
  --gap: clamp(16px, 2.5vw, 28px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--gap);
  align-items: start;
}

/* Carousel mode (main.js adds .is-carousel when there are 4+ quotes) */
.is-carousel .carousel__track {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: 86%; /* phones: 1 in view + a peek of the next */
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 6px; /* matches the side padding, so the first card snaps to scrollLeft 0 */
  scrollbar-width: none;
  padding: 14px 6px 22px; /* room for the cards' tilt and shadow */
  margin: -14px -6px 0;
  border-radius: var(--radius);
  cursor: grab;
  touch-action: pan-x pan-y;
}
.is-carousel .carousel__track::-webkit-scrollbar {
  display: none;
}
.is-carousel .carousel__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none; /* let the drag move freely; main.js snaps to a card on release */
  user-select: none;
}
.is-carousel .quote {
  scroll-snap-align: start;
}
@media (min-width: 641px) {
  .is-carousel .carousel__track {
    grid-auto-columns: calc((100% - var(--gap)) / 2);
  } /* 2 in view */
}
@media (min-width: 1001px) {
  .is-carousel .carousel__track {
    grid-auto-columns: calc((100% - 2 * var(--gap)) / 3);
  } /* 3 in view */
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}
.carousel__btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--pink);
  color: #141111;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}
.carousel__btn:hover:not(:disabled) {
  transform: scale(1.06);
}
.carousel__btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.carousel__btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.carousel__status {
  min-width: 8ch;
  margin: 0;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}
.quote {
  position: relative;
  margin: 0;
  padding: 56px 28px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.quote::before {
  /* big decorative quote mark */
  content: '\201C';
  position: absolute;
  top: 6px;
  left: 22px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 5rem;
  line-height: 1;
  color: var(--pink-strong);
}
.quote:nth-child(3n + 2) {
  rotate: 0.6deg;
}
.quote:nth-child(3n + 3) {
  rotate: -0.5deg;
}
.quote blockquote {
  margin: 0;
}
.quote blockquote p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.55;
}
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}
.quote__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--pink);
  color: #141111;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
}
.quote__who {
  display: grid;
  line-height: 1.3;
}
.quote__who strong {
  font-weight: 700;
}
.quote__who span {
  font-size: 0.9rem;
  color: var(--ink-soft);
}
@media (prefers-reduced-motion: reduce) {
  .quote {
    rotate: none !important;
  }
}

/* ---------- Skills ---------- */
.skills {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
@media (min-width: 641px) {
  .skills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
} /* 2 × 2 from tablets up */
.skill-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.skill-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: var(--pink);
  color: #141111;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  rotate: -6deg;
}
.skill-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 16px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  padding: 6px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}
.chips li:hover {
  background: var(--pink);
  color: #141111;
  transform: translateY(-2px) rotate(-2deg);
}

/* "Currently learning" strip under the skill cards */
.learning {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 20px;
  padding: 20px 28px;
  background: var(--surface);
  border: 1.5px dashed var(--accent-text);
  border-radius: var(--radius);
}
.learning__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
}
.learning__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-text);
  animation: learning-pulse 2s ease-in-out infinite;
}
@keyframes learning-pulse {
  50% {
    opacity: 0.35;
    transform: scale(0.8);
  }
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.about__photo {
  position: relative;
  max-width: 340px;
  margin: 0 auto;
  background: var(--pink);
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  padding: 12%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.about__photo img {
  width: 100%;
  height: auto;
  rotate: -4deg;
  filter: var(--sticker-shadow);
}
.about__note {
  position: absolute;
  right: 0;
  bottom: 4%;
  margin: 0;
  font-family: var(--font-hand);
  font-size: 1.8rem;
  rotate: -8deg;
}
.about__text p {
  max-width: 58ch;
}
.about__text .section__title {
  margin-bottom: 20px;
}

/* About FAQ drop-downs (native <details>, so they work without JS) */
.faq {
  margin-top: 28px;
  display: grid;
  gap: 10px;
  max-width: 62ch;
}
.faq__item {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.faq__item[open] {
  border-color: var(--pink-strong);
  box-shadow: var(--shadow);
}
.faq__q {
  list-style: none; /* hide the default triangle */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px; /* comfortable tap target */
  padding: 14px 18px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
  cursor: pointer;
}
.faq__q::-webkit-details-marker {
  display: none;
}
.faq__q::after {
  /* + that turns into − when open */
  content: '';
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    linear-gradient(#141111, #141111) center / 12px 2px no-repeat,
    linear-gradient(#141111, #141111) center / 2px 12px no-repeat,
    var(--pink);
  transition: rotate 0.25s ease;
}
.faq__item[open] > .faq__q::after {
  rotate: 90deg;
  background:
    linear-gradient(#141111, #141111) center / 2px 12px no-repeat,
    var(--pink);
}
.faq__q:hover {
  background: var(--surface-2);
}
.faq__q:focus-visible {
  outline-offset: -3px;
}
.faq__a {
  padding: 0 18px 16px;
}
.faq__a p {
  margin: 0;
  color: var(--ink-soft);
}
.faq__list {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
}
.faq__list li {
  position: relative;
  padding-left: 22px;
}
.faq__list li::before {
  content: '✿';
  position: absolute;
  left: 0;
  color: var(--pink-strong);
}
.faq__item[open] .faq__a {
  animation: faq-in 0.3s ease;
}
@keyframes faq-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 801px) {
  .about {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
  .about__photo {
    max-width: none;
    margin: 0;
  }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(64px, 10vw, 120px) var(--gutter) 28px;
  border-radius: 36px 36px 0 0;
}
.footer a {
  text-decoration: none;
}
.footer a:hover {
  color: var(--footer-accent);
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
.footer__big {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.footer__big em {
  font-style: normal;
  color: var(--footer-accent);
}
.footer__email {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  border-bottom: 2px solid var(--footer-accent);
  overflow-wrap: anywhere;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.footer__label {
  margin-bottom: 14px;
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--footer-accent);
}
.footer__cols li {
  margin-bottom: 8px;
}
.footer__base {
  max-width: var(--max);
  margin: 64px auto 0;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--bg) 20%, transparent);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  opacity: 0.8;
}
.footer__base p {
  margin: 0;
}

@media (min-width: 761px) {
  .footer__inner {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }
}

/* ---------- Floating "back to top" button ---------- */
.to-top {
  position: fixed;
  z-index: 55;
  right: 16px;
  bottom: calc(
    92px + env(safe-area-inset-bottom)
  ); /* phones: sits just above the thumb nav */
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--pink);
  color: #141111;
  box-shadow: 3px 3px 0 var(--ink);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s,
    box-shadow 0.2s ease;
}
.to-top svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.to-top:hover {
  transform: translateY(-3px);
  box-shadow: 3px 6px 0 var(--ink);
}
/* Hidden near the top of the page (only when JS can bring it back) */
.js .to-top:not(.is-visible) {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}
@media (min-width: 641px) {
  .to-top {
    right: 24px;
    bottom: 24px;
  }
}

/* ---------- Project (case study) pages ---------- */

.case {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px) var(--gutter) clamp(72px, 10vw, 120px);
}

.case__hero {
  max-width: 60rem;
}
/* Breadcrumbs: Home › Projects › Current page */
.breadcrumbs {
  margin-bottom: clamp(16px, 4vw, 40px);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  font-size: 0.95rem;
}
.breadcrumbs li {
  display: flex;
  align-items: center;
}
.breadcrumbs li + li::before {
  content: '›' / ''; /* the "/ ''" hides the separator from screen readers */
  margin: 0 10px;
  color: var(--ink-soft);
}
.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* comfortable tap target */
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--pink-strong);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.breadcrumbs a:hover {
  text-decoration-color: var(--accent-text);
}
.breadcrumbs [aria-current='page'] {
  color: var(--ink-soft);
}
.case__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 11vw, 7.5rem);
  letter-spacing: -0.04em;
  line-height: 0.9;
}
.case__lede {
  max-width: 40ch;
  margin: 20px 0 0;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--ink-soft);
}
.case__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Key facts strip */
.case__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 1px;
  margin: clamp(32px, 5vw, 48px) 0 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.case__facts > div {
  padding: 18px 20px;
  background: var(--surface);
}
.case__facts dt {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.case__facts dd {
  margin: 4px 0 0;
  font-weight: 500;
}

/* Screenshots */
.case__shot {
  margin: clamp(40px, 7vw, 72px) 0 0;
}
.case__shot figcaption {
  margin-top: 12px;
  font-family: var(--font-hand);
  font-size: 1.35rem;
  color: var(--ink-soft);
}
.case__shot--wide {
  padding: clamp(16px, 4vw, 48px);
  border-radius: calc(var(--radius) + 8px);
  background: var(--tint, var(--pink));
}
.case__shot--wide figcaption {
  color: var(--tint-ink, var(--ink));
} /* set --tint-ink when the tint stays light in dark mode */
.browser {
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.browser__bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: var(--surface-2);
}
.browser__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pink-strong);
}
.browser__bar span:nth-child(2) {
  background: var(--butter);
}
.browser__bar span:nth-child(3) {
  background: var(--sage);
}
.browser img,
.case__shot--phone img {
  width: 100%;
  height: auto;
}

.case__pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}
.case__pair--phone {
  grid-template-columns: 1fr;
  align-items: center;
  margin-top: clamp(56px, 9vw, 104px);
} /* same gap as between sections */
.case__pair--phone .case__shot {
  margin-top: 0;
}
.case__shot--phone {
  max-width: 280px;
  margin-inline: auto;
}
.case__shot--phone img {
  border-radius: 28px;
  border: 6px solid var(--ink);
  box-shadow: var(--shadow);
}
@media (min-width: 701px) {
  .case__pair--phone {
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  }
  .case__shot--phone {
    max-width: none;
    margin-inline: 0;
  }
}

/* Wide screenshot + phone screenshot side by side (portfolio case study) */
.case__pair--mixed {
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 701px) {
  .case__pair--mixed {
    grid-template-columns: minmax(0, 1fr) minmax(0, 240px);
  }
}

/* Big-number stat tiles */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 62ch;
}
@media (min-width: 1001px) {
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.stats li {
  display: grid;
  gap: 4px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.stats strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stats span {
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--ink-soft);
}

/* Text sections: heading on the left, body on the right on wide screens */
.case__section {
  display: grid;
  grid-template-columns: minmax(
    0,
    1fr
  ); /* minmax(0,…) lets wide content shrink instead of overflowing */
  gap: clamp(12px, 4vw, 64px);
  margin-top: clamp(56px, 9vw, 104px);
}
.case__section--inline {
  display: block;
  margin-top: 0;
}
.case__section--inline .case__h2 {
  margin-bottom: 16px;
}
@media (min-width: 801px) {
  .case__section {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  }
}
.case__h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
}
.case__body > * + * {
  margin-top: 16px;
}
.case__body p {
  margin: 0;
  max-width: 62ch;
}
.case__body p + p {
  margin-top: 16px;
}
.case__list {
  display: grid;
  gap: 12px;
  max-width: 62ch;
}
.case__list li {
  position: relative;
  padding-left: 26px;
}
.case__list li::before {
  content: '✿';
  position: absolute;
  left: 0;
  color: var(--pink-strong);
}

.case__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 14px;
}
.case__cards li {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.case__cards h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.case__cards p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.case__next {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: clamp(56px, 9vw, 104px);
}
.case__next .btn--cta {
  margin-top: 0;
}
.case__next-link {
  /* "Next project: ..." */
  display: block;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: -0.03em;
  text-decoration: none;
}
.case__next-link span:first-child {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0;
  color: var(--accent-text);
}
.case__next-link:hover {
  text-decoration: underline;
  text-decoration-color: var(--pink-strong);
  text-underline-offset: 6px;
}

/* Snooze & Snacks: treat scores + pixel sprites */
.treats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
  gap: 10px;
  max-width: 62ch;
}
.treats li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.treats img {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
}
.treats span {
  flex: 1;
  font-size: 0.95rem;
}
.treats strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.treats__bad strong {
  color: #b3261e;
}
:root[data-theme='dark'] .treats__bad strong {
  color: #ff8a80;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .treats__bad strong {
    color: #ff8a80;
  }
}

.sprites {
  display: grid;
  gap: clamp(16px, 3vw, 28px);
  padding: clamp(20px, 4vw, 40px);
  border-radius: calc(var(--radius) + 8px);
  background: var(--tint, var(--sage));
}
/* Strips never shrink below a readable size; on small screens they scroll sideways */
.sprites__scroll {
  overflow-x: auto;
  border-radius: 12px;
  scrollbar-width: thin;
}
.sprites__scroll:focus-visible {
  outline-offset: 2px;
}
.sprites__strip {
  width: max(100%, 720px);
  max-width: none;
  height: auto;
  image-rendering: pixelated;
}
.sprites figcaption {
  margin-top: 0;
  color: var(--ink);
}

/* Hartford: brand swatches, type specimens, image galleries */
.swatches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 62ch;
}
.swatches li {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 72px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(var(--c) 0 60px, var(--surface) 60px);
}
.swatches span {
  font-weight: 700;
}
.swatches code {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.type-specimens {
  display: grid;
  gap: 10px;
  max-width: 62ch;
}
.type-specimens li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.type-specimens__sample {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.1;
}
.type-specimens li > span:last-child {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.gallery {
  display: grid;
  gap: clamp(12px, 2vw, 20px);
  margin-top: clamp(32px, 5vw, 56px);
  padding: clamp(16px, 3vw, 32px);
  border-radius: calc(var(--radius) + 8px);
  background: var(--tint, var(--pink));
}
.gallery img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.gallery--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  align-items: start;
}
.gallery--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  align-items: center;
}
.gallery--crests {
  grid-template-columns: repeat(3, minmax(0, 1fr));
} /* stays 3-up: the crests read fine small */
.gallery--products {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 641px) {
  .gallery--products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.gallery--products li {
  display: grid;
  gap: 8px;
}
.gallery--products img {
  aspect-ratio: 1;
  object-fit: cover;
  background: #fff;
}
.gallery--products span {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: #3a3033;
  text-align: center;
}
:root[data-theme='dark'] .gallery--products span {
  color: var(--ink);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .gallery--products span {
    color: var(--ink);
  }
}

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 404 page: "Fetch failed" ---------- */
.lost {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px) var(--gutter) clamp(72px, 10vw, 120px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.lost__code {
  display: flex;
  align-items: center;
  gap: 0.04em;
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(6rem, 26vw, 11rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
}
.lost__ball {
  width: 0.82em;
  height: 0.82em;
  color: var(--ink);
  animation: lost-bounce 1.6s cubic-bezier(0.3, 0, 0.4, 1) infinite;
}
.lost__ball.is-thrown {
  animation: lost-throw 0.9s ease-in-out;
}
@keyframes lost-bounce {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-14%) rotate(40deg);
  }
}
@keyframes lost-throw {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  45% {
    transform: translate(60%, -55%) rotate(300deg);
  }
  100% {
    transform: translate(0, 0) rotate(720deg);
  }
}
.lost__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1;
}
.lost__lede {
  max-width: 38ch;
  margin: 16px 0 0;
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--ink-soft);
}
.lost__lede code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--accent-text);
  font-size: 0.9em;
}
.lost__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Pretend code console: always dark, in both themes */
.lost__console {
  margin: 0;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: #1f191b;
  color: #fbf1ec;
  box-shadow: 6px 6px 0 var(--pink);
  overflow: hidden;
}
.lost__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid #3a2d32;
}
.lost__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f59bb2;
}
.lost__bar span:nth-child(2) {
  background: #fbe7b4;
}
.lost__bar span:nth-child(3) {
  background: #b6e3a8;
}
.lost__bar b {
  margin-left: auto;
  font-weight: 500;
  font-size: 0.8rem;
  color: #b9aaab;
}
.lost__log {
  margin: 0;
  padding: 18px 20px 22px;
  list-style: none;
  font-family: ui-monospace, 'Cascadia Code', Consolas, Menlo, monospace;
  font-size: clamp(0.82rem, 2.6vw, 0.95rem);
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.lost__log li {
  animation: lost-type 0.35s ease both;
}
@keyframes lost-type {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
}
.lost__prompt {
  color: #f59bb2;
}
.lost__str {
  color: #b6e3a8;
}
.lost__err {
  color: #ff9b9b;
}
.lost__dim {
  color: #b9aaab;
}
.lost__note {
  color: #fbe7b4;
}
.lost__under {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 20px;
}
.lost__aside {
  margin: 56px 0 0 auto;
  font-family: var(--font-hand);
  font-size: 1.4rem;
  color: var(--accent-text);
  rotate: -4deg;
  white-space: nowrap;
}
/* The poodle peeks up over the console's bottom edge, below its text */
.lost__pup {
  flex: none;
  width: clamp(84px, 22vw, 120px);
  height: auto;
  margin: -34px 4% 0 0;
  rotate: 8deg;
  filter: drop-shadow(0 6px 10px rgb(0 0 0 / 0.15));
}

@media (min-width: 801px) {
  .lost {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    min-height: 70vh;
  }
}

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