/* Shared website design. Homepage and responsive rules follow the approved prototype. */
:root {
  color-scheme: light;
  --ink: #253745;
  --heading: #153c57;
  --blue: #155d9c;
  --blue-hover: #104775;
  --sky: #eaf3f8;
  --muted: #566875;
  --line: #d9e2e8;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.65 Verdana, Arial, Helvetica, sans-serif; }
img { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-hover); text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; border-radius: 2px; }
figure, p { margin: 0; }
p + p { margin-top: 18px; }
h1, h2, h3 { margin: 0; color: var(--heading); line-height: 1.25; text-wrap: balance; }
h1 { font-size: clamp(34px, 3.7vw, 48px); letter-spacing: -0.045em; }
h2 { font-size: 30px; letter-spacing: -0.035em; }
h3 { font-size: 20px; letter-spacing: -0.025em; }
.container { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.section { padding-block: 76px; }
.eyebrow { margin-bottom: 16px; color: var(--blue); font-size: 13px; font-weight: bold; letter-spacing: 0.025em; }
.text-link { display: inline-block; font-size: 15px; font-weight: bold; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 2; background: white; padding: 12px 20px; }
.skip-link:focus { top: 12px; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 24px; }
.brand { display: flex; align-items: center; gap: 24px; color: var(--heading); text-decoration: none; }
.brand img { width: 128px; height: 41px; }
.brand span { border-left: 1px solid var(--line); padding-left: 24px; font-size: 15px; font-weight: bold; }
.header-controls { display: flex; align-items: center; gap: 24px; }
.main-nav { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.main-nav a { display: inline-block; padding-block: 8px; color: var(--heading); text-decoration: none; }
.main-nav a:hover { color: var(--blue); text-decoration: underline; }
.main-nav a[aria-current] { font-weight: bold; text-decoration: underline; }
.language-switch { padding-left: 24px; border-left: 1px solid var(--line); font-size: 12px; white-space: nowrap; }
.language-switch a { display: inline-block; padding-block: 8px; }

.intro { background: var(--sky); border-block: 1px solid #e0edf4; }
.intro-layout { display: grid; grid-template-columns: minmax(0, 680px) 230px; align-items: center; gap: 64px; padding-block: 64px; }
.intro-copy { max-width: 660px; }
.intro h1 { max-width: 20ch; }
.intro h1 span { color: var(--blue); }
.intro-text { max-width: 61ch; margin-top: 26px; }
.intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 30px; }
.button { display: inline-block; padding: 13px 22px; border: 1px solid var(--blue); border-radius: 4px; background: var(--blue); color: white; text-decoration: none; font-size: 15px; font-weight: bold; }
.button:hover { background: var(--blue-hover); color: white; border-color: var(--blue-hover); }
.availability { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 5px; margin-top: 24px; color: #3f5e5c; font-size: 13px; }
.availability > span:last-child { white-space: nowrap; }
.status-dot { display: inline-block; flex: none; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #37736b; }
.portrait { width: 100%; }
.portrait img { width: 100%; height: 250px; object-fit: cover; object-position: left center; border-radius: 4px; box-shadow: 8px 8px 0 #d3e5ef; }
.portrait figcaption { margin-top: 20px; font-size: 13px; color: var(--heading); font-weight: bold; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-heading .eyebrow { margin-bottom: 10px; }
.section-heading > .text-link { flex: none; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
.project-link { display: block; height: 100%; color: var(--ink); text-decoration: none; }
.project-link:hover { color: var(--ink); }
.project-image { height: 340px; padding: 28px 28px 0; overflow: hidden; border: 1px solid #deebf0; }
.project-image-hu { background: #e8f2f6; }
.project-image-lp { background: #fbefe5; border-color: #f1e4d9; }
.image-window { height: 100%; overflow: hidden; background: #fff; border: 1px solid #d5e0e5; box-shadow: 0 6px 18px #173f5810; }
.image-window img { width: 100%; height: auto; }
.project-image-hu img { width: 115%; max-width: none; margin-left: -7.5%; margin-top: -5%; }
.project-image-lp img { width: 155%; max-width: none; margin-left: -3%; margin-top: -2%; }
.project figcaption { margin-top: 10px; color: var(--muted); font-size: 12px; }
.project-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 20px; margin-block: 20px 10px; }
.project-heading h3 { font-size: 23px; text-align: left; text-wrap: initial; }
.project-year { color: var(--muted); font-size: 13px; white-space: nowrap; }
.project-link p { max-width: 48ch; }
.project-action { display: inline-block; margin-top: 18px; color: var(--blue); font-size: 14px; font-weight: bold; text-decoration: underline; text-underline-offset: 4px; }
.project-link:hover .project-action { text-decoration-thickness: 2px; }
.project-link:hover .project-heading h3 { color: var(--blue); }

.services { background: #f6f8f9; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.service { padding-top: 24px; border-top: 3px solid #83abc3; }
.service h3 { margin-bottom: 18px; font-size: 19px; text-wrap: initial; }
.service p { font-size: 16px; line-height: 1.65; }
.approach, .experience { display: grid; grid-template-columns: 310px minmax(0, 1fr); column-gap: 80px; }
.section-aside h2 { margin-bottom: 24px; }
.section-aside .eyebrow { max-width: 30ch; }
.reading-column { max-width: 69ch; }
.reading-column > p:last-child { margin-bottom: 0; }
.experience { border-top: 1px solid var(--line); padding-top: 64px; }
.clients { grid-column: 1 / -1; margin-top: 56px; }
.clients h3 { font-size: 16px; font-weight: normal; color: var(--muted); margin-bottom: 24px; letter-spacing: 0; }
.clients ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 28px; list-style: none; padding: 0; margin: 0; }
.clients li { color: var(--heading); font-size: 14px; font-weight: bold; }

.contact { padding-block: 60px; background: var(--sky); border-top: 1px solid #e0edf4; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 48px; }
.contact h2 { max-width: 17ch; font-size: 36px; line-height: 1.2; }
.work-location { max-width: 48ch; margin-top: 20px; font-size: 15px; }
.contact .availability { margin-top: 22px; }
.contact address { display: flex; flex-direction: column; align-items: start; font-style: normal; }
.contact-name { color: var(--heading); font-size: 15px; font-weight: bold; margin-bottom: 16px; }
.contact address > a { margin-bottom: 10px; }
.contact-email { font-size: 19px; font-weight: bold; overflow-wrap: anywhere; }
.contact .linkedin { margin-top: 8px; margin-bottom: 0; font-size: 14px; }
.site-footer { display: flex; justify-content: space-between; gap: 24px 48px; padding-block: 28px; color: var(--muted); font-size: 12px; }
.site-footer p { flex: none; line-height: 1.8; }
.site-footer ul { display: flex; flex-wrap: wrap; align-content: center; justify-content: end; gap: 6px 24px; list-style: none; margin: 0; padding: 0; }
.site-footer strong { font-weight: normal; color: var(--ink); }

@media (max-width: 1050px) {
  .brand span { display: none; }
  .intro-layout { gap: 44px; grid-template-columns: minmax(0, 1fr) 230px; }
  .approach, .experience { grid-template-columns: 240px minmax(0, 1fr); column-gap: 40px; }
  .project-image { height: 300px; padding: 20px 20px 0; }
  .service-grid { gap: 24px; }
  .service h3 { font-size: 17px; }
  .contact-email { font-size: 17px; }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 48px); }
  .section { padding-block: 52px; }
  .site-header { flex-wrap: wrap; gap: 12px 24px; padding-block: 18px; }
  .header-controls { flex-wrap: wrap; gap: 4px 24px; width: 100%; }
  .main-nav { gap: 22px; }
  .language-switch { margin-left: auto; }
  .intro-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 44px; }
  .intro-copy { max-width: 620px; }
  .intro h1 { font-size: 38px; max-width: 23ch; }
  .intro-text { margin-top: 22px; }
  .portrait { display: flex; align-items: end; gap: 28px; }
  .portrait img { width: 180px; height: 190px; flex: none; box-shadow: 8px 8px 0 #d3e5ef; }
  .portrait figcaption { margin: 0 0 4px; }
  .section-heading { align-items: start; flex-direction: column; gap: 16px; margin-bottom: 28px; }
  h2 { font-size: 27px; }
  .project-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .project-image { height: 340px; padding: 24px 24px 0; }
  .project-heading h3 { font-size: 20px; }
  .project-link p { font-size: 15px; }
  .service-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .service { padding-top: 18px; }
  .service h3 { font-size: 20px; margin-bottom: 12px; }
  .service p { font-size: 16px; max-width: 65ch; }
  .approach, .experience { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .section-aside h2 { margin-bottom: 0; }
  .section-aside .text-link { margin-top: 16px; }
  .clients { margin-top: 20px; }
  .clients ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; }
  .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .contact { padding-block: 44px; }
  .contact-email { font-size: 19px; }
  .site-footer { flex-direction: column; gap: 18px; }
  .site-footer ul { justify-content: start; }
}

@media (max-width: 540px) {
  .container { width: calc(100% - 40px); }
  .brand { gap: 16px; }
  .brand img { width: 110px; height: auto; }
  .brand span { display: inline; padding-left: 16px; font-size: 13px; }
  .header-controls { column-gap: 16px; }
  .main-nav { gap: 14px; font-size: 13px; }
  .language-switch { padding-left: 16px; }
  .intro-layout { padding-block: 36px; gap: 32px; }
  .intro h1 { font-size: 34px; letter-spacing: -0.04em; }
  .intro-actions { gap: 16px 22px; margin-top: 24px; }
  .button { padding-inline: 17px; font-size: 14px; }
  .intro-actions .text-link { font-size: 14px; }
  .portrait img { width: 150px; height: 160px; }
  .portrait { gap: 24px; }
  .portrait figcaption { font-size: 12px; }
  .project-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .project-image { height: 285px; padding: 20px 20px 0; }
  .project-heading { margin-top: 16px; }
  .project-link p { font-size: 16px; }
  .project-action { margin-top: 12px; }
  .clients ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
  .clients li { font-size: 13px; }
  .contact h2 { font-size: 30px; }
  .contact-email { font-size: 17px; }
  .site-footer ul { display: grid; gap: 6px; }
}

@media print {
  .skip-link, .header-controls { display: none; }
  .container { width: 100%; }
  .section { padding-block: 24px; }
  .intro-layout { padding-block: 24px; }
  .project, .service, .contact { break-inside: avoid; }
}

/* Inner pages share the same header, colour palette and reading rhythm. */
.page-hero { padding-block: 30px 40px; background: var(--sky); border-block: 1px solid #e0edf4; }
#breadcrumb { margin-bottom: 24px; color: var(--muted); font-size: 13px; }
.page-heading { display: flex; justify-content: space-between; align-items: start; gap: 32px; }
.page-heading > div:first-child { min-width: 0; }
.page-heading h1 { font-size: 36px; letter-spacing: -0.035em; text-align: left; text-wrap: initial; overflow-wrap: anywhere; hyphens: auto; }
.page-heading .page-intro { margin-top: 18px; max-width: 72ch; }
.page-heading .button { margin-top: 24px; }
.portfoliologoklein { flex: none; }
.portfoliologoklein a { display: block; }
.portfoliologoklein img { width: auto; height: 60px; border: 1px solid var(--line); background: white; }
.page-content { padding-block: 48px 64px; }
.page-content > p { max-width: 72ch; margin-bottom: 20px; }
.page-content a { overflow-wrap: anywhere; }
.page-content h2 { font-size: 25px; margin: 40px 0 20px; letter-spacing: -0.025em; }
.page-content ul { padding-left: 24px; margin: 12px 0 24px; }
.page-content li { margin-bottom: 8px; }
body[class^="page-"] .site-footer { border-top: 1px solid var(--line); }

.project-details { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 28px 32px; margin: 0 0 40px; }
.project-details dt { color: var(--muted); font-size: 15px; line-height: 1.76; }
.project-details dd { min-width: 0; max-width: 74ch; margin: 0; }
.project-details p { margin: 0; }
.project-details p + p { margin-top: 18px; }
.my-gallery { display: flex; flex-wrap: wrap; align-items: start; gap: 16px; }
.my-gallery figure { height: 148px; max-width: 100%; margin: 0; }
.my-gallery a { display: block; height: 100%; }
.my-gallery img { width: auto; height: 100%; max-width: 100%; object-fit: contain; border: 1px solid #bdcbd4; }
.my-gallery a:hover img { border-color: var(--blue); }
.my-gallery figcaption { display: none; }
.pswp img { max-width: none; }

/* Project examples: complete images with visible captions and a lightbox. */
.page-project .case-designs { max-width: none; }
.page-project .case-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; }
.page-project .case-gallery figure { height: auto; min-width: 0; max-width: none; }
.page-project .case-gallery .case-example-wide { grid-column: 1 / -1; max-width: 600px; }
.page-project .case-gallery a { width: fit-content; max-width: 100%; height: auto; cursor: zoom-in; }
.page-project .case-gallery img { width: auto; height: auto; max-height: 650px; }
.page-project .case-gallery figcaption { display: block; margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.page-project .case-gallery-storyboard,
.page-project .case-gallery-featured { grid-template-columns: minmax(0, 1fr); max-width: 600px; margin-top: 28px; }
.page-project .case-gallery-storyboard img,
.page-project .case-gallery-featured img { width: 100%; max-height: none; }

@media (max-width: 1000px) {
  .page-project .case-gallery { grid-template-columns: minmax(0, 1fr); max-width: 600px; }
}

.portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-bottom: 40px; }
.portfolio-project { min-width: 0; padding: 24px; border-top: 2px solid #b4cede; background: #f6f8f9; }
.portfolio-project .thumbnail-caption { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.portfolio-project-link { display: block; color: var(--ink); text-decoration: none; }
.portfolio-project-link:hover,
.portfolio-project-link:focus-visible { color: var(--ink); background: var(--sky); border-top-color: var(--blue); }
.portfolio-project-link img { width: 192px; height: 96px; max-width: 100%; object-fit: contain; background: white; border: 1px solid var(--line); }
.project-description { display: block; margin-top: 20px; }

.cv-personal { display: flex; justify-content: space-between; align-items: start; gap: 24px; }
.cv-personal .b-datenation { color: var(--muted); font-size: 14px; }
.page-cv .page-content > ul { max-width: 76ch; }
.page-cv table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.page-cv td { vertical-align: top; }
.page-cv td.cv-datum { width: 200px; padding: 0 28px 28px 0; color: var(--muted); font-size: 14px; line-height: 26.4px; }
.page-cv td.cv-locatie { padding: 0 0 28px; }
.page-cv td p { max-width: 72ch; margin: 0; }
.page-cv td p + p { margin-top: 2px; }
.page-cv td .cv-case-link { margin-top: 8px; font-size: 14px; }
.cv-case-link a { display: inline-block; padding-block: 3px; }
.page-cv td ul { max-width: 72ch; margin: 8px 0 0; }
.page-cv td li { margin-bottom: 6px; }

@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-details { grid-template-columns: 140px minmax(0, 1fr); column-gap: 24px; }
}

@media (max-width: 640px) {
  .page-hero { padding-block: 24px 32px; }
  #breadcrumb { margin-bottom: 20px; }
  .page-heading { flex-direction: column; gap: 20px; }
  .page-heading h1 { font-size: 30px; }
  .portfoliologoklein img { height: 48px; }
  .page-content { padding-block: 32px 44px; }
  .page-content h2 { font-size: 23px; margin-top: 32px; }
  .project-details { display: block; }
  .project-details dt { margin-bottom: 8px; }
  .project-details dd { margin-bottom: 28px; }
  .project-details dd:last-child { margin-bottom: 0; }
  .my-gallery { gap: 12px; }
  .my-gallery figure { height: 120px; }
  .cv-personal { flex-direction: column; gap: 16px; }
  .page-cv table, .page-cv tbody, .page-cv tr, .page-cv td { display: block; width: 100%; }
  .page-cv tr { margin-bottom: 28px; }
  .page-cv td.cv-datum { width: auto; padding: 0 0 6px; }
  .page-cv td.cv-locatie { padding: 0; }
}

@media (max-width: 540px) {
  .portfolio-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

@media print {
  .page-hero { background: none; padding-block: 16px; }
  .page-content { padding-block: 24px; }
  .page-cv tr { break-inside: avoid; }
}
