/* =========================================================
   CM Allround GmbH – stylesheet
   ========================================================= */

:root {
  --blue: #0AAADF;
  --blue-600: #0784B3;
  --blue-700: #066A91;
  --green: #9BC03B;
  --green-600: #7FA12A;
  --grey: #58595B;

  /* Always-dark "ink" sections (header, hero, gallery, footer) */
  --ink: #0B1620;
  --ink-2: #102030;
  --ink-3: #16293A;
  --ink-line: rgba(255, 255, 255, .12);
  --on-ink: #EEF3F6;
  --on-ink-mute: #A9B7C2;

  /* Theme-dependent surfaces */
  --bg: #F4F6F5;
  --bg-2: #FFFFFF;
  --surface: #FFFFFF;
  --line: #E1E6E8;
  --text: #0E1B25;
  --text-mute: #4D5B66;
  --accent-text: #066A91;
  --shadow: 0 1px 2px rgba(14, 27, 37, .06), 0 12px 32px -12px rgba(14, 27, 37, .18);
  --shadow-lg: 0 30px 80px -20px rgba(14, 27, 37, .35);
  --lm-grey: #58595B;

  --radius: 6px;
  --radius-lg: 14px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-brand: "Marcellus", Georgia, serif;
  color-scheme: light;
}

[data-theme="dark"] {
  --ink: #070E14;
  --ink-2: #0A1520;
  --ink-3: #102030;
  --bg: #0E1A24;
  --bg-2: #122230;
  --surface: #13242F;
  --line: #213542;
  --text: #E9EFF3;
  --text-mute: #A2B1BC;
  --accent-text: #3CC3F0;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 36px -14px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .7);
  --lm-grey: #8C9194;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 1px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
svg { width: 1em; height: 1em; flex: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--blue); color: #fff; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
@media (max-width: 600px) { .container { width: calc(100% - 32px); } }

.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--blue); color: var(--ink); padding: 10px 16px; border-radius: var(--radius); font-weight: 600; transition: top .2s; }
.skip:focus { top: 16px; }

.lm-grey { fill: var(--lm-grey); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--on-ink);
  clip-path: inset(0 0 0 0);
  animation: preOut .8s .75s var(--ease-in-out) forwards;
  pointer-events: none;
}
.no-pre .preloader, .no-js .preloader { display: none; }
@keyframes preOut { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
.preloader__inner { display: grid; justify-items: center; gap: 18px; }
.preloader__mark { width: 150px; height: 100px; --lm-grey: #8C9194; }
.preloader__mark .lm { transform-box: fill-box; transform-origin: left center; animation: stripe 1s var(--ease) both; }
.preloader__mark .s1 { animation-delay: .05s; } .preloader__mark .s2 { animation-delay: .12s; }
.preloader__mark .s3 { animation-delay: .19s; } .preloader__mark .s4 { animation-delay: .26s; }
.preloader__mark .s5 { animation-delay: .33s; transform-origin: center bottom; animation-name: roof; }
.preloader__mark .s6 { animation-delay: .4s; } .preloader__mark .s7 { animation-delay: .47s; }
@keyframes stripe { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes roof { from { transform: translateY(40px) scaleY(0); opacity: 0; } to { transform: none; opacity: 1; } }
.preloader__word { font-family: var(--font-brand); font-size: 28px; letter-spacing: .04em; color: var(--blue); animation: fadeUp .8s .45s var(--ease) both; }
.preloader__word span { color: var(--on-ink-mute); }
.preloader__bar { width: 160px; height: 2px; background: var(--ink-line); overflow: hidden; border-radius: 2px; }
.preloader__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--green)); animation: bar 1.1s .2s var(--ease-in-out) both; transform-origin: left; }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  color: var(--on-ink);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease), transform .5s var(--ease);
}
.header::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(11, 22, 32, .9);
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  opacity: 0; transition: opacity .4s var(--ease);
  border-bottom: 1px solid var(--ink-line);
}
.header.is-scrolled { --header-h: 66px; }
.header.is-scrolled::before { opacity: 1; }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { position: relative; height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__mark { width: 52px; height: 35px; --lm-grey: #8C9194; transition: transform .6s var(--ease); }
.brand:hover .brand__mark { transform: translateY(-2px) scale(1.04); }
.brand__text { display: grid; line-height: 1.05; }
.brand__name { font-family: var(--font-brand); font-size: 25px; letter-spacing: .02em; color: #fff; }
.brand__sub { font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--on-ink-mute); margin-top: 5px; }

.nav { position: relative; margin-left: auto; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link { display: block; padding: 10px 13px; font-size: 15px; color: var(--on-ink); opacity: .82; transition: opacity .25s, color .25s; white-space: nowrap; }
.nav__link:hover { opacity: 1; }
.nav__link.is-active { color: var(--blue); opacity: 1; }
.nav__indicator { position: absolute; bottom: 0; left: 0; height: 2px; width: 0; border-radius: 2px; background: linear-gradient(90deg, var(--blue), var(--green)); transition: transform .5s var(--ease), width .5s var(--ease); pointer-events: none; }

.header__tools { display: flex; align-items: center; gap: 6px; margin-left: 8px; }
.tool-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; min-width: 40px; padding: 0 10px; justify-content: center;
  border-radius: 999px; border: 1px solid var(--ink-line);
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  transition: background-color .25s, border-color .25s, transform .25s var(--ease);
}
.tool-btn:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); }
.tool-btn svg { width: 18px; height: 18px; }

.lang { position: relative; }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 10px);
  list-style: none; margin: 0; padding: 6px; min-width: 170px;
  background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 12px;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,.5);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right;
  transition: opacity .25s var(--ease), transform .35s var(--ease), visibility 0s .35s;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.lang__menu button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--on-ink); }
.lang__menu button small { color: var(--on-ink-mute); font-size: 11px; letter-spacing: .1em; }
.lang__menu button:hover, .lang__menu button.is-active { background: rgba(10, 170, 223, .14); }
.lang__menu button.is-active small { color: var(--blue); }

.theme-btn { position: relative; overflow: hidden; }
.theme-btn svg { transition: transform .6s var(--ease), opacity .4s; }
.theme-btn__moon { position: absolute; }
[data-theme="light"] .theme-btn__moon { transform: translateY(24px) rotate(-60deg); opacity: 0; }
[data-theme="dark"] .theme-btn__sun { transform: translateY(-24px) rotate(90deg); opacity: 0; }

.burger { display: none; width: 44px; height: 40px; position: relative; border-radius: 999px; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--blue); transition: transform .5s var(--ease), opacity .3s, top .5s var(--ease); }
.burger span:nth-child(1) { top: 13px; } .burger span:nth-child(2) { top: 19px; right: 17px; } .burger span:nth-child(3) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.burger[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

@media (max-width: 1199px) {
  .nav { display: none; }
  .burger { display: block; }
  .header__tools { margin-left: auto; }
}
@media (min-width: 1200px) and (max-width: 1320px) { .header .brand__sub { display: none; } }
@media (max-width: 520px) {
  .brand__sub { display: none; }
  .brand__name { font-size: 21px; }
  .brand__mark { width: 44px; height: 30px; }
  .lang__btn .lang__current { display: none; }
}

/* ---------- Fullscreen menu ---------- */
.menu { position: fixed; inset: 0; z-index: 90; pointer-events: none; visibility: hidden; color: var(--on-ink); transition: visibility 0s .8s; }
.menu.is-open { pointer-events: auto; visibility: visible; transition-delay: 0s; }
.menu__bg { position: absolute; inset: 0; background: var(--ink); clip-path: circle(0% at calc(100% - 44px) 38px); transition: clip-path .8s var(--ease-in-out); }
.menu.is-open .menu__bg { clip-path: circle(150% at calc(100% - 44px) 38px); }
.menu__inner { position: relative; height: 100%; display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 40px; padding-top: var(--header-h); }
.menu__list { list-style: none; padding: 0; margin: 0; counter-reset: m; }
.menu__list li { overflow: hidden; }
.menu__list a {
  display: flex; align-items: baseline; gap: 18px; padding: 6px 0;
  font-size: clamp(32px, 6vw, 60px); font-weight: 500; letter-spacing: -.02em; line-height: 1.15;
  transform: translateY(110%); transition: transform .7s var(--ease), color .3s;
}
.menu__list a::before { counter-increment: m; content: "0" counter(m); font-size: 13px; color: var(--green); letter-spacing: .1em; font-weight: 600; }
.menu__list a:hover { color: var(--blue); }
.menu.is-open .menu__list a { transform: none; }
.menu.is-open .menu__list li:nth-child(1) a { transition-delay: .25s; } .menu.is-open .menu__list li:nth-child(2) a { transition-delay: .3s; }
.menu.is-open .menu__list li:nth-child(3) a { transition-delay: .35s; } .menu.is-open .menu__list li:nth-child(4) a { transition-delay: .4s; }
.menu.is-open .menu__list li:nth-child(5) a { transition-delay: .45s; } .menu.is-open .menu__list li:nth-child(6) a { transition-delay: .5s; }
.menu__side { display: grid; gap: 8px; align-content: center; opacity: 0; transform: translateY(20px); transition: opacity .6s .5s, transform .8s .5s var(--ease); }
.menu.is-open .menu__side { opacity: 1; transform: none; }
.menu:not(.is-open) .menu__side { transition-delay: 0s; }
.menu__label { color: var(--on-ink-mute); font-size: 12px; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 6px; }
.menu__side a { font-size: 19px; }
.menu__side a:hover { color: var(--blue); }
.menu__addr { color: var(--on-ink-mute); margin-top: 8px; }
.menu__langs { display: flex; gap: 8px; margin-top: 18px; }
.menu__langs button { padding: 8px 12px; border: 1px solid var(--ink-line); border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.menu__langs button.is-active { background: var(--blue); color: var(--ink); border-color: var(--blue); }
@media (max-width: 760px) {
  .menu__inner { grid-template-columns: 1fr; align-content: center; gap: 28px; }
  .menu__side { border-top: 1px solid var(--ink-line); padding-top: 22px; }
}

/* ---------- Buttons ---------- */
.btn {
  --bh: 54px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--bh); padding: 0 28px;
  font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  border-radius: var(--radius); overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), color .35s, border-color .35s, background-color .35s;
}
.btn svg { width: 18px; height: 18px; transition: transform .45s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--sm { --bh: 42px; padding: 0 20px; font-size: 13px; letter-spacing: .03em; text-transform: none; }
.btn--primary { background: var(--blue); color: #04131C; box-shadow: 0 10px 30px -10px rgba(10, 170, 223, .65); }
.btn--primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, var(--blue), var(--green)); opacity: 0; transition: opacity .45s var(--ease); }
.btn--primary:hover::before { opacity: 1; }
.btn--primary:hover { box-shadow: 0 16px 40px -12px rgba(155, 192, 59, .6); }
.btn--ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn--outline { border: 1.5px solid var(--blue); color: var(--text); }
.btn--outline::before, .btn--outline-light::before, .btn--ghost-dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--blue);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.btn--outline:hover, .btn--outline-light:hover, .btn--ghost-dark:hover { color: #04131C; }
.btn--outline:hover::before, .btn--outline-light:hover::before, .btn--ghost-dark:hover::before { transform: scaleX(1); transform-origin: left; }
.btn--outline-light { border: 1.5px solid var(--blue); color: var(--on-ink); }
.btn--ghost-dark { border: 1.5px solid var(--ink-line); color: var(--on-ink); }
.btn:active { transform: scale(.97); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: max(640px, min(100vh, 980px)); min-height: max(640px, min(100svh, 980px));
  display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--ink);
  padding: calc(var(--header-h) + 40px) 0 140px;
}
.hero__media { position: absolute; inset: -6% 0 0; will-change: transform; }
.hero__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); animation: kenburns 22s ease-out both; }
body:not(.is-ready) .hero__img { animation-play-state: paused; }
@keyframes kenburns { from { transform: scale(1.18) translate3d(1%, 0, 0); } to { transform: scale(1.04) translate3d(-1%, -1%, 0); } }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 14, 20, .9) 0%, rgba(7, 14, 20, .72) 38%, rgba(7, 14, 20, .25) 70%, rgba(7, 14, 20, .35) 100%),
    linear-gradient(180deg, rgba(7, 14, 20, .55) 0%, transparent 25%, transparent 60%, rgba(7, 14, 20, .75) 100%);
}
.hero__content { position: relative; z-index: 2; }
.hero__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 14px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #DCE6EC; }
.hero__eyebrow i { width: 1px; height: 14px; background: var(--green); }
.hero__title { margin: 22px 0 26px; font-size: clamp(42px, 7.2vw, 88px); font-weight: 600; letter-spacing: -.025em; line-height: 1.02; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; transition: transform 1.2s var(--ease); }
.js .hero__title .line > span { transform: translateY(110%); }
.js .is-ready .hero__title .line > span { transform: none; }
.is-ready .hero__title .line:nth-child(2) > span { transition-delay: .12s; }
.grad { background: linear-gradient(95deg, #fff 0%, #fff 30%, #8EDBF7 60%, #C8E28A 100%); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: shimmer 8s ease-in-out 2 alternate; }
@keyframes shimmer { from { background-position: 0% 0; } to { background-position: 100% 0; } }
.hero__text { max-width: 540px; font-size: clamp(17px, 1.6vw, 20px); color: #DCE4EA; font-weight: 300; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.js .reveal-up { opacity: 0; transform: translateY(24px); }
.reveal-up { transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.js .is-ready .reveal-up { opacity: 1; transform: none; }
.is-ready .hero__eyebrow { transition-delay: 0s; }
.is-ready .hero__text { transition-delay: .35s; }
.is-ready .hero__cta { transition-delay: .5s; }

.header.is-scrolled ~ main .hero__scroll { opacity: 0; }
.hero__scroll { transition: opacity .5s; position: absolute; left: 50%; bottom: 96px; z-index: 3; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 20px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--blue); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@media (max-height: 720px), (max-width: 600px) { .hero__scroll { display: none; } }

.hero__mountains { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 120px; z-index: 2; }
.hero__mountains .m-back { fill: var(--ink-3); opacity: .7; }
.hero__mountains .m-front { fill: var(--ink-2); }

/* ---------- Features ---------- */
.features { background: var(--ink-2); color: var(--on-ink); padding: 26px 0 56px; position: relative; }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.feature { text-align: center; padding: 10px 26px; position: relative; }
.feature + .feature::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 10%; width: 1px; background: var(--ink-line); }
.feature__icon { width: 46px; height: 46px; color: var(--blue); margin: 0 auto 14px; transition: transform .6s var(--ease), color .4s; }
.feature:nth-child(even) .feature__icon { color: var(--green); }
.feature:hover .feature__icon { transform: translateY(-4px) rotate(-6deg) scale(1.08); }
.feature .feature__t { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.feature p { font-size: 15px; color: var(--on-ink-mute); max-width: 210px; margin-inline: auto; }
@media (max-width: 860px) {
  .features__grid { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .feature:nth-child(3)::before { display: none; }
}
@media (max-width: 460px) {
  .features__grid { grid-template-columns: 1fr; }
  .feature::before { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 110px) 0; position: relative; }
.section__head { text-align: center; margin-bottom: 44px; display: grid; justify-items: center; gap: 10px; }
.section__head h2 { font-size: clamp(30px, 4vw, 44px); }
.section__head p { color: var(--text-mute); font-size: 18px; }
.rule { display: block; width: 64px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--green)); }
.section__head .rule { transition: transform 1s .2s var(--ease); }
.js .section__head .rule { transform: scaleX(0); }
.js .section__head.is-in .rule { transform: none; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--green-600); }
[data-theme="dark"] .kicker { color: var(--green); }

/* ---------- Service cards ---------- */
.services { background: var(--bg); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; perspective: 1400px; }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), background-color .5s;
  transform-style: preserve-3d; cursor: pointer;
}
.card:hover { box-shadow: var(--shadow-lg); }
.card__media { aspect-ratio: 16 / 8.5; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.card:hover .card__media img { transform: scale(1.08); }
.card__badge {
  position: relative; margin: -34px auto 0; width: 76px; height: 38px;
  display: grid; place-items: end center; padding-bottom: 2px;
  background: var(--surface); clip-path: polygon(50% 0, 100% 100%, 0 100%); transition: background-color .5s;
}
.card__badge svg { width: 32px; height: 32px; color: var(--blue-600); transform: translateY(4px); transition: transform .6s var(--ease); }
[data-theme="dark"] .card__badge svg { color: var(--blue); }
.card:hover .card__badge svg { transform: translateY(-2px) scale(1.1); }
.card__body { flex: 1; text-align: center; padding: 10px 26px 30px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.card__body .btn { margin-top: auto; }
.card__body h3 { font-size: 22px; font-weight: 600; }
.card__body p { color: var(--text-mute); font-size: 15.5px; max-width: 290px; margin-bottom: 10px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* ---------- Process ---------- */
.process { color: var(--on-ink); overflow: hidden; background: var(--ink); }
.process__bg { position: absolute; inset: -15% 0; will-change: transform; }
.process__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.6) brightness(.55) contrast(1.1); }
.process__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,14,20,.65), rgba(7,14,20,.4) 45%, var(--ink)); }
.process__inner { position: relative; display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: center; }
.process__intro h2 { font-size: clamp(30px, 4vw, 46px); margin: 12px 0 16px; }
.process__intro p:last-child { color: #CBD6DE; font-size: 18px; font-weight: 300; }
.process .kicker { color: var(--green); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.step {
  padding: 26px; border-radius: var(--radius-lg);
  background: rgba(16, 32, 48, .55); border: 1px solid var(--ink-line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .6s var(--ease), border-color .4s, background-color .4s;
}
.step:hover { transform: translateY(-6px); border-color: rgba(10, 170, 223, .5); background: rgba(16, 32, 48, .75); }
.step__n { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .1em; background: linear-gradient(90deg, var(--blue), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--on-ink-mute); font-size: 15px; }
@media (max-width: 900px) { .process__inner { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.gallery { background: var(--ink); color: var(--on-ink); padding-top: 60px; }
.section__head--dark { margin-bottom: 34px; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -8px 0 30px; }
.filters[hidden] { display: none; }
.filters:not([hidden]) { animation: fadeUp .6s var(--ease) both; }
.filter { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--ink-line); font-size: 14px; color: var(--on-ink-mute); transition: all .3s var(--ease); }
.filter:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.filter.is-active { background: var(--blue); border-color: var(--blue); color: #04131C; font-weight: 600; }
.grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; cursor: zoom-in;
  background: var(--ink-3); isolation: isolate;
}
.tile.is-entering { animation: tileIn .7s var(--ease) both; }
.tile.is-leaving { animation: tileOut .3s var(--ease-in-out) both; pointer-events: none; }
@keyframes tileIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes tileOut { to { opacity: 0; transform: scale(.97); } }
/* skeleton shimmer until the photo has loaded */
.tile::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(100deg, transparent 25%, rgba(255,255,255,.08) 50%, transparent 75%); transform: translateX(-100%); animation: skeleton 1.3s linear infinite; transition: opacity .5s; }
.tile.is-loaded::before { opacity: 0; animation: none; }
@keyframes skeleton { to { transform: translateX(100%); } }
.tile img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: blur(10px); transform: scale(1.06); transition: opacity .7s var(--ease), filter .8s var(--ease), transform 1s var(--ease); }
.tile.is-loaded img { opacity: 1; filter: none; transform: none; }
.no-js .tile img, .tile.is-loaded img { opacity: 1; filter: none; transform: none; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, transparent 45%, rgba(7,14,20,.85)); opacity: 0; transition: opacity .5s var(--ease); }
.tile__cap { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 3; display: flex; justify-content: space-between; align-items: end; transform: translateY(12px); opacity: 0; transition: all .5s var(--ease); font-size: 15px; font-weight: 500; }
.tile__cap small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.tile.is-loaded:hover img, .tile.is-loaded:focus-visible img { transform: scale(1.08); }
.tile:hover::after, .tile:focus-visible::after { opacity: 1; }
.tile:hover .tile__cap, .tile:focus-visible .tile__cap { transform: none; opacity: 1; }
.gallery__more { display: flex; justify-content: center; margin-top: 30px; }
.gallery.is-expanded .grid { grid-auto-rows: clamp(150px, 16vw, 220px); grid-auto-flow: dense; }
.gallery.is-expanded .tile { aspect-ratio: auto; height: 100%; }
.gallery.is-expanded .g-big { grid-column: span 2; grid-row: span 2; }
.gallery.is-expanded .g-big.g-r { grid-column: 3 / span 2; }
.gallery.is-expanded .g-wide { grid-column: span 2; }
.gallery.is-expanded .g-tall { grid-column: span 2; grid-row: span 2; }
.gallery.is-expanded .g-full { grid-column: 1 / -1; grid-row: span 2; }
.gallery__note { text-align: center; color: var(--on-ink-mute); font-size: 12.5px; margin-top: 16px; }
@media (max-width: 900px) {
  .grid, .gallery.is-expanded .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery.is-expanded .grid { grid-auto-rows: 38vw; }
  .gallery.is-expanded .g-big, .gallery.is-expanded .g-big.g-r, .gallery.is-expanded .g-tall, .gallery.is-expanded .g-full, .gallery.is-expanded .g-wide { grid-column: 1 / -1; grid-row: span 1; }
  .tile__cap { opacity: 1; transform: none; font-size: 13px; }
  .tile::after { opacity: .8; }
}

/* ---------- Contact ---------- */
.contact { background: var(--bg); padding-top: 60px; }
.contact .section__head { margin-bottom: 38px; }
.contact__items { display: grid; grid-template-columns: repeat(3, 1fr); }
.citem { display: flex; gap: 18px; padding: 8px 30px; align-items: flex-start; position: relative; justify-content: center; }
.citem + .citem::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line); }
.citem__icon {
  width: 58px; height: 58px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-600)); color: #fff;
  box-shadow: 0 10px 24px -8px rgba(10, 170, 223, .6);
  transition: transform .6s var(--ease);
}
.citem:nth-child(2) .citem__icon { background: linear-gradient(135deg, var(--green), var(--green-600)); box-shadow: 0 10px 24px -8px rgba(155, 192, 59, .6); }
.citem:hover .citem__icon { transform: rotate(-10deg) scale(1.06); }
.citem__icon svg { width: 25px; height: 25px; }
.citem__label { font-size: 14px; color: var(--text-mute); }
.citem__value { display: block; font-size: 19px; font-weight: 600; line-height: 1.35; transition: color .25s; width: fit-content; }
.citem__value:hover { color: var(--accent-text); }
.citem__value--2 { font-size: 16px; font-weight: 500; color: var(--text-mute); }
.citem__hint { font-size: 13.5px; color: var(--text-mute); margin-top: 4px; }
@media (max-width: 900px) {
  .contact__items { grid-template-columns: 1fr; gap: 22px; max-width: 420px; margin-inline: auto; }
  .citem { justify-content: flex-start; padding: 0; }
  .citem::before { display: none; }
}

.contact__panel {
  margin-top: 60px; display: grid; grid-template-columns: .85fr 1.4fr;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.contact__aside {
  position: relative; padding: 44px; color: var(--on-ink); overflow: hidden;
  background:
    radial-gradient(120% 90% at 0% 100%, rgba(155, 192, 59, .25), transparent 55%),
    radial-gradient(120% 90% at 100% 0%, rgba(10, 170, 223, .3), transparent 55%),
    var(--ink-2);
  display: grid; align-content: end; gap: 14px; min-height: 360px;
}
.contact__mark { position: absolute; left: 44px; top: 44px; width: 96px; height: 64px; --lm-grey: #8C9194; animation: floaty 6s ease-in-out infinite; }
.contact__aside::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 340px; height: 340px; border-radius: 50%; border: 1px solid var(--ink-line); box-shadow: 0 0 0 40px rgba(255,255,255,.015), 0 0 0 80px rgba(255,255,255,.012); pointer-events: none; }
@keyframes floaty { 50% { transform: translateY(-6px); } }
.contact__aside h3 { font-size: 28px; }
.contact__aside p { color: #C7D3DC; font-weight: 300; }
.contact__aside .btn { justify-self: start; margin-top: 10px; }
.form { padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px;
  padding: 24px 16px 9px; outline: none; resize: vertical;
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%230AAADF' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.field select option { background: var(--surface); color: var(--text); }
.field label { position: absolute; left: 17px; top: 17px; font-size: 16px; color: var(--text-mute); pointer-events: none; transform-origin: left top; transition: transform .3s var(--ease), color .3s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(10, 170, 223, .15); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field--select label { transform: translateY(-10px) scale(.75); color: var(--accent-text); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #E5484D; }
.field.is-invalid label { color: #E5484D; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-mute); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box { flex: none; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line); display: grid; place-items: center; background: var(--bg); transition: all .3s var(--ease); margin-top: 1px; }
.check__box svg { width: 15px; height: 15px; color: #04131C; transform: scale(0); transition: transform .35s var(--ease); }
.check input:checked + .check__box { background: var(--green); border-color: var(--green); }
.check input:checked + .check__box svg { transform: scale(1); }
.check input:focus-visible + .check__box { box-shadow: 0 0 0 4px rgba(10, 170, 223, .25); }
.check.is-invalid .check__box { border-color: #E5484D; }
.form__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form__status { font-size: 14.5px; }
.form__status.is-ok { color: var(--green-600); } .form__status.is-err { color: #E5484D; }
[data-theme="dark"] .form__status.is-ok { color: var(--green); }
.btn.is-loading { pointer-events: none; }
.btn.is-loading span { opacity: .4; }
.btn.is-loading svg { animation: spinArrow 1s linear infinite; }
@keyframes spinArrow { 0% { transform: translateX(0); opacity: 1; } 50% { transform: translateX(10px); opacity: 0; } 51% { transform: translateX(-10px); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }
@media (max-width: 900px) {
  .contact__panel { grid-template-columns: 1fr; }
  .contact__aside { min-height: 0; padding: 124px 34px 34px; }
  .contact__mark { left: 34px; top: 34px; }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; padding: 26px 20px; }
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--on-ink-mute); border-top: 1px solid var(--ink-line); padding: 30px 0; font-size: 14px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.brand--footer .brand__name { font-size: 19px; }
.brand--footer .brand__mark { width: 42px; height: 28px; }
.brand--footer .brand__sub { text-transform: none; letter-spacing: .02em; font-size: 13px; }
.footer__links { display: flex; align-items: center; gap: 20px; }
.footer__links button:hover { color: var(--blue); }
.to-top { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--ink-line); color: var(--on-ink); transition: all .4s var(--ease); }
.to-top:hover { background: var(--blue); color: var(--ink); border-color: var(--blue); transform: translateY(-3px); }
.to-top svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .footer__inner { flex-direction: column; text-align: center; } }

/* ---------- Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 150; visibility: hidden; overflow: hidden; transition: visibility 0s .7s; }
.drawer.is-open { visibility: visible; transition-delay: 0s; }
.drawer__backdrop, .modal__backdrop { position: absolute; inset: 0; background: rgba(4, 10, 15, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .5s var(--ease); }
.drawer.is-open .drawer__backdrop, .modal.is-open .modal__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); max-width: 100vw;
  background: var(--surface); color: var(--text); overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); transition: transform .7s var(--ease);
  box-shadow: -30px 0 80px -20px rgba(0,0,0,.4);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__close { position: absolute; right: 16px; top: 16px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(7, 14, 20, .55); color: #fff; backdrop-filter: blur(6px); transition: transform .4s var(--ease), background-color .3s; }
.drawer__close:hover { transform: rotate(90deg); background: var(--blue); color: var(--ink); }
.drawer__close svg { width: 20px; height: 20px; }
.drawer__media { aspect-ratio: 16 / 8; overflow: hidden; background: var(--ink-3); }
.drawer__media img { width: 100%; max-width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.4s var(--ease), opacity .4s; }
.drawer.is-open .drawer__media img { transform: none; }
.drawer__body { padding: 32px 36px 40px; display: grid; gap: 14px; }
.drawer__body > * { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.drawer.is-open .drawer__body > * { opacity: 1; transform: none; }
.drawer.is-open .drawer__body > :nth-child(2) { transition-delay: .25s; } .drawer.is-open .drawer__body > :nth-child(3) { transition-delay: .3s; }
.drawer.is-open .drawer__body > :nth-child(4) { transition-delay: .35s; } .drawer.is-open .drawer__body > :nth-child(5) { transition-delay: .4s; }
.drawer.is-open .drawer__body > :nth-child(1) { transition-delay: .2s; }
.drawer__body h2 { font-size: 34px; }
.drawer__lead { color: var(--text-mute); font-size: 17px; }
.drawer__list { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 10px; }
.drawer__list li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: 15.5px; }
.drawer__list svg { width: 20px; height: 20px; color: var(--green-600); padding: 3px; border-radius: 50%; background: rgba(155, 192, 59, .18); }
[data-theme="dark"] .drawer__list svg { color: var(--green); }
.drawer__cta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.drawer__nav { display: flex; gap: 8px; }
.drawer__nav .tool-btn { border-color: var(--line); }
.drawer__nav .tool-btn:hover { background: var(--bg); border-color: var(--blue); }
.drawer.is-swapping .drawer__body > *, .drawer.is-swapping .drawer__media img { opacity: 0; transform: translateY(10px); transition-delay: 0s !important; transition-duration: .25s; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 160; display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; background: rgba(4, 9, 13, .94); opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s .45s; }
.lightbox.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.lightbox__fig { margin: 0; display: grid; justify-items: center; gap: 14px; transform: scale(.94); transition: transform .6s var(--ease); }
.lightbox.is-open .lightbox__fig { transform: none; }
.lightbox__fig img { max-width: 100%; max-height: calc(100vh - 140px); max-height: calc(100svh - 140px); border-radius: 6px; box-shadow: 0 40px 100px -30px #000; transition: opacity .3s, transform .5s var(--ease); }
.lightbox__fig img.is-changing { opacity: 0; transform: translateX(var(--dx, 30px)); }
.lightbox figcaption { display: flex; gap: 20px; color: var(--on-ink); font-size: 15px; }
.lightbox figcaption #lbCount { color: var(--on-ink-mute); font-variant-numeric: tabular-nums; }
.lightbox__close { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 1px solid var(--ink-line); transition: transform .4s var(--ease), background-color .3s; }
.lightbox__close:hover { transform: rotate(90deg); background: var(--blue); color: var(--ink); }
.lightbox__close svg, .lightbox__arrow svg { width: 22px; height: 22px; }
.lightbox__arrow { justify-self: center; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 1px solid var(--ink-line); transition: background-color .3s, transform .4s var(--ease); }
.lightbox__arrow:hover { background: var(--blue); color: var(--ink); }
@media (max-width: 700px) {
  .lightbox { grid-template-columns: 1fr; padding: 16px; }
  .lightbox__arrow { position: absolute; bottom: 24px; }
  .lightbox__arrow--prev { left: calc(50% - 64px); } .lightbox__arrow--next { right: calc(50% - 64px); }
  .lightbox__fig img { max-height: calc(100vh - 200px); max-height: calc(100svh - 200px); }
}

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 170; display: grid; place-items: center; padding: 16px; visibility: hidden; transition: visibility 0s .5s; }
.modal.is-open { visibility: visible; transition-delay: 0s; }
.modal__box { position: relative; width: min(640px, 100%); max-height: 85vh; max-height: 85svh; overflow-y: auto; background: var(--surface); color: var(--text); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(30px) scale(.97); transition: opacity .4s var(--ease), transform .6s var(--ease); }
.modal.is-open .modal__box { opacity: 1; transform: none; }
.modal__box .drawer__close { background: var(--bg); color: var(--text); }
.modal__box h2 { font-size: 28px; margin-bottom: 18px; }
.modal__box h3 { font-size: 16px; margin: 18px 0 4px; }
.modal__box p { color: var(--text-mute); font-size: 15.5px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 250; transform: translate(-50%, 140%); background: var(--ink-2); color: var(--on-ink); border: 1px solid var(--ink-line); padding: 12px 20px; border-radius: 999px; font-size: 14.5px; box-shadow: 0 20px 50px -10px rgba(0,0,0,.5); transition: transform .6s var(--ease), visibility 0s .6s; max-width: calc(100% - 32px); visibility: hidden; }
.toast.is-show { transform: translate(-50%, 0); visibility: visible; transition-delay: 0s; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); }
.reveal { transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.card.reveal.is-in { transition: opacity 1s var(--ease), transform .6s var(--ease), box-shadow .6s var(--ease), background-color .5s; transition-delay: var(--d, 0s), 0s, 0s, 0s; }

/* ---------- Theme switch transition ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 999; }
.theme-fade, .theme-fade * { transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease) !important; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .preloader { display: none; }
  .js .reveal, .js .reveal-up { opacity: 1; transform: none; }
  .js .hero__title .line > span { transform: none; }
}

/* ---------- QA fixes ---------- */
html { scrollbar-gutter: stable; }
.field.is-invalid input + label, .field.is-invalid textarea + label { color: #E5484D; }
.btn:disabled { opacity: .7; cursor: progress; }
.lightbox { touch-action: pan-y pinch-zoom; overscroll-behavior: contain; }

/* ---------- Visual QA fixes ---------- */
/* phones: keep the burger on screen; language + theme move into the menu */
@media (max-width: 400px) {
  .header__inner { gap: 10px; }
  .header__tools .theme-btn, .header__tools .lang { display: none; }
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.menu__theme { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 16px; border: 1px solid var(--ink-line); border-radius: 999px; font-size: 14px; width: fit-content; min-height: 44px; }
.menu__theme svg { width: 18px; height: 18px; }
/* fullscreen menu scrolls when taller than the screen */
.menu { overflow-y: auto; overscroll-behavior: contain; }
.menu__inner { min-height: 100%; height: auto; padding-bottom: 40px; }
@media (max-width: 760px) { .menu__inner { align-content: start; padding-top: calc(var(--header-h) + 24px); } }
/* header never hides while something inside it has focus */
.header:focus-within { transform: none; }
/* tap targets */
.tool-btn { height: 44px; min-width: 44px; }
.burger { height: 44px; }
.footer__links button { min-height: 44px; padding: 0 4px; }
.to-top { width: 44px; height: 44px; }
.citem__value { min-height: 28px; }
/* footer address stays visible on phones */
@media (max-width: 520px) { .footer .brand__sub { display: block; } }
/* feature titles line up even when one wraps */
@media (min-width: 861px) { .feature .feature__t { min-height: 2.3em; display: flex; align-items: flex-end; justify-content: center; } }
/* contrast (WCAG AA) */
.kicker { color: #5C7A12; }
.field input:not(:focus), .field textarea:not(:focus), .field select:not(:focus) { border-color: #9AA7AF; }
[data-theme="dark"] .field input:not(:focus), [data-theme="dark"] .field textarea:not(:focus), [data-theme="dark"] .field select:not(:focus) { border-color: #3C566A; }
.check__box { border-color: #9AA7AF; }
[data-theme="dark"] .check__box { border-color: #3C566A; }
.field.is-invalid input, .field.is-invalid textarea, .check.is-invalid .check__box { border-color: #C9272D; }
.field.is-invalid input + label, .field.is-invalid textarea + label, .field.is-invalid label, .form__status.is-err { color: #C9272D; }
[data-theme="dark"] .field.is-invalid input + label, [data-theme="dark"] .field.is-invalid textarea + label, [data-theme="dark"] .form__status.is-err { color: #FF7B7F; }
.btn--outline { border-color: var(--blue-600); }
:root { --focus: #066A91; } [data-theme="dark"] { --focus: #3CC3F0; }
:focus-visible { outline-color: var(--focus); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.check input:focus-visible + .check__box { outline: 2px solid var(--focus); outline-offset: 2px; }
.tile::after { background: linear-gradient(180deg, transparent 35%, rgba(7,14,20,.9)); }
.tile__cap small { color: #C8E28A; }
@media (max-width: 900px) { .tile::after { opacity: 1; } }
/* hero readability on phones/tablets + height */
@media (max-width: 900px) {
  .hero__shade { background: linear-gradient(180deg, rgba(7,14,20,.72), rgba(7,14,20,.58) 45%, rgba(7,14,20,.88)); }
  .hero__text { text-shadow: 0 1px 12px rgba(0,0,0,.45); }
  .hero { min-height: min(86svh, 780px); }
}
@media (max-width: 600px) {
  .hero__eyebrow { font-size: 12px; gap: 10px; letter-spacing: .1em; }
  .hero__cta .btn { flex: 1 1 100%; }
}
.hero__scroll { bottom: 140px; }
/* long phone numbers never break */
.citem__value, .menu__side a[href^="tel"], .footer a[href^="tel"], .citem__hint { white-space: nowrap; }
/* drawer CTA may wrap in long languages */
.drawer__cta .btn { height: auto; min-height: var(--bh); padding-block: 10px; white-space: normal; text-align: left; }
@media (max-width: 420px) { .drawer__body { padding: 26px 22px 32px; } }
/* floors card: show the floor, not the wall */
.card[data-service="floors"] .card__media img { object-position: center 78%; }
/* consistent section rhythm + balanced headings */
.gallery, .contact { padding-top: clamp(72px, 9vw, 110px); }
.features { padding-bottom: 40px; }
h1, h2, h3, .section__head p { text-wrap: balance; }

/* Round 3 */
/* menu background stays put while the menu content scrolls */
.menu__bg { position: fixed; }
/* no dark/light seam in the scrollbar gutter while the menu is open */
html:has(.menu.is-open) { background: var(--ink); }
/* buttons may wrap in long languages instead of squeezing */
.btn { height: auto; min-height: var(--bh); padding-block: 8px; }
/* without JS: hide controls that need JS; legal links still work */
.no-js #moreBtn, .no-js [data-open-service], .no-js .filters, .no-js #vcardBtn, .no-js .burger, .no-js .theme-btn, .no-js .lang { display: none; }
.footer__links a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px; }
.footer__links a:hover { color: var(--blue); }
/* endless animations only run while their section is on screen (battery) */
.is-offscreen *, .is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }

/* ---------- Before / after ---------- */
.ba-sec { background: var(--bg); }
.ba__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -8px 0 26px; }
.ba-tab { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; transition: all .3s var(--ease); }
.ba-sec .ba-tab { color: var(--text-mute); border-color: var(--line); }
.ba-sec .ba-tab:hover { color: var(--text); border-color: var(--line-2, var(--blue)); }
.ba-sec .ba-tab.is-active { background: var(--blue); border-color: var(--blue); color: #04131C; font-weight: 600; }
.ba {
  position: relative; margin: 0 auto;
  aspect-ratio: var(--ar, 16 / 10);
  max-width: min(1000px, calc(80vh * var(--ar, 1.6))); overflow: hidden; border-radius: var(--radius-lg);
  background: var(--ink-3); box-shadow: var(--shadow-lg);
  user-select: none; touch-action: pan-y; cursor: ew-resize;
}
.ba img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; display: block; }
.ba__after { position: absolute; inset: 0; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba.is-swapping img { opacity: 0; transition: opacity .25s; }
.ba img { transition: opacity .4s var(--ease); }
.ba__tag {
  position: absolute; top: 18px; z-index: 3; padding: 7px 15px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(7, 14, 20, .68); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.ba__tag--l { left: 18px; } .ba__tag--r { right: 18px; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; z-index: 4; }
.ba__handle span {
  position: absolute; top: 50%; left: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px;
  border-radius: 50%; background: #fff; color: #04131C; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35); transition: transform .4s var(--ease); cursor: grab;
}
.ba__handle svg { width: 17px; height: 17px; }
.ba:hover .ba__handle span { transform: scale(1.08); }
.ba__handle:focus-visible { outline: none; }
.ba__handle:focus-visible span { outline: 3px solid var(--focus); outline-offset: 3px; transform: scale(1.08); }
.ba__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 34px 20px 14px;
  text-align: center; color: #fff; font-size: 14.5px;
  background: linear-gradient(transparent, rgba(7, 14, 20, .8));
}
@media (max-width: 700px) {
  .ba { max-width: 100%; border-radius: var(--radius); }
  .ba__tag { top: 12px; font-size: 10.5px; padding: 6px 12px; }
  .ba__tag--l { left: 12px; } .ba__tag--r { right: 12px; }
  .ba__handle span { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
}

/* ---------- Mobile pass ---------- */
/* no tap flash, no 300 ms delay, no accidental text zoom on rotate */
html { -webkit-text-size-adjust: 100%; }
a, button, label, summary, [role="slider"] { -webkit-tap-highlight-color: rgba(10, 170, 223, .18); touch-action: manipulation; }
/* notch / rounded corners */
.container { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.header__inner { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.toast { margin-bottom: env(safe-area-inset-bottom); }

@media (max-width: 760px) {
  /* a hero that fits the screen: content visible without scrolling */
  .hero { min-height: min(92svh, 720px); padding: calc(var(--header-h) + 26px) 0 96px; }
  .hero__title { font-size: clamp(34px, 10.5vw, 46px); margin: 16px 0 18px; }
  .hero__text { font-size: 16.5px; }
  .hero__eyebrow { font-size: 13px; gap: 8px; letter-spacing: .08em; }
  .hero__cta { margin-top: 26px; gap: 10px; }
  .hero__mountains { height: 70px; }
  .header { --header-h: 64px; }
  .header.is-scrolled { --header-h: 58px; }

  /* tighter vertical rhythm – less endless scrolling */
  .section { padding: 64px 0; }
  .features { padding: 22px 0 34px; }
  .gallery, .contact { padding-top: 64px; }
  .section__head { margin-bottom: 30px; }
  .section__head h2 { font-size: clamp(26px, 7.4vw, 34px); }
  .section__head p { font-size: 16.5px; }

  /* readable text on small screens */
  .card__body p, .step p, .citem__hint, .form__status, .check { font-size: 15px; }
  .gallery__note { font-size: 13px; }
  .tile__cap { font-size: 13px; }
  .tile__cap small { font-size: 11.5px; }
  .footer, .footer__copy { font-size: 14.5px; }

  /* comfortable tap targets (Apple/Google minimum is 44 px) */
  .citem__value { min-height: 44px; display: flex; align-items: center; }
  .citem__value--2 { margin-top: -4px; }
  .brand, .brand--footer { min-height: 44px; }
  .footer__links button, .footer__links a { min-height: 44px; }
  .filter, .ba-tab { min-height: 44px; padding: 10px 18px; font-size: 14.5px; }
  .lang__menu button { padding: 12px 14px; }
  .menu__side a { min-height: 44px; display: flex; align-items: center; }

  /* forms: 16 px keeps iOS from zooming in on focus */
  .field input, .field textarea, .field select { font-size: 16px; padding: 24px 14px 9px; }
  .form { gap: 14px; }
  .check__box { width: 26px; height: 26px; }

  /* before / after: full width, bigger grab area */
  .ba { max-width: 100%; }
  .ba__handle { width: 44px; margin-left: -22px; background: transparent; }
  .ba__handle::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; }
  .ba__cap { font-size: 13.5px; padding: 26px 14px 12px; }

  /* cards a bit more compact */
  .card__media { aspect-ratio: 16 / 10; }
  .card__body { padding: 8px 20px 26px; }
  .cards { gap: 18px; }
}

/* very small phones */
@media (max-width: 380px) {
  .container { width: calc(100% - 26px); }
  .hero__cta .btn, .contact__aside .btn { width: 100%; }
  .btn { padding: 0 20px; font-size: 13.5px; }
  .section__head h2 { font-size: 25px; }
  .feature p { max-width: none; }
}

/* landscape phones: keep the hero usable when the screen is only ~390 px tall */
@media (max-height: 450px) and (orientation: landscape) {
  .hero { min-height: 100svh; padding-top: calc(var(--header-h) + 12px); padding-bottom: 40px; }
  .hero__title { font-size: clamp(26px, 6vw, 38px); margin: 10px 0 10px; }
  .hero__text { display: none; }
  .hero__mountains { height: 46px; }
  .menu__inner { padding-top: calc(var(--header-h) + 10px); }
  .menu__list a { font-size: clamp(22px, 6vh, 34px); padding: 2px 0; }
  .menu__side { font-size: 14px; }
}
.footer__links .to-top { flex: none; width: 44px; min-width: 44px; }
.footer__links { justify-content: center; }

/* ---------- Sticky call bar (phones) ---------- */
.callbar { display: none; }
@media (max-width: 760px) and (min-height: 480px) {
  .callbar {
    display: flex; gap: 10px; position: fixed; z-index: 95;
    left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
    transform: translateY(160%); transition: transform .5s var(--ease), visibility 0s .5s;
    visibility: hidden; pointer-events: none;
  }
  .callbar.is-on { transform: none; visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .callbar__btn {
    flex: 1; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    border-radius: 999px; font-size: 15px; font-weight: 600; letter-spacing: .01em;
    box-shadow: 0 10px 30px -8px rgba(4, 19, 28, .55);
  }
  .callbar__btn svg { width: 19px; height: 19px; }
  .callbar__btn--call { background: var(--green); color: #04131C; }
  .callbar__btn--quote { background: var(--blue); color: #04131C; }
  .callbar__btn:active { transform: scale(.97); }
  /* never cover the footer / form end */
  body.has-callbar .footer { padding-bottom: 86px; }
}
