/* ==========================================================
   Ann-Robin Egli — Portfolio
   ========================================================== */

:root {
  --bg: #ececec;
  --ink: #0b0b0b;
  --muted: #6d6d6d;
  --line: rgba(0, 0, 0, 0.14);
  --pad: clamp(18px, 3.7vw, 56px);
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-title: "League Gothic", "Oswald", "Arial Narrow", sans-serif;
  --font-giant: "Anton", "Impact", "Arial Black", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.32;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* no lasting fill: a leftover filter would make fixed elements (archive preview, cursor label) follow the page instead of the cursor */
  animation: page-in 0.5s var(--ease-out) backwards;
}

body.is-leaving {
  transition: opacity 0.35s ease, filter 0.35s ease;
  opacity: 0;
  filter: blur(6px);
}

@keyframes page-in {
  from { opacity: 0; filter: blur(8px); }
  to   { opacity: 1; filter: blur(0); }
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }

::selection { background: var(--ink); color: var(--bg); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(16px, 1.6vw, 26px) var(--pad);
  padding-top: calc(clamp(16px, 1.6vw, 26px) + env(safe-area-inset-top, 0px));
  font-size: clamp(16px, 0.9rem + 0.35vw, 19px);
  font-weight: 600;
  letter-spacing: -0.04em;
  pointer-events: none;
  mix-blend-mode: difference;
  color: #fff;
}
.nav { transition: transform 0.35s var(--ease-out), opacity 0.35s; }
.nav--away { transform: translateY(-100%); opacity: 0; }
.nav--away a { pointer-events: none; }
.nav a { pointer-events: auto; position: relative; }
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Giant blurred word ---------- */

.giant {
  position: absolute;
  top: 0; left: 0; right: 0;
  margin: 0;
  z-index: 0;
  font-family: var(--font-giant);
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
  line-height: 0.86;
  letter-spacing: 0.005em;
  color: #000;
  filter: blur(clamp(4px, 0.55vw, 9px));
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}
.giant span { display: block; }

/* ==========================================================
   HOME — 3D card stream
   ========================================================== */

.home {
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  position: relative;
}
.home .giant { top: -0.12em; }

.stage {
  position: absolute;
  inset: 0;
  perspective: 1400px;
  perspective-origin: 50% 52%;
  transition: perspective-origin 0.7s var(--ease-out);
  z-index: 2;
  pointer-events: none;   /* clicks are matched to cards in main.js */
}
.stage__inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  pointer-events: none;
}

.card {
  --w: min(37.3vw, 76svh * 0.75, 490px);
  transition: left 0.7s var(--ease-out), right 0.7s var(--ease-out), margin 0.7s var(--ease-out), visibility 0s;
  position: absolute;
  top: calc(50% + 6svh);
  width: var(--w);
  aspect-ratio: 3 / 4;
  margin-top: calc(var(--w) * -0.62);
  background: transparent;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.45);
  will-change: transform, opacity;
  transform-origin: 50% 50%;
  cursor: pointer;
  pointer-events: none;   /* clicks are matched to cards in main.js, so every visible card works */
}
.card img {
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}
.card--left  { left: max(4.8vw, 50% - var(--w) * 1.5); }
.card--right { right: max(4.8vw, 50% - var(--w) * 1.5); }

.card.is-hover, .card:focus-visible { filter: brightness(1.04); }

.home__foot {
  position: absolute;
  left: var(--pad); right: var(--pad); bottom: 22px;
  z-index: 5;
  display: flex; justify-content: center; align-items: end; gap: 20px;
  text-align: center;
  font-size: inherit;            /* same size as the other small text (nav, project info) */
  color: #000;
  pointer-events: none;
  animation: foot-in 0.9s ease 3s both;   /* shows up after a few seconds */
}
.home__foot { flex-direction: column; align-items: center; gap: 2px; line-height: 1.3; }
.home__foot > span { transition: opacity 0.2s ease; }
.home__foot.is-gone > span { opacity: 0; }
@keyframes foot-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Cursor label (home + library) */
.cursor-label {
  position: fixed;
  top: 0; left: 0;
  z-index: 80;
  padding: 7px 12px 6px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  letter-spacing: 0;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
  transition: opacity 0.2s ease, transform 0.3s var(--ease-out);
}
.cursor-label.is-on { opacity: 1; transform: translate(14px, 14px) scale(1); }
.cursor-label b { font-weight: 600; opacity: 0.55; margin-right: 8px; }

/* ==========================================================
   PROJECT PAGE
   ========================================================== */

.project-hero {
  position: relative;
  padding-top: 115px;
  padding-bottom: 120px;
}
.project-hero .giant { top: -0.08em; }

.gallery {
  position: relative;
  z-index: 2;
}
.gallery__track {
  position: relative;   /* so picture positions are measured from the row itself */
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
  padding: 0 22px;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track.is-dragging { cursor: grabbing; }
.gallery__track.is-dragging img { pointer-events: none; }

.gallery__item {
  flex: 0 0 auto;
  margin: 0;
  height: clamp(260px, 38vw + 22svh, 764px);
  max-height: 64svh;
  background: transparent;   /* the photos are cut out: let the page show through */
}
.gallery__item--video, .gallery__item--crop { position: relative; overflow: hidden; }
.gallery__item video { display: block; position: absolute; max-width: none; }
.gallery__item--crop img { position: absolute; max-width: none; }
.gallery__item img {
  height: 100%;
  width: auto;
  user-select: none;
  -webkit-user-drag: none;
  cursor: grab;
}

.gallery__ui {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad) 0;
  font-size: 13px; letter-spacing: 0;
  position: relative; z-index: 2;
}
.gallery__count { font-variant-numeric: tabular-nums; }
.gallery__progress {
  flex: 1; height: 1.5px; margin: 0 24px;
  background: var(--line);
  position: relative; overflow: hidden;
}
.gallery__progress i {
  position: absolute; inset: 0;
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(0);
}
.gallery__btns { display: flex; gap: 8px; }
.btn-round {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit; font-size: 17px;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.25s, color 0.25s;
}
.btn-round:hover { background: var(--ink); color: var(--bg); }

/* Text page */
.text-page {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad) 140px;
  display: grid;
  grid-template-columns: 17.6% 6% 1fr;
  max-width: 1512px;
}
.text-page__title {
  grid-column: 1 / -1;
  margin: 0 0 clamp(50px, 6vw, 90px) 13.4%;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(64px, 9.4vw, 150px);
  line-height: 0.92;
  letter-spacing: 0.02em;
}
.meta-l { grid-column: 1; text-align: right; }
.meta-r { grid-column: 3; max-width: 13em; }
.meta-l p, .meta-r p { margin: 0; }

.text-page__body {
  grid-column: 3;
  max-width: 34em;
  margin-left: -6.5%;
}
.text-page__body h2 {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(34px, 2.9vw, 46px);
  letter-spacing: 0.02em;
  line-height: 1;
  margin: clamp(70px, 7vw, 110px) 0 clamp(36px, 4vw, 60px);
}

/* Next project */
.next {
  display: block;
  position: relative;
  overflow: hidden;
  border-top: 1.5px solid var(--ink);
  padding: 28px var(--pad) 0;
  min-height: 46svh;
}
.next__label {
  display: flex; justify-content: space-between;
  font-size: 13px; letter-spacing: 0;
  position: relative; z-index: 2;
}
.next__title {
  display: block;
  font-family: var(--font-giant);
  text-transform: uppercase;
  font-size: clamp(70px, 13vw, 220px);
  line-height: 0.9;
  margin-top: 6vh;
  filter: blur(8px);
  transition: filter 0.6s var(--ease-out), letter-spacing 0.6s var(--ease-out);
  white-space: nowrap;
}
.next:hover .next__title { filter: blur(0); letter-spacing: 0.02em; }
.next__thumb {
  position: absolute;
  right: var(--pad); bottom: 30px;
  width: clamp(120px, 14vw, 210px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transform: translateY(30px) rotate(3deg);
  opacity: 0;
  transition: transform 0.6s var(--ease-out), opacity 0.4s;
  box-shadow: 0 16px 30px -16px rgba(0, 0, 0, 0.5);
}
.next:hover .next__thumb { transform: translateY(0) rotate(3deg); opacity: 1; }

/* Footer */
.foot {
  display: flex; flex-wrap: wrap; gap: 14px 40px;
  justify-content: space-between;
  padding: 26px var(--pad) 30px;
  border-top: 1.5px solid var(--ink);
  font-size: 13px; letter-spacing: 0;
}
.foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(236, 236, 236, 0.96);
  backdrop-filter: blur(10px);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 88vw; max-height: 84svh;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.5);
}
.lightbox .btn-round { position: absolute; }
.lightbox__close { top: 22px; right: var(--pad); }
.lightbox__prev  { left: var(--pad); top: 50%; }
.lightbox__next  { right: var(--pad); top: 50%; }
.lightbox__count { position: absolute; bottom: 24px; font-size: 13px; letter-spacing: 0; }

/* ==========================================================
   LIBRARY
   ========================================================== */

.library {
  position: relative;
  padding: 0 var(--pad) 100px;
}
.library .giant { top: -0.1em; }
.library__head {
  position: relative; z-index: 2;
  padding-top: calc(var(--giant-h, 30vw) + 24px);
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 26px;
  font-size: 13px; letter-spacing: 0;
}
.list { position: relative; z-index: 2; list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.list a {
  display: grid;
  grid-template-columns: 60px 1fr 80px;
  gap: 20px;
  align-items: baseline;
  padding: 16px 0 12px;
  border-bottom: 1px solid var(--line);
  transition: padding 0.4s var(--ease-out), color 0.3s;
}
.list__no, .list__year { font-size: 13px; letter-spacing: 0; }
.list__year { text-align: right; }
.list__title {
  font-family: var(--font-title);
  font-size: clamp(34px, 3.6vw, 58px);
  line-height: 1;
  letter-spacing: 0.02em;
  font-weight: 400;
}
.list__thumb { display: none; }
.list:hover a { color: #a7a7a7; }
.list a:hover { color: var(--ink); padding-left: 14px; }

.preview {
  position: fixed; top: 0; left: 0; z-index: 40;
  width: clamp(180px, 20vw, 300px);
  aspect-ratio: 3 / 4;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.25s, transform 0.4s var(--ease-out);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}
.preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.preview img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================
   ABOUT
   ========================================================== */

.about-hero {
  position: relative;
  width: 100%;
  /* never taller than the screen, so the whole photo is visible at the top of the page */
  height: min(64.94vw, max(100svh, 52vw));
  overflow: hidden;
  background: #ebebeb;
}
.about-hero > img {
  /* cut-out photo in front of the blurred title, on the right */
  position: absolute; z-index: 1;
  right: -1.15%; top: 17.9%;
  height: 88.6%; width: auto;
  max-width: none;
}
.about-hero__text, .about-hero__contact { z-index: 2; }
.about-hero__text {
  position: absolute;
  left: 7.4%; top: calc(var(--giant-h, 23vw) + 4.5vw);
  width: 39.5%;
  font-size: clamp(12px, 1.22vw, 19px);
  line-height: 1.24;
}
.about-hero__contact {
  position: absolute;
  left: 7.4%; top: calc(var(--giant-h, 23vw) + 22vw);
  display: grid;
  grid-template-columns: 13.4vw 1fr;
  column-gap: 6.1vw;
  font-size: clamp(12px, 1.22vw, 19px);
  line-height: 1.24;
}
.about-hero__contact dt { text-align: right; }
.about-hero__contact dd { margin: 0; }
.about-hero__contact a:hover { text-decoration: underline; text-underline-offset: 3px; }


/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 820px) {

  .home__foot { flex-direction: column; align-items: center; gap: 4px; }

  .project-hero { padding-top: 84px; padding-bottom: 70px; }
  .gallery__track { gap: 8px; padding: 0 12px; }

  .text-page { grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .text-page__title { margin-left: 0; }
  .meta-l { grid-column: 1; text-align: left; }
  .meta-r { grid-column: 2; }
  .text-page__body { grid-column: 1 / -1; margin-left: 0; }

  .list a { grid-template-columns: 64px 1fr; gap: 6px 16px; }
  .list__thumb { display: block; grid-row: span 2; width: 64px; aspect-ratio: 3/4; object-fit: cover; }
  .list__no { display: none; }
  .list__year { text-align: left; }
  .preview { display: none; }

  .about-hero { aspect-ratio: auto; height: auto; }
  .about-hero > img { position: relative; left: auto; right: auto; top: auto; width: 100%; height: auto; }
  .about-hero__text, .about-hero__contact {
    position: static; width: auto;
    padding: 30px var(--pad) 0;
    font-size: 16px;
  }
  .about-hero__contact { grid-template-columns: auto 1fr; column-gap: 24px; padding-bottom: 20px; }
  .about-hero__contact dt { text-align: left; }
}

/* Calm version for people who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  .next__title { filter: none; }
}

/* Project pages: first line at the top, last line peeks out below the picture row */
/* Project pages: the word is exactly one screen tall (sized and placed in main.js) */
.project-hero { min-height: 100svh; }
.project-hero .giant {
  top: 0;
  height: 100svh;
  overflow: visible;
}

/* counter + arrows stay readable on top of the black word: dark on a light chip */
.gallery__count { background: var(--bg); padding: 4px 10px; margin-left: -10px; border-radius: 999px; }
.gallery__ui .btn-round { background: var(--bg); }
.gallery__ui .btn-round:hover { background: var(--ink); color: var(--bg); }
/* the progress line inverts against whatever is behind it (white over black, black over grey) */
/* black on the light background, white over the black title; the filled part is a little thicker */
/* (the row must not be its own layer, otherwise the line has nothing to invert against) */
.gallery__ui { z-index: auto; }
.gallery__progress { height: 1px; background: #fff; mix-blend-mode: difference; overflow: visible; }
.gallery__progress i { background: #fff; inset: -1px 0; }

/* More air between the big blurred title and the text section */
.text-page { padding-top: clamp(90px, 11vw, 200px); }

/* Smaller "Next project" block */
.next { min-height: 0; padding: 20px var(--pad) 26px; }
.next__title {
  font-size: clamp(40px, 6.5vw, 104px);
  margin-top: 18px;
}
.next__thumb {
  width: clamp(64px, 6.5vw, 100px);
  bottom: 18px;
}

/* ---------- Phone: one centered card stack ---------- */
@media (max-width: 640px) {
  .card { --w: min(66vw, 44svh * 0.75); top: 50%; }
  .stage { perspective-origin: 50% 18%; }   /* cards behind peek out above */
  .card--left { left: 50%; margin-left: calc(var(--w) / -2); }
  .card--right {
    right: -110vw;              /* slides away smoothly when the window gets narrow */
    visibility: hidden;
    pointer-events: none;
    transition: right 0.7s var(--ease-out), visibility 0s 0.7s;
  }
  .home__foot { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .text-page { padding-top: clamp(60px, 14vw, 90px); }
  .gallery__ui .btn-round { width: 36px; height: 36px; }
  .foot { gap: 10px 22px; justify-content: flex-start; }
  .list a { align-items: center; row-gap: 2px; }
  .list__title { align-self: end; }
  .list__year { align-self: start; }
}

/* About page on phones: title, text, then the photo */
@media (max-width: 820px) {
  .about-hero { display: flex; flex-direction: column; padding-top: calc(var(--giant-h, 25vw) + 10px); }
  .about-hero__text { order: 1; }
  .about-hero__contact { order: 2; padding-bottom: 36px; }
  /* the photo goes underneath the text, cropped to the person */
  .about-hero > img { order: 3; margin-top: 10px; }
}

/* ==========================================================
   Design process: arrow under the text opens a column of pictures
   ========================================================== */
.text-page { padding-bottom: clamp(90px, 9vw, 140px); }
.process { position: relative; z-index: 2; padding: 0 var(--pad) 40px; }
.process__toggle {
  display: block; margin: 0 auto;
  padding: 12px; background: none; border: 0; color: var(--ink, #000); cursor: pointer;
  transition: transform 0.5s var(--ease-out);
}
.process__toggle:hover { transform: translateY(4px); }
.process__toggle svg { display: block; transition: transform 0.5s var(--ease-out); }
.process.is-open .process__toggle:hover { transform: translateY(-4px); }
.process.is-open .process__toggle svg { transform: rotate(180deg); }
.process__body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.8s var(--ease-out);
}
.process.is-open .process__body { grid-template-rows: 1fr; }
.process__inner { overflow: hidden; min-height: 0; }
/* two columns; pictures of different heights fill each column without gaps */
.process__grid {
  columns: 2; column-gap: 14px;
  width: min(1100px, 100%); margin: 0 auto; padding: 30px 0 20px;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s, transform 0.8s var(--ease-out);
}
.process.is-open .process__grid { opacity: 1; transform: none; transition-delay: 0.15s; }
.process__item { margin: 0 0 14px; break-inside: avoid; }
.process__item img, .process__item video { display: block; width: 100%; height: auto; object-fit: cover; }
.process__item--full { grid-column: auto; }
.process__item--single { grid-column: 1 / -1; width: 70%; justify-self: center; }
@media (max-width: 640px) { .process__grid { column-gap: 8px; } .process__item { margin-bottom: 8px; } .process__item--single { width: 80%; } }

/* Round buttons: drawn arrows, same line weight as the rules, centred in the circle */
.arrow {
  display: block; width: 18px; height: 12px;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: butt; stroke-linejoin: miter;
}

/* Next project: the name sits centred between the two lines */
.next { padding: 0 var(--pad); display: grid; align-items: center; justify-items: start; min-height: clamp(150px, 15vw, 240px); }
.next__label { position: absolute; top: 20px; left: var(--pad); right: var(--pad); }
.next__title { margin: 0; padding: 44px 0; }

/* Next project picture: centred between the lines like the title, a little bigger */
.next__thumb {
  top: 50%; bottom: auto;
  width: clamp(84px, 8.5vw, 130px);
  transform: translateY(calc(-50% + 30px)) rotate(3deg);
}
.next:hover .next__thumb { transform: translateY(-50%) rotate(3deg); }

/* Next project picture: a bit taller than the block, so it covers the arrow and overlaps both lines */
.next { overflow: visible; }
.next__thumb {
  z-index: 3;
  width: auto;
  height: calc(100% + 28px);
}

/* Next project picture: never catches the mouse, and the footer links sit well below it */
.next__thumb { pointer-events: none; }
main:has(> .next) + .foot { padding-top: 64px; }

/* Next project: the small arrow matches the gallery button arrows */
.next__label { align-items: center; }

/* Phones: the picture row sits in the middle of the first screen
   (the counter and buttons hang below it, so the pictures themselves are centred) */
@media (max-width: 820px) {
  .project-hero {
    display: flex; flex-direction: column; justify-content: center;
    /* full screen height incl. the area behind Safari's bottom bar, so the project text starts below the bar;
       the bottom padding keeps the pictures centred in the part of the screen you actually see */
    min-height: 100lvh;
    padding: 58px 0 calc(100lvh - 100svh);
  }
}

/* Scroll hint: the same arrow as the process toggle, bottom centre of the first screen.
   Visible from the start; it disappears (as fast as the home hint) once you scroll. */
.scroll-hint {
  position: fixed; z-index: 40;
  left: 50%; top: calc(100svh - 64px);
  transform: translateX(-50%);
  padding: 12px; background: none; border: 0; cursor: pointer;
  color: #fff; mix-blend-mode: difference;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.scroll-hint.is-on { opacity: 1; pointer-events: auto; }
.scroll-hint svg { display: block; animation: hint-bob 2.2s ease-in-out infinite; }
@keyframes hint-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .scroll-hint svg { animation: none; } }

/* Design process button: a visible label and a gently moving arrow, so it reads as "there is more" */
.process__toggle { display: flex; flex-direction: column; align-items: center; gap: 10px; }
/* same font as the project info (year, format, tools) */
.process__toggle { font: inherit; letter-spacing: inherit; }
.process__label { font-size: inherit; font-weight: inherit; }
.process:not(.is-open) .process__toggle svg { animation: hint-bob 2.2s ease-in-out infinite; }
.process.is-open .process__toggle svg { animation: none; }

/* Home: "Gallery" is the big background word under the name, so the small menu link is hidden there */

/* 404 page */
.notfound { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 0 var(--pad); }
.notfound .giant { top: 50%; transform: translateY(-50%); font-size: 40vw; line-height: 1; }
.notfound__text { position: relative; z-index: 1; margin: 0; font: inherit; text-align: center; background: var(--bg); padding: 8px 14px; }
.notfound__text a { text-decoration: underline; text-underline-offset: 3px; }

/* Center of Gravity: the second column starts with the "Projekt 1" sketch (picture 5) */
#process-center-of-gravity .process__item:nth-child(5) { break-before: column; -webkit-column-break-before: always; }
