:root {
  --black: #000;
  --grey: #999;
  --blue: #00adee;
  --sky: #44c7f4;
  --white: #fff;
  --gutter: clamp(20px, 5vw, 72px);
  --site-header-height: 86px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--site-header-height); }
body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  font: 400 1.125rem/1.48 "Roboto Condensed", "Arial Narrow", sans-serif;
}
h1, h2, p, figure { margin: 0; }
h1, h2 { font-weight: 800; line-height: .98; letter-spacing: -.025em; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #00658a; outline-offset: 5px; }
.hero a:focus-visible, .discipline-hero a:focus-visible, .contact a:focus-visible { outline-color: var(--sky); }
img { display: block; width: 100%; height: auto; }
.wrap { width: min(1320px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }

.skip {
  position: fixed;
  z-index: 21;
  left: 1rem;
  top: 1rem;
  transform: translateY(-200%);
  padding: .7rem;
  background: var(--white);
}
.skip:focus { transform: none; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  color: var(--white);
}
.site-header a:focus-visible { outline-color: var(--sky); }
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -24px;
  z-index: -1;
  background: linear-gradient(180deg, #10111333 0 calc(100% - 24px), transparent);
  pointer-events: none;
}
.site-header nav a { text-shadow: 0 1px 2px #101113, 0 0 5px #101113; }
.site-header .brand img { filter: drop-shadow(0 1px 2px #101113); }
.site-header.on-light { color: #141719; }
.site-header.on-light nav a { text-shadow: none; }
.site-header.on-light .brand img {
  content: url("/heightmasters-logo-kleur.png");
  filter: none;
}
.site-header.on-light :is(.brand, nav a):focus-visible { outline-color: #00658a; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: max(660px, 100svh);
  padding-top: var(--site-header-height);
  overflow: hidden;
  border-bottom: 7px solid var(--blue);
  color: var(--white);
  background: #202020;
}
.hero-media, .hero-media img, .hero-media::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-media { z-index: -1; }
.hero-media img { object-fit: cover; object-position: center; }
.hero-media::after {
  content: "";
  background:
    linear-gradient(90deg, #000b, #0005 35%, transparent 68%),
    linear-gradient(180deg, #000b, transparent 57%, transparent 71%, #0008);
}
.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  width: min(30vw, 460px);
  height: min(24%, 220px);
  background: var(--blue);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.hero-credit {
  position: absolute;
  z-index: 1;
  bottom: 20px;
  left: max(var(--gutter), calc((100% - 1320px) / 2));
  color: #eee;
  font-size: .875rem;
  text-shadow: 0 1px 5px #000;
}
.hero-credit a { text-underline-offset: 3px; }

.navigation { display: flex; align-items: center; gap: clamp(14px, 3vw, 42px); min-height: var(--site-header-height); }
.brand { display: block; flex-shrink: 0; margin-right: auto; }
.brand img { width: clamp(145px, 17vw, 225px); }
.navigation nav { display: flex; gap: clamp(15px, 2.8vw, 39px); }
.navigation nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 700;
}
.navigation nav a:is(:hover, [aria-current]) {
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-underline-offset: 6px;
}

.hero-copy { padding-top: clamp(48px, 9.5vh, 105px); padding-bottom: 110px; }
.hero h1 { font-size: clamp(3.2rem, 6.1vw, 6.6rem); text-wrap: pretty; }
.hero-copy p { margin: 20px 0 25px; max-width: 24rem; font-size: clamp(1.125rem, 2vw, 1.42rem); }

.btn {
  --surface: var(--blue);
  --over: var(--sky);
  --mark: #082633;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 50px;
  padding: .76rem 1rem;
  color: #07141b;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .045em;
  font-weight: 800;
  font-size: .925rem;
  line-height: 1.12;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--surface);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 13px), calc(100% - 13px) 100%, 0 100%);
  transition: background-color .18s ease;
}
.btn::after {
  content: "";
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background: linear-gradient(133deg, transparent 31%, var(--mark) 32% 42%, transparent 43% 55%, var(--mark) 56% 66%, transparent 67%);
  transition: transform .18s ease;
}
.btn:hover::before { background: var(--over); }
.btn:hover::after { transform: translate(2px,-2px); }
.btn--dark { --surface: #151515; --over: #333; --mark: var(--sky); color: var(--white); }
.btn.small { min-height: 44px; padding: .6rem .8rem; gap: 8px; }
.btn.small::after { width: 16px; height: 16px; flex-basis: 16px; }

.service { scroll-margin-top: 12px; padding: clamp(46px, 7vw, 112px) 0; }
.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: center;
}
.service-media { position: relative; }
.service-media img { aspect-ratio: 5 / 3; object-fit: cover; }
.service-media::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: clamp(25px, 5vw, 74px);
  aspect-ratio: 1;
  background: var(--blue);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.service h2, .contact h2 { font-size: clamp(2.7rem, 5.2vw, 5.1rem); }
.service p { color: #454545; font-size: clamp(1.125rem, 1.8vw, 1.375rem); margin: 17px 0 23px; max-width: 22rem; }

.discipline-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(540px, 85svh, 790px);
  overflow: hidden;
  color: var(--white);
  background: #101010;
}
.discipline-hero-media, .discipline-hero-media img, .discipline-hero-media::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.discipline-hero-media { z-index: -1; }
.discipline-hero-media img { object-fit: cover; }
.discipline-hero-media::after {
  content: "";
  background: linear-gradient(90deg, #000e, #000c 23%, #0006 40%, transparent 58%);
}
.discipline-hero h2 { font-size: clamp(4rem, 8.5vw, 8rem); }
.discipline-hero p { color: #eee; }
.safety-hero { border-bottom: 5px solid var(--blue); }
.safety-hero img, .detail-hero.safety-detail .hero-media img {
  object-position: 52% 64%;
  filter: saturate(.82) brightness(.8);
}
.rope-hero {
  border-bottom: 5px solid var(--blue);
}
.rope-hero img { object-position: 64% 22%; filter: brightness(1.2); }
.rope-hero .discipline-hero-media::after {
  background: linear-gradient(90deg, #000b, #0007 24%, #0003 40%, transparent 57%),
              linear-gradient(0deg, #0009, transparent 34%);
}

.maintenance-preview .discipline-hero-media img { object-position: 58% center; }
.maintenance-preview .discipline-hero-media::after {
  background: linear-gradient(0deg, #101010, transparent 26%),
              linear-gradient(90deg, #000e, #000b 25%, #0004 52%, transparent 75%);
}
.contact {
  background: #101010;
  color: var(--white);
  padding: clamp(76px, 8vw, 144px) 0 clamp(60px, 6vw, 104px);
}
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.contact h2 { font-size: calc(clamp(2.4rem, 4vw, 3.75rem) - 4px); }
.contact p { color: #dedede; margin-top: 14px; max-width: 36ch; }
.contact .btn { margin-top: 20px; }
.project-options { width: min(100%, 37rem); }
.project-options h3 { margin: 0 0 14px; font-size: 1.15rem; }
.project-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.project-choices a {
  display: flex;
  flex-direction: column;
  gap: 5px;
  height: 100%;
  padding: 11px 8px 11px 3px;
  border-top: 2px solid #ffffff52;
  text-decoration: none;
  line-height: 1.2;
}
.project-choices a:is(:hover, :focus-visible) { border-color: var(--sky); }
.project-choices span { color: #c7c7c7; font-size: .9rem; }
.work-brief {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px 30px;
  margin-top: clamp(36px, 6vw, 78px);
  padding-top: clamp(20px, 3vw, 36px);
  border-top: 2px solid var(--blue);
}
.work-brief h2 { font-size: clamp(1.7rem, 3vw, 2.45rem); }
.work-brief p { margin: 10px 0 0; max-width: 48ch; font-size: 1.06rem; }
.footer { background: #101010; color: var(--grey); border-top: 1px solid #555; padding: 18px 0; font-size: .95rem; }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 7px 20px; }
.footer-extras { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 18px; }
.footer-socials { display: flex; align-items: center; }
.footer-socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--blue);
}
.footer-socials svg { display: block; fill: currentColor; }
.design-credit { font-size: .95rem; }
.design-credit a { color: #e2e6e8; font-weight: 700; text-underline-offset: .2em; }
.footer-extras a:hover { color: var(--sky); }
.footer-extras a:focus-visible { outline-color: var(--sky); outline-offset: 0; }
.privacy-content {
  max-width: 46rem;
  padding-block: calc(var(--site-header-height) + clamp(32px, 5vw, 66px)) clamp(44px, 6vw, 84px);
}
.privacy-content h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 20px; }
.privacy-content h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); margin: 30px 0 10px; }
.privacy-content p { color: #333; }
.privacy-content p + p { margin-top: 10px; }
.privacy-content a { text-underline-offset: .18em; }

@media (prefers-reduced-motion: no-preference) {
  .snap-home, .snap-detail { scroll-snap-type: y proximity; }
  :is(.snap-home, .snap-detail) .hero,
  .snap-home .discipline-hero,
  .snap-detail main {
    scroll-snap-align: start;
  }
  .snap-home .discipline-hero { scroll-margin-top: 0; }
  :is(.snap-home, .snap-detail) .footer { scroll-snap-align: end; }
}

@media (min-height: 660px) and (prefers-reduced-motion: no-preference) {
  .snap-home:not(.story-enabled) { scroll-snap-type: y mandatory; }
  .snap-home .discipline-hero { min-height: calc(100svh - var(--site-header-height)); }
  .snap-home :is(.discipline-hero, .footer) { scroll-snap-stop: always; }
}

@media (max-width: 720px) {
  :root { --site-header-height: 122px; }
  .hero { min-height: max(680px, 100svh); }
  .hero-media::after { background: linear-gradient(180deg, #000c, #0009 29%, transparent 58%, #0007); }
  .hero::after { width: 34%; height: 13%; }
  .navigation { display: grid; grid-template-columns: 1fr auto; grid-template-rows: 44px 44px; gap: 10px 12px; padding: 12px 0; }
  .navigation nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; gap: 8px; }
  .navigation nav a { font-size: 1rem; }
  .navigation > .btn { grid-row: 1; grid-column: 2; }
  .hero-copy { padding-top: clamp(38px, 7vh, 72px); }
  .hero h1 { font-size: clamp(2.45rem, 10.1vw, 4.4rem); }
  .hero-copy p { margin-top: 14px; max-width: 22rem; }
  .hero-copy > .btn { position: absolute; bottom: 75px; left: var(--gutter); }
  .service-grid { grid-template-columns: minmax(0, 1fr); gap: 29px; }
  .discipline-hero { min-height: clamp(540px, 82svh, 700px); }
  .discipline-hero h2 { font-size: clamp(2.75rem, 11vw, 4.5rem); }
  .safety-hero { align-items: start; }
  .safety-hero .discipline-hero-media::after {
    background: linear-gradient(180deg, #000e, #000b 27%, #0004 46%, transparent 63%);
  }
  .rope-hero { align-items: end; }
  .rope-hero img { object-position: 65% top; }
  .rope-hero .discipline-hero-media::after {
    background: linear-gradient(0deg, #000e, #0009 37%, transparent 70%);
  }
  .maintenance-preview .discipline-hero-media::after {
    background: linear-gradient(0deg, #101010, #10101080 36%, transparent 73%),
                linear-gradient(90deg, #000b, transparent 90%);
  }
  .contact-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  .project-choices { grid-template-columns: 1fr; gap: 0; }
  .project-choices a { flex-direction: row; justify-content: space-between; align-items: center; min-height: 47px; }
}

.story-cue { display: none; }
.story-enabled {
  --story-travel: clamp(460px, 70svh, 680px);
  --story-dissolve: calc(var(--story-travel) * var(--story-dissolve-portion));
  scroll-snap-type: none;
  scroll-padding-top: 0;
}
.snap-detail.story-enabled {
  --story-travel: clamp(310px, 50svh, 470px);
  scroll-padding-top: var(--site-header-height);
}
.story-enabled :focus-visible { scroll-margin-block: calc(var(--site-header-height) + 12px) 12px; }
.story-enabled :is(#diensten, #diensten > .story-scene ~ .story-scene) {
  margin-top: calc(-1 * (var(--story-previous-height, 100svh) + var(--story-dissolve)));
}
.story-enabled #diensten { pointer-events: none; }
.story-enabled #diensten > :not(.story-scene) { pointer-events: auto; }
.story-enabled :is(#diensten, #diensten > .story-scene) {
  scroll-margin-top: calc(-.61 * var(--story-travel));
}
.story-enabled .story-scene {
  position: relative;
  isolation: isolate;
  --story-progress: 0;
  --story-picture: 0;
  --story-text: 0;
  --story-button: 0;
  --story-magnification: clamp(0, calc(var(--story-progress) * 1.42), 1);
  --story-zoom: .17;
}
.story-enabled .story-scene:has(.detail-hero) { --story-zoom: .24; }
.story-enabled .story-scene::after {
  content: "";
  display: block;
  height: var(--story-travel);
  pointer-events: none;
}
.story-enabled .story-panel {
  position: sticky;
  top: 0;
  min-height: 100svh;
}
.story-enabled .discipline-hero {
  opacity: var(--story-picture);
  padding-top: max(calc(var(--site-header-height) + 26px), 7vw);
}
.story-enabled .story-panel img {
  transform: scale(calc(1 + var(--story-zoom) * var(--story-magnification)));
}
.story-enabled .story-copy > :not(.btn) {
  opacity: var(--story-text);
  translate: 0 calc((1 - var(--story-text)) * 18px);
}
.story-enabled .story-copy > .btn {
  opacity: var(--story-button);
  translate: 0 calc((1 - var(--story-button)) * 12px);
  pointer-events: none;
}
.story-enabled .story-scene.has-button .story-copy > .btn { pointer-events: auto; }
.story-enabled .story-scene:has(:focus-visible) .story-panel { opacity: 1; }
.story-enabled .story-scene:has(:focus-visible) .story-copy > * {
  opacity: 1;
  translate: none;
  pointer-events: auto;
}
.story-enabled .story-intro .hero-media img {
  width: min(100%, calc((100svh - 7px) * 1.5));
  height: auto;
  margin: auto;
  object-fit: contain;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent),
              linear-gradient(0deg, transparent, #000 5%, #000 95%, transparent);
  mask-composite: intersect;
}
.story-enabled .story-intro .hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(#10111396, #10111396), url("/hero-blauwe-helmen.webp") center / cover;
  filter: blur(14px);
  scale: 1.04;
}
.story-enabled .story-intro .hero-media::after { opacity: calc(.42 + .58 * var(--story-text)); }
.story-enabled .story-intro .hero::after { opacity: var(--story-text); }
.story-enabled .story-copy:focus-within + .story-cue { opacity: 0; }
.story-enabled .story-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 7px;
  transform: translateX(-50%);
  opacity: clamp(0, calc(1 - var(--story-progress) * 4), 1);
  min-height: 44px;
  padding: 5px 14px;
  color: var(--white);
  text-shadow: 0 1px 5px #000;
  text-decoration: none;
  white-space: nowrap;
}
.story-enabled .story-cue:focus-visible { opacity: 1; }
.story-enabled .story-scene:not(.has-cue) .story-cue:not(:focus-visible) { visibility: hidden; }
.story-enabled .story-cue:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 4px; }
.story-enabled .detail-hero .story-cue { bottom: 56px; }
.story-cue::after {
  content: "";
  width: 10px;
  height: 10px;
  border: solid var(--sky);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

@media (max-width: 720px) {
  .story-enabled { --story-travel: clamp(380px, 61svh, 560px); }
  .snap-detail.story-enabled { --story-travel: clamp(280px, 46svh, 400px); }
  .story-enabled .story-intro .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: calc(100svh - var(--site-header-height) - 7px);
    padding-bottom: 65px;
  }
  .story-enabled .story-intro .hero-copy > .btn { position: relative; inset: auto; margin-top: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn::before, .btn::after { transition: none; }
  .btn:hover::after { transform: none; }
}

.detail-hero .hero-media img { object-position: 55% 26%; }
.detail-hero .hero-media::after {
  background: linear-gradient(90deg, #000e, #000b 27%, #0003 52%, transparent 73%),
              linear-gradient(180deg, #000b, transparent 26%, transparent 76%, #0008);
}
.detail-hero .hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: calc(max(660px, 100svh) - var(--site-header-height) - 7px);
  padding-block: 36px 80px;
}
.detail-hero .detail-parent {
  margin: 0 0 14px;
  color: var(--sky);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.detail-parent a { text-underline-offset: 4px; }
.detail-hero h1 { font-size: clamp(4rem, 8.5vw, 8rem); }
.detail-info p { max-width: 39rem; margin-block: 20px 0; }
.service-intro h2 {
  max-width: 26ch;
  font-size: clamp(2.15rem, 4.25vw, 4.3rem);
  line-height: 1.06;
  text-wrap: pretty;
}
.service-intro p {
  max-width: 65ch;
  margin: 16px 0 0;
  line-height: 1.55;
}
.service-sections {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 2.6vw, 36px);
  margin-top: clamp(25px, 4.2vw, 54px);
}
.service-section {
  flex: 1 1 18rem;
  min-width: 0;
  padding: clamp(17px, 2.7vw, 36px);
  border-top: 2px solid var(--blue);
  background: #f4f6f7;
}
.service-section h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.12;
  text-wrap: pretty;
}
.service-section p {
  max-width: 60ch;
  margin: 12px 0 0;
  font-size: 1.125rem;
  line-height: 1.52;
}
.service-points {
  padding-inline-start: 1.16em;
  margin: 14px 0 0;
  color: #24292c;
  font-size: 1.075rem;
}
.service-points li + li { margin-top: 8px; }
.service-points li::marker { color: #00749c; }
.detail-hero.rope-overview .hero-media img { object-position: 64% 22%; }
.work-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 12px;
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
}
.work-links .btn { width: 100%; height: 100%; }

@media (max-width: 720px) {
  .detail-hero .hero-copy {
    min-height: calc(max(680px, 100svh) - var(--site-header-height) - 7px);
    justify-content: flex-end;
    padding-bottom: 92px;
  }
  .detail-hero .hero-copy > .btn { position: relative; inset: auto; }
  .detail-hero .hero-media img { object-position: 53% 24%; }
  .detail-hero .hero-media::after {
    background: linear-gradient(180deg, #000c, transparent 23%, transparent 37%, #000c 68%, #000f);
  }
  .detail-hero h1 { font-size: clamp(3.35rem, 12vw, 5rem); }
}

.painting-hero .hero-media img { object-position: 55% 48%; }
.painting-hero h1, .cleaning-hero h1 { font-size: clamp(3.25rem, 6vw, 6.75rem); }

@media (max-width: 720px) {
  .painting-hero .hero-media img { object-position: 58% center; }
  .painting-hero h1, .cleaning-hero h1 { font-size: clamp(2.55rem, 10.2vw, 4.5rem); }
}

.wind-hero .hero-media img { object-position: 54% 60%; }
.wind-hero h1 { font-size: clamp(3.4rem, 7.6vw, 7.6rem); }

@media (max-width: 720px) {
  .wind-hero .hero-media img { object-position: 63% 50%; }
  .wind-hero h1 { font-size: clamp(3rem, 11vw, 4.5rem); }
}

.cleaning-hero .hero-media img { object-position: 58% 40%; }

@media (max-width: 720px) {
  .cleaning-hero .hero-media img { object-position: 62% 44%; }
}

.maintenance-hero .hero-media img { object-position: center; }
.maintenance-hero h1 { font-size: clamp(3.55rem, 8vw, 7.6rem); }

@media (max-width: 720px) {
  .maintenance-hero { display: flex; flex-direction: column; min-height: 0; }
  .maintenance-hero .hero-media { position: relative; z-index: 0; height: auto; }
  .maintenance-hero .hero-media img { position: static; height: auto; }
  .maintenance-hero .hero-media::after {
    background: linear-gradient(180deg, transparent 80%, #17191b);
  }
  .story-enabled .maintenance-hero .hero-media { overflow: hidden; flex-shrink: 0; }
  .maintenance-hero .hero-copy { min-height: 0; padding-block: 22px 56px; justify-content: flex-start; }
  .maintenance-hero h1 { font-size: clamp(2.8rem, 10.1vw, 4.8rem); }
  .maintenance-hero::after { height: 72px; }
}
