/*
 * Self-hosted fonts (SIL Open Font License), so every visitor sees the same
 * type without a request to Google. Anton is a web-safe stand-in for Impact.
 */
@font-face {
  font-family: "Anton";
  src: url("../fonts/anton-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --wb-bg: #151719;
  --wb-beard: #401300;
  --wb-paper: #f5f2eb;
  --wb-muted: #a8adb0;
  --wb-accent: #8fd4d0;
  --wb-skin: #eb7850;
  --wb-border: rgba(245, 242, 235, 0.18);
  --wb-shell: min(1200px, calc(100% - 2rem));
  --wb-radius: 1.25rem;
  --wb-glasses-left: 14%;
  --wb-glasses-top: 10%;
  --wb-glasses-width: 72%;
  --wb-lens-bg: #9edbd5;
  --wb-display: "Anton", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --wb-body: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Type scale: one step per role, so every section reads the same way. */
  --wb-text: 1.0625rem;
  --wb-text-small: .9375rem;
  --wb-lead-size: clamp(1.125rem, 1.5vw, 1.3rem);
  --wb-h2-size: clamp(2.75rem, 5.6vw, 5rem);
  --wb-h3-size: 1.125rem;
  --wb-measure: 38rem;

  /* Vertical rhythm inside a section: eyebrow → heading → lead → content. */
  --wb-space-eyebrow: 1rem;
  --wb-space-heading: 1.5rem;
  --wb-space-content: clamp(2.5rem, 4vw, 3.5rem);
  --wb-space-section: clamp(4.5rem, 8vw, 7.5rem);

  /* Top bar above the menu (header.php); the hero face leaves room for it. */
  --wb-topbar-h: 2.25rem;
  /* Room kept under the chin on the first screen: lower = bigger head. */
  --wb-hero-tekst: 15rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--wb-bg);
  color: var(--wb-paper);
  font-family: var(--wb-body);
  font-size: var(--wb-text);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/*
 * The front page is the Web Baard itself: keep the beard colour continuous
 * behind the hero, Gutenberg sections and footer instead of falling back to
 * the neutral site background between content blocks.
 */
body,
.site-main,
.hero,
.front-page-content,
.site-footer {
  background: var(--wb-beard);
}

.home .hero {
  border-bottom: 0;
}
img, svg { max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  clip: auto !important;
  width: auto;
  height: auto;
  top: 1rem;
  left: 1rem;
  padding: .75rem 1rem;
  background: var(--wb-paper);
  color: var(--wb-bg);
  z-index: 9999;
}

.wb-shell { width: var(--wb-shell); margin-inline: auto; }

/*
 * One left edge for the whole front page.
 * Sections on the page use either a .wb-shell group or a Gutenberg
 * "constrained" group (760px, centred children). Treat the first inner group
 * of every section as the shell, and pin all of its children to the left, so
 * eyebrow, heading, lead, cards and buttons line up with the hero text.
 */
.front-page-content .wb-section {
  width: 100%;
  max-width: none !important;
  margin-inline: 0 !important;
}

.front-page-content .wb-section > .wp-block-group {
  width: var(--wb-shell) !important;
  max-width: none !important;
  margin-inline: auto !important;
}

.front-page-content .wb-section > .wp-block-group > * {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* Running text keeps a readable line length inside the wide grid. */
.front-page-content .wb-section > .wp-block-group > p:not(.wb-section__eyebrow),
.front-page-content .wb-lead {
  max-width: var(--wb-measure) !important;
}

.wb-content { padding-block: clamp(5rem, 10vw, 9rem); }

.site-topbar {
  background: var(--wb-accent);
  color: #101516;
}
.site-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--wb-topbar-h);
  padding-block: .35rem;
}
.site-topbar__text {
  margin: 0;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .14em;
  text-align: center;
  text-transform: uppercase;
}
@media (max-width: 600px) {
  .site-topbar__naam,
  .site-topbar__extra { display: none; } /* keeps it on one line; the name is right below, in the header */
  .site-topbar__text { font-size: .6875rem; letter-spacing: .1em; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--wb-bg) 88%, transparent);
  border-bottom: 1px solid var(--wb-border);
  backdrop-filter: blur(16px);
}
.site-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.site-branding__name {
  font-family: var(--wb-display);
  font-size: 1.8rem;
  letter-spacing: .02em;
  text-decoration: none;
}
.custom-logo-link { display: inline-flex; }
.custom-logo { max-height: 46px; width: auto; }
.site-nav__list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--wb-paper);
  text-decoration: none;
  font-size: var(--wb-text-small);
  font-weight: 600;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--wb-accent); }
.menu-toggle { display: none; }

.hero {
  position: relative;
  overflow: clip;
  min-height: min(860px, 92vw);
  padding-bottom: clamp(4rem, 8vw, 8rem);
  border-bottom: 1px solid var(--wb-border);
}
/* Full-bleed hero artwork: the face/illustration runs from viewport edge to viewport edge.
 * Using 100vw + the calculated margins also keeps this full-width if a WordPress
 * wrapper ever constrains the hero in the future. The glasses stage remains
 * percentage-based inside the same visual, so it scales together with the artwork.
 */
.hero__visual-wrap {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.hero__visual { position: relative; }
.hero__visual--empty {
  min-height: 28rem;
  background:
    linear-gradient(135deg, rgba(143,212,208,.09), transparent 60%),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(245,242,235,.03) 14px 15px);
}
.hero__base { width: 100%; display: block; height: auto; }
.hero__admin-note {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  max-width: 34rem;
  text-align: center;
  padding: 1rem 1.25rem;
  border: 1px dashed var(--wb-border);
  border-radius: var(--wb-radius);
  color: var(--wb-muted);
}
.hero__admin-note strong { display: block; color: var(--wb-paper); }

.glasses-stage {
  position: absolute;
  left: var(--wb-glasses-left);
  top: var(--wb-glasses-top);
  width: var(--wb-glasses-width);
  aspect-ratio: 1516 / 673.8;
  z-index: 4;
  outline: none;
}
.glasses-stage:focus-visible {
  outline: 3px solid var(--wb-accent);
  outline-offset: 6px;
  border-radius: 2rem;
}
.glasses-stage__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}
.lens {
  position: absolute;
  top: 4.5%;
  width: 35.5%;
  aspect-ratio: 520.4 / 455.8;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--wb-lens-bg);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 100% 100%;
  z-index: 1;
}
.lens--left {
  left: 7.4%;
  -webkit-mask-image: url("../images/linker-bril-glas.svg");
  mask-image: url("../images/linker-bril-glas.svg");
}
.lens--right {
  right: 7.4%;
  -webkit-mask-image: url("../images/rechter-bril-glas.svg");
  mask-image: url("../images/rechter-bril-glas.svg");
}
.lens-track {
  width: max-content;
  display: flex;
  animation: wb-marquee 14s linear infinite;
  will-change: transform;
}
.lens--right .lens-track { animation-direction: reverse; }
.lens-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: clamp(.55rem, 1.3vw, 1.4rem);
  padding-inline: clamp(.6rem, 1.5vw, 1.6rem);
}
.lens-word {
  color: #14191c;
  font-family: var(--wb-display);
  font-size: clamp(.9rem, 2.1vw, 2.2rem);
  line-height: 1;
  letter-spacing: .025em;
  white-space: nowrap;
}
.lens-separator { color: #14191c; opacity: .55; }
.glasses-stage:hover .lens-track,
.glasses-stage:focus .lens-track,
.glasses-stage.is-paused .lens-track { animation-play-state: paused; }
@keyframes wb-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/*
 * Animated face (web_baard_face_markup() in functions.php).
 * The inline SVG sets the height of the hero visual; the glasses and lens
 * words sit on top at the percentages PHP writes into --wb-glasses-*.
 * main.js toggles the state classes below every few seconds.
 */
/*
 * The whole face, down to the chin and the speech bubble, fits in the first
 * screen, with room below for the H1 and buttons (--wb-hero-tekst). On wide
 * screens that makes it narrower than the hero; the SVG then overflows its
 * box with its backdrop (blue + beard), so the sides continue seamlessly.
 */
.hero__visual--face {
  width: min(100%, max(360px, calc((100vh - 72px - var(--wb-topbar-h) - var(--wb-hero-tekst)) * var(--wb-face-ratio, 1.4025))));
  width: min(100%, max(360px, calc((100svh - 72px - var(--wb-topbar-h) - var(--wb-hero-tekst)) * var(--wb-face-ratio, 1.4025))));
  margin-inline: auto;
}
/* The mouth sits at the very bottom of the face, so the hero text must not slide up over it. */
.hero--face .hero__content { margin-top: 0; }
/* The buttons directly under the H1, so the main action is on the first screen. */
.hero--face .hero__content { display: flex; flex-direction: column; }
.hero--face .hero__actions { order: 1; margin-top: 1.5rem; }
.hero--face .hero__text { order: 2; }
/*
 * Concept: the head sits centred at the top and its beard runs on into the
 * brown page, so you scroll down through the beard. From laptop width up the
 * H1 and buttons stand centred on the beard, right under the chin.
 */
@media (min-width: 1024px) {
  .hero--face .hero__content {
    align-items: center;
    padding-top: 1.25rem;
    text-align: center;
  }
  .hero--face .hero__kicker { justify-content: center; }
  .hero--face .hero__title {
    max-width: none;
    font-size: clamp(3.5rem, min(6.5vw, 11vh), 6.5rem);
    line-height: 1;
  }
  .hero--face .hero__actions { justify-content: center; }
  .hero--face .hero__text { margin-top: 2rem; }
}
.face {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.hero__visual--face .glasses-stage { aspect-ratio: 1521.084 / 682.251; }
/*
 * Lens openings of gezicht/bril-met-neus.svg. The masks are the frame's own
 * lens holes (plus 4 units of bleed under the frame), so the white fills the
 * glass exactly: box = hole bbox ± 4 in the 1521 × 682 glasses file.
 */
.hero__visual--face .lens {
  top: 4.547%;
  width: 34.742%;
  aspect-ratio: 528.449 / 463.776;
  opacity: 0;
  transition: opacity .45s ease;
}
.hero__visual--face .lens--left {
  left: 7.957%;
  -webkit-mask-image: url("../images/gezicht/bril-glas-links.svg");
  mask-image: url("../images/gezicht/bril-glas-links.svg");
}
.hero__visual--face .lens--right {
  right: 8.002%;
  -webkit-mask-image: url("../images/gezicht/bril-glas-rechts.svg");
  mask-image: url("../images/gezicht/bril-glas-rechts.svg");
}
/* Eyes by default; the words take over the lenses now and then, and on hover or focus. */
.hero__visual--face.is-showing-words .lens { opacity: 1; }
.hero__visual--face .glasses-stage:is(:hover, :focus):not(.is-paused) .lens-track { animation-play-state: running; }

.face__deel,
.face__pupil,
.face__mond-binnen {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .35s cubic-bezier(.3, .7, .4, 1);
}
/* Blink: squash the whole eye for a moment. */
.hero__visual--face.is-blinking .face__deel--oog-links,
.hero__visual--face.is-blinking .face__deel--oog-rechts {
  transform: scaleY(.08);
  transition-duration: .07s;
}
/* Glance: the pupil slides inside the white it is clipped to (units are SVG px). */
.hero__visual--face[data-kijk="links"] .face__pupil { transform: translate(-70px, 8px); }
.hero__visual--face[data-kijk="rechts"] .face__pupil { transform: translate(25px, 12px); }
.hero__visual--face[data-kijk="omlaag"] .face__pupil { transform: translate(-25px, 45px); }
/* Surprised: eyebrows up. */
.hero__visual--face.is-verbaasd .face__deel--wenkbrauw-links,
.hero__visual--face.is-verbaasd .face__deel--wenkbrauw-rechts { transform: translateY(-45px); }
/* Mouth shapes (mond-01 … mond-05): main.js shows one at a time while talking. */
.face__mond-stand { display: none; }
.face__mond-stand.is-actief { display: inline; }
/* Fallback for the single mond.svg: the dark inside opens and closes from under the moustache. */
.face__mond-binnen { transform-origin: top center; }
.hero__visual--face.is-pratend .face__mond-binnen { animation: wb-praten 1.4s ease-in-out; }
/* Speech bubble: pops out of its tail tip (bottom-left corner), as if it comes from the mouth. */
.face__ballon-pop {
  opacity: 0;
  transform: scale(.15);
  transform-box: fill-box;
  transform-origin: 0% 100%;
  transition: transform .25s ease-in, opacity .2s ease-in;
}
.hero__visual--face.is-zegt .face__ballon-pop {
  opacity: 1;
  transform: scale(1);
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), opacity .15s ease-out;
}
.face__ballon-tekst {
  fill: var(--wb-bg);
  font-family: var(--wb-display);
  font-size: 170px; /* main.js shrinks longer texts to fit the bubble */
  letter-spacing: .01em;
}
/*
 * On phones the bubble is only ~75px wide, too small to read. Make it 1.5×
 * as big around its tail tip (10, 632.7 in the bubble's own units) and move
 * it 300 units left so it stays inside the face: the tip then points at the
 * outer edge of the moustache instead of beside it.
 */
@media (max-width: 600px) {
  .face__deel--tekstballon {
    transform-box: view-box;
    transform-origin: 10px 632.7px;
    transform: translate(-300px, 0) scale(1.5);
  }
}
@keyframes wb-praten {
  0%, 100% { transform: scaleY(1); }
  15% { transform: scaleY(.35); }
  30% { transform: scaleY(.9); }
  45% { transform: scaleY(.25); }
  62% { transform: scaleY(.8); }
  80% { transform: scaleY(.4); }
}

.hero__content {
  position: relative;
  z-index: 10;
  margin-top: clamp(-12rem, -13vw, -5rem);
}
.hero__kicker,
.wb-section__eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 var(--wb-space-eyebrow);
  color: var(--wb-accent);
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
}
/* Short rule in front of every eyebrow: a fixed anchor on the left edge. */
.hero__kicker::before,
.wb-section__eyebrow::before {
  content: "";
  flex: 0 0 2rem;
  height: 2px;
  background: currentColor;
}
.hero__title {
  max-width: 900px;
  margin: 0;
  font-family: var(--wb-display);
  font-size: clamp(4.3rem, 12vw, 10rem);
  font-weight: 400;
  line-height: .82;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.hero__text {
  max-width: var(--wb-measure);
  margin: var(--wb-space-heading) 0 0;
  color: var(--wb-paper);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.5;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.25rem; }
.wb-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .8rem 1.2rem;
  border: 1px solid var(--wb-accent);
  border-radius: 999px;
  background: var(--wb-accent);
  color: #101516;
  font-size: var(--wb-text-small);
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease;
}
.wb-button:hover,
.wb-button:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible { transform: translateY(-2px); }
.wb-button--ghost { background: transparent; color: var(--wb-paper); border-color: var(--wb-border); }

.front-page-content > * { margin-block: 0; }
.front-page-content > section,
.front-page-content > .wp-block-group { padding-block: var(--wb-space-section); }
/* Keep the beard as one continuous field; cards can still carry their own subtle surfaces. */
.front-page-content > :nth-child(even) { background: transparent; }
.wb-empty-state { padding-block: 5rem; color: var(--wb-muted); }

.wb-section { padding-block: var(--wb-space-section); }
.wb-section h2,
.wb-section-title {
  max-width: 16ch;
  margin: 0 0 var(--wb-space-heading);
  font-family: var(--wb-display);
  font-size: var(--wb-h2-size);
  font-weight: 400;
  line-height: .95;
  letter-spacing: .005em;
  text-transform: uppercase;
}
.wb-lead {
  max-width: var(--wb-measure);
  margin-block: 0;
  color: var(--wb-paper);
  font-size: var(--wb-lead-size);
  line-height: 1.55;
}
/* Supporting paragraphs sit one step quieter than the lead. */
.wb-section > .wp-block-group > p:not(.wb-lead):not(.wb-section__eyebrow) {
  margin-block: 1rem 0;
  color: var(--wb-muted);
}
.wb-section .wp-block-buttons { margin-top: var(--wb-space-content); }

.wb-card-grid,
.wb-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: var(--wb-space-content);
}
.wb-card,
.wb-price-card {
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border: 1px solid var(--wb-border);
  border-radius: var(--wb-radius);
  background: rgba(255,255,255,.025);
}
.wb-card h3,
.wb-price-card h3 {
  margin: 0 0 .5rem;
  font-family: var(--wb-body);
  font-size: var(--wb-h3-size);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.005em;
}
.wb-card p {
  margin: 0;
  color: var(--wb-muted);
  font-size: var(--wb-text-small);
  line-height: 1.6;
}

/* Two columns instead of three ("Waarom Web Baard?"); one column on small screens. */
.wb-card-grid--twee { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) {
  .wb-card-grid--twee { grid-template-columns: 1fr; }
}
/* Closing line under a card grid. */
.wb-card-grid + p { margin-top: var(--wb-space-heading) !important; }

/* Subtitle under a card title (services). */
.wb-card p.wb-card__sub {
  margin-bottom: .5rem;
  color: var(--wb-accent);
  font-weight: 600;
}

/* Short closing line of a section, in the display face. */
.front-page-content .wb-section > .wp-block-group > p.wb-uitspraak {
  max-width: 30ch !important;
  margin-block: var(--wb-space-heading) 0;
  color: var(--wb-accent);
  font-family: var(--wb-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.15;
}
.front-page-content .wb-section > .wp-block-group > .wb-card-grid + p.wb-uitspraak {
  margin-top: var(--wb-space-content) !important;
}

/* Way of working: five numbered steps, one list instead of more cards. */
.wb-stappen {
  counter-reset: stap;
  max-width: 46rem;
  margin: var(--wb-space-content) 0 0;
  padding: 0;
  list-style: none;
}
.wb-stappen li {
  counter-increment: stap;
  display: grid;
  grid-template-columns: 3rem 1fr;
  column-gap: 1rem;
  padding-block: 1.1rem;
  border-top: 1px solid var(--wb-border);
}
.wb-stappen li:last-child { border-bottom: 1px solid var(--wb-border); }
.wb-stappen li::before {
  content: counter(stap);
  grid-row: span 2;
  color: var(--wb-accent);
  font-family: var(--wb-display);
  font-size: 2rem;
  line-height: 1.1;
}
.wb-stappen h3 {
  margin: 0 0 .25rem;
  font-family: var(--wb-body);
  font-size: var(--wb-h3-size);
  font-weight: 700;
  line-height: 1.3;
}
.wb-stappen p {
  margin: 0;
  color: var(--wb-muted);
  font-size: var(--wb-text-small);
  line-height: 1.6;
}

/* Two lead paragraphs after each other. */
.wb-lead + .wb-lead { margin-top: 1rem; }

/* Sections reached through the menu stop below the sticky header. */
.front-page-content section[id] { scroll-margin-top: 73px; }

/* FAQ: core Details blocks, keyboard-accessible without any script. */
.wb-faq {
  max-width: 46rem;
  margin: 0 !important;
  border-bottom: 1px solid var(--wb-border);
}
.wb-faq:first-of-type { border-top: 1px solid var(--wb-border); margin-top: var(--wb-space-heading) !important; }
.wb-faq > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.wb-faq > summary::-webkit-details-marker { display: none; }
.wb-faq > summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--wb-accent);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform .2s ease;
}
.wb-faq[open] > summary::after { transform: rotate(45deg); }
.wb-faq > summary:hover,
.wb-faq > summary:focus-visible { color: var(--wb-accent); }
.wb-faq > p {
  max-width: var(--wb-measure);
  margin: 0 0 1.25rem;
  color: var(--wb-muted);
}

/* Contact: the address in plain text, for people who don't use a mail program. */
.wb-contact__tijden { margin-top: 1.5rem !important; }
.wb-contact__tijden a { color: var(--wb-accent); }
.wb-section > .wp-block-group > p a { color: var(--wb-accent); }
.wb-price-card__price { font-family: var(--wb-display); font-size: clamp(2.8rem, 5vw, 4.5rem); line-height: 1; color: var(--wb-accent); }
.wb-price-card ul { padding-left: 1.2rem; }


/*
 * Portfolio pattern
 * White project rows alternate image/text. Two beard-coloured circles are
 * centred on the top-right and bottom-left corners. Because three quarters of
 * each circle sit outside the white card on the same #401300 page background,
 * only the inner quarter reads as a curved beard hair gripping the project.
 */
.wb-portfolio {
  overflow: clip; /* clips like hidden, but keeps position: sticky working inside */
}
.wb-portfolio-list {
  display: grid;
  gap: clamp(5rem, 10vw, 9rem);
  margin-top: var(--wb-space-content);
  padding-block: clamp(3rem, 5vw, 5rem);
}
.wb-portfolio-card {
  --wb-portfolio-circle: clamp(7.5rem, 12vw, 11rem);
  position: relative;
  isolation: isolate;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 0 !important;
  width: 100%;
  min-height: clamp(28rem, 42vw, 36rem);
  margin: 0 !important;
  overflow: visible;
  background: #ffffff;
  color: #151719;
}
.wb-portfolio-card::before,
.wb-portfolio-card::after {
  content: "";
  position: absolute;
  z-index: 5;
  width: var(--wb-portfolio-circle);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--wb-beard);
  pointer-events: none;
}
.wb-portfolio-card::before {
  top: 0;
  right: 0;
  transform: translate(50%, -50%);
}
.wb-portfolio-card::after {
  bottom: 0;
  left: 0;
  transform: translate(-50%, 50%);
}
.wb-portfolio-card > .wp-block-column {
  position: relative;
  z-index: 2;
  min-width: 0;
  margin: 0 !important;
}
.wb-portfolio-card__media {
  flex: 0 0 60% !important;
  align-self: stretch !important;
  overflow: clip;
  background: #dff3f1;
}
.wb-portfolio-card__content {
  flex: 0 0 40% !important;
  align-self: stretch !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 4.25rem) !important;
  background: #ffffff;
}
.wb-portfolio-card__image,
.wb-portfolio-card__image img {
  width: 100%;
  height: 100%;
  margin: 0 !important;
}
.wb-portfolio-card__image {
  display: block;
  min-height: 100%;
}
.wb-portfolio-card__image img {
  display: block;
  min-height: clamp(28rem, 42vw, 36rem);
  object-fit: cover;
  object-position: top center; /* website screenshots: keep logo and menu in view */
}

/*
 * Screenshots often have white backgrounds that melt into the white text
 * panel. At rest the shot is greyscale and slightly dimmed, so white turns
 * light grey and the edge reads clearly; hovering (or tabbing into) the card
 * brings the colour back. A hairline frame marks the edge in every state.
 */
.wb-portfolio-card__image {
  position: relative;
}
.wb-portfolio-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(21, 23, 25, .12);
  pointer-events: none;
}
@media (hover: hover) {
  .wb-portfolio-card__image img {
    filter: grayscale(1) brightness(.9);
    transition: filter .45s ease;
  }
  .wb-portfolio-card:hover .wb-portfolio-card__image img,
  .wb-portfolio-card:focus-within .wb-portfolio-card__image img {
    filter: none;
  }
}
.wb-portfolio-card__client {
  margin: 0 0 var(--wb-space-eyebrow);
  color: #b4471f; /* darker than --wb-skin: readable on the white card (5.2:1) */
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.wb-portfolio-card .wb-portfolio-card__title {
  margin: 0 0 1.25rem;
  color: #151719;
  font-family: var(--wb-display);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 1.05; /* room for accents on capitals, as in "ÉN" */
  text-transform: uppercase;
}
.wb-portfolio-card__rol {
  margin: 0 0 1rem;
  color: #151719;
  font-size: var(--wb-text-small);
  font-weight: 700;
}
.wb-portfolio-card__copy {
  max-width: 34rem;
  margin: 0 0 1rem;
  color: #4f5558;
  font-size: var(--wb-text);
  line-height: 1.6;
}

/*
 * "Lees het hele verhaal": the rest of a case sits in a core Details block,
 * so the card keeps the height of its screenshot until a visitor opens it.
 */
.wb-portfolio-card__meer {
  margin: 0 0 1.75rem;
}
.wb-portfolio-card__meer > summary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 0;
  color: var(--wb-beard);
  font-size: var(--wb-text-small);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.wb-portfolio-card__meer > summary::-webkit-details-marker { display: none; }
.wb-portfolio-card__meer > summary::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--wb-beard);
  color: var(--wb-paper);
  font-size: 1rem;
  line-height: 1;
  transition: transform .2s ease;
}
.wb-portfolio-card__meer[open] > summary::before { transform: rotate(45deg); }
.wb-portfolio-card__meer > summary:hover,
.wb-portfolio-card__meer > summary:focus-visible { text-decoration: underline; }
.wb-portfolio-card__meer[open] > summary { margin-bottom: 1rem; }

/* With the story open the card grows: keep the screenshot at its closed size
   instead of zooming in, and let it travel along while the text is read. */
@media (min-width: 781px) {
  .wb-portfolio-card:has(.wb-portfolio-card__meer[open]) .wb-portfolio-card__media {
    background: #ffffff;
  }
  .wb-portfolio-card:has(.wb-portfolio-card__meer[open]) .wb-portfolio-card__image {
    position: sticky;
    top: 72px; /* below the sticky site header */
    height: auto;
    min-height: 0;
  }
  .wb-portfolio-card:has(.wb-portfolio-card__meer[open]) .wb-portfolio-card__image img {
    height: clamp(28rem, 42vw, 36rem);
    min-height: 0;
  }
}
.wb-portfolio-card .wp-block-buttons {
  margin-top: .25rem;
}
.wb-portfolio-card .wp-block-button__link {
  border-color: var(--wb-beard);
  background: var(--wb-beard);
  color: var(--wb-paper);
}
.wb-portfolio-card .wp-block-button__link:hover,
.wb-portfolio-card .wp-block-button__link:focus-visible {
  background: #551b04;
}

@media (max-width: 780px) {
  .wb-portfolio-list {
    gap: 4.5rem;
  }
  .wb-portfolio-card {
    --wb-portfolio-circle: clamp(6rem, 24vw, 8rem);
    flex-direction: column !important;
    min-height: 0;
  }
  /* Specific enough to beat core's stacked-column `flex-basis: 100% !important`,
   * which would make each column as tall as the whole card. */
  .wb-portfolio-list .wb-portfolio-card.wp-block-columns > .wp-block-column {
    flex: 0 0 auto !important;
    width: 100%;
  }
  .wb-portfolio-card--image-right .wb-portfolio-card__media {
    order: 1;
  }
  .wb-portfolio-card--image-right .wb-portfolio-card__content {
    order: 2;
  }
  /*
   * Stacked on mobile the image must size itself: the desktop rules make it
   * fill 100% of a row height, which here resolves to the text column's
   * height and produced ~670px tall images. Project shots are 16:9 site
   * screenshots, so keep the top of the page in view.
   */
  .wb-portfolio-card__image,
  .wb-portfolio-card__image img {
    height: auto;
    min-height: 0;
  }
  .wb-portfolio-card__image img {
    aspect-ratio: 16 / 10;
    object-position: top center;
  }
  .wb-portfolio-card__content {
    justify-content: flex-start;
  }
  .wb-portfolio-card__content {
    padding: clamp(1.6rem, 8vw, 3rem) !important;
  }
}

.entry__title { font-family: var(--wb-display); font-size: clamp(3.5rem, 8vw, 7rem); line-height: .9; }
.entry__title a { text-decoration: none; }
/* Long Dutch words ("doorontwikkeling") must fit on a phone. */
@media (max-width: 600px) {
  .entry__title { font-size: 12.5vw; line-height: 1; }
}
.entry__content { max-width: 760px; }
/* Long text pages (e.g. algemene voorwaarden): calmer headings and readable lists. */
.entry__content h2 {
  margin: 2.75rem 0 .75rem;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.1;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.entry__content p,
.entry__content li { color: var(--wb-paper); line-height: 1.65; }
.entry__content ol { padding-left: 1.4rem; }
.entry__content li + li { margin-top: .5rem; }
.entry__content a:not(.wp-block-button__link) { color: var(--wb-accent); }
.entry__content ul { padding-left: 1.4rem; }
.entry__content .wb-lead { margin-block: 1.5rem 0; }
.entry__content .wb-uitspraak {
  margin-block: 1.5rem;
  color: var(--wb-accent);
  font-family: var(--wb-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.15;
}
.entry__content .wp-block-buttons { margin-top: 1.5rem; }
.page .entry { border-bottom: 0; }
.entry { padding-block: 2rem; border-bottom: 1px solid var(--wb-border); }

/*
 * Full-bleed illustrated footer. The semantic footer content sits above the
 * artwork; the artwork itself is a separate decorative layer (option B).
 * Its source image starts with exactly #401300, so it flows directly out of
 * the beard-coloured page before revealing the beard tip, legs and shoes.
 */
.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 0;
  background: var(--wb-beard);
}
.site-footer__inner {
  position: relative;
  z-index: 2;
  min-height: 110px;
  padding-block: clamp(2rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--wb-muted);
}
.site-footer a { color: var(--wb-paper); }
.site-footer__art {
  width: 100vw;
  max-width: none;
  aspect-ratio: 2048 / 1498;
  margin-top: -1px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background-image: url("../images/footer.webp");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    background: transparent;
    color: var(--wb-paper);
    border: 1px solid var(--wb-border);
    border-radius: 50%;
  }
  .menu-toggle__line { width: 19px; height: 2px; background: currentColor; display: block; margin: 2px 0; }
  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 1rem;
    right: 1rem;
    padding: 1rem;
    background: #1d2023;
    border: 1px solid var(--wb-border);
    border-radius: 1rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; gap: .35rem; }
  .site-nav a { display: block; padding: .7rem; }
  .wb-card-grid,
  .wb-pricing-grid { grid-template-columns: 1fr; }
  .hero__content { margin-top: clamp(-5rem, -8vw, -2rem); }
}

@media (max-width: 600px) {
  :root { --wb-shell: min(100% - 1.25rem, 1200px); }
  .site-branding__name { font-size: 1.3rem; }
  .hero { min-height: auto; }
  .hero__visual--empty { min-height: 20rem; }
  .hero__content { margin-top: 0; padding-top: 1.5rem; }
  .hero__title { font-size: clamp(3.6rem, 18vw, 6.6rem); }
  .hero--face .wb-button { padding-inline: 1rem; }
  .lens-word { font-size: clamp(.65rem, 2.7vw, 1rem); }
  .site-footer__inner { align-items: flex-start; flex-direction: column; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .lens-track { transform: none !important; }
}
