/* Luuk theme: layout and components. Values come from tokens.css. */

/* ---------- Base ---------- */
*, *::before, *::after { 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(--color-page);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

[hidden] { display: none !important; }

a { color: var(--color-teal); }
a:hover { color: var(--color-teal-accent); }

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}
.hero :focus-visible,
.menu:not(.is-compact) :focus-visible { outline: var(--focus-ring-on-dark); }

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

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  background: var(--color-sun);
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.page {
  position: relative;
  padding: var(--page-gutter) 0 40px;
}

/* One container for every block, so all left and right edges line up. */
.wrap {
  width: var(--container);
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--button-height);
  padding: 0 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 200ms,
    color 200ms,
    box-shadow 300ms var(--ease-out),
    transform 300ms var(--ease-out);
}
.can-hover .button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(0.98); transition-duration: 100ms; }

.button--sun { background: var(--color-sun); color: var(--color-text); }
.button--sun:hover { background: var(--color-sun-hover); color: var(--color-text); box-shadow: 0 10px 24px rgba(245, 192, 68, 0.35); }

.button--white { background: var(--color-card); color: var(--color-teal); }
.button--white:hover { background: var(--color-card); color: var(--color-teal); box-shadow: 0 8px 20px rgba(4, 24, 32, 0.25); }

.button--teal { background: var(--color-teal); color: #ffffff; }
.button--teal:hover { background: var(--color-teal-raised); color: #ffffff; box-shadow: 0 10px 24px rgba(15, 59, 76, 0.3); }

.button--outline {
  border: 1.5px solid var(--color-teal);
  color: var(--color-teal);
}
.button--outline:hover { background: var(--color-teal); color: #ffffff; }

.button--arrow { gap: 8px; }
.button__arrow {
  display: inline-flex;
  margin-right: -4px;
  transition: transform 300ms var(--ease-out);
}
.button--arrow:hover .button__arrow { transform: translateX(3px); }

/* Tertiary: text and arrow only, for links inside cards */
.button--tertiary { min-height: 44px; padding: 0; color: var(--color-teal); font-size: 15px; }
.button--tertiary:hover { color: var(--color-teal-accent); }
.can-hover .button--tertiary:hover { transform: none; }
.button--tertiary .button__arrow { margin-right: 0; }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-teal);
  text-underline-offset: 4px;
  transition: text-underline-offset 250ms var(--ease-out), color 200ms;
}
.text-link:hover { text-underline-offset: 7px; }

/* ---------- Menu: liquid glass bar that morphs into a hamburger ---------- */
.menu {
  position: absolute;
  z-index: 50;
  top: calc(var(--page-gutter) + var(--menu-offset));
  left: 50%;
  transform: translateX(-50%);
  height: var(--menu-h);
  padding: 5px;
  border: 1px solid var(--glass-on-dark-edge);
  border-radius: var(--radius-pill);
  background: var(--glass-on-dark);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  box-shadow: var(--glass-rim), var(--glass-shadow);
}

/* With JS the bar is fixed, and its position and width can animate. */
.js .menu {
  position: fixed;
  left: calc(50% - var(--menu-w, 360px) / 2);
  width: var(--menu-w, max-content);
  transform: none;
  overflow: hidden;
  animation: menu-in 700ms var(--ease-out) 100ms both;
  transition:
    top var(--duration-morph) var(--ease-out),
    left var(--duration-morph) var(--ease-out),
    width var(--duration-morph) var(--ease-out),
    background-color 400ms,
    border-color 400ms,
    box-shadow 400ms;
}
.js .menu:not(.is-ready) { transition: none; }

.js .menu.is-compact {
  left: calc(50% + var(--container) / 2 - var(--menu-h));
  width: var(--menu-h);
  border-color: var(--glass-light-edge);
  background: var(--glass-light);
  box-shadow: var(--glass-rim-light), var(--glass-shadow);
}

/* Phones: once you scroll, the full bar glides to the bottom of the screen, in thumb
   reach, as light glass over the light page (menu.js sets .is-docked). */
.js .menu.is-docked {
  /* Anchored to the bottom edge, not computed from the top: mobile browsers measure
     the screen height differently while their toolbars show or hide */
  top: auto;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  border-color: var(--glass-light-edge);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--glass-rim-light), var(--glass-shadow);
}
.menu.is-docked .menu__link { color: var(--color-teal); }
/* Not gated on hover: a tap leaves :hover behind, and white text would vanish on the light bar */
.menu.is-docked .menu__link:hover { color: var(--color-teal); background: rgba(15, 59, 76, 0.06); }
.menu.is-docked .menu__link[aria-current] { color: var(--color-teal); }
.menu.is-docked .menu__pill { background: rgba(15, 59, 76, 0.10); box-shadow: none; }
.menu.is-docked .button--menu { background: var(--color-teal); color: #ffffff; }
.menu.is-docked :focus-visible { outline: var(--focus-ring); }

.menu__row {
  display: flex;
  flex: none;
  align-items: center;
  gap: 6px;
  width: max-content;
  transition: opacity 260ms, transform var(--duration-morph) var(--ease-out);
}
.menu.is-compact .menu__row {
  opacity: 0;
  transform: translateX(-16px);
  pointer-events: none;
}

.menu__nav {
  position: relative;
  display: flex;
  align-items: center;
}

.menu__pill {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--pill-w, var(--nav-item-width));
  height: var(--nav-item-height);
  border-radius: var(--radius-pill);
  /* Subtle glass, so "you are here" never looks like the yellow primary buttons */
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.10);
  opacity: 0;
  transform: translateX(var(--pill-x, 0px));
  transition:
    transform var(--duration-pill) var(--ease-pill),
    width var(--duration-pill) var(--ease-pill),
    opacity 200ms;
}
.menu__nav.has-active .menu__pill { opacity: 1; }

.menu__link {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--nav-item-width);
  height: var(--nav-item-height);
  border-radius: var(--radius-pill);
  color: var(--color-nav-text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 200ms, background-color 200ms;
}
.menu__link:hover { color: #ffffff; background: rgba(255, 255, 255, 0.08); }
.menu__link[aria-current],
.menu__link[aria-current]:hover { color: #ffffff; background: transparent; font-weight: 600; }

.button--menu {
  min-height: var(--nav-item-height);
  padding: 0 22px;
  font-size: 15px;
}

.menu__toggle {
  position: absolute;
  top: 5px;
  right: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--menu-h) - 12px);
  height: calc(var(--menu-h) - 12px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-teal);
  cursor: pointer;
  opacity: 0;
  transform: scale(0.4) rotate(-90deg);
  visibility: hidden;
  transition:
    opacity 300ms,
    transform 500ms var(--ease-spring),
    background-color 200ms,
    visibility 0s 500ms;
}
.menu.is-compact .menu__toggle {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition:
    opacity 300ms 220ms,
    transform 600ms var(--ease-spring) 180ms,
    background-color 200ms,
    visibility 0s;
}
.menu__toggle:hover { background: rgba(15, 59, 76, 0.07); }

.burger {
  position: relative;
  display: block;
  width: 20px;
  height: 14px;
}
.burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 400ms var(--ease-out), opacity 200ms, top 400ms var(--ease-out);
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 6px; }
.burger span:nth-child(3) { top: 12px; }
.menu__toggle[aria-expanded="true"] .burger span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu__toggle[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
.menu__toggle[aria-expanded="true"] .burger span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Dropdown panel that opens from the hamburger */
.menu-panel {
  position: fixed;
  z-index: 49;
  top: calc(var(--page-gutter) + var(--menu-offset) + var(--menu-h) + 10px);
  left: calc(50% + var(--container) / 2 - var(--menu-panel-w));
  width: var(--menu-panel-w);
  padding: 10px;
  border: 1px solid var(--glass-light-edge);
  border-radius: var(--radius-panel);
  background: var(--glass-light-panel);
  -webkit-backdrop-filter: blur(24px) saturate(var(--glass-saturate));
  backdrop-filter: blur(24px) saturate(var(--glass-saturate));
  box-shadow: var(--glass-rim-light), 0 24px 60px rgba(4, 24, 32, 0.22), 0 2px 6px rgba(4, 24, 32, 0.08);
  transform-origin: calc(100% - var(--menu-h) / 2) -10px;
  opacity: 0;
  transform: translateY(-10px) scale(0.85);
  visibility: hidden;
  transition:
    opacity 220ms,
    transform 380ms var(--ease-out),
    visibility 0s 380ms;
}
.menu-panel.is-open {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition:
    opacity 260ms,
    transform 520ms var(--ease-spring),
    visibility 0s;
}

.menu-panel__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.menu-panel__list li {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 200ms, transform 300ms var(--ease-out);
}
.menu-panel.is-open .menu-panel__list li {
  opacity: 1;
  transform: none;
  transition-delay: calc(80ms + var(--i, 0) * 45ms);
}

.menu-panel__link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: var(--radius-card);
  color: var(--color-teal);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 200ms, padding-left 300ms var(--ease-out);
}
.menu-panel__link:hover { background: rgba(15, 59, 76, 0.07); color: var(--color-teal); padding-left: 20px; }

.menu-panel__cta { width: 100%; margin-top: 6px; }

/* No backdrop-filter support: use solid fills so text stays readable. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .menu { background: var(--color-teal-raised); }
  .js .menu.is-compact,
  .menu-panel { background: rgba(255, 255, 255, 0.96); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 640px;
  padding-top: calc(var(--menu-offset) + var(--menu-h));
  border-radius: var(--radius-panel);
  background: var(--color-teal);
  overflow: hidden;
}

.hero__body {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  padding-left: var(--block-inset);
}

.hero__text {
  flex: 1 1 440px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  max-width: 640px;
  padding: 48px 0 72px;
}
.hero__text:focus { outline: none; }
.hero__text > * { animation: fade-up 600ms var(--ease-out) both; }
.hero__text > :nth-child(1) { animation-delay: 150ms; }
.hero__text > :nth-child(2) { animation-delay: 250ms; }
.hero__text > :nth-child(3) { animation-delay: 380ms; }
.hero__text > :nth-child(4) { animation-delay: 500ms; }

.hero__eyebrow {
  margin: 0;
  color: var(--color-sun);
  font-size: 16px;
  font-weight: 600;
}

.hero__title {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: var(--tracking-display);
}

.hero__intro {
  max-width: 520px;
  margin: 0;
  color: var(--color-text-on-teal);
  font-size: var(--text-lead);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}

.hero__visual {
  flex: 1 1 380px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 540px;
}

.hero__figure {
  position: relative;
  line-height: 0;
}

.hero__photo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 570px;
  opacity: 0.8; /* shown straight away: it is the largest element on screen (LCP) */
}

.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: var(--radius-card);
  background: var(--color-card);
  box-shadow: var(--shadow-float);
  line-height: 1.3;
  white-space: nowrap;
  /* Appear once, then stay put: endless bobbing reads as decoration, not content */
  animation: card-in 600ms var(--ease-out) var(--card-delay, 800ms) both;
}
.float-card--left { left: -13%; top: 55%; --card-delay: 750ms; }
.float-card--right { left: 60%; top: 72%; --card-delay: 950ms; }

.float-card__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-bar);
}
.float-card__icon--mountain { background: var(--color-sun-soft); color: #8a6200; }
.float-card__icon--screen { background: var(--color-glass); color: var(--color-teal-accent); }

.float-card__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.float-card__text strong { color: var(--color-text); font-size: 14px; font-weight: 600; }
.float-card__text span { color: var(--color-text-secondary); font-size: 12px; }

/* ---------- Shared ---------- */
.section-title {
  margin: 0;
  color: var(--color-teal);
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
}

/* ---------- Client strip ---------- */
.clients {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 54px;
  min-height: 110px;
  padding: 16px var(--block-inset) 0;
}

/* Part of the page-open sequence, right after the hero. */
.clients__label,
.clients__logos li {
  animation: fade-up 800ms var(--ease-out) both;
  animation-delay: calc(600ms + var(--i, 0) * 60ms);
}

.clients__label {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--text-small);
}

/* Desktop: the marquee wrappers don't exist for layout, and the loop copy is hidden */
.clients__marquee,
.clients__track { display: contents; }
.clients__logos.clients__logos--copy { display: none; }

.clients__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.clients__logos img {
  display: block;
  width: auto;
  height: var(--logo-h, 22px);
  transition: transform 400ms var(--ease-out), opacity 300ms;
}
.can-hover .clients__logos:hover img { opacity: 0.6; }
.can-hover .clients__logos img:hover { opacity: 1; transform: translateY(-2px) scale(1.06); }

/* Tablets and small laptops: the label sits on its own line and the logos never wrap
   into an uneven second row: one evenly spread row, or a tidy grid of three when narrow */
@media (min-width: 1101px) and (max-width: 1439px) {
  .clients__logos { flex-wrap: nowrap; justify-content: space-between; width: 100%; gap: 24px; }
}
@media (min-width: 601px) and (max-width: 1100px) {
  .clients__logos { display: grid; grid-template-columns: repeat(3, max-content); justify-content: space-between; width: 100%; gap: 22px 32px; }
}

/* ---------- About ---------- */
.about { margin-top: calc(var(--section-gap) - 40px); }

.about__bubble {
  position: relative; /* anchor for the timeline popup */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px 56px;
  padding: 48px var(--block-inset);
  border-radius: var(--radius-panel);
  background: var(--color-glass);
}

.about__text {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 440px;
}
.about__text p {
  margin: 0;
  color: var(--color-text-strong);
  font-size: var(--text-body);
  line-height: 1.6;
}

.timeline-scroll {
  flex: 2 1 560px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 6px;
  border-radius: var(--radius-bar);
}

.timeline {
  display: grid;
  grid-template-columns: 52px repeat(8, minmax(0, 1fr)); /* overridden inline from the year range */
  row-gap: 6px;
  align-items: center;
  min-width: 640px;
}

.timeline__year {
  grid-row: 1;
  padding-left: 8px;
  border-left: 1px solid var(--color-glass-line);
  color: var(--color-text-muted);
  font-size: var(--text-tiny);
}
.timeline__year.is-current {
  border-left: 2px solid var(--color-teal);
  color: var(--color-teal);
  font-weight: 600;
}

.timeline__group {
  grid-column: 1;
  color: var(--color-teal);
  font-size: 15px;
  font-weight: 600;
}

.timeline__bar {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 34px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-bar);
  font-family: inherit;
  font-size: var(--text-tiny);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.timeline__bar strong { overflow: hidden; text-overflow: ellipsis; }
/* A small gap between bars that follow each other (e.g. Retail, Interpolis, Dutchwebdesign) */
.timeline__bar { margin-inline: 3px; }
.timeline__bar--plain  { background: var(--color-card); color: var(--color-teal); }
.timeline__bar--dashed { padding: 0 10px; border: 1.5px dashed var(--color-teal-accent); background: var(--color-glass-soft); color: var(--color-teal); }
.timeline__bar--dark   { background: var(--color-teal); color: #ffffff; }
.timeline__bar--soft   { background: var(--color-sun-soft); color: var(--color-sun-ink); }
.timeline__bar--sun    { background: var(--color-sun); color: var(--color-text); }

/* Secondary group (study): shorter bars and a quieter label. */
.timeline__group--compact { font-size: 13px; }
.timeline__bar--compact { min-height: 24px; padding: 0 10px; font-size: 12px; }
.timeline__bar--compact.timeline__bar--dashed { padding: 0 8px; }

/* Vertical list version of the timeline, used on phones */
.timeline-list { display: none; flex-direction: column; gap: 24px; width: 100%; }
.timeline-list__label {
  margin: 0 0 10px;
  color: var(--color-teal-accent);
  font-size: var(--text-small);
  font-weight: 600;
}
.timeline-list__items {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0 0 0 22px;
  list-style: none;
}
/* The line that connects the dots */
.timeline-list__items::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 5px;
  width: 2px;
  border-radius: 2px;
  background: var(--color-glass-line);
}
.timeline-list__item { position: relative; display: flex; flex-direction: column; gap: 2px; }
.timeline-list__dot {
  position: absolute;
  top: 4px;
  left: -22px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--color-glass);
  border-radius: 50%;
  background: var(--color-teal);
}
.timeline-list__item--sun .timeline-list__dot,
.timeline-list__item--soft .timeline-list__dot { background: var(--color-sun); }
.timeline-list__item--plain .timeline-list__dot,
.timeline-list__item--dashed .timeline-list__dot { background: var(--color-teal-accent); }
.timeline-list__period { color: var(--color-text-secondary); font-size: var(--text-tiny); }
.timeline-list__title { color: var(--color-teal); font-size: 16px; font-weight: 600; line-height: 1.35; }
.timeline-list__place { color: var(--color-text-muted); font-size: var(--text-small); }
/* Skills under the About text: small, scannable tags */
.about__skills {
  display: flex;
  flex-wrap: wrap;
  row-gap: 2px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
/* Plain text with dots: pills read as buttons, and these can't be clicked */
:is(.about__skills, .expertise__tools, .site-mock__tags) { column-gap: 16px; overflow: hidden; }
:is(.about__skills li, .expertise__tools li, .site-mock__tags span) { position: relative; }
/* The dot sits in the gap before each label; at the start of a line it falls outside and is clipped */
:is(.about__skills li, .expertise__tools li, .site-mock__tags span)::before { content: "\00B7"; position: absolute; left: -10px; opacity: 0.6; }
.about__skills li {
  color: var(--color-teal);
  font-size: var(--text-tiny);
  font-weight: 600;
}

/* Work items (the non-compact group) as small white cards, so experience stands out */
.timeline-list__group:not(.timeline-list__group--compact) .timeline-list__items { gap: 8px; }
.timeline-list__group:not(.timeline-list__group--compact) .timeline-list__item {
  padding: 8px 12px;
  border-radius: var(--radius-card);
  background: var(--color-card);
  box-shadow: 0 1px 2px rgba(15, 59, 76, 0.06);
}
.timeline-list__group:not(.timeline-list__group--compact) .timeline-list__dot { top: 14px; }

/* Work cards a little tighter, and items marked hide_on_phone stay out of the phone list */
.timeline-list__group:not(.timeline-list__group--compact) .timeline-list__item { gap: 0; }
.timeline-list__group:not(.timeline-list__group--compact) .timeline-list__title { font-size: 15px; line-height: 1.3; }
.timeline-list__item--hidden { display: none; }

/* Compact group (study): one line per item, short name left and years right */
.timeline-list__group--compact .timeline-list__items { gap: 8px; }
.timeline-list__group--compact .timeline-list__item { flex-direction: row-reverse; justify-content: space-between; align-items: baseline; gap: 12px; }
.timeline-list__years,
.timeline-list__short { display: none; }
/* The full version stays readable for screen readers, only visually hidden */
.timeline-list__group--compact :is(.timeline-list__title, .timeline-list__period, .timeline-list__place) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.timeline-list__group--compact .timeline-list__short { display: block; color: var(--color-teal); font-size: 14px; font-weight: 600; }
.timeline-list__group--compact .timeline-list__years { display: block; flex: none; color: var(--color-text-secondary); font-size: var(--text-tiny); }
.timeline-list__group--compact .timeline-list__dot { top: 50%; width: 10px; height: 10px; left: -21px; transform: translateY(-50%); }

.timeline__divider {
  grid-column: 2 / -1;
  height: 1px;
  margin: 4px 0;
  background: var(--color-glass-line);
}

/* Bars draw in from the left once the bubble is on screen. */
.js .timeline__bar {
  clip-path: inset(0 100% 0 0 round var(--radius-bar));
  transition: clip-path 1000ms var(--ease-out);
  transition-delay: calc(350ms + var(--i, 0) * 120ms);
}
.js .about__bubble.is-visible .timeline__bar { clip-path: inset(0 0 0 0 round var(--radius-bar)); }

/* "See all projects": a button in the heading row on larger screens, under the grid on phones */
.projects__more { display: none; justify-content: center; }
@media (max-width: 600px) {
  .projects__all { display: none; }
  .projects__more { display: flex; }
  /* Homepage on phones: three cases keep the page short; the rest are one tap away */
  .projects:not(.projects--overview) .projects__grid > :nth-child(n+4) { display: none; }
}

/* ---------- What I bring ---------- */
/* A hiking route: three waypoints on a dashed trail across a map with faint contour lines.
   Desktop: the trail winds left to right through the pins. Phones: it runs down the left. */
.expertise {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: var(--section-gap);
}
.expertise__head { display: flex; flex-direction: column; gap: 10px; max-width: 620px; }
.expertise__head p { margin: 0; color: var(--color-text-muted); font-size: 17px; line-height: 1.55; }

.expertise__map {
  --pin: 56px;
  --route-gap: 56px;
  position: relative;
  padding: 44px 48px 48px;
  border-radius: var(--radius-panel);
  /* Map paper: the site's mint, so this block has colour after the white AI block */
  background: var(--color-glass);
  overflow: hidden;
  isolation: isolate;
}
.expertise__contours {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}
.expertise__contours path { fill: none; stroke: var(--color-glass-line); stroke-width: 1.5; opacity: 0.55; vector-effect: non-scaling-stroke; }

/* The trail runs from the centre of the first pin to the centre of the last one */
.expertise__route {
  position: absolute;
  top: calc(44px);
  left: calc(48px + var(--pin) / 2);
  /* first pin to third pin = two columns plus two gaps */
  width: calc(2 * ((100% - 96px - 2 * var(--route-gap)) / 3 + var(--route-gap)));
  height: var(--pin);
  overflow: visible;
}
.expertise__route path { fill: none; stroke: var(--color-teal-accent); stroke-width: 2.5; stroke-dasharray: 2 9; stroke-linecap: round; vector-effect: non-scaling-stroke; }
/* The trail comes in from the left edge of the map and carries on past the last pin */
.expertise__map::before,
.expertise__map::after {
  content: "";
  position: absolute;
  top: calc(44px + var(--pin) / 2 - 2px);
  height: 4px;
  background: radial-gradient(circle, var(--color-teal-accent) 1.3px, transparent 1.7px) 0 50% / 11px 4px repeat-x;
}
.expertise__map::before { left: 0; width: 48px; }
.expertise__map::after { left: calc(48px + 2 * ((100% - 96px - 2 * var(--route-gap)) / 3 + var(--route-gap)) + var(--pin)); right: 0; }

.expertise__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 var(--route-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.expertise__card { display: flex; flex-direction: column; gap: 8px; }

/* Waypoint pin: a round marker with a white ring, in the palette colour of its strength */
.expertise__pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--pin);
  height: var(--pin);
  margin-bottom: 14px;
  border: 4px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(15, 59, 76, 0.14);
}
.expertise__card--1 .expertise__pin { background: var(--color-teal); color: #ffffff; }
.expertise__card--2 .expertise__pin { background: var(--color-sun); color: var(--color-text); }
.expertise__card--3 .expertise__pin { background: #ffffff; color: var(--color-teal-accent); }

.expertise__title {
  margin: 0;
  color: var(--color-teal);
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
}
.expertise__text { margin: 0; color: var(--color-text-muted); font-size: 15px; line-height: 1.6; }
.expertise__tools {
  display: flex;
  flex-wrap: wrap;
  row-gap: 2px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.expertise__tools li {
  color: var(--color-teal);
  font-size: 13px;
  font-weight: 600;
}

/* ---------- AI experience ---------- */
.workflow {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: var(--section-gap);
  padding: 56px var(--block-inset);
  border-radius: var(--radius-panel);
  background: var(--color-card);
  box-shadow: 0 1px 2px rgba(15, 59, 76, 0.06);
}
.workflow__intro { display: flex; flex-direction: column; gap: 12px; }
.workflow__intro .section-title { text-wrap: balance; }
/* Yellow text is unreadable on white, so the word AI gets a yellow marker underneath instead */
.workflow__accent {
  padding: 0 0.06em;
  background: linear-gradient(transparent 62%, var(--color-sun) 62%, var(--color-sun) 90%, transparent 90%);
}
.workflow__intro p { max-width: 900px; margin: 0; color: var(--color-text-muted); font-size: 17px; line-height: 1.55; }

.workflow__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.workflow__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 36px;
  border-left: 1px solid var(--color-glass-line);
}
.workflow__card:first-child { padding-left: 0; border-left: 0; }
.workflow__card:last-child { padding-right: 0; }
.workflow__icon { display: flex; margin-bottom: 4px; color: var(--color-teal-accent); }
.workflow__icon svg { width: 28px; height: 28px; }
.workflow__title {
  margin: 0;
  color: var(--color-teal);
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
}
.workflow__text { margin: 0; color: var(--color-text-muted); font-size: 15px; line-height: 1.6; }
.workflow__links { display: flex; flex-wrap: wrap; gap: 0 20px; margin: auto 0 0; }

@media (max-width: 900px) {
  .workflow { padding-block: 40px; }
  .workflow__cards { grid-template-columns: minmax(0, 1fr); }
  .workflow__card,
  .workflow__card:first-child,
  .workflow__card:last-child { padding: 22px 0; border-left: 0; border-top: 1px solid var(--color-glass-line); }
  .workflow__card:last-child { padding-bottom: 0; }
}

/* ---------- Projects ---------- */
.projects {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: var(--section-gap);
}

.projects__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.projects__intro {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 560px;
}
.projects__intro p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 17px;
  line-height: 1.55;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-radius: var(--radius-cover);
  color: var(--color-text);
  text-decoration: none;
}
.can-hover .project:hover { color: var(--color-text); }

.project__cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-cover);
  overflow: hidden;
  transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out);
}
.can-hover .project:hover .project__cover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.project__cover--glass { background: var(--color-glass); }
.project__cover--white { background: var(--color-card); }
.project__cover--teal  { background: var(--color-teal); }
.project__cover--cream { background: var(--color-sun-soft); }

.project__cover img {
  display: block;
  width: auto;
  height: var(--logo-h, 28px);
  max-width: 70%;
  object-fit: contain;
  transition: transform 600ms var(--ease-out);
}

/* Photo covers fill the whole card */
.project .project__cover img.project__photo {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.project__word {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  transition: transform 600ms var(--ease-out);
}

.streak { display: flex; gap: 8px; }
.streak__dot {
  width: 14px;
  height: 14px;
  border: 2px solid var(--color-sun);
  border-radius: var(--radius-pill);
  transition: background-color 250ms, transform 400ms var(--ease-spring);
}
.streak__dot.is-filled { background: var(--color-sun); }

/* Featured project: spans two columns and two rows next to the smaller cards. */
.projects__grid > .is-featured {
  display: flex;
  grid-column: span 2;
  grid-row: span 2;
}
.is-featured .project { flex: 1; }
.is-featured .project__cover { flex: 1; aspect-ratio: auto; min-height: 0; }

/* ---------- Cover series ----------
   Every case cover shares one recipe: a palette tone with a soft glow, a faint grid,
   tags top left and framed visuals with the same shadow, bleeding off the bottom.
   The layouts below only change the composition. */
.project__cover--deco.project__cover--teal,
.case-showcase.project__cover--teal {
  background:
    radial-gradient(circle at 88% 0%, rgba(245, 192, 68, 0.22), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(31, 122, 120, 0.5), transparent 55%),
    var(--color-teal);
}
.project__cover--deco.project__cover--glass {
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 255, 255, 0.75), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(31, 122, 120, 0.2), transparent 55%),
    var(--color-glass);
}
.project__cover--deco.project__cover--cream {
  background:
    radial-gradient(circle at 88% 0%, rgba(245, 192, 68, 0.38), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(255, 255, 255, 0.7), transparent 55%),
    var(--color-sun-soft);
}
.project__cover--deco.project__cover--white {
  background:
    radial-gradient(circle at 88% 0%, rgba(215, 235, 230, 0.95), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(253, 240, 200, 0.7), transparent 50%),
    var(--color-card);
}
.case-showcase.project__cover--white { box-shadow: inset 0 0 0 1px var(--color-glass-line); }
.project__cover--deco {
  position: relative;
  container-type: inline-size;
}
/* Faint grid across every cover */
.project__cover--deco::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 4cqi 4cqi;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%);
}

.site-mock { position: absolute; inset: 0; }
.project__cover .site-mock img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.site-mock__tags {
  position: absolute;
  top: 4.5cqi;
  left: 7cqi;
  display: flex;
}
.site-mock__tags span {
  color: #ffffff;
  font-size: max(10px, 1.7cqi);
  font-weight: 500;
}

.site-mock__browser {
  position: absolute;
  top: 13cqi;
  left: 7cqi;
  width: 74cqi;
  border-radius: 1.6cqi;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 3cqi 6cqi -2cqi rgba(0, 0, 0, 0.6);
  container-type: inline-size;
  isolation: isolate;
  transition: transform 700ms var(--ease-out);
}

.site-mock__bar {
  display: flex;
  align-items: center;
  gap: 1cqi;
  height: 5.6cqi;
  padding: 0 2cqi;
  background: #eef1f4;
}
.site-mock__bar i { width: 1.4cqi; height: 1.4cqi; border-radius: 50%; background: #d0d5dd; }
.site-mock__bar span {
  width: 40%;
  margin-inline: auto;
  padding: 0.5cqi 0;
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: #475467;
  font-size: 1.8cqi;
  text-align: center;
}

.site-mock__phone {
  position: absolute;
  z-index: 1;
  right: 6cqi;
  top: 30cqi;
  width: 22cqi;
  padding: 0.8cqi;
  border-radius: 3.6cqi;
  background: #05080f;
  box-shadow: 0 3cqi 6cqi -1cqi rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 800ms var(--ease-out);
}
/* Screenshot covers: a real capture fills the frame, starting at the top */
.project__cover .site-mock .site-mock__shot { height: auto; object-fit: initial; }
.project__cover .site-mock__screen .site-mock__shot { height: 100%; object-fit: cover; object-position: top; }

/* Website covers on light tones: dark tags and grid lines */
.project__cover--deco:is(.project__cover--glass, .project__cover--white, .project__cover--cream)::before {
  background-image:
    linear-gradient(rgba(15, 59, 76, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 59, 76, 0.07) 1px, transparent 1px);
}
.project__cover--deco:is(.project__cover--glass, .project__cover--white, .project__cover--cream) .site-mock__tags span {
  color: var(--color-teal);
}
.project__cover--deco:is(.project__cover--glass, .project__cover--white, .project__cover--cream) :is(.site-mock__browser, .cover-print) {
  box-shadow: 0 3cqi 6cqi -2cqi rgba(15, 59, 76, 0.35);
}

/* Layout: mirror, the phone on the left */
.layout--mirror .site-mock__browser { left: auto; right: 7cqi; }
.layout--mirror .site-mock__phone { right: auto; left: 6cqi; }

/* Layout: browser, one large browser tilted off the edge */
.layout--browser .site-mock__browser {
  top: 16cqi;
  left: 10cqi;
  width: 96cqi;
  transform: rotate(-3deg);
  transform-origin: 0 0;
}

/* Phones: three app screens, fanned out */
.project__cover--phones .cover-phone { right: auto; width: 26cqi; transition: transform 700ms var(--ease-out); }
.project__cover--phones .cover-phone--1 { left: 13cqi; top: 27cqi; transform: rotate(-7deg); }
.project__cover--phones .cover-phone--2 { left: 37cqi; top: 16cqi; z-index: 2; }
.project__cover--phones .cover-phone--3 { left: 61cqi; top: 27cqi; transform: rotate(7deg); }

/* Phones, duo: two larger phones, staggered */
.layout--duo.project__cover--phones .cover-phone { width: 31cqi; }
.layout--duo.project__cover--phones .cover-phone--1 { left: 17cqi; top: 25cqi; z-index: 1; transform: rotate(-8deg); }
.layout--duo.project__cover--phones .cover-phone--2 { left: 49cqi; top: 13cqi; z-index: 2; transform: rotate(4deg); }

/* Print: two printed pieces or photos, tilted */
.cover-print {
  position: absolute;
  padding: 1.1cqi;
  border-radius: 1.6cqi;
  background: #ffffff;
  box-shadow: 0 3cqi 6cqi -2cqi rgba(0, 0, 0, 0.55);
  transition: transform 700ms var(--ease-out);
}
.project .project__cover .cover-print img {
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 0.9cqi;
  object-fit: cover;
}
.cover-print--1 { left: 9cqi; top: 15cqi; width: 52cqi; height: 66cqi; transform: rotate(-5deg); }
.cover-print--2 { right: 8cqi; top: 27cqi; z-index: 1; width: 40cqi; height: 50cqi; transform: rotate(6deg); }

/* Layout: compare, before and after. The old site sits faded at the back, the new one in front. */
.layout--compare .site-mock__browser { top: 26cqi; left: 22cqi; width: 70cqi; z-index: 2; }
.layout--compare .site-mock__browser--before {
  top: 13cqi;
  left: 6cqi;
  width: 62cqi;
  z-index: 1;
  filter: grayscale(1);
  opacity: 0.7;
  transform: rotate(-4deg);
}

/* Layout: snippet, the browser with one section of the page cut out and floating over it */
.layout--snippet .site-mock__browser { top: 15cqi; left: 7cqi; width: 70cqi; }
.cover-snippet {
  position: absolute;
  z-index: 2;
  right: 5cqi;
  top: 42cqi;
  width: 58cqi;
  border-radius: 1.8cqi;
  overflow: hidden;
  box-shadow: 0 3cqi 7cqi -2cqi rgba(15, 59, 76, 0.45), 0 0 0 1px rgba(15, 59, 76, 0.06);
  transform: rotate(-2deg);
  transition: transform 700ms var(--ease-out);
}
.project .project__cover .cover-snippet img { width: 100%; height: auto; max-width: none; }

.site-mock__screen {
  aspect-ratio: 9 / 19;
  border-radius: 2.8cqi;
  background: #ffffff;
  overflow: hidden;
  container-type: inline-size;
}

/* The client's page, rebuilt at scale. Inside the browser 1cqi is 1% of the
   browser width (about 14px of the real 1440px page), inside the phone 1% of
   the phone screen. Colours, radii and type follow netline.css. */
.nl {
  position: relative;
  color: #0b1220;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.2;
  text-align: left;
}

.nl__top {
  display: flex;
  align-items: center;
  gap: 2.4cqi;
  height: 2.8cqi;
  padding: 0 7cqi;
  border-bottom: 1px solid #e4e7ec;
  background: #f8fafc;
  color: #475467;
  font-size: 1.05cqi;
  white-space: nowrap;
}
.nl__top > span { display: inline-flex; align-items: center; gap: 0.5cqi; }
.nl__top svg { width: 1.1cqi; height: 1.1cqi; }
.nl__lang { margin-left: auto; }
.nl__flag {
  width: 1.5cqi;
  height: 1cqi;
  border-radius: 1px;
  background: radial-gradient(circle at 42% 50%, #ffffff 0 22%, transparent 23%), #e30a17;
}

.nl__nav {
  display: flex;
  align-items: center;
  height: 6.8cqi;
  padding: 0 7cqi;
  border-bottom: 1px solid #e4e7ec;
}
.project__cover .nl__nav img { width: auto; height: 2.3cqi; }
.nl__links {
  display: flex;
  gap: 3.2cqi;
  margin-inline: auto;
  color: #344054;
  font-size: 1.3cqi;
  font-weight: 500;
}

.nl__pill {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  padding: 0.8cqi 1.7cqi;
  border-radius: var(--radius-pill);
  font-size: 1.3cqi;
  font-weight: 500;
  white-space: nowrap;
}
.nl__nav .nl__pill { align-self: center; padding: 1cqi 2cqi; }
.nl__pill--green { background: #037140; color: #ffffff; }
.nl__pill--blue { background: #0095e6; color: #161a1d; }

.nl__hero { position: relative; height: 36cqi; overflow: hidden; }
.nl__hero img { transition: transform 1200ms var(--ease-out); }
.nl__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 18, 32, 0.9), rgba(11, 18, 32, 0.7) 50%, rgba(11, 18, 32, 0.35));
}
.nl__copy {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.4cqi;
  max-width: 62%;
  padding-left: 7cqi;
}
.nl__eyebrow { color: rgba(255, 255, 255, 0.9); font-size: 1.25cqi; font-weight: 500; }
.nl__heading { color: #ffffff; font-size: 4.1cqi; font-weight: 700; line-height: 1.15; }
.nl__copy .nl__pill { margin-top: 1cqi; padding: 1.1cqi 2cqi; }

.nl__section { padding: 5cqi 7cqi 4cqi; }
.nl__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 0.5cqi 2cqi;
}
.nl__title { color: #0a3d91; font-size: 2.7cqi; font-weight: 700; }
.nl__intro { grid-row: 2; color: #475467; font-size: 1.2cqi; }
.nl__more { grid-row: 2; grid-column: 2; color: #0074c2; font-size: 1.2cqi; font-weight: 500; }

.nl__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.6cqi;
  margin-top: 2.8cqi;
}
.nl__card {
  border: 1px solid #0a3d91;
  border-radius: 2px;
  background: #ffffff;
  overflow: hidden;
}
.project__cover .nl__card img { height: auto; aspect-ratio: 16 / 9; }
.nl__card span {
  display: block;
  padding: 1.3cqi 1.2cqi 2.4cqi;
  color: #0a3d91;
  font-size: 1.15cqi;
  font-weight: 700;
}

.nl__chat {
  position: absolute;
  top: 49cqi;
  right: 2.6cqi;
  z-index: 2;
  width: 4.8cqi;
  height: 4.8cqi;
  border-radius: 50%;
  background: #037140;
  box-shadow: 0 0.6cqi 1.6cqi rgba(0, 0, 0, 0.25);
}
.nl__chat::before {
  content: "";
  position: absolute;
  inset: 32%;
  border: 0.3cqi solid #ffffff;
  border-radius: 50% 50% 50% 8%;
}

/* Phone: the mobile layout, sized against the phone screen. */
.nl--phone .nl__top { gap: 3cqi; height: 8cqi; padding: 0 4.5cqi; font-size: 3cqi; }
.nl--phone .nl__top svg { width: 3cqi; height: 3cqi; }
.nl--phone .nl__flag { width: 4cqi; height: 2.7cqi; }
.nl--phone .nl__nav { justify-content: space-between; height: 13cqi; padding: 0 4.5cqi; }
.project__cover .nl--phone .nl__nav img { height: 5.6cqi; }
.nl__burger { display: flex; flex-direction: column; gap: 1.2cqi; width: 5cqi; }
.nl__burger i { height: 0.7cqi; border-radius: 1cqi; background: #0b1220; }
.nl--phone .nl__hero { height: 74cqi; }
.nl--phone .nl__copy { max-width: none; gap: 2.6cqi; padding: 0 4.5cqi; }
.nl--phone .nl__eyebrow { font-size: 3cqi; }
.nl--phone .nl__heading { font-size: 8cqi; }
.nl--phone .nl__copy .nl__pill { margin-top: 1cqi; padding: 2.6cqi 4.5cqi; font-size: 3.4cqi; }
.nl--phone .nl__section { padding: 8cqi 4.5cqi; }
.nl--phone .nl__head { grid-template-columns: 1fr; gap: 1.6cqi; }
.nl--phone .nl__title { font-size: 6.4cqi; }
.nl--phone .nl__intro { font-size: 3cqi; }
.nl--phone .nl__more { grid-row: auto; grid-column: auto; font-size: 3.2cqi; }
.nl--phone .nl__card { margin-top: 5cqi; }
.nl--phone .nl__card span { padding: 3cqi 3cqi 1cqi; font-size: 3.4cqi; }
.nl--phone .nl__card small { display: block; padding: 0 3cqi 3cqi; color: #475467; font-size: 2.7cqi; line-height: 1.35; }
.nl--phone .nl__chat { top: auto; bottom: 5cqi; right: 4.5cqi; width: 13cqi; height: 13cqi; }
.nl--phone .nl__chat::before { border-width: 0.8cqi; }

.project__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 4px;
}
.project__title {
  margin: 0;
  color: var(--color-teal);
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 250ms;
}
.can-hover .project:hover .project__title { text-decoration-color: currentColor; }
.project__type {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--text-small);
  line-height: 1.5;
}

/* ---------- Case study: hero ---------- */
.case-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 48px 64px;
  padding: calc(var(--menu-offset) + var(--menu-h) + 56px) var(--block-inset) 48px;
  border-radius: var(--radius-panel);
  background: var(--color-teal);
  overflow: hidden;
}
.case-hero--overview { grid-template-columns: minmax(0, 760px); padding-bottom: 72px; }

.case-hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.case-hero__text:focus { outline: none; }
.case-hero__text > * { animation: fade-up 600ms var(--ease-out) both; }
.case-hero__text > :nth-child(2) { animation-delay: 100ms; }
.case-hero__text > :nth-child(3) { animation-delay: 180ms; }
.case-hero__text > :nth-child(4) { animation-delay: 280ms; }
.case-hero__text > :nth-child(5) { animation-delay: 380ms; }

.case-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: -8px 0 -6px;
  color: var(--color-text-on-teal);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 200ms;
}
.case-hero__back span { display: inline-flex; transform: rotate(180deg); transition: transform 300ms var(--ease-out); }
.case-hero__back:hover { color: #ffffff; }
.case-hero__back:hover span { transform: rotate(180deg) translateX(3px); }
.case-hero :focus-visible { outline: var(--focus-ring-on-dark); }

.case-hero__visual .project__cover { aspect-ratio: 5 / 4; box-shadow: var(--shadow-float); }
/* In the hero the screens sit straight on the teal: no card, grid or tags (the facts
   below already say what it is). Where the screens run off the bottom they fade out. */
.case-hero__visual .project__cover--deco,
.case-hero__visual .project__cover--deco.project__cover--teal {
  background: none;
  box-shadow: none;
  border-radius: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
}
.case-hero__visual .project__cover--deco::before,
.case-hero__visual .project__cover--deco .site-mock__tags { display: none; }
.case-hero__visual .project__cover > img { height: calc(var(--logo-h, 28px) * 2); }
.case-hero__visual .project__word { font-size: 80px; }
.case-hero__visual .streak { gap: 14px; }
.case-hero__visual .streak__dot { width: 24px; height: 24px; border-width: 3px; }

.case-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 32px;
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  animation: fade-up 900ms var(--ease-out) 500ms both;
}
.case-facts dt { color: var(--color-text-on-teal); font-size: var(--text-tiny); }
.case-facts dd { margin: 4px 0 0; color: #ffffff; font-size: 16px; font-weight: 500; }

/* ---------- Case study: sections ---------- */
.case-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px 64px;
  margin-top: var(--section-gap);
  padding-inline: var(--block-inset);
}
.case-section--wide { grid-template-columns: minmax(0, 1fr); }
.case-section--wide .case-section__head { max-width: 640px; }

.case-section__label {
  margin: 0 0 12px;
  color: var(--color-teal-accent);
  font-size: var(--text-small);
  font-weight: 600;
  line-height: 1.5;
}

.case-section__body {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}
/* Side by side, the content starts level with the heading, not with the small label above it */
.case-section:not(.case-section--wide) .case-section__body { padding-top: calc(var(--text-small) * 1.5 + 12px); }
.case-section__text {
  max-width: 680px;
  color: var(--color-text-muted);
  font-size: 17px;
  line-height: 1.65;
}
.case-section__text p { margin: 0 0 1em; }
.case-section__text p:last-child { margin-bottom: 0; }

.case-card {
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--color-card);
  transition: transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out);
}
.can-hover .case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.case-card h3 {
  margin: 0 0 8px;
  color: var(--color-teal);
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 500;
  line-height: 1.25;
}
.case-card p { margin: 0; color: var(--color-text-secondary); font-size: 15px; line-height: 1.55; }

.case-steps,
.case-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.case-features { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.case-features .case-card { border-top: 3px solid var(--color-sun); }
/* Exactly four items: a calm 2 x 2 grid instead of three plus one on its own */
.case-features:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.case-steps__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--color-sun);
  color: var(--color-text);
  font-weight: 600;
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 0;
}
.case-stats__item {
  display: flex;
  flex-direction: column-reverse;
  /* In column-reverse, flex-end is the top: numbers line up even when a label wraps */
  justify-content: flex-end;
  gap: 6px;
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--color-glass);
}
.case-stats dt { color: var(--color-text-muted); font-size: var(--text-small); }
.case-stats dd {
  margin: 0;
  color: var(--color-teal);
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: var(--tracking-display);
}

/* Screenshots in a browser or phone frame. Tall ones scroll on hover. */
.shot { margin: 0; min-width: 0; }
.shot figcaption { margin-top: 12px; color: var(--color-text-secondary); font-size: var(--text-small); }

.shot__frame {
  border-radius: var(--radius-card);
  background: var(--color-card);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 59, 76, 0.08), var(--shadow-lift);
}
.shot__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  background: #eef2f1;
}
.shot__bar i { width: 10px; height: 10px; border-radius: 50%; background: #cdd8d5; }
.shot__bar span {
  min-width: 0;
  width: 46%;
  margin-inline: auto;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-card);
  color: var(--color-text-secondary);
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shot__screen {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--color-glass-soft);
}
.shot__screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}
.shot--scroll .shot__screen img { transition: object-position 7s cubic-bezier(.45, 0, .55, 1); }
.can-hover .shot--scroll:hover .shot__screen img { object-position: 50% 100%; }
.shot--scroll.is-scrolled .shot__screen img { object-position: 50% 100%; }
.shot--scroll .shot__screen[role="button"] { cursor: pointer; }

.shot__screen--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(31, 122, 120, 0.07) 14px 28px);
  color: var(--color-teal-accent);
  font-size: var(--text-small);
  font-weight: 600;
  text-align: center;
}

.shot--phone .shot__frame {
  padding: 8px;
  border-radius: 36px;
  background: #05080f;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.shot--phone .shot__screen { aspect-ratio: 9 / 19; border-radius: 28px; }
.shot--phone.shot--scroll .shot__screen img { transition-duration: 9s; }

.case-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: end;
  gap: 0 48px;
  padding: 64px var(--block-inset);
  border-radius: var(--radius-panel);
  overflow: hidden;
}
.case-showcase .shot--browser .shot__frame { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55); }
.case-showcase .shot--phone { margin-bottom: -120px; }
.case-showcase__hint {
  position: absolute;
  top: 22px;
  left: var(--block-inset);
  margin: 0;
  padding: 4px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  font-size: 13px;
}
.case-showcase.project__cover--glass .case-showcase__hint,
.case-showcase.project__cover--white .case-showcase__hint,
.case-showcase.project__cover--cream .case-showcase__hint { border-color: var(--color-glass-line); color: var(--color-teal); }

.case-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 32px 24px;
}

/* Plain frame: design work shown in its own proportions */
.shot--plain .shot__frame { background: var(--color-card); }
.shot__img { display: block; width: 100%; height: auto; }
/* Tall items (phone screens, flyers) stay a sensible height in a half-width column */
.shot--plain:not(.shot--wide) .shot__img { max-height: 640px; object-fit: contain; }
.shot--wide { grid-column: 1 / -1; }
.shot--wide .shot__screen { aspect-ratio: 16 / 8; }

/* Feature: heading and text left, the image large on the right */
.case-section--feature {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
}
.case-section--feature .case-section__head { display: flex; flex-direction: column; }
.case-section--feature .case-section__text { margin-top: 18px; }
.case-section--feature .case-section__body { padding-top: 0; align-items: center; }
.case-section--feature .shot--plain { width: fit-content; max-width: 100%; }
.case-section--feature .shot--plain .shot__img { width: auto; max-width: 100%; max-height: 520px; }
.case-section--feature .shot--plain .shot__frame { width: fit-content; max-width: 100%; }

/* Reverse: content on the left, heading and intro on the right */
.case-section--reverse { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: center; }
.case-section--reverse .case-section__text { margin-top: 18px; }
.case-section--reverse .case-section__body { padding-top: 0; }
.case-section--reverse.case-section--feature { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.case-section--reverse .case-section__head { grid-column: 2; grid-row: 1; }
.case-section--reverse .case-section__body { grid-column: 1; grid-row: 1; }

/* Closing: the last section sits in a panel, so the case visibly ends */
.case-section--closing {
  padding-block: 48px;
  border-radius: var(--radius-panel);
  background: var(--color-glass);
}

/* Highlights under the hero: what this case covers, as shortcuts */
.case-toc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 32px;
  padding-inline: var(--block-inset);
}
.case-toc__label { margin: 0; color: var(--color-text-secondary); font-size: var(--text-small); font-weight: 600; }
.case-toc__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.case-toc__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* comfortable touch target */
  padding: 0 16px;
  border: 1px solid var(--color-glass-line);
  border-radius: var(--radius-pill);
  background: var(--color-card);
  color: var(--color-teal);
  font-size: var(--text-small);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 200ms, border-color 200ms, transform 300ms var(--ease-out);
}
.can-hover .case-toc__list a:hover { border-color: var(--color-teal); transform: translateY(-2px); }
/* Jumps land with room above the heading, clear of the fixed menu */
.case-section { scroll-margin-top: 96px; }

.case-showcase__hint-touch { display: none; }
/* Touch screens can't hover, so the hint asks for a tap instead */
@media (hover: none) {
  .case-showcase__hint-hover { display: none; }
  .case-showcase__hint-touch { display: inline; }
}

/* ---------- Case study: next project ---------- */
.case-next { margin-top: var(--section-gap); }
.case-next__all { margin: 12px 0 0 var(--block-inset); }
.case-next__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  flex-direction: row;
  align-items: center;
  gap: 32px 48px;
  padding: 48px var(--block-inset);
  border: 1px solid var(--color-glass-line);
  border-radius: var(--radius-panel);
  background: var(--color-card);
}
.case-next__text { display: flex; flex-direction: column; gap: 8px; }
.case-next__label { color: var(--color-teal-accent); font-size: var(--text-small); font-weight: 600; }
.case-next__title {
  color: var(--color-teal);
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 6px;
  transition: text-decoration-color 250ms;
}
.case-next__link:hover .case-next__title { text-decoration-color: currentColor; }
.case-next__type { color: var(--color-text-secondary); font-size: 15px; }
.case-next__cover .project__cover {
  aspect-ratio: 4 / 3;
  box-shadow: inset 0 0 0 1px rgba(15, 59, 76, 0.08), 0 1px 2px rgba(15, 59, 76, 0.08);
}

/* ---------- Projects overview page ----------
   Two by two, every case the same size (the featured case is not enlarged here). */
.projects--overview { margin-top: 48px; }
.projects--overview .projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
.projects--overview .projects__grid > li { display: flex; }
.projects--overview .project { flex: 1; }
.projects--overview .project__cover { aspect-ratio: 4 / 3; }
.projects--overview .projects__grid > .is-featured { grid-column: auto; grid-row: auto; }
.projects--overview .is-featured .project__cover { flex: none; aspect-ratio: 4 / 3; }

/* ---------- Contact ---------- */
.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-top: var(--section-gap);
  padding: 72px var(--block-inset);
  border-radius: var(--radius-panel);
  background: var(--color-sun);
}

.contact__main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 620px;
}

.contact__title {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: var(--text-contact);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: var(--tracking-display);
}

.contact__text {
  max-width: 520px;
  margin: 0;
  color: var(--color-text-on-sun);
  font-size: 17px;
  line-height: 1.55;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

.contact__details {
  display: grid;
  grid-template-columns: auto auto;
  gap: 12px 32px;
  margin: 0;
  font-size: 15px;
}
.contact__details dt { color: var(--color-label-on-sun); }
.contact__details dd { margin: 0; color: var(--color-text); overflow-wrap: anywhere; }
.contact__details a { color: inherit; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color 200ms; }
.contact__details a:hover { color: inherit; text-decoration-color: currentColor; }

/* ---------- Footer ---------- */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 36px var(--block-inset) 0;
}

.footer__copy {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--text-small);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
}
.footer__nav a,
.footer__top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--text-small);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: text-decoration-color 250ms, color 200ms;
}
.footer__nav a { color: var(--color-text-strong); text-decoration-color: transparent; }
.footer__nav a:hover { color: var(--color-teal-accent); text-decoration-color: currentColor; }
.footer__top { color: var(--color-teal); font-weight: 600; }

/* ---------- Text page (privacy statement and other plain pages) ---------- */
.text-page {
  margin-top: 56px;
  padding-inline: var(--block-inset);
  color: var(--color-text-muted);
  font-size: 17px;
  line-height: 1.65;
}
.text-page > * { max-width: 720px; }
.text-page h2 {
  margin: 48px 0 12px;
  color: var(--color-teal);
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
}
.text-page h2:first-child { margin-top: 0; }
.text-page p { margin: 0 0 1em; }
.text-page ul { margin: 0 0 1em; padding-left: 1.2em; }
.text-page li { margin-bottom: 0.35em; }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity var(--duration-reveal) var(--ease-out),
    transform var(--duration-reveal) var(--ease-out);
  transition-delay: calc(var(--i, 0) * var(--stagger));
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
/* A group reveals its children together, staggered by --i, as soon as the group enters. */
.js [data-reveal-group] { opacity: 1; transform: none; }
.js [data-reveal-group] > * {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity var(--duration-reveal) var(--ease-out),
    transform var(--duration-reveal) var(--ease-out);
  transition-delay: calc(var(--i, 0) * var(--stagger));
}
.js [data-reveal-group].is-visible > * { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
/* Two identical lists side by side: moving by half the track loops seamlessly */
@keyframes clients-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes dock-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes menu-in {
  from { opacity: 0; translate: 0 -16px; }
  to   { opacity: 1; translate: 0 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects__grid > .is-featured { grid-row: auto; }
  .is-featured .project__cover { aspect-ratio: 16 / 10; }
}

@media (max-width: 900px) {
  /* What I bring: the route runs down the left, waypoints below each other */
  .expertise__map { --pin: 40px; padding: 26px 20px 28px; }
  .expertise__route,
  .expertise__map::before,
  .expertise__map::after { display: none; }
  .expertise__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .expertise__card { position: relative; padding: 0 0 28px calc(var(--pin) + 14px); }
  .expertise__card:last-child { padding-bottom: 0; }
  .expertise__pin { position: absolute; top: 0; left: 0; margin: 0; }
  /* The trail between the pins, in the same dots as on desktop */
  .expertise__card:not(:last-child)::before { content: ""; position: absolute; top: calc(var(--pin) + 6px); bottom: 6px; left: calc(var(--pin) / 2 - 2px); width: 4px; background: radial-gradient(circle, var(--color-teal-accent) 1.3px, transparent 1.7px) 50% 0 / 4px 11px repeat-y; }
  .expertise__pin { border-width: 3px; }
  .expertise__pin svg { width: 18px; height: 18px; }
  .expertise__title { padding-top: 8px; font-size: 19px; }
  .expertise__text { font-size: 15px; }
  .hero__visual { min-height: 0; padding-top: 8px; }
  .hero__text { padding: 40px var(--block-inset) 32px 0; }
  .about__bubble { padding-block: 36px; }
  .contact { padding-block: 56px; }
  .case-hero { grid-template-columns: minmax(0, 1fr); padding-top: calc(var(--menu-offset) + var(--menu-h) + 32px); }
  .case-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-section,
  .case-section--feature,
  .case-section--reverse,
  .case-section--reverse.case-section--feature { grid-template-columns: minmax(0, 1fr); }
  .case-section--reverse .case-section__head,
  .case-section--reverse .case-section__body { grid-column: auto; grid-row: auto; }
  .case-section--closing { padding-block: 32px; }
  .case-section:not(.case-section--wide) .case-section__body { padding-top: 0; }
  .case-showcase { grid-template-columns: minmax(0, 1fr) 150px; gap: 0 24px; padding-top: 72px; }
  .case-showcase .shot--phone { margin-bottom: -80px; }
  .case-next__link { grid-template-columns: minmax(0, 1fr); padding-block: 36px; }
}

@media (max-width: 600px) {
  .projects__grid,
  .projects--overview .projects__grid { grid-template-columns: 1fr; }
  .projects__grid > .is-featured { grid-column: auto; }
  .projects--overview .is-featured .layout--devices .site-mock__browser { top: 13cqi; left: 7cqi; width: 74cqi; }
  .projects--overview .is-featured .layout--devices .site-mock__phone { top: 30cqi; right: 6cqi; width: 22cqi; }
  /* The featured case is the same size as the others on a phone */
  .is-featured .project__cover { aspect-ratio: 4 / 3; }

  /* Hero: never taller than the screen. The text keeps its size, the photo takes what is left. */
  .hero {
    min-height: 0;
    /* About one screen tall. With larger text it may grow a little, so the photo keeps its size. */
    height: auto;
    min-height: clamp(660px, calc(100svh - 2 * var(--page-gutter)), 860px);
  }
  .hero__body { flex-direction: column; flex-wrap: nowrap; min-height: 0; padding-left: var(--block-inset); }
  .hero__text { flex: none; padding-bottom: 8px; }
  /* The photo fills whatever height is left and is scaled down whole, never cropped */
  .hero__visual { position: relative; flex: 1 1 auto; min-height: 360px; padding-top: 0; }
  .hero__figure { position: absolute; inset: 8px 0 0; display: flex; align-items: flex-end; justify-content: center; }
  .hero__photo { height: 100%; max-height: none; width: auto; max-width: 100%; object-fit: contain; object-position: bottom; }

  /* Client logos: one slow, endless strip instead of uneven wrapped rows */
  .clients { flex-direction: column; align-items: stretch; gap: 14px; min-height: 0; padding: 24px 0 0; }
  .clients__label { padding-inline: var(--block-inset); }
  .clients { overflow: hidden; }
  .clients__marquee {
    display: block;
    /* As a flex item it would grow to the width of all logos and widen the page */
    width: 100%;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  }
  .clients__track { display: flex; width: max-content; animation: clients-scroll 28s linear infinite; }
  .clients__logos { flex-wrap: nowrap; gap: 0 52px; padding-right: 52px; }
  .clients__logos.clients__logos--copy { display: flex; }
  .clients__logos img { height: calc(var(--logo-h, 22px) * 1.15); }
  /* More breathing room between the logo strip and About me */
  .about { margin-top: 44px; }
  .float-card { gap: 10px; padding: 10px 14px 10px 10px; }
  /* Cards sit low, at shoulder height, so they never cover the face */
  .float-card--left { left: 12px; top: auto; bottom: 30%; }
  .float-card--right { left: auto; right: 12px; top: auto; bottom: 8%; }
  .about__bubble { padding-block: 28px; }
  .contact { padding-block: 44px; gap: 36px; }
  .case-steps,
  .case-gallery { grid-template-columns: minmax(0, 1fr); }
  .case-showcase { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 64px 20px 0; }
  .case-showcase .shot--phone { width: 62%; margin: 0 auto -100px; }
  .case-hero__visual .project__word { font-size: 56px; }
  .case-stats dd { font-size: 40px; }

  /* Menu: once you scroll it sits at the bottom, in thumb reach. No movement across
     the screen: it just fades in at its new place. */
  .js .menu { transition: background-color 300ms, border-color 300ms, box-shadow 300ms; }
  .js .menu.is-docked { animation: dock-in 200ms ease-out both; }

  /* Room at the end of every page, so the docked menu never covers the footer */
  .page { padding-bottom: calc(40px + var(--menu-h) + 16px); }

  /* Timeline: a vertical list instead of a sideways-scrolling chart */
  .timeline-scroll { display: none; }
  .timeline-list { display: flex; }

  /* "In this case": one swipeable row instead of three rows of chips */
  .case-toc { flex-wrap: nowrap; gap: 10px; padding-inline: 0; }
  .case-toc__label { flex: none; padding-left: var(--block-inset); }
  .case-toc__list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 4px var(--block-inset) 4px 0;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
    mask-image: linear-gradient(to right, #000 85%, transparent);
  }
  .case-toc__list::-webkit-scrollbar { display: none; }
  .case-toc__list a { white-space: nowrap; }
}

@media (max-width: 480px) {
  .menu__row { gap: 4px; }
  .menu__link { font-size: 14px; }
  .button--menu { padding: 0 14px; font-size: 14px; }
  .button--menu.button--arrow { gap: 6px; }
  .hero__visual { margin-left: calc(-1 * var(--block-inset)); }
}

/* ---------- Reduced motion: no movement, content shows straight away ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal],
  .js [data-reveal-group] > * { opacity: 1; transform: none; }
  .js .timeline__bar { clip-path: none; }
  /* No moving logo strip: it stands still and can be swiped by hand */
  .clients__track { animation: none !important; }
  .clients__marquee { overflow-x: auto; scrollbar-width: none; }
  .clients__logos.clients__logos--copy { display: none !important; }
}

/* ---------- 404 page ---------- */
/* "The goat ate it", one 6-second loop: a fresh page slides into the goat's mouth (0-8%),
   five bites (8-56%) with crumbs while the jaw chews non-stop, eyes closed in contentment and a "404" burp (60-80%),
   then the next page. Base styles show a half-eaten page, the still for reduced motion. */
.notfound__art { display: flex; justify-content: center; animation: fade-up 900ms var(--ease-out) 300ms both; }
.notfound__art svg { display: block; width: 100%; max-width: 540px; height: auto; overflow: visible; }

/* Scene: kept quiet so the goat is the only thing to look at */
.nf-sun { fill: var(--color-sun); }
.nf-mountain { fill: #174b5e; }
.nf-snow { fill: var(--color-glass); opacity: 0.9; }
.nf-island { fill: var(--color-teal-raised); }
.nf-rock { fill: #1c5568; }

/* Goat */
.nf-goat { fill: #f7faf9; }
.nf-goat-shade { fill: #dbe7e3; }
.nf-goat-far { fill: #c3d6d0; }
.nf-hoof { fill: #0a2530; }
.nf-hoof--far { fill: #16343f; }
.nf-horn { fill: none; stroke: #a08d6a; stroke-width: 6; stroke-linecap: round; }
.nf-horn--far { stroke: #7d6d50; stroke-width: 5; }
.nf-lips { fill: none; stroke: #9fb8b1; stroke-width: 1.2; stroke-linecap: round; }
.nf-nostril { fill: var(--color-text); }
.nf-iris { fill: #f0c75e; }
.nf-pupil { fill: var(--color-text); }
.nf-lid { fill: #dbe7e3; }
.nf-paper { fill: #ffffff; }
.nf-paper-bar { fill: var(--color-glass); }
.nf-dot { fill: var(--color-glass-line); }
.nf-pagetext { fill: var(--color-teal); font-family: var(--font-heading); font-size: 13px; font-weight: 700; text-anchor: middle; }
.nf-line { fill: none; stroke: var(--color-glass-line); stroke-width: 2.2; stroke-linecap: round; }
.nf-puff { fill: var(--color-glass-soft); }
.nf-burptext { fill: var(--color-teal); font-family: var(--font-heading); font-size: 9px; font-weight: 700; text-anchor: middle; }
.nf-crumb { fill: #ffffff; opacity: 0; }

/* Still state (reduced motion): page half eaten, no burp */
.nf-page { transform: translateX(8px); }
.nf-burp { opacity: 0; }

/* Motion */
.nf-page { animation: nf-g-page 6s ease-in-out infinite; }
.nf-jaw, .nf-lid, .nf-burp, .nf-crumb { transform-box: fill-box; }
.nf-jaw { transform-origin: 100% 0; animation: nf-g-chew 0.42s ease-in-out infinite alternate; }
.nf-ear, .nf-tail { transform-box: fill-box; }
.nf-ear { transform-origin: 0% 50%; animation: nf-g-ear 4.6s ease-in-out infinite; }
.nf-tail { transform-origin: 0% 100%; animation: nf-g-tail 3.8s ease-in-out infinite; }
.nf-lid { transform-origin: 50% 0; animation: nf-g-lid 6s ease-in-out infinite; }
.nf-burp { transform-origin: 100% 100%; animation: nf-g-burp 6s ease-out infinite; }
.nf-crumb { transform-origin: 50% 50%; animation: nf-g-crumb-1 6s ease-in infinite; }
.nf-crumb--2 { animation-name: nf-g-crumb-2; }
.nf-crumb--3 { animation-name: nf-g-crumb-3; }

/* A fresh page slides in, then five bites pull it into the mouth */
@keyframes nf-g-page {
  0% { transform: translateX(-26px); opacity: 0; }
  7%, 12% { transform: translateX(0); opacity: 1; }
  16%, 22% { transform: translateX(10px); }
  26%, 32% { transform: translateX(20px); }
  36%, 42% { transform: translateX(30px); }
  46%, 50% { transform: translateX(40px); }
  54%, 100% { transform: translateX(52px); opacity: 1; }
}
/* Goats never stop chewing: the jaw works in a steady rhythm, the beard moves with it */
@keyframes nf-g-chew { from { transform: rotate(0); } to { transform: rotate(24deg); } }
/* Small signs of life: an ear flick and a quick tail wag, each on its own clock */
@keyframes nf-g-ear { 0%, 78%, 100% { transform: rotate(0); } 82% { transform: rotate(-26deg); } 86% { transform: rotate(8deg); } 90% { transform: rotate(0); } }
@keyframes nf-g-tail { 0%, 84%, 100% { transform: rotate(0); } 87% { transform: rotate(-32deg); } 90% { transform: rotate(20deg); } 93% { transform: rotate(-14deg); } 96% { transform: rotate(0); } }
/* Half-closed, bored eyelid; fully closed while savouring, then a blink before the next page */
@keyframes nf-g-lid {
  0%, 56%, 82%, 92%, 96%, 100% { transform: scaleY(1); }
  60%, 78% { transform: scaleY(2.05); }
  94% { transform: scaleY(2.05); }
}
@keyframes nf-g-burp {
  0%, 62% { opacity: 0; transform: scale(0.3); }
  66% { opacity: 1; transform: scale(1.08); }
  68%, 78% { opacity: 1; transform: scale(1); }
  84%, 100% { opacity: 0; transform: translateY(-6px) scale(1); }
}
/* One crumb per few bites */
@keyframes nf-g-crumb-1 {
  0%, 16% { opacity: 0; transform: translate(0, 0) rotate(0); }
  18% { opacity: 1; }
  32% { opacity: 1; }
  36%, 100% { opacity: 0; transform: translate(-6px, 44px) rotate(150deg); }
}
@keyframes nf-g-crumb-2 {
  0%, 36% { opacity: 0; transform: translate(0, 0) rotate(0); }
  38% { opacity: 1; }
  52% { opacity: 1; }
  56%, 100% { opacity: 0; transform: translate(4px, 42px) rotate(-140deg); }
}
@keyframes nf-g-crumb-3 {
  0%, 53% { opacity: 0; transform: translate(0, 0) rotate(0); }
  55% { opacity: 1; }
  69% { opacity: 1; }
  73%, 100% { opacity: 0; transform: translate(-3px, 46px) rotate(170deg); }
}

@media (max-width: 900px) {
  .notfound__art svg { max-width: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  .notfound__art *, .notfound__art { animation: none !important; }
}
