/* Kwetsbaar Evenwicht — shared look for /boek and its pages.
   Taken from the book itself: the chapter-page teal, the pale circuit lines,
   Playfair Display (the title on the title page) and Crimson Pro (the body text). */
:root {
  color-scheme: light;
  --teal: #5e8f8c;        /* chapter pages */
  --teal-deep: #24403e;   /* dark band, text on light */
  --teal-ink: #16282a;    /* header, film frame */
  --circuit: #d5dcda;     /* the line drawing */
  --paper: #fbfaf7;       /* page white */
  --mist: #eef2f0;        /* soft band */
  --ink: #1d2626;
  --muted: #5a6a68;
  --line: #d9e0de;
  --gold: #e8d23a;        /* the yellow of the cover title, used sparingly */
  --white: #ffffff;
  --title: "Playfair Display", Georgia, serif;
  --serif: "Crimson Pro", Georgia, serif;
  --sans: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: max(16px, 5vw);
  --max: 1180px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 19px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
html[data-lang="en"] [lang="nl"], html[data-lang="nl"] [lang="en"] { display: none !important; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* HEADER: house name left, book menu, order button */
.bk-head { position: sticky; top: 0; z-index: 50; background: var(--teal-ink); color: #fff; }
.bk-head .wrap { display: flex; align-items: center; gap: 18px 28px; min-height: 64px; flex-wrap: wrap; padding-top: calc(env(safe-area-inset-top, 0px) + 8px); padding-bottom: 8px; }
.bk-house { font-family: var(--sans); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: rgba(255,255,255,.7); white-space: nowrap; }
.bk-house:hover { color: #fff; }
.bk-title { font-family: var(--title); font-size: 21px; text-decoration: none; white-space: nowrap; }
.bk-menu { display: flex; gap: 22px; margin-left: auto; font-family: var(--sans); font-size: 14px; }
.bk-menu a { text-decoration: none; color: rgba(255,255,255,.78); padding: 6px 0; border-bottom: 1px solid transparent; white-space: nowrap; }
.bk-menu a:hover { color: #fff; }
.bk-menu a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }
.bk-order { font-family: var(--sans); font-size: 14px; font-weight: 600; text-decoration: none; background: #fff; color: var(--teal-ink); padding: 9px 16px; border-radius: 6px; white-space: nowrap; }
.bk-order:hover { background: var(--gold); }
.bk-lang { display: flex; gap: 4px; font-family: var(--sans); font-size: 12px; letter-spacing: .14em; color: rgba(255,255,255,.35); }
.bk-lang button { background: none; border: 0; padding: 4px 2px; font: inherit; letter-spacing: inherit; color: rgba(255,255,255,.7); cursor: pointer; }
.bk-lang button[aria-pressed="true"] { color: var(--gold); }
@media (max-width: 1100px) {
  /* phones and small screens: way back to the house on the second row, next to the language switch */
  .bk-house { display: block; order: 3; flex: 1 1 calc(100% - 120px); font-size: 11px; letter-spacing: .14em; }
  .bk-house::before { content: "← "; }
  .bk-lang { order: 4; margin-left: auto; }
  .bk-menu { order: 5; width: 100%; margin: 0; overflow-x: auto; gap: 20px; scrollbar-width: none; padding-bottom: 2px; }
  .bk-menu::-webkit-scrollbar { display: none; }
  .bk-order { margin-left: auto; }
}

/* TYPE */
.eyebrow { font-family: var(--sans); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--teal); margin: 0; }
h1, h2, h3 { font-family: var(--title); font-weight: 400; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.08; color: var(--teal-deep); }
h3 { font-size: clamp(22px, 2vw, 27px); line-height: 1.2; color: var(--teal-deep); }
p { margin: 0; }
.lead { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.5; color: var(--ink); }
.muted { color: var(--muted); }
.prose { display: grid; gap: 18px; max-width: 64ch; }
.more { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--teal); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; width: max-content; max-width: 100%; }
.more:hover { color: var(--teal-deep); }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 22px; border-radius: 8px; font-family: var(--sans); font-size: 16px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn.solid { background: #fff; color: #111; }
.btn.solid:hover { background: var(--gold); }
.btn.line { color: #fff; border-color: rgba(255,255,255,.85); background: transparent; }
.btn.line:hover { background: rgba(255,255,255,.12); }
.btn.teal { background: var(--teal); color: #fff; }
.btn.teal:hover { background: var(--teal-deep); }
.btn.ghost { color: var(--teal-deep); border-color: var(--teal); background: transparent; }
.btn.ghost:hover { background: var(--mist); }

/* SECTIONS */
.sec { padding: clamp(64px, 9vw, 120px) 0; }
.sec.mist { background: var(--mist); }
.sec.teal { background: var(--teal); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.sec.teal h2, .sec.teal h3 { color: #fff; }
.sec.teal .eyebrow { color: rgba(255,255,255,.75); }
.sec.deep { background: var(--teal-ink); color: #fff; }
.sec.deep h2, .sec.deep h3 { color: #fff; }
.sec.deep .eyebrow { color: var(--gold); }

/* the circuit drawing, as in the book: pale lines growing from an edge */
.circuit { position: absolute; z-index: -1; pointer-events: none; color: rgba(255,255,255,.22); width: min(46vw, 560px); height: auto; }
.circuit.right { right: -40px; top: -20px; }
.circuit.left { left: -60px; bottom: -40px; transform: scaleX(-1) rotate(180deg); }
.circuit.ink { color: var(--circuit); }

/* PAGE HEAD on sub pages */
.page-head { background: var(--teal); color: #fff; position: relative; overflow: hidden; isolation: isolate; padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 7vw, 88px); }
.page-head .wrap { display: grid; gap: 16px; }
.page-head h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.02; color: #fff; max-width: 16ch; }
.page-head p { color: rgba(255,255,255,.88); max-width: 56ch; font-size: clamp(19px, 1.6vw, 22px); }
.page-head .eyebrow { color: rgba(255,255,255,.75); }

/* REVIEWS */
.quote { margin: 0; display: grid; gap: 16px; }
.quote blockquote { margin: 0; font-family: var(--title); font-style: italic; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.3; color: inherit; }
.quote figcaption { font-family: var(--sans); font-size: 14px; letter-spacing: .04em; }
.quote figcaption span { display: block; opacity: .75; }

/* NEXT LINKS: cards to the other pages */
.next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.next a { display: grid; gap: 6px; align-content: start; padding: 22px 22px 20px; background: #fff; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.next a:hover { border-color: var(--teal); }
.next small { font-family: var(--sans); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); }
.next b { font-family: var(--title); font-weight: 400; font-size: 24px; line-height: 1.2; color: var(--teal-deep); }
.next span { color: var(--muted); font-size: 17px; }
@media (max-width: 860px) { .next { grid-template-columns: minmax(0, 1fr); } }

/* FOOTER */
.bk-foot { background: var(--teal-ink); color: rgba(255,255,255,.7); font-family: var(--sans); font-size: 14px; }
.bk-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; padding-top: 32px; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 36px); }
.bk-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.bk-foot a { text-decoration: none; color: rgba(255,255,255,.8); }
.bk-foot a:hover { color: #fff; }
.bk-foot .missing { color: var(--gold); }

/* closing band on the excerpt page */
.end.dark { background: var(--teal-ink); color: #fff; }
.end.dark h2 { color: #fff; }
.end.dark p { color: rgba(255,255,255,.8); }
.end.dark .eyebrow, .end.dark .kicker { color: var(--gold); }

/* the snake drawing from the book (page 143), recoloured with the text colour */
.snake { display: block; aspect-ratio: 900 / 610; background: currentColor; -webkit-mask: url(/boek/slang.png) center / contain no-repeat; mask: url(/boek/slang.png) center / contain no-repeat; }
.snake.mark { width: clamp(110px, 12vw, 160px); color: var(--teal); margin-top: 18px; }
.snake.bg { position: absolute; z-index: -1; pointer-events: none; color: rgba(255,255,255,.16); width: min(44vw, 520px); right: -40px; bottom: -30px; }

/* MOTION (boek.js adds .motion only when the visitor allows motion) */
.motion .reveal { opacity: 0; translate: 0 22px; transition: opacity .9s ease var(--delay, 0ms), translate .9s cubic-bezier(.2,.7,.2,1) var(--delay, 0ms); }
.motion .reveal.in { opacity: 1; translate: 0 0; }
.motion .circuit.reveal { opacity: 1; translate: none; stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 3.2s cubic-bezier(.3,.6,.2,1) .2s; }
.motion .circuit.reveal.in { stroke-dashoffset: 0; }
.hero-film { animation: none; }

/* ROTATOR: one statement at a time */
.rotator { display: grid; gap: 28px; max-width: 880px; }
.rot-stage { display: grid; min-height: 3.2em; font-family: var(--title); font-size: clamp(22px, 2.3vw, 30px); line-height: 1.3; }
.rot-item { grid-area: 1 / 1; margin: 0; }
.rotator.live .rot-item { opacity: 0; translate: 0 14px; transition: opacity .7s ease, translate .7s ease; pointer-events: none; }
.rotator.live .rot-item.on { opacity: 1; translate: 0 0; pointer-events: auto; }
.rotator:not(.live) .rot-stage { gap: 10px; min-height: 0; }
.rot-bars { display: flex; gap: 8px; }
.rot-bars button { position: relative; width: 44px; height: 14px; padding: 0; border: 0; background: none; cursor: pointer; }
.rot-bars button::before, .rot-bars button::after { content: ""; position: absolute; left: 0; top: 6px; height: 2px; border-radius: 2px; }
.rot-bars button::before { right: 0; background: rgba(255,255,255,.3); }
.rot-bars button::after { width: 0; background: var(--gold); }
.rot-bars button.on::after { animation: rotfill var(--dur, 4s) linear forwards; }
.rotator.paused .rot-bars button.on::after { animation-play-state: paused; }
@keyframes rotfill { to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .rot-bars button.on::after { animation: none; width: 100%; } }

/* calmer statement list */
.statements li { font-size: clamp(19px, 1.7vw, 23px) !important; }

/* PHOTO HEADS: a real image behind the page title, darkened with the book's colours */
.page-head.photo { background: var(--teal-ink); }
.page-head.photo .ph-img { position: absolute; inset: 0; z-index: -2; background: var(--img) center / cover no-repeat; transform: scale(1.06); }
.motion .page-head.photo .ph-img { animation: drift 24s ease-in-out infinite alternate; }
.page-head.photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(22,40,42,.92) 0%, rgba(22,40,42,.72) 45%, rgba(94,143,140,.35) 100%); }
@keyframes drift { from { transform: scale(1.06) translate(0, 0); } to { transform: scale(1.14) translate(-1.5%, -1%); } }

/* CINE: one statement at a time over a full-width image or film (press page) */
.cine { position: relative; isolation: isolate; overflow: hidden; background: var(--teal-ink); color: #fff; min-height: clamp(460px, 70vh, 680px); display: grid; align-items: end; }
.cine-slide { position: absolute; inset: 0; z-index: -2; opacity: 0; transition: opacity 1.4s ease; }
.cine-slide.on { opacity: 1; }
.cine-slide img, .cine-slide video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.cine-slide.on img, .cine-slide.on video { animation: kenburns 7s ease-out forwards; }
.cine::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(14,26,27,.92) 0%, rgba(14,26,27,.55) 45%, rgba(14,26,27,.15) 100%); }
.cine .wrap { padding-top: 80px; padding-bottom: clamp(40px, 6vw, 72px); display: grid; gap: 22px; }
.cine .eyebrow { color: var(--gold); }
.cine .rot-stage { font-size: clamp(26px, 3.2vw, 44px); line-height: 1.2; max-width: 22ch; min-height: 2.6em; }
.cine .rot-stage .rot-item { text-shadow: 0 2px 20px rgba(0,0,0,.35); }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.14); } }
@media (prefers-reduced-motion: reduce) { .cine-slide.on img, .cine-slide.on video, .page-head.photo .ph-img { animation: none; } }

/* TWO WORLDS: nature and technology side by side, the question in between */
.worlds { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(420px, 62vh, 620px); background: var(--teal-ink); color: #fff; overflow: hidden; isolation: isolate; }
.worlds .side { position: relative; overflow: hidden; }
.worlds .side video, .worlds .side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.worlds .side::after { content: ""; position: absolute; inset: 0; }
.worlds .nature::after { background: linear-gradient(90deg, rgba(14,26,27,.25), rgba(14,26,27,.55)); }
.worlds .tech { background: radial-gradient(80% 70% at 30% 50%, #22413f 0%, #0f1c1d 70%); }
.worlds .tech::after { background: linear-gradient(270deg, rgba(14,26,27,.2), rgba(14,26,27,.6)); }
.worlds .tech .circuit { position: absolute; z-index: 0; width: 120%; left: -10%; top: -6%; right: auto; color: rgba(232,210,58,.32); }
.worlds .label { position: absolute; z-index: 2; bottom: 22px; font-family: var(--sans); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.worlds .nature .label { left: var(--gutter); }
.worlds .tech .label { right: var(--gutter); }
.worlds .middle { position: absolute; z-index: 3; inset: 0; display: grid; place-items: center; pointer-events: none; padding: 0 var(--gutter); }
.worlds .middle p { max-width: 20ch; text-align: center; font-family: var(--title); font-size: clamp(26px, 3.2vw, 44px); line-height: 1.2; text-shadow: 0 2px 24px rgba(0,0,0,.5); }
.worlds .seam { position: absolute; z-index: 2; top: 0; bottom: 0; left: 50%; width: 1px; background: linear-gradient(180deg, transparent, var(--gold), transparent); }
.motion .worlds .nature { translate: -6% 0; transition: translate 1.6s cubic-bezier(.2,.7,.2,1); }
.motion .worlds .tech { translate: 6% 0; transition: translate 1.6s cubic-bezier(.2,.7,.2,1); }
.motion .worlds.in .nature, .motion .worlds.in .tech { translate: 0 0; }
@media (max-width: 760px) { .worlds { grid-template-columns: 1fr; grid-template-rows: 260px 260px; } .worlds .seam { top: 50%; bottom: auto; left: 0; right: 0; width: auto; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); } }
.worlds .middle { background: radial-gradient(38% 46% at 50% 50%, rgba(14,26,27,.62), rgba(14,26,27,0) 100%); }

/* TWO WORLDS, ONE IMAGE: nature and technology melt into each other, the border sways like a balance */
.worlds { display: block; }
.worlds .side { position: absolute; inset: 0; translate: none !important; }
.worlds .tech { z-index: 1; background: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 30%, #000 70%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 0%, transparent 30%, #000 70%, #000 100%);
  -webkit-mask-size: 160% 100%; mask-size: 160% 100%;
  -webkit-mask-position: 50% 0; mask-position: 50% 0; }
.motion .worlds .tech { animation: balance 14s ease-in-out infinite alternate; }
@keyframes balance { from { -webkit-mask-position: 0% 0; mask-position: 0% 0; } to { -webkit-mask-position: 100% 0; mask-position: 100% 0; } }
.worlds .tech video { object-position: 70% 22% !important; }
.worlds .nature::after, .worlds .tech::after { background: rgba(14,26,27,.28); }
.worlds .seam, .worlds .label { display: none; }
@media (max-width: 760px) {
  .worlds { min-height: 520px; }
  .worlds .tech { -webkit-mask-image: linear-gradient(180deg, transparent 25%, #000 70%); mask-image: linear-gradient(180deg, transparent 25%, #000 70%); -webkit-mask-size: 100% 150%; mask-size: 100% 150%; }
  @keyframes balance { from { -webkit-mask-position: 0 0%; mask-position: 0 0%; } to { -webkit-mask-position: 0 100%; mask-position: 0 100%; } }
}
.worlds .tech { left: 38%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 18%, #000 52%, #000 100%); mask-image: linear-gradient(90deg, transparent 0%, transparent 18%, #000 52%, #000 100%); }
.worlds .tech video { object-position: 50% 26% !important; }
@media (max-width: 760px) { .worlds .tech { left: 0; top: 30%; } .worlds .tech video { object-position: 50% 20% !important; } }
.worlds .tech { left: 50%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%, #000 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 38%, #000 100%); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
@keyframes balance2 { from { left: 44%; } to { left: 56%; } }
.motion .worlds .tech { animation: balance2 12s ease-in-out infinite alternate; }
@media (max-width: 760px) {
  .worlds .tech { left: 0 !important; top: 0; -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 30%, #000 62%); mask-image: linear-gradient(180deg, transparent 0%, transparent 30%, #000 62%); }
  .motion .worlds .tech { animation: none; }
  .worlds .tech video { object-position: 50% 0% !important; }
}
@media (max-width: 760px) {
  .worlds .tech { left: 28% !important; top: 0; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%); }
  .worlds .tech video { object-position: 55% 12% !important; }
}

/* DRIFT: one photo, the reasons glide slowly downwards (press page) */
.drift { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--teal-ink); }
.drift-img { position: absolute; inset: 0; z-index: -2; background: var(--img) center / cover no-repeat; transform: scale(1.08); }
.motion .drift-img { animation: drift 30s ease-in-out infinite alternate; }
.drift::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,26,27,.9) 0%, rgba(14,26,27,.7) 50%, rgba(14,26,27,.45) 100%); }
.drift .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: center; min-height: clamp(440px, 64vh, 600px); }
.drift-head { display: grid; gap: 12px; }
.drift-head .eyebrow { color: var(--gold); }
.drift-head h2 { color: #fff; }
.drift-col { position: relative; height: clamp(380px, 56vh, 520px); overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%); }
.drift-list { list-style: none; margin: 0; padding: 0; display: grid; }
.drift-list li { padding: 26px 0; font-family: var(--title); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; border-top: 1px solid rgba(255,255,255,.18); text-wrap: balance; }
.motion .drift-col .drift-list { animation: glide 34s linear infinite; }
.motion .drift-col:hover .drift-list { animation-play-state: paused; }
@keyframes glide { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.drift-col .drift-list[aria-hidden] { display: none; }
.motion .drift-col .drift-list[aria-hidden] { display: grid; }
@media (max-width: 760px) { .drift .wrap { grid-template-columns: minmax(0, 1fr); padding-top: 56px; padding-bottom: 24px; } .drift-col { height: 340px; } }
/* Ruimte voor een extra menu-item (bijv. tijdelijk Relatiegeschenk) zonder dat NL · EN naar een tweede regel springt */
@media (min-width: 1101px) { .bk-head .wrap { column-gap: 14px; padding-left: min(var(--gutter), 64px); padding-right: min(var(--gutter), 64px); } .bk-menu { gap: 14px; font-size: 13.5px; } .bk-house { font-size: 11px; letter-spacing: .12em; } }
