/* ==========================================================================
   Larios Tree Services — "Growth Rings" design system
   Colors and fonts come from /theme.css (generated from the admin panel).
   This file only consumes CSS variables; no brand colors are hard-coded.
   ========================================================================== */

:root {
    --container: 1280px;
    --gutter: clamp(1.15rem, 4vw, 2.5rem);
    --section-y: clamp(4.5rem, 9vw, 8.5rem);
    --topbar-h: 42px;
    --header-h: 84px;
    --ease: cubic-bezier(.22, .8, .24, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --dur: .45s;
    --shadow-sm: 0 2px 10px rgb(var(--color-shadow) / .06);
    --shadow: 0 18px 50px -18px rgb(var(--color-shadow) / .28);
    --shadow-lg: 0 40px 90px -30px rgb(var(--color-shadow) / .45);
    --fs-display: clamp(2.6rem, 1.2rem + 4.6vw, 5.4rem);
    --fs-h1: clamp(2.3rem, 1.3rem + 3.4vw, 4.4rem);
    --fs-h2: clamp(1.95rem, 1.2rem + 2.3vw, 3.3rem);
    --fs-h3: clamp(1.3rem, 1.05rem + .8vw, 1.7rem);
    --fs-lead: clamp(1.06rem, 1rem + .3vw, 1.22rem);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--color-link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--color-primary-dark); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.02em;
    color: var(--color-heading);
    margin: 0 0 .6em;
    font-optical-sizing: auto;
    text-wrap: balance;
}
p { margin: 0 0 1.1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--color-tertiary); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -100px; z-index: 1000; background: var(--color-dark); color: var(--color-on-dark); padding: .75rem 1.25rem; border-radius: var(--radius-sm); transition: top .2s; }
.skip-link:focus { top: 1rem; color: var(--color-on-dark); }
main:focus { outline: none; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.icon--xs { width: .85em; height: .85em; }
.is-hidden, [hidden] { display: none !important; }

/* ---------- Typography helpers ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: .65rem;
    font-family: var(--font-body); font-size: .78rem; font-weight: 700;
    letter-spacing: .2em; text-transform: uppercase; color: var(--color-primary);
    margin-bottom: 1.1rem;
}
.eyebrow--light { color: var(--color-tertiary-on-dark); }
.ring-dot {
    position: relative; width: 14px; height: 14px; border-radius: 50%;
    border: 1.5px solid currentColor; flex: none;
}
.ring-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: currentColor; }
.section-title { font-size: var(--fs-h2); max-width: 20ch; }
.section-title--sm { font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.4rem); }
.section-title--light { color: var(--color-on-dark); }
.section-lead { font-size: var(--fs-lead); color: var(--color-muted); max-width: 60ch; }
.prose p { color: var(--color-text); }
.prose--lead p:first-child { font-size: var(--fs-lead); }
.prose--light p { color: var(--color-on-dark-muted); }

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--color-button-bg); --btn-fg: var(--color-button-text); --btn-bd: transparent;
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .95rem 1.6rem; min-height: 48px;
    font-family: var(--font-body); font-size: .95rem; font-weight: 700; letter-spacing: .01em; line-height: 1.1;
    color: var(--btn-fg); background: var(--btn-bg); border: 1.5px solid var(--btn-bd);
    border-radius: var(--radius-button); text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate;
    transition: transform var(--dur) var(--ease), background-color .3s, color .3s, border-color .3s, box-shadow .3s;
}
.btn::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
    background: rgb(255 255 255 / .16); transform: translateX(-101%); transition: transform .5s var(--ease-out);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: 0 12px 26px -14px rgb(var(--color-shadow) / .55); }
.btn:hover::before { transform: translateX(0); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .icon { transition: transform .35s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn--primary { --btn-bg: var(--color-primary); --btn-fg: var(--color-on-primary); }
.btn--accent { --btn-bg: var(--color-tertiary); --btn-fg: var(--color-on-tertiary); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--color-heading); --btn-bd: color-mix(in srgb, var(--color-heading) 30%, transparent); }
.btn--outline::before { background: var(--color-primary-soft); }
.btn--outline:hover { --btn-bd: var(--color-primary); }
.btn--ghost-light { --btn-bg: rgb(255 255 255 / .08); --btn-fg: #fff; --btn-bd: rgb(255 255 255 / .38); backdrop-filter: blur(6px); }
.btn--sm { padding: .65rem 1.15rem; min-height: 42px; font-size: .88rem; }
.btn--lg { padding: 1.1rem 1.9rem; min-height: 56px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.btn-row--center { justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--color-heading); text-decoration: none; border-bottom: 1.5px solid var(--color-tertiary); padding-bottom: .2rem; }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow .icon { transition: transform .3s var(--ease); }

/* ---------- Loader ---------- */
.loader {
    position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
    background: var(--color-dark); color: var(--color-loader);
    transition: opacity .7s var(--ease), visibility .7s;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.no-js .loader { display: none; }
.loader__inner { display: grid; justify-items: center; gap: 1.4rem; }
.loader__rings { width: 96px; height: 96px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.loader__rings circle { stroke-dasharray: 340; stroke-dashoffset: 340; animation: ring-draw 1.6s var(--ease) infinite; transform-origin: 60px 60px; }
.loader__rings circle:nth-child(2) { animation-delay: .1s; } .loader__rings circle:nth-child(3) { animation-delay: .2s; }
.loader__rings circle:nth-child(4) { animation-delay: .3s; } .loader__rings circle:nth-child(5) { animation-delay: .4s; }
@keyframes ring-draw { 0% { stroke-dashoffset: 340; opacity: .2; } 50% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: -340; opacity: .2; } }
.loader__leaf { width: 64px; height: 64px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; animation: leaf-sway 1.4s ease-in-out infinite alternate; transform-origin: 50% 90%; }
@keyframes leaf-sway { from { transform: rotate(-10deg); } to { transform: rotate(10deg); } }
.loader__bar { width: 140px; height: 2px; background: rgb(255 255 255 / .12); position: relative; overflow: hidden; border-radius: 2px; }
.loader__bar::after { content: ""; position: absolute; inset: 0; width: 40%; background: currentColor; animation: bar 1.1s var(--ease) infinite; }
@keyframes bar { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.loader__logo { width: 220px; height: auto; }
.loader__text { font-family: var(--font-heading); color: var(--color-on-dark); font-size: 1.15rem; letter-spacing: .04em; }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 300; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--color-tertiary), var(--color-primary-light)); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Top bar ---------- */
.topbar { position: relative; z-index: 120; background: var(--color-dark); color: var(--color-on-dark-muted); font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--topbar-h); }
.topbar__list { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: .45rem; }
.topbar__item .icon { color: var(--color-tertiary-on-dark); width: 15px; height: 15px; }
.topbar a { color: var(--color-on-dark); text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; }
.topbar a:hover { color: var(--color-tertiary-on-dark); }
@media (max-width: 1100px) { .topbar__item--hours, .topbar__item--insured { display: none; } }
@media (max-width: 760px) { .topbar__item--license, .topbar__item--email, .topbar__item--location { display: none; } .topbar__inner { justify-content: center; } }

/* ---------- Header ---------- */
.site-header {
    position: absolute; left: 0; right: 0; top: var(--topbar-h); z-index: 110;
    color: #fff; transition: background-color .4s, box-shadow .4s, transform .5s var(--ease), color .3s;
}
.site-header::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px; background: rgb(255 255 255 / .16); transition: opacity .3s; }
.site-header.is-fixed { position: fixed; top: 0; background: rgb(var(--color-dark-rgb) / .94); backdrop-filter: saturate(1.4) blur(14px); color: #fff; box-shadow: 0 10px 30px -18px rgb(var(--color-shadow) / .4); animation: header-in .5s var(--ease-out); }
.site-header.is-fixed::after { opacity: 0; }
.site-header.is-hidden { transform: translateY(-110%); }
@keyframes header-in { from { transform: translateY(-100%); } to { transform: none; } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: inherit; flex: none; }
.brand__logo { width: auto; height: 54px; }
.header-cta { white-space: nowrap; }
.header-phone__text { white-space: nowrap; }
.brand__logo--dark { display: none; }

.brand__text { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 600; }
.nav__list { display: flex; align-items: center; gap: .25rem; }
.nav__link {
    position: relative; display: block; padding: .6rem .95rem; color: inherit; text-decoration: none;
    font-weight: 600; font-size: .96rem; letter-spacing: .01em; border-radius: 999px; transition: color .25s;
}
.nav__link::after { content: ""; position: absolute; left: 50%; bottom: .25rem; width: 5px; height: 5px; border-radius: 50%; background: var(--color-tertiary); transform: translate(-50%, 6px) scale(0); transition: transform .35s var(--ease); }
.nav__link:hover, .nav__link.is-active { color: inherit; }
.nav__link:hover::after, .nav__link.is-active::after { transform: translate(-50%, 0) scale(1); }
.nav__mobile-extra { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 1rem; }
.header-phone { display: inline-flex; align-items: center; gap: .65rem; color: inherit; text-decoration: none; font-weight: 700; font-size: .95rem; line-height: 1.15; }
.header-phone small { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.header-phone__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .9; }
.header-phone:hover { color: inherit; }
.header-phone:hover .header-phone__icon { background: var(--color-tertiary); border-color: var(--color-tertiary); color: var(--color-on-tertiary); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1.5px solid currentColor; border-radius: 50%; background: transparent; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 1.8px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.nav-toggle span:nth-child(1) { top: 16px; } .nav-toggle span:nth-child(2) { top: 22px; right: 18px; } .nav-toggle span:nth-child(3) { top: 28px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) { .header-phone__text { display: none; } }
@media (max-width: 1020px) {
    .nav-toggle { display: block; z-index: 2; }
    .header-cta { display: none; }
    .nav {
        position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 2rem;
        padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem; background: var(--color-dark); color: var(--color-on-dark);
        clip-path: circle(0 at calc(100% - 3rem) 3rem); visibility: hidden; transition: clip-path .7s var(--ease-out), visibility .7s;
    }
    .nav-open .nav { clip-path: circle(150% at calc(100% - 3rem) 3rem); visibility: visible; }
    .nav-open .site-header { color: var(--color-on-dark); }
    .nav-open .site-header.is-fixed { background: transparent; backdrop-filter: none; box-shadow: none; }
    .nav-open .site-header.is-fixed .brand__logo--light { display: block; }
    .nav-open .site-header.is-fixed .brand__logo--dark { display: none; }
    .nav-open .header-phone { display: none; }
    .brand { position: relative; z-index: 2; }
    .nav__list { flex-direction: column; align-items: flex-start; gap: 0; }
    .nav__link { font-family: var(--font-heading); font-size: clamp(2rem, 8vw, 3rem); font-weight: 400; padding: .2rem 0 .2rem 1.4rem; letter-spacing: -.02em; }
    .nav__link::after { left: 0; top: 50%; bottom: auto; transform: translate(0, -50%) scale(0); }
    .nav__link.is-active::after, .nav__link:hover::after { transform: translate(0, -50%) scale(1); }
    .nav__mobile-extra { display: flex; flex-wrap: wrap; gap: .8rem; }
    .nav__mobile-meta { width: 100%; margin: .5rem 0 0; font-size: .85rem; color: var(--color-on-dark-muted); }
    .nav-open { overflow: hidden; }
}
@media (max-width: 520px) { .brand__logo { height: 42px; } :root { --header-h: 74px; } }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--section-y); }
.section--alt { background: var(--color-surface-alt); }
.section--dark { background: var(--color-dark); color: var(--color-on-dark-muted); overflow: hidden; isolation: isolate; }
.section--dark h2, .section--dark h3 { color: var(--color-on-dark); }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--split { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: end; }
.section-head--split .section-title { margin-bottom: 0; }
.section-head--center { text-align: center; display: grid; justify-items: center; }
.section-head--center .section-title { max-width: 22ch; }
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; } }

/* ---------- Hero (home) ---------- */
.hero {
    position: relative; isolation: isolate; overflow: hidden; color: #fff;
    min-height: max(640px, calc(100svh - var(--topbar-h))); display: flex; flex-direction: column; justify-content: flex-end;
    padding-top: var(--header-h);
    background: var(--color-dark);
}
.hero__slides, .hero__bg { position: absolute; inset: 0; }
.hero__bg { opacity: 0; transition: opacity 1.4s var(--ease); z-index: -3; }
.hero__bg.is-active { opacity: 1; }
.hero__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 9s linear; }
.hero__bg.is-active .hero__img { transform: scale(1); }
.hero__shade { position: absolute; inset: 0; z-index: -2; background: var(--color-gradient-hero), linear-gradient(90deg, rgb(var(--color-dark-rgb) / .72) 0%, rgb(var(--color-dark-rgb) / .2) 60%, transparent 100%); }
.hero__canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero__canvas.is-ready { opacity: 1; }
.hero__rays { position: absolute; inset: -20% -10% auto auto; width: 70%; height: 140%; z-index: -1; pointer-events: none; mix-blend-mode: screen; opacity: .55; }
.hero__rays span { position: absolute; top: 0; right: 20%; width: 18%; height: 100%; background: linear-gradient(180deg, rgb(255 236 190 / .32), rgb(255 236 190 / 0) 70%); transform: rotate(24deg); transform-origin: top; filter: blur(18px); animation: ray 9s ease-in-out infinite alternate; }
.hero__rays span:nth-child(2) { right: 42%; width: 9%; animation-duration: 12s; opacity: .7; }
.hero__rays span:nth-child(3) { right: 6%; width: 7%; animation-duration: 7s; opacity: .6; }
@keyframes ray { from { opacity: .35; transform: rotate(22deg) translateX(0); } to { opacity: 1; transform: rotate(27deg) translateX(-30px); } }
.three-active .hero__rays { opacity: .25; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 3rem; padding-bottom: clamp(2.5rem, 6vh, 4rem); }
.hero__copy { max-width: 860px; }
.hero__texts { display: grid; }
.hero__text { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility .8s; }
.hero__text.is-active { opacity: 1; visibility: visible; }
.hero__title { font-size: var(--fs-display); color: #fff; line-height: 1.02; margin-bottom: 1.4rem; font-weight: 400; letter-spacing: -.03em; max-width: 15ch; }
.hero__title .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.hero__title .word > span { display: inline-block; }
.hero__lead { font-size: var(--fs-lead); color: rgb(255 255 255 / .86); max-width: 54ch; margin-bottom: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero__rail { display: grid; gap: 0; border-left: 1px solid rgb(255 255 255 / .22); padding-left: 1.6rem; min-width: 190px; }
.hero__stat { display: flex; align-items: center; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid rgb(255 255 255 / .14); }
.hero__stat:last-child { border-bottom: 0; }
.hero__stat strong { font-family: var(--font-heading); font-weight: 400; font-size: 3rem; line-height: 1; color: var(--color-tertiary-on-dark); }
.hero__stat .hero__stat-sm { font-size: 1.35rem; font-family: var(--font-body); font-weight: 700; color: #fff; }
.hero__stat span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1.35; color: rgb(255 255 255 / .75); font-weight: 600; }
.hero__stat-icon { width: 2rem; height: 2rem; color: var(--color-tertiary-on-dark); }
.hero__controls { position: relative; display: flex; align-items: center; gap: 1.5rem; padding-bottom: 2rem; }
.hero__counter { font-variant-numeric: tabular-nums; font-size: .85rem; letter-spacing: .14em; color: rgb(255 255 255 / .7); }
.hero__counter span { color: #fff; font-weight: 700; }
.hero__dots { display: flex; gap: .5rem; flex: 1; max-width: 340px; }
.hero__dot { flex: 1; height: 26px; background: none; border: 0; cursor: pointer; padding: 0; display: flex; align-items: center; }
.hero__dot span { display: block; width: 100%; height: 2px; background: rgb(255 255 255 / .25); position: relative; overflow: hidden; border-radius: 2px; }
.hero__dot span::after { content: ""; position: absolute; inset: 0; background: var(--color-tertiary-on-dark); transform: scaleX(0); transform-origin: left; }
.hero__dot.is-active span::after { animation: dot-fill var(--slide-ms, 7000ms) linear forwards; }
.hero.is-paused .hero__dot.is-active span::after { animation-play-state: paused; }
@keyframes dot-fill { to { transform: scaleX(1); } }
.hero__arrows { display: flex; gap: .5rem; margin-left: auto; }
.hero__arrow { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgb(255 255 255 / .35); background: transparent; color: #fff; cursor: pointer; transition: background .3s, border-color .3s; }
.hero__arrow:hover { background: #fff; color: var(--color-dark); border-color: #fff; }
.hero__scroll { position: absolute; left: 50%; bottom: 1.4rem; width: 26px; height: 42px; border: 1.5px solid rgb(255 255 255 / .5); border-radius: 14px; transform: translateX(-50%); display: none; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; background: #fff; border-radius: 2px; animation: scroll-cue 1.8s var(--ease) infinite; }
@keyframes scroll-cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 1020px) {
    .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
    .hero__rail { grid-auto-flow: column; border-left: 0; border-top: 1px solid rgb(255 255 255 / .22); padding: 0; min-width: 0; }
    .hero__stat { border-bottom: 0; padding: 1rem 1rem 0 0; }
    .hero__stat strong { font-size: 2.2rem; }
}
@media (max-width: 640px) {
    .hero { min-height: max(640px, 100svh); }
    .hero__rail { grid-auto-flow: row; grid-template-columns: repeat(3, auto); justify-content: start; gap: .25rem 1.25rem; }
    .hero__stat { flex-direction: column; align-items: flex-start; gap: .25rem; padding-top: .9rem; }
    .hero__stat span { font-size: .66rem; }
    .hero__stat .hero__stat-sm { font-size: 1rem; }
    .hero__actions .btn { flex: 1 1 100%; }
    .hero__arrows { display: none; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    position: relative; isolation: isolate; overflow: hidden; color: #fff;
    min-height: clamp(460px, 64vh, 640px); display: flex; align-items: flex-end;
    padding: calc(var(--header-h) + 3rem) 0 clamp(4.5rem, 9vw, 7rem);
    background: var(--color-dark);
}
.page-hero__media { position: absolute; inset: -8% 0; z-index: -2; }
.page-hero__img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--color-gradient-hero), linear-gradient(90deg, rgb(var(--color-dark-rgb) / .75), rgb(var(--color-dark-rgb) / .15)); }
.page-hero__inner { position: relative; z-index: 2; }
.page-hero__title { font-size: var(--fs-h1); color: #fff; font-weight: 400; max-width: 20ch; margin-bottom: 0; letter-spacing: -.03em; }
.page-hero__title .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.page-hero__title .word > span { display: inline-block; }
.page-hero__lead { margin-top: 1.25rem; max-width: 60ch; font-size: var(--fs-lead); color: rgb(255 255 255 / .85); }
.page-hero__edge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(30px, 5vw, 80px); fill: var(--color-background); z-index: 2; }
.breadcrumbs { display: flex; gap: .6rem; align-items: center; font-size: .85rem; margin-bottom: 1.5rem; color: rgb(255 255 255 / .7); }
.breadcrumbs a { color: #fff; text-decoration: none; }
.breadcrumbs a:hover { color: var(--color-tertiary-on-dark); }

/* ---------- Leaves canvas ---------- */
.leaves-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

/* ---------- Welcome ---------- */
.welcome__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.welcome__visual { position: relative; padding: 0 12% 14% 0; }
.welcome__frame { border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 160px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 4.6; }
.welcome__frame .welcome__img { width: 100%; height: 100%; object-fit: cover; }
.welcome__frame--small { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; border-radius: 50%; border: 8px solid var(--color-background); box-shadow: var(--shadow); }
.growth-badge {
    position: absolute; left: -1.5rem; bottom: 8%; width: 170px; height: 170px; border-radius: 50%;
    display: grid; place-items: center; align-content: center; text-align: center;
    background: var(--color-dark); color: var(--color-tertiary-on-dark); box-shadow: var(--shadow);
}
.growth-badge svg { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); stroke-width: .7; opacity: .45; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.growth-badge strong { position: relative; font-family: var(--font-heading); font-size: 3.4rem; font-weight: 400; line-height: .9; color: var(--color-on-dark); }
.growth-badge span { position: relative; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; margin-top: .35rem; line-height: 1.3; }
.check-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1.5rem; margin-top: 1.5rem; }
.check-list li { display: flex; gap: .65rem; align-items: flex-start; font-weight: 600; color: var(--color-heading); line-height: 1.4; }
.check-list .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--color-primary-soft); color: var(--color-primary); stroke-width: 2.5; }
@media (max-width: 900px) { .welcome__grid { grid-template-columns: 1fr; } .welcome__visual { max-width: 540px; } }
@media (max-width: 520px) { .check-list { grid-template-columns: 1fr; } .growth-badge { width: 130px; height: 130px; left: -.5rem; } .growth-badge strong { font-size: 2.6rem; } }

/* ---------- Service cards (home) ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.service-card--1 { transform: translateY(3.5rem); }
.service-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; background: var(--color-surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.service-card__link:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); color: inherit; }
.service-card__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.service-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.service-card__link:hover .service-card__img { transform: scale(1.07); }
.service-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgb(var(--color-dark-rgb) / .45)); }
.service-card__num { position: absolute; top: 1rem; left: 1rem; z-index: 1; font-family: var(--font-heading); font-size: .95rem; color: #fff; padding: .35rem .75rem; border-radius: 999px; background: rgb(var(--color-dark-rgb) / .45); backdrop-filter: blur(8px); border: 1px solid rgb(255 255 255 / .25); }
.service-card__body { position: relative; padding: 2.2rem 1.75rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.service-card__icon { position: absolute; top: -28px; right: 1.5rem; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--color-tertiary); color: var(--color-on-tertiary); box-shadow: 0 10px 24px -10px rgb(var(--color-tertiary-rgb) / .8); transition: transform .6s var(--ease); }
.service-card__icon .icon { width: 24px; height: 24px; }
.service-card__link:hover .service-card__icon { transform: rotate(-12deg) scale(1.06); }
.service-card__title { font-size: var(--fs-h3); margin-bottom: .6rem; }
.service-card__text { color: var(--color-muted); font-size: .98rem; margin-bottom: 1.4rem; }
.service-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .92rem; color: var(--color-primary); }
.service-card__more .icon { transition: transform .35s var(--ease); }
.service-card__link:hover .service-card__more .icon { transform: translate(3px, -3px); }
.services-home { padding-bottom: calc(var(--section-y) + 3.5rem); }
@media (max-width: 1020px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .service-card--1 { transform: none; } .services-home { padding-bottom: var(--section-y); } }
@media (max-width: 640px) { .service-grid { grid-template-columns: 1fr; } }

/* ---------- Why / dark sections ---------- */
.why__rings { position: absolute; right: -18%; top: 50%; width: min(900px, 90vw); transform: translateY(-50%); color: rgb(var(--color-tertiary-rgb) / .14); stroke-width: 1; z-index: -1; }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.why__text { font-size: var(--fs-lead); color: var(--color-on-dark-muted); max-width: 56ch; }
.why__image { margin-top: 2.5rem; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; }
.why__img { width: 100%; height: 100%; object-fit: cover; }
.why__cards { display: grid; gap: 1.25rem; }
.mv-card { position: relative; padding: 2.2rem 2rem; border-radius: var(--radius-lg); background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .1); backdrop-filter: blur(6px); transition: background .4s, transform .5s var(--ease); }
.mv-card:hover { background: rgb(255 255 255 / .08); transform: translateY(-4px); }
.mv-card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgb(var(--color-tertiary-rgb) / .6); color: var(--color-tertiary-on-dark); margin-bottom: 1.25rem; }
.mv-card__title { font-size: 1.6rem; margin-bottom: .7rem; }
.mv-card p { margin: 0; }
.credential-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: rgb(255 255 255 / .1); }
.credential-strip > div { background: var(--color-dark); padding: 1.3rem 1.5rem; }
.credential-strip dt { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--color-tertiary-on-dark); margin-bottom: .25rem; }
.credential-strip dd { margin: 0; font-family: var(--font-heading); font-size: 1.45rem; color: var(--color-on-dark); }
@media (max-width: 900px) { .why__grid { grid-template-columns: 1fr; } }

/* ---------- Values ---------- */
.values__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.value-card { position: relative; padding: 2.5rem 2.2rem; border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border); transition: transform .5s var(--ease), box-shadow .5s; overflow: hidden; }
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.value-card__rings { position: relative; width: 92px; height: 92px; margin-bottom: 1.6rem; color: var(--color-tertiary); }
.value-card__rings svg { width: 100%; height: 100%; stroke-width: 1.1; transition: transform 1.2s var(--ease); }
.value-card:hover .value-card__rings svg { transform: rotate(90deg) scale(1.05); }
.value-card__rings span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-heading); font-size: 1.35rem; color: var(--color-heading); }
.value-card__title { font-size: 1.75rem; }
.value-card p { color: var(--color-muted); margin: 0; }
@media (max-width: 900px) { .values__grid { grid-template-columns: 1fr; } }

/* ---------- Project gallery (home) ---------- */
.home-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 1rem; }
.home-gallery__item { position: relative; overflow: hidden; border-radius: var(--radius); display: block; }
.home-gallery__item--0 { grid-column: span 2; grid-row: span 2; }
.home-gallery__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.home-gallery__item:hover .home-gallery__img { transform: scale(1.06); }
@media (max-width: 760px) { .home-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; } }

/* ---------- Project mosaic (legacy) ---------- */
.project-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 1rem; }
.project-mosaic__item { position: relative; overflow: hidden; border-radius: var(--radius); color: #fff; text-decoration: none; }
.project-mosaic__item--0 { grid-column: span 2; grid-row: span 2; }
.project-mosaic__item--3 { grid-column: span 2; }
.project-mosaic__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.project-mosaic__item:hover .project-mosaic__img { transform: scale(1.06); }
.project-mosaic__caption { position: absolute; inset: auto 0 0; padding: 2.5rem 1.25rem 1.1rem; background: linear-gradient(transparent, rgb(var(--color-dark-rgb) / .85)); font-weight: 700; }
.project-mosaic__caption small { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--color-tertiary-on-dark); }
@media (max-width: 760px) { .project-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; } .project-mosaic__item--3 { grid-column: span 1; } }

/* ---------- Global CTA ---------- */
.cta { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(5rem, 11vw, 9rem); background: var(--cta-bg, var(--color-dark)); color: var(--cta-text, var(--color-on-dark)); text-align: center; }
.cta--primary { background: var(--cta-bg, var(--color-gradient-brand)); }
.cta__media { position: absolute; inset: -12% 0; z-index: -2; }
.cta__img { width: 100%; height: 100%; object-fit: cover; }
.cta--image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgb(var(--color-dark-rgb) / .72), rgb(var(--color-dark-rgb) / .9)); }
.cta__rings { position: absolute; left: 50%; top: 50%; width: min(900px, 140vw); transform: translate(-50%, -50%); color: rgb(var(--color-tertiary-rgb) / .2); stroke-width: .8; z-index: -1; animation: spin 120s linear infinite; }
.cta__inner { position: relative; z-index: 2; display: grid; justify-items: center; }
.cta__title { font-size: var(--fs-h1); color: inherit; font-weight: 400; max-width: 18ch; }
.cta__text { max-width: 62ch; font-size: var(--fs-lead); opacity: .86; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: 1.5rem; }

/* ---------- About ---------- */
.about-intro__grid, .about-location__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.about-location__grid { grid-template-columns: .95fr 1.05fr; }
.about-intro__visual, .about-location__visual { position: relative; }
.about-intro__img, .about-location__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 200px 200px var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-location__img { aspect-ratio: 5 / 4; border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 160px; }
.owner-card { position: absolute; left: -2rem; bottom: 2.5rem; display: grid; padding: 1.3rem 1.6rem; border-radius: var(--radius); background: var(--color-surface); box-shadow: var(--shadow); border-left: 4px solid var(--color-tertiary); }
.owner-card__label { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--color-tertiary-text); }
.owner-card strong { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 500; color: var(--color-heading); }
.owner-card span:last-child { font-size: .9rem; color: var(--color-muted); }
.about-location__pin { position: absolute; right: 1.5rem; top: 1.5rem; display: inline-flex; gap: .45rem; align-items: center; padding: .6rem 1rem; border-radius: 999px; background: var(--color-surface); color: var(--color-heading); font-weight: 700; font-size: .9rem; box-shadow: var(--shadow-sm); }
.about-location__pin .icon { color: var(--color-tertiary-text); }
.credentials__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.credential { display: grid; justify-items: center; text-align: center; gap: .35rem; padding: 2rem 1.25rem; border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border); }
.credential__ring { width: 64px; height: 64px; color: var(--color-tertiary); stroke-width: 1.5; }
.credential__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--color-primary-soft); color: var(--color-primary); }
.credential__icon .icon { width: 28px; height: 28px; }
.credential__value { font-family: var(--font-heading); font-size: 3rem; font-weight: 400; line-height: 1; color: var(--color-heading); }
.credential__value--sm { font-family: var(--font-body); font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.credential__label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--color-muted); font-weight: 600; }
.about-why__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.about-why__cards { display: grid; gap: 1.25rem; }
@media (max-width: 960px) {
    .about-intro__grid, .about-location__grid, .about-why__grid { grid-template-columns: 1fr; }
    .credentials__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .owner-card { left: 1rem; }
    .about-location__visual { order: -1; }
}

/* ---------- Services page ---------- */
.services-page__layout { display: grid; grid-template-columns: 270px 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.services-index { position: sticky; top: calc(var(--header-h) + 1.5rem); padding: 1.75rem; border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border); }
.services-index__title { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--color-muted); margin-bottom: 1rem; }
.services-index ol { display: grid; gap: .15rem; margin-bottom: 1.5rem; }
.services-index ol a { display: flex; gap: .75rem; padding: .55rem .75rem; border-radius: var(--radius-sm); color: var(--color-heading); text-decoration: none; font-weight: 600; transition: background .25s, color .25s; }
.services-index ol a span { font-family: var(--font-heading); color: var(--color-tertiary-text); font-size: .9rem; min-width: 1.6rem; }
.services-index ol a:hover, .services-index ol a.is-active { background: var(--color-primary-soft); color: var(--color-primary-dark); }
.services-index__phone { display: flex; justify-content: center; align-items: center; gap: .5rem; margin-top: 1rem; font-weight: 700; color: var(--color-heading); text-decoration: none; }
.services-list { display: grid; gap: clamp(4rem, 8vw, 7rem); }
.service-block { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; scroll-margin-top: calc(var(--header-h) + 2rem); }
.service-block--flip .service-block__media { order: 2; }
.service-block__media { position: sticky; top: calc(var(--header-h) + 1.5rem); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.service-block__img { width: 100%; height: 100%; object-fit: cover; }
.service-block__num { position: absolute; left: 1.25rem; bottom: 1rem; font-family: var(--font-heading); font-size: 4.5rem; line-height: 1; color: #fff; text-shadow: 0 6px 30px rgb(0 0 0 / .35); }
.service-block__icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--color-tertiary); color: var(--color-on-tertiary); margin-bottom: 1.25rem; }
.service-block__icon .icon { width: 26px; height: 26px; }
.service-block__title { font-size: var(--fs-h2); margin-bottom: .9rem; }
.service-block__excerpt { font-size: var(--fs-lead); color: var(--color-heading); font-family: var(--font-heading); font-style: italic; line-height: 1.5; padding-left: 1.1rem; border-left: 3px solid var(--color-tertiary); margin-bottom: 1.5rem; }
.service-block .btn { margin-top: .75rem; }
@media (max-width: 1100px) { .services-page__layout { grid-template-columns: 1fr; } .services-index { position: static; } .services-index ol { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .service-block { grid-template-columns: 1fr; } .service-block--flip .service-block__media { order: 0; } .service-block__media { position: relative; top: 0; aspect-ratio: 16 / 11; } .services-index ol { grid-template-columns: 1fr; } }

/* ---------- Projects gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.6rem, 1.4vw, 1rem); transition: opacity .3s; }
.gallery-grid.is-loading { opacity: .35; pointer-events: none; }
.gallery-item { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--color-surface-alt); }
.gallery-item__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.gallery-item:hover .gallery-item__img { transform: scale(1.06); }
.gallery-item__zoom { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(var(--color-dark-rgb) / .35); color: #fff; opacity: 0; transition: opacity .35s; }
.gallery-item__zoom .icon { width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: rgb(255 255 255 / .18); backdrop-filter: blur(6px); }
.gallery-item:hover .gallery-item__zoom, .gallery-item:focus-visible .gallery-item__zoom { opacity: 1; }
.skeleton-tile { aspect-ratio: 4 / 3; border-radius: var(--radius); background: linear-gradient(90deg, var(--color-surface-alt), var(--color-background), var(--color-surface-alt)); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@media (max-width: 1020px) { .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Projects (legacy cards) ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.25rem; }
.chip { padding: .55rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--color-border); background: var(--color-surface); color: var(--color-heading); text-decoration: none; font-weight: 600; font-size: .9rem; transition: all .25s; }
.chip:hover { border-color: var(--color-primary); color: var(--color-primary); }
.chip.is-active { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary); }
.projects-page__count { color: var(--color-muted); font-size: .9rem; margin-bottom: 1.5rem; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); transition: opacity .3s; }
.project-grid.is-loading { opacity: .35; pointer-events: none; }
.project-card { display: flex; flex-direction: column; background: var(--color-surface); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); transition: transform .5s var(--ease), box-shadow .5s; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.project-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.project-card:hover .project-card__img { transform: scale(1.06); }
.project-card__zoom { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(var(--color-dark-rgb) / .35); color: #fff; opacity: 0; transition: opacity .35s; }
.project-card__zoom .icon { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: rgb(255 255 255 / .18); backdrop-filter: blur(6px); }
.project-card__media:hover .project-card__zoom, .project-card__media:focus-visible .project-card__zoom { opacity: 1; }
.project-card__count { position: absolute; right: .9rem; bottom: .9rem; display: inline-flex; gap: .35rem; align-items: center; padding: .3rem .7rem; border-radius: 999px; background: rgb(var(--color-dark-rgb) / .6); color: #fff; font-size: .8rem; font-weight: 700; }
.project-card__body { padding: 1.4rem 1.5rem 1.6rem; }
.project-card__meta { display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: center; font-size: .82rem; color: var(--color-muted); margin-bottom: .6rem; }
.tag { padding: .2rem .65rem; border-radius: 999px; background: var(--color-primary-soft); color: var(--color-primary-dark); font-weight: 700; font-size: .75rem; letter-spacing: .04em; }
.project-card__title { font-size: 1.35rem; margin-bottom: .4rem; }
.project-card__text { color: var(--color-muted); font-size: .95rem; margin: 0; }
.skeleton-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface); border: 1px solid var(--color-border); }
.skeleton-card span { display: block; margin: 1rem 1.5rem; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--color-surface-alt), var(--color-background), var(--color-surface-alt)); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
.skeleton-card span:first-child { margin: 0; height: 220px; border-radius: 0; }
.skeleton-card span:last-child { width: 60%; margin-bottom: 1.5rem; }
@keyframes shimmer { to { background-position: -200% 0; } }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-top: 3rem; }
.pagination__btn { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 .75rem; border-radius: 999px; border: 1.5px solid var(--color-border); color: var(--color-heading); text-decoration: none; font-weight: 700; transition: all .25s; }
.pagination__btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pagination__btn.is-active { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary); }
.pagination__gap { display: grid; place-items: center; width: 24px; color: var(--color-muted); }
@media (max-width: 1020px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .project-grid { grid-template-columns: 1fr; } }

/* ---------- Empty state ---------- */
.empty-state { max-width: 620px; margin: 0 auto; text-align: center; display: grid; justify-items: center; padding: 2rem 0; }
.empty-state__rings { position: relative; width: 130px; height: 130px; color: var(--color-tertiary); margin-bottom: 1.5rem; }
.empty-state__rings svg { width: 100%; height: 100%; stroke-width: 1.2; }
.empty-state__rings > .icon { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; transform: translate(-50%, -50%); color: var(--color-primary); }
.empty-state__title { font-size: var(--fs-h3); }
.empty-state p { color: var(--color-muted); }

/* ---------- Reviews ---------- */
.reviews-layout { display: grid; grid-template-columns: 340px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.rating-summary { position: sticky; top: calc(var(--header-h) + 1.5rem); padding: 2.2rem; border-radius: var(--radius-lg); background: var(--color-dark); color: var(--color-on-dark-muted); }
.rating-summary__label { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--color-tertiary-on-dark); }
.rating-summary__score { display: flex; align-items: baseline; gap: .5rem; margin: 0 0 .5rem; }
.rating-summary__score strong { font-family: var(--font-heading); font-size: 4.5rem; font-weight: 400; color: var(--color-on-dark); line-height: 1; }
.rating-summary__total { margin: .75rem 0 1.5rem; }
.stars { display: inline-flex; gap: 2px; }
.star { position: relative; width: 20px; height: 20px; color: rgb(150 150 150 / .45); }
.star .icon { width: 100%; height: 100%; fill: currentColor; stroke: none; }
.star::after { content: ""; position: absolute; inset: 0; width: var(--fill); overflow: hidden; background: var(--color-tertiary); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11.52 2.3a.53.53 0 0 1 .96 0l2.31 4.68a2.12 2.12 0 0 0 1.6 1.16l5.16.76a.53.53 0 0 1 .3.9l-3.74 3.64a2.12 2.12 0 0 0-.61 1.88l.88 5.14a.53.53 0 0 1-.77.56l-4.62-2.43a2.12 2.12 0 0 0-1.97 0L6.4 21.01a.53.53 0 0 1-.77-.56l.88-5.13a2.12 2.12 0 0 0-.61-1.88L2.16 9.8a.53.53 0 0 1 .29-.9l5.17-.76a2.12 2.12 0 0 0 1.6-1.16z'/%3E%3C/svg%3E") left center / 20px 20px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11.52 2.3a.53.53 0 0 1 .96 0l2.31 4.68a2.12 2.12 0 0 0 1.6 1.16l5.16.76a.53.53 0 0 1 .3.9l-3.74 3.64a2.12 2.12 0 0 0-.61 1.88l.88 5.14a.53.53 0 0 1-.77.56l-4.62-2.43a2.12 2.12 0 0 0-1.97 0L6.4 21.01a.53.53 0 0 1-.77-.56l.88-5.13a2.12 2.12 0 0 0-.61-1.88L2.16 9.8a.53.53 0 0 1 .29-.9l5.17-.76a2.12 2.12 0 0 0 1.6-1.16z'/%3E%3C/svg%3E") left center / 20px 20px no-repeat; }
.rating-bars { display: grid; gap: .55rem; margin-bottom: 1.75rem; }
.rating-bars li { display: grid; grid-template-columns: 42px 1fr 30px; align-items: center; gap: .6rem; font-size: .88rem; }
.rating-bars__label { display: inline-flex; align-items: center; gap: .25rem; color: var(--color-on-dark); }
.rating-bars__label .icon { fill: var(--color-tertiary); stroke: none; }
.rating-bars__track { height: 6px; border-radius: 6px; background: rgb(255 255 255 / .1); overflow: hidden; }
.rating-bars__track span { display: block; height: 100%; background: var(--color-tertiary); border-radius: inherit; }
.rating-bars__count { text-align: right; }
.review-list { display: grid; gap: 1.25rem; }
.review-card { padding: 2rem; border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border); }
.review-card__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.review-card__head .stars { margin-left: auto; }
.review-card__avatar { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--color-primary-soft); color: var(--color-primary-dark); font-family: var(--font-heading); font-size: 1.35rem; flex: none; }
.review-card__author { font-size: 1.2rem; margin: 0; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.review-card__meta { margin: 0; font-size: .85rem; color: var(--color-muted); }
.review-card__text { margin: 0; color: var(--color-text); }
.review-card__text p:last-child { margin: 0; }
@media (max-width: 960px) { .reviews-layout { grid-template-columns: 1fr; } .rating-summary { position: static; } }
@media (max-width: 520px) { .review-card__head { flex-wrap: wrap; } .review-card__head .stars { margin-left: 66px; } }

/* ---------- Contact ---------- */
.contact-page__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-cards { display: grid; gap: .9rem; margin-top: 1.5rem; }
.contact-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.25rem; border-radius: var(--radius); background: var(--color-surface); border: 1px solid var(--color-border); }
.contact-card__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--color-primary-soft); color: var(--color-primary); flex: none; }
.contact-card__label { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--color-muted); }
.contact-card a, .contact-card span:not(.contact-card__label):not(.contact-card__icon) { color: var(--color-heading); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-card a:hover { color: var(--color-primary); }
.contact-form-wrap { padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-lg); border: 1px solid var(--color-border); }
.contact-form__title { font-size: var(--fs-h3); margin-bottom: .35rem; }
.contact-form__sub { color: var(--color-muted); margin-bottom: 1.75rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.field { display: grid; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .88rem; color: var(--color-heading); }
.field label span { color: var(--color-tertiary-text); }
.field input, .field select, .field textarea {
    width: 100%; padding: .9rem 1rem; font: inherit; font-size: 1rem; color: var(--color-text);
    background: var(--color-background); border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
    transition: border-color .25s, box-shadow .25s, background .25s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-primary); background: var(--color-surface); box-shadow: 0 0 0 4px rgb(var(--color-primary-rgb) / .14); }
.field.has-error input, .field.has-error textarea { border-color: #B3261E; }
.field__error { margin: 0; min-height: 0; font-size: .82rem; color: #B3261E; font-weight: 600; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 1.25rem 0 0; padding: 0; border-radius: var(--radius-sm); font-weight: 600; }
.form-status.is-success { padding: 1rem 1.2rem; background: color-mix(in srgb, var(--color-primary) 12%, var(--color-surface)); color: var(--color-primary-dark); }
.form-status.is-error { padding: 1rem 1.2rem; background: #FBEAE9; color: #8C1D18; }
.contact-form__submit { margin-top: 1.25rem; min-width: 220px; }
.btn__spinner { display: none; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.is-sending .btn__spinner { display: inline-block; }
.is-sending .contact-form__submit { pointer-events: none; opacity: .85; }
.form-note { margin: 1rem 0 0; font-size: .78rem; color: var(--color-muted); }
.g-recaptcha, .cf-turnstile { margin-top: 1.25rem; }
.grecaptcha-badge { visibility: hidden; }
.social-list { display: flex; gap: .6rem; margin-top: 1.5rem; }
.social-list a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid currentColor; color: inherit; transition: background .3s, color .3s; }
.social-list--dark a { color: var(--color-heading); }
.social-list a:hover { background: var(--color-tertiary); border-color: var(--color-tertiary); color: var(--color-on-tertiary); }
.map-section { position: relative; }
.map-section__frame { height: clamp(380px, 50vw, 520px); filter: saturate(.85) contrast(1.02); }
.map-section__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-section__card-wrap { position: absolute; left: 0; right: 0; bottom: 2rem; pointer-events: none; }
.map-card { pointer-events: auto; display: inline-flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--color-surface); box-shadow: var(--shadow-lg); max-width: 100%; }
.map-card__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--color-tertiary); color: var(--color-on-tertiary); flex: none; }
.map-card strong { display: block; color: var(--color-heading); }
.map-card span { font-size: .9rem; color: var(--color-muted); }
@media (max-width: 960px) { .contact-page__grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } .map-card { flex-wrap: wrap; } .contact-form__submit { width: 100%; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; isolation: isolate; background: var(--color-dark); color: var(--color-on-dark-muted); padding-top: clamp(4rem, 8vw, 6.5rem); font-size: .95rem; }
.site-footer__rings { position: absolute; left: -200px; bottom: -260px; width: 640px; color: rgb(var(--color-tertiary-rgb) / .1); stroke-width: 1; z-index: -1; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr .8fr 1fr 1.3fr; gap: clamp(2rem, 4vw, 3.5rem); padding-bottom: 3.5rem; }
.brand--footer img { height: 150px; width: auto; margin-bottom: 1.25rem; }
.site-footer__heading { font-family: var(--font-body); font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--color-tertiary-on-dark); margin-bottom: 1.25rem; }
.site-footer__col ul { display: grid; gap: .65rem; }
.site-footer a { color: var(--color-on-dark); text-decoration: none; transition: color .25s; }
.site-footer a:hover { color: var(--color-tertiary-on-dark); }
.site-footer__contact li { display: flex; gap: .7rem; align-items: flex-start; }
.site-footer__contact li a { display: flex; gap: .7rem; align-items: flex-start; overflow-wrap: anywhere; }
.site-footer__contact .icon { margin-top: .25rem; color: var(--color-tertiary-on-dark); }
.credentials-list { display: grid; gap: .5rem; margin-top: 1.5rem; }
.credentials-list li { display: flex; gap: .6rem; align-items: center; color: var(--color-on-dark); font-weight: 600; font-size: .9rem; }
.credentials-list .icon { color: var(--color-tertiary-on-dark); }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; padding-block: 1.5rem; border-top: 1px solid rgb(255 255 255 / .1); font-size: .85rem; }
.site-footer__bottom p { margin: 0; }
@media (max-width: 1020px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .site-footer__grid { grid-template-columns: 1fr; } .site-footer { padding-bottom: 4.5rem; } }

/* ---------- Floating actions ---------- */
.call-fab, .estimate-fab {
    position: fixed; z-index: 90; display: inline-flex; align-items: center; gap: .55rem;
    text-decoration: none; font-weight: 700; border-radius: 999px; box-shadow: var(--shadow-lg);
    transition: transform .5s var(--ease), opacity .4s;
}
.call-fab { left: 1rem; right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom)); justify-content: center; padding: 1rem; background: var(--color-tertiary); color: var(--color-on-tertiary); display: none; }
.estimate-fab { right: 1.5rem; bottom: 1.5rem; padding: .9rem 1.3rem; background: var(--color-primary); color: var(--color-on-primary); opacity: 0; transform: translateY(20px); pointer-events: none; }
.estimate-fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.estimate-fab:hover { color: var(--color-on-primary); transform: translateY(-3px); }
.page-contact .estimate-fab { display: none; }
@media (max-width: 760px) {
    .call-fab { display: flex; transform: translateY(150%); }
    .call-fab.is-visible { transform: none; }
    .estimate-fab { display: none; }
}

/* ---------- Error page ---------- */
.error-page { padding-top: calc(var(--section-y) + var(--header-h)); }
.page-404 .site-header { position: absolute; color: var(--color-heading); }
.page-404 .site-header .brand__logo--light { display: none; }
.page-404 .site-header .brand__logo--dark { display: block; }
.page-404 .site-header::after { background: var(--color-border); }
.error-page__inner { text-align: center; display: grid; justify-items: center; }
.error-page .section-title { max-width: 18ch; }

/* ---------- Reveal animations ---------- */
.fx-reveal [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--delay, 0s); }
.fx-reveal [data-reveal="left"] { transform: translate3d(-36px, 0, 0); }
.fx-reveal [data-reveal="right"] { transform: translate3d(36px, 0, 0); }
.fx-reveal [data-reveal].is-visible { opacity: 1; transform: none; }
.fx-reveal .service-card--1[data-reveal].is-visible { transform: translateY(3.5rem); }
@media (max-width: 1020px) { .fx-reveal .service-card--1[data-reveal].is-visible { transform: none; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .fx-reveal [data-reveal] { opacity: 1; transform: none; }
    .hero__img { transform: none !important; }
    .hero__rays { display: none; }
}

/* ---------- Print ---------- */
@media print {
    .topbar, .site-header, .loader, .call-fab, .estimate-fab, .cta, .leaves-canvas, .hero__canvas, .map-section { display: none !important; }
    .hero, .page-hero { min-height: 0; color: #000; background: none; }
}

/* ---------- Reviews v2: summary band, masonry cards, star picker ---------- */
.rating-band { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: var(--radius-lg); background: var(--color-dark); color: var(--color-on-dark-muted); margin-bottom: clamp(2rem, 4vw, 3rem); }
.rating-band__score { display: flex; align-items: center; gap: 1.25rem; }
.rating-band__score > strong { font-family: var(--font-heading); font-size: clamp(3.8rem, 7vw, 5.5rem); font-weight: 400; line-height: .9; color: var(--color-on-dark); }
.rating-band__score p { margin: .5rem 0 0; font-size: .95rem; }
.rating-band__score b { color: var(--color-on-dark); }
.rating-band .rating-bars { margin: 0; max-width: 420px; width: 100%; }
.stars--lg .star { width: 28px; height: 28px; }
.stars--lg .star::after { -webkit-mask-size: 28px 28px; mask-size: 28px 28px; }
.review-grid { columns: 3 320px; column-gap: 1.25rem; }
.review-grid .review-card { break-inside: avoid; margin-bottom: 1.25rem; position: relative; display: flex; flex-direction: column; gap: 1rem; }
.review-card__quote { position: absolute; top: 1.4rem; right: 1.5rem; width: 34px; height: 34px; color: var(--color-tertiary); opacity: .25; }
.review-grid .review-card__head { margin: .25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--color-border); }
.review-card__text { font-size: 1.02rem; }
@media (max-width: 960px) { .rating-band { grid-template-columns: 1fr; } }
.review-form-section__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.review-form { display: grid; gap: 1.1rem; }
.star-input { border: 0; padding: 0; margin: 0; }
.star-input legend { font-weight: 700; font-size: .88rem; color: var(--color-heading); margin-bottom: .4rem; }
.star-input legend span { color: var(--color-tertiary-text); }
.star-input__stars { display: inline-flex; flex-direction: row-reverse; gap: .2rem; }
.star-input__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input__stars label { cursor: pointer; color: var(--color-border); transition: color .15s, transform .15s; }
.star-input__stars label .icon { width: 38px; height: 38px; fill: currentColor; stroke: none; }
.star-input__stars label:hover, .star-input__stars label:hover ~ label, .star-input__stars input:checked ~ label { color: var(--color-tertiary); }
.star-input__stars label:hover { transform: scale(1.12); }
.star-input__stars input:focus-visible + label { outline: 3px solid var(--color-tertiary); outline-offset: 2px; border-radius: 6px; }
@media (max-width: 960px) { .review-form-section__grid { grid-template-columns: 1fr; } }

.review-card.is-new { animation: review-in 1.2s var(--ease-out) both; box-shadow: 0 0 0 3px var(--color-tertiary), var(--shadow); }
@keyframes review-in { from { opacity: 0; transform: translateY(-16px) scale(.97); } to { opacity: 1; transform: none; } }
