/* =========================================================
   Peter Jongman — portfolio
   Schone basisversie, september 2026
   ========================================================= */

:root {
  --paper: #f7f6f1;
  --ink: #11110f;
  --text: #292925;
  --muted: #68675f;
  --line: #d9d7cf;
  --panel: #dedbd3;
  --max: 1540px;
  --page-x: 48px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Funnel Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(calc(100% - (2 * var(--page-x))), var(--max));
  margin-inline: auto;
}

/* =========================================================
   Header
   ========================================================= */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 246, 241, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-head__top {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-name {
  font-family: "Funnel Display", sans-serif;
  font-size: 18px;
  font-weight: 550;
  letter-spacing: 0.01em;
}

.site-kicker {
  color: var(--muted);
  font-size: 13px;
}

.tabs {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  position: relative;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  color: #6a6962;
  font-size: 14px;
}

.tab:hover {
  color: var(--ink);
}

.tab[aria-current="page"] {
  color: var(--ink);
  font-weight: 560;
}

.tab[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--ink);
}

/* =========================================================
   Typografie
   ========================================================= */

.eyebrow {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.display {
  margin: 0;
  max-width: 11ch;
  font-family: "Funnel Display", sans-serif;
  font-size: clamp(68px, 10.7vw, 178px);
  font-weight: 420;
  line-height: 0.88;
  letter-spacing: -0.045em;
}

.lead,
.project-lead {
  margin: 0;
  font-family: "Funnel Display", sans-serif;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.lead {
  max-width: 18ch;
  font-size: clamp(24px, 3.1vw, 48px);
}

.project-lead {
  max-width: 20ch;
  font-size: clamp(25px, 3vw, 42px);
}

.body-copy {
  max-width: 650px;
  color: var(--text);
}

.body-copy p {
  margin: 0;
}

/* =========================================================
   Homepage
   ========================================================= */

.home-hero {
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  padding: 110px 0 88px;
}

.home-intro {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 8vw;
  padding: 70px 0 150px;
  border-top: 1px solid var(--line);
}

.projects {
  padding-bottom: 160px;
}

.project-row {
  min-height: 82vh;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8vw;
  align-items: center;
  padding: 100px 0;
  border-top: 1px solid var(--line);
}

.project-row:nth-child(even) {
  grid-template-columns: 1.2fr 1fr;
}

.project-row:nth-child(even) .project-row__copy {
  order: 2;
}

.project-row__copy {
  max-width: 590px;
}

.project-row__copy h2 {
  margin: 0 0 28px;
  font-family: "Funnel Display", sans-serif;
  font-size: clamp(48px, 6vw, 96px);
  font-weight: 430;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.project-row__copy > p:not(.eyebrow):not(.project-lead) {
  max-width: 48ch;
  color: var(--text);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
}

.project-link span {
  transition: transform 160ms ease;
}

.project-link:hover span {
  transform: translateX(4px);
}

.project-visual,
.placeholder {
  width: 100%;
  max-width: 760px;
  margin-left: auto;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--panel);
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ece9e1, #d6d2c8);
  color: #88857d;
  font-size: 13px;
}

.statement {
  padding: 190px 0 210px;
  border-top: 1px solid var(--line);
}

.statement p {
  max-width: 12ch;
  margin: 0;
  font-family: "Funnel Display", sans-serif;
  font-size: clamp(48px, 7.2vw, 116px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.045em;
}

/* =========================================================
   Basis voor case-pagina's
   ========================================================= */

.display--small {
  font-size: clamp(56px, 8.2vw, 132px);
}

.meta {
  max-width: 760px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.case-hero {
  padding: 126px 0 150px;
}

.case-hero__top {
  display: grid;
  grid-template-columns: 1fr 0.55fr;
  gap: 8vw;
  align-items: end;
}

.case-hero .display {
  margin-bottom: 62px;
}

.case-role,
.case-role-group {
  align-self: end;
  padding-bottom: 8px;
}

.case-role-group .case-role {
  margin: 0 0 18px;
  padding-bottom: 0;
}

.case-credit {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.case-credit + .case-credit {
  margin-top: 7px;
}

.case-credit strong {
  color: var(--ink);
  font-weight: 520;
}

.case-strap {
  max-width: 19ch;
  margin: 0;
  font-family: "Funnel Display", sans-serif;
  font-size: clamp(28px, 4.1vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.video-section {
  padding: 0 0 170px;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1c1c1a;
}

.video-frame video,
.video-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-frame__note {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 12px;
}

.video-frame__note a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

.section {
  padding: 145px 0;
}

.section--line {
  border-top: 1px solid var(--line);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 10vw;
  align-items: start;
}

.two-col--reverse {
  grid-template-columns: 0.72fr 1fr;
}

.two-col--reverse > :first-child {
  order: 2;
}

.section-title {
  margin: 0 0 68px;
  font-family: "Funnel Display", sans-serif;
  font-size: clamp(60px, 9vw, 148px);
  font-weight: 420;
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.section-title--tight {
  max-width: 8ch;
}

.small-title {
  margin: 0 0 38px;
  font-family: "Funnel Display", sans-serif;
  font-size: clamp(36px, 5vw, 74px);
  font-weight: 420;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.expander {
  max-width: 720px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.expander summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  color: var(--ink);
  font-size: 14px;
}

.expander summary::-webkit-details-marker {
  display: none;
}

.expander summary::after {
  content: "↓";
  font-size: 18px;
  transition: transform 0.2s ease;
}

.expander[open] summary::after {
  transform: rotate(180deg);
}

.expander__content {
  max-width: 620px;
  padding: 30px 0 4px;
  color: var(--text);
}

.expander__content p {
  margin: 0 0 1.1em;
}

.gallery-section {
  padding: 170px 0 190px;
}

.pin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.gallery-item {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  text-align: left;
}

.pin-grid .gallery-item {
  aspect-ratio: 4 / 5;
  background: var(--panel);
}

.pin-grid .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.pin-grid .gallery-item:hover img {
  transform: scale(1.018);
  opacity: 0.94;
}

.visual-caption--below {
  width: min(100%, 600px);
  margin: 32px 0 0 auto;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
}

.gallery-item--wide {
  display: block;
  width: min(100%, 1160px);
  margin: 80px 0 0 auto;
}

.gallery-item--wide img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.gallery-item--full {
  display: block;
  width: 100%;
}

.gallery-item--full img {
  width: 100%;
  height: auto;
}

.statement + .next,
.next {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  padding: 70px 0 90px;
  border-top: 1px solid var(--line);
}

.next__label {
  color: var(--muted);
  font-size: 13px;
}

.next__title {
  margin-top: 6px;
  font-family: "Funnel Display", sans-serif;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.035em;
}

/* Lightbox */
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 56px;
  border: 0;
  background: rgba(15, 15, 14, 0.92);
  color: #fff;
}

.lightbox::backdrop {
  background: rgba(15, 15, 14, 0.92);
}

.lightbox__close {
  position: fixed;
  z-index: 3;
  top: 20px;
  right: 25px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: "Funnel Display", sans-serif;
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.lightbox__figure {
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.lightbox__image {
  max-width: 100%;
  max-height: calc(100vh - 130px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox__caption {
  min-height: 1.5em;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  text-align: center;
}

/* =========================================================
   Colorgreen
   ========================================================= */

.video-frame--cg video {
  object-fit: cover;
}

.cg-intro-copy {
  margin-bottom: 72px;
}

.cg-research {
  align-items: center;
}

.media-card {
  margin: 0;
  overflow: hidden;
  background: #ecebe5;
}

.media-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #111;
}

.media-card figcaption {
  margin: 0;
  padding: 14px 16px 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.cg-website {
  margin: 0 0 72px;
}

.cg-proof-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 28px;
  align-items: stretch;
}

.proof-card {
  min-height: 420px;
  display: grid;
  place-items: center;
  background: #e8e7e1;
}

.proof-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.datasheet-card {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.datasheet-card .gallery-item {
  background: #fff;
}

.datasheet-card img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
}

.datasheet-card__copy {
  padding-right: 14px;
}

.datasheet-card__copy p:not(.eyebrow) {
  margin: 0 0 18px;
  color: var(--text);
}

.proof-photo {
  width: 100%;
  background: #e8e7e1;
}

.proof-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.campaign-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 72px;
}

.campaign-card {
  min-height: 360px;
  height: 100%;
  display: grid;
  place-items: center;
  background: #e8e7e1;
}

.campaign-card img {
  width: 100%;
  height: 100%;
  max-height: 600px;
  object-fit: contain;
}

/* =========================================================
   pmA
   ========================================================= */

.pma-name,
.pma-display,
.pma-type-demo__mark,
.pma-type-demo__words {
  font-family: "Maven Pro", sans-serif;
}

.pma-name {
  font-weight: 400;
  letter-spacing: -0.045em;
}

.pma-name strong,
.pma-type-demo__words strong {
  font-weight: 800;
}

.pma-display {
  font-weight: 400;
  letter-spacing: -0.055em;
}

.pma-key-section {
  padding: 0 0 170px;
}

.pma-key {
  background: #1a1917;
  cursor: zoom-in;
}

.pma-key img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.pma-sketch-intro {
  margin-bottom: 72px;
}

.pma-sketch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.pma-sketch-grid .gallery-item {
  background: #fff;
  border: 1px solid var(--line);
}

.pma-sketch-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.pma-type-demo {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 8vw;
  align-items: end;
  margin: 78px 0 72px;
  padding: 70px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pma-type-demo__mark {
  font-size: clamp(90px, 14vw, 220px);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.055em;
}

.pma-type-demo__words {
  padding-bottom: 0.04em;
  font-size: clamp(34px, 5vw, 78px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.pma-type-copy {
  margin-top: 0;
}

.pma-app-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-top: 78px;
  align-items: start;
}

.pma-app {
  grid-column: span 4;
  background: #eceae4;
  border: 1px solid var(--line);
}

.pma-app--wide {
  grid-column: span 6;
}

.pma-app--hero {
  grid-column: 1 / -1;
}

.pma-app img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 520px;
  object-fit: contain;
}

.pma-app--hero img {
  height: auto;
  min-height: 0;
  max-height: none;
}

.pma-faq-layout {
  align-items: start;
}

.pma-faq-layout .gallery-item--full {
  margin-top: 0;
}

.pma-statement p {
  max-width: 13ch;
}

.pma-final-thought {
  padding-top: 115px;
}

.project-visual--landscape {
  width: 100%;
  max-width: 760px;
  max-height: none;
  aspect-ratio: 3 / 2;
}

.project-visual--landscape img {
  object-position: center;
}

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

@media (max-width: 900px) {
  :root {
    --page-x: 15px;
  }

  html {
    scroll-padding-top: 100px;
  }

  .site-head__top {
    min-height: 54px;
  }

  .site-kicker {
    display: none;
  }

  .tabs {
    gap: 24px;
  }

  .home-hero {
    min-height: 62vh;
    padding: 76px 0 64px;
  }

  .home-intro,
  .project-row,
  .project-row:nth-child(even),
  .case-hero__top,
  .two-col,
  .two-col--reverse {
    grid-template-columns: 1fr;
  }

  .home-intro,
  .project-row,
  .case-hero__top,
  .two-col,
  .two-col--reverse {
    gap: 46px;
  }

  .project-row {
    min-height: 0;
    padding: 86px 0;
  }

  .project-row:nth-child(even) .project-row__copy,
  .two-col--reverse > :first-child {
    order: initial;
  }

  .project-visual,
  .placeholder {
    width: 78%;
    margin: 20px 0 0 auto;
  }

  .project-visual--landscape {
    width: 100%;
  }

  .case-hero {
    padding: 88px 0 100px;
  }

  .case-hero .display {
    margin-bottom: 42px;
  }

  .video-section {
    padding-bottom: 110px;
  }

  .section {
    padding: 100px 0;
  }

  .gallery-section {
    padding: 110px 0 130px;
  }

  .pin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .statement {
    padding: 130px 0 150px;
  }

  .cg-proof-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .datasheet-card {
    grid-template-columns: 0.62fr 1fr;
  }

  .campaign-card {
    min-height: 280px;
  }

  .pma-key-section {
    padding-bottom: 115px;
  }

  .pma-type-demo {
    grid-template-columns: 1fr;
    gap: 40px;
    margin: 58px 0;
    padding: 56px 0;
  }

  .pma-app {
    grid-column: span 6;
  }

  .pma-app--wide {
    grid-column: span 12;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .site-head__top {
    min-height: 48px;
  }

  .tabs {
    gap: 22px;
  }

  .tab {
    min-height: 45px;
    font-size: 13px;
  }

  .display {
    font-size: clamp(58px, 21vw, 96px);
  }

  .display--small {
    font-size: clamp(52px, 18vw, 84px);
  }

  .project-visual,
  .placeholder {
    width: 94%;
  }

  .case-hero {
    padding-top: 68px;
  }

  .case-role {
    max-width: 36ch;
  }

  .section-title {
    margin-bottom: 48px;
    font-size: clamp(58px, 19vw, 98px);
  }

  .pin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
  }

  .visual-caption--below {
    width: 100%;
    margin-top: 28px;
  }

  .gallery-item--wide {
    margin-top: 55px;
  }

  .video-frame__note {
    left: 10px;
    right: 10px;
    bottom: 10px;
    gap: 10px;
    padding: 7px 8px;
  }

  .video-frame__note span {
    display: none;
  }

  .lightbox {
    padding: 34px 14px 20px;
  }

  .lightbox__close {
    top: 7px;
    right: 8px;
  }

  .next {
    flex-direction: column;
    align-items: flex-start;
  }

  .cg-intro-copy {
    margin-bottom: 48px;
  }

  .cg-website {
    margin-bottom: 50px;
  }

  .datasheet-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .datasheet-card .gallery-item {
    width: 72%;
    margin: 0 auto;
  }

  .datasheet-card__copy {
    padding-right: 0;
  }

  .campaign-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 48px;
  }

  .campaign-card {
    min-height: 0;
  }

  .campaign-card img {
    height: auto;
    max-height: none;
  }

  .pma-key-section {
    padding-bottom: 90px;
  }

  .pma-key {
    width: calc(100% + 30px);
    margin-left: -15px;
  }

  .pma-key img {
    aspect-ratio: 4 / 3;
    object-position: 34% center;
  }

  .pma-sketch-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pma-type-demo__mark {
    font-size: 42vw;
  }

  .pma-type-demo__words {
    font-size: clamp(34px, 12vw, 58px);
  }

  .pma-app-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 50px;
  }

  .pma-app,
  .pma-app--wide {
    grid-column: 1;
  }

  .pma-app img {
    min-height: 0;
    max-height: none;
    height: auto;
  }
}
