/* LHO — Dutch Jugendstil studio page. Flat colour fields, hairline rules, drawn plant-line ornament. */

:root {
  --ink: #0b1730;
  --deep: #081226;
  --blue: #215e99;
  --peri: #94b8f6;
  --sky: #d6e4fa;
  --paper: #f4f7fc;
  --white: #fbfdff;
  --placeholder: #34466b;

  --line: 1px solid var(--ink);
  --lane: 96px;
  --bar: 56px;
  --top: 64px;
  --gutter: clamp(20px, 4vw, 64px);

  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-text: "Hanken Grotesk", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--ink) var(--sky);
}

body {
  margin: 0;
  padding-bottom: var(--bar);
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  caret-color: var(--ink);
}

::selection { background: var(--peri); color: var(--ink); }
.on-dark ::selection { background: var(--peri); color: var(--ink); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-dark :focus-visible, .bar__cta:focus-visible { outline-color: var(--peri); }
.bar__cta:focus-visible { outline-color: var(--white); outline-offset: -6px; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--f-display);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h2 { font-size: clamp(2.25rem, 5.2vw, 4.25rem); font-weight: 700; font-stretch: 85%; }
h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 700; font-stretch: 90%; }
p { margin: 0; max-width: 62ch; }
p + p { margin-top: 1em; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px;
}
.skip:focus { top: 12px; }

/* ---------- Top: wordmark ---------- */

.top {
  position: relative;
  height: var(--top);
  display: grid;
  place-items: center;
  background: var(--paper);
  border-bottom: var(--line);
}
.wordmark {
  display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px);
  text-decoration: none;
  font-size: clamp(0.625rem, 1.5vw, 0.8125rem);
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  white-space: nowrap;
}
.wordmark .emblem { width: 40px; height: 40px; flex: none; transition: transform 0.9s var(--ease); }
.wordmark:hover .emblem { transform: rotate(45deg); }
.lang {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em;
  padding: 6px 10px; border: var(--line); border-radius: 999px; text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.lang:hover { background: var(--ink); color: var(--paper); }

@media (max-width: 720px) {
  .top { height: 76px; place-items: center start; padding-left: var(--gutter); }
  .wordmark { letter-spacing: 0.26em; gap: 12px; }
  .wordmark__r { display: block; max-width: 8.5em; white-space: normal; line-height: 1.5; }
  .wordmark .emblem { width: 34px; height: 34px; }
}

/* ---------- Bottom bar (docked nav + enquiry tab) ---------- */

.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  height: var(--bar);
  display: flex; align-items: stretch;
  background: var(--paper);
  border-top: var(--line);
}
.bar__nav {
  flex: 1; display: flex; align-items: center; gap: clamp(2px, 1.2vw, 14px);
  padding: 0 var(--gutter);
  overflow-x: auto; scrollbar-width: none;
}
.bar__nav a {
  display: block; text-decoration: none; white-space: nowrap;
  padding: 7px clamp(10px, 1.6vw, 18px);
  border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.bar__nav a:hover { background: var(--sky); }
.bar__nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.bar__cta {
  flex: none; display: flex; align-items: center; gap: 12px;
  padding: 0 clamp(18px, 3vw, 36px);
  background: var(--blue); color: var(--white); border-left: var(--line);
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.bar__cta:hover { background: var(--ink); color: var(--peri); }
.bar__cta .arrow { width: 18px; height: 18px; }
.cta-short { display: none; }
@media (max-width: 560px) {
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .bar__nav a { font-size: 0.75rem; letter-spacing: 0.08em; padding: 7px 9px; }
}

/* ---------- Page frame: margin lane with the growing vine ---------- */

.page { position: relative; }
.lane { display: none; }
@media (min-width: 1000px) {
  .page { padding-left: var(--lane); }
  .lane {
    display: block; position: absolute; inset: 0 auto 0 0; width: var(--lane);
    background: var(--sky); border-right: var(--line); overflow: hidden; z-index: 2;
  }
  .lane__vine { position: absolute; inset: 0; }
}

/* ---------- Shared building blocks ---------- */

.field { padding: clamp(56px, 9vw, 128px) var(--gutter); position: relative; }
.wrap { max-width: 1240px; margin: 0 auto; position: relative; z-index: 1; }
.paper { background: var(--paper); }
.peri { background: var(--peri); color: var(--ink); }
.blue { background: var(--blue); color: var(--white); }
.sky { background: var(--sky); }
.deep { background: var(--deep); color: var(--white); }
.rule-top { border-top: var(--line); }

.emblem { color: currentColor; }
.arrow { width: 20px; height: 20px; flex: none; transition: transform 0.25s var(--ease); }

.link {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em;
}
.link:hover .arrow, .btn:hover .arrow { transform: translateX(5px); }

.btn {
  --bg: var(--peri); --fg: var(--ink); --bd: var(--ink);
  display: inline-flex; align-items: center; gap: 0.7em;
  padding: 16px 26px; border: 1.5px solid var(--bd); background: var(--bg); color: var(--fg);
  font: 700 0.9375rem/1 var(--f-text); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { --bg: var(--white); }
.btn--ink { --bg: var(--ink); --fg: var(--peri); }
.btn--ink:hover { --bg: var(--white); --fg: var(--ink); }
.on-dark .btn { --bd: var(--peri); }
.peri .btn { --bg: var(--ink); --fg: var(--white); --bd: var(--ink); }
.peri .btn:hover { --bg: var(--white); --fg: var(--ink); }
.peri .btn--ink { --bg: var(--ink); --fg: var(--white); }

.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 48px); }

.chip {
  display: inline-block; border: var(--line); border-radius: 999px; padding: 3px 14px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.on-dark .chip { border-color: currentColor; }

/* ---------- Hero ---------- */

.hero {
  min-height: calc(min(100svh, 56rem) - var(--top) - var(--bar));
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero.field { padding-top: clamp(28px, 5vh, 56px); padding-bottom: clamp(32px, 5vh, 56px); }
.hero .wrap { width: 100%; }
.stack { font-size: clamp(3.4rem, min(13vw, 14.5vh), 8.5rem); text-transform: uppercase; line-height: 0.9; }
.stack span { display: block; }
.stack .v1 { font-weight: 800; font-stretch: 75%; color: var(--peri); }
.peri .stack .v1 { color: var(--ink); }
.peri .stack .v2 { color: var(--ink); }
.peri .stack .v3 { color: var(--blue); }
.stack .v2 { font-weight: 200; font-stretch: 100%; color: var(--white); text-transform: lowercase; letter-spacing: -0.03em; }
.stack .v3 { font-weight: 800; font-stretch: 75%; color: var(--sky); }
.lede { margin-top: clamp(20px, 3vh, 36px); font-size: clamp(1.125rem, 1.8vw, 1.4rem); line-height: 1.45; max-width: 44ch; }
.hero .lede { max-width: 54ch; }
.hero__actions { margin-top: clamp(24px, 3vw, 36px); display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }

.hero__vine { position: absolute; inset: 0; color: var(--blue); pointer-events: none; z-index: 0; }
.hero__vine svg { position: absolute; right: -1vw; top: 0; height: 100%; width: auto; }
.draw { animation: draw 2.6s var(--ease) 0.15s backwards; }
.grow { transform-box: fill-box; transform-origin: 50% 100%; animation: grow 0.9s var(--ease) backwards; }
@keyframes draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
@keyframes grow { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Marquee ---------- */

.marquee { background: var(--blue); color: var(--sky); border-top: var(--line); border-bottom: var(--line); overflow: hidden; }
.marquee__track {
  display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); width: max-content;
  padding: clamp(10px, 2vw, 22px) 0;
  font: 800 clamp(3rem, 10vw, 8.5rem)/1 var(--f-display); font-stretch: 75%; text-transform: uppercase; letter-spacing: -0.01em;
  animation: marquee 42s linear infinite;
}
.marquee__track .emblem { width: 0.85em; height: 0.85em; flex: none; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Opdrachten tiles ---------- */

.tiles { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: clamp(22px, 3vw, 36px); border: var(--line); overflow: hidden; min-height: 260px;
  grid-column: span 5;
}
.tile--lead { grid-column: span 7; grid-row: span 2; min-height: 540px; }
.tile__body { position: relative; z-index: 1; display: grid; gap: 14px; max-width: 34ch; }
.tile__orn {
  position: absolute; right: -10px; bottom: -14px; width: clamp(130px, 24vw, 300px); color: var(--ink);
  pointer-events: none; transition: transform 0.6s var(--ease);
}
.tile:hover .tile__orn { transform: translateY(-8px) rotate(-3deg); }
.tile .link { position: relative; z-index: 1; align-self: flex-start; }
@media (max-width: 800px) {
  .tile, .tile--lead { grid-column: 1 / -1; grid-row: auto; min-height: 280px; }
}

/* ---------- Source to sentence ---------- */

.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.panel { border: var(--line); padding: clamp(22px, 3vw, 40px); min-height: 340px; display: flex; flex-direction: column; gap: 22px; }
.panel--src { background: var(--paper); }
.panel--out { background: var(--blue); color: var(--white); }
.panel__text { font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.55; }
.panel--src .panel__text { letter-spacing: 0.02em; }
.panel--src s { text-decoration-thickness: 2px; text-decoration-color: var(--peri); }
.panel--out .panel__text { font-family: var(--f-display); font-weight: 400; font-stretch: 90%; line-height: 1.4; }
.demo__foot { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.demo__note { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
@media (max-width: 800px) { .demo { grid-template-columns: 1fr; } .panel { min-height: 240px; } }

/* ---------- Project ---------- */

.project { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.project__text { display: grid; gap: 22px; }
.facts { margin: 12px 0 0; }
.facts div { display: grid; grid-template-columns: 10rem 1fr; gap: 16px; padding: 14px 0; border-top: var(--line); }
.facts div:last-child { border-bottom: var(--line); }
.facts dt { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding-top: 3px; }
.facts dd { margin: 0; }
.arch {
  aspect-ratio: 3 / 4; border: var(--line); border-radius: 999px 999px 0 0; background: var(--blue);
  display: grid; place-items: center; color: var(--ink); overflow: hidden;
}
.arch svg { width: 58%; }
@media (max-width: 800px) { .project { grid-template-columns: 1fr; } .arch { max-width: 420px; } }

/* ---------- Oral history / spreken band ---------- */

.oral { overflow: hidden; }
.oral::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.11) 0 1px, transparent 1px 3px);
}
.oral .stack { margin-bottom: clamp(28px, 4vw, 48px); }
.oral__body { display: grid; gap: 28px; justify-items: start; max-width: 46ch; }
.oral__orn { position: absolute; right: clamp(-40px, -2vw, 0px); bottom: 8%; width: min(46vw, 640px); color: var(--peri); pointer-events: none; opacity: 1; }
.oral .wrap { z-index: 2; }
@media (max-width: 800px) { .oral__orn { width: 90vw; bottom: auto; top: 2%; right: -12vw; opacity: 0.55; } }

/* ---------- Testimonials (hidden until real quotes exist) ---------- */

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.quote { margin: 0; border: var(--line); padding: 28px; display: grid; gap: 20px; align-content: space-between; background: var(--white); }
.quote blockquote { margin: 0; font: 400 1.25rem/1.4 var(--f-display); font-stretch: 90%; }
.quote figcaption { font-size: 0.9375rem; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- Enquiry ---------- */

.enquiry { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 7vw, 112px); align-items: start; }
.enquiry__lead { display: grid; gap: 22px; }
.enquiry__mail { font-weight: 700; }
.form { display: grid; gap: 22px; }
.form__row { display: grid; gap: 6px; }
.form__row--2 { grid-template-columns: 1fr 1fr; gap: 22px; }
.form label { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.form input, .form textarea {
  width: 100%; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; background: transparent;
  padding: 10px 0; font: inherit; color: var(--ink); transition: background 0.2s var(--ease);
}
.form textarea { resize: vertical; min-height: 140px; }
.form input::placeholder, .form textarea::placeholder { color: var(--placeholder); opacity: 1; }
.form input:focus, .form textarea:focus { outline: none; background: rgba(251, 251, 253, 0.45); box-shadow: 0 3px 0 var(--ink); }
.form input:focus-visible, .form textarea:focus-visible { outline: none; }
.form [aria-invalid="true"] { border-bottom: 4px solid #8a1020; background: rgba(251, 251, 253, 0.45); }
.form__err { font-size: 0.875rem; font-weight: 700; color: #6d0b19; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { min-height: 1.5em; font-weight: 600; }
.form__status[data-state="ok"] { color: var(--ink); }
.form__status[data-state="error"] { color: #6d0b19; }
.form .btn[disabled] { opacity: 0.55; cursor: progress; }
@media (max-width: 860px) { .enquiry { grid-template-columns: 1fr; } .form__row--2 { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.foot { background: var(--deep); color: var(--white); padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(32px, 4vw, 56px); }
.foot__grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr 1fr 1fr; gap: clamp(24px, 5vw, 80px); }
.foot .emblem { width: clamp(88px, 12vw, 150px); height: auto; color: var(--peri); }
.foot h4 { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--peri); margin-bottom: 14px; font-family: var(--f-text); }
.foot li + li { margin-top: 8px; }
.foot a { text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.foot a:hover { color: var(--peri); }
.foot__small { max-width: 1240px; margin: clamp(32px, 5vw, 64px) auto 0; padding-top: 20px; border-top: 1px solid rgba(251, 251, 253, 0.3); font-size: 0.875rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot .emblem { grid-column: 1 / -1; } }

/* ---------- Border band ---------- */

.band { height: 40px; background: var(--paper) url("/assets/img/band.svg") 0 50% / 120px 40px repeat-x; border-top: var(--line); border-bottom: var(--line); }

/* ---------- Subpages ---------- */

.page-hero { padding-top: clamp(56px, 10vw, 144px); padding-bottom: clamp(48px, 7vw, 96px); overflow: hidden; }
.page-hero h1 { font-size: clamp(3rem, 9vw, 7rem); font-weight: 800; font-stretch: 75%; text-transform: uppercase; line-height: 0.92; max-width: 14ch; }
.page-hero .lede { max-width: 48ch; }
.page-hero__orn { position: absolute; right: var(--gutter); bottom: -24px; width: clamp(140px, 24vw, 320px); color: var(--ink); pointer-events: none; }

.service { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.service h2 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800; font-stretch: 75%; text-transform: uppercase; }
.service__body { display: grid; gap: 22px; }
.deliver { border-top: var(--line); }
.deliver li { padding: 14px 0; border-bottom: var(--line); display: flex; justify-content: space-between; gap: 16px; }
@media (max-width: 800px) { .service { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: step; }
.step { border: 1px solid var(--peri); padding: 24px; display: grid; gap: 14px; align-content: start; min-height: 220px; }
.step__n { font: 800 3.5rem/1 var(--f-display); font-stretch: 75%; color: var(--peri); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.about { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.portrait {
  aspect-ratio: 3 / 4; border: var(--line); border-radius: 999px 999px 0 0; background: var(--peri);
  display: grid; place-items: center; text-align: center; color: var(--ink); overflow: hidden; position: relative;
}
.portrait svg { width: 46%; }
.portrait .chip { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--paper); }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } .portrait { max-width: 380px; } }


.cta { text-align: left; }
.cta .stack { font-size: clamp(3rem, 10vw, 7rem); margin-bottom: clamp(24px, 3vw, 36px); }
.cta .btn { --bd: var(--peri); }

.notfound { min-height: 70svh; display: grid; align-content: center; }

/* ---------- Motion preferences ---------- */

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

/* Small tiles carry a smaller drawn tulip so it never crosses the copy. */
.tile:not(.tile--lead) .tile__orn { width: 128px; right: 14px; bottom: -12px; }
.tile .tile__orn--fan { width: 220px; right: -4px; bottom: -18px; }

.panel .chip { align-self: flex-start; }

@media (max-width: 800px) {
  .tile__orn, .tile--lead .tile__orn { width: 76px; right: 18px; bottom: 18px; }
  .tile--lead { min-height: 340px; }
}
@media (max-width: 720px) {
  .hero__vine { height: 44%; width: 74vw; right: -8vw; }
}
@media (max-width: 560px) {
  .bar__nav { padding: 0 8px; gap: 0; }
  .bar__nav a { font-size: 0.75rem; letter-spacing: 0.03em; padding: 7px 6px; }
  .bar__cta { padding: 0 16px; gap: 8px; }
}

.straddle { position: absolute; left: 47%; top: -104px; width: 120px; z-index: 3; color: var(--ink); pointer-events: none; }
@media (max-width: 800px) { .straddle { left: auto; right: 24px; width: 84px; top: -72px; } }
.page-hero__orn--wide { width: clamp(220px, 34vw, 460px); }

/* Below 1000px the margin vine becomes a slim strip so the signature survives on phones. */
@media (max-width: 999px) {
  :root { --lane: 32px; --gutter: clamp(16px, 4vw, 40px); }
  .page { padding-left: var(--lane); }
  .lane {
    display: block; position: absolute; inset: 0 auto 0 0; width: var(--lane);
    background: var(--sky); border-right: var(--line); overflow: hidden; z-index: 2;
  }
  .lane__vine { position: absolute; inset: 0; }
}

@media (max-width: 720px) { .hero__vine path { stroke-width: 5; } }

@media (max-width: 800px) {
  .tile, .tile--lead { padding-bottom: 104px; }
  .tile__orn, .tile--lead .tile__orn, .tile:not(.tile--lead) .tile__orn, .tile .tile__orn--fan { bottom: 14px; right: 16px; width: 76px; }
  .tile .tile__orn--fan { width: 96px; }
  .straddle { width: 56px; top: -52px; right: 20px; }
}

.page-hero.peri .page-hero__orn { bottom: 18px; }

.tile.blue .tile__orn, .blue .page-hero__orn, .arch { color: var(--sky); }
.tile.blue .link { color: var(--white); }
.step { border-color: rgba(251, 253, 255, 0.45); }

/* Typewriter: letters arrive one at a time behind a blinking caret. */
.tw__caret {
  display: inline-block; width: 0.6ch; height: 1.05em; margin-left: 1px; background: currentColor;
  vertical-align: -0.14em; animation: blink 1s steps(1) infinite;
}
.tw__rest { visibility: hidden; }
@keyframes blink { 50% { opacity: 0; } }

/* Growing vine in the margin lane, drawn by site.js with the same leaves as the hero vine. */
.lane { color: var(--ink); }
.lane__vine svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.vstem { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.vleaf { transform-box: fill-box; transform-origin: 50% 100%; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; transform: scale(0); opacity: 0; }
.vleaf .vrib { stroke: var(--ink); stroke-width: 1; }
.vleaf--a { fill: var(--peri); }
.vleaf--b { fill: var(--blue); }
.vleaf--b .vrib, .vleaf--e .vrib { stroke: var(--white); }
.vleaf--c { fill: var(--white); }
.vleaf--d { fill: url(#hatch-ink); }
.vleaf--e { fill: var(--ink); }
.vleaf--f { fill: var(--sky); }
.vleaf--g { fill: url(#hatch-blue); }
.vtip { fill: var(--blue); stroke: currentColor; stroke-width: 1.6; transform-box: fill-box; transform-origin: center; animation: bud 1.3s ease-in-out infinite; }
@keyframes bud { 50% { transform: scale(1.35); } }
.vtip { fill: var(--blue); stroke: currentColor; stroke-width: 1.6; transform-box: fill-box; transform-origin: center; animation: bud 1.3s ease-in-out infinite; }
@keyframes bud { 50% { transform: scale(1.35); } }

/* Hero: text on the left, the portrait in an arched window frame on the right. */
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 64px); align-items: end; }
.hero__actions { gap: 12px; }
.hero__actions .btn { padding: 13px 16px; font-size: 0.78rem; }
.hero__portrait { margin: 0; width: clamp(250px, 30vw, 420px); }
.hero__portrait svg { display: block; width: 100%; height: auto; overflow: visible; }
@media (max-width: 800px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__portrait { width: min(78vw, 320px); margin-top: 28px; }
}

@media (max-width: 720px) { .hero__vine { height: 280px; bottom: auto; } .hero__actions .btn { flex: 0 1 auto; } }

/* The portrait window now rises the full height of the hero, its flat base resting on the hero's bottom edge. */
.hero.field { --pt: clamp(28px, 5vh, 56px); --pb: clamp(32px, 5vh, 56px); padding-top: var(--pt); padding-bottom: var(--pb); }
.hero__grid { align-items: stretch; }
.hero__text { align-self: end; }
.hero__portrait { position: relative; width: min(36vw, calc((min(100svh, 56rem) - var(--top) - var(--bar)) * 0.7229)); margin: calc(var(--pt) * -1) 0 calc(var(--pb) * -1); }
.hero__portrait svg { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 800px) {
  .hero__portrait { width: min(78vw, 320px); margin: 28px 0 calc(var(--pb) * -1); }
  .hero__portrait svg { position: static; height: auto; }
}

/* The emblem is an outline in one colour; the small leaves around the centre are filled with that same colour. */

/* Service icons: booklet, hand with pen, microphone. The hand needs the tile colour to hide the pen behind its fingers. */
.tile.blue { --bg: var(--blue); }
.tile.peri { --bg: var(--peri); }
.tile.sky { --bg: var(--sky); }
.tile .tile__orn { width: clamp(150px, 22vw, 300px); right: 8px; bottom: 6px; }
.tile:not(.tile--lead) .tile__orn { width: 150px; right: 10px; bottom: 8px; }
@media (max-width: 800px) {
  .tile__orn, .tile--lead .tile__orn, .tile:not(.tile--lead) .tile__orn { width: 96px; right: 14px; bottom: 12px; }
}

.tile:not(.tile--lead) .tile__orn { width: 168px; right: 8px; bottom: 6px; }
@media (max-width: 800px) { .tile:not(.tile--lead) .tile__orn { width: 110px; right: 14px; bottom: 12px; } }

.tile:not(.tile--lead) .tile__orn.tile__orn--fan { width: 220px; right: -4px; bottom: -18px; }
@media (max-width: 800px) { .tile:not(.tile--lead) .tile__orn.tile__orn--fan { width: 130px; right: 6px; bottom: -8px; } }

/* Leaves and curls are positioned by site.js frame by frame, so they carry no timed transitions of their own. */

/* The portrait sits close to the screen's right edge instead of inside the content column. */
@media (min-width: 801px) {
  .hero .wrap { max-width: none; }
  .hero__portrait { margin-right: calc(var(--gutter) * -1 - 6px); }
}

@media (max-width: 800px) {
  .hero__vine { display: none; }
  .oral { padding-bottom: 132px; }
  .oral__orn { top: auto; bottom: 14px; right: -6vw; width: 78vw; opacity: 0.6; }
}

/* The vine now runs above the headline, inside the text column, so it never passes under the text or the frame. */
.hero__band { height: 56px; margin-bottom: 14px; color: var(--blue); }
.hero__band svg { display: block; width: 100%; height: 100%; overflow: visible; }
@media (max-width: 800px) { .hero__band { height: 44px; margin-bottom: 10px; } }
@media (min-width: 801px) and (max-height: 780px) { .hero__band { height: 40px; margin-bottom: 6px; } }

/* The vine runs the full width of the hero and off the right edge; the headline and portrait sit below it. */
.hero { --band: 64px; }
.hero__band { position: absolute; left: 0; right: 0; top: 10px; height: var(--band); margin: 0; z-index: 0; overflow: hidden; }
.hero__band svg { width: auto; height: 100%; min-width: 100%; }
.hero__text { padding-top: calc(var(--band) - 6px); }
@media (min-width: 801px) { .hero__portrait { margin-top: calc(var(--band) - var(--pt) + 6px); } }
@media (max-width: 800px) { .hero { --band: 48px; } }
@media (min-width: 801px) and (max-height: 780px) { .hero { --band: 48px; } .hero__band { height: var(--band); } }
.hero { --band: 76px; }
.hero__band { top: 4px; }
@media (max-width: 800px) { .hero { --band: 56px; } }
@media (min-width: 801px) and (max-height: 780px) { .hero { --band: 60px; } }

/* The hero intro is now a full paragraph, so it is set a little smaller and wider to keep the buttons in the first screen. */
.hero .lede { font-size: clamp(1rem, 1.25vw, 1.2rem); line-height: 1.5; max-width: 60ch; }
@media (min-width: 801px) and (max-height: 780px) { .hero .stack { font-size: clamp(3.4rem, min(13vw, 12.5vh), 8.5rem); } }

#about .tile.paper { --bg: var(--paper); background: var(--paper); }
#about .tile__orn[viewBox="0 0 300 100"] { width: 190px; }
#about .tile .tile__orn { width: 110px; right: 18px; bottom: 14px; }
#about .tile--lead .tile__orn { width: 150px; right: 28px; bottom: 20px; }
#about .tile .tile__orn[viewBox="0 0 300 100"] { width: 190px; right: 6px; bottom: 6px; }
#about .tile { min-height: 250px; }
#about .tile--lead { min-height: 540px; }
@media (max-width: 800px) { #about .tile .tile__orn, #about .tile--lead .tile__orn { width: 84px; } #about .tile .tile__orn[viewBox="0 0 300 100"] { width: 130px; } #about .tile--lead { min-height: 300px; } }

.marquee { position: relative; }
.marquee.is-paused .marquee__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {  }

/* Tap targets: at least 44px tall for links and controls people press, without changing how they look. */
.link, .foot a, .lang, .wordmark { position: relative; }
.link::after, .foot a::after, .lang::after, .wordmark::after { content: ""; position: absolute; inset: -12px -6px; }
.link { min-height: 44px; align-items: center; }
.foot a { display: inline-block; padding: 6px 0; }
.foot li + li { margin-top: 2px; }
.bar__nav a { padding-top: 11px; padding-bottom: 11px; }
.lang { padding: 10px 14px; }
@media (max-width: 720px) { .wordmark { min-height: 44px; } }
.bar__nav a { padding-top: 14px; padding-bottom: 14px; }
.enquiry__mail a, .foot li a[href^="mailto"] { display: inline-block; padding: 11px 0; }


/* The language pill stays pinned to the right of the top bar (an earlier tap-target rule had set it to relative). */
.lang { position: absolute; }

/* Contact lines (email, phone, profiles) read as one tight group. */
.enquiry__mail + .enquiry__mail { margin-top: -16px; }
.foot li a[href^="mailto"] { padding: 6px 0; }

/* Leaf fills: the fourth kind is hatched with fine parallel lines, like an engraved leaf. */

/* Texture, used where a flat field needs weight: fine horizontal lines on the brand-blue surfaces. */
.marquee, .tile.blue, .arch { background-image: repeating-linear-gradient(0deg, rgba(214, 228, 250, 0.10) 0 1px, transparent 1px 7px); }
.arch { background-color: var(--blue); background-image: url("/assets/img/pattern-stems.svg"); background-size: 120px 160px; background-position: center top; }

/* Footer medallion: a striped roundel carrying the emblem. */
.foot .medallion { width: clamp(100px, 13vw, 160px); height: auto; color: var(--peri); --medallion-bg: var(--deep); }

/* Solid silhouettes take their vein colour from the tile they sit on. */
.tile.blue { --vein: var(--blue); }
.tile.peri { --vein: var(--peri); }
.tile.sky { --vein: var(--sky); }
.tile.paper { --vein: var(--paper); }
#about .tile--lead .tile__orn { width: 130px; }
#about .tile .tile__orn { color: var(--ink); }
#about .tile.blue .tile__orn { color: var(--sky); }


/* ---- Traced ornaments (from the supplied Art Nouveau scans) ---- */
#about .tile .tile__orn--t { right: 22px; bottom: 16px; width: 110px; }
#about .tile--lead .tile__orn--t { width: 150px; right: 34px; bottom: 28px; color: var(--sky); }
#about .tile.paper .tile__orn--t { width: 200px; right: 8px; bottom: 6px; color: var(--ink); }
#about .tile.peri .tile__orn--t { color: var(--ink); width: 120px; }

.arch { background-image: none; background-color: var(--blue); position: relative; }
.arch .arch__panel { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; color: var(--sky); opacity: 0.92; }

.straddle { width: 58px; }
.oral__orn { right: clamp(8px, 4vw, 64px); bottom: 0; width: min(38vw, 440px); color: var(--peri); opacity: 0.9; }
.foot .medallion { width: clamp(100px, 12vw, 150px); color: var(--peri); }

.page-hero__orn--square { width: clamp(150px, 20vw, 270px); color: var(--ink); bottom: -18px; }
.page-hero__orn--leaves { width: clamp(90px, 11vw, 150px); color: var(--ink); bottom: -10px; }
.page-hero__orn--dots { width: clamp(90px, 11vw, 150px); color: var(--sky); bottom: -10px; }
.page-hero__orn--spiral { width: clamp(220px, 32vw, 440px); color: var(--ink); bottom: 14px; }
@media (max-width: 800px) {
  .oral__orn { width: 70vw; opacity: 0.55; }
  #about .tile .tile__orn--t, #about .tile--lead .tile__orn--t { width: 84px; }
  #about .tile.paper .tile__orn--t { width: 120px; }
}

/* ---- Surface texture: each flat field carries a fine texture from its own world, kept faint so type stays clean ---- */
.peri { background-image: repeating-linear-gradient(0deg, rgba(11, 23, 48, 0.055) 0 1px, transparent 1px 6px); }
.sky { background-image: radial-gradient(rgba(11, 23, 48, 0.11) 1px, transparent 1.3px); background-size: 11px 11px; }
.paper { background-image: repeating-linear-gradient(135deg, rgba(33, 94, 153, 0.06) 0 1px, transparent 1px 10px); }
.tile.blue, .marquee { background-image: repeating-linear-gradient(0deg, rgba(214, 228, 250, 0.10) 0 1px, transparent 1px 7px); }
.foot { background-image: radial-gradient(rgba(148, 184, 246, 0.14) 1px, transparent 1.3px); background-size: 14px 14px; }
.lane { background-image: repeating-linear-gradient(135deg, rgba(11, 23, 48, 0.07) 0 1px, transparent 1px 8px); }
.tile.sky, .tile.paper, .tile.peri { background-clip: padding-box; }
#about .tile.paper .tile__orn--t { width: 150px; right: 14px; bottom: 10px; }
#about .tile.paper .tile__body { max-width: 26ch; }
.arch .arch__panel { opacity: 0.85; }
.page-hero__orn--square { bottom: 28px; width: clamp(130px, 16vw, 220px); }
.page-hero__orn--spiral { width: clamp(200px, 24vw, 330px); bottom: 24px; }
.page-hero__orn--dots, .page-hero__orn--leaves { bottom: 0; }




/* ---- Tiles: text, link and ornament live in a grid, so the ornament can never sit on top of the words ---- */
.tiles .tile {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr auto;
  grid-template-areas: "body orn" "link orn"; column-gap: 18px; row-gap: 22px; align-content: stretch;
}
.tiles .tile .tile__body { grid-area: body; max-width: none; }
.tiles .tile--lead .tile__body { max-width: 34ch; }
.tiles .tile > .link { grid-area: link; align-self: end; justify-self: start; }
.tiles .tile .tile__orn {
  position: static; grid-area: orn; align-self: end; justify-self: end; margin: 0; inset: auto;
  width: clamp(84px, 9vw, 124px);
}
.tiles .tile--lead .tile__orn { width: clamp(110px, 13vw, 170px); }
.tiles .tile .tile__orn[viewBox^="0 0 1682"] { width: clamp(110px, 12vw, 160px); }   /* the wide seed-head */
.tiles .tile .tile__orn--fan { width: clamp(120px, 13vw, 170px); }
@media (max-width: 1280px) {
  .tiles .tile:not(.tile--lead) { grid-template-areas: "body body" "link orn"; }
  .tiles .tile:not(.tile--lead) .tile__orn { width: 100px; }
  .tiles .tile:not(.tile--lead) .tile__orn[viewBox^="0 0 1682"], .tiles .tile .tile__orn--fan { width: 136px; }
}
@media (max-width: 1100px) {
  .tiles .tile { grid-template-areas: "body body" "link orn"; }
  .tiles .tile--lead .tile__orn { width: 120px; }
}
@media (max-width: 440px) {
  .tiles .tile { grid-template-areas: "body" "link" "orn"; grid-template-columns: minmax(0, 1fr); }
  .tiles .tile .tile__orn { justify-self: end; }
}
.tiles .tile .tile__body { align-content: start; }
.tiles .tile > .link { white-space: nowrap; }
@media (max-width: 1280px) {
  .tiles .tile:not(.tile--lead) .tile__orn[viewBox^="0 0 1682"] { width: 112px; }
}

/* Speaking band: the Confucius quote, set large under the headline. */
.oral__quote { margin: 0 0 clamp(28px, 4vw, 48px); max-width: 26ch; }
.oral__quote blockquote { margin: 0; }
.oral__quote blockquote p { font: 400 clamp(1.7rem, 3.4vw, 2.9rem)/1.15 var(--f-display); font-stretch: 88%; color: var(--white); max-width: none; text-wrap: balance; }
.oral__quote figcaption { margin-top: 14px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--peri); }

/* Over mij: the short third-person biography. */
.service--bio h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.service--bio .service__body p { max-width: 64ch; }
.oral__quote { max-width: min(100%, 680px); }
.oral__quote figcaption { white-space: normal; }

/* Demo intro and the source scan (shown exactly as supplied: uncropped, unfiltered, at its own size). */
.demo__intro { max-width: 70ch; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; margin-bottom: clamp(24px, 3vw, 36px); }
.demo__intro em, .demo__scan figcaption em { font-style: italic; }
.demo__scan { margin: 0 0 clamp(20px, 2.5vw, 32px); }
.demo__scan a { display: block; width: fit-content; max-width: 100%; border: var(--line); background: var(--white); }
.demo__scan img { display: block; width: 898px; max-width: 100%; height: auto; }
.demo__scan figcaption { margin-top: 10px; font-size: 0.9375rem; max-width: 70ch; }

/* "Bron" panel: the scan and its transcription share one frame, with a switch between them. */
.panel__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.seg { display: inline-flex; border: var(--line); border-radius: 999px; overflow: hidden; background: var(--white); }
.seg__btn { font: 700 0.75rem/1 var(--f-text); letter-spacing: 0.12em; text-transform: uppercase; padding: 10px 16px; min-height: 36px; background: transparent; color: var(--ink); border: 0; cursor: pointer; transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.seg__btn + .seg__btn { border-left: var(--line); }
.seg__btn[aria-selected="true"] { background: var(--ink); color: var(--white); }
.seg__btn:not([aria-selected="true"]):hover { background: var(--sky); }
.panel__view[hidden] { display: none; }
#src-scan a { display: block; border: var(--line); background: var(--white); }
#src-scan img { display: block; width: 100%; height: auto; }   /* shown whole and unaltered; click opens the file at full size */
.panel__cite { margin-top: auto; font-size: 0.9375rem; line-height: 1.5; max-width: none; }
.panel__cite em { font-style: italic; }

/* Scan viewer: the image opens on screen in a native dialog, not in a new tab. */
.lightbox { border: 0; padding: 0; background: var(--paper); color: var(--ink); max-width: 96vw; max-height: 94vh; overflow: auto; box-shadow: 0 24px 80px rgba(8, 18, 38, 0.5); }
.lightbox::backdrop { background: rgba(8, 18, 38, 0.84); }
.lightbox__inner { position: relative; padding: clamp(14px, 2vw, 24px); display: grid; gap: 12px; }
.lightbox img { display: block; width: min(92vw, 1180px); height: auto; max-height: 78vh; object-fit: contain; border: var(--line); background: var(--white); }
.lightbox p { font-size: 0.9375rem; max-width: 70ch; }
.lightbox__close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); cursor: pointer; transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.lightbox__close:hover { background: var(--ink); color: var(--paper); }
.lightbox__close svg { width: 18px; height: 18px; }
body:has(dialog.lightbox[open]) { overflow: hidden; }
#src-scan a { cursor: zoom-in; }


/* The scrolling bar pauses while the pointer is over it, and on a touch screen a tap on it pauses or resumes it. */
.marquee:hover .marquee__track, .marquee.is-paused .marquee__track { animation-play-state: paused; }
@media (hover: none) { .marquee { cursor: pointer; } }

/* Touch screens get a full-size target for the Transcriptie / Scan switch. */
@media (pointer: coarse) { .seg__btn { min-height: 44px; } }

/* On the narrowest phones the label sits above its value, so a long value cannot push the page sideways. */
@media (max-width: 420px) { .facts div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* A long Dutch compound in a heading may break with a hyphen instead of widening the page on a 320px phone. */
h2 { overflow-wrap: break-word; hyphens: auto; }

/* Projects: the home page swaps one project for the next in place; the Projecten page stacks them. */
.project[hidden] { display: none; }
.project.is-entering { animation: project-in 0.45s var(--ease) both; }
@keyframes project-in { from { opacity: 0; transform: translateY(14px); } }
.project__nav { display: flex; align-items: center; gap: 20px; margin-top: clamp(32px, 4vw, 56px); }
.project__count { font: 700 0.8125rem/1 var(--f-text); letter-spacing: 0.14em; }
.arch--mirror .arch__panel { transform: scaleX(-1); }
@media (min-width: 801px) { .project--flip { grid-template-columns: 0.9fr 1.1fr; } .project--flip .arch { order: -1; } }

/* A project's own title: smaller than the section heading above the home page projects, and it may be long. */
.project__title { font-size: clamp(1.75rem, 3.2vw, 2.75rem); font-weight: 700; font-stretch: 85%; line-height: 1.04; text-wrap: balance; }

/* A real photograph in the arch frame is cropped to it, not stretched. */
.arch--photo { position: relative; }
.arch--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
/* The lecture photograph is zoomed on the speaker and the slide behind him. */
.arch--lecture img { object-position: 68% 50%; transform: scale(1.8); transform-origin: 36% 18%; }

/* Photo credit on the lecture photograph: a small © that opens to the name, and stays open on touch screens. */
.credit { position: absolute; left: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; height: 28px; padding: 0 9px 0 8px; border-radius: 999px; background: rgba(8, 18, 38, 0.74); color: var(--white); font: 600 0.75rem/1 var(--f-text); text-decoration: none; }
.credit::after { content: ""; position: absolute; inset: -9px; }
.credit__name { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width 0.3s var(--ease), margin 0.3s var(--ease); }
.credit:hover .credit__name, .credit:focus-visible .credit__name { max-width: 240px; margin-left: 6px; }
@media (hover: none) { .credit__name { max-width: 240px; margin-left: 6px; } }
