/* Portfolio v3 — landing page
   Built from Figma: portfolio / LANDING (node 964:1818)
   Design canvas is 1280px wide; the hero collage keeps its exact
   pixel composition and steps down in scale on narrower screens. */

:root {
  --bg: #fffdf9;
  --ink: #000000;
  --teal: #3b91a0;
  --sage: #8b886f;
  --olive: #5b5946;
  --thumb: #adb2a0;

  --mono: "Intel One Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: Helvetica, "Helvetica Neue", Arial, sans-serif;

  --content: 1096px;
  --gutter: 92px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);

  /* Custom cursor from Figma (node 983:1951). The PNG line is the fallback for
     browsers without image-set; the hotspot sits on the arrow's tip. */
  cursor: url("../media/v3/cursor.png") 1 1, auto;
  cursor: -webkit-image-set(url("../media/v3/cursor.png") 1x, url("../media/v3/cursor@2x.png") 2x)
      1 1,
    auto;
  cursor: image-set(url("../media/v3/cursor.png") 1x, url("../media/v3/cursor@2x.png") 2x) 1 1,
    auto;
}

/* Clickable things keep the hand, so the affordance survives. */
a[href],
button,
summary {
  cursor: pointer;
}

img {
  display: block;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal);
  color: #fff;
  font-family: var(--mono);
  padding: 10px 16px;
  z-index: 10;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

/* ---------- Nav ---------- */

/* The nav sits 10px outside the content gutter, as in the design. */
.site-nav {
  padding: 48px max(16px, calc(var(--gutter) - 10px)) 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 1116px;
  max-width: 100%;
  margin: 0 auto;
}

.wordmark {
  font-family: var(--mono);
  font-size: 21px;
  line-height: 22px;
  letter-spacing: -1.05px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-link {
  font-family: var(--mono);
  transition: color 0.2s ease, background-color 0.2s ease;
  font-size: 15px;
  line-height: 22px;
  letter-spacing: 0.15px;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 15px;
  white-space: nowrap;
  border-radius: 20px;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--teal);
}

/* A nav item that's switched off for now (the resume, while it's updated):
   it stays visible but faded, and it isn't a link. */
.nav-link.is-disabled,
.nav-link.is-disabled:hover {
  color: var(--ink);
  opacity: 0.35;
  cursor: default;
}

.nav-link.is-current {
  background: var(--teal);
  color: #fff;
  padding: 10px 20px;
}

.nav-link.is-current:hover,
.nav-link.is-current:focus-visible {
  background: #327e8b;
  color: #fff;
}

.wordmark {
  transition: color 0.2s ease;
}

.wordmark:hover,
.wordmark:focus-visible {
  color: var(--teal);
}

/* ---------- Hero ---------- */

.hero {
  padding: 0 var(--gutter);
  margin-top: 160px;
}

.hero-inner {
  position: relative;
  width: var(--content);
  max-width: 100%;
  margin: 0 auto;
  height: 398px;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  width: 416px;
  max-width: 100%;
  margin: 0;
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: -0.7px;
  color: var(--sage);
}

/* A small "live" dot to the left of the clock that gently grows and shrinks.
   It sits in line, so the dot starts on the same edge as the greeting below. */
.hero-clock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.live-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  animation: live-dot 1.4s ease-in-out infinite alternate;
}

@keyframes live-dot {
  from { transform: scale(0.8); }
  to { transform: scale(1.25); }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
}

.hero-title {
  position: absolute;
  top: 120px;
  left: 0;
  margin: 0;
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.56px;
  color: var(--teal);
  white-space: nowrap;
}

.hero-intro {
  position: absolute;
  /* Bottom of the intro lines up with the collage objects' baseline (304). */
  top: 229px;
  left: 0;
  margin: 0;
  width: 416px;
  font-size: 18px;
  line-height: 25px;
  letter-spacing: 0.36px;
  color: var(--olive);
}

.hero-intro p {
  margin: 0;
}

.hero-intro strong {
  font-weight: 700;
}

/* What I'm working on right now, under the greeting. */
.hero-status {
  position: absolute;
  top: 169px;
  left: 0;
  margin: 0;
  /* Sized to run a little shorter than "HELLO, I'M STEPHANIE" above it. */
  font-family: var(--mono);
  font-size: 13px;
  line-height: 25px;
  color: #000;
}

/* DCC and Hack4Impact each get a teal underline that keeps drawing itself:
   it grows in from the left, holds, then sweeps off to the right and starts
   again. The two run out of step so one is always moving. */
.hero-org {
  position: relative;
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

.hero-org:hover,
.hero-org:focus-visible {
  color: var(--teal);
}

.hero-org::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1.5px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left center;
  animation: hero-underline 3.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.hero-org + .hero-org::after {
  animation-delay: 1.6s;
}

@keyframes hero-underline {
  0% { transform: scaleX(0); transform-origin: left center; }
  35% { transform: scaleX(1); transform-origin: left center; }
  60% { transform: scaleX(1); transform-origin: right center; }
  95%, 100% { transform: scaleX(0); transform-origin: right center; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-org::after {
    animation: none;
    transform: none;
  }
}

/* ---------- Hero collage ----------
   The collage keeps the Figma composition (670 x 398) but every child is
   positioned in % of that box, so the whole thing scales with its container
   instead of snapping between fixed sizes. */

.collage-wrap {
  position: absolute;
  top: 0;
  left: 446px;
  width: 670px;
  max-width: 100%;
  container-type: inline-size;
}

.collage {
  position: relative;
  width: 100%;
  aspect-ratio: 670 / 398;
}

.bubble {
  position: absolute;
  max-width: none;
}

/* Bubbles stay hidden until their object is hovered or focused. They keep their
   place in the accessibility tree, so the captions are always readable. */
.bubble,
.bubble-text {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
  z-index: 1;
}

.c-img:hover + .bubble,
.c-img:hover + .bubble + .bubble-text,
.c-img:focus-visible + .bubble,
.c-img:focus-visible + .bubble + .bubble-text {
  opacity: 1;
  transform: translateY(0);
}

.bubble--1 { left: 0; top: 0; width: 27.612%; height: 23.170%; }
.bubble--2 { left: 54.478%; top: 17.337%; width: 25.522%; height: 21.474%; }
.bubble--3 { left: 23.284%; top: 79.075%; width: 24.328%; height: 20.924%; }
.bubble--4 { left: 71.045%; top: 78.065%; width: 28.955%; height: 20.750%; }

.bubble-text {
  position: absolute;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 9.296%;
  font-family: var(--mono);
  font-size: min(12px, 1.791cqw);
  line-height: 1.2;
  letter-spacing: -0.08em;
  color: #fff;
}

/* Characters are laid out up front and switched on one at a time by
   js/v3-bubbles.js, so nothing reflows while the caption types. */
.bubble-text > [aria-hidden] {
  max-width: 100%;
}

.bubble-text .ch {
  visibility: hidden;
}

.bubble-text .ch.is-on {
  visibility: visible;
}

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

.bubble-text--1 { left: 3.881%; top: 3.518%; width: 19.851%; }
.bubble-text--2 { left: 56.716%; top: 20.101%; width: 21.045%; }
.bubble-text--3 { left: 25.224%; top: 87.437%; width: 20.597%; }
.bubble-text--4 { left: 72.985%; top: 86.181%; width: 25.522%; }

.c-img {
  position: absolute;
  display: block;
  overflow: hidden;
  z-index: 2;
  border-radius: 4px;
}


.c-img:focus-visible {
  outline-offset: 2px;
}

.c-img img {
  position: absolute;
  max-width: none;
}

.c-img--plant { left: 13.881%; top: 25.628%; width: 18.806%; height: 50.754%; }
.c-img--plant img { left: -73.07%; top: -20.46%; width: 227.86%; height: 142.09%; }

.c-img--polish { left: 36.567%; top: 34.422%; width: 10.448%; height: 41.960%; }
.c-img--polish img { left: -66.98%; top: 0; width: 237.53%; height: 100%; }

.c-img--camera { left: 52.985%; top: 38.693%; width: 21.791%; height: 37.688%; }
.c-img--camera img { left: -27.72%; top: -37.22%; width: 158.42%; height: 175.72%; }

.c-img--paint { left: 80.896%; top: 38.693%; width: 12.239%; height: 37.688%; }
.c-img--paint img { left: -95.61%; top: -49.64%; width: 280.7%; height: 192.77%; }

/* ---------- Projects ---------- */

.projects {
  padding: 0 var(--gutter);
  margin-top: 260px;
}

.section-label {
  width: var(--content);
  max-width: 100%;
  margin: 0 auto 85px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.7px;
  color: var(--sage);
}

.project-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 119px 51px;
  width: var(--content);
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

.card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 0 0 20px;
  padding: 0;
}

.tags li {
  background: #fff;
  border: 1px solid var(--sage);
  border-radius: 200px;
  padding: 10px 15px;
  font-size: 14px;
  line-height: normal;
  color: var(--sage);
  white-space: nowrap;
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.card-title {
  margin: 0 0 10px;
  transition: color 0.25s ease;
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -1.6px;
  color: var(--ink);
}

.card-desc {
  margin: 0 0 20px;
  transition: color 0.25s ease;
  font-size: 18px;
  line-height: normal;
  letter-spacing: 0.36px;
  color: var(--sage);
}

.thumb {
  position: relative;
  overflow: hidden;
  background: var(--thumb);
  border-radius: 5px;
  /* The covers are 527 × 402 in Figma; the box keeps that shape at any card
     width so the whole cover always shows. */
  aspect-ratio: 527 / 402;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The hover border is drawn on a layer over the cover, so the cover fills the
   whole box with the same 5px corners and nothing shows around it at rest. */
.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  border-radius: inherit;
  pointer-events: none;
  transition: border-color 0.25s ease;
}

/* Hovered card — Figma node 986:2013. The palette shifts from sage to the site
   accent and the thumbnail picks up a border. */
/* Tags fill in teal (Figma node 986:2015); the border goes teal too so the
   pill keeps its size. */
.card:hover .tags li,
.card:focus-visible .tags li {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.card:hover .card-title,
.card:focus-visible .card-title {
  color: var(--teal);
}

.card:hover .card-desc,
.card:focus-visible .card-desc {
  color: var(--ink);
}

.card:hover .thumb::after,
.card:focus-visible .thumb::after {
  border-color: var(--teal);
}

/* "VIEW PROJECT" cursor over a project card — Figma node 1185:1122 — and the
   "LINKEDIN!" / "EMAIL ME!" cursors on the footer icons (1185:5854, 1185:5857),
   all scaled down to the regular cursor's 20px height. js/v3-view-cursor.js moves it with
   the mouse; its top-left corner sits on the pointer, where the arrow's tip
   is. The script sets `translate`, which applies after `scale`, so the pill
   grows out of that corner without its position being scaled too. */
.has-view-cursor a.card[href],
.has-view-cursor a.card[href] *,
.has-view-cursor [data-cursor],
.has-view-cursor [data-cursor] * {
  cursor: none;
}

.view-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 4px 10px;
  border-radius: 10px;
  background: var(--sage);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 12px;
  letter-spacing: -0.22px;
  white-space: nowrap;
  pointer-events: none;
  transform-origin: 0 0;
  scale: 0.2;
  opacity: 0;
  transition: opacity 0.12s ease, scale 0.18s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.view-cursor.is-visible {
  scale: 1;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .view-cursor { scale: 1; transition: none; }
}

/* ---------- Narrower screens ---------- */

@media (max-width: 1180px) {
  :root { --gutter: 48px; }
}

@media (max-width: 1180px) {
  .hero-inner { height: auto; min-height: 398px; }

  .collage-wrap {
    left: auto;
    right: 0;
    width: min(670px, calc(100% - 440px));
  }
}

@media (max-width: 1000px) {
  .hero-inner { min-height: 0; }

  .hero-meta,
  .hero-title,
  .hero-status,
  .hero-intro {
    position: static;
    width: auto;
    max-width: 440px;
  }

  .hero-meta { width: 416px; max-width: 100%; margin-bottom: 20px; }
  .hero-title { margin-bottom: 10px; }
  .hero-status { margin-bottom: 18px; }

  .collage-wrap {
    position: relative;
    right: auto;
    width: 100%;
    max-width: 670px;
    margin-top: 48px;
  }

  .projects { margin-top: 140px; }

  .project-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 80px;
  }

}

@media (max-width: 720px) {
  :root { --gutter: 24px; }

  .site-nav { padding-top: 32px; }

  .nav-inner {
    flex-wrap: wrap;
    gap: 16px;
  }

  .site-nav nav { gap: 6px; }

  .nav-link { font-size: 15px; line-height: 22px; padding: 8px 12px; }
  .nav-link.is-current { padding: 8px 16px; }

  .hero { margin-top: 64px; }
  .hero-title { font-size: 24px; white-space: normal; }
  .hero-status { font-size: 11px; }

  .card-title { font-size: 26px; letter-spacing: -1.1px; }
  .card-desc { font-size: 16px; }
}

/* No hover on touch screens, so the bubbles simply stay visible there. */
@media (hover: none) {
  .bubble,
  .bubble-text {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bubble,
  .bubble-text { transition: opacity 0.28s ease; transform: none; }
  .thumb::after,
  .tags li,
  .card-title,
  .card-desc { transition: none; }
}

/* ==========================================================================
   ABOUT PAGE — Figma node 986:2056
   ========================================================================== */

.about {
  padding: 0 max(16px, calc(var(--gutter) - 10px));
}

.about > * {
  width: 1116px;
  max-width: 100%;
  margin-inline: auto;
}

.label {
  margin: 0 0 15px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.7px;
  color: var(--sage);
}

.block .body {
  margin: 0 0 25px;
  font-size: 18px;
  line-height: 25px;
  letter-spacing: 0.36px;
}

.block .body:last-child {
  margin-bottom: 0;
}

.block strong {
  font-weight: 700;
  color: var(--teal);
}

/* Every section starts on the same left edge as the nav content. */
.indented {
  padding-left: 0;
}

.accent {
  color: var(--teal);
}

/* --- Welcome + TLDR --- */

.about-intro {
  display: grid;
  grid-template-columns: 417px 515px;
  gap: 184px;
  margin-top: 155px;
}

.about-intro-text {
  display: flex;
  flex-direction: column;
  gap: 139px;
}

.display {
  margin: 0;
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.27;
  letter-spacing: -1.5px;
}

.portrait {
  width: 515px;
  max-width: 100%;
  height: 384px;
  border-radius: 5px;
  object-fit: cover;
}

/* --- The long story --- */

.about-story {
  position: relative;
  margin-top: 226px;
}

.about-story .block {
  width: 465px;
  max-width: 100%;
}

.story-collage {
  left: 616px;
  top: -15px;
  width: 474px;
  height: 457px;
}

.story-collage .collage {
  aspect-ratio: 474 / 457;
}

.story-collage .bubble-text {
  font-size: min(12px, 2.532cqw);
}

.bubble--cats { left: 49.156%; top: 0; width: 40.928%; height: 17.8%; }
.bubble-text--cats { left: 51.899%; top: 2.12%; width: 36.076%; height: 8.096%; }

.bubble--autolayout { left: 44.304%; top: 81.838%; width: 40.928%; height: 18.071%; }
.bubble-text--autolayout { left: 47.046%; top: 88.906%; width: 36.076%; height: 8.096%; }

.c-img--paints { left: 0; top: 34.354%; width: 38.608%; height: 37.637%; }
.c-img--paints img { left: -38.77%; top: -49.02%; width: 184.62%; height: 196.08%; }

.c-img--figma { left: 40.295%; top: 20.35%; width: 13.291%; height: 18.818%; }
.c-img--figma img { left: -61.15%; top: -28.01%; width: 218.46%; height: 159.1%; }

.c-img--figure { left: 50.844%; top: 46.171%; width: 24.262%; height: 34.354%; }
.c-img--figure img { left: -98.76%; top: -63.14%; width: 304.13%; height: 222.36%; }

.c-img--cat { left: 73.418%; top: 18.381%; width: 26.582%; height: 31.729%; }
.c-img--cat img { inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* --- Statement --- */

.about-statement {
  width: 544px;
  margin: 193px 0 0 calc(50% - 263px);
  font-family: var(--mono);
  font-size: 30px;
  line-height: 1.27;
  letter-spacing: -1.5px;
}

/* --- For the future --- */
/* Figma nodes 1004:2187 (label) and 1080:2433 / 1080:2434 / 1080:2435
   (the three rows). Each row is [decorative figure][number][title + bullets];
   the figure sits in a fixed-width slot so the number always lines up,
   whatever the figure's own aspect ratio. */

.about-future {
  margin-top: 179px;
}

.about-future .label {
  margin-bottom: 35px;
}

/* The list is as wide as its content and centred on the page; the label
   above stays on the shared left edge. */
.future-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

.future-item {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* The flex slot is a separate element from the crop box below — a flex
   item's own `width` loses to `flex-basis` when both are set on one element,
   which was stretching the crop boxes to the full 153px slot. */
.future-icon {
  flex: 0 0 153px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.future-icon-crop--1 {
  position: relative;
  width: 89px;
  height: 71px;
  overflow: hidden;
}

.future-icon-crop--1 img {
  position: absolute;
  left: -19.88%;
  top: -41.59%;
  width: 138.55%;
  height: 175.09%;
  max-width: none;
}

.future-icon-crop--2 {
  position: relative;
  width: 66px;
  height: 138px;
  overflow: hidden;
}

.future-icon-crop--2 img {
  position: absolute;
  left: -66.96%;
  top: 0;
  width: 209.57%;
  height: 100%;
  max-width: none;
}

.future-icon-crop--3 {
  width: 139px;
  height: 104px;
}

.future-icon-crop--3 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.future-copy {
  display: flex;
  align-items: flex-start;
  gap: 25px;
}

.future-num {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 100px;
  background: var(--teal);
  font-family: var(--mono);
  font-size: 18px;
  line-height: 25px;
  letter-spacing: 0.36px;
  color: #fff;
}

.future-title {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 23px;
  font-weight: 400;
  line-height: 30px;
  letter-spacing: 0.46px;
  color: var(--teal);
}

.future-points {
  list-style: disc;
  margin: 0;
  padding-left: 27px;
  font-size: 18px;
  line-height: 25px;
  letter-spacing: 0.36px;
  color: var(--ink);
}

@media (max-width: 1180px) {
  .about-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 64px;
  }

  .about-intro-text { gap: 64px; }
  .about-future { padding-left: 0; }

  .about-story { display: flex; flex-direction: column; gap: 48px; }
  .story-collage {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 474px;
    height: auto;
  }

  .about-statement {
    width: auto;
    max-width: 544px;
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .about-intro { margin-top: 64px; }
  .display,
  .about-statement { font-size: 24px; letter-spacing: -1.1px; }
  .about-statement { margin-top: 100px; }
  .about-story { margin-top: 100px; }
  .about-future { margin-top: 100px; }
  .future-list { margin-inline: 0; }

  .future-item {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
  }

  .future-icon {
    flex: none;
    justify-content: flex-start;
  }
}

/* ==========================================================================
   PAGE TRANSITIONS
   ========================================================================== */

/* Everything but the nav moves. The nav is identical and in the same place on
   every page, so it stays put across the page change while the content below
   fades out and the next page's content fades in. */
body > :not(.site-nav) {
  animation: page-enter 0.45s ease both;
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

html.is-leaving body > :not(.site-nav) {
  animation: page-exit 0.26s ease both;
}

@keyframes page-exit {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body > :not(.site-nav),
  html.is-leaving body > :not(.site-nav) {
    animation: none;
  }
}

/* ==========================================================================
   SCROLL REVEAL — opt in with data-reveal, driven by js/v3-reveal.js
   ========================================================================== */

[data-reveal].will-reveal {
  opacity: 0;
  transform: translateY(18px);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal].will-reveal,
  [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   FOOTER — Figma node 986:2056 (footer group)
   ========================================================================== */

.site-footer {
  margin-top: 160px;
  padding: 0 max(16px, calc(var(--gutter) - 10px)) 64px;
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  width: 1116px;
  max-width: 100%;
  margin: 0 auto;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

/* The figurine art is taller than its footer slot, so it's cropped to just
   the part that peeks over the edge — same percentages as the Figma frame. */
.footer-figurine {
  position: relative;
  width: 150px;
  height: 88px;
  overflow: hidden;
}

.footer-figurine img {
  position: absolute;
  left: -35.42%;
  top: -112.02%;
  width: 187.66%;
  height: 327.87%;
  max-width: none;
}

.footer-tagline {
  margin: 0;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-icon {
  display: block;
  line-height: 0;
  transition: opacity 0.2s ease;
}

.footer-icon:hover,
.footer-icon:focus-visible {
  opacity: 0.7;
}

.footer-up {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 30px;
  background: var(--teal);
  color: #fff;
  font-family: var(--mono);
  font-size: 18px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.footer-up:hover,
.footer-up:focus-visible {
  background: #327e8b;
  transform: translateY(-3px);
}

.footer-up-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.footer-up:hover .footer-up-icon,
.footer-up:focus-visible .footer-up-icon {
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .footer-up,
  .footer-up-icon {
    transition: background-color 0.2s ease;
    transform: none;
  }
}

.footer-copyright {
  margin: 6px 0 0;
  font-size: 16px;
  color: #898989;
}

@media (max-width: 720px) {
  .site-footer { margin-top: 96px; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .footer-right {
    align-items: flex-start;
  }

  .footer-copyright {
    margin-top: 0;
  }
}

/* ==========================================================================
   WHAT ELSE? — photo album, Figma node 986:2152 (collage: 1036:2320)
   ========================================================================== */

.what-else {
  padding: 0 max(16px, calc(var(--gutter) - 10px)) 108px;
}

.what-else > * {
  width: 1116px;
  max-width: 100%;
  margin-inline: auto;
}

.album-intro {
  margin-top: 83px;
}

.album-title {
  margin: 0 0 13px;
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0.32px;
  color: var(--teal);
}

.album-subtitle {
  margin: 0;
  font-size: 18px;
  line-height: 25px;
  letter-spacing: 0.36px;
}

/* Filters sit 5px in from the content edge; the board starts 172px in. */
.album {
  display: grid;
  grid-template-columns: 118px 935px;
  column-gap: 49px;
  align-items: start;
  margin-top: 64px;
  padding-left: 5px;
}

.album-filters .label {
  margin: 0 0 32px;
}

.filter-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.filter-chip {
  font-family: var(--sans);
  font-size: 16px;
  line-height: normal;
  letter-spacing: 0.32px;
  color: var(--teal);
  background: var(--bg);
  border: 2px solid var(--teal);
  border-radius: 30px;
  padding: 10px 15px;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.filter-chip:hover {
  background: #eaf3f4;
}

.filter-chip[aria-pressed="true"] {
  background: var(--teal);
  color: #fff;
  font-weight: 700;
}

/* The board is the 935 × 642 frame; the page inside it is 888 × 577. Photo
   positions are the Figma pixel values over that page, so the whole collage
   scales down as one piece. */
.album-board {
  position: relative;
  aspect-ratio: 935 / 642;
  background: #dcccb2;
  border-radius: 5px;
  overflow: hidden;
}

.album-page {
  position: absolute;
  left: calc(24 / 935 * 100%);
  top: calc(32 / 642 * 100%);
  width: calc(888 / 935 * 100%);
  height: calc(577 / 642 * 100%);
  margin: 0;
  padding: 0;
  list-style: none;
  background: #f2ece3;
  border-radius: 5px;
  overflow: hidden;
}

.photo {
  position: absolute;
  overflow: hidden;
  border-radius: 2px;
  transition: opacity 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

/* Photos can be dragged around the page (js/v3-album.js). The script adds
   .is-draggable only while the collage layout is showing. */
.photo.is-draggable {
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.photo.is-draggable img {
  -webkit-user-drag: none;
  pointer-events: none;
}

.photo.is-dragging {
  cursor: grabbing;
  transform: scale(1.04) rotate(-1deg);
  box-shadow: 0 12px 28px rgba(59, 64, 52, 0.28);
  transition: opacity 0.3s ease, filter 0.3s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* With a filter on, matching photos stay in colour and get a teal frame;
   everything else drops to grey. */
/* Dimmed photos stay opaque (washed out rather than see-through) so
   overlapping photos don't show through each other, and can't be dragged. */
.photo.is-dimmed {
  filter: grayscale(1) contrast(0.75) brightness(1.12);
}

.photo.is-draggable.is-dimmed {
  cursor: inherit;
}

.photo.is-highlighted {
  box-shadow: 0 0 0 3px var(--teal), 0 8px 20px rgba(59, 145, 160, 0.25);
}

.photo--beach           { left: calc(110 / 888 * 100%); top: calc(44.19 / 577 * 100%); width: calc(100.789 / 888 * 100%); height: calc(134.408 / 577 * 100%); }
.photo--river           { left: calc(246 / 888 * 100%); top: calc(84 / 577 * 100%); width: calc(158 / 888 * 100%); height: calc(118 / 577 * 100%); }
.photo--ducks           { left: calc(428 / 888 * 100%); top: calc(55 / 577 * 100%); width: calc(156.135 / 888 * 100%); height: calc(117 / 577 * 100%); }
.photo--friends-door    { left: calc(613 / 888 * 100%); top: calc(43 / 577 * 100%); width: calc(125 / 888 * 100%); height: calc(166 / 577 * 100%); }
.photo--garden-painting { left: calc(137 / 888 * 100%); top: calc(216 / 577 * 100%); width: calc(110 / 888 * 100%); height: calc(146 / 577 * 100%); }
.photo--koi             { left: calc(268 / 888 * 100%); top: calc(229 / 577 * 100%); width: calc(149 / 888 * 100%); height: calc(109 / 577 * 100%); }
.photo--waterfall       { left: calc(442 / 888 * 100%); top: calc(200 / 577 * 100%); width: calc(126 / 888 * 100%); height: calc(153 / 577 * 100%); }
.photo--nails-sweater   { left: calc(596 / 888 * 100%); top: calc(228 / 577 * 100%); width: calc(126 / 888 * 100%); height: calc(147 / 577 * 100%); }
.photo--friends-park    { left: calc(132 / 888 * 100%); top: calc(395 / 577 * 100%); width: calc(158 / 888 * 100%); height: calc(105 / 577 * 100%); }
.photo--nails-dark      { left: calc(335 / 888 * 100%); top: calc(358 / 577 * 100%); width: calc(132 / 888 * 100%); height: calc(167 / 577 * 100%); }
.photo--community-event { left: calc(516 / 888 * 100%); top: calc(409 / 577 * 100%); width: calc(149 / 888 * 100%); height: calc(112 / 577 * 100%); }

/* Crops that aren't a plain cover fit, taken from the Figma image fills. */
.photo--garden-painting img { left: -4.88%; top: -0.27%; width: 111.62%; height: 104.59%; }
.photo--ducks img           { left: 0; top: 0; width: 102.58%; height: 104.96%; }
.photo--waterfall img       { left: 0; top: -9.13%; width: 100%; height: 109.26%; }

@media (max-width: 1180px) {
  .album {
    grid-template-columns: 118px minmax(0, 1fr);
    column-gap: 32px;
  }
}

/* Filters move above the board as a row of chips. */
@media (max-width: 860px) {
  .album {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 24px;
    padding-left: 0;
  }

  .album-filters .label {
    margin-bottom: 15px;
  }

  .filter-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* Too narrow for the collage to read, so the photos fall into a grid. */
@media (max-width: 720px) {
  .album-intro {
    margin-top: 56px;
  }

  .album-title {
    font-size: 24px;
  }

  .album-board {
    aspect-ratio: auto;
    padding: 12px;
  }

  .album-page {
    position: static;
    width: auto;
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 12px;
  }

  .photo {
    position: relative;
    inset: auto;
    width: auto;
    height: auto;
    aspect-ratio: 3 / 4;
  }

  /* Beats the inline positions left behind by dragging on a wider screen. */
  .photo[style] {
    left: auto !important;
    top: auto !important;
  }

  .photo img,
  .photo--garden-painting img,
  .photo--ducks img,
  .photo--waterfall img {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo,
  .photo.is-dragging,
  .filter-chip {
    transition: none;
  }

  .photo.is-dragging {
    transform: none;
  }
}

/* ==========================================================================
   CASE STUDY — Menuvo, Figma node 1099:2464
   The design is an 800px column centred on the 1280 canvas; vertical gaps
   are the Figma distances between blocks.
   ========================================================================== */

.cs {
  --cs-brown: #965b3d;
  --cs-rust: #a55b20;
  --cs-orange: #ce7500;
  --cs-text: #242424;

  /* Figma: the nav ends at y 86 and the cover starts at 117. */
  padding: 31px 16px 101px;
}

.cs > *,
.cs-hero > *,
.cs-features > * {
  width: 800px;
  max-width: 100%;
  margin-inline: auto;
}

.cs-eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: -0.54px;
  text-transform: uppercase;
  color: var(--cs-orange);
}

.cs-h2 {
  margin: 0;
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: -0.72px;
  color: #000;
}

.cs-body {
  margin: 0;
  font-size: 16px;
  line-height: 23px;
  letter-spacing: 0.32px;
  color: var(--cs-text);
}

.cs-body--justify {
  text-align: justify;
}

.cs-list {
  margin: 0;
  padding: 0 0 0 24px;
  font-size: 16px;
  line-height: 23px;
  letter-spacing: 0.32px;
  color: var(--cs-text);
}

.cs-heading + .cs-body {
  margin-top: 10px;
}

/* --- Back link + "Currently reading..." rail (Figma 1185:5812, 1185:5821) ---
   The aside is a zero-height sticky strip at the top of the content column:
   it starts level with the cover, then sticks 32px from the top of the window
   while the case study scrolls. The panel hangs 193px to the left of the
   column, as on the 1280 canvas (x 47 vs the column's 240). */

.cs-reading {
  position: sticky;
  top: 32px;
  z-index: 5;
  height: 0;
}

.cs-reading-panel {
  position: absolute;
  top: 0;
  left: -193px;
  width: 150px;
}

.cs-back {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: normal;
  color: #555252;
  text-decoration: none;
}

.cs-back img {
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}

.cs-back:hover,
.cs-back:focus-visible {
  color: var(--ink);
}

.cs-back:hover img,
.cs-back:focus-visible img {
  transform: rotate(90deg) translateY(2px);
}

.cs-reading-label {
  margin: 37px 0 9px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: normal;
  color: #000;
}

.cs-reading-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-reading-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: normal;
  color: var(--teal);
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.cs-reading-block {
  flex: none;
  width: 9px;
  height: 10px;
  background: #d9d9d9;
  transition: height 0.3s ease, background-color 0.3s ease;
}


/* Only the section being read shows its name; the rest are plain blocks but
   keep their names for screen readers. */
.cs-reading-name {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cs-reading-item:not(.is-active) .cs-reading-name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.cs-reading-item.is-active .cs-reading-block {
  height: 32px;
  background: var(--teal);
}

.cs-reading-item.is-active .cs-reading-name {
  opacity: 1;
}

/* Hovering (or tabbing to) another section previews it — Figma 1185:5822:
   its block grows to 18px in grey and its name shows beside it. */
.cs-reading-item:not(.is-active):hover .cs-reading-block,
.cs-reading-item:not(.is-active):focus-visible .cs-reading-block {
  height: 18px;
  background: #898989;
}

.cs-reading-item:not(.is-active):hover .cs-reading-name,
.cs-reading-item:not(.is-active):focus-visible .cs-reading-name {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  opacity: 1;
  color: #898989;
}

/* The panel needs the 193px margin beside the column; on narrower windows it
   would sit over the content, so it's left out there. */
@media (max-width: 1219px) {
  .cs-reading { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cs-reading-block,
  .cs-reading-name,
  .cs-back img { transition: none; }
}

/* --- Hero + project info --- */

.cs-hero {
  margin-top: 0;
}

.cs-cover {
  aspect-ratio: 800 / 482;
  background: var(--cs-brown);
}

/* A finished cover replaces the solid placeholder block. */
.cs-cover--image {
  position: relative;
}

.cs-cover--image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Menuvo's pot steam. The SVG sits where the icon sits in the 800 × 482
   cover, so its viewBox units line up with the pot baked into the image.
   Each puff rises, sways and fades on a loop, staggered so there's always
   some steam showing. */
.cs-steam {
  position: absolute;
  left: calc(669.375 / 800 * 100%);
  top: calc(38.29 / 482 * 100%);
  width: calc(45.25 / 800 * 100%);
  overflow: visible;
  pointer-events: none;
}

.cs-steam-puff {
  fill: none;
  stroke: #fff;
  stroke-width: 6.91667;
  stroke-linecap: round;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: cs-steam-rise 2.6s ease-in-out infinite;
}

.cs-steam-puff:nth-child(2) { animation-delay: -0.85s; }
.cs-steam-puff:nth-child(3) { animation-delay: -1.7s; }

@keyframes cs-steam-rise {
  0% {
    opacity: 0;
    transform: translate(0, 3px) scaleY(0.5);
  }
  25% {
    opacity: 1;
    transform: translate(0, 0) scaleY(1);
  }
  55% {
    opacity: 0.95;
    transform: translate(1.2px, -3px) scaleY(1.15);
  }
  80% {
    opacity: 0.5;
    transform: translate(-1px, -6px) scaleY(1.25);
  }
  100% {
    opacity: 0;
    transform: translate(0.5px, -9px) scaleY(1.3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-steam-puff { animation: none; }
}

/* Cadence's walking figure. The SVG sits where the icon's vector group sits
   in the 800 × 482 cover. The back leg swings from the hip and the front arm
   from the shoulder in opposite phase, while the body dips on each step. */
.cs--cadence .cs-cover--image { background: #1d2224; }

.cs-walker {
  position: absolute;
  left: calc(41.292 / 800 * 100%);
  top: calc(34 / 482 * 100%);
  width: calc(37.1804 / 800 * 100%);
  overflow: visible;
  fill: #fff;
  pointer-events: none;
}

.cs-walker path {
  transform-box: view-box;
}

.cs-walker-figure {
  transform-box: view-box;
  animation: cs-walker-bob 0.55s ease-in-out infinite alternate;
}

.cs-walker-leg {
  transform-origin: 11.8px 42px;
  animation: cs-walker-leg 1.1s ease-in-out infinite alternate;
}

.cs-walker-arm {
  transform-origin: 24.4px 22.5px;
  animation: cs-walker-arm 1.1s ease-in-out infinite alternate;
}

@keyframes cs-walker-bob {
  from { transform: translateY(0); }
  to { transform: translateY(-1.2px); }
}

@keyframes cs-walker-leg {
  from { transform: rotate(6deg); }
  to { transform: rotate(-20deg); }
}

@keyframes cs-walker-arm {
  from { transform: rotate(-12deg); }
  to { transform: rotate(22deg); }
}

@media (prefers-reduced-motion: reduce) {
  .cs-walker-figure,
  .cs-walker-leg,
  .cs-walker-arm { animation: none; }
}

/* Food Blend's blend icon. The SVG sits where the icon's group sits in the
   800 × 482 cover and turns steadily around the centre of the two rings. */
.cs--beli .cs-cover--image { background: #3c5c62; }

.cs-blend-spin {
  position: absolute;
  left: calc(29.2083 / 800 * 100%);
  top: calc(29.2083 / 482 * 100%);
  width: calc(48.5833 / 800 * 100%);
  overflow: visible;
  fill: none;
  stroke: #fff;
  stroke-width: 4.41667;
  pointer-events: none;
}

.cs-blend-spin g {
  transform-box: view-box;
  transform-origin: 24.2917px 24.2917px;
  animation: cs-blend-spin 8s linear infinite;
}

@keyframes cs-blend-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .cs-blend-spin g { animation: none; }
}

/* Rythmeet's cover: the onboarding recording plays in its Figma frame
   (483 × 344 at 158, 69 with 10px corners and a 1px #a9a9a9 inside border). */
.cs-cover-recording {
  position: absolute;
  left: calc(158 / 800 * 100%);
  top: calc(69 / 482 * 100%);
  width: calc(483 / 800 * 100%);
  height: calc(344 / 482 * 100%);
  overflow: hidden;
  border-radius: calc(10 / 483 * 100%) / calc(10 / 344 * 100%);
}

.cs-cover-recording .cs-video {
  inset: 0;
  width: 100%;
  height: 100%;
}

.cs-cover-recording::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #a9a9a9;
  border-radius: inherit;
  pointer-events: none;
}

/* The list-music icon's three lines grow and shrink from their left ends like
   a level meter, out of step with each other; the note stays put. */
.cs-music {
  position: absolute;
  left: calc(27 / 800 * 100%);
  top: calc(29 / 482 * 100%);
  width: calc(57 / 800 * 100%);
  overflow: visible;
  fill: #fff;
  pointer-events: none;
}

.cs-music-line {
  transform-box: fill-box;
  transform-origin: 0 50%;
  animation: cs-music-level 1.6s ease-in-out infinite;
}

.cs-music-line:nth-child(2) { animation-delay: -0.55s; animation-duration: 1.3s; }
.cs-music-line:nth-child(3) { animation-delay: -1.05s; animation-duration: 1.9s; }

@keyframes cs-music-level {
  0%, 100% { transform: scaleX(1); }
  30% { transform: scaleX(0.45); }
  60% { transform: scaleX(0.8); }
  80% { transform: scaleX(0.6); }
}

@media (prefers-reduced-motion: reduce) {
  .cs-music-line { animation: none; }
}

.cs-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 27px;
}

.cs-title {
  margin: 0;
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 400;
  line-height: normal;
  color: #1a1814;
}

.cs-github {
  padding: 6px 14px;
  border-radius: 20px;
  background: #3a9035;
  color: #fff;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.cs-github:hover,
.cs-github:focus-visible {
  background: #2f772b;
}

.cs-meta {
  display: flex;
  gap: 71px;
  margin: 78px 0 0;
}

.cs-meta > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cs-meta dd {
  margin: 0;
  font-size: 16px;
  line-height: 23px;
  letter-spacing: 0.32px;
  color: var(--cs-text);
  white-space: nowrap;
}

.cs-overview {
  margin-top: 99px;
}

/* --- Feature recordings --- */

.cs-features {
  display: flex;
  flex-direction: column;
  gap: 76px;
  margin-top: 162px;
}

.cs-feature {
  display: flex;
  align-items: center;
  gap: 54px;
}

/* Each panel keeps its Figma size, with the recording inset inside it. */
.cs-feature-media {
  position: relative;
  flex: none;
  background: #aa6340;
}

.cs-feature-media--1 { width: 416px; aspect-ratio: 416 / 398; margin-left: -2px; }
.cs-feature-media--2 { width: 414px; aspect-ratio: 414 / 443; }
.cs-feature-media--3 { width: 414px; aspect-ratio: 414 / 463; }

.cs-video {
  position: absolute;
  object-fit: cover;
}

/* The recordings are exported at the panel size with the #aa6340 surround
   baked in (and tagged sRGB so browsers match the CSS colour), so they fill
   the whole panel and there's no seam between video and panel. */
.cs-feature-media .cs-video { inset: 0; width: 100%; height: 100%; }

.cs-feature-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 332px;
}

.cs-feature-title {
  margin: 0;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 500;
  line-height: normal;
  color: #000;
}

/* --- Research, market analysis, process --- */

.cs-research {
  margin-top: 187px;
}

.cs-quotes {
  display: flex;
  flex-direction: column;
  gap: 35px;
  margin: 62px 0 0;
  padding: 0 0 0 60px;
  list-style: none;
}

.cs-quotes li {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 614px;
}

/* The Figma line is drawn horizontally and turned upright. */
.cs-quote-line {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3px;
  height: 40px;
}

.cs-quote-line img {
  flex: none;
  transform: rotate(90deg);
}

.cs-quotes q {
  font-style: oblique;
  font-size: 16px;
  line-height: 20px;
  color: #000;
}

.cs-market {
  margin-top: 181px;
}

.cs-apps {
  display: grid;
  grid-template-columns: repeat(3, 60px);
  gap: 23px 20px;
  justify-content: center;
  margin: 62px 0 0;
  padding: 0;
  list-style: none;
}

.cs-apps li {
  position: relative;
  width: 60px;
  height: 60px;
  overflow: hidden;
  border-radius: 10px;
}

.cs-apps li.is-bordered {
  border: 1px solid #000;
}

.cs-apps img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-apps .cs-app--spotify img {
  position: absolute;
  left: -23.9%;
  top: -22.7%;
  width: 148%;
  height: 148%;
  max-width: none;
}

.cs-insights-intro {
  margin-top: 89px;
}

.cs-cards {
  display: flex;
  gap: 19px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.cs-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  height: 263px;
  padding: 25px;
  background: var(--cs-brown);
  color: #fff;
  text-align: center;
}

.cs-card--1 { flex: 244 1 0; }
.cs-card--2 { flex: 265.6 1 0; }
.cs-card--3 { flex: 252 1 0; }

.cs-card h3 {
  margin: 0;
  max-width: 177px;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 400;
  line-height: normal;
}

.cs-card p {
  margin: 0;
  max-width: 216px;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0.32px;
}

.cs-card--1 h3 { max-width: 161px; }
.cs-card--1 p,
.cs-card--3 p { max-width: 176px; }

.cs-process {
  margin-top: 145px;
}

.cs-solution {
  margin: 86px 0 0;
  text-align: center;
}

.cs-solution-phones {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
}

.cs-solution-phones img {
  max-width: calc(50% - 6px);
  height: auto;
}

.cs-solution figcaption {
  margin-top: 23px;
}

/* --- Numbered steps --- */

.cs-step {
  margin-top: 230px;
}

.cs-step--first {
  margin-top: 159px;
}

.cs-step-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.cs-step-copy {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.cs-step-num {
  font-family: var(--mono);
  font-size: 55px;
  line-height: normal;
  color: rgba(228, 145, 28, 0.74);
}

.cs-step-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cs-step-text--1 { width: 239px; }
.cs-step-text--2 { width: 164px; }
.cs-step-text--3 { width: 181px; }
.cs-step-text--4 { width: 225px; }

/* The intro line and its bullets read as one block in the design. */
.cs-step-text .cs-body + .cs-list {
  margin-top: -10px;
}

.cs-step-title {
  margin: 0;
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 500;
  line-height: normal;
  color: #000;
}

.cs-wireframes {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.cs-wireframes img {
  height: auto;
  min-width: 0;
  flex: 0 1 auto;
}

.cs-decisions {
  width: 601px;
  max-width: 100%;
  margin: 55px auto 0;
  padding: 20px;
  background: var(--cs-rust);
  color: #fff;
}

.cs-step--first .cs-decisions {
  margin-top: 40px;
}

.cs-decisions-title {
  margin: 0 0 15px;
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: -0.72px;
}

.cs-decisions dl {
  margin: 0;
  font-size: 16px;
  line-height: 23px;
  letter-spacing: 0.32px;
}

.cs-decisions dt:not(:first-child) {
  margin-top: 25px;
}

.cs-decisions dd {
  display: list-item;
  list-style: disc;
  margin-left: 27px;
}

/* --- Final product, reflection, learnings --- */

.cs-final {
  margin-top: 129px;
}

.cs-final-phones {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-top: 73px;
}

.cs-phone {
  width: 212px;
  max-width: calc(50% - 18px);
  aspect-ratio: 212 / 434;
  height: auto;
  object-fit: cover;
  border-radius: 39px;
}

.cs-reflection {
  margin-top: 156px;
}

.cs-reflection .cs-cards {
  margin-top: 37px;
}

.cs-learned {
  margin-top: 107px;
}

.cs-learned-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: 37px;
}

.cs-learned-title {
  margin: 0 0 5px;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
  text-transform: uppercase;
  color: var(--cs-orange);
}

/* --- Narrower screens --- */

@media (max-width: 900px) {
  .cs-feature,
  .cs-step-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .cs-feature {
    gap: 24px;
  }

  .cs-feature-media--1,
  .cs-feature-media--2,
  .cs-feature-media--3 {
    width: 100%;
    max-width: 416px;
    margin-left: 0;
  }

  .cs-step,
  .cs-features,
  .cs-final {
    margin-top: 120px;
  }

  .cs-step--first {
    margin-top: 96px;
  }
}

@media (max-width: 720px) {
  .cs-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
    margin-top: 48px;
  }

  .cs-meta dd {
    white-space: normal;
  }

  .cs-overview { margin-top: 56px; }
  .cs-research,
  .cs-market,
  .cs-process,
  .cs-reflection,
  .cs-learned { margin-top: 96px; }

  .cs-quotes {
    padding-left: 0;
  }

  .cs-cards {
    flex-direction: column;
  }

  .cs-card {
    flex: none;
    height: auto;
    min-height: 180px;
  }

  .cs-step-num {
    font-size: 40px;
  }

  .cs-step-text--1,
  .cs-step-text--2,
  .cs-step-text--3,
  .cs-step-text--4 {
    width: auto;
  }

  .cs-wireframes {
    width: 100%;
    gap: 8px;
  }

  .cs-wireframes img {
    flex: 1 1 0;
    width: 0;
  }

  .cs-title {
    font-size: 26px;
  }
}

/* ==========================================================================
   CASE STUDY — Cadence, Figma node 1099:2465
   Reuses the Menuvo case study blocks above with a blue palette; vertical
   gaps are again the Figma distances between blocks.
   ========================================================================== */

.cs--cadence {
  --cs-blue: #006ea1;
  --cs-orange: var(--cs-blue);
  --cs-brown: #434c5e;
}

/* The cover isn't made yet; the solid block holds its place. */
.cs--cadence .cs-cover { background: var(--cs-blue); }
.cs--cadence .cs-title-row { margin-top: 33px; }
.cs--cadence .cs-meta { gap: 89px; margin-top: 89px; }
.cs--cadence .cs-overview { margin-top: 77px; }
.cs--cadence .cs-step-num { color: var(--cs-blue); }

.cs-brainstorm { margin-top: 119px; }

.cs-body--next { margin-top: 23px; }

.cs-question {
  margin: 119px 0 0;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 500;
  line-height: 25px;
  text-align: center;
  color: #000;
}

.cs--cadence .cs-research { margin-top: 132px; }

/* --- Key features --- */

.cs-solution-features { margin-top: 191px; }

.cs-keys {
  display: flex;
  flex-direction: column;
  /* Figma's gap is 107; the titles render 4px taller here than in Figma. */
  gap: 103px;
  margin: 72px 0 0;
  padding: 0;
  list-style: none;
}

.cs-key-text--1 { width: 344px; }
.cs-key-text--2 { width: 369px; }
.cs-key-text--3 { width: 378px; }

.cs-key-text--2 .cs-step-title { white-space: nowrap; }

/* --- Design process sheets --- */

.cs-sprint { margin-top: 249px; }

.cs-sheets {
  display: flex;
  flex-direction: column;
  gap: 23.568px;
  margin-top: 34px;
}

.cs-sheet {
  display: flex;
  flex-direction: column;
  gap: 5.69px;
  margin: 0;
}

.cs-sheet figcaption {
  font-size: 15.712px;
  font-style: italic;
  line-height: normal;
  color: #a7a6a6;
}

.cs-sheet-frame {
  position: relative;
  overflow: hidden;
  border: 1.138px solid #d3d3d3;
}

.cs-sheet-frame img {
  position: absolute;
  max-width: none;
}

.cs-sheet-frame--flow { aspect-ratio: 711 / 428.01; }
.cs-sheet-frame--flow img { inset: 0; width: 100%; height: 100%; object-fit: cover; }

.cs-sheet-frame--hifi { aspect-ratio: 711 / 369.76; }
.cs-sheet-frame--hifi img { left: -1.69%; top: -3.58%; width: 103.52%; height: 108.82%; }

/* Two sketch pages side by side on a white sheet, 800 × 455 in Figma. */
.cs-sketches {
  aspect-ratio: 800 / 455.222;
  border-width: 1.012px;
  background: #fff;
}

.cs-sketch {
  position: absolute;
  top: calc(27.44 / 455.222 * 100%);
  overflow: hidden;
  background: #fff;
}

.cs-sketch--1 { left: calc(21.75 / 800 * 100%); width: calc(404.009 / 800 * 100%); height: calc(398.319 / 455.222 * 100%); border-radius: 10.124px; }
.cs-sketch--2 { left: calc(425.76 / 800 * 100%); width: calc(359.625 / 800 * 100%); height: calc(375.558 / 455.222 * 100%); border-radius: 4.05px; }

.cs-sketch img { position: absolute; left: 0; top: 0; max-width: none; }
.cs-sketch--1 img { width: 96.66%; height: 110.09%; }
.cs-sketch--2 img { width: 124.56%; height: 154.34%; }

/* --- Final product, reflection, learnings --- */

.cs--cadence .cs-final { margin-top: 117px; }

.cs-final-stage {
  position: relative;
  aspect-ratio: 800 / 453;
  margin-top: 29px;
  overflow: hidden;
  background: #283958;
}

.cs-final-screen {
  position: absolute;
  left: 50%;
  top: calc(64 / 453 * 100%);
  height: calc(326 / 453 * 100%);
  aspect-ratio: 168 / 326;
  transform: translateX(-50%);
}

.cs-final-screen .cs-video {
  inset: 0;
  width: 100%;
  height: 100%;
}

.cs--cadence .cs-reflection { margin-top: 117px; }
.cs--cadence .cs-learned { margin-top: 141px; }

@media (max-width: 900px) {
  .cs--cadence .cs-meta { gap: 48px; }
  .cs-solution-features,
  .cs-sprint { margin-top: 120px; }
}

@media (max-width: 720px) {
  .cs--cadence .cs-meta { gap: 32px 24px; margin-top: 48px; }
  .cs--cadence .cs-overview { margin-top: 56px; }
  .cs-brainstorm,
  .cs--cadence .cs-research,
  .cs-solution-features,
  .cs-sprint,
  .cs--cadence .cs-final,
  .cs--cadence .cs-reflection,
  .cs--cadence .cs-learned { margin-top: 96px; }
  .cs-question { margin-top: 64px; }
  .cs-keys { gap: 56px; }
  .cs-key-text--1,
  .cs-key-text--2,
  .cs-key-text--3 { width: auto; }
  .cs-key-text--2 .cs-step-title { white-space: normal; }
}

/* ==========================================================================
   CASE STUDY — Food Blend (Beli), Figma node 1099:2466
   Reuses the case study blocks above with a teal palette; vertical gaps are
   again the Figma distances between blocks.
   ========================================================================== */

.cs--beli {
  --cs-orange: #1d9cb8;
  --cs-brown: #2b6774;
  --cs-deep: #134f5d;
}

.cs--beli .cs-cover { background: var(--cs-brown); }
.cs--beli .cs-title-row { margin-top: 33px; }

.cs--beli .cs-body { line-height: 25px; }

.cs--beli .cs-meta { gap: 89px; margin-top: 45px; }
.cs--beli .cs-meta dd {
  font-size: 18px;
  line-height: 25px;
  letter-spacing: 0.36px;
}
.cs--beli .cs-meta-timeline { width: 175px; }
.cs--beli .cs-meta-timeline dd { white-space: normal; }

.cs--beli .cs-overview { margin-top: 70px; }
.cs--beli .cs-research { margin-top: 135px; }
.cs--beli .cs-quotes { margin-top: 70px; padding-left: 93px; }

.cs-insights-title { margin-top: 151px; }

.cs-cards--insights { margin-top: 25px; }
.cs-cards--insights .cs-card p {
  max-width: 216px;
  font-size: 18px;
  line-height: 25px;
  letter-spacing: 0.36px;
}
.cs-cards--insights .cs-card--1 p { max-width: 161px; }

/* --- People problem --- */

.cs-people { margin-top: 165px; }
.cs-people-intro { margin-top: 12px; }

.cs-problems {
  display: flex;
  flex-direction: column;
  gap: 45px;
  margin: 47px 0 0;
  padding: 0 0 0 166px;
  list-style: none;
}

.cs--beli .cs-step-num { color: var(--teal); }
.cs-problem-text--1 { width: 344px; }
.cs-problem-text--2 { width: 369px; }

/* --- Market research --- */

.cs--beli .cs-market { margin-top: 129px; }
.cs--beli .cs-apps {
  grid-template-columns: repeat(3, 64px);
  gap: 20px;
  margin-top: 24px;
}
.cs--beli .cs-apps li { width: 64px; height: 64px; }
.cs--beli .cs-apps li.is-bordered { border-width: 0.5px; }

/* --- Brainstorming --- */

.cs--beli .cs-brainstorm { margin-top: 221px; }

.cs-hmw { margin-top: 124px; }

.cs-cards--ideas { margin-top: 83px; }
.cs-cards--ideas .cs-card {
  flex: 1 1 0;
  height: auto;
  min-height: 293px;
  padding: 30px 25px;
  background: #2c636e;
}
.cs-cards--ideas .cs-card:nth-child(1) { flex-grow: 244; }
.cs-cards--ideas .cs-card:nth-child(2) { flex-grow: 247; }
.cs-cards--ideas .cs-card:nth-child(3) { flex-grow: 269; }

.cs-cards--ideas .cs-card h3 {
  max-width: none;
  font-weight: 700;
}

.cs-cards--ideas .cs-card ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 215px;
  margin: 0;
  padding: 0 0 0 22px;
  list-style: disc;
  font-size: 15px;
  line-height: 20px;
  letter-spacing: 0.3px;
  text-align: left;
}

.cs-decision { margin-top: 24px; }

/* --- Visualizing the solution --- */

.cs-visualize { margin-top: 202px; }

.cs-boards {
  display: grid;
  grid-template-columns: 374.83fr 394.27fr;
  gap: 2px 28.9px;
  margin-top: 19px;
}

.cs-board { margin: 0; }
.cs-board--wide { grid-column: 1 / -1; margin-bottom: 23px; }

.cs-board img {
  display: block;
  width: 100%;
  height: auto;
  border: 0.775px solid #a0a0a0;
  border-radius: 7.748px;
}

.cs-board--ia img { aspect-ratio: 374.83 / 367.39; object-fit: cover; }
.cs-board--midfi img { aspect-ratio: 394.27 / 367.31; object-fit: cover; border-color: rgba(0, 0, 0, 0.5); }

.cs-board figcaption {
  margin-top: 3px;
  font-size: 13.946px;
  font-style: oblique;
  line-height: 19.369px;
  color: #a7a6a6;
}

/* --- Iterating --- */

.cs-iterating { margin-top: 158px; }

.cs-iter-title {
  margin: 94px 0 15px;
  font-size: 16px;
  font-weight: 700;
  line-height: 25px;
  letter-spacing: 0.32px;
  color: #000;
}

.cs-heading + .cs-iter-title { margin-top: 55px; }
.cs-iter-title--after-note { margin-top: 157px; }

.cs-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  /* Figma's gap is 27; the chosen phone's export includes its shadow, so the
     gap gives back the difference to keep three options on one row. */
  gap: 32px 20px;
}

.cs-option {
  display: flex;
  align-items: center;
  gap: 14.5px;
}

.cs-option-phone { flex: none; height: auto; }

/* Image-filled screens get their Figma frame; the exported ones carry it. */
.cs-option-phone--framed {
  border: 0.638px solid #000;
  border-radius: 6.4px;
}

.cs-option-phone--chosen {
  border: 1px solid var(--teal);
  border-radius: 6.4px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.cs-pros {
  display: flex;
  flex-direction: column;
  gap: 14.5px;
  width: var(--w, 120px);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  line-height: 15px;
  color: #000;
}

.cs-pros li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cs-pros li::before {
  content: "";
  flex: none;
  width: 13.5px;
  height: 12px;
  background: center / contain no-repeat;
}

.cs-pros .is-pro::before { background-image: url("../media/v3/food-blend/icon-check.svg"); }
.cs-pros .is-con::before { background-image: url("../media/v3/food-blend/icon-x.svg"); }

.cs-feasibility {
  width: 412px;
  max-width: 100%;
  margin: 150px auto 0;
  text-align: center;
}

.cs-feasibility h3 {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 500;
  line-height: 25.9px;
  letter-spacing: -0.36px;
  color: #e00000;
}

.cs-feasibility p {
  margin: 0;
  font-size: 16px;
  line-height: 25px;
  color: #000;
}

/* --- User testing + final product stages --- */

.cs-testing { margin-top: 149px; }

.cs--beli .cs-final-stage {
  aspect-ratio: 798 / 402.87;
  margin-top: 27px;
  background: var(--cs-deep);
}

.cs--beli .cs-final-screen {
  top: calc(37.96 / 402.87 * 100%);
  height: calc(326.95 / 402.87 * 100%);
  aspect-ratio: 151.08 / 326.95;
}

.cs--beli .cs-final-stage--testing {
  aspect-ratio: 800 / 404.66;
  margin-top: 19px;
  background: #124552;
}

.cs--beli .cs-final-stage--testing .cs-final-screen {
  top: calc(14.33 / 404.66 * 100%);
  height: calc(375.09 / 404.66 * 100%);
  aspect-ratio: 186.19 / 375.09;
}

/* The recording carries its own teal surround, which browsers colour-manage
   differently from CSS, so it's clipped to the phone body (measured on the
   606 × 1222 frame) and the stage colour shows around it instead. */
.cs--beli .cs-final-stage--testing .cs-video {
  clip-path: inset(1.8% 2.64% 1.15% 3.47% round 15.7% / 7.8%);
}

/* --- User feedback --- */

.cs-feedback { margin-top: 68px; }
.cs-feedback-intro { margin-top: 9px; }

.cs-feedback-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 121px;
}

.cs-feedback-intro + .cs-feedback-row { margin-top: 31px; }
.cs-feedback-row:last-child { margin-top: 84px; }

.cs-feedback-phones {
  display: flex;
  gap: 15.5px;
}

.cs-feedback-phones img { flex: none; height: auto; }

.cs-feedback-list {
  border: 0.594px solid rgba(0, 0, 0, 0.4);
  border-radius: 7.9px;
}

.cs-feedback-card {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 258px;
  margin: 0;
  padding: 30px 30px 30px 52px;
  background: var(--cs-brown);
  font-size: 15px;
  line-height: 25px;
  color: #fff;
}

/* --- Final product, reflection, learnings --- */

.cs--beli .cs-final { margin-top: 156px; }
.cs--beli .cs-reflection { margin-top: 186px; }
.cs--beli .cs-reflection .cs-card { background: var(--cs-deep); }
.cs--beli .cs-learned-title { color: #006ea1; }
.cs--beli .cs-learned .cs-body {
  font-size: 18px;
  letter-spacing: 0.36px;
}

@media (max-width: 900px) {
  .cs--beli .cs-meta { gap: 48px; }
  .cs-problems { padding-left: 0; }
  .cs-feedback-row { flex-direction: column; align-items: flex-start; }
  .cs-iterating,
  .cs-visualize,
  .cs-testing,
  .cs--beli .cs-final,
  .cs--beli .cs-reflection { margin-top: 120px; }
}

@media (max-width: 720px) {
  .cs--beli .cs-meta { gap: 32px 24px; margin-top: 48px; }
  .cs--beli .cs-meta-timeline { width: auto; }
  .cs--beli .cs-overview { margin-top: 56px; }
  .cs--beli .cs-quotes { padding-left: 0; }
  .cs-insights-title,
  .cs-people,
  .cs--beli .cs-market,
  .cs--beli .cs-brainstorm,
  .cs-iterating,
  .cs-visualize,
  .cs-testing,
  .cs-feedback,
  .cs--beli .cs-final,
  .cs--beli .cs-reflection { margin-top: 96px; }
  .cs-hmw,
  .cs-cards--ideas { margin-top: 48px; }
  .cs-problem-text--1,
  .cs-problem-text--2 { width: auto; }
  .cs-boards { grid-template-columns: 1fr; }
  .cs-iter-title { margin-top: 64px; }
  .cs-iter-title--after-note,
  .cs-feasibility { margin-top: 80px; }
  .cs-feedback-row,
  .cs-feedback-row:last-child { margin-top: 64px; }
  .cs-feedback-card { width: 100%; }
  .cs-feedback-phones { width: 100%; }
  .cs-feedback-phones img { flex: 0 1 auto; min-width: 0; max-width: calc(50% - 8px); }
  .cs-feedback-phones .cs-feedback-list { max-width: 100%; }
}

/* ==========================================================================
   CASE STUDY — Rythmeet, Figma node 1099:2467
   Reuses the case study blocks above with a purple palette; vertical gaps
   are again the Figma distances between blocks.
   ========================================================================== */

.cs--rythmeet {
  --cs-orange: #7353eb;
  --cs-brown: #6050a0;
  --cs-rust: #6050a0;
}

.cs--rythmeet .cs-cover { background: var(--cs-brown); }
.cs--rythmeet .cs-title-row { margin-top: 33px; }
.cs--rythmeet .cs-body,
.cs--rythmeet .cs-list { line-height: 25px; }

.cs--rythmeet .cs-meta { gap: 69px; margin-top: 45px; }
.cs--rythmeet .cs-meta dd {
  font-size: 18px;
  line-height: 25px;
  letter-spacing: 0.36px;
}
.cs--rythmeet .cs-meta-timeline { width: 175px; }
.cs--rythmeet .cs-meta-timeline dd { white-space: normal; }

.cs--rythmeet .cs-overview { margin-top: 145px; }

.cs-challenge { margin-top: 82px; }

.cs-priorities {
  margin-top: 25px;
  font-weight: 700;
}

.cs--rythmeet .cs-priorities + .cs-body--next { margin-top: 25px; }

.cs--rythmeet .cs-brainstorm { margin-top: 157px; }

/* --- Problem cards --- */

.cs-problem-cards {
  display: flex;
  gap: 34px;
  margin: 71px 0 0;
  padding: 0;
  list-style: none;
}

.cs-problem-cards li {
  flex: 379 1 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
  min-height: 290px;
  padding: 40px;
  background: var(--cs-brown);
  color: #fff;
}

.cs-problem-cards li + li { flex-grow: 382; }

/* Number and title stack on their own lines, as in the design. */
.cs-problem-cards h3 {
  margin: 0;
  font-family: var(--mono);
  font-size: 25px;
  font-weight: 700;
  line-height: 35px;
}

.cs-problem-cards h3 span { display: block; }

.cs-problem-cards p {
  margin: 0;
  font-size: 18px;
  line-height: 25px;
}

/* --- Design process gallery --- */

.cs-rebuilding { margin-top: 119px; }

.cs-gallery {
  display: flex;
  flex-direction: column;
  gap: 38.6px;
  margin-top: 25px;
}

.cs-shot {
  display: flex;
  flex-direction: column;
  gap: 7.7px;
  width: 795.4px;
  max-width: 100%;
  margin: 0;
}

.cs-shot.cs-shot--narrow img { width: calc(791.48 / 795.39 * 100%); }

.cs-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1.302px solid #b8b8b8;
  border-radius: 6.509px;
}

.cs-shot figcaption {
  font-size: 16.989px;
  font-style: italic;
  line-height: normal;
  color: #a7a6a6;
}

/* --- Creating events --- */

.cs-contribution { margin-top: 64px; }

.cs-entry {
  display: flex;
  align-items: center;
  gap: 52.2px;
  margin-top: 38px;
}

.cs-entry-shot {
  flex: none;
  width: 458.2px;
  max-width: 100%;
  height: auto;
  border: 1px solid #000;
}

.cs-entry-copy {
  display: flex;
  flex-direction: column;
  gap: 13px;
  width: 236px;
}

.cs-checks {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  line-height: 25px;
  color: #000;
}

/* Each row is 52px tall in Figma; the second has extra room below it. */
.cs-checks li {
  display: flex;
  align-items: center;
  gap: 26.1px;
  min-height: 52.2px;
}

.cs-checks li + li { min-height: 78.3px; }

.cs-checks li::before {
  content: "";
  flex: none;
  width: 24.3px;
  height: 21.2px;
  background: url("../media/v3/rythmeet/icon-check.svg") center / contain no-repeat;
}

.cs-entry-copy .cs-body { color: #000; }

.cs-event-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 372px));
  gap: 21px 14px;
  margin-top: 36px;
}

.cs-event-steps img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 372 / 299;
  object-fit: cover;
  border: 1.456px solid #3b3b3b;
}

/* The panel sits 71px in from the content edge in the design. */
.cs--rythmeet .cs-decisions {
  margin: 40px 0 0 71px;
}

.cs--rythmeet .cs-decisions dl {
  font-size: 18px;
  line-height: 25px;
  letter-spacing: 0.36px;
}

.cs--rythmeet .cs-decisions dt { font-weight: 700; }

/* --- Reflection --- */

.cs--rythmeet .cs-learned { margin-top: 175px; }
.cs--rythmeet .cs-learned-list { margin-top: 32px; }
.cs--rythmeet .cs-learned-title { color: #b189e5; }
.cs--rythmeet .cs-learned .cs-body {
  font-size: 18px;
  letter-spacing: 0.36px;
}

@media (max-width: 900px) {
  .cs--rythmeet .cs-meta { gap: 48px; }
  .cs-entry { flex-direction: column; align-items: flex-start; gap: 32px; }
  .cs-entry-copy { width: auto; }
  .cs--rythmeet .cs-decisions { margin-left: auto; margin-right: auto; }
}

@media (max-width: 720px) {
  .cs--rythmeet .cs-meta { gap: 32px 24px; margin-top: 48px; }
  .cs--rythmeet .cs-meta-timeline { width: auto; }
  .cs--rythmeet .cs-overview { margin-top: 56px; }
  .cs-challenge,
  .cs--rythmeet .cs-brainstorm,
  .cs-rebuilding,
  .cs-contribution,
  .cs--rythmeet .cs-learned { margin-top: 96px; }
  .cs-problem-cards { flex-direction: column; gap: 20px; margin-top: 40px; }
  .cs-problem-cards li { min-height: 0; padding: 32px; }
  .cs-event-steps { grid-template-columns: 1fr; }
}

/* ==========================================================================
   WELCOME SCREEN — Figma node 1099:2463, driven by js/v3-welcome.js
   ========================================================================== */

/* Hidden unless the <head> script turns it on, so without JavaScript the
   home page is simply the home page. */
.welcome {
  display: none;
}

html.is-welcoming {
  overflow: hidden;
}

/* The whole drawing (1800x1200, ratio 1.5) shows, edge to edge, at the
   screen's full width. On a screen wider than that, only plain wall above
   the plant (up to 50 of its 1200 rows) and floor below the paper (up to 95)
   are trimmed, so screens up to 1.5 / (1 - 145/1200) = 1.706 wide lose no
   detail; wider still, the drawing stops growing and the wall and floor
   carry on at the sides. On a narrower screen, the wall carries on above it
   and the floor below. --iw/--ih are the drawing's size on screen. */
html.is-welcoming .welcome {
  --iw: min(100vw, calc(100dvh * 1.706));
  --ih: calc(var(--iw) / 1.5);
  display: block;
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  /* Wall and floor, split where the floor line falls beside the drawing on
     the widest screens. */
  background: linear-gradient(#fdefd2 70.5%, #c49c69 70.5%);
}

/* Everything on the drawing is placed in the units of its 1280x858 Figma
   frame (--u), which starts 39 units into the 1319-unit-wide drawing, so the
   notes stay beside their figures at any size. The drawing is centred
   across; down, it's centred when there's room around it, and when it's
   trimmed, 50/145 of the trim comes off the top. */
.welcome-stage {
  --u: calc(100cqw / 1280);
  position: absolute;
  left: calc((100% - var(--iw)) / 2 + var(--iw) * 39 / 1319);
  top: max((100dvh - var(--ih)) / 2, (100dvh - var(--ih)) * 50 / 145);
  width: calc(var(--iw) * 1280 / 1319);
  height: calc(var(--iw) * 1280 / 1319 * 858 / 1280);
  container-type: inline-size;
}

/* The whole drawing shows, including the strip left of the Figma frame. */
.welcome-art {
  position: absolute;
  inset: 0;
}

.welcome-art img {
  position: absolute;
  top: 0;
  left: calc(-39 * var(--u));
  width: calc(1319 * var(--u));
  height: auto;
  max-width: none;
}

.welcome-title {
  position: absolute;
  left: calc(333 * var(--u));
  top: calc(304 * var(--u));
  width: calc(305 * var(--u));
  margin: 0;
  color: var(--teal);
  font-family: var(--mono);
  font-size: calc(20 * var(--u));
  font-weight: 400;
  line-height: normal;
  letter-spacing: calc(0.2 * var(--u));
}

/* --- The drawing comes alive. Everything here is placed in frame units on
   the drawing (welcome-art), so it stays put in both layouts. --- */

.welcome-steam,
.welcome-night,
.welcome-clock,
.welcome-lamp {
  position: absolute;
}

/* The window, rebuilt in layers so the sky can move. */
.welcome-window {
  position: absolute;
}

.welcome-window > img,
.welcome-window-clouds {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.welcome-window-clouds {
  overflow: hidden;
}

.welcome-window-clouds img {
  width: 100%;
  height: 100%;
  animation: welcome-clouds 26s ease-in-out infinite alternate;
}

@keyframes welcome-clouds {
  from { transform: translateX(-1.5%); }
  to   { transform: translateX(2.5%); }
}

/* Each leaf swings from its stem in little gusts, out of step with the
   others. Placement and pivot come from scripts/split-welcome-art.py. */
.welcome-window .welcome-leaf {
  inset: auto;
  animation: welcome-leaf 3.6s ease-in-out infinite;
}

.welcome-leaf:nth-of-type(2n)   { animation-duration: 4.2s; animation-delay: -1.3s; }
.welcome-leaf:nth-of-type(3n)   { animation-duration: 3.1s; animation-delay: -2.1s; }
.welcome-leaf:nth-of-type(5n)   { animation-duration: 4.8s; animation-delay: -0.6s; }
.welcome-leaf:nth-of-type(7n+1) { animation-delay: -2.8s; }

@keyframes welcome-leaf {
  0%   { transform: rotate(0deg); }
  18%  { transform: rotate(9deg); }
  32%  { transform: rotate(-4deg); }
  48%  { transform: rotate(6deg); }
  64%  { transform: rotate(-2deg); }
  100% { transform: rotate(0deg); }
}

/* The pen scribbles from its tip, which stays on the star. */
.welcome-pen {
  position: absolute;
  animation: welcome-pen 1.1s ease-in-out infinite;
}

@keyframes welcome-pen {
  0%, 100% { transform: rotate(0deg); }
  25%      { transform: rotate(-3deg); }
  50%      { transform: rotate(1.5deg); }
  75%      { transform: rotate(-2deg); }
}

/* Water drips from the can's spout onto the plant. */
.welcome-water {
  position: absolute;
  left: calc(142 * var(--u));
  top: calc(572 * var(--u));
  width: calc(40 * var(--u));
  height: calc(70 * var(--u));
  overflow: visible;
}

.welcome-drop {
  fill: #a9d3df;
  opacity: 0;
  animation: welcome-drop 1.5s ease-in infinite;
}

.welcome-drop:nth-child(2) { animation-delay: 0.5s; }
.welcome-drop:nth-child(3) { animation-delay: 1s; }

@keyframes welcome-drop {
  0%   { opacity: 0; transform: translate(0, 0); }
  15%  { opacity: 0.95; }
  80%  { opacity: 0.9; }
  100% { opacity: 0; transform: translate(-6px, 46px); }
}

/* Coffee steam, where the painted wisps were. */
.welcome-steam {
  left: calc(748 * var(--u));
  top: calc(500 * var(--u));
  width: calc(60 * var(--u));
  height: calc(75 * var(--u));
  overflow: visible;
}

.welcome-steam-puff {
  fill: none;
  stroke: #ece2c8;
  stroke-width: 3.4;
  stroke-linecap: round;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: welcome-steam 3s ease-in-out infinite;
}

.welcome-steam-puff:nth-child(2) { animation-delay: -1s; }
.welcome-steam-puff:nth-child(3) { animation-delay: -2s; }

@keyframes welcome-steam {
  0% {
    opacity: 0;
    transform: translateY(6px) scaleY(0.7) skewX(0deg);
  }
  35% {
    opacity: 0.95;
  }
  70% {
    transform: translateY(-8px) scaleY(1) skewX(-6deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-16px) scaleY(1.1) skewX(4deg);
  }
}

/* Lights off: the drawing fades to its unlit copy, and a dusk tint
   multiplies over it and everything moving on top. */
.welcome-art-night,
.welcome-night {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.welcome-night {
  inset: 0;
  background: #a49fc4;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Full screen, the tint covers the wall and floor around the drawing too. */
@media (min-width: 701px) and (min-aspect-ratio: 4/5) {
  .welcome-night {
    position: fixed;
  }
}


.welcome-art.is-dark .welcome-art-night,
.welcome-art.is-dark .welcome-night {
  opacity: 1;
}

/* The greeting turns white with the lights out, so it still reads. (On the
   narrow layout it sits above the drawing, on cream, so it stays blue.) */
.welcome-title {
  transition: color 0.5s ease;
}

@media (min-width: 701px) and (min-aspect-ratio: 4/5) {
  .welcome-art.is-dark ~ .welcome-title {
    color: #fff;
  }
}

/* Live time on the clock's screen, tilted with the clock. The digits glow,
   so they sit above the dusk. */
.welcome-clock {
  left: calc(1124 * var(--u));
  top: calc(631 * var(--u));
  width: calc(102 * var(--u));
  height: calc(46 * var(--u));
  rotate: 4deg;
}

.welcome-clock-digits line {
  stroke: #ede0b0;
  stroke-width: 3.2;
  stroke-linecap: round;
}

.welcome-clock-colon {
  fill: #ede0b0;
  animation: welcome-colon 1s steps(1) infinite;
}

@keyframes welcome-colon {
  50% { opacity: 0; }
}

.welcome-clock-period {
  fill: #ede0b0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.5px;
}

/* Over the lamp's shade: clicking it switches the light. */
.welcome-lamp {
  left: calc(180 * var(--u));
  top: calc(100 * var(--u));
  width: calc(190 * var(--u));
  height: calc(225 * var(--u));
  padding: 0;
  border: 0;
  border-radius: 40%;
  background: none;
}

.welcome-lamp:focus-visible {
  outline: 2px dashed var(--teal);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .welcome-steam-puff {
    animation: none;
    opacity: 0.9;
  }

  .welcome-clock-colon,
  .welcome-window-clouds img,
  .welcome-leaf,
  .welcome-pen {
    animation: none;
  }

  .welcome-drop { animation: none; }
  .welcome-art-night,
  .welcome-night { transition: none; }
}

/* Typed out a letter at a time by js/v3-welcome.js. */
.welcome-title .ch {
  visibility: hidden;
}

.welcome-title .ch.is-on {
  visibility: visible;
}

/* Invisible hover areas around each figure in the drawing. */
.welcome-smiski {
  position: absolute;
  border-radius: 40%;
}

.welcome-smiski:focus-visible {
  outline: 2px dashed var(--teal);
  outline-offset: 4px;
}

.welcome-smiski--empathy {
  left: calc(160 * var(--u));
  top: calc(400 * var(--u));
  width: calc(200 * var(--u));
  height: calc(360 * var(--u));
}

.welcome-smiski--curiosity {
  left: calc(545 * var(--u));
  top: calc(425 * var(--u));
  width: calc(200 * var(--u));
  height: calc(270 * var(--u));
}

.welcome-smiski--craft {
  left: calc(870 * var(--u));
  top: calc(500 * var(--u));
  width: calc(210 * var(--u));
  height: calc(240 * var(--u));
}

.welcome-note {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(163 * var(--u));
  height: calc(114 * var(--u));
  background: url("../media/v3/welcome/note-a.svg") center / 100% 100% no-repeat;
}

.welcome-note--empathy { left: calc(344 * var(--u)); top: calc(396 * var(--u)); }
.welcome-note--craft   { left: calc(784 * var(--u)); top: calc(411 * var(--u)); }
/* Left of where it sits in Figma (585), so it clears the scroll hint at
   the bottom centre of the screen. */
.welcome-note--curiosity {
  left: calc(420 * var(--u));
  top: calc(687 * var(--u));
  background-image: url("../media/v3/welcome/note-b.svg");
}

.welcome-note p {
  width: calc(135 * var(--u));
  margin: 0;
  color: #fff;
  font-family: var(--mono);
  font-size: calc(11 * var(--u));
  line-height: normal;
  letter-spacing: calc(-0.55 * var(--u));
  text-align: center;
}

.welcome-note strong {
  font-weight: 700;
}

/* The "scroll" hint, centred at the bottom of the screen, on the floor. Dark
   brown to match the drawing (4.5:1 against the floor); white with the
   lights off, like the greeting. */
.welcome-continue {
  position: absolute;
  left: 50%;
  bottom: clamp(16px, 4dvh, 36px);
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  border: 0;
  background: none;
  color: #4e3420;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 1.3px;
  transition: color 0.5s ease;
}

@media (min-width: 701px) and (min-aspect-ratio: 4/5) {
  .welcome:has(.welcome-art.is-dark) .welcome-continue {
    color: #fff;
  }
}

.welcome-continue:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 8px;
}

.welcome-continue-icon {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  rotate: 180deg;
  animation: welcome-nudge 1.6s ease-in-out infinite;
}

/* The arrow takes the text's colour: it's drawn as a mask of arrow.svg. */
.welcome-continue-icon::before {
  content: "";
  position: absolute;
  left: 3.03px;
  top: 3.35px;
  width: 13.9445px;
  height: 13.401px;
  background: currentColor;
  -webkit-mask: url("../media/v3/welcome/arrow.svg") center / contain no-repeat;
  mask: url("../media/v3/welcome/arrow.svg") center / contain no-repeat;
}

@keyframes welcome-nudge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-continue-icon { animation: none; }
}

/* "Return to work space" under the hero intro — Figma node 1216:781. It's a
   smaller copy of the continue button, pointing back. Without JavaScript the
   welcome screen can't show, so neither does this. */
.welcome-return {
  display: none;
  margin-top: 20px;
  align-items: center;
  gap: 7.211px;
  padding: 7.211px 14.423px;
  border: 0;
  border-radius: 21.634px;
  background: var(--teal);
  color: #fff;
  font-family: var(--mono);
  font-size: 12.98px;
  font-weight: 400;
  line-height: normal;
  transition: background-color 0.2s ease, translate 0.2s ease;
}

.has-welcome .welcome-return {
  display: flex;
}

.welcome-return:hover {
  background: #2f7b88;
  translate: -2px 0;
}

.welcome-return:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.welcome-return-icon {
  position: relative;
  flex: none;
  width: 14.423px;
  height: 14.423px;
  rotate: -90deg;
}

.welcome-return-icon img {
  position: absolute;
  left: 2.18px;
  top: 2.41px;
}

/* The blue circle js/v3-welcome.js grows out of the button on the way to the
   work, then shrinks away to reveal it. */
.welcome-wipe {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: var(--teal);
  pointer-events: none;
}

/* Arrival: the notes pin up one after another. */
@media (prefers-reduced-motion: no-preference) {
  html.is-welcoming .welcome-note {
    animation: welcome-note-in 0.5s cubic-bezier(0.2, 0.8, 0.3, 1.2) both;
  }

  html.is-welcoming .welcome-note--empathy   { animation-delay: 0.55s; }
  html.is-welcoming .welcome-note--curiosity { animation-delay: 0.75s; }
  html.is-welcoming .welcome-note--craft     { animation-delay: 0.95s; }

  html.is-welcoming .welcome-continue {
    animation: welcome-in 0.6s 1.2s ease both;
  }
}

@keyframes welcome-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

@keyframes welcome-note-in {
  from { opacity: 0; transform: scale(0.85) rotate(-3deg); }
  to   { opacity: 1; transform: none; }
}

/* With a mouse, each note stays tucked away until its figure is hovered,
   then pops up beside it. Touch screens and the narrow layout keep them
   all showing. */
@media (hover: hover) and (min-width: 701px) and (min-aspect-ratio: 4/5) {
  html.is-welcoming .welcome-note {
    animation: none;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.85) rotate(-3deg);
    transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1.2),
      visibility 0s linear 0.3s;
  }

  html.is-welcoming .welcome-smiski:hover + .welcome-note,
  html.is-welcoming .welcome-smiski:focus-visible + .welcome-note,
  html.is-welcoming .welcome-note:hover {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }
}

@media (hover: hover) and (min-width: 701px) and (min-aspect-ratio: 4/5) and (prefers-reduced-motion: reduce) {
  html.is-welcoming .welcome-note { transform: none; transition: none; }
}

/* Tall or narrow screens would crop the drawing down to a sliver, so the
   screen becomes a scrolling column: greeting, the whole drawing, the notes,
   then the button. */
@media (max-width: 700px), (max-aspect-ratio: 4/5) {
  html.is-welcoming .welcome {
    overflow-y: auto;
    background: var(--bg);
  }

  .welcome-stage {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: auto;
    height: auto;
    max-width: 640px;
    margin: 0 auto;
    padding: 56px var(--gutter) 32px;
    container-type: normal;
  }

  .welcome-title {
    position: static;
    order: -1;
    width: auto;
    font-size: 20px;
    letter-spacing: 0.2px;
  }

  .welcome-art {
    position: relative;
    inset: auto;
    overflow: hidden;
    container-type: inline-size;
    aspect-ratio: 1280 / 858;
    border-radius: 10px;
  }

  .welcome-smiski {
    display: none;
  }

  .welcome-notes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .welcome-note {
    position: static;
    width: 163px;
    height: 114px;
  }

  .welcome-note p {
    width: 135px;
    font-size: 11px;
    letter-spacing: -0.55px;
  }

  /* On cream here, so it goes teal, and sits at the end of the column. */
  .welcome-continue {
    position: static;
    translate: none;
    margin: 0 auto 32px;
    color: var(--teal);
    text-shadow: none;
  }

  .welcome-continue-icon {
    filter: none;
  }

}
