/* made+from: white page, black type, one green ball.
   Type is Inter (variable, with optical sizes): big text gets the tight "display" cut on its own. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
}

:root {
  --ink: #0e0b0c;
  --muted: #8c8c8c;
  --paper: #ffffff;
  --ball: #00ff42;          /* the ball colour from the old site */
  --gutter: clamp(16px, 1.5vw, 28px);
  --max: 1680px;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-optical-sizing: auto;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Header: the water switch top left, the menu top right */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3.4vw, 52px);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
/* On hover a thin green line draws in under the word */
.nav a { position: relative; }
.nav-home { display: inline-flex; }    /* the little house: the way back to the front page */
.nav-home svg { display: block; width: 15px; height: 15px; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  border-radius: 1px;
  background: var(--ball);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav a:hover::after,
.nav a:focus-visible::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }   /* the page you are on keeps its line */

/* The switch: outline and a black knob when off, black with the green knob when the water is on */
.bg-switch {
  position: relative;
  flex: none;
  width: 44px;
  height: 24px;
  padding: 0;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background-color .25s ease;
}
.bg-switch::before { content: ""; position: absolute; inset: -10px; }   /* bigger target for fingers */
.bg-switch-knob {
  position: absolute;
  top: 2.5px;
  left: 2.5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform .25s cubic-bezier(.3, .7, .3, 1), background-color .25s ease;
}
.bg-switch:hover .bg-switch-knob { transform: scale(1.12); }
.bg-switch[aria-checked="true"] { background: var(--ink); }
.bg-switch[aria-checked="true"] .bg-switch-knob { transform: translateX(20px); background: var(--ball); }
.bg-switch[aria-checked="true"]:hover .bg-switch-knob { transform: translateX(20px) scale(1.12); }

/* The water background: the old site's cloud photo under a blue tint. water.js adds the ripple. */
.water-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: #4399df;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease, visibility 0s linear .6s;
}
.water-bg.is-loaded {
  background-image: linear-gradient(rgba(67, 153, 223, .7), rgba(67, 153, 223, .7)), url("../img/clouds.jpg");
}
.water .water-bg {
  opacity: 1;
  visibility: visible;
  transition: opacity .6s ease;
}
.water-bg canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity .4s ease;
}
.water-bg canvas.is-ready { opacity: 1; }
.water { --muted: rgba(14, 11, 12, .6); }

/* Hero: the name across the full width, the one-line story under it */
.hero { container-type: inline-size; }
.wordmark {
  /* sized so the letters run exactly from margin to margin: --fit (size) and --shift (how far the first
     letter's ink sits from its box edge) are measured per word from the rendered ink, see README */
  font-size: calc(100cqi * var(--fit, 0.2070));
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: .8;
  white-space: nowrap;
  margin-top: clamp(10px, 2.2vw, 40px);
  margin-left: var(--shift, -0.0521em);
}
.intro {
  margin-top: clamp(56px, 9vw, 150px);
  max-width: 26ch;
  font-size: clamp(20px, 1.95vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* Front page row under the name: intro left, the four services in the middle, their picture right */
.hero-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  margin-top: clamp(48px, 6vw, 110px);
}
/* Intro, services and picture share one top line: the tops of the capital letters of the first
   lines sit exactly on the picture's top edge. The negative margins remove the space Inter puts
   above its capitals (0.2875em at line-height 1.3, 0.2625em at 1.25). */
.hero-row .intro {
  grid-column: 1 / span 5;
  align-self: start;
  margin-top: -0.2875em;
}
.services-list {
  grid-column: 8 / span 2;
  list-style: none;
  margin: 0;
  padding: 0;
}
.service {
  position: relative;
  display: block;
  width: fit-content;
  margin: 0 0 clamp(10px, 1.1vw, 18px);
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: clamp(16px, 1.25vw, 20px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-align: left;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s ease;
}
.services-list li:first-child .service { margin-top: -0.2625em; }
.service:hover,
.service.is-active { color: var(--ink); }
.service::after {     /* the same thin green line as the menu, under the service you are on */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  border-radius: 1px;
  background: var(--ball);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.service.is-active::after { transform: scaleX(1); }
.service-media {
  grid-column: 10 / span 3;
  position: relative;
  aspect-ratio: 1.61;
  overflow: hidden;
  background: #f1f1f1;
}
.service-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .45s ease;
}
.service-media img.is-active { opacity: 1; }

@media (max-width: 900px) {
  .hero-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .hero-row .intro { grid-column: 1 / -1; margin-top: 0; }
  .services-list { grid-column: 1; }
  .service-media { grid-column: 2; }
}
@media (max-width: 560px) {
  .hero-row { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .services-list,
  .service-media { grid-column: 1; }
}

/* Selected works */
.works { margin-top: clamp(110px, 13vw, 220px); }
.works h2 {
  font-size: clamp(44px, 7.6vw, 128px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: .9;
  margin-bottom: clamp(32px, 4vw, 60px);
  margin-left: -0.03em;
}
.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 5.5vw, 88px) 16px;
}
.card { display: block; }
.card-media {
  position: relative;
  aspect-ratio: 1.41;
  overflow: hidden;
  background: #f1f1f1;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
/* Cards that open a project pop-up show a white circle with a plus on hover */
.card-plus {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(.4);
  transition: opacity .3s, transform .35s cubic-bezier(.2, .7, .2, 1);
}
a.card:hover .card-media img,
a.card:focus-visible .card-media img { transform: scale(1.03); }
a.card:hover .card-plus,
a.card:focus-visible .card-plus { opacity: 1; transform: scale(1); }
.card-title {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.card-tags {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.card-tags li + li::before { content: "·"; margin: 0 9px; }

/* Contact: one row per way to reach us, small label left, big bold value right */
.contact-list {
  margin: clamp(56px, 8vw, 140px) 0 0;
}
.contact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 6px 16px;
  align-items: baseline;
  padding: clamp(18px, 2.2vw, 32px) 0;
  border-top: 1px solid rgba(14, 11, 12, .14);
}
.contact-row:last-child { border-bottom: 1px solid rgba(14, 11, 12, .14); }
.contact-row dt {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.contact-row dd {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  font-size: clamp(26px, 4.4vw, 64px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.1;
  white-space: nowrap;      /* no "madefrom.c / c" breaks like on the old site */
}
.big-link { position: relative; }
.big-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.06em;
  height: max(2px, .055em);
  border-radius: 2px;
  background: var(--ball);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.big-link:hover::after,
.big-link:focus-visible::after { transform: scaleX(1); }
.big-link .arrow {
  display: inline-block;
  margin-left: .12em;
  font-weight: 500;
  transition: transform .25s ease;
}
.big-link:hover .arrow { transform: translate(.06em, -.06em); }
.copy-btn {
  font: 500 13px/1 "Inter", system-ui, sans-serif;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.copy-btn:hover { background: var(--ink); color: #fff; }
.copy-btn.is-done { background: var(--ball); border-color: var(--ball); color: var(--ink); }

/* About: a big statement, then rows like the contact page (small label left, content right) */
.statement {
  margin-top: clamp(56px, 8vw, 140px);
  max-width: 18ch;
  font-size: clamp(34px, 6vw, 104px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: .98;
  text-wrap: balance;
}
.rows { margin-top: clamp(56px, 6.5vw, 112px); }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 14px 16px;
  padding: clamp(26px, 3vw, 48px) 0;
  border-top: 1px solid rgba(14, 11, 12, .14);
}
.split-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted);
  padding-top: .3em;
}
.split-body { min-width: 0; }
.lead-text {
  max-width: 30ch;
  font-size: clamp(22px, 2.3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.body-text {
  max-width: 52ch;
  margin-top: 1.1em;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.55;
}
.body-text--first { margin-top: 0; }
/* Founder: photo and text side by side in the content column */
.founder {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
}
.founder img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f1f1f1;
}
.founder-name {
  font-size: clamp(26px, 2.6vw, 42px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
}
.founder-name + .body-text { margin-top: .8em; }
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 1.3em;
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px) 24px;
  align-items: center;
  --logo: clamp(52px, 4.8vw, 74px);   /* about the visual size of every logo */
}
.logos img {
  width: auto;
  max-width: 100%;
  height: 40px;
  height: calc(var(--logo) / sqrt(var(--r, 3)));   /* wide logos get lower, compact ones taller, so they weigh the same */
}
.water .split { border-top-color: rgba(14, 11, 12, .2); }

/* Work: the four steps in one slim row, then all projects */
.steps-block { margin-top: clamp(56px, 7vw, 120px); }
.steps-block .split-label {      /* the line sits on the label, so it stops at the margins like the About rows */
  display: block;
  padding-top: clamp(22px, 2.4vw, 36px);
  border-top: 1px solid rgba(14, 11, 12, .14);
}
.steps {
  list-style: none;
  margin: clamp(18px, 2vw, 28px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 16px;
}
.steps li { scroll-margin-top: 24px; }
.step-num {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.step-name {
  position: relative;
  display: inline-block;
  margin-top: 10px;
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.1;
}
.step-text {
  max-width: 30ch;
  margin-top: 10px;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.45;
}
.works--page { margin-top: clamp(96px, 11vw, 190px); }
.card-text {
  max-width: 48ch;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.45;
}
.works--page .card-title + .card-text + .card-tags { margin-top: 8px; }
.works--page li { scroll-margin-top: 24px; }
/* Arriving from the front page (/work/#prototyping, /work/#kpn): the step or project gets the green line */
.steps li:target .step-name::after,
.works--page li:target .card-title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 3px;
  border-radius: 2px;
  background: var(--ball);
}
.works--page .card-title { position: relative; display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
.water .steps-block .split-label { border-top-color: rgba(14, 11, 12, .2); }
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* phones get one column further down */
}

/* Project pop-up (projects.js): a white sheet slides up over the dimmed page and floats there, with a
   strip of the page showing all round so it reads as a pop-up. The big title on top, the story on the
   left (it stays in view while the pictures scroll past), the pictures on the right.
   It sits under the ball, which keeps flying over everything. */
.pop {
  position: fixed;
  inset: 0;
  z-index: 900;
}
.pop[hidden] { display: none; }
.pop-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 11, 12, .42);
  opacity: 0;
  transition: opacity .3s ease;
}
.pop-sheet {
  --pad: clamp(18px, 2vw, 30px);           /* space above the title */
  --title: clamp(38px, 5.6vw, 96px);      /* size of the project title */
  --air: clamp(12px, 3.5vw, 56px);        /* the dimmed page around the sheet, on every side */
  position: absolute;
  inset: var(--air);
  max-width: var(--max);
  margin: 0 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  border-radius: 18px;
  transform: translateY(calc(100% + var(--air)));             /* waiting just below the screen */
  transition: transform .35s cubic-bezier(.4, 0, .8, .2);     /* closing: it drops away */
}
.pop.is-open .pop-backdrop { opacity: 1; }
.pop.is-open .pop-sheet {
  transform: none;
  transition: transform .55s cubic-bezier(.2, .75, .15, 1);   /* opening: it glides up and settles */
}
.pop-sheet:focus { outline: none; }
html.pop-open { overflow: hidden; }

/* The close button floats top right and stays there while you scroll; on load its middle lines up
   with the middle of the title's capitals (0.476 of the title size below the title box top) */
.pop-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 0;
  display: flex;
  justify-content: flex-end;
  padding: 0 var(--gutter);
}
.pop-close {
  flex: none;
  width: 46px;
  height: 46px;
  margin-top: max(10px, calc(var(--pad) + var(--title) * .476 - 23px));
  padding: 0;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.pop-close:hover { background: var(--ink); color: #fff; }
.pop-content { padding: var(--pad) var(--gutter) 0; }

.project-title {
  padding-right: 64px;                     /* room for the close button */
  font-size: var(--title);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: .95;
  text-wrap: balance;
}
.project-body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px clamp(32px, 5vw, 96px);
  align-items: start;
  margin-top: clamp(32px, 4.5vw, 72px);
}
.project-info {
  position: sticky;
  top: 24px;                               /* projects.js lowers this when the story is taller than the sheet */
}
.project-lead {
  max-width: 34ch;
  font-size: clamp(19px, 1.6vw, 26px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.25;
}
.project-text { margin-top: clamp(18px, 1.8vw, 28px); }
.project-text p {
  max-width: 54ch;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.55;
}
.project-text p + p { margin-top: .9em; }
.project-facts {
  max-width: 560px;
  margin: clamp(24px, 2.6vw, 40px) 0 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}
.project-facts > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid rgba(14, 11, 12, .14);
}
.project-facts > div:last-child { border-bottom: 1px solid rgba(14, 11, 12, .14); }
.project-facts dt { color: var(--muted); }
.project-facts dd { margin: 0; }
.project-facts a {
  text-decoration: underline;
  text-decoration-color: rgba(14, 11, 12, .25);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: text-decoration-color .2s ease;
}
.project-facts a:hover { text-decoration-color: var(--ball); }
.project-facts .ext { margin-left: 2px; }
.project-badges {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}
.project-badges img { width: auto; height: 64px; }

/* Pictures: each row fills the column and its pictures share one height (no cropping) */
.project-gallery {
  --g: clamp(8px, .8vw, 14px);
  display: grid;
  gap: var(--g);
}
.gallery-row {
  display: flex;
  gap: var(--g);
}
.gallery-row img {
  flex: var(--ar, 1.5) 1 0;                /* --ar: width / height, set by projects.js */
  width: 0;
  min-width: 0;
  background: #f1f1f1;
}

/* At the bottom: on to the next project without closing */
.pop-next {
  display: block;
  margin: clamp(72px, 9vw, 150px) var(--gutter) 0;
  padding: clamp(20px, 2.4vw, 34px) 0 clamp(40px, 4.5vw, 72px);
  border-top: 1px solid rgba(14, 11, 12, .14);
}
.pop-next-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.pop-next .big-link {
  display: inline-block;
  margin-top: 6px;
  font-size: clamp(28px, 4.4vw, 64px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.1;
}
.pop-next:hover .big-link::after,
.pop-next:focus-visible .big-link::after { transform: scaleX(1); }
.pop-next:hover .arrow { transform: translateX(.08em); }

@media (max-width: 900px) {
  .project-body { grid-template-columns: minmax(0, 1fr); }
  .project-info { position: static; }
}

/* Footer */
.site-footer {
  margin-top: clamp(120px, 14vw, 220px);
  padding-top: 24px;
  padding-bottom: 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}
.site-footer a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: text-decoration-color .2s ease;
}
.site-footer a:hover,
.site-footer a[aria-current="page"] { text-decoration-color: var(--ball); }
.footer-links { display: flex; gap: 18px; }

/* Links inside running text (Privacy page): a quiet underline that turns green on hover */
.text-link {
  text-decoration: underline;
  text-decoration-color: rgba(14, 11, 12, .3);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: text-decoration-color .2s ease;
}
.text-link:hover { text-decoration-color: var(--ball); }

/* The ball: flies over everything, never catches a click */
.ball-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1000;
}
.ball {
  position: absolute;
  left: 0;
  top: 0;
  width: 10vmax;
  height: 10vmax;
  border-radius: 50%;
  background: var(--ball);
  transform: translate(-200vmax, -200vmax);
  will-change: transform;
}
/* Visitors who ask for less motion get the ball resting in the corner instead */
.ball-layer.is-still .ball { transform: translate(calc(100vw - 6vmax), calc(100vh - 6vmax)); }

@media (max-width: 700px) {
  .site-header { padding-top: 14px; }
  .nav { font-size: 13px; gap: 16px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .contact-row { grid-template-columns: minmax(0, 1fr); }
  .split,
  .founder { grid-template-columns: minmax(0, 1fr); }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .pop-sheet { border-radius: 14px; }
  .gallery-row { flex-direction: column; }          /* phones: every picture full width, one under the other */
  .gallery-row img { flex: none; width: 100%; }
}

@media (max-width: 359px) {   /* the smallest phones: keep switch and menu on one line */
  .nav { font-size: 12px; gap: 10px; }
  .nav-home svg { width: 14px; height: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .card-media img, .card-plus { transition: none; }
  .pop-sheet,
  .pop.is-open .pop-sheet { transform: none; opacity: 0; transition: opacity .2s ease; }   /* a fade instead of the slide */
  .pop.is-open .pop-sheet { opacity: 1; }
}
