:root {
  color-scheme: dark;
  --ink: #0b1321;
  --panel: #121e30;
  --white: #f4f7fd;
  --soft: #afc0d7;
  --line: #303d50;
  --accent: #beebff;
  --header-row: 80px;
  --gutter: clamp(20px, 3.2vw, 64px);
  --section-spacing: clamp(52px, 7vw, 100px);
  --section-copy-size: clamp(1.1875rem, 1.6vw, 1.375rem);
  --reasons-extra-spacing: 50px;
  --shortcut-size: calc(62px * 2 / 3);
  --shortcut-inset: 30px;
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.55;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-row) + 1px); }
body { margin: 0; background: var(--ink); color: var(--white); }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
::selection { background-color: #b8e4f6; color: #0b1321; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #368bf1; outline-offset: 4px; }
figure, p, h1, h2, h3, ul { margin: 0; }
img { display: block; max-width: 100%; }
svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sprites { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: calc(100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 12px; transform: translateY(-150%); background: var(--white); color: var(--ink); }
.skip:focus { transform: none; }
section[id] { scroll-margin-block-start: 16px; }

.header { position: sticky; z-index: 6; top: 0; border-bottom: 1px solid transparent; background: var(--ink); }
.header.is-scrolled {
  background: #0b1321cc;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.header-inner {
  min-height: var(--header-row);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand {
  --logo-width: 116px;
  justify-self: start;
  width: var(--logo-width);
  height: calc(var(--logo-width) * 230 / 370);
  border-radius: 4px;
  overflow: clip;
}
.brand img { width: 100%; height: auto; }
.brand-logo { filter: url(#clean-brand-edge); }

.header-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.header-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #c7d4e7;
  font-size: 1rem;
  font-weight: 550;
  white-space: nowrap;
}
.header-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 6px;
  height: 1px;
  background: currentColor;
  opacity: 0;
}
.header-nav a:hover,
.header-nav a:focus-visible,
body:has(#servicii:target) .header-nav a[href="#servicii"],
body:has(#lucrari:target) .header-nav a[href="#lucrari"],
body:has(#zone:target) .header-nav a[href="#zone"] { color: var(--accent); }
.header-nav a:hover::after,
.header-nav a:focus-visible::after,
body:has(#servicii:target) .header-nav a[href="#servicii"]::after,
body:has(#lucrari:target) .header-nav a[href="#lucrari"]::after,
body:has(#zone:target) .header-nav a[href="#zone"]::after { opacity: 1; }

.header-socials { display: flex; justify-self: end; gap: 24px; margin-inline-end: -8px; }
.header-socials a { display: grid; place-items: center; width: 54px; height: 54px; }
.header-socials img { object-fit: contain; }
.header-call {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: #d1def0;
  font-size: .9375rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.header-call:hover, .header-call:focus-visible { color: var(--accent); }
.header-call-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #18273a;
  color: var(--accent);
}
.header-call-icon svg { width: 17px; height: 17px; }

.opening {
  display: flex;
  flex-direction: column;
  min-block-size: calc(100vh - var(--header-row) - 1px);
  min-block-size: calc(100dvh - var(--header-row) - 1px);
}
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  flex: 1;
  align-items: center;
  overflow: clip;
  background: #101c2a;
  --hero-shade: linear-gradient(90deg, #0b1321f2 0%, #0b1321c0 31%, #0b13212a 63%, transparent 85%);
  --hero-fade: linear-gradient(0deg, #102437, #102437ef 15%, #102437c8 30%, #10243780 50%, #10243737 70%, #1024370f 85%, #10243700);
}
.hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    var(--hero-fade) left bottom / 100% 31% no-repeat,
    var(--hero-shade);
}
.hero-layout { position: relative; z-index: 2; padding-block: clamp(32px, 6svh, 100px); }
.hero-copy { padding-block: 16px; }
h1, h2, h3 { line-height: 1.36; font-weight: 650; letter-spacing: -.045em; }
h1 { user-select: none; -webkit-user-select: none; max-width: 13ch; font-size: clamp(3.05rem, min(6.5vw, 11svh), 7.25rem); letter-spacing: -.064em; text-wrap: balance; }
h2 { font-size: clamp(2.25rem, 4.5vw, 4.3rem); text-wrap: balance; }
h3 { font-size: clamp(1.34rem, 2.2vw, 1.8rem); }
.hero-desc { margin-top: 24px; max-width: 34ch; color: var(--soft); font-size: clamp(1.25rem, 2vw, 1.75rem); text-wrap: pretty; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 12px 20px; font-weight: 700; font-variant-numeric: tabular-nums; color: #0a2037; background: var(--accent); border-radius: 6px; transition: background-color .15s ease-out; }
.button:hover { background: #e1f6ff; }
.call-primary { margin-top: 28px; min-height: 58px; padding-inline: 22px; font-size: 1.0625rem; }
.hero-photo {
  position: absolute;
  inset: 0;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 14%; }
@media (min-width: 701px) and (max-width: 1100px) {
  .hero-photo img { object-position: 64% 8%; }
  .hero { --hero-shade: linear-gradient(90deg, #0b1321f2, #0b1321c9 41%, #0b132136 80%); }
}

.service-area { position: relative; background: linear-gradient(180deg, #102437, #14283b); }
#zone {
  --zone-exit-gap: 64px;
  scroll-margin-block-start: calc(var(--zone-exit-gap) + 20px);
}
.service-area::before {
  position: absolute;
  inset: -2px 0 auto;
  height: 3px;
  background: #102437;
  content: "";
  pointer-events: none;
}
.area-layout { display: grid; grid-template-columns: max-content minmax(0,1fr); align-items: center; gap: 20px clamp(24px, 3.5vw, 56px); padding-block: clamp(20px, 3svh, 34px); }
.area-layout h2 { font-size: clamp(1.2rem, 1.75vw, 1.5rem); line-height: 1.3; letter-spacing: -.025em; }
.places { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 12px 0; padding: 0; list-style: none; color: #d4e2f5; font-size: clamp(1rem, 1.35vw, 1.1875rem); font-weight: 550; }
.places li { border-inline-start: 1px solid #3b516d; padding-inline: 4px; text-align: center; }
.places li:last-child { border-inline-end: 1px solid #3b516d; }

.section { padding-block: var(--section-spacing); }
.services {
  --service-line: #34495e;
  background: linear-gradient(180deg, #14283b, #172d42 48%, #111f30);
  color: var(--white);
  overflow: clip;
}
.service-layout { display: grid; grid-template-columns: .77fr 1.23fr; gap: clamp(32px, 7vw, 108px); }
.service-intro h2 { max-width: 13ch; }
.service-mark {
  --bolt-width: 34px;
  position: relative;
  display: block;
  width: var(--mark-width, 108px);
  height: 24px;
  margin-top: 24px;
  color: #aaddf8;
}
.service-rail, .service-bolt, .service-bolt::before {
  position: absolute;
}
.service-bolt::before {
  content: "";
}
.service-rail {
  top: 11px;
  left: 0;
  width: calc(100% - var(--bolt-width) + 8px);
  height: 2px;
  background: linear-gradient(90deg, transparent, currentColor min(74%, calc(100% - 8px)));
  transform-origin: left center;
}
.service-bolt {
  right: 0;
  top: -2px;
  width: var(--bolt-width);
  height: 28px;
}
.service-bolt::before {
  inset: 0;
  background: linear-gradient(90deg, currentColor 29%, #86ccff 54%, #409fff 77%, #1688ff 100%);
  clip-path: polygon(0 calc(50% - 1px), 29% calc(50% - 1px), 72% 0, 62% 39%, 100% 39%, 40% 100%, 49% 57%, 29% calc(50% + 1px), 0 calc(50% + 1px));
}
.service-list { border-top: 1px solid var(--service-line); }
.service-list article { padding-block: 24px; border-bottom: 1px solid var(--service-line); }
.service-list h3 { font-size: clamp(1.45rem, 2.15vw, 1.9rem); text-wrap: balance; }
.service-list p {
  color: #d3def0;
  margin-top: 8px;
  max-width: 51ch;
  font-size: var(--section-copy-size);
  line-height: 1.47;
  text-wrap: pretty;
}

.works {
  padding-block-start: calc(clamp(52px, 7vw, 100px) + 50px);
  background: linear-gradient(180deg, #111f30, #101d2b);
  overflow: clip;
}
.works-layout, .contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .42fr) minmax(0, 1fr);
  gap: clamp(24px, 4.5vw, 64px);
  align-items: start;
}
.works-intro :is(h2, h3) { font-size: clamp(2.15rem, 3.9vw, 3.75rem); text-wrap: initial; }
.works-intro p { margin-top: 16px; max-width: 33ch; color: var(--soft); font-size: var(--section-copy-size); line-height: 1.5; text-wrap: pretty; }

.works-layout-reversed { margin-top: clamp(48px, 7vw, 112px); }
@media (min-width: 701px) {
  .works-layout-reversed { grid-template-columns: minmax(0, 1fr) minmax(0, .42fr); }
  .works-layout-reversed .works-intro { grid-area: 1 / 2; }
  .works-layout-reversed .work-images { grid-area: 1 / 1; }
}
.works-layout-reversed .work-images img { object-position: center 56%; }

.work-images { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; }
.work-images figure { display: grid; grid-template-rows: clamp(220px, 29vw, 520px) auto; gap: 8px; }
.work-photo { display: block; background: var(--panel); overflow: hidden; border-radius: 4px; cursor: zoom-in; }
.work-photo img { width: 100%; height: 100%; object-fit: cover; }
.work-images figure:first-child img { object-position: center 32%; }
.work-images figure:last-child img { object-position: center 66%; }
.work-images figcaption { color: var(--soft); font-size: .9375rem; }
.close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 6px; border: 1px solid #b0c7e773; background: #0b1321e8; color: var(--white); }

.reasons {
  padding-block: calc(var(--section-spacing) + var(--reasons-extra-spacing));
  background: linear-gradient(180deg, #101d2b, #16283b 53%, #101d2b);
}
.reasons h2 { font-size: clamp(2rem, 3.8vw, 3.75rem); }
.reasons-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(24px, 5vw, 88px);
  margin-top: clamp(24px, 4vw, 52px);
  padding: 0;
  list-style: none;
}
.reasons-list h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }
.reasons-list p { margin-top: 8px; max-width: 44ch; color: var(--soft); font-size: clamp(1rem, 1.35vw, 1.125rem); }

.contact { background: linear-gradient(180deg, #101d2b, #142639); padding-bottom: calc(max(94px, 7vw) - 55px); }
.contact-copy h2 { max-width: 17ch; font-size: clamp(1.875rem, 3.1vw, 3.125rem); }
.contact-copy p { max-width: 36ch; margin-top: 12px; color: var(--soft); font-size: clamp(1.125rem, 1.45vw, 1.375rem); line-height: 1.5; text-wrap: pretty; }
p.section-copy { font-size: var(--section-copy-size); }
.call-final { margin-top: 24px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.contact-actions .call-final { margin-top: 0; }
.message-whatsapp { background: #25d366; }
.message-whatsapp:hover { background: #56e68b; }
@media (min-width: 701px) {
  .contact-layout:has(.contact-actions) { grid-template-columns: minmax(21rem, .42fr) minmax(0, 1fr); }
  .contact-actions { display: inline-grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 100%; }
}
.faq h3 { margin-bottom: 16px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
summary { position: relative; list-style: none; cursor: pointer; font-weight: 650; padding: 14px 40px 14px 0; border-radius: 2px; }
summary:hover { color: var(--accent); }
summary::-webkit-details-marker { display: none; }
summary::before, summary::after { content: ""; position: absolute; width: 12px; height: 1px; right: 12px; top: 50%; background: var(--accent); }
summary::after { transform: rotate(90deg); transition: transform .16s ease-out; }
details[open] summary::after { transform: rotate(0); }
.faq details p {
  padding: 0 0 14px;
  color: var(--soft);
}
@supports (interpolate-size: allow-keywords) {
  .faq details::details-content {
    interpolate-size: allow-keywords;
    display: flow-root;
    block-size: 0;
    overflow: clip;
    opacity: 0;
    transition: block-size .32s cubic-bezier(.24,.68,.3,1), opacity .25s ease, content-visibility .32s allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; opacity: 1; }
}
.mobile-call { display: none; }

.scroll-shortcut {
  position: fixed;
  z-index: 5;
  right: max(var(--shortcut-inset), env(safe-area-inset-right));
  bottom: max(var(--shortcut-inset), env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: var(--shortcut-size);
  height: var(--shortcut-size);
  border: 2px solid #95bde4;
  border-radius: 50%;
  background: #0b1321ee;
  color: var(--accent);
  opacity: .6;
}
.scroll-shortcut::before { content: ""; position: absolute; inset: -6px; border-radius: inherit; }
.scroll-shortcut:is(:hover, :focus-visible) { opacity: 1; }
.scroll-shortcut:hover { background: #20344d; }
.scroll-arrow { position: relative; width: 22px; height: 30px; scale: calc(2 / 3); }
.scroll-arrow::before,
.scroll-arrow-tip::before,
.scroll-arrow-tip::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  border-radius: 999px;
  background: currentColor;
}
.scroll-arrow::before { top: 2px; height: 25px; transform: translateX(-50%); }
.scroll-arrow-tip::before,
.scroll-arrow-tip::after { bottom: 3px; height: 13px; transform-origin: center bottom; }
.scroll-arrow-tip::before { transform: translateX(-50%) rotate(44deg); }
.scroll-arrow-tip::after { transform: translateX(-50%) rotate(-44deg); }
.scroll-shortcut[href="#sus"] .scroll-arrow { transform: rotate(180deg); }
.photo-dialog { max-width: min(94vw, 980px); max-height: 94dvh; padding: 0; background: var(--ink); color: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: auto; overscroll-behavior: contain; }
.photo-dialog::backdrop { background: #030814dd; }
.photo-view { position: relative; min-width: min(72vw, 270px); }
.photo-dialog img { margin: auto; max-height: 82dvh; width: auto; object-fit: contain; }
.close { position: absolute; right: 8px; top: 8px; cursor: pointer; }
.close:hover { background: var(--panel); }

@media (min-width: 1540px) {
  .service-layout { grid-template-columns: minmax(280px, .8fr) minmax(0, 2.2fr); gap: clamp(40px, 4vw, 96px); }
  .service-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(20px, 2.4vw, 56px); border-top: 0; }
  .service-list article { border-top: 1px solid var(--service-line); border-bottom: 0; }
}

@media (min-width: 701px) {
  .area-layout {
    min-block-size: 96px;
    padding-inline-end: max(0px, calc(104px - var(--gutter)));
  }
}

@media (max-width: 900px) {
  .area-layout { gap: 16px 28px; }
  .places { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .places li:nth-child(3n) { border-inline-end: 1px solid #3b516d; }
}
@media (max-width: 760px) {
  :root { --shortcut-size: calc(56px * 2 / 3); --shortcut-inset: 24px; }
}
@media (max-width: 700px) {
  #zone { --zone-exit-gap: 32px; }
  .contact { padding-bottom: 94px; }
  .scroll-shortcut:not(.scroll-shortcut-fixed) {
    bottom: max(var(--shortcut-inset), var(--zone-clearance, 0px), var(--call-clearance, 0px), env(safe-area-inset-bottom));
  }
  .mobile-call[data-visible] + .scroll-shortcut:not(.scroll-shortcut-fixed) { --call-clearance: calc(76px + env(safe-area-inset-bottom)); }
  html { scroll-padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  :root { --header-row: 72px; }
  :root:has(.header-socials) { --header-row: 100px; }
  .header-inner { grid-template-columns: auto 1fr; gap: 16px; }
  .header-inner:has(.header-socials) { grid-template-rows: 56px 44px; row-gap: 0; }
  .brand { --logo-width: 86px; }
  .header-nav { justify-content: end; gap: clamp(12px, 3.9vw, 24px); }
  .header-nav a { font-size: .875rem; }
  .header-call { display: none; }
  .header-socials { grid-area: 1 / 2; gap: 8px; }
  .header-socials a { width: 44px; height: 44px; }
  .header-socials img { width: 30px; height: 30px; }
  .header-inner:has(.header-socials) .header-nav { grid-area: 2 / 1 / 3 / -1; justify-content: center; }
  .hero { display: flex; flex-direction: column; justify-content: center; align-items: stretch; background: linear-gradient(0deg, #102437, #10243700 24%), linear-gradient(164deg, #0e1828, #192d41 64%, #102437); }
  .hero::after { display: none; }
  .hero-layout { order: -1; padding-block: clamp(20px, 3.7svh, 36px) 18px; }
  .hero-copy { padding: 0; }
  h1 { max-width: 14ch; font-size: clamp(2.65rem, 9.5vw, 4.3rem); text-wrap: initial; }
  .hero-desc { margin-top: 16px; }
  .call-primary { margin-top: 20px; }
  .hero-photo {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    block-size: clamp(132px, calc(100svh - 535px), 280px);
    mask-image: linear-gradient(180deg, transparent, black 11%);
  }
  .hero-photo::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background: var(--hero-fade) left bottom / 100% 23% no-repeat;
  }
  .hero-photo img { object-position: right 19%; }
  .area-layout { grid-template-columns: minmax(0,1fr); gap: 8px; padding-block: 16px 20px; }
  .places { row-gap: 8px; }
  .service-layout, .contact-layout, .works-layout, .reasons-list { grid-template-columns: minmax(0,1fr); }
  .contact-layout-faq-first {
    reading-flow: grid-rows;
    row-gap: calc(2 * var(--section-spacing) + var(--reasons-extra-spacing));
  }
  .contact-layout-faq-first .faq { grid-row: 1; }
  .contact-actions .button { gap: 8px; padding-inline: 10px; }
  .work-images { gap: 8px; }
  .work-images figure { grid-template-rows: clamp(156px, 49vw, 286px) auto; }
  .service-intro h2, .contact-copy h2 { max-width: none; text-wrap: initial; }
  .mobile-call {
    --mobile-call-height: 48px;
    display: flex;
    justify-content: center;
    position: fixed;
    z-index: 4;
    inset: auto 0 0;
    background: #0b1321f5;
    border-top: 1px solid var(--line);
    padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: transform .22s ease-out, opacity .22s ease-out, visibility .22s;
  }
  .mobile-call[data-visible] { opacity: 1; visibility: visible; transform: none; }
  .mobile-call:has(+ .scroll-shortcut-fixed) {
    background: transparent;
    border: 0;
    padding-block-end: calc(max(var(--shortcut-inset), env(safe-area-inset-bottom)) + (var(--shortcut-size) - var(--mobile-call-height)) / 2);
    padding-inline-end: calc(max(var(--shortcut-inset), env(safe-area-inset-right)) + var(--shortcut-size) + 12px);
    pointer-events: none;
  }
  .mobile-call .button { width: min(100%, 420px); min-height: var(--mobile-call-height); justify-content: start; padding-inline: 14px; }
  .mobile-call:has(+ .scroll-shortcut-fixed) .button { padding-block: 8px; pointer-events: auto; }
  .mobile-call span { margin-left: auto; }
}
@media (min-width: 701px) and (max-height: 660px) {
  h1 { font-size: clamp(2.65rem, 8svh, 4.5rem); }
  .hero-desc { margin-top: 16px; }
  .call-primary { margin-top: 20px; }
}
@media (max-width: 700px) and (max-height: 690px) {
  :root { --header-row: 60px; }
  .hero-layout { padding-block: 18px 14px; }
  h1 { font-size: clamp(2rem, 8.2vw, 2.65rem); }
  .hero-desc { line-height: 1.42; margin-top: 10px; }
  .call-primary { min-height: 47px; margin-top: 14px; padding-block: 8px; }
  .hero-photo { block-size: clamp(96px, 21svh, 156px); }
  .area-layout { gap: 8px; padding-block: 12px; }
  .places { row-gap: 4px; }
}

@media (max-width: 370px) {
  .header-inner { gap: 8px; }
  .brand { --logo-width: 74px; }
  .header-nav { gap: 10px; }
  .header-nav a { font-size: .8125rem; }
  .mobile-call .button { font-size: .875rem; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .header-socials a:hover img { transform: scale(1.12); }
}
@media (prefers-reduced-motion: no-preference) {
  .header-socials img { transition: transform .18s ease-out; }
  .header-socials a:focus-visible img { transform: scale(1.12); }
  .header-socials a:is(:active, [data-touch-pressed]) img { transform: translateY(1px) scale(.94); transition-duration: .09s; }
  .header-socials a[data-touch-pressed] img { transition-duration: 0s; }
  .hero-photo img { animation: frame-in .52s ease-out both; }
  .area-layout h2, .places li {
    --zone-step: 0;
    transition: opacity .76s cubic-bezier(.27,.62,.32,1), transform .76s cubic-bezier(.27,.62,.32,1);
  }
  .places li:nth-child(1) { --zone-step: 1; }
  .places li:nth-child(2) { --zone-step: 2; }
  .places li:nth-child(3) { --zone-step: 3; }
  .places li:nth-child(4) { --zone-step: 4; }
  .places li:nth-child(5) { --zone-step: 5; }
  .places li:nth-child(6) { --zone-step: 6; }
  .service-area[data-scroll-reveal="visible"] :is(h2, li) {
    transition-delay: calc(var(--zone-step) * 50ms);
  }
  .service-area[data-initial-reveal] :is(h2, li) {
    transition: none;
    animation: zone-opening .76s cubic-bezier(.27,.62,.32,1) backwards;
    animation-delay: calc(90ms + var(--zone-step) * 50ms);
  }
  @keyframes zone-opening {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: none; }
  }
  .service-area[data-scroll-reveal="hidden"] :is(h2, li) {
    opacity: 0;
    transform: translateY(5px);
    transition-delay: calc((6 - var(--zone-step)) * 30ms);
  }
  .service-area[data-exiting-at-header][data-scroll-reveal="hidden"] :is(h2, li) {
    transform: translateX(-24px);
  }

  .service-intro { --entry-offset: -40px; }
  .service-list { --entry-offset: 40px; }

  :is(.service-intro, .service-list)[data-scroll-reveal] {
    transition: opacity .98s ease-in-out, transform .98s cubic-bezier(.24,.68,.3,1);
  }
  :is(.service-intro, .service-list)[data-scroll-reveal="hidden"] {
    opacity: 0;
    transform: translateX(var(--entry-offset));
  }
  .works-layout {
    --works-slide: clamp(18px, 4vw, 64px);
    --works-direction: 1;
  }
  .works-layout-reversed { --works-direction: -1; }
  .works-intro { --works-side: -1; }
  .work-images { --works-side: 1; }
  .works-layout:is([data-scroll-reveal="visible"], [data-exiting-at-header]) > :is(.works-intro, .work-images) {
    transition: opacity .66s ease-out, transform .84s cubic-bezier(.24,.68,.3,1);
  }
  .works-layout[data-scroll-reveal="hidden"]:not(:focus-within) > :is(.works-intro, .work-images) {
    opacity: 0;
    transform: translateX(calc(var(--works-slide) * var(--works-direction) * var(--works-side)));
  }
  @keyframes frame-in { from { opacity: .72; transform: scale(1.035); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
