@font-face {
  font-family: "Onest";
  src: url("assets/onest-variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --black: #000;
  --white: #fff;
  --sage: #b1d5bb;
  --accent: #143763;
  --muted: #404040;
  --muted-on-dark: #d6d6d6;
  --link-color: var(--accent);
  --focus-color: var(--accent);
  --page-inset: clamp(16px, 3.6vw, 64px);
  --masthead-inset: clamp(12px, 2vw, 32px);
  --body: "Onest", system-ui, sans-serif;
  --display: var(--body);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--black); background: var(--white); font: 1rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, summary { font: inherit; color: inherit; cursor: pointer; }
button { border: 0; background: transparent; }
:focus-visible { outline: 3px solid var(--focus-color); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul { margin: 0; }
ul { list-style: none; padding: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; }
h2 { font-size: clamp(2rem, 3.45vw, 3.7rem); line-height: 1.13; letter-spacing: -.055em; text-wrap: balance; }
h3 { font-size: clamp(1.04rem, 1.55vw, 1.55rem); letter-spacing: -.04em; line-height: 1.35; }
.wrap { width: min(calc(100% - 2 * var(--page-inset)), 1520px); margin-inline: auto; }
.section { padding-block: clamp(64px, 7.2vw, 118px); }
.skip { position: fixed; z-index: 10; padding: 1em; background: white; transform: translateY(-130%); }
.skip:focus { transform: none; color: var(--black); top: 10px; }
dialog {
  --nav-line: #dbe6e1;
  background: #fafcfb;
  color: var(--accent);
}
header.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 3;
  pointer-events: none;
}
header.nav.is-scrolled {
  background-color: var(--accent);
}
header.nav.is-hidden:not(:has(:focus-visible)) {
  transform: translateY(-100%);
}
header.nav::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(to bottom, rgb(6 26 52 / 95%), rgb(6 26 52 / 72%) 40%, rgb(6 26 52 / 0%));
  pointer-events: none;
}
header.nav.is-scrolled::after { opacity: 0; }
header.nav::before {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0;
  background: linear-gradient(160deg, rgb(5 36 51 / 92%), rgb(9 47 65 / 64%) 60%, rgb(216 233 226 / 72%));
}
header.has-open-menu::before {
  opacity: 1;
  pointer-events: auto;
}
.masthead { display: flex; align-items: center; }
.masthead .skip { pointer-events: auto; }
.masthead-panel {
  --focus-color: var(--white);
  --submenu-padding: clamp(18px, 2.5vw, 36px);
  --gallery-height: clamp(235px, 36vh, 380px);
  isolation: isolate;
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 32px);
  width: 100%;
  padding-inline: var(--masthead-inset);
  pointer-events: auto;
  color: var(--white);
}
.masthead-brand .logo { width: 100px; }
.logo { width: 92px; }
.masthead-panel nav { flex: 1; }
.nav-list { display: flex; justify-content: center; align-items: center; gap: 8px; }
.nav-list > li {
  --nav-pill-padding: 16px;
  display: flex;
  align-items: center;
  margin-block: 10px;
  border-radius: 12px;
}
.nav-list > li:is(:hover, :focus-within, :has(.disclose[aria-expanded="true"])) {
  background-color: #ededed;
}
.nav-list > li:is(:hover, :focus-within, :has(.disclose[aria-expanded="true"])) > :is(a, .disclose) {
  --focus-color: #103044;
  color: #103044;
}
.nav-list > li > a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--nav-pill-padding);
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
}
.nav-list > li:has(.disclose) > a { padding-inline-end: 0; }
:is(dialog nav, .footer-grid, .legal) a { transition: color 180ms ease-out; }
:is(dialog nav, .footer-grid, .legal) a:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 4px; }
.disclose { min-height: 44px; padding-inline: 8px var(--nav-pill-padding); }
.disclose::after { content: ''; display: inline-block; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1px 1px 0; transform: translateY(-2px) rotate(45deg); }
.disclose[aria-expanded=true]::after { transform: rotate(225deg); }
.submenu {
  --focus-color: var(--accent);
  position: absolute;
  z-index: 2;
  top: calc(100% - 1px);
  inset-inline: 0;
  height: min(calc(100dvh - 90px), calc(var(--gallery-height) + 2 * var(--submenu-padding)));
  border-radius: 24px;
  display: grid;
  overflow: auto;
  padding: var(--submenu-padding);
  color: #103044;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.disclose[aria-expanded="true"] + .submenu {
  z-index: 3;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.submenu-links { display: grid; align-content: start; }
.submenu a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(30px, 4.5vh, 44px);
  padding: 5px 25px 5px 0;
  border-bottom: 1px solid #d8e1e0;
  font: 600 clamp(.85rem, 1.1vw, 1.05rem)/1.3 var(--display);
}
:is(.submenu-links, .drawer-feature-links) a::after {
  content: '';
  position: absolute;
  inset-inline-end: 5px;
  width: 14px;
  height: 10px;
  background: currentColor;
  clip-path: polygon(0 43%, 82% 43%, 59% 8%, 66% 0, 100% 50%, 66% 100%, 59% 92%, 82% 57%, 0 57%);
  opacity: .75;
}
:is(.submenu-links, .drawer-feature-links) a:is(:hover, :focus-visible) { color: #366d56; }
:is(.submenu-links, .drawer-feature-links) a:is(:hover, :focus-visible)::after { opacity: 1; translate: 3px 0; }
.submenu--feature {
  --feature-gallery-height: min(var(--gallery-height), calc(100dvh - 90px - 2 * var(--submenu-padding)));
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
  background:
    radial-gradient(circle at 100% -4%, transparent 0 45px, #bce7d5 46px 100px, transparent 101px),
    radial-gradient(ellipse 36% 18% at 2% 112%, #daeae5 99%, transparent),
    #f9faf9;
  box-shadow: 0 18px 52px rgb(3 36 51 / 17%);
  overscroll-behavior: contain;
}
.feature-title {
  color: #0c293a;
  font: 800 clamp(1.5rem, 4.2vh, 2.7rem)/1.05 var(--display);
  letter-spacing: -.065em;
  text-wrap: balance;
}
.feature-title em {
  color: #548f75;
  font-style: normal;
}
.submenu--feature .submenu-links {
  max-width: 440px;
  margin-top: clamp(8px, 1.2vh, 14px);
}
@media (max-height: 700px) {
  .submenu--feature .feature-title { font-size: 1.5rem; }
  .submenu--feature .submenu-links { margin-top: 6px; }
}
.feature-gallery {
  /* Half the horizontal displacement of a 16-degree skew over the gallery height. */
  --feature-slant: calc(var(--feature-gallery-height) * .1434);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 18px);
  height: var(--feature-gallery-height);
  padding-inline: var(--feature-slant);
}
.feature-photo {
  position: relative;
  overflow: hidden;
  border-radius: clamp(10px, 1.2vw, 22px);
  background: #dce9e4;
  transform: skewX(-16deg);
}
.feature-photo img {
  position: absolute;
  inset: 0 auto 0 50%;
  width: calc(100% + 2 * var(--feature-slant));
  max-width: none;
  height: 100%;
  object-fit: cover;
  transform: translateX(-50%) skewX(16deg);
}
.feature-photo--roots img { object-position: 30% center; }
.button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  color: var(--black);
  background: var(--sage);
  font-weight: 600;
  transition: background-color 180ms ease-out, color 180ms ease-out, transform 180ms ease-out;
}
.button:is(:hover, :focus-visible) { background-color: color-mix(in srgb, var(--sage) 72%, var(--white)); }
.masthead-panel .masthead-cta {
  --masthead-cta-blue: #033045;
  position: relative;
  overflow: hidden;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 100px;
  background: var(--sage);
  color: var(--masthead-cta-blue);
  font-size: .85rem;
  white-space: nowrap;
}
.masthead-cta-tide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: inherit;
  border-radius: inherit;
  pointer-events: none;
  background: var(--masthead-cta-blue);
  box-shadow: inset 0 0 0 2px var(--sage);
  color: var(--sage);
  clip-path: ellipse(120% 200% at 50% var(--masthead-tide-level, 300%));
}
.masthead-cta:is(:focus-visible, :active) { --masthead-tide-level: 145%; }
@media (hover: hover) {
  .masthead-cta:hover { --masthead-tide-level: 145%; }
}
.menu-toggle, .close { width: 44px; height: 44px; display: grid; align-content: center; justify-content: center; gap: 5px; border: 1px solid var(--nav-line); border-radius: 8px; }
.masthead-panel .menu-toggle {
  --focus-color: var(--accent);
  display: none;
  position: absolute;
  inset-inline-end: 4px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  color: #103044;
}
.masthead-panel .menu-toggle:is(:hover, :focus-visible) { background: var(--sage); }
.menu-toggle span { width: 16px; height: 1px; background: currentColor; }
dialog { position: fixed; inset: 0 auto 0 0; margin: 0; width: min(420px,100%); max-width: 100%; height: 100dvh; max-height: none; padding: 26px; border: 0; }
dialog::backdrop { background: #14376380; }
@media (prefers-reduced-motion: no-preference) {
  .masthead-panel, .drawer-feature {
    --menu-entry-ease: cubic-bezier(.35, 0, .2, 1);
  }
  .masthead-panel { --menu-panel-lead: 120ms; }
  .nav-list > li { transition: background-color 180ms ease-out; }
  .masthead-cta-tide { transition: clip-path 240ms cubic-bezier(.2, 0, 0, 1); }
  .disclose::after { transition: transform 260ms cubic-bezier(.22, 1, .36, 1); }
  :is(.submenu-links, .drawer-feature-links) a::after {
    transition: opacity 180ms ease-out, translate 260ms cubic-bezier(.22, 1, .36, 1);
  }
  :is(.submenu-links, .drawer-feature-links) a:nth-child(2) { --entry-delay: 20ms; }
  :is(.submenu-links, .drawer-feature-links) a:nth-child(3) { --entry-delay: 40ms; }
  :is(.submenu-links, .drawer-feature-links) a:nth-child(4) { --entry-delay: 60ms; }
  :is(.submenu-links, .drawer-feature-links) a:nth-child(5) { --entry-delay: 80ms; }
  .feature-photo:nth-child(2) { --entry-delay: 35ms; }
  .feature-photo:nth-child(3) { --entry-delay: 70ms; }
  .feature-title {
    --feature-entry-delay: var(--menu-panel-lead, 0ms);
    --feature-entry-duration: 300ms;
    --feature-entry-distance: 8px;
  }
  :is(.submenu-links, .drawer-feature-links) a {
    --feature-entry-delay: calc(var(--menu-panel-lead, 0ms) + 145ms + var(--entry-delay, 0ms));
  }
  .feature-photo {
    --feature-entry-delay: calc(var(--menu-panel-lead, 0ms) + 310ms + var(--entry-delay, 0ms));
    --feature-entry-duration: 340ms;
  }
  .submenu--feature :is(.feature-title, .submenu-links a) {
    opacity: 0;
    translate: 0 var(--feature-entry-distance, 5px);
    transition: opacity 200ms ease-in, translate 220ms ease-in;
  }
  .disclose[aria-expanded="true"] + .submenu--feature :is(.feature-title, .submenu-links a) {
    opacity: 1;
    translate: 0 0;
    transition-property: opacity, translate;
    transition-duration: var(--feature-entry-duration, 260ms);
    transition-timing-function: var(--menu-entry-ease);
    transition-delay: var(--feature-entry-delay);
  }
  .submenu--feature .feature-photo {
    clip-path: inset(100% 0 0);
    transition: clip-path 200ms ease-in;
  }
  .disclose[aria-expanded="true"] + .submenu--feature .feature-photo {
    clip-path: inset(0);
    transition: clip-path var(--feature-entry-duration) var(--menu-entry-ease) var(--feature-entry-delay);
  }
  .drawer-feature[open] :is(.feature-title, .drawer-feature-links a) {
    animation: feature-content-enter var(--feature-entry-duration, 260ms) var(--menu-entry-ease) var(--feature-entry-delay) backwards;
  }
  .drawer-feature[open] .feature-photo {
    animation: feature-photo-reveal var(--feature-entry-duration) var(--menu-entry-ease) var(--feature-entry-delay) backwards;
  }
  :is(.submenu--feature, .drawer-feature) a:focus {
    opacity: 1 !important;
    translate: none !important;
    transition: none !important;
  }
  header.nav { transition: transform 220ms ease-out, background-color 150ms ease-out; }
  header.nav::after { transition: opacity 150ms ease-out; }
  header.nav.is-hidden:has(:focus-visible) { transition-duration: 0s; }
  .masthead-panel .menu-toggle {
    transition: background-color 180ms ease-out;
  }
  header.nav::before { transition: opacity 300ms cubic-bezier(.35, 0, .2, 1); }
  .submenu {
    translate: 0 -5px;
    transition: opacity 200ms ease-in, translate 220ms ease-in, visibility 220ms;
  }
  .disclose[aria-expanded="true"] + .submenu {
    translate: 0 0;
    transition: opacity 260ms var(--menu-entry-ease), translate 300ms var(--menu-entry-ease);
  }
  .disclose[aria-expanded="true"] + .submenu--feature:focus-within { transition: none; }
  #drawer[open] { animation: drawer-enter 300ms cubic-bezier(.22, 1, .36, 1) both; }
  #drawer[open]::backdrop { animation: backdrop-enter 220ms ease-out both; }
}
@keyframes feature-content-enter {
  from { opacity: 0; translate: 0 var(--feature-entry-distance, 5px); }
  to { opacity: 1; translate: 0 0; }
}
@keyframes feature-photo-reveal {
  from { clip-path: inset(100% 0 0); }
  to { clip-path: inset(0); }
}
@keyframes drawer-enter {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}
@keyframes backdrop-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}
body:has(dialog[open]) { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
dialog nav > a, dialog summary, dialog details a { display: block; padding: 12px 0; border-bottom: 1px solid var(--nav-line); }
dialog summary { display: list-item; }
dialog details a { padding-left: 20px; }
.drawer-feature-content {
  --feature-gallery-height: clamp(60px, 19vw, 86px);
  margin-block: 6px 10px;
  padding: 10px 12px;
  border-radius: 20px;
  background: radial-gradient(circle at 100% 0, #d3eee1, transparent 43%), #f3f7f5;
}
.drawer-feature .feature-title {
  margin-bottom: 8px;
  font-size: clamp(1.05rem, 4.5vw, 1.4rem);
}
.drawer-feature .feature-gallery { margin-bottom: 6px; }
.drawer-feature .feature-photo { border-radius: 10px; }
dialog .drawer-feature-links a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 25px 6px 0;
}
.social { margin-top: 28px; font-size: .85rem; }
:root {
  --masthead-height: 76px;
  --gutter: clamp(16px, 2.2vw, 32px);
  --bg: var(--white);
  --ink: var(--black);
  --font-display: var(--display);
  --display-weight: 600;
}
html { scroll-padding-top: calc(var(--masthead-height) + 12px); }
.masthead { min-height: var(--masthead-height); }
.masthead .skip:not(:focus) { clip-path: inset(50%); }
h2 { font-size: clamp(2.3rem, 4.7vw, 5.1rem); line-height: 1; }
h3 { font-size: clamp(1.5rem, 2.25vw, 2.65rem); line-height: 1.1; }
.button { border-radius: 100px; }
.dark { background: var(--black); color: var(--white); box-shadow: inset 0 0 0 1px var(--black); }
.button.dark:is(:hover, :focus-visible) { background-color: var(--sage); color: var(--black); }
.eyebrow { color: var(--link-color); margin-bottom: 16px; font-size: .79rem; font-weight: 600; letter-spacing: .06em; }
.secondary, .more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--link-color);
  min-height: 44px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.more::after, .secondary::after { content: '↗' / ''; }

.hero {
  --hero-mint: #b5e5ce;
  --focus-color: var(--hero-mint);
  color: var(--white);
}
.hero-frame { position: relative; isolation: isolate; overflow: hidden; background: #032d43; }
.hero__bg, .hero-pipe-art, .hero-frame::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__bg { z-index: -3; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: left bottom; }
.hero-frame::before {
  content: '';
  z-index: -2;
  background: linear-gradient(100deg, transparent 38%, #032d4326 49%, #022b40d9 68%, #02283d 96%);
}
.hero-pipe-art { z-index: -1; width: 100%; height: 100%; }
@media screen and (prefers-reduced-motion: no-preference) {
  :root { --mint-paint-ease: cubic-bezier(.4, .05, .22, 1); }
  .hero-pipe-art { --corner-paint-delay: 290ms; }
  html.m-enter:not([data-motion="off"]) .hero[data-enter]:not([data-enter="off"]) .hero-paint-stroke {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: mint-stroke-paint var(--paint-duration, 1150ms) var(--mint-paint-ease) var(--paint-delay, 100ms) both;
  }
  .hero-paint-stroke--corner {
    --paint-duration: 760ms;
    --paint-delay: var(--corner-paint-delay);
  }
  html.m-enter:not([data-motion="off"]) .hero[data-enter]:not([data-enter="off"]) .hero-pipe-corner {
    /* Keep the fill hidden until the mask is animating. */
    opacity: 0;
    animation: hero-corner-ready 1ms step-end calc(var(--corner-paint-delay) + 40ms) forwards;
  }
}
@keyframes mint-stroke-paint {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@keyframes hero-corner-ready {
  to { opacity: 1; }
}
.hero-inner {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  min-height: max(590px, 100svh);
  padding-block: calc(var(--masthead-height) + 40px) clamp(34px, 5vw, 80px);
}
.hero-copy { container-type: inline-size; width: min(47.5%, 810px); text-align: left; }
@media (min-width: 1051px) {
  .hero-inner {
    width: min(calc(100% - 2 * var(--page-inset)), 1720px);
    padding-inline-end: var(--masthead-inset);
    padding-block-end: clamp(72px, 13svh, 132px);
  }
  .hero-copy { width: min(43%, 650px); }
}
.hero h1 {
  --hero-title-size: clamp(2.3rem, 5.15vw, 5.75rem);
  font-size: min(var(--hero-title-size), 12cqi);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.055em;
  text-transform: uppercase;
}
.hero-title-line { display: block; white-space: nowrap; }
.hero-title-accent { color: var(--hero-mint); }
.hero-copy > p {
  margin: 16px 0 22px;
  max-width: 44ch;
  color: #f0f7fa;
  font-size: clamp(1rem, 1.12vw, 1.18rem);
  line-height: 1.5;
}
.hero .actions { display: flex; align-items: center; gap: 6px 22px; flex-wrap: wrap; }
.hero .button {
  --focus-color: var(--hero-mint);
  position: relative;
  gap: 8px;
  padding: 10px clamp(18px, 1.35vw, 24px);
  padding-inline-end: clamp(12px, 1vw, 18px);
  min-height: clamp(48px, 3.1vw, 56px);
  background: var(--hero-mint);
  color: #052739;
  font-size: clamp(.95rem, 1vw, 1.05rem);
}
.hero .button:is(:hover, :focus-visible) { background: var(--hero-mint); }
.hero .button-arrow {
  display: grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgb(5 39 57 / 10%);
  transition: background-color 180ms ease-out, color 180ms ease-out;
}
.hero .button-arrow svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-button-trace {
  position: absolute;
  inset: -3px;
  width: calc(100% + 6px);
  height: calc(100% + 6px);
  overflow: visible;
  pointer-events: none;
  fill: none;
  stroke: var(--hero-mint);
  stroke-width: 1.5;
}
.hero-button-trace path, .hero-arrow-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.hero-arrow-draw { opacity: 0; }
.hero .button:is(:hover, :focus-visible) .button-arrow {
  translate: none;
  background: #052739;
  color: var(--hero-mint);
}
.hero .button:is(:hover, :focus-visible) :is(.hero-button-trace path, .hero-arrow-draw) { stroke-dashoffset: 0; }
.hero .button:is(:hover, :focus-visible) .hero-arrow-base { opacity: .35; }
.hero .button:is(:hover, :focus-visible) .hero-arrow-draw { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero-button-trace path { transition: stroke-dashoffset 270ms cubic-bezier(.35, 0, .2, 1); }
  .hero-arrow-base { transition: opacity 180ms ease-out; }
  .hero-arrow-draw { transition: stroke-dashoffset 180ms ease-out; }
  .hero .button:is(:hover, :focus-visible) .hero-arrow-draw { transition-delay: 210ms; }
}
.hero .secondary { color: var(--white); }

#services, #procede {
  background: white;
}
#services {
  --services-seam: clamp(68px, 8vw, 128px);
  --services-shadow: rgb(0 0 0 / 80%);
  --services-intro-shadow: rgb(0 0 0 / 32%);
  --service-mint: #b5efcf;
}
.services-intro-backdrop {
  --link-color: var(--sage);
  --services-hero-overlap: clamp(26px, 4.5vw, 72px);
  position: relative;
  color: var(--white);
}
.services-intro-backdrop::before {
  content: '';
  position: absolute;
  inset: calc(-1 * var(--services-hero-overlap)) 0 calc(-1 * var(--services-seam));
  background:
    linear-gradient(to bottom,
      rgb(3 45 67 / 25%), rgb(0 0 0 / 57%) 27%, rgb(0 0 0 / 62%) 49%,
      rgb(0 0 0 / 52%) 70%, rgb(0 0 0 / 42%) 85%, var(--services-intro-shadow))
      center top / 100% calc(100% - var(--services-seam)) no-repeat,
    #715744 url('assets/hydroliner-photography/services-intro-extended.webp') center top / cover;
  mask-image: linear-gradient(to bottom, transparent, #000 var(--services-hero-overlap));
  pointer-events: none;
}
.services-intro {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-top: clamp(100px, 11vw, 200px);
  text-align: center;
}
.services-intro-copy > p:last-child { max-width: 66ch; margin: 20px auto 0; }
.copy-line {
  display: block;
  padding: .08em .035em;
  margin: -.08em -.035em;
  overflow: hidden;
}
.copy-line > span { display: block; }
.service-film { position: relative; z-index: 1; }
.service-film-frame {
  --link-color: var(--sage);
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: calc(100svh - var(--masthead-height));
  color: white;
}
.service-film-visual, .service-film-video, .service-film-frame::before { position: absolute; inset: 0; }
.service-film-visual { overflow: clip; z-index: -2; background: var(--black) center / cover; }
.service-film-video { width: 100%; height: 100%; object-fit: cover; }
.service-film--inverted .service-film-visual {
  background-image: url('assets/hydroliner-photography/gaine-inversee-scroll-poster.webp');
  mask-image: linear-gradient(to bottom,
    transparent, #000 var(--services-seam), #000 calc(100% - var(--services-seam)), transparent);
}
#gaine-ponctuelle .service-film-visual {
  background-image: url('assets/hydroliner-photography/gaine-ponctuelle-scroll-poster.webp');
  mask-image: linear-gradient(to bottom, transparent, #000 var(--services-seam));
}
.service-film-frame::before {
  content: '';
  z-index: -1;
  background: linear-gradient(180deg, transparent 40%, #0007 64%, var(--services-shadow) 90%);
  pointer-events: none;
}
.service-film--inverted::after {
  content: '';
  position: absolute;
  inset: 100% 0 auto;
  height: clamp(120px, 13vw, 230px);
  background: linear-gradient(to bottom,
    rgb(0 0 0 / 63%), rgb(0 0 0 / 30%) 50%, transparent);
  pointer-events: none;
}
.service-film--inverted .service-film-frame::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: clamp(180px, 19vw, 280px);
  z-index: -1;
  background: linear-gradient(to bottom,
    var(--services-intro-shadow), rgb(0 0 0 / 23%) 27%, rgb(0 0 0 / 10%) 58%,
    rgb(0 0 0 / 2.5%) 82%, transparent);
  pointer-events: none;
}
.service-film-copy {
  padding-block: 24px clamp(46px, 7svh, 86px);
  text-align: center;
}
.service-film-copy h3 { font-size: clamp(2.1rem, 4vw, 4.5rem); }
.service-film-copy p { max-width: 58ch; margin: 10px auto 0; }
.service-film-copy .more:focus-visible { outline-color: white; }
.service-film-caption {
  padding: clamp(18px, 2.7vw, 38px) var(--page-inset) clamp(7px, 1vw, 16px);
  background:
    linear-gradient(rgb(0 0 0 / 65%), rgb(0 0 0 / 63%)),
    #3e291e url('assets/hydroliner-photography/services-soil-bridge.webp') center / cover;
  color: var(--white);
}
.service-film-caption h3 {
  font-size: clamp(1.875rem, 5.65vw, 4.5rem);
  font-weight: 750;
  text-wrap: balance;
}
.service-film-caption h3 span { color: var(--service-mint); }
.service-film-caption p {
  max-width: 35em;
  margin-top: clamp(8px, 1.15vw, 16px);
  font-size: clamp(.875rem, 1.89vw, 1.125rem);
  line-height: 1.4;
  text-wrap: pretty;
}
.service-film-caption .more {
  position: relative;
  isolation: isolate;
  gap: .6em;
  margin-top: clamp(10px, 1.55vw, 20px);
  padding-inline: 1.65em;
  color: var(--service-mint);
  font-size: clamp(.8125rem, 1.75vw, 1rem);
  text-decoration: none;
  transition: color 160ms ease-out;
}
.service-film-caption .more::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 4px 0;
  border: 2px solid var(--service-mint);
  border-radius: 100px;
  background: rgb(0 0 0 / 24%);
  transition: background-color 160ms ease-out;
}
.service-film-caption .more::after { content: '→' / ''; font-size: 1.15em; }
.service-film-caption .more:is(:hover, :focus-visible) { color: #132b1d; }
.service-film-caption .more:is(:hover, :focus-visible)::before { background-color: var(--service-mint); }
.service-film-caption .more:focus-visible {
  border-radius: 100px;
  outline-color: var(--service-mint);
}
.services-bridge {
  position: relative;
}
.services-bridge::before {
  content: '';
  position: absolute;
  inset: calc(-1 * var(--services-seam)) 0;
  background: #78604c url('assets/hydroliner-photography/services-soil-bridge.webp') center / cover;
  pointer-events: none;
}
.services-band {
  z-index: 1;
  inset: 25% 0;
  background: var(--white);
}
.services-bridge > .wrap { position: relative; z-index: 1; }
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: clamp(14px, 1.05vw, 22px);
  overflow-x: auto;
  scroll-snap-type: x proximity;
}
.services[data-lenis-prevent-horizontal] { overscroll-behavior-y: auto; }
.service-card {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  aspect-ratio: 4 / 5;
  min-height: 370px;
  overflow: hidden;
  border: 1px solid rgb(177 222 228 / 44%);
  border-radius: clamp(24px, 3vw, 54px);
  background: #082731;
  color: white;
  scroll-snap-align: start;
}
.service-media, .service-card::before { position: absolute; inset: 0; }
.service-media {
  width: 100%;
  height: 74%;
  object-fit: cover;
  object-position: center top;
  z-index: -2;
}
.service-card::before {
  content: '';
  z-index: -1;
  background: linear-gradient(180deg, rgb(3 45 67 / 17%), transparent 26%,
    rgb(3 34 49 / 28%) 43%, rgb(5 36 48 / 78%) 60%, #082731 74%, #10323d);
}
.service-card::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 64%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 51%, var(--service-mint) 52% 70%, transparent 71%);
  pointer-events: none;
}
.service-card:first-child::after {
  inset: 0 auto auto 0;
  transform: translate(-55%, -51%);
}
.service-card:nth-child(2)::after {
  inset: auto 0 0 auto;
  transform: translate(51%, 65%);
}
.service-card:nth-child(3)::after {
  inset: 0 0 auto auto;
  transform: translate(55%, -51%);
}
.service-copy {
  padding: clamp(22px, 3vw, 52px);
  padding-block-end: clamp(24px, 2.35vw, 44px);
}
.service-copy h3 {
  font-size: clamp(1.75rem, 3.15vw, 3.65rem);
  font-weight: 750;
  line-height: .99;
}
.service-copy h3 span { display: block; color: var(--service-mint); }
.service-copy p {
  min-block-size: 4lh;
  margin-top: clamp(12px, 1.3vw, 22px);
  color: #f3f8f8;
  font-size: clamp(.95rem, 1.16vw, 1.25rem);
  line-height: 1.38;
  text-wrap: pretty;
}
.service-copy .more {
  gap: clamp(12px, 1.25vw, 22px);
  min-height: 44px;
  margin-top: clamp(18px, 1.75vw, 30px);
  color: white;
  font-size: clamp(.95rem, 1.3vw, 1.42rem);
  font-weight: 700;
  text-decoration: none;
}
.service-copy .more::after { content: none; }
.service-copy .more:focus-visible { outline-color: var(--service-mint); }
.service-link-label, .service-link-arrow { position: relative; }
:is(.service-link-label, .service-link-arrow)::after {
  content: '';
  position: absolute;
  pointer-events: none;
}
.service-link-label::after {
  inset: auto 0 -4px;
  height: 1px;
  background: var(--service-mint);
  scale: 0 1;
  transform-origin: left;
}
.service-link-arrow {
  display: grid;
  place-items: center;
  width: clamp(36px, 3vw, 50px);
  aspect-ratio: 1;
  border: 2.5px solid var(--service-mint);
  border-radius: 50%;
  color: var(--service-mint);
  font-size: 1.2em;
  font-weight: 500;
  line-height: 1;
}
.service-link-arrow::after {
  inset: -9px;
  border: 1px solid var(--service-mint);
  border-radius: 50%;
  opacity: 0;
  scale: .85;
}
.service-copy .more:is(:hover, :focus-visible) .service-link-arrow {
  background: var(--service-mint);
  color: #082731;
}
.service-copy .more:is(:hover, :focus-visible) .service-link-label::after { scale: 1; }
.service-copy .more:is(:hover, :focus-visible) .service-link-arrow::after {
  opacity: .58;
  scale: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .services-reveal > .services {
    translate: 0 var(--service-parallax-offset, 0px);
  }
  .services-reveal.is-pending:not(:focus-within) > .services { opacity: 0; }
  .services-reveal.is-revealing:not(:focus-within) > .services {
    animation: service-cards-rise 800ms cubic-bezier(.24, .72, .32, 1) backwards;
  }
  .services-reveal.is-revealing:not(:focus-within) .service-card::after {
    animation: mint-shape-paint 650ms var(--mint-paint-ease) 130ms backwards;
  }
  .service-link-arrow { transition: color 160ms ease-out, background-color 160ms ease-out; }
  .service-link-label::after { transition: scale 200ms cubic-bezier(.22, 1, .36, 1); }
  .service-link-arrow::after { transition: scale 220ms cubic-bezier(.22, 1, .36, 1), opacity 220ms ease-out; }
  .service-media {
    scale: var(--service-media-scale, 1);
    transition: scale 420ms cubic-bezier(.2, .7, .25, 1);
  }
  .service-card:has(.more:focus-visible) {
    --service-media-scale: 1.065;
  }
}
@keyframes service-cards-rise {
  from { transform: translateY(var(--service-rise-distance)); }
  to { transform: translateY(0); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .services {
    /* Leave room for the hover scale inside the horizontal scroller. */
    padding: 16px;
    margin: -16px;
    scroll-padding-inline: 16px;
  }
  .service-card { transition: scale 320ms cubic-bezier(.2, .7, .25, 1); }
  .service-card:hover {
    z-index: 1;
    scale: 1.05;
  }
}

#procede {
  --problem-ink: #0c162e;
  position: relative;
  z-index: 1;
  overflow: clip;
  color: var(--problem-ink);
  background: linear-gradient(145deg, #f8faf9, #fff 48%, #f7faf8);
}
.mint-shape--problems {
  top: clamp(400px, 37vw, 590px);
  left: calc(-1 * clamp(50px, 7vw, 120px));
  width: clamp(170px, 24vw, 390px);
  aspect-ratio: 1;
  border: clamp(38px, 7vw, 110px) solid #deeee4;
  border-radius: 50% 50% 0 0;
}
.problems-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4.7vw, 80px);
  padding-inline: clamp(0px, 2vw, 40px);
  padding-block: clamp(54px, 5vw, 86px) clamp(36px, 4vw, 68px);
}
.problems-intro .eyebrow {
  color: inherit;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.problems-intro h2 {
  font-size: clamp(2.35rem, 4vw, 4.7rem);
  font-weight: 750;
  text-wrap: initial;
}
.problems-intro h2 span { color: #4e7d66; }
.problems-intro > p {
  border-inline-start: 2px solid #91b5a1;
  padding-inline-start: clamp(18px, 2.4vw, 40px);
}
.problems {
  display: grid;
  gap: clamp(18px, 2vw, 34px);
  padding-bottom: clamp(48px, 7vw, 112px);
}
.problems .entry {
  --problem-card-radius: clamp(22px, 2.5vw, 42px);
  display: grid;
  grid-template-columns: minmax(0, 55%) minmax(0, 1fr);
  min-height: clamp(248px, 17vw, 310px);
  overflow: hidden;
  border-radius: var(--problem-card-radius);
  background: linear-gradient(130deg, #f5f8f8, #edf3f0);
}
.problem-media {
  position: relative;
  overflow: hidden;
  background: #eaf0f5;
}
.problem-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.problem-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  align-items: end;
  gap: 12px clamp(12px, 2.4vw, 40px);
  padding: clamp(23px, 3.2vw, 54px) clamp(24px, 4vw, 68px);
}
.problem-copy h3 {
  grid-column: 1 / -1;
  max-width: 13ch;
  font-size: clamp(1.85rem, 3.2vw, 3.6rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -.06em;
}
.problem-copy .more {
  position: relative;
  width: clamp(44px, 3.5vw, 60px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #c3e2ce;
  color: var(--problem-ink);
  font-size: 0;
  text-decoration: none;
}
.problem-copy .more::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c162e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19 19 5M8 5h11v11'/%3E%3C/svg%3E") center / 48% no-repeat;
}
.problem-copy .more:is(:hover, :focus-visible)::after { translate: none; }
.problem-copy .more:is(:hover, :focus-visible) { background: #a9d6bb; }

@media (min-width: 761px) {
  .problem-media {
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    clip-path: shape(from 0 0, line to 100% 0, line to 89% 79%, curve to 79% 100% with 86% 100%, line to 0 100%, close);
  }
  .problems .entry:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 59%); }
  .problems .entry:nth-child(even) .problem-media {
    grid-area: 1 / 2;
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
    clip-path: shape(from 0 100%, line to 10% 23%, curve to 19% 0 with 13% 0, line to 100% 0, line to 100% 100%, close);
  }
  .problems .entry:nth-child(even) .problem-copy { grid-area: 1 / 1; }
}
@media (max-width: 760px) {
  .problems-intro, .problems .entry { grid-template-columns: minmax(0, 1fr); }
  .problem-media { aspect-ratio: 16 / 8; }
}

.about-reveal { isolation: isolate; }
.about {
  --link-color: #b5e5ce;
  --focus-color: var(--white);
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: #082a3a;
  color: var(--white);
}
.about-photo, .about::before { position: absolute; inset: 0; }
.about-photo { z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: right bottom; }
.about::before {
  content: '';
  z-index: -1;
  background: linear-gradient(100deg, #062431fa 0%, #062431f5 29%, #062431e8 37%, #06243140 53%, transparent 69%);
}
.about-layout {
  display: grid;
  align-items: center;
  min-height: clamp(660px, 51.5vw, 990px);
  padding-inline: clamp(0px, 2.5vw, 44px);
  padding-block: clamp(50px, 4.3vw, 76px);
}
.about-copy { width: min(45%, 580px); }
.about-copy h2 {
  margin-bottom: clamp(20px, 1.7vw, 30px);
  font-size: clamp(2.9rem, 4.5vw, 5.4rem);
  font-weight: 750;
  text-wrap: initial;
}
.about-copy h2 .title-accent { color: var(--link-color); }
.benefits { margin-block: clamp(18px, 2vw, 30px) clamp(26px, 2.4vw, 42px); }
.benefits li { padding-block: 9px; }
.benefits li + li { position: relative; padding-block-start: 10px; }
.benefits li + li::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: rgb(255 255 255 / 23%);
  transform-origin: left;
}
.benefits li > span { display: block; }
.about-button {
  gap: 14px;
  padding: 13px clamp(24px, 2vw, 36px);
  color: #082a3a;
  background: var(--link-color);
  font-weight: 700;
}
.about-button .button-arrow { font-size: 1.35em; line-height: 1; }

@media (max-width: 850px) {
  .about { --about-photo-height: clamp(250px, 64vw, 450px); }
  .about-photo, .about::before { inset: auto 0 0; height: var(--about-photo-height); }
  .about-photo { object-position: right 75%; }
  .about::before { background: linear-gradient(#082a3a, transparent 45%); }
  .about-layout { min-height: 0; padding-bottom: calc(var(--about-photo-height) - 20px); }
  .about-copy { width: min(100%, 580px); }
}

.underground {
  overflow: clip;
  color: #0a1324;
  background: radial-gradient(ellipse at 54% 48%, #fff, #f5f6f8);
}
.why {
  width: min(calc(100% - 2 * var(--page-inset)), 88%, 1520px);
  padding-block: clamp(40px, 3.4vw, 64px);
}
.why-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  column-gap: clamp(26px, 3.4vw, 60px);
}
.why-row + .why-row { margin-top: clamp(26px, 2vw, 36px); }
.why-intro .eyebrow {
  color: #235d91;
  letter-spacing: .23em;
  text-transform: uppercase;
}
.why-intro h2 {
  font-size: clamp(2.45rem, 5vw, 5.6rem);
  font-weight: 750;
  text-wrap: initial;
}
.why-intro h2 .title-accent { color: #518c6d; }
.why-intro > p:last-child {
  max-width: 52ch;
  margin-top: clamp(18px, 2vw, 34px);
  color: #303846;
  font-size: clamp(1rem, 1.25vw, 1.35rem);
  line-height: 1.48;
}
.photo-stack {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1.65;
  margin: 0;
}
.mint-shape--photo {
  z-index: -1;
  top: -18%;
  left: 4%;
  width: 41%;
  height: 63%;
  border: clamp(24px, 5.5vw, 92px) solid #b5dec8;
  border-top: 0;
  border-right: 0;
  border-bottom-left-radius: 56%;
}
/* The frame handles the reveal while the image keeps its own clipping path. */
.photo-stack-frame {
  position: absolute;
  width: 73%;
  height: 66%;
}
.photo-stack-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: clamp(20px, 3vw, 50px);
}
.photo-stack-frame:first-child {
  top: 0;
  right: 0;
}
.photo-stack-frame:first-child img {
  clip-path: shape(from 0 100%, line to 13% 12%, curve to 22% 0 with 16% 0, line to 100% 0, line to 100% 100%, close);
}
.photo-stack-frame:last-child {
  bottom: 0;
  left: 0;
  height: 59%;
}
.photo-stack-frame:last-child img {
  clip-path: shape(
    from 1.8% 87%,
    line to 11% 18%,
    curve to 23% 0 with 15% 0,
    line to 100% 0,
    line to 100% 73%,
    curve to 83% 100% with 95% 100%,
    line to 11.5% 100%,
    curve to 1.8% 87% with 5.4% 100% / .8% 94.5%,
    close
  );
}
.photo-stack--left { aspect-ratio: 1.88; }
.photo-stack--left .mint-shape--photo { top: auto; bottom: 0; left: 9%; height: 53%; }
.photo-stack--left .photo-stack-frame:first-child {
  right: auto;
  left: 0;
  height: 72%;
}
.photo-stack--left .photo-stack-frame:first-child img {
  clip-path: shape(from 0 0, line to 80% 0, curve to 92% 18% with 89% 0, line to 100% 100%, line to 0 100%, close);
}
.photo-stack--left .photo-stack-frame:last-child {
  left: auto;
  right: 0;
  height: 66%;
}
.photo-stack--left .photo-stack-frame:last-child img {
  clip-path: shape(
    from 2.375% 81%,
    line to 10% 20%,
    curve to 22% 0 with 14% 0,
    line to 100% 0,
    line to 100% 100%,
    line to 10% 100%,
    curve to 2.375% 81% with 5% 100% / 1.5% 88%,
    close
  );
}
.reasons { padding-inline-start: clamp(0px, 2vw, 34px); }
.reasons li {
  padding-block: .46em;
  font: 750 clamp(1.4rem, 2.35vw, 2.85rem)/1.1 var(--display);
  letter-spacing: -.045em;
}
.reasons li + li { border-top: 1px solid #cdd3dc; }
.reasons li > span { display: block; }

@media (max-width: 760px) {
  .why-row { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .why-row .reasons { grid-row: 1; padding-inline-start: 0; }
  .mint-shape--photo { top: 0; }
  .photo-stack--left .mint-shape--photo { top: auto; }
}

.sage-band {
  overflow: clip;
  color: #08242d;
  background: radial-gradient(ellipse at 44% 45%, #f3faf5, #e4f2ea);
}
.band {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(30px, 5.5vw, 118px);
  width: min(89%, 1840px);
  padding-block: clamp(86px, 8.6vw, 180px);
}
.band h2 {
  font-size: clamp(2.75rem, 5.05vw, 6.6rem);
  font-weight: 750;
  letter-spacing: -.065em;
}
.band h2 .title-accent { color: #4e8768; }
.band p {
  max-width: 52ch;
  font-size: clamp(1rem, 1.25vw, 1.65rem);
  line-height: 1.52;
}
.sage-band .button {
  margin-top: clamp(20px, 1.8vw, 38px);
  padding: clamp(13px, 1.2vw, 26px) clamp(22px, 2.9vw, 62px);
  background: #092e38;
  box-shadow: none;
  font-size: clamp(1rem, 1.5vw, 1.9rem);
  font-weight: 700;
  text-align: center;
}
.sage-band .button:is(:hover, :focus-visible) { background: #c0e4d1; color: #092e38; }
/* The concrete rim is decorative. The wordmark and all footer content are live. */
.closing {
  --footer-ink: #09243b;
  --footer-line: #d5e0dc;
  --focus-color: var(--accent);
  overflow: clip;
  color: var(--footer-ink);
  background: radial-gradient(ellipse at 50% 35%, #eee, #fafafa 75%);
}
.underground, .sage-band, .closing { position: relative; }
.mint-art, .mint-shape {
  position: absolute;
  pointer-events: none;
}
.mint-art {
  display: block;
  width: var(--art-width);
  height: auto;
  color: #a9dbbf;
  stroke: currentColor;
  opacity: var(--art-opacity);
}
.mint-art--services {
  --art-width: clamp(94px, 18vw, 300px);
  --art-opacity: .7;
  top: 0;
  left: 0;
  z-index: 1;
  stroke-width: 2;
  mask-image: linear-gradient(110deg, #000 25%, transparent 95%);
}
.mint-art--problems {
  --art-width: clamp(120px, 23vw, 370px);
  --art-opacity: .48;
  top: 0;
  right: 0;
  mask-image: linear-gradient(270deg, #000 20%, transparent 90%);
}
.mint-art--about {
  --art-width: clamp(250px, 34vw, 590px);
  --art-opacity: .92;
  left: 42.5%;
  top: 0;
  mask-image: linear-gradient(to right, #000 18%, transparent 96%);
}
@media (max-width: 850px) {
  .mint-art--about { --art-opacity: .23; left: auto; right: -105px; }
}
.mint-art--quote {
  --art-opacity: .63;
  color: #87c7a5;
}
.mint-art--quote-top {
  --art-width: min(42%, 850px);
  top: 0;
  right: 0;
  mask-image: linear-gradient(to right, #0007, #000 48%, #0003);
}
.mint-art--quote-bottom,
.mint-art--footer {
  --art-width: min(57%, 1000px);
  --art-opacity: .78;
  left: 30%;
}
@media screen and (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) .mint-art:is(.is-pending, .is-revealing) path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }
  html:not([data-motion="off"]) .mint-art.is-revealing path {
    animation: mint-stroke-paint var(--paint-duration, 1150ms) var(--mint-paint-ease) var(--paint-delay, 0ms) both;
  }
  .mint-art--services { --paint-duration: 900ms; }
  .mint-art--services path:nth-child(2) { --paint-delay: 80ms; }
  .mint-art--services path:nth-child(3) { --paint-delay: 160ms; }
  html:not([data-motion="off"]) .mint-shape.is-pending { opacity: 0; }
  html:not([data-motion="off"]) .mint-shape.is-revealing {
    animation: mint-shape-paint 1150ms var(--mint-paint-ease) backwards;
  }
  html:not([data-motion="off"]) .services-band.is-revealing { animation-name: service-band-paint; }
}
@keyframes mint-shape-paint {
  from { clip-path: polygon(0 0, 0 0, 0 0); }
  to { clip-path: polygon(0 0, 200% 0, 0 200%); }
}
@keyframes service-band-paint {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0); }
}
.mint-art--quote-bottom { bottom: 0; overflow: visible; }
.mint-art--footer {
  top: 0;
  mask-image: linear-gradient(120deg, #000 46%, transparent 91%);
}
:is(#procede, .about, .sage-band, .closing) > .wrap { position: relative; }
.closing > .wrap { width: min(88%, 1400px); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 5vw, 90px);
  padding-block: clamp(18px, 2vw, 34px) clamp(42px, 4vw, 72px);
}
.footer-brand {
  position: relative;
  width: 100%;
  aspect-ratio: 514 / 544;
  background: url("assets/footer-concrete-ring.webp") center / contain no-repeat;
  filter: drop-shadow(5px 23px 20px #16232845);
}
.footer-brand-face {
  position: absolute;
  inset: 17% 14% 15% 15%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #101e2b, #051e32);
  box-shadow: inset 4px 6px 16px #0005;
}
.footer-brand .logo { width: 77%; }
.footer-links h3 {
  margin-bottom: clamp(10px, 1.3vw, 22px);
  font-size: clamp(1.45rem, 2.5vw, 2.65rem);
  font-weight: 750;
  letter-spacing: -.04em;
}
.footer-links a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding-block: 6px;
  font-size: clamp(.9rem, 1.25vw, 1.3rem);
  line-height: 1.3;
}
.footer-links a + a { border-top: 1px solid var(--footer-line); }
.footer-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  padding-bottom: clamp(36px, 4vw, 68px);
}
.footer-details > p {
  padding-inline-end: clamp(24px, 4vw, 72px);
  font-size: clamp(1.125rem, 1.7vw, 1.8rem);
  line-height: 1.42;
}
.footer-details strong {
  position: relative;
  display: inline-block;
  isolation: isolate;
  font: 750 1.32em/1.2 var(--display);
  letter-spacing: -.04em;
}
.footer-details strong::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: auto -.22em -.13em;
  height: .48em;
  border-radius: 1em;
  background: #c6edd4;
}
.footer-cta {
  padding-inline-start: clamp(24px, 5vw, 90px);
  border-inline-start: 1px solid var(--footer-line);
}
.footer-cta h2 {
  font-size: clamp(1.7rem, 2.65vw, 3rem);
  font-weight: 750;
  letter-spacing: -.045em;
  text-wrap: pretty;
}
.footer-cta .button {
  gap: clamp(18px, 2vw, 36px);
  margin-top: 20px;
  padding-inline: clamp(20px, 3vw, 46px);
  background: #bce7cc;
  color: var(--footer-ink);
}
.footer-cta .button-arrow { font-size: 1.4em; line-height: 1; }
.footer-cta .button:is(:hover, :focus-visible) {
  background: var(--footer-ink);
  color: var(--white);
}
.credentials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding-block: 12px 20px;
}
.credentials img {
  filter: brightness(0) saturate(100%) invert(13%) sepia(44%) saturate(1267%) hue-rotate(180deg) brightness(94%) contrast(94%);
}
.credentials img { width: 106px; max-height: 42px; object-fit: contain; }
.credentials img:last-child { width: 42px; }
.legal {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding-block: 12px;
  border-top: 1px solid var(--footer-line);
  font-size: clamp(.75rem, 1.15vw, 1rem);
}
.legal > a { min-height: 44px; display: flex; align-items: center; justify-self: end; }
.legal .jules-link { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .services-intro-backdrop { --services-hero-overlap: 32px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .footer-brand { grid-area: 1 / 1 / 2 / -1; justify-self: center; width: min(66%, 320px); }
  .mint-art--quote-bottom, .mint-art--footer { --art-width: 84%; left: 12%; }
  .footer-links a { min-height: 44px; }
  .footer-details { grid-template-columns: 1fr; gap: 30px; }
  .footer-details > p { padding: 0; }
  .footer-cta { padding: 26px 0 0; border: 0; border-top: 1px solid var(--footer-line); }
  .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 16px; }
}

@media (max-width: 1050px) {
  .masthead nav { display: none; }
  .masthead-panel { min-height: 56px; }
  .masthead-brand { margin-inline-end: auto; }
  .masthead-panel .menu-toggle { display: grid; background: var(--sage); }
  .masthead-panel .masthead-cta { min-height: 44px; padding: 12px; margin-inline-end: 46px; }
  .masthead-cta-prefix { display: none; }
}
@media (max-width: 760px) {
  .hero__bg { bottom: auto; height: clamp(310px, 71vw, 480px); }
  .hero-frame::before {
    background: linear-gradient(to bottom, transparent 140px, #032d4326 230px, #032d43 clamp(315px, 73vw, 487px));
  }
  .hero-pipe-art { height: clamp(380px, 90vw, 540px); opacity: .65; }
  .hero-pipe-corner { display: none; }
  .hero-inner { min-height: 100svh; padding-block: clamp(245px, 56vw, 380px) 38px; }
  .hero-copy { width: 100%; }
  .hero h1 { --hero-title-size: clamp(2.15rem, 8.8vw, 4.1rem); }
}
@media (max-width: 700px) {
  :root { --masthead-height: 64px; }
  .masthead-panel { padding-inline: 8px; }
  .masthead-brand .logo { width: 76px; }
  dialog { width: 100%; }
  .band { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 66px; }
  .band h2 { font-size: clamp(2.25rem, 8.5vw, 3.6rem); }

}
@media screen and (prefers-reduced-motion: no-preference) {
  :root {
    --parallax-copy: -19px;
    --parallax-photo: 30px;
    --parallax-cover: 42px;
  }
  .about-reveal { position: relative; z-index: 2; }
  :is(.service-film-frame .service-film-copy,
      .why-row > :is(.why-intro, .reasons), .sage-band .band > :is(h2, div)):not(:focus-within) {
    transform: translateY(calc(var(--parallax-progress, 0) * var(--parallax-copy)));
  }
  :is(.service-film-frame, .about) { overflow: clip; }
  /* Extend the cover media so its drift never exposes an edge of the frame. */
  .problem-media img {
    position: absolute;
    inset: calc(-1 * var(--parallax-cover)) 0 auto;
    height: calc(100% + 2 * var(--parallax-cover));
    translate: 0 calc(var(--parallax-progress, 0) * var(--parallax-cover));
  }
  .photo-stack-frame {
    translate: 0 calc(var(--parallax-progress, 0) * var(--parallax-photo));
  }
  .photo-stack-frame:last-child {
    translate: 0 calc(var(--parallax-progress, 0) * var(--parallax-photo) * .55);
  }
  @media (max-width: 700px) {
    :root {
      --parallax-copy: -10px;
      --parallax-photo: 16px;
      --parallax-cover: 22px;
    }
  }
  :is(.copy-appearance, .services-intro-copy.is-revealing) {
    --copy-reveal-ease: cubic-bezier(.22, 1, .36, 1);
  }
  .copy-appearance:not(:focus-within, :has(> .copy-line)) {
    animation: copy-mask 460ms var(--copy-reveal-ease) var(--appearance-delay, 0ms) backwards;
  }
  :is(.services-intro-copy, .about .benefits).is-pending { opacity: 0; }
  .about .benefits.is-revealing {
    --benefit-ease: cubic-bezier(.24, .72, .32, 1);
  }
  .benefits.is-revealing li:nth-child(2) { --benefit-delay: 55ms; }
  .benefits.is-revealing li:nth-child(3) { --benefit-delay: 110ms; }
  .benefits.is-revealing li:nth-child(4) { --benefit-delay: 165ms; }
  .benefits.is-revealing li:nth-child(5) { --benefit-delay: 220ms; }
  .benefits.is-revealing li:nth-child(6) { --benefit-delay: 275ms; }
  .benefits.is-revealing li + li::before {
    animation: about-divider-draw 650ms var(--benefit-ease) var(--benefit-delay, 0ms) backwards;
  }
  .benefits.is-revealing li > span {
    --appearance-distance: 7px;
    animation: copy-rise 560ms var(--benefit-ease) calc(var(--benefit-delay, 0ms) + 40ms) backwards;
  }
  .reasons.is-pending li > span { opacity: 0; }
  .reasons.is-revealing li:nth-child(2) { --reason-delay: 55ms; }
  .reasons.is-revealing li:nth-child(3) { --reason-delay: 110ms; }
  .reasons.is-revealing li:nth-child(4) { --reason-delay: 165ms; }
  .reasons.is-revealing li > span {
    animation: reason-slide-in 560ms cubic-bezier(.24, .72, .32, 1) var(--reason-delay, 0ms) backwards;
  }
  .services-intro-copy.is-revealing > .eyebrow {
    --appearance-distance: 5px;
    animation: copy-rise 340ms var(--copy-reveal-ease) backwards;
  }
  :is(.services-intro-copy.is-revealing, .copy-appearance:not(:focus-within)) .copy-line > span {
    --appearance-distance: 104%;
    animation: copy-rise 650ms var(--copy-reveal-ease) 35ms backwards;
  }
  :is(.services-intro-copy.is-revealing, .copy-appearance:not(:focus-within)) .copy-line + .copy-line > span {
    animation-delay: 105ms;
  }
  .services-intro-copy.is-revealing > p:last-child {
    --appearance-distance: 8px;
    animation: copy-rise 500ms var(--copy-reveal-ease) 190ms backwards;
  }
  :is(h2, h3).copy-appearance { --appearance-delay: 40ms; }
  p:not(.eyebrow).copy-appearance { --appearance-delay: 85ms; }
  :is(.more, .button).copy-appearance { --appearance-delay: 120ms; }
  .media-appearance:not(:focus-within) {
    animation: media-rise 640ms cubic-bezier(.22, 1, .36, 1) backwards;
  }
  .card-appearance-pending:not(:focus-within) { opacity: 0; }
  .card-appearance:not(:focus-within) {
    --card-reveal-ease: cubic-bezier(.22, 1, .36, 1);
    animation: problem-frame-open 760ms var(--card-reveal-ease) backwards;
  }
  .card-appearance:not(:focus-within) .problem-media img {
    animation: problem-photo-in 500ms var(--card-reveal-ease) 120ms backwards;
  }
  .card-appearance:not(:focus-within) .problem-copy > * {
    animation: copy-mask 480ms var(--card-reveal-ease) var(--card-copy-delay, 190ms) backwards;
  }
  .card-appearance .problem-copy > p { --card-copy-delay: 270ms; }
  .card-appearance .problem-copy > .more { --card-copy-delay: 330ms; }
  .button-arrow, :is(.more, .secondary)::after { transition: translate 180ms ease-out; }
  .button:focus-visible .button-arrow { translate: 3px 0; }
  :is(.more, .secondary):focus-visible::after { translate: 3px -2px; }
  .button:active { transform: scale(.96); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .button:hover .button-arrow { translate: 3px 0; }
  :is(.more, .secondary):hover::after { translate: 3px -2px; }
}
@keyframes copy-rise {
  from { opacity: 0; translate: 0 var(--appearance-distance, 14px); }
  to { opacity: 1; translate: 0 0; }
}
@keyframes about-divider-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes reason-slide-in {
  from { opacity: 0; translate: clamp(24px, 3vw, 44px) 0; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes copy-mask {
  from {
    opacity: 0;
    translate: 0 14px;
    clip-path: inset(-.15em -.35em calc(14px - .15em) -.35em);
  }
  to {
    opacity: 1;
    translate: 0 0;
    clip-path: inset(-.15em -.35em);
  }
}
@keyframes media-rise {
  from { opacity: 0; clip-path: inset(100% 0 0); }
  to { opacity: 1; clip-path: inset(0); }
}
@keyframes problem-frame-open {
  from { opacity: 0; clip-path: inset(0 0 95% round var(--problem-card-radius)); }
  to { opacity: 1; clip-path: inset(0 round var(--problem-card-radius)); }
}
@keyframes problem-photo-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* The original backgrounds are restored when the hero finishes or the section approaches. */
html.wait-for-hero .service-film-visual[data-bg-deferred],
html.wait-for-hero #gaine-ponctuelle .service-film-visual[data-bg-deferred],
html.wait-for-hero .services-bridge[data-bg-deferred]::before,
html.wait-for-hero .footer-brand[data-bg-deferred] {
  background-image: none;
}
