/* ==========================================================
   Victoria Madison Liu — portfolio
   Colours, fonts and spacing live in :root so they're easy to tweak.
   ========================================================== */
:root {
  --ink: #111111;
  --muted: #6d6d6d;
  --line: #e7e2e2;
  --accent: #a06fb0;   /* highlight colour: used only for hovers, the shimmer and the pattern */
  --body-text: var(--ink);
  --ink-soft: #333333; /* captions */
  --surface: #f1ede9;  /* behind images while they load */
  --header-bg: rgba(252, 249, 246, .86);
  --overlay: rgba(252, 249, 246, .96);
  --select: #ead9f0;
  --bg: #fcf9f6;       /* warm off-white */

  --font: "Figtree", "Proxima Nova", system-ui, sans-serif;
  --wrap: 1240px;      /* widest the content gets */
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.22, .8, .24, 1);
  /* 1 Figma pixel. The home design was drawn on a 1728px-wide frame, but the page
     stops growing once the window passes --max-scale-width, so full-screen
     windows get the same comfortable sizes plus extra breathing room. */
  --max-scale-width: 1000px;
  --u: calc(min(100vw, var(--max-scale-width)) / 1728);
  /* 1 pixel of the full-screen Figma frame ("MacBook Pro 16 - 3", 1728 wide):
     the home page matches it exactly at 1728px and scales down proportionally, also
     with the window's height so the first project always fits on screen */
  --zoom: 1.1;   /* everything a touch bigger than the Figma; 1 = exact Figma size */
  --text: 1.1;   /* extra bump for text only on the home pages and footer */
  --f: calc(min(calc(min(100vw, 1728px) / 1728), calc(100vh / 1130)) * var(--zoom));
}
/* night mode: the toggle in the nav sets data-theme="dark" on <html> */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f2eff4;       /* off-white for headings */
  --muted: #8a8590;     /* grey for descriptions, tags, menu */
  --line: #24212a;
  --bg: #0b0a0d;        /* near-black with a hint of plum */
  --ink-soft: #8a8590;
  --surface: #141217;
  --header-bg: rgba(11, 10, 13, .82);
  --overlay: rgba(11, 10, 13, .96);
  --select: #4b3656;
  --body-text: var(--muted);
  --knot-glow: drop-shadow(0 0 5px rgba(160, 111, 176, .28));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;   /* body text across the site */
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--select); }

/* ---------- page fade (in on load, out on navigation) ---------- */
body { animation: page-in .6s var(--ease) both; transition: background-color .45s ease, color .45s ease; }
body.leaving { opacity: 0; transition: opacity .25s ease; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  background: transparent;
  transition: box-shadow .3s ease, background-color .3s ease;
}
.site-header.scrolled {
  background: var(--header-bg); box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
/* on pages with the big pattern, the header stays clear so it never covers it */
.about-page .site-header.scrolled { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.knot-logo { display: block; width: 64px; height: 64px; margin: -6px 0; }
.knot-logo .knots { width: 100%; height: 100%; }
.nav { display: flex; gap: clamp(20px, 4vw, 56px); margin-left: auto; }
.nav a {
  display: inline-grid; text-decoration: none;
  font-size: 19px; letter-spacing: .01em;
  padding: 4px 0; transition: color .25s;
}
/* invisible bold copy reserves the bold width, so nothing shifts */
.nav a::after { content: attr(data-label); font-weight: 600; visibility: hidden; height: 0; overflow: hidden; }
.nav a[aria-current="page"] { font-weight: 600; }
.nav a:hover { color: var(--ink); }
.index-page .nav a { color: var(--muted); letter-spacing: .04em; }
.index-page .nav a[aria-current="page"], .index-page .nav a:hover { color: var(--ink); }

/* night mode toggle (sits at the end of the nav) */
.theme-toggle {
  display: inline-grid; place-items: center; align-self: center;
  width: 1.5em; height: 1.5em; padding: 0; border: 0; border-radius: 50%;
  background: none; color: inherit; font-size: inherit; cursor: pointer;
  transition: color .25s, transform .5s var(--ease);
}
.theme-toggle svg { width: .9em; height: .9em; }
.theme-toggle:hover { color: var(--accent); transform: rotate(-20deg); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle .sun, :root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
.index-page .theme-toggle { font-size: max(15px, calc(18.5 * var(--f) * var(--text))); }

/* ---------- knot pattern ---------- */
.knots { display: block; }
.knot-base { opacity: var(--knot-rest, 1); transition: opacity .6s ease; }
.knot-svg { filter: var(--knot-glow, none); }
.knot-svg { display: block; width: 100%; height: 100%; overflow: hidden; }
@keyframes knot-stitch { to { stroke-dashoffset: 0; } }
@keyframes knot-pop { to { opacity: 1; } }
@keyframes knot-fade { to { opacity: 0; } }
@keyframes tassel-sway { from { transform: rotate(calc(var(--sway) * -1)); } to { transform: rotate(var(--sway)); } }

/* ⟡ ⟡ ⟡ between projects (same symbol as the footer links) */
.divider {
  display: flex; align-items: center; justify-content: center; gap: .9em;
  height: calc(150 * var(--f)); min-height: 80px;   /* breathing room between projects */
  color: var(--muted); font-size: max(14px, calc(18 * var(--f) * var(--text)));
}

/* ---------- index pages: digital (home) + physical ----------
   Measurements are the Figma frame's pixels (× --f). */
.index-page .site-header {
  position: absolute; left: 0; right: 0; z-index: 5;
  /* the "t" of "about" lines up with the right edge of the project images (1093 wide,
     centred); the moon hangs past it: one menu gap (95) + its own width (24) */
  padding: calc(60 * var(--f)) calc(50% - 546.5 * var(--f) - 119 * var(--f)) 0 0; background: none; box-shadow: none;
}
.index-page .nav { gap: calc(95 * var(--f)); }
.index-page .nav a { min-width: 0; text-align: center; font-size: max(15px, calc(18.5 * var(--f) * var(--text))); line-height: calc(40 * var(--f)); }
/* the moon sits one menu gap after "about", like another menu item */
.index-page .theme-toggle { width: calc(24 * var(--f)); height: calc(40 * var(--f)); border-radius: 0; }
.index-page .theme-toggle:hover { transform: none; }
.index-page .theme-toggle svg { transition: transform .5s var(--ease); }
.index-page .theme-toggle:hover svg { transform: rotate(-20deg); }

.hero {
  position: relative; z-index: 1;
  height: calc(450 * var(--f));        /* Figma: 446 */
  padding-top: calc(195 * var(--f));   /* Figma: 185 */
  text-align: center;
}
/* the knot clusters hug the window edges, drawn in the Figma's screen pixels
   (1728 wide) and scaled down for narrower windows; --x0/--y0/--w/--h come from knot.js */
.hero-knots {
  --s: calc(var(--f) * var(--fit, 1));   /* --fit: shrink to clear the content */
  position: absolute; z-index: -1;
  top: calc(var(--y0) * var(--s));
  width: calc(var(--w) * var(--s)); height: calc(var(--h) * var(--s));
}
.hero-knots--left { left: calc(var(--x0) * var(--s) + var(--nudge, 0px)); }
.hero-knots--right { left: calc(100% + (var(--x0) - 1728) * var(--s) + var(--nudge, 0px)); }
.hero-name {
  margin: 0 auto;
  font-size: max(40px, calc(63 * var(--f) * var(--text))); line-height: max(48px, calc(90 * var(--f))); font-weight: 600; letter-spacing: -.01em;
}
.hero-bio {
  color: var(--body-text);
  max-width: calc(820 * var(--f)); margin: calc(24 * var(--f)) auto 0;
  font-size: max(16px, calc(20.5 * var(--f) * var(--text))); line-height: 1.5;
}
.hero-bio span { display: block; }   /* the two lines break where the Figma does */
.hero-name, .hero-bio { position: relative; left: calc(12 * var(--f)); }   /* Figma centres these 12px right */

.cards {
  position: relative; z-index: 2;
  display: grid;
  width: calc(1093 * var(--f)); margin: 0 auto; padding-bottom: calc(150 * var(--f));
}
.card { display: block; text-decoration: none; color: var(--ink); background: var(--bg); }
/* rounded images that ease inward on hover (like ednaho.com) */
.card-media {
  aspect-ratio: 1093 / 504; overflow: hidden; background: var(--surface);
  border-radius: calc(18 * var(--f));
  transition: transform .7s var(--ease), border-radius .7s var(--ease);
}
.card:hover .card-media, .card:focus-visible .card-media { transform: scale(.965); border-radius: calc(26 * var(--f)); }

.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card-media--multi { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: calc(11 * var(--f)); background: none; border-radius: 0; }
.card-media--multi img { border-radius: calc(18 * var(--f)); }
.card:hover .card-media--multi { border-radius: 0; }
.card-text {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  column-gap: 24px; padding-top: calc(25 * var(--f));
}
.card h2 { font-size: max(17px, calc(21 * var(--f) * var(--text))); line-height: calc(40 * var(--f)); font-weight: 400; transition: color .3s; }
.card p { color: var(--ink); grid-column: 1 / -1; max-width: calc(1046 * var(--f)); margin-top: calc(1.5 * var(--f)); font-size: max(15px, calc(18.5 * var(--f) * var(--text))); line-height: 1.55; }
.pills { display: flex; list-style: none; margin: 0; padding: 0; color: var(--muted); }
.pills li {
  font-size: max(12px, calc(15 * var(--f) * var(--text))); line-height: calc(40 * var(--f)); letter-spacing: .03em; white-space: nowrap;
  transition: color .35s ease;
}
.pills li + li::before { content: "\00b7"; margin: 0 .7em; color: var(--muted); }
.card:hover h2, .card:focus-visible h2 { color: var(--accent); }
.card:hover .pills li, .card:focus-visible .pills li { color: var(--accent); }
.card:hover .pills li:nth-child(2) { transition-delay: .06s; }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }

/* ---------- About page (Figma "MacBook Pro 16 - 4"), same look as the home page ---------- */
.about-v2 {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: calc(349 * var(--f)) calc(720 * var(--f)); column-gap: calc(96 * var(--f));   /* Figma: 50 */
  justify-content: center; align-items: start;
  min-height: calc(880 * var(--f)); padding: calc(231 * var(--f)) 0 calc(120 * var(--f));
}
/* Figma centres the photo + text 88.5px left of the page centre (the knots stay put) */
.about-photo, .about-text { position: relative; left: calc(-88.5 * var(--f)); }
.about-v2 .hero-knots { top: calc(var(--y0) * var(--s)); }
.about-photo {
  width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 30%;
  margin-top: calc(14 * var(--f)); border-radius: calc(18 * var(--f)); background: var(--surface);
}
.about-text h1 {
  font-size: max(36px, calc(55.6 * var(--f) * var(--text))); line-height: 1.25; font-weight: 600; letter-spacing: -.01em;
  margin-bottom: calc(8 * var(--f));
}
.about-text p { color: var(--body-text); font-size: max(15px, calc(18.5 * var(--f) * var(--text))); line-height: 1.55; }
.about-text p + p { margin-top: 1.1em; }
.about-text .faves { margin-top: .35em; }
.about-text .faves button { font: inherit; font-size: max(15px, calc(18.5 * var(--f) * var(--text))); font-style: normal; color: var(--body-text); line-height: 1.75; }
.about-text .faves button:hover, .about-text .faves button[aria-expanded="true"] { color: var(--accent); }
.about-text .fave-panel figcaption { color: var(--muted); }
.about-text .fave-panel img { border-radius: calc(12 * var(--f)); }

/* ---------- About page intro (name + column of knots) ---------- */
.intro {
  position: sticky; top: 0; align-self: start;
  height: 100vh; min-height: 620px;
  margin-left: calc(var(--gutter) * -1);
  margin-top: -92px;               /* tuck under the header, like the original */
}
.intro .knots {
  position: absolute; left: 12px; top: 8px;
  width: min(26vw, 380px);
}
.intro-text {
  position: absolute; left: calc(12px + min(11vw, 160px)); bottom: 14vh;
  max-width: 420px; padding-right: 12px;
}
.name {
  font-size: clamp(44px, 5.2vw, 76px); line-height: .92; font-weight: 600;
  letter-spacing: -.01em; text-transform: uppercase;
}
.bio { margin-top: 26px; font-size: 18px; line-height: 1.45; max-width: 400px; }
.links { list-style: none; padding: 0; margin: 28px 0 0; font-size: 16px; line-height: 1.6; }
.links a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.links a:hover { background-size: 100% 1px; }

/* ---------- case study ---------- */
.case { max-width: var(--wrap); margin: 0 auto; padding: 24px var(--gutter) 40px; }
.case-head { display: grid; grid-template-columns: 4fr 8fr; gap: 24px clamp(24px, 5vw, 72px); margin-bottom: clamp(48px, 7vw, 88px); }
.case-title { font-size: clamp(38px, 4.6vw, 60px); line-height: 1.02; font-weight: 600; letter-spacing: -.01em; }
.proto {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 22px;
  font-size: 17px; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
}
.proto span { transition: transform .35s var(--ease); }
.proto:hover span { transform: translate(3px, -3px); }
.meta { display: flex; flex-wrap: wrap; gap: 18px clamp(28px, 5vw, 72px); margin-bottom: 30px; }
.meta dt { font-weight: 600; }
.meta dd { margin: 0; white-space: pre-line; }
.meta .tools { display: flex; gap: 6px; margin-top: 4px; }
.meta .tools img { width: 24px; height: 24px; }
.labelled + .labelled { margin-top: 26px; }
.labelled h3, .col h3 { font-size: 17px; font-weight: 600; }
.labelled p { max-width: 70ch; }

.prose { max-width: 720px; margin-left: auto; margin-right: auto; }
.case h2.section { font-size: clamp(30px, 3.4vw, 44px); font-weight: 600; line-height: 1.1; margin: 1.6em auto .5em; max-width: 720px; }
.case h2.section.big { font-size: clamp(38px, 4.4vw, 58px); margin-top: 1.4em; }
.case h3.sub { font-size: 21px; font-weight: 600; margin: 1.5em auto .45em; max-width: 720px; }
.text { white-space: pre-line; margin-bottom: 1.1em; }
.text + .text { margin-top: -.2em; }
.cols { display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); gap: 20px clamp(24px, 4vw, 56px); margin: 2.4em auto; }
.cols .text { margin: 0; }

/* image rows: each image's flex-grow is its aspect ratio, so heights line up */
.row { display: flex; gap: 16px; margin: 36px auto; align-items: flex-start; }
.row > * { flex: var(--ar) 1 0; min-width: 0; }
.shot { margin: 0; }
.shot img { width: 100%; cursor: zoom-in; }
.shot figcaption { margin-top: 12px; font-size: 15px; line-height: 1.55; color: var(--ink-soft); white-space: pre-line; }
.shot figcaption b { display: block; color: var(--ink); font-weight: 600; font-size: 16px; }
.cap-row { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 16px; margin: -18px auto 40px; }

/* simple fading slideshow */
.slides { position: relative; aspect-ratio: var(--sr); background: var(--surface); overflow: hidden; cursor: pointer; }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease; }
.slides img.on { opacity: 1; }
.slides .dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.slides .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); transition: background .3s; }
.slides .dots i.on { background: #fff; }
.slides button {
  position: absolute; top: 50%; translate: 0 -50%; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.85); color: #111; font: 18px/1 var(--font); cursor: pointer; opacity: 0; transition: opacity .3s;
}
.slides:hover button { opacity: 1; }
.slides .prev { left: 10px; } .slides .next { right: 10px; }

.arrow-row { align-items: center; }
.arrow-row .arrow { flex: 0 0 auto; font-size: 34px; color: var(--accent); padding: 0 6px; }

/* next project */
.next {
  display: block; text-decoration: none; text-align: center;
  margin: clamp(80px, 10vw, 140px) auto 0; padding: 56px var(--gutter) 64px;
  border-top: 1px solid var(--line);
}
.next small { display: block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.next strong { display: inline-block; margin-top: 10px; font-size: clamp(32px, 4vw, 52px); font-weight: 600; transition: color .3s, transform .5s var(--ease); }
.next:hover strong { color: var(--accent); transform: translateX(6px); }
.next .knots { width: 46px; height: 46px; margin: 18px auto 0; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 5vw, 80px); max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter) 120px; }
.about .intro-text { position: absolute; }
.portrait { width: min(100%, 300px); margin-top: 22px; }
.about-body { padding-top: clamp(40px, 22vh, 300px); font-size: 18px; max-width: 640px; }
.about-body p + p { margin-top: 1.1em; }
.about-body em { font-style: italic; }
.faves { list-style: none; padding: 0; margin: 2.2em 0 0; }
.faves button {
  font: italic 18px/1.7 var(--font); color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer;
  display: inline-flex; gap: 8px; align-items: baseline;
}
.faves button span { display: inline-block; transition: transform .4s var(--ease); }
.faves button:hover span, .faves button[aria-expanded="true"] span { transform: translateX(5px) rotate(0deg); color: var(--accent); }
.faves button[aria-expanded="true"] { color: var(--accent); }
.fave-panel { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 16px 14px; margin-top: 26px; }
.fave-panel[hidden] { display: none; }
.fave-panel figure { margin: 0; animation: pop .6s var(--ease) both; }
.fave-panel figure:nth-child(2) { animation-delay: .06s; } .fave-panel figure:nth-child(3) { animation-delay: .12s; }
.fave-panel figure:nth-child(4) { animation-delay: .18s; } .fave-panel figure:nth-child(5) { animation-delay: .24s; }
.fave-panel figure:nth-child(6) { animation-delay: .3s; }
.fave-panel img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.fave-panel figcaption { font-size: 13px; line-height: 1.5; margin-top: 6px; color: var(--ink-soft); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: var(--overlay); padding: 4vh 4vw; cursor: zoom-out;
  opacity: 0; pointer-events: none; transition: opacity .35s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-height: 92vh; width: auto; max-width: 100%; transform: scale(.97); transition: transform .45s var(--ease); }
.lightbox.open img { transform: none; }

/* ---------- footer ---------- */
.site-footer {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px 24px;
  padding: 28px calc(42 * var(--f)) 22px calc(38 * var(--f));
  font-size: max(14px, calc(20 * var(--f) * var(--text))); line-height: 2;
}
.site-footer .social { text-align: right; }
.site-footer .social span { color: var(--muted); margin: 0 .35em; }
.site-footer a { text-decoration: none; transition: color .25s; }
.site-footer a:hover { color: var(--accent); }
.clock { font-variant-numeric: tabular-nums; }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .intro { position: relative; height: auto; min-height: 0; margin: -92px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter); }
  .intro .knots { position: absolute; left: 0; top: 0; width: 46vw; max-width: 300px; opacity: .9; z-index: -1; }
  .intro-text, .about .intro-text { position: relative; left: auto; bottom: auto; padding-top: max(46vw, 240px); }
  .about-body { padding-top: 24px; }
  .case-head { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  /* index pages on phones: knots shrink into the corners, cards go full width */
  .index-page .site-header { position: relative; justify-content: center; padding: 16px 20px 10px; }
  .index-page .nav { gap: 22px; margin: 0; }
  .index-page .nav a { min-width: 0; font-size: 16px; line-height: 1.6; }
  .hero { height: auto; padding: 236px 20px 56px; }
  .hero-name { max-width: none; font-size: 40px; }
  .hero-bio { max-width: none; margin-top: 18px; font-size: 17px; }
  .hero-bio span { display: inline; }
  .hero-name, .hero-bio { left: 0; }
  .card p { line-height: 1.5; }
  .cards { width: auto; padding: 0 20px 96px; }
  .divider { min-height: 72px; }
  .card-media { aspect-ratio: 4 / 3; }
  .card-media--multi { gap: 6px; }
  .card-text { grid-template-columns: 1fr; padding-top: 14px; }
  .card h2 { line-height: 1.25; }
  .pills { order: 3; margin-top: 12px; gap: 8px; }
  .pills li { line-height: 1.6; }
  .card p { grid-column: 1; margin-top: 6px; }
  .site-footer { grid-template-columns: 1fr; text-align: center; padding: 28px 20px; }
  .about-v2 { grid-template-columns: 1fr; row-gap: 24px; padding: 150px 20px 72px; min-height: 0; }
  .about-photo, .about-text { left: 0; }
  .about-photo { width: min(70%, 260px); margin: 0 auto; }
  .about-text h1 { font-size: 32px; }
  .site-footer .social { text-align: center; }
  .nav a { font-size: 15px; }
  .knot-logo { width: 48px; height: 48px; }
  .row { flex-wrap: wrap; gap: 10px; }
  .row > * { flex-basis: calc(50% - 5px); }
  .row.solo > *, .row > .slides { flex-basis: 100%; }
  .cols, .cap-row { grid-template-columns: 1fr; }
  .cap-row { margin-top: 0; }
  .fave-panel { --cols: 2 !important; }
}

/* phones: show each project's whole image on the home page cards */
@media (max-width: 600px) {
  .card-media { aspect-ratio: auto; }
  .card-media img { height: auto; }
  .card-media--multi { align-items: start; }
}
