/* ==========================================================================
   portfolio.css — alleen de layout van de portfolio
   Kleuren, letters, maten en componenten komen uit ds-switzer
   (tokens.css en components.css). Hier staan uitsluitend tokens, geen
   ruwe kleuren of pixelwaarden. Ontbreekt iets: voeg het toe aan
   ds-switzer/tokens.css (sectie 9), niet hier.
   ========================================================================== */

body {
  background: var(--md-sys-color-surface-container-low);
}

.pf-page {
  max-width: calc(var(--ds-size-content-max-width) + 2 * var(--ds-space-8));
  margin-inline: auto;
  padding: var(--ds-space-0) var(--ds-space-4) var(--ds-space-16);
}

@media (min-width: 600px) {
  .pf-page {
    padding-inline: var(--ds-space-8);
  }
}

/* Kopbalk: naam links, Work / About rechts */
.pf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-4);
  padding-block: calc(var(--ds-space-6) + 0.25 * var(--ds-space-1));
}

/* Op home en About blijft de kop bij scrollen staan; zodra hij vastplakt,
   verschijnt de zwevende afgeronde balk (zie "Zwevende balken" hieronder). */
.pf-header--sticky {
  position: sticky;
  top: var(--ds-space-0);
  z-index: 5;
}

/* Zwevende balken: de sticky sitekop en de balk op projectpagina's.
   Zodra ze vastplakken (sticky.js zet --stuck) verschijnt een afgeronde
   frosted achtergrond, zoals de productbalk van Apple. De achtergrond zit
   in ::before en steekt links en rechts iets uit, zodat de tekst op de lijn
   van de kolom blijft. */
.pf-header--sticky,
.pf-topbar {
  --pf-bar-bleed: var(--ds-space-3);
  isolation: isolate;
}

@media (min-width: 600px) {
  .pf-header--sticky,
  .pf-topbar {
    --pf-bar-bleed: var(--ds-space-5);
  }
}

.pf-header--sticky::before,
.pf-topbar::before {
  content: "";
  position: absolute;
  inset: var(--ds-space-0) calc(-1 * var(--pf-bar-bleed));
  z-index: -1;
  border: var(--ds-border-width) solid var(--md-sys-color-outline-variant);
  /* --pf-bar-progress loopt van 0 naar 1 terwijl je verder scrolt (sticky.js) */
  border-radius: calc(var(--ds-bar-radius-end) - (var(--ds-bar-radius-end) - var(--ds-bar-radius-start)) * (1 - var(--pf-bar-progress, 1)));
  background: color-mix(in srgb, var(--md-sys-color-surface-container-low) calc(var(--ds-frosted-opacity) * 100%), transparent);
  -webkit-backdrop-filter: blur(var(--ds-blur)) saturate(var(--ds-blur-saturate));
  backdrop-filter: blur(var(--ds-blur)) saturate(var(--ds-blur-saturate));
  opacity: 0;
  transition: opacity var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}

/* De sitekop heeft meer ruimte boven en onder; de balk valt daarbinnen,
   8 px onder de bovenrand van het scherm. Beide balken zijn even hoog. */
.pf-header--sticky::before {
  inset-block: var(--ds-space-2);
}

.pf-header--stuck::before,
.pf-topbar--stuck::before {
  opacity: 1;
}

/* De brede achtergrond mag geen horizontale scrollbalk geven */
body {
  overflow-x: clip;
}

/* Een link naar #recent-projects komt niet onder de vaste kop terecht */
.pf-section-label {
  scroll-margin-top: calc(var(--ds-space-16) + var(--ds-space-4));
}

.pf-header__name,
.pf-header__link {
  color: var(--md-sys-color-on-surface);
  font-size: var(--md-sys-typescale-title-small-size);
  line-height: var(--md-sys-typescale-title-small-line-height);
  text-decoration: none;
}

/* Naam in kleine letters, net als work / about; in de HTML staat hij
   gewoon met hoofdletters (voor zoekmachines en schermlezers). */
.pf-header__name {
  font-weight: var(--md-ref-typeface-weight-regular);
  text-transform: lowercase;
}

.pf-header__nav {
  display: flex;
  gap: var(--ds-space-5);
}

.pf-header__link {
  color: var(--md-sys-color-on-surface-variant);
}

.pf-header__link:hover,
.pf-header__link[aria-current] {
  color: var(--md-sys-color-on-surface);
}

/* Openingszin */
/* Openingszin met veel lucht erboven en eronder, vooral op een groot scherm */
.pf-hero {
  padding-block: var(--ds-space-16) calc(var(--ds-space-16) * 1.5);
}

.pf-hero__title {
  max-width: var(--ds-size-headline-max-width);
  margin: var(--ds-space-0);
  font-family: var(--md-sys-typescale-headline-small-font);
  font-size: var(--md-sys-typescale-headline-small-size);
  line-height: var(--md-sys-typescale-headline-small-line-height);
  font-weight: var(--md-ref-typeface-weight-medium);
  letter-spacing: var(--md-sys-typescale-headline-small-tracking);
  text-wrap: balance;
}

@media (min-width: 720px) {
  .pf-hero {
    padding-block: calc(var(--ds-space-16) * 2) calc(var(--ds-space-16) * 2.5);
  }

  .pf-hero__title {
    font-size: var(--md-sys-typescale-headline-large-size);
    line-height: var(--md-sys-typescale-headline-large-line-height);
    letter-spacing: var(--md-sys-typescale-headline-large-tracking);
  }
}

/* Regel onder de openingszin: foto, tekst, logo en werkgever lopen als tekst
   door, zodat ze op mobiel netjes afbreken. Regelhoogte = hoogte van de beeldjes. */
.pf-hero__byline {
  margin: var(--ds-space-4) var(--ds-space-0) var(--ds-space-0);
  color: var(--md-sys-color-on-surface-variant);
  font-size: var(--md-sys-typescale-title-small-size);
  line-height: var(--ds-size-avatar-small);
}

.pf-hero__byline .md-avatar {
  vertical-align: middle;
  margin-inline-end: var(--ds-space-2);
}

/* Avatar en naam samen zijn één link naar de About-pagina. Bij hover
   groeit alleen de foto binnen het ronde frame. */
.pf-hero__line {
  white-space: nowrap;
}

.pf-hero__person {
  color: inherit;
  text-decoration: none;
}

.pf-hero__avatar {
  overflow: hidden;
}

.pf-hero__avatar .md-avatar__image,
.pf-hero__logo-frame .pf-hero__logo {
  transition: transform var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}

.pf-hero__person:hover .md-avatar__image {
  transform: scale(1.06);
}

.pf-hero__employer {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

/* Logo in een eigen frame met rand. De afbeelding heeft zelf ook een
   randje; die valt buiten het frame doordat het logo iets vergroot staat.
   Bij hover groeit alleen het logo, het frame blijft gelijk. */
.pf-hero__logo-frame {
  display: inline-flex;
  overflow: hidden;
  width: var(--ds-size-avatar-small);
  height: var(--ds-size-avatar-small);
  margin-inline: var(--ds-space-2);
  border: var(--ds-border-width) solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-corner-small);
  vertical-align: middle;
}

.pf-hero__logo-frame .pf-hero__logo {
  margin: var(--ds-space-0);
  transform: scale(1.15);
}

.pf-hero__employer:hover .pf-hero__logo {
  transform: scale(1.25);
}

/* --------------------------------------------------------------------------
   Figma-cursor (cursor.js): gekleurd pijltje met label, volgt de muis.
   Met een muis verdwijnt de gewone cursor boven elementen met data-cursor.
   -------------------------------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  [data-cursor] {
    cursor: none;
  }
}

.pf-cursor {
  --pf-cursor-color: var(--ds-color-cursor-pink);
  --pf-cursor-on-color: var(--ds-color-on-cursor-pink);

  position: fixed;
  top: var(--ds-space-0);
  left: var(--ds-space-0);
  z-index: 10;
  pointer-events: none;
  transform: translate(var(--pf-cursor-x), var(--pf-cursor-y));
  opacity: 0;
  transition: opacity var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard);
}

.pf-cursor[data-tone="sky"] {
  --pf-cursor-color: var(--ds-color-cursor-sky);
  --pf-cursor-on-color: var(--ds-color-on-cursor-sky);
}

.pf-cursor--visible {
  opacity: 1;
}

/* Pijltje: de punt ligt op de muispositie */
.pf-cursor__arrow {
  display: block;
  width: var(--ds-size-cursor);
  height: var(--ds-size-cursor);
  margin: calc(-0.1 * var(--ds-size-cursor));
  fill: var(--pf-cursor-color);
  stroke: var(--md-sys-color-surface-container-lowest);
  stroke-width: var(--ds-border-width-thick);
  stroke-linejoin: round;
  filter: drop-shadow(var(--md-sys-elevation-level2));
}

/* Label: capsule met een scherpe hoek linksboven (bij het pijltje), een
   dun donkerder randje in de eigen kleur en ruime binnenruimte. */
.pf-cursor__label {
  display: inline-block;
  margin: calc(-1 * var(--ds-space-1)) var(--ds-space-0) var(--ds-space-0) var(--ds-space-3);
  padding: var(--ds-space-1) var(--ds-space-3);
  border: var(--ds-border-width-thick) solid color-mix(in srgb, var(--pf-cursor-color) 80%, var(--md-sys-color-shadow));
  border-radius: var(--md-sys-shape-corner-extra-small) var(--md-sys-shape-corner-full) var(--md-sys-shape-corner-full) var(--md-sys-shape-corner-full);
  background: var(--pf-cursor-color);
  color: var(--pf-cursor-on-color);
  box-shadow: var(--md-sys-elevation-level2);
  font-size: var(--md-sys-typescale-body-medium-size);
  line-height: var(--md-sys-typescale-body-medium-line-height);
  font-weight: var(--md-ref-typeface-weight-medium);
  white-space: nowrap;
}

/* Emoji in het label (👋🏼) zwaait één keer kort als het label verschijnt.
   Bij "beweging beperken" is de duur 0 en staat het stil. */
.pf-cursor__emoji {
  display: inline-block;
  transform-origin: 70% 80%;
}

.pf-cursor--visible .pf-cursor__emoji {
  animation: pf-wave calc(2 * var(--md-sys-motion-duration-long2)) var(--md-sys-motion-easing-standard);
}

@keyframes pf-wave {
  0%, 100% { transform: rotate(0deg); }
  15%      { transform: rotate(14deg); }
  30%      { transform: rotate(-8deg); }
  45%      { transform: rotate(14deg); }
  60%      { transform: rotate(-4deg); }
  75%      { transform: rotate(10deg); }
}

/* Lucht-variant: rechthoekig label, zoals in Figma */
.pf-cursor[data-tone="sky"] .pf-cursor__label {
  border-radius: var(--ds-space-0);
}

.pf-hero__logo {
  display: block;
  width: 100%;
  height: 100%;
}

/* Sectiekop met stip ervoor ("• Recent projects") */
/* Ook binnen een tekstsectie (About) wint deze stijl van .pf-case__section h2 */
.pf-section-label,
.pf-case__section .pf-section-label {
  display: flex;
  align-items: center;
  gap: calc(1.5 * var(--ds-space-1));
  margin: var(--ds-space-0) var(--ds-space-0) var(--ds-space-6);
  color: var(--md-sys-color-on-surface);
  font-size: var(--md-sys-typescale-title-small-size);
  line-height: var(--md-sys-typescale-title-small-line-height);
  font-weight: var(--md-ref-typeface-weight-regular);   /* zelfde als de naam in de sitekop */
}

/* Stip en ruimte in dezelfde verhouding als het ontwerp (± 0,4 × de letter) */
.pf-section-label::before {
  content: "";
  flex: none;
  width: calc(1.5 * var(--ds-space-1));
  height: calc(1.5 * var(--ds-space-1));
  border-radius: var(--md-sys-shape-corner-full);
  background: currentColor;
}

/* Projectraster: 1 kolom op mobiel, 2 vanaf tablet (elk 6 van de 12 kolommen) */
.pf-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--ds-space-8) var(--ds-grid-gutter);
  margin: var(--ds-space-0);
  padding: var(--ds-space-0);
  list-style: none;
}

@media (min-width: 720px) {
  .pf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Projectkaart: beeld + drie regels tekst, hele kaart is een link */
.pf-project {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-4);
  color: var(--md-sys-color-on-surface);
  text-decoration: none;
  border-radius: var(--md-sys-shape-corner-medium);
}

.pf-project__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: var(--ds-aspect-ratio-media);
  overflow: hidden;
  border-radius: var(--md-sys-shape-corner-medium);
  background: var(--ds-tint, var(--md-sys-color-surface-container-highest));
  color: var(--ds-on-tint, var(--md-sys-color-on-surface-variant));
}

.pf-project__media > img,
.pf-project__media > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-standard);
}

.pf-project:hover .pf-project__media > img,
.pf-project:hover .pf-project__media > video {
  transform: scale(1.02);
}

.pf-project:active {
  opacity: var(--ds-pressed-opacity);
}

/* Tekst in een leeg beeldvak, zolang er nog geen afbeelding is */
.pf-project__placeholder {
  font-size: var(--md-sys-typescale-body-medium-size);
  opacity: var(--md-sys-state-disabled-content-opacity);
}

/* Rond knopje rechtsonder in een projectbeeld: het slotje van een project
   met besloten inhoud, of de geluidsknop van een video. */
.pf-project__badge {
  position: absolute;
  right: var(--ds-space-4);
  bottom: var(--ds-space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--ds-size-media-badge);
  height: var(--ds-size-media-badge);
  padding: var(--ds-space-0);
  border: none;
  border-radius: var(--md-sys-shape-corner-full);
  background: color-mix(in srgb, var(--md-sys-color-scrim) calc(var(--ds-scrim-opacity) * 100%), transparent);
  color: var(--md-sys-color-inverse-on-surface);
}

.pf-project__badge .md-icon {
  width: var(--ds-size-icon-small);
  height: var(--ds-size-icon-small);
}

/* Laag over het beeld, buiten de link, voor knoppen (een knop mag niet in
   een link staan). Even hoog als het beeld; alleen de knop is klikbaar. */
.pf-grid > li {
  position: relative;
}

.pf-project__overlay {
  position: absolute;
  top: var(--ds-space-0);
  right: var(--ds-space-0);
  left: var(--ds-space-0);
  aspect-ratio: var(--ds-aspect-ratio-media);
  pointer-events: none;
}

/* Knoppen van een video (pauze, geluid) naast elkaar, rechtsonder in het beeld */
.pf-project__controls {
  position: absolute;
  right: var(--ds-space-4);
  bottom: var(--ds-space-4);
  display: flex;
  gap: var(--ds-space-2);
}

.pf-project__controls .pf-project__badge {
  position: static;
}

.pf-project__control {
  pointer-events: auto;
  cursor: pointer;
  transition: opacity var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard);
}

.pf-project__control:active {
  opacity: var(--ds-pressed-opacity);
}

.pf-project__sound[aria-pressed="false"] .pf-project__sound-on,
.pf-project__sound[aria-pressed="true"] .pf-project__sound-off,
.pf-project__pause[aria-pressed="false"] .pf-project__pause-on,
.pf-project__pause[aria-pressed="true"] .pf-project__pause-off {
  display: none;
}

.pf-project__text {
  display: flex;
  flex-direction: column;
}

.pf-project__title {
  margin: var(--ds-space-0);
  font-size: var(--md-sys-typescale-title-medium-size);
  line-height: var(--md-sys-typescale-title-medium-line-height);
  font-weight: var(--md-ref-typeface-weight-medium);
}

.pf-project__meta,
.pf-project__summary {
  margin: var(--ds-space-0);
  font-size: var(--md-sys-typescale-body-medium-size);
  line-height: var(--md-sys-typescale-body-large-line-height);
}

.pf-project__meta {
  color: var(--md-sys-color-on-surface-variant);
}

/* --------------------------------------------------------------------------
   Projectpagina (case)
   Onder de sitekop: "← Recent projects", daarna de titel en één kolom met
   afwisselend tekst en beelden, alles op dezelfde breedte uitgelijnd.
   De terugknop blijft bij scrollen staan; zodra de titel uit beeld is,
   verschijnt die klein naast de knop (case.js zet .pf-topbar--titled).
   -------------------------------------------------------------------------- */
/* Zwevende balk zodra hij vastplakt: zie "Zwevende balken" bovenaan */
.pf-topbar {
  position: sticky;
  top: var(--ds-space-2);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
  min-width: var(--ds-space-0);
  /* Ruimte onder de sitekop; als de balk vastplakt telt deze marge niet */
  margin: var(--ds-space-10) var(--ds-space-0) var(--ds-space-0);
  padding-block: calc(var(--ds-space-4) + 0.25 * var(--ds-space-1));
  font-size: var(--md-sys-typescale-title-small-size);
  line-height: var(--md-sys-typescale-title-small-line-height);
}

.pf-topbar__back {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: var(--ds-space-2);
  color: var(--md-sys-color-on-surface);
  text-decoration: none;
}

/* Pijl in verhouding tot de tekst van 14 px */
.pf-topbar__back .md-icon {
  width: var(--ds-size-icon-small);
  height: var(--ds-size-icon-small);
}

.pf-topbar__back:hover {
  opacity: var(--ds-pressed-opacity);
}

.pf-topbar__title {
  overflow: hidden;
  color: var(--md-sys-color-on-surface);
  font-weight: var(--md-sys-typescale-title-medium-weight);
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(var(--ds-space-1));
  transition:
    opacity var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard),
    transform var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}

.pf-topbar--titled .pf-topbar__title {
  opacity: 1;
  transform: none;
}

.pf-case {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-8);
  padding-block: var(--ds-space-2) var(--ds-space-0);
}

.pf-case__title {
  margin: var(--ds-space-0);
  color: var(--md-sys-color-on-surface);
  font-size: var(--md-sys-typescale-headline-small-size);
  line-height: var(--md-sys-typescale-headline-small-line-height);
  font-weight: var(--md-sys-typescale-title-medium-weight);
  letter-spacing: var(--md-sys-typescale-headline-small-tracking);
}

/* Titel met statuslabel eronder (bijv. "Work in progress") */
.pf-case__heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--ds-space-3);
}

.pf-case__intro {
  max-width: var(--ds-size-text-max-width);
  margin: var(--ds-space-4) var(--ds-space-0) var(--ds-space-0);
  color: var(--md-sys-color-on-surface-variant);
  font-size: var(--md-sys-typescale-body-large-size);
  line-height: var(--md-sys-typescale-body-large-line-height);
}

.pf-case__section h2 {
  margin: var(--ds-space-0) var(--ds-space-0) var(--ds-space-3);
  color: var(--md-sys-color-on-surface);
  font-size: var(--md-sys-typescale-title-medium-size);
  line-height: var(--md-sys-typescale-title-medium-line-height);
  font-weight: var(--md-ref-typeface-weight-medium);
}

.pf-case__section p,
.pf-case__section ul {
  margin: var(--ds-space-0);
  color: var(--md-sys-color-on-surface-variant);
  font-size: var(--md-sys-typescale-body-medium-size);
  line-height: var(--md-sys-typescale-body-large-line-height);
}

.pf-case__section ul {
  padding-inline-start: var(--ds-space-5);
}

.pf-case__section * + p,
.pf-case__section * + ul {
  margin-block-start: var(--ds-space-3);
}

/* Beeld in de kolom: volle breedte, eigen verhouding */
.pf-case__media {
  margin: var(--ds-space-0);
}

.pf-case__media img,
.pf-case__media video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--md-sys-shape-corner-medium);
}

/* Video in de kolom: geluidsknop rechtsonder, zoals op de homepage */
.pf-case__media--video {
  position: relative;
}

/* Avatar die zwaait: een ronde video precies over de avatar in de
   afbeelding. Positie en grootte (in % van de afbeelding) staan als
   --pf-wave-x/-y/-size op de figure. */
.pf-case__media--wave {
  position: relative;
}

.pf-case__media .pf-case__wave {
  position: absolute;
  top: var(--pf-wave-y);
  left: var(--pf-wave-x);
  width: var(--pf-wave-size);
  aspect-ratio: 1;
  border-radius: var(--md-sys-shape-corner-full);
  object-fit: cover;
}

/* Lege plek voor een beeld dat nog komt */
.pf-case__media.pf-project__media {
  border-radius: var(--md-sys-shape-corner-medium);
}

/* Wachtwoordscherm van een besloten project (getekend door unlock.js) */
.pf-lock {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-4);
  max-width: var(--ds-size-snackbar-min-width);
  margin: var(--ds-space-16) auto;
}

.pf-lock .md-avatar {
  align-self: center;
}

.pf-lock__form {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-4);
}

/* Besloten hoofdstuk midden in een openbare projectpagina (unlock.js):
   kopje, dan een lichtblauw vlak met een regel uitleg en een rond
   wachtwoordveld met een zwarte pijlknop erin. Het vlak blijft licht,
   ook in het donkere thema (data-theme="light"), net als de projectbeelden. */
.pf-locked {
  margin: var(--ds-space-0);
}

.pf-locked__title {
  margin: var(--ds-space-0) var(--ds-space-0) var(--ds-space-3);
  color: var(--md-sys-color-on-surface);
  font-size: var(--md-sys-typescale-title-medium-size);
  line-height: var(--md-sys-typescale-title-medium-line-height);
  font-weight: var(--md-ref-typeface-weight-medium);
}

.pf-locked__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ds-space-8);
  padding: var(--ds-space-12) var(--ds-space-5);
  border-radius: var(--md-sys-shape-corner-large);
  background: color-mix(in srgb, var(--ds-color-mist) 55%, var(--md-sys-color-surface-container-lowest));
  color: var(--md-sys-color-on-surface-variant);
  text-align: center;
}

@media (min-width: 720px) {
  .pf-locked__box {
    padding: calc(1.5 * var(--ds-space-16)) var(--ds-space-6);
  }
}

/* Slotje staat in de tekstregel, zodat het bij afbreken bij de tekst blijft */
.pf-locked__text {
  margin: var(--ds-space-0);
  font-size: var(--md-sys-typescale-body-medium-size);
  line-height: var(--md-sys-typescale-body-large-line-height);
}

.pf-locked__text .md-icon {
  margin-inline-end: var(--ds-space-1);
  vertical-align: text-bottom;
  width: var(--ds-size-icon-small);
  height: var(--ds-size-icon-small);
}

.pf-locked__form {
  width: min(100%, var(--ds-size-password-field));
}

.pf-locked__hint {
  min-height: var(--md-sys-typescale-body-small-line-height);
  margin: var(--ds-space-2) var(--ds-space-0) var(--ds-space-0);
  color: var(--md-sys-color-error);
  font-size: var(--md-sys-typescale-body-small-size);
  line-height: var(--md-sys-typescale-body-small-line-height);
}

/* Rond wachtwoordveld met de verzendknop erin */
.pf-password {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
  min-height: var(--ds-size-field);
  padding: var(--ds-space-1) var(--ds-space-1) var(--ds-space-1) var(--ds-space-5);
  border-radius: var(--md-sys-shape-corner-full);
  background: var(--md-sys-color-surface-container-lowest);
}

.pf-password:focus-within {
  outline: var(--ds-focus-ring-width) solid var(--ds-focus-ring-color);
  outline-offset: var(--ds-focus-ring-offset);
}

.pf-password__input {
  flex: 1;
  min-width: var(--ds-space-0);
  padding: var(--ds-space-0);
  border: none;
  background: transparent;
  color: var(--md-sys-color-on-surface);
  font: inherit;
  font-size: var(--md-sys-typescale-body-large-size);
  outline: none;
}

.pf-password__input::placeholder {
  color: var(--md-sys-color-on-surface-variant);
}

.pf-password__input[aria-invalid="true"] {
  color: var(--md-sys-color-error);
}

.pf-password__submit {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: var(--ds-size-control);
  height: var(--ds-size-control);
  padding: var(--ds-space-0);
  border: none;
  border-radius: var(--md-sys-shape-corner-full);
  background: var(--md-sys-color-inverse-surface);
  color: var(--md-sys-color-inverse-on-surface);
  cursor: pointer;
  transition: opacity var(--md-sys-motion-duration-short2) var(--md-sys-motion-easing-standard);
}

.pf-password__submit .md-icon {
  width: var(--ds-size-icon-small);
  height: var(--ds-size-icon-small);
}

.pf-password__submit:hover {
  opacity: calc(1 - 2 * var(--md-sys-state-hover-state-layer-opacity));
}

.pf-password__submit:active,
.pf-password__submit:disabled {
  opacity: var(--ds-pressed-opacity);
}

.pf-lock__title {
  margin: var(--ds-space-0);
  font-size: var(--md-sys-typescale-title-large-size);
  line-height: var(--md-sys-typescale-title-large-line-height);
  font-weight: var(--md-ref-typeface-weight-medium);
  text-align: center;
}

.pf-lock__text {
  margin: var(--ds-space-0);
  color: var(--md-sys-color-on-surface-variant);
  font-size: var(--md-sys-typescale-body-medium-size);
  line-height: var(--md-sys-typescale-body-large-line-height);
  text-align: center;
}

.pf-case h1:focus,
.pf-case h2:focus {
  outline: none;
}

/* --------------------------------------------------------------------------
   About-pagina: geschreven naam bovenaan, daaronder foto en tekst naast
   elkaar (onder elkaar op mobiel), in dezelfde kolom als een projectpagina.
   -------------------------------------------------------------------------- */
.pf-about {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-8);
  padding-block: calc(var(--ds-space-10) + var(--ds-space-4)) var(--ds-space-0);
}

.pf-about__body {
  display: grid;
  gap: var(--ds-space-10);
}

/* Portretfoto. Smaller dan 1024 px: bovenaan, boven de tekst, kleiner
   (40 % van de breedte). Vanaf 1024 px: rechtsboven, zie het raster
   onderaan. */
.pf-about__photo {
  order: -1;
  justify-self: start;
  width: 40%;
  margin: var(--ds-space-0);
}

.pf-about__photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--md-sys-shape-corner-none);
}

/* Tekstlink: zwart met dunne onderstreping, transparanter bij hover */
.pf-link {
  color: var(--md-sys-color-on-surface);
  text-decoration: underline;
  text-decoration-thickness: var(--ds-border-width);
  text-underline-offset: var(--ds-space-1);
  overflow-wrap: anywhere;
}

.pf-link:hover {
  opacity: var(--ds-pressed-opacity);
}

.pf-case__section .pf-about__contact {
  margin-block-start: var(--ds-space-6);
}

.pf-about__text {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-8);
  /* Extra ruimte onder de tekst, zodat de afstand tot de werkervaring
     gelijk blijft aan toen de geschreven naam er nog stond */
  margin-block-end: var(--ds-space-about-text-end);
}

/* Sitevoet: zelfde opbouw en letters als de sitekop, met een dunne lijn
   erboven. Links naar e-mail en LinkedIn (het e-mailadres zet contact.js
   in elkaar). */
.pf-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-4);
  margin-block-start: var(--ds-space-16);
  padding-block-start: var(--ds-space-6);
  border-block-start: var(--ds-border-width) solid var(--md-sys-color-outline-variant);
}

.pf-footer__name,
.pf-footer__link {
  margin: var(--ds-space-0);
  font-size: var(--md-sys-typescale-title-small-size);
  line-height: var(--md-sys-typescale-title-small-line-height);
  font-weight: var(--md-ref-typeface-weight-regular);
  color: var(--md-sys-color-on-surface-variant);
  text-decoration: none;
}

.pf-footer__nav {
  display: flex;
  gap: var(--ds-space-5);
}

.pf-footer__link:hover {
  color: var(--md-sys-color-on-surface);
}

/* Werkervaring op de About-pagina: per regel een klein logo, daarnaast
   bedrijf (functie eronder), jaren rechts, met een dunne lijn ertussen. */
.pf-case__section .pf-experience__list {
  margin: var(--ds-space-0);
  padding: var(--ds-space-0);
  list-style: none;
}

.pf-experience__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: var(--ds-space-3);
  padding-block: var(--ds-space-3);
  border-block-start: var(--ds-border-width) solid var(--md-sys-color-outline-variant);
  font-size: var(--md-sys-typescale-body-medium-size);
  line-height: var(--md-sys-typescale-body-large-line-height);
}

/* Logo zo hoog als een regel tekst, naast de bedrijfsnaam */
/* Geen lijn boven de eerste regel, alleen tussen de regels */
.pf-experience__item:first-child {
  border-block-start: none;
}

.pf-experience__logo {
  grid-row: 1;
  width: var(--ds-size-icon);
  height: var(--ds-size-icon);
  border-radius: var(--md-sys-shape-corner-extra-small);
  object-fit: cover;
}

.pf-experience__company {
  grid-column: 2;
  color: var(--md-sys-color-on-surface);
}

.pf-experience__role,
.pf-experience__years {
  color: var(--md-sys-color-on-surface-variant);
}

.pf-experience__role {
  grid-column: 2;
}

/* Toevoeging achter de bedrijfsnaam, bijv. de huidige naam van het bedrijf */
.pf-experience__note {
  color: var(--md-sys-color-on-surface-variant);
}

.pf-experience__years {
  grid-column: 3;
  grid-row: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Raster op projectpagina's en About: alles begint op dezelfde linkerrand
   als de sitekop. Beeld gebruikt de volle breedte (12 kolommen); tekst
   blijft vanaf een breed scherm binnen de eerste 8 kolommen, zodat regels
   leesbaar blijven. Smaller dan dat: tekst over de volle breedte. */
@media (min-width: 1024px) {
  .pf-case > :not(.pf-case__media, .pf-locked) {
    max-width: calc((100% - (var(--ds-grid-columns) - 1) * var(--ds-grid-gutter)) / var(--ds-grid-columns) * var(--ds-grid-text-columns) + (var(--ds-grid-text-columns) - 1) * var(--ds-grid-gutter));
  }

  /* Het besloten hoofdstuk (slotje en wachtwoordveld) is net als beeld
     12 kolommen breed; na het openen staat de tekst weer in 8 kolommen. */

  /* About: tekst en werkervaring in de eerste 8 kolommen, de portretfoto
     in de laatste 3. De foto staat bovenaan, op de hoogte van de tekst, en
     scrolt mee: hij blijft onder de sitekop staan tot het einde van de
     inhoud. */
  .pf-about__body {
    grid-template-columns: repeat(var(--ds-grid-columns), minmax(0, 1fr));
    column-gap: var(--ds-grid-gutter);
  }

  .pf-about__text,
  .pf-about .pf-experience {
    grid-column: 1 / span var(--ds-grid-text-columns);
  }

  .pf-about__photo {
    position: sticky;
    top: calc(var(--ds-space-16) + var(--ds-space-4));
    grid-column: -4 / -1;
    grid-row: 1 / span 2;
    align-self: start;
    order: 0;
    width: auto;
  }
}
