/* ==========================================================================
   stijn.dev
   1. Fonts & tokens   2. Base   3. Layout   4. Components   5. Hero & scenery
   6. Sections         7. Seasons   8. Motion   9. Responsive
   ========================================================================== */

/* 1. Fonts & tokens ------------------------------------------------------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  /* palette */
  --bg: #121116;
  --surface: #1d1c23;
  --surface-2: #24202f;
  --text: #f5f4f7;
  --text-soft: #e4e2ea;
  --muted: #bab7c3;
  --muted-2: #a5a2af;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  --purple-900: #1c1230;
  --purple-800: #2a1450;
  --purple-700: #5a2a9e;
  --purple-600: #6c35d6;
  --purple-500: #9059ff;
  --purple-400: #9b59f0;
  --purple-200: #c4a3f8;
  --pink: #ff5fa2;
  --pink-deep: #d23c86;
  --yellow: #ffd166;
  --blue: #4cc9f0;
  --blue-deep: #3a86ff;
  --green: #7bd88f;

  /* type */
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-hand: "Caveat", cursive;

  /* layout */
  --container: 1200px;
  --gutter: 32px;
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--purple-200);
  text-decoration: none;
}
a:hover {
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 6px;
}
h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}
:where(ul[role="list"], ol[role="list"]) {
  list-style: none;
  margin: 0;
  padding: 0;
}
button {
  font: inherit;
  cursor: pointer;
}

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
}
.hand {
  font-family: var(--font-hand);
  font-weight: 700;
}
.icon {
  flex: none;
  display: inline-block;
}
.icon--green {
  color: var(--green);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--yellow);
  color: #2a1d00;
  font-weight: 600;
}
.skip-link:focus {
  top: 16px;
}

.grad-text {
  background: linear-gradient(
    90deg,
    var(--purple-400),
    var(--pink) 55%,
    var(--yellow)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 3. Layout --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: 96px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.section > *:not(.ghost):not(.shape) {
  position: relative;
  z-index: 1;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.section__head > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.section__title {
  font: 800 clamp(36px, 5vw, 60px) / 1 var(--font-display);
  letter-spacing: -0.04em;
}
.section__sub {
  max-width: 420px;
  color: var(--muted-2);
}
.section__sub--light {
  color: #d6d3df;
}
.eyebrow {
  font-size: 14px;
  color: var(--purple-200);
}

.ghost {
  position: absolute;
  left: 0;
  top: 40px;
  z-index: 0;
  font: 800 clamp(76px, 16vw, 220px) / 1 var(--font-display);
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(155, 89, 240, 0.28);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.ghost--light {
  -webkit-text-stroke-color: rgba(255, 255, 255, 0.16);
  top: -40px;
}

.shape {
  position: absolute;
  pointer-events: none;
}
.dotpatch {
  background-image: radial-gradient(
    rgba(196, 163, 248, 0.4) 1.5px,
    transparent 1.5px
  );
  background-size: 18px 18px;
}
.blob {
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  animation: morph 12s ease-in-out infinite;
}

/* 4. Components ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-weight: 600;
}
.btn:hover {
  color: #fff;
}
.btn--primary {
  border: 0;
  background: linear-gradient(135deg, var(--purple-600), var(--pink-deep));
  box-shadow: 0 10px 30px rgba(210, 60, 134, 0.35);
}
.btn--outline {
  border: 1.5px solid rgba(255, 95, 162, 0.6);
}
.btn--small {
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--bg);
}

.press {
  transition: transform 0.15s;
}
.press:hover {
  transform: translateY(-2px);
}
.press:active {
  transform: translateY(1px);
}

.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
}
.chip--dark {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.chip--yellow {
  background: var(--yellow);
  color: #2a1d00;
  font-weight: 600;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tags li {
  padding: 3px 10px;
  border-radius: 8px;
  background: var(--surface);
  font-size: 12px;
  color: var(--text-soft);
}
.tags--mono li {
  background: var(--bg);
  font-family: var(--font-mono);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge--open {
  background: var(--blue);
  color: #0b2230;
}
.badge--closed {
  border-color: rgba(255, 255, 255, 0.22);
  color: #d6d3df;
}
.badge--nda {
  background: var(--yellow);
  color: #2a1d00;
}

/* Navigation */
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding-block: 22px;
  position: relative;
  z-index: 3;
}
.nav__logo {
  color: var(--text);
  font: 800 24px/1 var(--font-display);
  letter-spacing: -0.03em;
}
.nav__logo span,
.footer__logo span {
  color: var(--pink);
}
.nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 500;
}
.nav__links > a {
  padding: 10px 12px;
  border-radius: 10px;
}
.nav__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
}
.nav__back .nav__logo {
  font-size: 22px;
}
.nav__back-label {
  font-size: 14px;
  color: var(--muted-2);
  font-weight: 500;
}

.lang-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-left: 8px;
  border-radius: 12px;
  background: rgba(18, 17, 22, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.lang-switch a {
  padding: 8px 12px;
  border-radius: 9px;
  color: #fff;
  font: 500 13px/1 var(--font-mono);
}
.lang-switch a[aria-current="true"] {
  background: var(--purple-600);
}

/* Project card */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.project-grid--wide {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.project {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  border-radius: 22px;
  background: linear-gradient(160deg, var(--surface-2) 0%, #1a1920 70%);
  border: 1.5px solid var(--line);
}
.project[hidden] {
  display: none;
}
.project__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.project__mark {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font: 800 22px/1 var(--font-display);
  color: #fff;
}
.project__name {
  font: 800 24px/1.15 var(--font-display);
  letter-spacing: -0.02em;
}
.project__text {
  color: var(--muted);
  font-size: 15px;
}
.project__nda {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--yellow);
}
.project__tags {
  margin-top: auto;
}
.project__link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid rgba(76, 201, 240, 0.5);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.redacted {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.redacted span {
  display: block;
  height: 10px;
  border-radius: 5px;
  background: #2e2b38;
  width: 92%;
}
.redacted span + span {
  width: 64%;
}

.tilt {
  transition:
    transform 0.25s cubic-bezier(0.2, 1.2, 0.4, 1),
    border-color 0.2s;
}
.tilt:hover {
  transform: translateY(-8px) rotate(-1.2deg);
  border-color: rgba(155, 89, 240, 0.75);
}
.tilt:nth-child(even):hover {
  transform: translateY(-8px) rotate(1.2deg);
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 28px;
  border-left: 2px dashed rgba(255, 255, 255, 0.3);
}
.timeline__item {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1.5px solid var(--line);
}
.timeline__item.is-current {
  border-color: rgba(255, 209, 102, 0.7);
}
.timeline__dot {
  position: absolute;
  left: -39px;
  top: 36px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--purple-500);
  border: 3px solid var(--purple-800);
}
.is-current .timeline__dot {
  background: var(--yellow);
}
.timeline__logo {
  flex: none;
  width: 52px;
  height: 52px;
  padding: 6px;
  border-radius: 13px;
  background: #fff;
  object-fit: contain;
}
.timeline__body {
  flex: 1;
  min-width: 0;
}
.timeline__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 13px;
  color: var(--purple-200);
}
.timeline__title {
  margin: 4px 0 2px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}
.timeline__org {
  font-size: 14px;
  color: var(--muted-2);
}
.timeline__periods {
  display: grid;
  gap: 2px;
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted-2);
}
.timeline__periods .mono {
  display: inline-block;
  min-width: 11.5em;
  font-size: 13px;
  color: var(--purple-200);
}
.timeline__desc {
  margin-top: 8px;
  max-width: 52ch;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted-2);
}
.timeline__tags {
  margin-top: 10px;
}
.pill-now {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--yellow);
  color: #2a1d00;
  font: 600 12px/1.6 var(--font-body);
  animation: bob 3s ease-in-out infinite;
}

/* 5. Hero & scenery -------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 84% 16%,
      rgba(255, 95, 162, 0.32),
      transparent 40%
    ),
    radial-gradient(circle at 6% 88%, rgba(58, 134, 255, 0.3), transparent 46%),
    radial-gradient(
      circle at 55% 60%,
      rgba(144, 89, 255, 0.22),
      transparent 50%
    ),
    linear-gradient(165deg, var(--purple-800) 0%, #1a1326 45%, var(--bg) 85%);
}
.hero
  > :not(.shape):not(.fx):not(.hero__glow):not(.ground):not(.hero__content) {
  position: relative;
  z-index: 1;
}
.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: background 0.6s;
}
.hero__blob {
  right: -120px;
  top: -140px;
  width: 520px;
  height: 520px;
  background: linear-gradient(135deg, var(--pink), var(--purple-500));
  opacity: 0.35;
  filter: blur(40px);
}
.hero__ring {
  left: -90px;
  top: 300px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  border: 2px solid rgba(76, 201, 240, 0.4);
}
.hero__ring--low {
  top: auto;
  bottom: -60px;
  width: 220px;
  height: 220px;
}
.hero__dots {
  left: 38%;
  bottom: 120px;
  width: 180px;
  height: 120px;
}
.hero__square {
  left: 46%;
  top: 120px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--yellow), var(--pink));
}
.hero__dot {
  left: 6%;
  top: 150px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--blue);
}

.hero__content {
  /* above the forest, which is pulled up behind the buttons and the polaroid */
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-block: 48px 0;
}
.hero__text {
  flex: 999 1 540px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.hero__pill {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: var(--purple-200);
  transform: rotate(-2deg);
}
.hero__title {
  font: 800 clamp(40px, 7vw, 92px) / 1 var(--font-display);
  letter-spacing: -0.045em;
}
.words {
  display: grid;
  margin-top: 0.06em;
}
.word {
  grid-area: 1 / 1;
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}
.word:not(:first-child) {
  opacity: 0;
  transform: translateY(14px);
}
.caret {
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  font-weight: 600;
  animation: blink 1s steps(1) infinite;
}
.hero__intro {
  max-width: 560px;
  font-size: 19px;
  color: var(--muted);
}
.hero__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero__socials .btn {
  /* readable on top of the trees */
  background: rgba(18, 17, 22, 0.6);
  backdrop-filter: blur(6px);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Polaroid */
.polaroid-stage {
  flex: 1 1 340px;
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 420px;
  margin-inline: auto;
}
.polaroid {
  position: absolute;
  left: 50%;
  top: 58px;
  width: 280px;
  margin-left: -140px;
  padding: 14px 14px 18px;
  border-radius: 6px;
  background: var(--text);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
  transform: rotate(-4deg);
  transition: transform 0.4s cubic-bezier(0.2, 1.2, 0.4, 1);
}
.polaroid:hover {
  transform: rotate(-1deg) translateY(-6px);
}
.polaroid__tape {
  position: absolute;
  left: 50%;
  top: -14px;
  width: 110px;
  height: 30px;
  margin-left: -55px;
  background: rgba(255, 209, 102, 0.8);
  transform: rotate(3deg);
}
.polaroid__photo {
  aspect-ratio: 1;
  border-radius: 2px;
  overflow: hidden;
  background: linear-gradient(160deg, #efe9fb, #f9eef4);
}
.polaroid__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.polaroid__label {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}
.chip--inline {
  position: static;
  transform: rotate(-2deg);
}
.polaroid-stage__location {
  left: 0;
  top: 6px;
}

/* Forest, ground, particles */
.forest {
  width: 100%;
  /* same aspect ratio as the 1440×220 viewBox, so the tree tops are never cropped; small screens crop the sides instead */
  --forest-height: clamp(140px, calc(100vw * 220 / 1440), 440px);
  height: var(--forest-height);
  /* pull the forest up so the tree tops reach the buttons (they're drawn behind the content) */
  margin-top: calc(var(--forest-height) * -0.55);
  position: relative;
  z-index: 1;
}
.ground {
  position: absolute;
  /* Tilted like the tools bar and lifted by the same amount, so the snow, leaves, tulips or grass rest on its edge. */
  left: -2%;
  bottom: calc(1.2vw + 6px);
  width: 104%;
  max-width: none; /* overrides the global svg max-width so the tilted layer reaches both edges */
  transform: rotate(-1.2deg);
  transform-origin: 50% 100%;
  /* same aspect ratio as the 1440×80 viewBox */
  height: clamp(52px, calc(100vw * 80 / 1440), 160px);
  z-index: 2;
  pointer-events: none;
  display: none;
}
.fx {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

/* Marquee + tools note */
.marquee-wrap {
  /* The bar is rotated -1.2deg, so its ends move about 1.05vw up (right) and down (left).
     The padding gives the raised right end room inside the clipping box; the extra negative top margin
     pulls the bar into the header so the lowered left end still meets it. */
  --tilt-room: calc(1.2vw + 14px);
  overflow: hidden;
  padding-block: var(--tilt-room);
  margin-top: calc(-1 * var(--tilt-room) - 1.2vw - 6px);
  margin-bottom: calc(-1 * var(--tilt-room));
  position: relative;
  z-index: 3;
}
.marquee {
  margin: 0 -40px;
  padding: 18px 0;
  overflow: hidden;
  transform: rotate(-1.2deg);
  background: linear-gradient(
    90deg,
    var(--purple-700),
    #c2337a 35%,
    var(--purple-600) 65%,
    #2f6fd6
  );
  position: relative;
  z-index: 3;
}
.marquee__track {
  display: flex;
  width: max-content;
  /* Set per page: estimated from the number of tools in the template, then measured exactly by main.js,
     so the speed stays the same however many tools there are. */
  animation: marquee var(--marquee-duration, 38s) linear infinite;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
.marquee__track li {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font: 600 26px/1.2 var(--font-display);
  white-space: nowrap;
  color: #fff;
}
.marquee__track li::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #fff;
  transform: rotate(45deg);
}
.tools-note {
  display: flex;
  justify-content: flex-end;
  padding-top: 10px;
}
.tools-note__inner {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--yellow);
  transform: rotate(-3deg);
}
.tools-note__inner .hand {
  font-size: 28px;
  line-height: 1.1;
  padding-top: 22px;
}

/* 6. Sections -------------------------------------------------------------- */
.projects-preview__dots {
  right: 0;
  top: 70px;
  width: 160px;
  height: 100px;
}
.projects-preview__all {
  align-self: center;
}

.journey {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--purple-900) 0%,
    var(--purple-800) 38%,
    var(--purple-700) 72%,
    #8a2d7a 100%
  );
}
.wave {
  width: 100%;
  height: 90px;
  fill: var(--bg);
  position: relative;
  z-index: 1;
}
.journey__blob {
  left: -140px;
  bottom: 60px;
  width: 380px;
  height: 380px;
  background: linear-gradient(135deg, var(--blue-deep), var(--purple-500));
  opacity: 0.4;
  filter: blur(30px);
}
.journey__ring {
  right: 6%;
  top: 160px;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  border: 2px solid rgba(255, 209, 102, 0.45);
}
.journey__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-block: 40px 72px;
}
.journey__inner > *:not(.ghost) {
  position: relative;
  z-index: 1;
}
.journey__columns {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px 48px;
}
.journey__col {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.journey__col--stagger {
  margin-top: 96px;
}
.journey__heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 800 28px/1.2 var(--font-display);
  letter-spacing: -0.02em;
}
.journey__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.journey__icon--work {
  background: linear-gradient(135deg, var(--pink), var(--yellow));
  color: #2a0a1c;
}
.journey__icon--school {
  background: linear-gradient(135deg, var(--blue), var(--purple-500));
  color: #0b2230;
}

.contact {
  padding-block: 72px 56px;
}
.contact__card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.contact__text {
  flex: 999 1 380px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  color: var(--muted);
}
.contact__text strong {
  color: var(--text);
}
.contact__icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-deep), var(--purple-500));
}

/* Projects page */
.hero--compact {
  padding-bottom: 8px;
}
.page-head {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-block: 72px 64px;
}
.page-head > *:not(.ghost) {
  position: relative;
  z-index: 1;
}
.page-head .ghost {
  top: 10px;
}
.page-head__title {
  font: 800 clamp(40px, 6.4vw, 84px) / 1 var(--font-display);
  letter-spacing: -0.045em;
}
.page-head__sub {
  max-width: 620px;
  font-size: 18px;
  color: var(--muted);
}
.all-projects {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-block: 48px 112px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.filter[aria-pressed="true"] {
  background: var(--purple-600);
  border-color: var(--purple-400);
}
.filter__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--text);
}
.filter--open .filter__dot {
  background: var(--blue);
}
.filter--closed .filter__dot {
  background: var(--muted-2);
}
.filter--nda .filter__dot {
  background: var(--yellow);
}
.filter__count {
  font-size: 12px;
  opacity: 0.75;
}
.all-projects__empty {
  color: var(--muted-2);
}

/* Footer */
.footer {
  border-top: 2px solid transparent;
  border-image: linear-gradient(
      90deg,
      var(--purple-500),
      var(--pink),
      var(--yellow),
      var(--blue)
    )
    1;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 32px;
  font-size: 13px;
  color: var(--muted-2);
}
.footer__logo-svg {
  height: 40px;
  width: auto;
}
.footer__legal {
  max-width: 520px;
}

/* 7. Seasons ---------------------------------------------------------------- */
html[data-season="winter"] .ground[data-ground="winter"],
html[data-season="spring"] .ground[data-ground="spring"],
html[data-season="summer"] .ground[data-ground="summer"],
html[data-season="autumn"] .ground[data-ground="autumn"] {
  display: block;
}

html[data-season="winter"] .hero__glow {
  background: radial-gradient(
    circle at 72% 8%,
    rgba(173, 216, 255, 0.24),
    transparent 55%
  );
}
html[data-season="spring"] .hero__glow {
  background:
    radial-gradient(
      circle at 25% 95%,
      rgba(123, 216, 143, 0.2),
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 156, 198, 0.18),
      transparent 45%
    );
}
html[data-season="summer"] .hero__glow {
  background: radial-gradient(
    circle at 75% 12%,
    rgba(255, 209, 102, 0.22),
    transparent 50%
  );
}
html[data-season="autumn"] .hero__glow {
  background: radial-gradient(
    circle at 72% 12%,
    rgba(255, 122, 61, 0.2),
    transparent 50%
  );
}

/* particles (created by main.js) */
.fall {
  position: absolute;
  top: 0;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}
.fall--1 {
  animation-name: fall1;
}
.fall--2 {
  animation-name: fall2;
}
.fall--3 {
  animation-name: fall3;
}
.snow {
  border-radius: 999px;
  background: #fff;
}
.firefly {
  position: absolute;
  border-radius: 999px;
  background: #fff6a8;
  box-shadow:
    0 0 8px 3px rgba(255, 236, 120, 0.75),
    0 0 20px 6px rgba(255, 209, 102, 0.35);
  animation-timing-function: ease-in-out, ease-in-out;
  animation-iteration-count: infinite, infinite;
  animation-direction: alternate, alternate;
}
.firefly--1 {
  animation-name: wander1, glow;
}
.firefly--2 {
  animation-name: wander2, glow;
}
.firefly--3 {
  animation-name: wander3, glow;
}
.butterfly {
  position: absolute;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
.butterfly--1 {
  animation-name: flutter1;
}
.butterfly--2 {
  animation-name: flutter2;
}
.butterfly svg {
  overflow: visible;
}
.wing {
  transform-origin: 20px 15px;
  animation: flap 0.22s ease-in-out infinite alternate;
}

/* 8. Motion ----------------------------------------------------------------- */
.float-a {
  animation: floatA 6s ease-in-out infinite;
}
.float-b {
  animation: floatB 7s ease-in-out infinite;
}
.float-c {
  animation: floatC 5s ease-in-out infinite;
}
.sway {
  animation: sway 7s ease-in-out infinite;
  transform-origin: 10% 95%;
}

@keyframes floatA {
  0%,
  100% {
    transform: translateY(0) rotate(-8deg);
  }
  50% {
    transform: translateY(-12px) rotate(-5deg);
  }
}
@keyframes floatB {
  0%,
  100% {
    transform: translateY(0) rotate(6deg);
  }
  50% {
    transform: translateY(-14px) rotate(9deg);
  }
}
@keyframes floatC {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-9px) rotate(2deg);
  }
}
@keyframes sway {
  0%,
  100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(3deg);
  }
}
@keyframes morph {
  0%,
  100% {
    border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  }
  50% {
    border-radius: 63% 37% 38% 62% / 58% 63% 37% 42%;
  }
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
@keyframes fall1 {
  0% {
    top: -6%;
    transform: translateX(0) rotate(0deg);
  }
  50% {
    transform: translateX(40px) rotate(180deg);
  }
  100% {
    top: 104%;
    transform: translateX(-10px) rotate(360deg);
  }
}
@keyframes fall2 {
  0% {
    top: -6%;
    transform: translateX(0) rotate(0deg);
  }
  50% {
    transform: translateX(-50px) rotate(-160deg);
  }
  100% {
    top: 104%;
    transform: translateX(20px) rotate(-320deg);
  }
}
@keyframes fall3 {
  0% {
    top: -6%;
    transform: translateX(0) rotate(20deg);
  }
  33% {
    transform: translateX(30px) rotate(200deg);
  }
  66% {
    transform: translateX(-30px) rotate(380deg);
  }
  100% {
    top: 104%;
    transform: translateX(10px) rotate(560deg);
  }
}
@keyframes wander1 {
  to {
    transform: translate(60px, -40px);
  }
}
@keyframes wander2 {
  to {
    transform: translate(-50px, -60px);
  }
}
@keyframes wander3 {
  to {
    transform: translate(40px, 50px);
  }
}
@keyframes glow {
  from {
    opacity: 0.1;
  }
  to {
    opacity: 1;
  }
}
@keyframes flutter1 {
  0% {
    transform: translate(0, 0) rotate(-8deg);
  }
  25% {
    transform: translate(90px, -50px) rotate(8deg);
  }
  50% {
    transform: translate(170px, 10px) rotate(-6deg);
  }
  75% {
    transform: translate(110px, 60px) rotate(10deg);
  }
  100% {
    transform: translate(220px, -30px) rotate(0deg);
  }
}
@keyframes flutter2 {
  0% {
    transform: translate(0, 0) rotate(8deg);
  }
  25% {
    transform: translate(-80px, 40px) rotate(-8deg);
  }
  50% {
    transform: translate(-170px, -20px) rotate(6deg);
  }
  75% {
    transform: translate(-90px, -70px) rotate(-10deg);
  }
  100% {
    transform: translate(-210px, 20px) rotate(0deg);
  }
}
@keyframes flap {
  to {
    transform: scaleX(0.25);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .fx {
    display: none;
  }
}

/* 9. Responsive -------------------------------------------------------------- */
@media (max-width: 900px) {
  .journey__col--stagger {
    margin-top: 0;
  }
}
@media (max-width: 640px) {
  /* primary button on its own line, GitHub + LinkedIn together below it */
  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }
  :root {
    --gutter: 20px;
  }
  .lang-switch {
    margin-left: 0;
  }
  .timeline {
    padding-left: 22px;
  }
  .timeline__dot {
    left: -33px;
  }
  .timeline__item {
    flex-direction: column;
    padding: 18px;
    gap: 12px;
  }
  .timeline__dot {
    top: 31px; /* level with the logo, which now sits on top */
  }
  .timeline__logo {
    width: 44px;
    height: 44px;
    padding: 4px;
  }
  .hero__dots {
    display: none;
  }
}
@media (max-width: 354px) {
  .contact__text {
    flex-direction: column;
    align-items: start;
  }
}
