/*
  Concept "Punt.": Unasked as its reels look. Black and off-white, one huge serif, and the full stop of "Unasked." as
  the motif. Every statement ends in one, the intro's full stop swells to fill the screen, the cursor is one, and the
  seven days of the guarantee are seven full stops filled in one by one. The only colour on the page is the work: the
  painter's new site.

  Palette (the reels' own):
    Nacht    #0b0b0a  the reels' background, every dark section
    Papier   #f3f0ea  the reels' type, every light section
    As       #8c877f  quiet text on Nacht (5.4:1)
    Grafiet  #5f5b54  quiet text on Papier (5.9:1)
    Lijn     Papier at 18%: hairlines on Nacht

  Type: Instrument Serif for everything said out loud, set huge with tight tracking (the wordmark's face); Inter for
  reading and for small labels, sentence case. Scale on a 1.333 ratio from 17px body: 13, 17, 22.7, 30, 40, then the
  display sizes, fluid to the viewport.

  Signature: the repaint. The old site sits in a rounded window, as in the reels. Scrolling greys it out, then the new
  site slides over it in seven shutters from alternating sides.

  Motion: heavy and certain. Expo-out entrances, things rising out of masks rather than fading, scroll-scrubbed
  wherever the visitor is in control, nothing bouncing except a button let go.

  Checked against the generated look: no cream with terracotta, no acid accent, no cards with shadows, no all-caps
  labels, no arrows after links.
*/

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --nacht: #0b0b0a;
  --papier: #f3f0ea;
  --as: #8c877f;
  --grafiet: #5f5b54;
  --lijn: rgb(243 240 234 / 0.18);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --s-1: 0.8125rem;
  --s1: 1.4166rem;
  --s2: 1.875rem;
  --s3: 2.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--nacht);
  color: var(--papier);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--papier); color: var(--nacht); }
.licht ::selection { background: var(--nacht); color: var(--papier); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 2px; }
img { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.licht { background: var(--papier); color: var(--nacht); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--papier);
  color: var(--nacht);
  font: 500 1rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:focus-visible { outline-color: var(--papier); }
.licht .btn { background: var(--nacht); color: var(--papier); }
.btn:disabled { opacity: 0.6; cursor: progress; }

/* The header inverts whatever it crosses, so it reads on Nacht and Papier alike. */
.site-head {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px var(--gutter);
  color: var(--papier);
  mix-blend-mode: difference;
}
.wordmark { font: 400 1.75rem/1 var(--serif); letter-spacing: -0.02em; text-decoration: none; }
.site-head nav { display: none; gap: 28px; margin-left: auto; font-size: 0.9375rem; }
.site-head nav a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.site-head nav a:hover { background-size: 100% 1px; }
.site-head .btn { min-height: 42px; padding: 0 18px; margin-left: auto; font-size: 0.9375rem; }
@media (min-width: 760px) {
  .site-head nav { display: flex; }
  .site-head .btn { margin-left: 0; }
}

/* Intro: only with motion; site.js plays it and removes it. */
.intro { display: none; }
.motion .intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--nacht);
  color: var(--papier);
}
.intro-mark { visibility: hidden; font: 400 clamp(4rem, 17vw, 15rem)/1 var(--serif); letter-spacing: -0.035em; white-space: nowrap; }
.intro-mark .dot { display: inline-block; }
.bol { position: fixed; left: 0; top: 0; border-radius: 50%; background: var(--papier); visibility: hidden; }

/* Hero */
.hero { min-height: 100svh; display: flex; align-items: flex-end; padding: 112px 0 40px; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--as); font-size: 0.9375rem; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--papier); }
.hero h1 {
  margin: 20px 0 clamp(32px, 5vw, 56px);
  font-size: min(20vw, 17rem);
  line-height: 0.86;
  letter-spacing: -0.045em;
}
.hero-foot { display: grid; gap: 28px; padding-top: 24px; border-top: 1px solid var(--lijn); }
.lead { max-width: 33em; font-size: 1.1875rem; line-height: 1.5; }
.act { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.note { color: var(--as); font-size: 0.9375rem; }
@media (min-width: 900px) {
  .hero-foot { grid-template-columns: 1fr auto; align-items: end; gap: 64px; }
  .act { align-items: flex-end; text-align: right; }
}

/* The ticker: what you get, in a line that runs with your scrolling. */
.ticker { overflow: hidden; border-block: 1px solid var(--lijn); padding: 18px 0 22px; }
.track { display: flex; width: max-content; font: 400 clamp(2.5rem, 6.4vw, 6rem)/1 var(--serif); letter-spacing: -0.03em; will-change: transform; }
.track span { padding-right: 0.55em; white-space: nowrap; }
.track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--papier); }

/* The repaint. Without motion: the two sites one under the other. With motion: one window, pinned. */
.repaint { margin: 0; padding: clamp(64px, 9vw, 128px) var(--gutter); }
.stage { display: grid; gap: 20px; max-width: var(--max); margin: 0 auto; }
.pane {
  position: relative;
  height: min(80svh, 760px);
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 0 0 1px var(--lijn);
  container-type: inline-size;
}
.label {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  padding: 6px 14px 7px;
  border-radius: 999px;
  background: var(--nacht);
  color: var(--papier);
  font: 500 var(--s-1)/1.2 var(--sans);
  box-shadow: 0 0 0 1px var(--lijn);
}
.repaint figcaption { max-width: var(--max); margin: 16px auto 0; color: var(--as); font-size: 0.875rem; }

.motion .repaint { height: 100svh; display: flex; flex-direction: column; padding: 84px var(--gutter) 20px; }
.motion .stage { position: relative; display: block; flex: 1; width: 100%; overflow: hidden; border-radius: 22px; box-shadow: 0 0 0 1px var(--lijn); }
.motion .pane { position: absolute; inset: 0; height: auto; border-radius: 0; box-shadow: none; }
.motion .repaint figcaption { margin-top: 12px; width: 100%; }

.page { position: absolute; inset: 0; overflow: hidden; }

/* The before: an older fixed-width site, shrunk onto a phone as phones show it. Never a joke. */
.before {
  background: #c9d4e0 linear-gradient(#e3e9f0, #b9c6d4);
  color: #222;
  font: 1em/1.45 Verdana, Tahoma, "DejaVu Sans", sans-serif;
}
.old {
  /* 1em is 13px on the 520px-wide original; narrower screens shrink it as a whole. */
  font-size: min(13px, 100cqw * 13 / 520);
  width: 40em;
  min-height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 0 1.2em rgb(0 0 0 / 0.25);
}
.old-photo { height: 13em; background: #999 url("img/gereedschap.webp") 0 0 / 100% 100% no-repeat; }
.old .bar {
  margin: 0;
  padding: 0.5em;
  background: #2b4c7e;
  color: #fff;
  font: bold 1.25em/1.3 Arial, Helvetica, sans-serif;
  text-align: center;
  border-top: 3px solid #c9d3e3;
  border-bottom: 3px solid #1d3558;
}
.old table { width: 100%; flex: 1; border-collapse: collapse; }
.old td { vertical-align: top; padding: 1.2em; }
.old .menu { width: 8.5em; background: #e9ecef; border-right: 1px solid #c4c9cf; }
.old .menu span { display: block; color: #1a0dab; text-decoration: underline; margin-bottom: 0.7em; }
.old .welkom { font: bold 1.5em/1.3 Arial, Helvetica, sans-serif; color: #2b4c7e; }
.old p { margin: 0 0 1em; }
.old ul { margin: 0.3em 0 1em; padding-left: 1.4em; }
.old .thumbs { display: flex; flex-wrap: wrap; gap: 0.8em; }
.old .thumb { display: inline-block; padding: 0.3em; border: 1px solid #bbb; background: #f4f4f4; }
.old .thumb img { width: 11em; height: 8.25em; object-fit: cover; }
.old .counter { margin: 0 1.2em; padding: 1.2em 0 1.6em; border-top: 1px solid #ddd; color: #555; font-size: 0.85em; text-align: center; }
.old .foot { margin: 0; padding: 0.6em; background: #2b4c7e; color: #fff; font-size: 0.85em; text-align: center; }
.old .counter b { padding: 0 0.3em; background: #222; color: #fff; font: 1em/1.5 "Courier New", monospace; letter-spacing: 0.15em; }

/* The after: the made-up painter's new site, in its own look and its own colour. */
.after {
  --ossenbloed: #5c1e1a;
  --oker: #f0c46a;
  display: flex;
  flex-direction: column;
  /* 1em is 15px on a 390px-wide phone, whatever size the page is drawn at. */
  font: 400 clamp(11px, 100cqw * 15 / 390, 17px)/1.45 var(--sans);
  background: var(--ossenbloed);
  color: #fff;
}
.after .shot { position: relative; flex: 0 0 50%; display: flex; flex-direction: column; justify-content: space-between; }
.after .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 20% 62%; }
.after .shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgb(30 10 8 / 0.55), transparent 28%, transparent 45%, var(--ossenbloed) 98%);
}
.after .top, .after .headline { position: relative; z-index: 1; }
.after .top { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: 1em 1.1em 1em 5.4em; }
.after .name { font-weight: 700; font-size: 1.15em; letter-spacing: -0.03em; }
.after .call {
  display: inline-block;
  padding: 0.6em 1em;
  border-radius: 2em;
  background: #fff;
  color: var(--ossenbloed);
  font-weight: 650;
  font-size: 0.85em;
  line-height: 1.2;
}
.after .headline { margin: 0; padding: 0 0.42em 0.2em; font-size: 2.5em; font-weight: 700; line-height: 0.98; letter-spacing: -0.045em; }
.after .body { flex: 1; padding: 0.9em 1.1em 4.6em; }
.after .intro-text { margin: 0 0 0.8em; color: #f3dcd6; }
.after .services div { padding: 0.5em 0; border-top: 1px solid rgb(255 255 255 / 0.22); }
.after .services b { display: block; font-weight: 650; }
.after .services span { font-size: 0.9em; color: #f3dcd6; }
.after .review { margin: 0.8em 0; font-size: 0.95em; }
.after .stars { color: var(--oker); letter-spacing: 0.12em; font-family: "Apple Symbols", "Segoe UI Symbol", "DejaVu Sans", sans-serif; }
.after .body > .call { display: none; }
@container (min-width: 720px) {
  .after { flex-direction: row; font-size: clamp(14px, 100cqw * 17 / 1440, 18px); }
  .after .shot { flex: 0 0 52%; }
  .after .shot img { object-position: 30% 50%; }
  .after .shot::after { background: linear-gradient(rgb(30 10 8 / 0.6), transparent 30%, transparent 55%, rgb(30 10 8 / 0.7)); }
  .after .headline { font-size: 4.2em; padding: 0 0.4em 0.95em; }
  .after .body { display: flex; flex-direction: column; justify-content: center; padding: 3em 3.2em; }
  .after .intro-text { font-size: 1.25em; margin-bottom: 1.4em; }
  .after .body > .call { display: inline-block; align-self: flex-start; font-size: 1em; }
}

/* Section headings: the serif, huge. */
main h2 { font-size: clamp(3.25rem, 9vw, 8.5rem); line-height: 0.92; letter-spacing: -0.04em; }

/* Zo werkt het: three steps; a track that moves sideways on a wide screen with motion. */
.coats { padding: clamp(80px, 11vw, 160px) 0; }
.steps { list-style: none; margin: clamp(40px, 6vw, 80px) auto 0; padding: 0 var(--gutter); max-width: var(--max); display: grid; gap: 56px; }
.coat { display: grid; align-content: start; gap: 14px; }
.coat .n { font: 400 clamp(7rem, 20vw, 17rem)/0.8 var(--serif); letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px var(--nacht); }
.coat h3 { font-size: var(--s3); line-height: 1.05; letter-spacing: -0.02em; }
.coat p { max-width: 30em; color: var(--grafiet); }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
  .motion .coats { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 96px 0 64px; }
  .motion .coats .steps { display: flex; width: max-content; max-width: none; margin-left: 0; margin-right: 0; gap: 0; }
  .motion .coat { width: min(66vw, 980px); padding-right: 8vw; grid-template-columns: auto 1fr; column-gap: 48px; align-items: end; }
  .motion .coat .n { grid-row: span 2; font-size: clamp(14rem, 26vw, 26rem); }
  .motion .coat h3 { font-size: clamp(2.5rem, 4vw, 4rem); align-self: end; }
}

/* Wat je krijgt: rows that fill with Papier under the pointer. */
.gets { padding: clamp(80px, 11vw, 160px) 0; }
.kaart { list-style: none; margin: 48px 0 0; padding: 0; border-bottom: 1px solid var(--lijn); }
.kaart li { position: relative; display: grid; gap: 8px; padding: 26px 0 28px; border-top: 1px solid var(--lijn); isolation: isolate; }
.kaart h3 { font-size: var(--s2); line-height: 1.1; letter-spacing: -0.015em; }
.kaart p { max-width: 34em; color: var(--as); }
@media (hover: hover) {
  .kaart li::before {
    content: "";
    position: absolute;
    inset: 0 calc(-1 * var(--gutter));
    z-index: -1;
    background: var(--papier);
    transform: scaleY(0);
    transform-origin: 50% 100%;
    transition: transform 0.5s cubic-bezier(0.7, 0, 0.2, 1);
  }
  .kaart li { transition: color 0.35s; }
  .kaart li p { transition: color 0.35s; }
  .kaart li:hover { color: var(--nacht); }
  .kaart li:hover p { color: var(--grafiet); }
  .kaart li:hover::before { transform: scaleY(1); }
}
@media (min-width: 960px) {
  .gets .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .gets h2 { position: sticky; top: 112px; }
  .kaart { margin-top: 0; }
  .kaart li { grid-template-columns: 5fr 6fr; gap: 32px; align-items: baseline; padding: 34px 0 36px; }
}

/* Wat het kost */
.price { padding: clamp(80px, 11vw, 160px) 0; }
.price .free { margin: 40px 0 56px; max-width: 16em; font: 400 clamp(2.25rem, 5.4vw, 5rem)/1.04 var(--serif); letter-spacing: -0.03em; }
.bedrag {
  --w: 100%;
  padding: 0 0.12em;
  background: linear-gradient(var(--nacht), var(--nacht)) 0 0 / var(--w) 100% no-repeat;
  color: var(--papier);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.price .body { display: grid; gap: 28px; font-size: 1.1875rem; line-height: 1.55; }
.price .body .bedrag { font-weight: 500; }
.num { font: 400 1.6em/1 var(--serif); }
.stand { color: var(--grafiet); }
.fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 56px; padding-top: 20px; border-top: 1px solid rgb(11 11 10 / 0.2); color: var(--grafiet); font-size: 0.9375rem; }
.fine a { color: var(--nacht); }
@media (min-width: 900px) {
  .price .body { grid-template-columns: 1fr 1fr; gap: 64px; }
}

/* Garantie: a seven, and seven full stops for the days. */
.guarantee { padding: clamp(80px, 11vw, 160px) 0; overflow: hidden; }
.zeven { font: 400 clamp(16rem, 52vw, 44rem)/0.72 var(--serif); letter-spacing: -0.06em; margin: 0 0 24px -0.04em; }
.dagen { display: flex; gap: 10px; margin-bottom: 28px; }
.dagen span { width: 14px; height: 14px; border-radius: 50%; background: var(--papier); box-shadow: inset 0 0 0 1px var(--papier); }
.guarantee h2 { font-size: clamp(2.5rem, 5.6vw, 5.25rem); margin-bottom: 28px; }
.guarantee .text > p { max-width: 34em; font-size: 1.1875rem; line-height: 1.55; }
.guarantee .small { margin-top: 20px; color: var(--as); font-size: 0.9375rem; }
@media (min-width: 960px) {
  .guarantee .wrap { display: grid; grid-template-columns: auto 1fr; gap: 72px; align-items: end; }
  .zeven { margin-bottom: 0; }
}

/* Wie ben ik: said out loud, word by word. */
.me { padding: clamp(80px, 11vw, 160px) 0; }
.me .text { margin-top: 40px; }
.say { max-width: 22em; font: 400 clamp(1.9rem, 4vw, 3.6rem)/1.1 var(--serif); letter-spacing: -0.02em; }
.me .text p + p { margin-top: 32px; max-width: 34em; color: var(--grafiet); }
.me .text p + p a { color: var(--nacht); }
@media (min-width: 960px) {
  .me .wrap { display: grid; grid-template-columns: 4fr 8fr; gap: 64px; }
  .me .text { margin-top: 0.6em; }
}

/* Aanvragen */
.ask { padding: clamp(96px, 12vw, 176px) 0 clamp(64px, 8vw, 112px); }
.ask h2 { max-width: 9em; }
.ask .body { margin-top: 56px; max-width: 900px; }
.fields { display: grid; gap: 8px 40px; }
.field { display: grid; gap: 4px; padding-bottom: 16px; }
.field label { color: var(--as); font-size: 0.875rem; }
.field input {
  width: 100%;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 1px solid var(--lijn);
  border-radius: 0;
  background: transparent;
  color: var(--papier);
  font: 400 1.375rem/1.3 var(--sans);
  transition: border-color 0.3s;
}
.field input:hover { border-bottom-color: var(--as); }
.field input:focus { outline: none; border-bottom: 1px solid var(--papier); box-shadow: 0 1px 0 var(--papier); }
.field input[aria-invalid="true"] { border-bottom: 2px solid var(--papier); }
.fax { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ask .btn { margin-top: 28px; min-height: 60px; padding: 0 36px; font-size: 1.0625rem; }
.form-msg:not(:empty) { margin-top: 18px; font-weight: 500; }
.form-note { margin-top: 28px; max-width: 34em; color: var(--as); font-size: 0.9375rem; }
.success { max-width: 16em; font: 400 clamp(2rem, 4vw, 3.25rem)/1.1 var(--serif); letter-spacing: -0.02em; outline: none; }
@media (min-width: 760px) { .fields { grid-template-columns: 1fr 1fr; } }

/* Footer: the wordmark across the whole width. */
.site-foot { padding: 0 0 28px; color: var(--as); font-size: 0.875rem; overflow: hidden; }
.big-mark {
  margin: 0 0 28px;
  padding: 0 var(--gutter);
  color: var(--papier);
  font: 400 23.5vw/0.86 var(--serif);
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.site-foot a { color: var(--papier); }

/* The cursor: a full stop that follows, inverting what it crosses. Added by site.js on a fine pointer. */
.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 90;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--papier);
  mix-blend-mode: difference;
  pointer-events: none;
  transition: width 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), height 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), margin 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cursor.big { width: 72px; height: 72px; margin: -36px 0 0 -36px; }

/* Bedankt */
.thanks-page .site-head { position: absolute; }
.thanks { min-height: 72svh; display: flex; flex-direction: column; justify-content: flex-end; gap: 24px; padding: 160px 0 96px; }
.thanks h1 { font-size: clamp(4rem, 14vw, 12rem); line-height: 0.9; letter-spacing: -0.045em; }
.thanks p { max-width: 30em; font-size: 1.1875rem; }
.thanks-page .site-foot { padding-top: 28px; border-top: 1px solid var(--lijn); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
