/* ==========================================================================
   Coraltech — main stylesheet
   Figma frame: 1600px · container 1440px (gutter 80) · narrow 1280px (gutter 160)
   ========================================================================== */

/* ---------- Fonts (self-hosted, no Google requests) ---------- */
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/figtree-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/figtree-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Brisa'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/brisa.woff) format('woff'); }

/* ---------- Tokens (Figma: Colors/Primary/Red, Colors/Primary/Blue) ---------- */
:root {
  --red: #FE3835;
  --blue: #15A0F5;
  --bg: #F5F5F5;
  --white: #FFFFFF;
  --ink: #000000;
  --ink-2: #181818;
  --ink-3: #1A1A1A;
  --ink-4: #1E212C;
  --line: rgba(26, 26, 26, .07);
  --rule: rgba(0, 0, 0, .2);

  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-hand: 'Brisa', 'Brush Script MT', cursive;

  --gutter: clamp(16px, 5vw, 80px);
  --gutter-wide: clamp(16px, 10vw, 160px);
  --wrap: min(100% - 2 * var(--gutter), 1440px);
  --wrap-narrow: min(100% - 2 * var(--gutter-wide), 1280px);
  --section: clamp(72px, 8.125vw, 130px);
  --radius: 10px;

  --fs-h1: clamp(38px, 4.375vw, 70px);
  --fs-h2: clamp(32px, 3.125vw, 50px);
  --fs-statement: clamp(30px, 3.75vw, 60px);
  --fs-h3: clamp(24px, 1.875vw, 30px);
  --fs-hand: clamp(30px, 2.5vw, 40px);
  --fs-lead: clamp(17px, 1.25vw, 20px);
  --fs-body: clamp(16px, 1.125vw, 18px);

  --ease: cubic-bezier(.625, .05, 0, 1);

  /* Osmo Button 014 */
  --button-014-color: var(--ink-2);
  --button-014-color-background: var(--white);
  --button-014-icon-color: #fff;
  --button-014-icon-color-background: var(--red);
  --button-014-hover-icon-color: #fff;
  --button-014-hover-icon-color-background: var(--blue);
  --button-014-color-focus: var(--ink-2);
  --button-014-border-radius: 100px;
  --button-014-icon-outer-size: 40px;
  --button-014-icon-border-radius: 40px;
  --button-014-gap: 15px;
  --button-014-padding: 5px 5px 5px 25px;
  --button-014-focus-inset: -4px;
  --button-014-click-scale: 1.15;
  --button-014-ease-click: cubic-bezier(0.4, 0, 0.2, 1);
  --button-014-ease-hover: cubic-bezier(0.19, 0.69, 0.33, 1.33);
  --button-014-ease-hover-elastic-out: linear(0, 0.5737 7.6%, 0.8382 11.87%, 0.9463 14.19%, 1.0292 16.54%, 1.0886 18.97%, 1.1258 21.53%, 1.137 22.97%, 1.1424 24.48%, 1.1423 26.1%, 1.1366 27.86%, 1.1165 31.01%, 1.0507 38.62%, 1.0219 42.57%, 0.9995 46.99%, 0.9872 51.63%, 0.9842 58.77%, 1.0011 81.26%, 1);
  --button-014-ease-hover-out: cubic-bezier(0.19, 0.69, 0.33, 1);
  --button-014-ease-focus: cubic-bezier(0.32, 0.72, 0, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; } /* page transitions: no jump when the scrollbar hides/returns */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; font-family: var(--font); font-size: var(--fs-body); line-height: 1.2; font-weight: 500; color: var(--ink); background: transparent; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
/* Images and videos: not draggable (draggable="false" in the markup) and not selectable (no selection highlight on select-all) */
img, video, svg, .hero__media, .tab-visual__wrap, .cascading-slider__item-bg, .project-card__media, .contact__panel, .clients__marquee { -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
:where(ul[class], ol[class]) { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }

.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; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 1000; padding: 12px 20px; background: var(--white); border-radius: 100px; font-weight: 600; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.h1, .h2 { font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.h1 { font-size: var(--fs-h1); line-height: 1.05; }
.h2 { font-size: var(--fs-h2); }
.handwriting { font-family: var(--font-hand); font-weight: 400; font-size: var(--fs-hand); line-height: .8; color: rgba(0, 0, 0, .5); letter-spacing: 0; }

.main { position: relative; z-index: 1; }

/* ---------- Page transition (Osmo Curved Wipe Page Transition + Barba) ---------- */
.page { position: relative; background: var(--bg); }
.transition {
  z-index: 100;
  pointer-events: none;
  position: fixed;
  inset: 0;
  overflow: clip;
}

.transition__panel {
  color: var(--red);
  background-color: currentColor;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
}

.transition__panel-top {
  transform-origin: bottom;
  flex-flow: column;
  align-items: center;
  width: 100%;
  height: 0%;
  display: flex;
  position: absolute;
  bottom: calc(100% - 1px);
  left: 0;
  overflow: hidden;
}

.transition__panel-bottom {
  transform-origin: top;
  flex-flow: column;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  height: 0%;
  display: flex;
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  overflow: hidden;
}

.transition__panel-circle {
  aspect-ratio: auto;
  background-color: currentColor;
  border-radius: 50%;
  width: 125%;
  height: 500%;
  position: absolute;
}

.transition__logo {
  color: #f4f4f4;
  opacity: 0;
  width: 8em;
  display: flex;
  position: absolute;
  top: 50%;
  left: 50%;
  overflow: hidden;
  transform: translate(-50%, -50%);
}
.transition__logo svg { width: 100%; height: auto; }
.transition__logo svg path { fill: #fff; } /* logo fully white on the red panel */

/* ---------- Background lines (6 vertical lines on the 1440 grid) ---------- */
.bg-lines { position: fixed; top: 0; bottom: 0; left: 50%; width: var(--wrap); transform: translateX(-50%); z-index: 0; pointer-events: none; }
.bg-lines span { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.bg-lines span:nth-child(1) { left: 0; }
.bg-lines span:nth-child(2) { left: 20%; }
.bg-lines span:nth-child(3) { left: 40%; }
.bg-lines span:nth-child(4) { left: 60%; }
.bg-lines span:nth-child(5) { left: 80%; }
.bg-lines span:nth-child(6) { left: 100%; transform: translateX(-1px); }

/* ---------- Osmo Button 014 ---------- */
.button-014 { color: var(--button-014-color); -webkit-user-select: none; user-select: none; background-color: #0000; outline-style: none; padding: 0; line-height: 1; text-decoration: none; display: inline-grid; position: relative; -webkit-tap-highlight-color: transparent; font-size: 16px; font-weight: 600; }
.button-014::after { content: ''; display: block; position: absolute; inset: var(--button-014-focus-inset); border-radius: var(--button-014-border-radius); transition: box-shadow 0.3s var(--button-014-ease-focus); pointer-events: none; z-index: 1; }
.button-014:is(:focus-visible)::after { box-shadow: 0 0 0 0.125em var(--button-014-color-focus); }
.button-014__bg { background-color: var(--button-014-color-background); border-radius: var(--button-014-border-radius); grid-area: 1 / 1; width: 100%; height: 100%; padding: 0; transition: scale 0.7s var(--button-014-ease-hover-elastic-out); }
.button-014__inner { grid-column-gap: var(--button-014-gap); grid-row-gap: var(--button-014-gap); width: 100%; height: 100%; padding: var(--button-014-padding); z-index: 1; grid-area: 1 / 1; justify-content: center; align-items: center; display: flex; }
.button-014__text { white-space: nowrap; }
.button-014__icon-wrap { width: var(--button-014-icon-outer-size); height: var(--button-014-icon-outer-size); display: grid; transition: scale 0.15s var(--button-014-ease-click); }
.button-014:active .button-014__icon-wrap { scale: var(--button-014-click-scale); }
.button-014__icon-outer { border-radius: var(--button-014-icon-border-radius); background-color: var(--button-014-icon-color-background); width: 100%; height: 100%; color: var(--button-014-icon-color); grid-area: 1 / 1; justify-content: center; align-items: center; display: flex; }
.button-014__icon-outer.is--default { transition: scale 0.4s var(--button-014-ease-hover), rotate 0.4s var(--button-014-ease-hover); }
.button-014__icon-outer.is--hover { background-color: var(--button-014-hover-icon-color-background); color: var(--button-014-hover-icon-color); rotate: -102deg; scale: 0; transition: scale 0.325s var(--button-014-ease-hover-out), rotate 0.4s var(--button-014-ease-hover); }
.button-014__icon { width: 11px; height: 6.3px; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .button-014:is(:hover, :focus-visible) .button-014__bg,
  [data-hover]:is(:hover, :focus-visible) .button-014 .button-014__bg { scale: 1.035 1.075; transition: scale 0.75s 0.05s var(--button-014-ease-hover-elastic-out); }
  .button-014:is(:hover, :focus-visible) .button-014__icon-outer.is--default,
  [data-hover]:is(:hover, :focus-visible) .button-014 .button-014__icon-outer.is--default { rotate: 102deg; scale: 0; transition: scale 0.325s 0.05s var(--button-014-ease-hover-out), rotate 0.4s 0.05s var(--button-014-ease-hover); }
  .button-014:is(:hover, :focus-visible) .button-014__icon-outer.is--hover,
  [data-hover]:is(:hover, :focus-visible) .button-014 .button-014__icon-outer.is--hover { scale: 1; rotate: 0deg; transition: scale 0.4s 0.05s var(--button-014-ease-hover), rotate 0.4s 0.05s var(--button-014-ease-hover); }
}

/* ---------- Header ---------- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: transform .45s var(--ease), background-color .3s; }
.admin-bar .header { top: 32px; }
.header.is-hidden { transform: translateY(-110%); }
.header.is-scrolled { background: rgba(245, 245, 245, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.header__inner { width: var(--wrap); margin-inline: auto; height: 120px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; transition: height .3s var(--ease); }
.header.is-scrolled .header__inner { height: 90px; }
.header__logo { justify-self: start; display: block; width: 66.5px; }
.header__logo svg { width: 66.5px; height: 60px; }
.nav__list { display: flex; gap: 60px; }
.nav__link { display: block; padding: 10px 0; font-size: 18px; font-weight: 600; line-height: 18px; color: var(--ink-2); position: relative; }
.nav__link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease); }
.nav__link:hover::after, .nav__item--current .nav__link::after { transform: scaleX(1); transform-origin: left; }
/* Dropdown under Diensten / Projecten (items filled automatically, see inc/navigation.php): hover, focus or the chevron button */
.nav__item { position: relative; }
.nav__item--has-children { display: flex; align-items: center; gap: 6px; }
.nav__toggle { display: grid; place-items: center; width: 24px; height: 24px; margin-right: -6px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-2); cursor: pointer; transition: background-color .3s, color .3s; }
.nav__toggle svg { width: 10px; height: 6px; transition: transform .3s var(--ease); }
.nav__toggle:hover, .nav__toggle:focus-visible { color: var(--red); }
.nav__submenu { position: absolute; z-index: 5; top: 100%; left: 50%; min-width: 280px; max-width: 360px; padding: 18px 0 0; opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .25s, transform .35s var(--ease), visibility 0s .35s; }
.nav__submenu::before { content: ''; position: absolute; inset: 18px 0 0; z-index: -1; background: var(--white); border-radius: var(--radius); }
.nav__subitem { padding: 0 10px; }
.nav__subitem:first-child { padding-top: 10px; }
.nav__subitem:last-child { padding-bottom: 10px; }
.nav__sublink { display: block; padding: 12px 16px; border-radius: 5px; font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--ink-2); transition: background-color .25s, color .25s; }
.nav__sublink:hover, .nav__sublink:focus-visible, .nav__subitem--current .nav__sublink { background: var(--bg); color: var(--red); }
.nav__subitem--all { margin-top: 6px; padding-top: 6px !important; border-top: 1px solid var(--line); }
.nav__subitem--all .nav__sublink { color: var(--red); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nav__subitem--all .nav__sublink::after { content: '\2192'; font-weight: 700; transition: transform .3s var(--ease); }
.nav__subitem--all .nav__sublink:hover::after { transform: translateX(4px); }
.nav__item.is-open > .nav__submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .25s, transform .35s var(--ease), visibility 0s; }
.nav__item.is-open > .nav__toggle svg { transform: rotate(180deg); }
/* Dim the page while a dropdown is open (under the header, above the page) */
.nav-overlay { position: fixed; inset: 0; z-index: 49; background: rgba(18, 18, 18, .25); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s, visibility 0s .3s; }
body:has(.nav__item.is-open) .nav-overlay { opacity: 1; visibility: visible; transition: opacity .3s, visibility 0s; }
@media (hover: hover) and (pointer: fine) {
  .nav__item--has-children:hover > .nav__submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .25s, transform .35s var(--ease), visibility 0s; }
  .nav__item--has-children:hover > .nav__toggle svg { transform: rotate(180deg); }
  body:has(.nav__item--has-children:hover) .nav-overlay { opacity: 1; visibility: visible; transition: opacity .3s, visibility 0s; }
}
.header__cta { justify-self: end; }
/* ---------- Mobile/tablet menu: Osmo Scaling Hamburger Navigation (≤ 991px) ---------- */
.navigation[data-navigation-status] {
  z-index: 500;
  pointer-events: none;
  position: fixed;
  inset: 0;
  display: none;
}

.navigation__dark-bg {
  transition: all 0.7s cubic-bezier(0.5, 0.5, 0, 1);
  opacity: 0;
  pointer-events: auto;
  visibility: hidden;
  background-color: #000;
  position: absolute;
  inset: 0;
}

[data-navigation-status="active"] .navigation__dark-bg {
  opacity: 0.33;
  visibility: visible;
}

.hamburger-nav {
  border-radius: 1.5em;
  position: absolute;
  top: 17px;
  right: var(--gutter);
}
.admin-bar .hamburger-nav { top: calc(17px + 32px); }
@media (max-width: 782px) { .admin-bar .hamburger-nav { top: calc(17px + 46px); } }

.hamburger-nav__bg {
  transition: all 0.7s cubic-bezier(0.5, 0.5, 0, 1);
  background-color: var(--red);
  border-radius: 1.75em;
  width: 3.5em;
  height: 3.5em;
  position: absolute;
  top: 0;
  right: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .06);
}

[data-navigation-status="active"] .hamburger-nav__bg {
  width: 100%;
  height: 100%;
  background-color: var(--white);
}

.hamburger-nav__group {
  transition: all 0.5s cubic-bezier(0.5, 0.5, 0, 1), transform 0.7s cubic-bezier(0.5, 0.5, 0, 1);
  grid-column-gap: 1em;
  grid-row-gap: 1em;
  pointer-events: auto;
  transform-origin: 100% 0;
  flex-flow: column;
  padding: 2.25em 2.5em 2em 2em;
  display: flex;
  position: relative;
  transform: scale(0.15) rotate(0.001deg);
  opacity: 0;
  visibility: hidden;
}

.hamburger-nav__group { max-height: calc(100dvh - 34px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.admin-bar .hamburger-nav__group { max-height: calc(100dvh - 34px - 46px); }
[data-navigation-status="active"] .hamburger-nav__group {
  transform: scale(1) rotate(0.001deg);
  opacity: 1;
  visibility: visible;
}

.hamburger-nav__menu-p {
  opacity: .5;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 0;
  font-family: var(--font);
  font-size: .875em;
  font-weight: 600;
}

.hamburger-nav__ul {
  grid-column-gap: .375em;
  grid-row-gap: .375em;
  flex-flow: column;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  display: flex;
  position: relative;
}

.hamburger-nav__li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hamburger-nav__a {
  color: var(--ink-2);
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  display: flex;
}

.hamburger-nav__a[aria-current] .hamburger-nav__p {
  opacity: 0.33;
}

.hamburger-nav__li--has-sub { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: .5em; }
.hamburger-nav__sub-toggle { display: grid; place-items: center; width: 2.25em; height: 2.25em; padding: 0; border: 0; border-radius: 50%; background: var(--bg); color: var(--ink-2); cursor: pointer; }
.hamburger-nav__sub-toggle svg { width: .75em; height: auto; transition: transform .4s var(--ease); }
.hamburger-nav__sub-toggle[aria-expanded="true"] { background: var(--red); color: #fff; }
.hamburger-nav__sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.hamburger-nav__sub { grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .45s var(--ease), visibility 0s .45s; }
.hamburger-nav__sub.is-open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .45s var(--ease), visibility 0s; }
.hamburger-nav__sub-ul { min-height: 0; overflow: hidden; margin: 0; padding: 0 0 0 .75em; list-style: none; border-left: 2px solid var(--red); }
.hamburger-nav__sub-ul li:first-child { padding-top: .25em; }
.hamburger-nav__sub-ul li:last-child { padding-bottom: .5em; }
.hamburger-nav__sublink { display: block; padding: .35em 0; font-size: 1.05em; font-weight: 600; line-height: 1.3; color: var(--ink-2); }
.hamburger-nav__sublink[aria-current] { color: var(--red); }
.hamburger-nav__sublink--all { color: var(--red); }
.hamburger-nav__sublink--all::after { content: ' \2192'; }

.hamburger-nav__p {
  white-space: nowrap;
  margin-top: 0;
  margin-bottom: 0;
  padding-right: 1.25em;
  font-size: 2em;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.hamburger-nav__dot {
  transition: all 0.7s cubic-bezier(0.5, 0.5, 0, 1);
  background-color: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
  width: .5em;
  height: .5em;
  transform: scale(0) rotate(0.001deg);
  opacity: 0.5;
}

.hamburger-nav__a[aria-current] .hamburger-nav__dot {
  transform: scale(1) rotate(0.001deg);
  opacity: 1;
}

.hamburger-nav:has(.hamburger-nav__a:hover) .hamburger-nav__dot {
  transform: scale(0) rotate(0.001deg);
}

.hamburger-nav .hamburger-nav__a:hover .hamburger-nav__dot {
  transform: scale(1) rotate(0.001deg);
  opacity: 0.25;
}

.hamburger-nav__toggle {
  transition: transform 0.7s cubic-bezier(0.5, 0.5, 0, 1);
  pointer-events: auto;
  cursor: pointer;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 3.5em;
  height: 3.5em;
  display: flex;
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(0em, 0em) rotate(0.001deg);
}

[data-navigation-status="active"] .hamburger-nav__toggle {
  transform: translate(-1em, 1em) rotate(0.001deg);
}

.hamburger-nav__toggle-bar {
  transition: transform 0.7s cubic-bezier(0.5, 0.5, 0, 1), background-color 0.4s;
  background-color: var(--white);
  width: 40%;
  height: .125em;
  position: absolute;
  transform: translateY(-0.15em) rotate(0.001deg);
}

.hamburger-nav__toggle:hover .hamburger-nav__toggle-bar {
  transform: translateY(0.15em) rotate(0.001deg);
}

[data-navigation-status="active"] .hamburger-nav__toggle .hamburger-nav__toggle-bar {
  transform: translateY(0em) rotate(45deg);
  background-color: var(--ink-2);
}

.hamburger-nav__toggle .hamburger-nav__toggle-bar:nth-child(2) {
  transition: transform 0.7s cubic-bezier(0.5, 0.5, 0, 1), background-color 0.4s;
  transform: translateY(0.15em) rotate(0.001deg);
}

.hamburger-nav__toggle:hover .hamburger-nav__toggle-bar:nth-child(2) {
  transform: translateY(-0.15em) rotate(0.001deg);
}

[data-navigation-status="active"] .hamburger-nav__toggle .hamburger-nav__toggle-bar:nth-child(2) {
  transform: translateY(0em) rotate(-45deg);
  background-color: var(--ink-2);
}

/* ---------- Link lists: dim the other links while one is hovered ---------- */
.nav__link, .footer-nav__link, .footer__lines a, .hamburger-nav__a { transition: opacity .3s, color .3s; }
@media (hover: hover) {
  :is(.footer-nav__list, .footer__lines, .hamburger-nav__ul):has(a:hover) a:not(:hover) { opacity: 0.5; }
  .nav__list:has(.nav__link:hover) .nav__link:not(:hover) { opacity: 0.5; }
}

/* ---------- Hero ---------- */
.hero { --s0: .52; padding-top: 170px; }
.hero__head { width: var(--wrap-narrow); margin-inline: auto; }
.hero__title { font-size: var(--fs-h1); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
.hero__line { display: block; }
/* Intro: titles are revealed word by word by main.js (hidden until split; shown directly without motion) */
.js .hero__title, .js .page-hero__title { visibility: hidden; }
.mask-word { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .14em; margin: 0 -.06em -.14em; }
.mask-word__inner { display: inline-block; will-change: transform; }
@media (prefers-reduced-motion: reduce) { .js .hero__title, .js .page-hero__title { visibility: visible; } }
.hero__line--1 { padding-left: 22.5%; }
.hero__line--2 { text-align: right; margin-top: .143em; }
.hero__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin-top: 40px; }
.hero__text { max-width: 750px; font-size: var(--fs-lead); line-height: 1.2; letter-spacing: -.02em; }
.hero__hint { position: relative; margin: 31px 108px -28px 0; text-align: right; white-space: nowrap; }
.hero__hint-arrow { position: absolute; left: calc(100% + 34px); top: 25px; width: 29px; height: 84px; color: var(--ink-3); opacity: .5; }
.hero__stage { position: relative; margin-top: 101px; }
.hero__down { position: absolute; z-index: 3; top: -50px; left: 50%; width: 100px; height: 100px; margin-left: -50px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; transition: background-color .3s; } /* no transform transition: it fights the GSAP intro */
.hero__down svg { width: 20px; height: 11px; transform: rotate(90deg); }
.hero__down:hover { background: var(--blue); }
.hero__media { --p: 0; --s: calc(var(--s0) + (1 - var(--s0)) * var(--p)); position: relative; width: 100%; aspect-ratio: 1600 / 764; overflow: hidden; background: #2a2622; transform: scale(var(--s)); transform-origin: 50% 0; border-radius: calc(var(--radius) * (1 - var(--p)) / var(--s)); will-change: transform; }
.hero__image, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- About ---------- */
.about { padding-top: var(--section); }
.about__inner { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; text-align: center; display: grid; justify-items: center; }
.about__title { max-width: 1100px; }
.about__text { margin-top: 25px; font-size: var(--fs-body); line-height: 1.2; }
.about__text p + p { margin-top: 1.2em; }
.about__button { margin-top: 25px; }

/* ---------- Clients (marquee behind a red box) ---------- */
.clients { position: relative; margin-top: 108px; min-height: 212px; display: grid; place-items: center; }
.clients__marquee { grid-area: 1 / 1; width: 100%; display: flex; overflow: hidden; }
.clients__track { flex: none; display: flex; align-items: center; gap: 80px; padding-right: 80px; animation: marquee 40s linear infinite; }
.clients__logo img { height: 80px; width: auto; max-width: 240px; object-fit: contain; mix-blend-mode: multiply; }
.clients__box { grid-area: 1 / 1; position: relative; z-index: 2; width: 425px; max-width: calc(100% - 2 * var(--gutter)); min-height: 212px; padding: 40px; background: var(--red); border-radius: var(--radius); color: #fff; font-size: clamp(28px, 2.5vw, 40px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; display: flex; align-items: center; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Services (Osmo Cascading Slider) ---------- */
.services { padding-top: var(--section); }
.services__title { width: var(--wrap-narrow); margin: 0 auto 40px; text-align: center; }
[data-cascading-viewport] { --gap: 20px; }
[data-cascading-slide] { --clip: 0; --radius: 10px; }
.cascading-slider { width: var(--wrap-narrow); max-width: 1280px; margin-left: auto; margin-right: auto; position: relative; }
.cascading-slider__collection { width: 100%; }
.cascading-slider__list { width: 100%; height: 400px; position: relative; overflow: hidden; }
.cascading-slider__item { color: #fff; cursor: pointer; will-change: transform, clip-path; clip-path: inset(0px calc(var(--clip) * 1px) round var(--radius)); -webkit-user-select: none; user-select: none; height: 100%; position: absolute; inset: 0% auto auto 0%; }
.cascading-slider__item[data-status="active"] { cursor: default; }
.cascading-slider__item-inner { width: 100%; height: 100%; position: relative; overflow: hidden; }
.cascading-slider__item-bg { z-index: 0; position: absolute; inset: 0%; background: #d9d9d9; }
.cascading-slider__item-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(56.31deg, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, 0) 100%); }
.cascading-slider__img { object-fit: cover; width: 100%; height: 100%; position: absolute; inset: 0%; }
.cascading-slider__item-content { z-index: 2; padding: 0 40px 40px 40px; position: absolute; inset: auto 0% 0%; }
.cascading-slider__h, .cascading-slider__p { opacity: 0; transition: all .3s cubic-bezier(.645, .045, .355, 1); transform: translate(0, .25em); transition-delay: 0ms; }
.cascading-slider__h { font-size: 35px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.cascading-slider__p { margin-top: 10px; max-width: 510px; font-size: 16px; font-weight: 400; line-height: 1.3; }
[data-cascading-slide][data-status="active"] .cascading-slider__h,
[data-cascading-slide][data-status="active"] .cascading-slider__p { transition-delay: 400ms; opacity: 1; transform: translate(0px, 0em); }
[data-cascading-slide][data-status="active"] .cascading-slider__p { transition-delay: 480ms; }
.cascading-slider__link { position: absolute; inset: -400px 0 0; pointer-events: none; }
[data-status="active"] .cascading-slider__link { pointer-events: auto; }
.cascading-slider__button-label { position: absolute; z-index: 3; top: 10px; right: 10px; padding: 15px 25px; background: var(--white); border-radius: 5px; color: var(--ink); font-size: 16px; font-weight: 700; line-height: 19px; pointer-events: none; opacity: 0; transform: translateY(-.5em); transition: opacity .3s cubic-bezier(.645, .045, .355, 1), transform .3s cubic-bezier(.645, .045, .355, 1), background-color .3s, color .3s; }
[data-status="active"] .cascading-slider__button-label { opacity: 1; transform: none; transition-delay: 400ms, 400ms, 0s, 0s; }
[data-status="active"]:hover .cascading-slider__button-label { background: var(--red); color: #fff; }
.cascading-slider__nav { gap: 7px; flex-flow: row; justify-content: center; align-items: center; margin-top: 30px; margin-left: auto; margin-right: auto; display: flex; position: relative; }
.cascading-slider__button { color: #fff; background-color: var(--red); border-radius: 50%; justify-content: center; align-items: center; width: 50px; height: 50px; padding: 0; display: flex; cursor: pointer; border: none; font: inherit; transition: background-color .3s, transform .3s var(--ease); }
.cascading-slider__button:hover { background-color: var(--blue); }
.cascading-slider__button:active { transform: scale(.94); }
.cascading-slider__button-arrow { width: 14px; height: auto; }
.cascading-slider__button-arrow.is--prev { transform: rotate(-180deg); }
.projects__nav { display: none; }
[data-loop-clone] { display: none; }

/* ---------- Statement (fills in while scrolling) ---------- */
.statement { width: var(--wrap-narrow); margin: var(--section) auto 0; }
.statement__text { font-size: var(--fs-statement); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: var(--ink-3); }
.statement__word { display: inline-block; }
.js .statement__text.is-split .statement__word { opacity: .4; }

/* ---------- Why (Osmo Tab System) ---------- */
.why { margin-top: 60px; overflow-x: clip; }
.tab-layout__wrap { display: grid; grid-template-columns: 742fr 858fr; align-items: start; position: relative; z-index: 1; }
.tab-layout__col:first-child { padding-left: max(var(--gutter-wide), (100vw - 1280px) / 2); padding-right: 40px; padding-top: clamp(0px, 4.125vw, 66px); }
.tab-content__wrap { width: 100%; max-width: 482px; }
.tab-content__inner { display: flex; flex-flow: column; gap: 33px; }
.tab-content__top { align-self: stretch; }
.tab-heading { display: flex; justify-content: flex-end; align-items: flex-start; width: 100%; white-space: nowrap; text-align: right; }
.tab-heading__arrow { flex: none; margin: 10px 0 0 24px; width: 29px; height: 84px; color: var(--ink-3); opacity: .5; }
.tab-content__bottom { display: flex; flex-flow: column; width: 100%; }
.tab-content__item { display: block; width: 100%; padding: 25px 0; text-align: left; position: relative; color: var(--ink); cursor: pointer; }
.tab-content__item:first-child { padding-top: 0; }
.tab-content__item-main { display: block; }
.content-item__heading { display: block; font-size: var(--fs-h3); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; opacity: .4; transition: opacity .3s; }
.tab-content__item.active .content-item__heading, .tab-content__item:hover .content-item__heading { opacity: 1; }
.tab-content__item-detail { display: block; width: 100%; height: 0; overflow: hidden; }
.tab-description { display: block; font-size: 16px; line-height: 1.2; font-weight: 500; }
.tab-description__spacer { display: block; }
.tab-description__spacer:first-child { padding-top: 15px; }
.tab-description__spacer:last-child { padding-top: 0; }
.tab-content__item-bottom { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--rule); }
.tab-progress { display: block; width: 100%; height: 1px; background: var(--red); transform-origin: 0%; transform: scale3d(0, 1, 1); }
.tab-visual__wrap { position: relative; aspect-ratio: 858 / 550; }
.tab-visual__item { visibility: hidden; position: absolute; inset: 0; }
.tab-visual__item.active { visibility: visible; }
.tab-visual__inner { width: 100%; height: 100%; border-radius: var(--radius) 0 0 var(--radius); overflow: hidden; background: #d9d9d9; }
.tab-image { width: 100%; height: 100%; object-fit: cover; }
.no-js .tab-content__item:first-child .tab-content__item-detail { height: auto; }

/* ---------- Projects ---------- */
.projects { width: var(--wrap); margin: var(--section) auto 0; }
.projects__head { display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap; margin-bottom: 40px; }
.projects__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; }
.project-card { position: relative; }
.project-card__media { position: relative; aspect-ratio: 467 / 350; border-radius: var(--radius); overflow: hidden; background: #d9d9d9; }
.project-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-card__button { position: absolute; right: 10px; bottom: 10px; padding: 15px 25px; background: var(--white); border-radius: 5px; font-size: 16px; font-weight: 700; line-height: 19px; transition: background-color .3s, color .3s; }
.project-card:hover .project-card__image { transform: scale(1.04); }
.project-card:hover .project-card__button { background: var(--red); color: #fff; }
.project-card__body { padding: 30px 20px 0; }
.project-card__title { font-size: var(--fs-h3); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.project-card__link::after { content: ''; position: absolute; inset: 0; }
.project-card__text { margin-top: 15px; font-size: 16px; line-height: 1.2; }

/* ---------- Contact ---------- */
.contact { margin-top: var(--section); padding-bottom: var(--section); }
.contact__inner { width: min(100% - 2 * var(--gutter), 1340px); margin-inline: auto; display: grid; grid-template-columns: 570fr 690fr; gap: 80px; align-items: center; }
.contact__media { display: flex; gap: 10px; height: clamp(360px, 31.25vw, 500px); }
.contact__panel { position: relative; flex: 100 1 0; min-width: 0; border-radius: var(--radius); overflow: hidden; background: #d9d9d9; cursor: pointer; transition: flex-grow .6s var(--ease); }
.contact__panel.is-active { flex-grow: 350; cursor: default; }
.contact__panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact__chips { position: absolute; left: 20px; bottom: 20px; display: grid; justify-items: start; gap: 10px; white-space: nowrap; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s; }
.contact__panel.is-active .contact__chips { opacity: 1; visibility: visible; transform: none; transition: opacity .35s .3s, transform .45s .3s var(--ease), visibility 0s; }
.contact__chip { background: var(--white); border-radius: 5px; padding: 15px 25px; font-size: 16px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; transition: background-color .3s, color .3s; }
.contact__chip:hover { background: var(--red); color: #fff; }
.contact__text { margin-top: 25px; font-size: var(--fs-body); line-height: 1.2; }
.contact__text p + p { margin-top: 1.2em; }
.contact__text strong { font-weight: 700; }
.contact__content > div:last-child { margin-top: 25px; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 1; background: var(--white); color: var(--ink-4); }
.footer__inner { width: var(--wrap); margin-inline: auto; padding: 60px 0 50px; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; grid-template-areas: "brand menu legal contact" "bottom bottom bottom bottom"; gap: 48px 32px; }
.footer__brand { grid-area: brand; }
.footer__col--menu { grid-area: menu; }
.footer__col--legal { grid-area: legal; }
.footer__col--contact { grid-area: contact; }
.footer__bottom { grid-area: bottom; }
.footer__logo { display: block; width: 111px; }
.footer__logo svg { width: 111px; height: 100px; }
.footer__text { margin-top: 20px; max-width: 440px; font-size: 16px; line-height: 1.2; color: var(--ink); }
.footer__title { font-size: 20px; font-weight: 700; line-height: 20px; margin-bottom: 15px; }
.footer-nav__link, .footer__lines { font-size: 18px; line-height: 1.5; font-weight: 500; }
.footer-nav__link:hover, .footer__lines a:hover { color: var(--red); }
.footer__address { margin-top: 15px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px 40px; flex-wrap: wrap; font-size: 18px; font-weight: 600; letter-spacing: .02em; }
.footer__credit:hover { color: var(--red); }

/* Merkmaten tab */
.mm-tab { position: fixed; z-index: 999; left: 50%; bottom: 0; display: block; pointer-events: none; transform: translateX(-50%) translateY(100%); transition: transform 0.2s ease-out; }
.mm-tab.active { pointer-events: auto; transform: translateX(-50%) translateY(20px); }
.mm-tab:hover, .mm-tab:focus-visible { transform: translateX(-50%) translateY(0); }
.mm-tab svg { display: block; width: 100px; height: 66px; }

/* ---------- Simple pages (sub pages follow later) ---------- */
.page-simple { width: var(--wrap-narrow); margin: 0 auto; padding: 200px 0 var(--section); }
.page-simple--content { padding-top: var(--section); }
.page-simple--content .page-simple__content { margin-top: 0; }
.page-simple--center { text-align: center; display: grid; justify-items: center; gap: 24px; }
.page-simple__eyebrow { margin-bottom: 16px; }
.page-simple__eyebrow a { color: var(--red); font-weight: 600; }
.page-simple__intro { margin-top: 24px; max-width: 750px; font-size: var(--fs-lead); }
.page-simple__media { margin-top: 40px; border-radius: var(--radius); overflow: hidden; }
.page-simple__content { margin-top: 40px; max-width: 800px; font-size: var(--fs-body); line-height: 1.5; }
.page-simple__content > * + * { margin-top: 1em; }
.page-simple__content a { color: var(--red); text-decoration: underline; }
.page-simple__list { margin-top: 32px; display: grid; gap: 8px; font-size: 20px; }
.page-simple__buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 12px; }
.projects--archive { padding-top: 200px; margin-top: 0; padding-bottom: var(--section); }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Sub pages
   ========================================================================== */

/* ---------- Shared bits ---------- */
.media-box { position: relative; border-radius: var(--radius); overflow: hidden; background: #d9d9d9; }
.media-box > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Zoomable photo: hover zoom (as on skodora.nl: 105%, 0.6s) + small button, opens the lightbox */
.zoom-media { position: absolute; inset: 0; display: block; overflow: hidden; cursor: zoom-in; }
.zoom-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale .6s; will-change: scale; }
.zoom-media__button { position: absolute; right: 16px; bottom: 16px; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; transition: background-color .3s; } /* no transform transition: it fights the GSAP intro */
.zoom-media__button svg { width: 15px; height: 15px; }
@media (hover: hover) {
  .zoom-media:hover img { scale: 1.05; }
  .zoom-media:hover .zoom-media__button { background: var(--blue); transform: scale(1.08); }
}
.zoom-media:focus-visible { outline-offset: -4px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 600; display: grid; place-items: center; padding: 72px var(--gutter); background: rgba(18, 18, 18, .94); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }
.lightbox__figure { margin: 0; display: grid; justify-items: center; gap: 14px; max-width: 100%; }
.lightbox__img { max-width: min(1400px, 100%); max-height: calc(100dvh - 180px); width: auto; height: auto; border-radius: var(--radius); object-fit: contain; transform: scale(.96); transition: transform .4s var(--ease); background: #2a2a2a; }
.lightbox.is-open .lightbox__img { transform: none; }
.lightbox__caption { color: rgba(255, 255, 255, .75); font-size: 15px; font-weight: 500; text-align: center; }
.lightbox__close { position: absolute; top: 20px; right: var(--gutter); }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; margin-top: -25px; }
.lightbox__prev { left: var(--gutter); }
.lightbox__next { right: var(--gutter); }
.lightbox .cascading-slider__button svg { width: 16px; height: auto; }
.lightbox__close svg { width: 16px; height: 16px; }
.lightbox[data-single] .lightbox__prev, .lightbox[data-single] .lightbox__next { display: none; }
@media (max-width: 767px) {
  .lightbox { padding: 72px 12px 96px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 24px; margin-top: 0; }
  .lightbox__prev { left: calc(50% - 57px); }
  .lightbox__next { right: calc(50% - 57px); }
}
.chip { display: inline-block; background: var(--white); border-radius: 5px; padding: 15px 25px; font-size: 16px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); }
.red-box { background: var(--red); border-radius: var(--radius); color: #fff; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }

/* ---------- Page header ---------- */
.page-hero { position: relative; margin-top: 120px; height: 350px; overflow: hidden; background: #757575; display: grid; place-items: center; padding: 0 var(--gutter); isolation: isolate; }
.page-hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .3); z-index: 1; }
.page-hero__glow { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; mix-blend-mode: plus-lighter; opacity: .5; z-index: 2; }
.page-hero__title { position: relative; z-index: 3; color: #fff; text-align: center; font-size: clamp(36px, 3.75vw, 60px); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
.page-hero + .statement { margin-top: clamp(56px, 6.25vw, 100px); }
.page-hero + .intro { padding-top: clamp(56px, 5.875vw, 94px); }

/* ---------- Statement (50px variant + button) ---------- */
.statement--md .statement__text { font-size: var(--fs-h2); }
.statement__button { margin-top: 30px; }

/* ---------- Intro (title, then text + button next to a photo) ---------- */
.intro { width: var(--wrap-narrow); margin: 0 auto; padding-top: var(--section); }
.intro__row { margin-top: 50px; display: grid; grid-template-columns: minmax(0, 570fr) minmax(0, 770fr); column-gap: clamp(40px, 6.25vw, 100px); align-items: end; }
.intro__content { padding-bottom: 40px; }
.intro__text { font-size: var(--fs-body); line-height: 1.2; }
.intro__text p + p { margin-top: 1.2em; }
.intro__button { margin-top: 20px; }
.intro__media { aspect-ratio: 770 / 400; }

/* ---------- Team (endless, centred slider) ---------- */
.team { padding-top: var(--section); }
.team__head { width: min(100% - 2 * var(--gutter), 1200px); margin: 0 auto; text-align: center; }
.team__text { margin-top: 25px; font-size: var(--fs-body); line-height: 1.2; }
.team__list { position: relative; margin-top: 40px; display: grid; grid-auto-flow: column; grid-auto-columns: 350px; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.team__list::-webkit-scrollbar { display: none; }
.team-card { aspect-ratio: 350 / 400; scroll-snap-align: center; }
.team-card[data-loop-clone] { display: block; }
.team-card__chips { position: absolute; left: 30px; bottom: 30px; right: 20px; display: grid; justify-items: start; gap: 8px; }
.team__nav { display: flex; }
@media (min-width: 1100px) {
  .team-card { aspect-ratio: 350 / 450; }
}
/* Name + role appear on hover (devices with a mouse); always visible on touch */
@media (hover: hover) and (pointer: fine) {
  .team-card__chips { opacity: 0; transform: translateY(12px); transition: opacity .35s, transform .45s var(--ease); }
  .team-card:hover .team-card__chips { opacity: 1; transform: none; }
  .team-card > img { transition: scale .6s; }
  .team-card:hover > img { scale: 1.05; }
}

/* ---------- Video block ---------- */
.video-block { position: relative; width: min(100% - 2 * var(--gutter), 1047px); margin: var(--section) auto 0; padding-bottom: 40px; }
.video-block__frame { position: relative; aspect-ratio: 1047 / 500; border-radius: var(--radius); overflow: hidden; background: #2a2622; }
.video-block__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-block__frame.is-fullscreen { border-radius: 0; background: #000; }
.video-block__frame.is-fullscreen .video-block__video { object-fit: contain; }
.video-block__controls { position: absolute; right: 40px; bottom: 40px; display: flex; gap: 6px; z-index: 2; }
.video-block__button { width: 60px; height: 60px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; transition: background-color .3s; } /* no transform transition: it fights the GSAP intro */
.video-block__button:hover { background: var(--blue); }
.video-block__button:active { transform: scale(.94); }
.video-block__button svg { width: 24px; height: 20px; }
.video-block__button .icon--maximize { width: 20px; height: 20px; }
.video-block__button .is-on, .is-sound .video-block__button .is-off { display: none; }
.is-sound .video-block__button .is-on { display: block; }
.video-block__box { position: absolute; left: 40px; bottom: 0; width: 425px; max-width: calc(100% - 80px); padding: 40px; font-size: clamp(26px, 2.5vw, 40px); z-index: 2; }

/* ---------- Photo + text ---------- */
.feature { width: min(100% - 2 * var(--gutter), 1336px); margin: var(--section) auto 0; display: grid; grid-template-columns: minmax(0, 550fr) minmax(0, 706fr); column-gap: 80px; align-items: center; }
.feature__media { aspect-ratio: 550 / 450; }
.feature__text { margin-top: 25px; font-size: var(--fs-body); line-height: 1.2; }
.feature__text p + p { margin-top: 1.2em; }
.feature__button { margin-top: 25px; }
.feature--reverse { grid-template-columns: minmax(0, 706fr) minmax(0, 550fr); }
.feature--reverse .feature__media { order: 2; }

/* ---------- Photo strip (endless marquee) ---------- */
.gallery-strip { margin-top: var(--section); overflow: hidden; }
.gallery-strip__marquee { display: flex; width: max-content; }
.gallery-strip__track { display: flex; gap: 20px; padding-right: 20px; animation: marquee 60s linear infinite; }
.gallery-strip__item { flex: none; width: clamp(260px, 28.125vw, 450px); aspect-ratio: 450 / 350; }

/* ---------- Centred text + read more ---------- */
.text-center { width: min(100% - 2 * var(--gutter), 1200px); margin: var(--section) auto 0; text-align: center; }
.text-center__title { max-width: 1100px; margin: 0 auto; }
.text-center__text, .text-center__more { font-size: var(--fs-body); line-height: 1.2; }
.text-center__text { margin-top: 25px; }
.text-center__text p + p, .text-center__more p + p { margin-top: 1.2em; }
.text-center__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease), margin-top .45s var(--ease); margin-top: 0; }
.text-center__more.is-open { grid-template-rows: 1fr; margin-top: 1.2em; }
.text-center__more-inner { overflow: hidden; }
.text-center__toggle { margin-top: 25px; display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; line-height: 1.2; }
.text-center__toggle svg { width: 10px; height: 6px; transition: transform .3s var(--ease); }
.text-center__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ---------- Photo grid (project) ---------- */
.photo-grid { width: var(--wrap-narrow); margin: 80px auto 0; scroll-margin-top: 110px; }
.photo-grid__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.photo-grid__item { aspect-ratio: 630 / 350; }

/* ---------- Projects overview ---------- */
.projects--all { margin-top: var(--section); }
.page-hero + .projects { margin-top: var(--section); }
.services + .clients { margin-top: var(--section); }
.projects--all .projects__grid { row-gap: 40px; }
.pagination { width: var(--wrap); margin: 48px auto 0; }
.pagination .nav-links { display: flex; justify-content: center; gap: 8px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 50px; height: 50px; padding: 0 18px; border-radius: 100px; background: var(--white); font-weight: 600; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--red); color: #fff; }

/* ---------- Contact page: form ---------- */
.contact-form { width: var(--wrap); margin: 0 auto; padding-top: var(--section); display: grid; grid-template-columns: minmax(0, 706fr) minmax(0, 654fr); column-gap: 80px; align-items: start; }
.contact-form__text { margin-top: 25px; font-size: var(--fs-body); line-height: 1.2; }
.contact-form__text p + p { margin-top: 1.2em; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.form__field { display: grid; align-content: start; }
.form__field--full { grid-column: 1 / -1; }
.form__label { padding-left: 23px; margin-bottom: 11px; font-size: 18px; font-weight: 700; line-height: 27px; }
.form__req { color: var(--red); font-weight: 500; margin-left: 6px; }
.wpcf7-form-control-wrap { display: block; position: relative; }
.form input.wpcf7-form-control, .form textarea.wpcf7-form-control { width: 100%; height: 50px; padding: 0 23px; border: 1px solid transparent; border-radius: 5px; background: var(--white); font: 500 16px/1.4 var(--font); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.form textarea.wpcf7-form-control { height: 133px; padding: 13px 23px; resize: vertical; display: block; }
.form .wpcf7-form-control::placeholder { color: rgba(0, 0, 0, .49); font-style: italic; font-weight: 300; }
.form .wpcf7-form-control:focus { outline: none; border-color: var(--ink-2); }
.form .wpcf7-form-control.wpcf7-not-valid { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.wpcf7-not-valid-tip { display: block; margin-top: 6px; padding-left: 23px; color: var(--red); font-size: 14px; font-weight: 600; line-height: 1.3; }
.form__submit { position: relative; margin-top: 20px; display: flex; justify-content: flex-end; align-items: center; }
.form__submit .wpcf7-spinner { position: absolute; right: 245px; top: 15px; margin: 0; }
.form__submit .button-014 { border: 0; cursor: pointer; font-family: var(--font); }
.wpcf7 .hidden-fields-container { display: none; }
.wpcf7 .screen-reader-response { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wpcf7-spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .15); border-top-color: var(--red); visibility: hidden; animation: spin .8s linear infinite; }
.wpcf7 form.submitting .wpcf7-spinner { visibility: visible; }
.wpcf7-response-output { margin-top: 20px; padding: 15px 20px; border-radius: 5px; background: var(--white); border-left: 4px solid var(--red); font-weight: 600; line-height: 1.3; }
.wpcf7 form.init .wpcf7-response-output, .wpcf7 form.resetting .wpcf7-response-output, .wpcf7 form.submitting .wpcf7-response-output { display: none; }
.wpcf7 form.sent .wpcf7-response-output { border-left-color: #2bb673; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Contact page: map ---------- */
.map { width: var(--wrap); margin: 80px auto 0; padding-bottom: var(--section); display: grid; grid-template-columns: minmax(0, 770fr) minmax(0, 570fr); column-gap: 100px; align-items: center; }
.map__frame { aspect-ratio: 770 / 400; }
.map__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__title { font-size: clamp(28px, 2.5vw, 40px); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.map__address { margin-top: 20px; font-size: clamp(22px, 1.875vw, 30px); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.map__address a:hover { color: var(--red); }
.map__button { margin-top: 30px; }

/* ---------- 404 ---------- */
.not-found { width: min(100% - 2 * var(--gutter), 1200px); margin: 0 auto; padding: clamp(150px, 12.5vw, 200px) 0 var(--section); text-align: center; display: grid; justify-items: center; }
.not-found__code { font-size: clamp(90px, 8vw, 128px); font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.not-found__text { margin: 10px 0 25px; font-size: var(--fs-body); line-height: 1.2; }

/* last section before the footer */
.main > :last-child:not(.contact):not(.map):not(.not-found):not(.page-simple) { margin-bottom: var(--section); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 1601px) {
  .tab-layout__wrap { grid-template-columns: minmax(0, 1fr) minmax(0, calc(858 / 1600 * 100vw)); }
}

@media (max-width: 1099px) and (min-width: 768px) {
  .footer__inner { column-gap: 24px; }
  .footer__text { max-width: 300px; }
  .footer-nav__link, .footer__lines { font-size: 16px; }
  .footer__title { font-size: 18px; }
  .footer__bottom { font-size: 16px; }
}

@media (max-width: 1099px) {
  .page-hero { margin-top: 90px; height: clamp(220px, 30vw, 350px); }
  /* Menu: Osmo Scaling Hamburger Navigation */
  .header__nav, .header__cta { display: none; }
  .navigation[data-navigation-status] { display: block; }
  .header__inner { grid-template-columns: 1fr auto; height: 90px; }

  /* Why Coraltech: two equal columns with a portrait photo (tablet), stacked on mobile (see 767px) */
  .tab-layout__wrap { grid-template-columns: 1fr 1fr; column-gap: 40px; row-gap: 48px; align-items: center; width: var(--wrap); margin-inline: auto; }
  .tab-layout__col:first-child, .tab-layout__col:last-child { padding: 0; }
  .tab-visual__wrap { aspect-ratio: 1 / 1; }
  .tab-visual__inner { border-radius: var(--radius); }
  .tab-content__wrap { max-width: none; }
  .tab-content__inner { gap: 16px; }
  .tab-heading__arrow { margin: 20px 2px 0 18px; }
}

@media (max-width: 1199px) {
  .feature, .feature--reverse { column-gap: 48px; }
  .contact-form { column-gap: 48px; }
  .map { column-gap: 48px; }
  .nav__list { gap: 36px; }
  .hero__hint { margin-right: 70px; }
  .contact__inner { gap: 48px; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 991px) {
  .hero { --s0: .72; padding-top: 140px; }
  .hero__title { text-align: right; }
  .hero__line { display: inline; padding: 0; margin: 0; }
  .hero__row { flex-direction: column; }
  .hero__hint { align-self: flex-end; margin: 0 60px 0 0; }
  .hero__stage { margin-top: 90px; }
  .hero__down { width: 76px; height: 76px; margin-left: -38px; top: -38px; }
  .bg-lines { width: calc(100% - var(--gutter)); }
  .contact__inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .contact__media { height: auto; aspect-ratio: 1 / 1; }
  .footer__bottom { flex-direction: column; }
  .footer__inner { grid-template-columns: repeat(3, auto); grid-template-areas: "brand brand brand" "menu legal contact" "bottom bottom bottom"; }
  .footer__text { max-width: 440px; }
  .contact__panel:not(:last-child) { display: none; }
  .contact__panel:last-child .contact__chips { opacity: 1; visibility: visible; transform: none; }
  .projects:not(.projects--all) .projects__grid { position: relative; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78%, 420px); gap: 16px; margin-inline: calc(-1 * var(--gutter)); padding: 0 0 4px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .projects:not(.projects--all) .projects__grid::-webkit-scrollbar { display: none; }
  .projects:not(.projects--all) .projects__grid > li { scroll-snap-align: center; }
  .projects:not(.projects--all) .projects__grid > [data-reveal] { opacity: 1; transform: none; }
  .projects--all .projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro__row { grid-template-columns: 1fr; row-gap: 32px; }
  .intro__content { padding-bottom: 0; }
  .feature, .feature--reverse { grid-template-columns: 1fr; row-gap: 32px; }
  .feature--reverse .feature__media { order: 0; }
  .feature__media { aspect-ratio: 16 / 10; }
  .contact-form { grid-template-columns: 1fr; row-gap: 40px; }
  .map { grid-template-columns: 1fr; row-gap: 32px; }
  .team__list { grid-auto-columns: min(78%, 350px); gap: 16px; }
  [data-loop-clone] { display: block; }
  .projects__nav { display: flex; }

  /* Services: the cascading slider becomes the same swipe row as the projects (buttons scroll the row) */
  .cascading-slider { width: 100%; }
  .cascading-slider__list { height: auto; display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 420px); gap: 16px; padding: 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .cascading-slider__list::-webkit-scrollbar { display: none; }
  .cascading-slider__item { position: relative !important; inset: auto !important; transform: none !important; width: auto !important; height: 400px; aspect-ratio: auto; z-index: auto !important; clip-path: inset(0 round var(--radius)) !important; scroll-snap-align: center; cursor: auto; }
  .cascading-slider__item[data-clone] { display: none !important; }
  .cascading-slider__h, .cascading-slider__p, .cascading-slider__button-label { opacity: 1 !important; transform: none !important; transition: none !important; }
  .cascading-slider__link { pointer-events: auto; }
}

@media (max-width: 767px) {
  :root { --section: 80px; --gutter: 20px; --gutter-wide: 20px; }
  .admin-bar .header { top: 46px; }
  .bg-lines span:nth-child(5), .bg-lines span:nth-child(6) { display: none; }
  .bg-lines span:nth-child(2) { left: 33.333%; }
  .bg-lines span:nth-child(3) { left: 66.666%; }
  .bg-lines span:nth-child(4) { left: 100%; transform: translateX(-1px); }
  .hamburger-nav__group { padding: 1.75em 1.75em 1.5em 1.5em; grid-row-gap: .75em; }
  .hamburger-nav__p { font-size: 1.5em; }
  .hero { --s0: .78; padding-top: 120px; }
  .hero__line--2 { padding-left: 0; }
  .hero__row { margin-top: 24px; }
  .hero__hint { font-size: 30px; margin-right: 42px; }
  .hero__hint-arrow { width: 22px; height: 64px; left: calc(100% + 18px); }
  .tab-heading__arrow { width: 22px; height: 64px; }
  .projects--all .projects__grid { grid-template-columns: 1fr; }
  .photo-grid { margin-top: 48px; }
  .photo-grid__list { grid-template-columns: 1fr; gap: 16px; }
  .intro__media { aspect-ratio: 4 / 3; }
  .feature__title br { display: none; }
  .video-block { padding-bottom: 0; }
  .video-block__frame { aspect-ratio: 4 / 3; }
  .video-block__controls { right: 16px; bottom: auto; top: 16px; }
  .video-block__button { width: 48px; height: 48px; }
  .video-block__button svg { width: 20px; height: 17px; }
  .video-block__button .icon--maximize { width: 17px; height: 17px; }
  .video-block__box { position: relative; left: auto; bottom: auto; width: auto; max-width: none; margin: -40px 16px 0; padding: 24px 28px; font-size: 26px; }
  .gallery-strip__track { gap: 12px; padding-right: 12px; }
  .map { margin-top: 56px; }
  .tab-layout__wrap { grid-template-columns: 1fr; }
  .tab-visual__wrap { aspect-ratio: 858 / 550; }
  .tab-content__top { margin-top: 32px; }
  .hero__media { aspect-ratio: 4 / 3; }
  .about__text, .contact__text { font-size: 16px; }
  .clients { margin-top: 64px; }
  .clients__track { gap: 48px; padding-right: 48px; }
  .clients__logo img { height: 56px; }
  .clients { place-items: stretch; gap: 32px; }
  .clients__box { grid-area: 1 / 1; justify-self: center; padding: 28px; min-height: 0; width: 320px; }
  .clients__marquee { grid-area: 2 / 1; }
  .cascading-slider__h { font-size: 26px; }
  .cascading-slider__p { font-size: 15px; }
  .cascading-slider__item-content { padding: 0 20px 24px; }
  .project-card__body { padding: 20px 4px 0; }
  .contact__inner { grid-template-columns: 1fr; }
  .contact__media { aspect-ratio: 858 / 550; }
  .contact__chips { left: 12px; bottom: 12px; }
  .contact__chip { padding: 12px 16px; font-size: 14px; }
  .footer__text { max-width: none; }
  .footer__inner { justify-content: stretch; grid-template-columns: 1fr 1fr; grid-template-areas: "brand brand" "menu legal" "contact contact" "bottom bottom"; gap: 36px 24px; padding-top: 48px; padding-bottom: 72px; }
  .footer-nav__link, .footer__lines { font-size: 16px; }
  .footer__title { font-size: 18px; margin-bottom: 12px; }
  .footer__bottom { font-size: 15px; flex-direction: column; }
}

@media (max-width: 480px) {
  .footer__inner { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: 16px; }
  .footer-nav__link, .footer__lines { font-size: 15px; }
  .tab-heading { font-size: 30px; }
  .form__grid { grid-template-columns: 1fr; }
  .team-card__chips { left: 16px; bottom: 16px; }
  .chip { padding: 12px 16px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero__media { --p: 1; }
  .clients__marquee { overflow-x: auto; }
}
