:root{
    /* Light-first, the way the reference runs: white and a warm off-white,
       with one dark band as the only punctuation. */
    --paper:      #FFFFFF;
    --paper-2:    #F4F3EF;   /* warm off-white, not a neutral grey */
    --ink:        #12181A;
    --ink-soft:   #545F62;
    --line:       #E3E0D8;

    --dark:       #12181A;
    --dark-2:     #0A0F11;
    --line-dark:  #2A363A;
    --bone:       #ECE6DA;
    --bone-dim:   #B6B0A5;
    --muted-dark: #8A9698;

    /* water-teal: blue-leaning, so it reads as water rather than as eco-green */
    --accent:         #0C6A72;   /* on white  */
    --accent-hover:   #08535A;
    --accent-on-dark: #63C7D0;   /* on the dark grounds */

    --display: "Encode Sans Expanded", "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;
    --body: "Encode Sans Expanded", "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;

    --gut: clamp(20px, 5vw, 64px);
    --measure: 54ch;
    color-scheme: light;
  }

  *{ box-sizing: border-box; }

  body{
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: 15px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

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

  a{ color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
  a:focus-visible, button:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; }

  .wrap{
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: var(--gut);
  }

  h1, h2, h3{
    font-family: var(--display);
    font-weight: 700;
    text-wrap: balance;
    margin: 0;
  }

  .eyebrow{
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin: 0 0 clamp(18px, 2.2vw, 28px);
  }

  /* ---------- header: light, with the dark cut of the wordmark ---------- */
  header.site{
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 50;
    /* opaque: a translucent bar turns grey where a dark band scrolls under it */
    background: var(--dark);
    border-bottom: 1px solid var(--line-dark);
  }
  .bar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-block: clamp(16px, 1.8vw, 24px);
  }
  .bar img{ height: clamp(30px, 2.7vw, 38px); width: auto; }
  nav.site ul{
    list-style: none;
    display: flex;
    gap: clamp(11px, 2.6vw, 34px);
    margin: 0; padding: 0;
  }
  nav.site a{
    color: var(--bone-dim);
    text-decoration: none;
    font-size: clamp(10px, 2.4vw, 12px);
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: color .2s ease;
  }
  nav.site a:hover{ color: var(--bone); }

  /* ---------- hero ---------- */
  .hero{
    position: relative;
    isolation: isolate;
    min-height: min(76svh, 640px);
    display: flex;
    align-items: flex-end;
    background: var(--dark-2);
  }
  .hero-img{
    position: absolute; inset: 0; z-index: -2;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: 78% 42%;
  }
  @media (min-width: 760px){
    .hero-img{ object-position: 100% 50%; }
  }
  .hero::after{
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(to bottom, rgba(5,9,11,.46) 0%, rgba(5,9,11,.10) 34%, rgba(5,9,11,.72) 100%);
  }
  @media (max-width: 759px){
    .hero::after{
      background: linear-gradient(to bottom,
        rgba(5,9,11,.42) 0%, rgba(5,9,11,.06) 24%,
        rgba(5,9,11,.62) 50%, rgba(5,9,11,.93) 78%, rgba(5,9,11,.97) 100%);
    }
  }
  .hero-inner{ padding-block: clamp(56px, 12vw, 104px); }
  .hero h1{
    font-size: clamp(27px, 4.3vw, 50px);
    line-height: 1.12;
    letter-spacing: -0.032em;
    max-width: 19ch;
    color: var(--bone);
    text-shadow: 0 2px 26px rgba(5,9,11,.55);
  }
  .hero p.lede{
    margin: clamp(16px, 3vw, 24px) 0 0;
    max-width: 48ch;
    color: var(--bone-dim);
    font-size: clamp(15px, 1.7vw, 19px);
  }
  .hero p.lede em{ font-style: normal; color: var(--accent-on-dark); }
  /* the headline is a hook, so the eyebrow carries the plain what-and-where */
  .hero-eyebrow{ color: var(--accent-on-dark); margin-bottom: clamp(18px, 2.2vw, 28px); }
  .hero-cta{ display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 4vw, 36px); }

  /* ---------- buttons ---------- */
  .btn{
    display: inline-block;
    font-family: var(--body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 14px 26px;
    border-radius: 2px;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
  }
  .btn-solid{ background: var(--accent); color: #FFF; border: 1px solid var(--accent); }
  .btn-solid:hover{ background: var(--accent-hover); border-color: var(--accent-hover); }
  .btn-ghost{ background: transparent; color: var(--ink); border: 1px solid var(--line); }
  .btn-ghost:hover{ border-color: var(--ink); background: rgba(18,24,26,.04); }
  /* on the hero photo the ghost button sits on a dark ground */
  .hero .btn-ghost{ color: var(--bone); border-color: rgba(236,230,218,.45); }
  .hero .btn-ghost:hover{ border-color: var(--bone); background: rgba(236,230,218,.09); }

  /* ---------- sections ---------- */
  section{ padding-block: clamp(64px, 9vw, 112px); }
  /* keep a jumped-to section clear of the sticky header */
  section[id]{ scroll-margin-top: clamp(64px, 7vw, 88px); }
  .section-head{
    max-width: var(--measure);
    margin-inline: auto;
    text-align: center;
  }
  .section-head h2{
    font-size: clamp(22px, 3.1vw, 35px);
    line-height: 1.18;
    letter-spacing: -0.028em;
  }
  /* :not(.eyebrow) &mdash; otherwise this outranks .eyebrow and kills its bottom margin */
  .section-head p:not(.eyebrow){ margin: 18px 0 0; color: var(--ink-soft); }

  /* ---------- intro (white) ---------- */
  .intro{ background: var(--paper); }
  .intro .body{
    max-width: 58ch;
    margin: clamp(22px, 3.4vw, 34px) auto 0;
    text-align: center;
    color: var(--ink-soft);
  }
  .intro .body p + p{ margin-top: 1em; }

  /* ---------- gallery (off-white) ---------- */
  .work{ background: var(--dark); }
  .work .section-head h2{ color: var(--bone); }
  .work .section-head .eyebrow{ color: var(--muted-dark); }
  .work .section-head p{ color: var(--bone-dim); }
  .work .filter{ color: var(--bone-dim); }
  .work .filter:hover{ color: var(--bone); }
  .work .filter[aria-pressed="true"]{ color: var(--bone); border-bottom-color: var(--accent-on-dark); }
  .filters{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(14px, 3vw, 34px);
    margin: clamp(26px, 4vw, 40px) 0 clamp(26px, 4vw, 40px);
  }
  .filter{
    font-family: var(--body);
    background: none;
    border: 0;
    border-bottom: 1px solid transparent;
    padding: 5px 1px;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease;
  }
  .filter:hover{ color: var(--ink); }
  .filter[aria-pressed="true"]{ color: var(--ink); border-bottom-color: var(--accent); }

  /* uniform 4:3 tiles on a real grid, the way the reference lays it out.
     11 of the 14 photos are natively 4:3, so almost nothing gets cropped. */
  .grid{
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  @media (min-width: 620px){ .grid{ grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 1020px){ .grid{ grid-template-columns: repeat(3, 1fr); } }

  .shot{
    margin: 0;                 /* reset the UA figure margin (1em 40px) */
    aspect-ratio: 4 / 3;
    max-width: 100%;
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: #1B2427;
    cursor: zoom-in;
    overflow: hidden;
    font-family: var(--body);
    text-align: left;
    color: inherit;
  }
  .shot img{
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2,.7,.3,1);
  }
  .shot:hover img{ transform: scale(1.035); }
  .shot figcaption{
    position: absolute;
    inset: auto 0 0 0;
    padding: 36px 16px 14px;
    background: linear-gradient(to top, rgba(5,9,11,.9), rgba(5,9,11,0));
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
  }
  .shot:hover figcaption, .shot:focus-visible figcaption{ opacity: 1; }
  .shot .cap-title{ display: block; font-size: 14px; color: var(--bone); }
  .shot .cap-tag{
    display: block; margin-top: 3px;
    font-size: 10px; letter-spacing: .13em; text-transform: uppercase;
    color: var(--accent-on-dark);
  }

  /* ---------- about: the one dark band, split photo | panel ---------- */
  .about{ padding-block: 0; background: var(--paper); }
  .split{ display: grid; grid-template-columns: 1fr; }
  @media (min-width: 900px){ .split{ grid-template-columns: 1fr 1fr; } }
  .split-img{ position: relative; min-height: 340px; background: var(--paper-2); }
  .split-img img{
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: 40% 34%;
  }
  .split-panel{
    background: var(--paper);
    color: var(--ink-soft);
    padding: clamp(40px, 6vw, 92px) var(--gut);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  @media (min-width: 900px){
    .split-panel{ padding-inline: clamp(44px, 5vw, 80px); }
  }
  .split-panel .eyebrow{ color: var(--ink-soft); }
  .split-panel h2{
    color: var(--ink);
    font-size: clamp(22px, 3.1vw, 35px);
    line-height: 1.18;
    letter-spacing: -0.028em;
  }
  .split-panel p{ max-width: 46ch; }
  .split-panel p:first-of-type{ margin-top: 20px; }
  .split-panel strong{ color: var(--ink); font-weight: 600; }

  /* ---------- the still-to-fill markers ---------- */
  .todo{
    display: block;
    border: 1px dashed var(--accent);
    background: rgba(12, 106, 114, .07);
    border-radius: 3px;
    padding: 16px 18px;
    margin-block: 22px 0;
    max-width: var(--measure);
    color: var(--ink-soft);
    font-size: 14px;
  }
  .todo b{
    display: block;
    color: var(--accent);
    font-size: 10px; font-weight: 600;
    letter-spacing: .13em; text-transform: uppercase;
    margin-bottom: 7px;
  }


  /* ---------- contact (white) ---------- */
  .contact{ background: var(--dark); }
  .contact .eyebrow{ color: var(--muted-dark); }
  .contact h2{ color: var(--bone); }
  .contact-text p{ color: var(--bone-dim); }
  .contact .channel-ghost{ border-color: rgba(236,230,218,.34); color: var(--bone); }
  .contact .channel-ghost:hover{ border-color: var(--bone); background: rgba(236,230,218,.08); }
  .contact .channel-primary{ background: var(--accent-on-dark); border-color: var(--accent-on-dark); color: var(--dark); }
  .contact .channel-primary:hover{ background: #8AD5DC; border-color: #8AD5DC; }
  .contact-grid{
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(28px, 5vw, 56px);
    align-items: center;
  }
  @media (min-width: 820px){
    /* a wider right column leaves slack, so the photo can sit in from the edge.
       text centres vertically; the photo overrides with align-self:end. */
    .contact-grid{ grid-template-columns: 1.15fr .85fr; align-items: center; }
  }
  .contact h2{ font-size: clamp(22px, 3.1vw, 35px); letter-spacing: -0.028em; line-height: 1.18; }
  /* same weight as the body copy under "Mijn werk" &mdash; this rule sits after the
     .contact-text p rule above, so it is the one that actually applies */
  .contact p{ color: var(--bone-dim); max-width: 52ch; }

  .channels{ display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 3vw, 30px); }
  .channel{
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 22px; border-radius: 2px; text-decoration: none;
    font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
  }
  .channel svg{ width: 17px; height: 17px; flex: none; }
  .channel-primary{ background: var(--accent); border: 1px solid var(--accent); color: #FFF; }
  .channel-primary:hover{ background: var(--accent-hover); border-color: var(--accent-hover); }
  .channel-ghost{ background: transparent; border: 1px solid var(--line); color: var(--ink); }
  .channel-ghost:hover{ border-color: var(--ink); background: rgba(18,24,26,.04); }

  /* Jan stands on the lower edge of the dark section at every width, not just
     on wide screens &mdash; the panel is often narrower than a desktop window.
     No drop-shadow: it would spill past the section onto the light footer. */
  .figure-jan{
    justify-self: center;
    align-self: end;
    max-width: 250px;
    margin-bottom: calc(-1 * clamp(64px, 9vw, 112px));
  }
  /* height:auto is required &mdash; without it the height attribute stretches the image */
  .figure-jan img{ width: 100%; height: auto; }
  @media (min-width: 820px){
    .figure-jan{ justify-self: center; max-width: 320px; }
  }

  /* ---------- footer: dark close ---------- */
  footer.site{ background: var(--paper); border-top: 1px solid var(--line); }
  .foot-top{
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(30px, 5vw, 64px);
    padding-block: clamp(44px, 6vw, 72px);
  }
  @media (min-width: 720px){
    .foot-top{ grid-template-columns: 1.6fr 1fr 1.2fr; }
  }
  .foot-brand img{ height: 26px; width: auto; }
  .foot-brand p{
    margin: 18px 0 0;
    max-width: 34ch;
    font-size: 14px;
    color: var(--ink-soft);
  }
  .foot-col h2{
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 16px;
  }
  .foot-col ul{ list-style: none; margin: 0; padding: 0; }
  .foot-col li + li{ margin-top: 9px; }
  .foot-col li, .foot-col a{ font-size: 14px; color: var(--ink-soft); }
  .foot-col a{ text-decoration: none; transition: color .2s ease; }
  .foot-col a:hover{ color: var(--accent); }
  .foot-col a.mail{ color: var(--accent); font-weight: 600; }
  .foot-col a.mail:hover{ color: var(--accent-hover); }

  .foot-social{ display: flex; gap: 10px; margin-top: 20px; }
  .foot-social a{
    display: grid; place-items: center;
    width: 38px; height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink-soft);
    transition: all .2s ease;
  }
  .foot-social a:hover{ background: var(--accent); border-color: var(--accent); color: #FFF; }
  .foot-social svg{ width: 17px; height: 17px; }

  .foot-bottom{
    border-top: 1px solid var(--line);
    padding-block: 20px;
    display: flex; flex-wrap: wrap;
    align-items: center; justify-content: space-between;
    gap: 6px 24px;
  }
  .foot-bottom p{ margin: 0; font-size: 12px; color: var(--ink-soft); letter-spacing: .03em; }

  .site-credit{ display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
  .credit-logo{ display: inline-block; width: 82px; line-height: 0; mix-blend-mode: multiply; }
  .credit-logo img{ width: 82px; height: auto; }
  .site-credit:hover{ text-decoration: underline; text-underline-offset: 4px; }

  /* ---------- lightbox ---------- */
  .lightbox{
    position: fixed; inset: 0; z-index: 100;
    background: rgba(8, 12, 14, .97);
    display: flex; align-items: center; justify-content: center; flex-direction: column;
    padding: clamp(16px, 4vw, 48px);
    padding-top: calc(clamp(16px, 4vw, 48px) + env(safe-area-inset-top, 0px));
    padding-bottom: calc(clamp(16px, 4vw, 48px) + env(safe-area-inset-bottom, 0px));
    color: var(--bone);
  }
  .lightbox[hidden]{ display: none; }
  .lightbox img{ max-width: 100%; max-height: 76vh; width: auto; object-fit: contain; }
  .lb-cap{ margin-top: 18px; text-align: center; }
  .lb-cap .t{
    display: block; font-family: var(--display);
    font-size: clamp(14px, 1.7vw, 17px); font-weight: 600; letter-spacing: -0.02em;
  }
  .lb-cap .s{
    display: block; margin-top: 5px;
    font-size: 10px; letter-spacing: .13em; text-transform: uppercase;
    color: var(--accent-on-dark); font-variant-numeric: tabular-nums;
  }
  .lb-btn{
    position: absolute;
    background: transparent;
    border: 1px solid var(--line-dark);
    color: var(--bone);
    width: 46px; height: 46px; border-radius: 50%;
    font-size: 19px; line-height: 1; cursor: pointer;
    display: grid; place-items: center;
    transition: all .2s ease;
  }
  .lb-btn:hover{ background: var(--bone); color: var(--dark); border-color: var(--bone); }
  .lb-close{ top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; }
  .lb-prev{ left: 12px; top: 50%; transform: translateY(-50%); }
  .lb-next{ right: 12px; top: 50%; transform: translateY(-50%); }

  @media (prefers-reduced-motion: reduce){
    *{ animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .shot:hover img{ transform: none; }
  }
