/* ============================================================
   CreativeBuro — Landing
   Stack: HTML5 + CSS3 + Vanilla JS + Three.js
   ============================================================ */

:root {
    --accent: #FF6D00;
    --accent-soft: rgba(255, 109, 0, 0.08);
    --accent-mid: rgba(255, 109, 0, 0.18);

    --bg: #FFFFFF;
    --black: #0A0A0A;
    --gray-900: #161616;
    --gray-700: #3A3A3A;
    --gray-500: #707070;
    --gray-400: #9A9A9A;
    --gray-300: #C9C9C9;
    --gray-200: #E5E5E5;
    --gray-100: #F4F4F4;
    --gray-50:  #FAFAFA;

    --container: 80%;
    --header-h: 88px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-emph: cubic-bezier(0.65, 0, 0.35, 1);

    --radius: 28px;
    --radius-lg: 44px;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gray-900);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.55;
    font-size: 18px;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

::selection { background: var(--accent); color: #fff; }

/* ============ CONTAINER ============ */
.container {
    width: var(--container);
    max-width: 1600px;
    margin: 0 auto;
}

/* ============ PRELOADER ============ */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    transition: opacity 0.5s var(--ease), visibility 0s linear 0.5s;
}
.preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
}
.preloader__spinner {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 4px solid var(--accent-mid);
    border-top-color: var(--accent);
    animation: preloader-spin 0.9s linear infinite;
}
@keyframes preloader-spin {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .preloader__spinner { animation-duration: 2.4s; }
}

/* ============ HEADER ============ */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    width: 100%;
    z-index: 100;
    transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease);
    border-bottom: 1px solid transparent;
}

.header__inner {
    width: 100%;
    padding: 22px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    transition: padding 0.4s var(--ease);
}

.header.is-scrolled {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom-color: var(--gray-200);
}

.header.is-scrolled .header__inner {
    padding-top: 14px;
    padding-bottom: 14px;
}

.header__logo {
    display: flex;
    align-items: center;
    color: var(--black);
}
.header__logo-img {
    width: 60px;
    height: 60px;
    transition: transform 0.5s var(--ease);
}
.header__logo:hover .header__logo-img { transform: rotate(-8deg) scale(1.05); }

.header__nav {
    display: flex;
    align-items: center;
    gap: 48px;
    margin-left: auto;
}
.header__nav-link {
    position: relative;
    font-size: 20px;
    font-weight: 300;
    color: var(--gray-700);
    transition: color 0.25s var(--ease);
    padding: 6px 0;
    letter-spacing: -0.01em;
}
.header__nav-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease);
}
.header__nav-link:hover { color: var(--black); }
.header__nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.header__cta {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    border-radius: 100px;
    background: var(--black);
    color: #fff;
    font-size: 20px;
    font-weight: 300;
    letter-spacing: -0.01em;
    white-space: nowrap;
    transition: background 0.3s var(--ease), transform 0.3s var(--ease), padding 0.3s var(--ease), font-size 0.3s var(--ease);
}
.header__cta:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

/* CTA inside mobile menu — hidden on desktop, shown when burger is active */
.header__nav-cta { display: none; }

.header__burger {
    display: none;
    width: 42px; height: 42px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 101;
}
.header__burger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--black);
    transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.header__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger.is-open span:nth-child(2) { opacity: 0; }
.header__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 20px;
    font-weight: 300;
    letter-spacing: -0.01em;
    transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.4s var(--ease);
    will-change: transform;
}
.btn--primary {
    background: var(--accent);
    color: #fff;
}
.btn--primary:hover {
    transform: translateY(-3px);
}
.btn--primary svg { transition: transform 0.4s var(--ease); }
.btn--primary:hover svg { transform: translateX(4px); }

.btn--ghost {
    color: var(--black);
    border: 1px solid var(--gray-300);
}
.btn--ghost:hover {
    border-color: var(--black);
    background: var(--black);
    color: #fff;
}

.btn--lg {
    padding: 22px 44px;
    font-size: 26px;
}

/* ============ ACCENT TYPE ============ */
.accent { color: var(--accent); }

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: calc(var(--header-h) + 60px) 0 80px;
}

.hero__canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero__container {
    position: relative;
    z-index: 1;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-radius: 100px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 36px;
}
.hero__dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(255, 109, 0, 0.5);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 109, 0, 0.55); }
    70% { box-shadow: 0 0 0 14px rgba(255, 109, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 109, 0, 0); }
}

.hero__title {
    font-size: clamp(40px, 6.4vw, 104px);
    font-weight: 200;
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: var(--black);
    margin: 0 0 36px;
    max-width: 1300px;
}
.hero__title .accent {
    font-weight: 300;
}

.hero__subtitle {
    font-size: clamp(18px, 1.5vw, 24px);
    font-weight: 400;
    line-height: 1.55;
    color: var(--gray-500);
    max-width: 640px;
    margin: 0 0 48px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 100px;
}

.hero__scroll {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--gray-500);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 500;
}
.hero__scroll-line {
    width: 80px;
    height: 1px;
    background: var(--gray-300);
    position: relative;
    overflow: hidden;
}
.hero__scroll-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: translateX(-100%);
    animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

/* ============ STATS ============ */
.stats {
    padding: 100px 0 140px;
}
.stats__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}
.stats__item {
    border-top: 1px solid var(--gray-200);
    padding-top: 36px;
    transition: border-color 0.4s var(--ease);
}
.stats__item:hover { border-top-color: var(--accent); }
.stats__num {
    font-size: clamp(64px, 8vw, 128px);
    font-weight: 200;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--black);
    margin-bottom: 12px;
}
.stats__label {
    font-size: 18px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 22px;
}
.stats__text {
    font-size: 17px;
    color: var(--gray-500);
    line-height: 1.6;
    max-width: 320px;
    margin: 0;
}

/* ============ BIG TEXT ============ */
.bigtext {
    padding: 100px 0 140px;
}
.bigtext__eyebrow {
    font-size: 26px;
    color: var(--gray-500);
    font-weight: 300;
    margin: 0 0 36px;
    letter-spacing: -0.01em;
}
.bigtext__title {
    font-size: clamp(32px, 4.4vw, 72px);
    font-weight: 300;
    line-height: 1.18;
    letter-spacing: -0.025em;
    color: var(--gray-900);
    margin: 0;
    max-width: 1500px;
}

/* ============ SECTION HEAD ============ */
.section-head { margin-bottom: 80px; }
.section-head__eyebrow {
    font-size: 26px;
    color: var(--gray-500);
    font-weight: 300;
    margin: 0 0 28px;
    letter-spacing: -0.01em;
}
.section-head__title {
    font-size: clamp(40px, 5.6vw, 88px);
    font-weight: 200;
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: var(--black);
    margin: 0;
}

/* ============ SERVICES ============ */
.services { padding: 100px 0 140px; background: var(--gray-50); }

.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.service {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 48px;
    overflow: hidden;
    transition: transform 0.5s var(--ease);
}
.service::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at top right, var(--accent-soft), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s var(--ease);
    pointer-events: none;
}
.service:hover {
    transform: translateY(-6px);
}
.service:hover::before { opacity: 1; }

.service__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 28px;
    transition: transform 0.5s var(--ease);
}
.service__icon svg {
    width: 64px;
    height: 64px;
    display: block;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.service:hover .service__icon {
    transform: translateY(-2px) scale(1.04);
}
.service__title {
    font-size: clamp(28px, 2.4vw, 38px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--black);
    margin: 0 0 20px;
}
.service__text {
    font-size: 18px;
    color: var(--gray-500);
    line-height: 1.6;
    margin: 0 0 28px;
}
.service__list {
    border-top: 1px solid var(--gray-200);
    padding-top: 24px;
}
.service__list li {
    font-size: 20px;
    color: var(--gray-700);
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 14px;
}
.service__list li:last-child { border-bottom: 0; }
.service__list li::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

/* ============ APPROACH ============ */
.approach { padding: 100px 0 140px; }
.approach__list {
    border-top: 1px solid var(--gray-200);
}
.approach__item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 60px;
    padding: 48px 0;
    border-bottom: 1px solid var(--gray-200);
    align-items: baseline;
    position: relative;
    isolation: isolate;
}
.approach__item::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, var(--accent-soft), transparent 70%);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.6s var(--ease);
    z-index: -1;
    pointer-events: none;
}
.approach__item:hover::before { transform: scaleX(1); }
.approach__item:hover .approach__num,
.approach__item:hover .approach__body {
    transform: translateX(24px);
}
.approach__item:hover .approach__num { color: var(--accent); }

.approach__num {
    font-size: clamp(36px, 3.2vw, 52px);
    font-weight: 200;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--gray-400);
    transition: color 0.4s var(--ease), transform 0.5s var(--ease);
}
.approach__body {
    transition: transform 0.5s var(--ease);
}
.approach__title {
    font-size: clamp(28px, 3.2vw, 48px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--black);
    margin: 0 0 14px;
}
.approach__text {
    font-size: 19px;
    color: var(--gray-500);
    line-height: 1.6;
    margin: 0;
    max-width: 640px;
}

/* ============ PROJECTS ============ */
.projects { padding: 100px 0 140px; background: var(--gray-50); }

.projects__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}
.project {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
    transition: transform 0.5s var(--ease);
}
.project:hover {
    transform: translateY(-8px);
}

.project__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--gray-100);
}

.project__media--1 { background: linear-gradient(135deg, #1A1A1A 0%, #2C2C2C 100%); }
.project__media--2 { background: linear-gradient(135deg, var(--accent) 0%, #FF9A3D 100%); }
.project__media--3 { background: linear-gradient(135deg, #F4F4F4 0%, #E5E5E5 100%); }
.project__media--4 { background: linear-gradient(135deg, #0F0F0F 0%, #FF6D00 200%); }

.project__shape {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 40%);
    transition: transform 1.4s var(--ease), opacity 0.6s var(--ease);
}
.project__media--3 .project__shape {
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 109, 0, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(0, 0, 0, 0.05) 0%, transparent 40%);
}
.project:hover .project__shape {
    transform: scale(1.1) rotate(2deg);
}

.project__media::after {
    content: '→';
    position: absolute;
    bottom: 24px; right: 28px;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #fff;
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 300;
    transform: translate(8px, 8px) scale(0.8);
    opacity: 0;
    transition: all 0.5s var(--ease);
}
.project:hover .project__media::after {
    transform: translate(0, 0) scale(1);
    opacity: 1;
}

.project__info { padding: 36px 40px 40px; }
.project__tag {
    display: inline-block;
    font-size: 19px;
    color: var(--accent);
    margin-bottom: 8px;
    font-weight: 400;
    letter-spacing: 0.03em;
}
.project__title {
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--black);
    margin: 0 0 12px;
}
.project__text {
    font-size: 17px;
    color: var(--gray-500);
    line-height: 1.55;
    margin: 0;
}

/* ============ CTA ============ */
.cta { padding: 120px 0 160px; }
.cta__inner {
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}
.cta__eyebrow {
    font-size: 26px;
    color: var(--gray-500);
    font-weight: 300;
    margin: 0 0 28px;
    letter-spacing: -0.01em;
}
.cta__title {
    font-size: clamp(48px, 7vw, 120px);
    font-weight: 200;
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: var(--black);
    margin: 0 0 36px;
}
.cta__text {
    font-size: clamp(18px, 1.4vw, 22px);
    color: var(--gray-500);
    margin: 0 auto 64px;
    max-width: 640px;
}

.cta__contacts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 64px;
    text-align: left;
}
.cta__contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 40px;
    border-radius: var(--radius);
    background: var(--gray-50);
    transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}
a.cta__contact:hover {
    background: var(--gray-100);
    transform: translateY(-3px);
}
.cta__contact-label {
    font-size: 16px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}
.cta__contact-value {
    font-size: clamp(24px, 2vw, 30px);
    color: var(--black);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* ============ MAP ============ */
.map-section {
    position: relative;
    width: 100%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    min-height: clamp(440px, 60vh, 640px);
}
.map-section__frame-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}
.map-section__frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + 28px);
    border: 0;
    pointer-events: none;
    filter: grayscale(1) contrast(0.95) brightness(1.04);
}
.map-section__tint {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 28% 55%, rgba(255, 109, 0, 0.32) 0%, rgba(255, 109, 0, 0) 60%),
        linear-gradient(180deg, rgba(10, 10, 10, 0.20) 0%, rgba(10, 10, 10, 0.06) 50%, rgba(10, 10, 10, 0.22) 100%);
    mix-blend-mode: multiply;
    pointer-events: none;
}
.map-card {
    position: relative;
    z-index: 2;
    margin: 40px 0 40px 5%;
    width: min(440px, 90%);
    padding: 44px 40px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 30px 80px -20px rgba(10, 10, 10, 0.35);
}
.map-card__eyebrow {
    font-size: 16px;
    color: var(--gray-500);
    font-weight: 300;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}
.map-card__title {
    font-size: clamp(28px, 2.6vw, 38px);
    font-weight: 200;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--black);
    margin: 0 0 22px;
}
.map-card__addr {
    font-style: normal;
    font-size: 18px;
    color: var(--gray-700);
    line-height: 1.5;
    margin: 0 0 26px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
}
.map-card__route {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 28px;
}
.map-card__route-label {
    font-size: 13px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}
.map-card__route-text {
    font-size: 16px;
    color: var(--gray-700);
    line-height: 1.55;
    margin: 0;
}
.map-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--accent);
    transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.map-card__link svg {
    transition: transform 0.3s var(--ease);
}
.map-card__link:hover {
    gap: 12px;
}
.map-card__link:hover svg {
    transform: translateX(2px);
}

/* ============ FOOTER ============ */
.footer {
    width: 100%;
    background: var(--black);
    color: var(--gray-300);
    padding: 80px 0 40px;
}
.footer__inner {
    width: 100%;
    padding: 0 5%;
}
.footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__brand {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.footer__logo {
    display: inline-flex;
    align-items: center;
}
.footer__logo img {
    width: 60px; height: 60px;
    filter: brightness(0) invert(1);
    transition: transform 0.5s var(--ease), filter 0.4s var(--ease);
}
.footer__logo:hover img {
    transform: rotate(-8deg) scale(1.05);
    filter: none;
}
.footer__address {
    font-style: normal;
    color: var(--gray-400);
    font-size: 14px;
    line-height: 1.55;
    font-weight: 300;
    letter-spacing: -0.005em;
    max-width: 240px;
}
.footer__address-name {
    display: block;
    color: var(--gray-200);
    font-weight: 500;
    margin-bottom: 2px;
}

.footer__nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}
.footer__nav a {
    color: var(--gray-300);
    font-size: 20px;
    font-weight: 300;
    letter-spacing: -0.01em;
    transition: color 0.3s var(--ease);
}
.footer__nav a:hover { color: var(--accent); }

.footer__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 18px;
}
.footer__email {
    color: var(--gray-300);
    font-size: 28px;
    font-weight: 300;
    letter-spacing: -0.01em;
    transition: color 0.3s var(--ease);
}
.footer__email:hover { color: var(--accent); }

.footer__bottom {
    padding-top: 8px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--gray-500);
    font-size: 18px;
    font-weight: 300;
    letter-spacing: -0.005em;
}

.footer__legal {
    padding-top: 32px;
}
.footer__legal-link {
    font-size: 18px;
    color: var(--gray-500);
    font-weight: 300;
    letter-spacing: -0.005em;
    text-decoration: underline;
    text-decoration-color: var(--gray-700);
    text-underline-offset: 4px;
    transition: color 0.3s var(--ease), text-decoration-color 0.3s var(--ease);
}
.footer__legal-link:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

/* ============ MODAL ============ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.modal.is-open {
    visibility: visible;
    opacity: 1;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal__dialog {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 56px;
    transform: translateY(40px) scale(0.96);
    opacity: 0;
    transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
}
.modal.is-open .modal__dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal__close {
    position: absolute;
    top: 24px; right: 24px;
    width: 44px; height: 44px;
    border-radius: 50%;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.modal__close:hover {
    background: var(--gray-100);
    color: var(--black);
    transform: rotate(90deg);
}
.modal__close:focus { outline: none; }
.modal__close:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.modal__eyebrow {
    font-size: 18px;
    color: var(--gray-500);
    font-weight: 300;
    margin: 0 0 18px;
    letter-spacing: -0.01em;
}
.modal__title {
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 200;
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: var(--black);
    margin: 0 0 16px;
}
.modal__text {
    font-size: 18px;
    color: var(--gray-500);
    line-height: 1.55;
    margin: 0 0 32px;
}

.modal__success {
    text-align: center;
    padding: 24px 0;
}
.modal__success-icon {
    width: 88px; height: 88px;
    border-radius: 50%;
    margin: 0 auto 28px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* policy modal — wider dialog, document typography */
.modal__dialog--policy {
    max-width: 880px;
    padding: 64px 56px 48px;
}

.doc {
    color: var(--gray-700);
    font-size: 15px;
    line-height: 1.65;
}
.doc h1 {
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 200;
    letter-spacing: -0.03em;
    color: var(--black);
    line-height: 1.1;
    margin: 0 0 24px;
}
.doc h2 {
    font-size: 22px;
    font-weight: 500;
    color: var(--black);
    letter-spacing: -0.01em;
    margin: 36px 0 12px;
}
.doc h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--black);
    margin: 24px 0 10px;
}
.doc h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    margin: 20px 0 8px;
}
.doc p {
    margin: 0 0 14px;
}
.doc ul,
.doc ol {
    margin: 0 0 16px;
    padding-left: 22px;
}
.doc ul { list-style: disc; }
.doc ol { list-style: decimal; }
.doc li {
    margin-bottom: 8px;
    padding-left: 4px;
}
.doc li::marker { color: var(--accent); }
.doc strong { color: var(--black); font-weight: 600; }
.doc em { font-style: italic; }
.doc a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    word-break: break-word;
}
.doc a:hover { text-decoration: none; }
.doc hr {
    border: 0;
    border-top: 1px solid var(--gray-200);
    margin: 32px 0 24px;
}
.doc__loading,
.doc__error {
    color: var(--gray-500);
    font-size: 16px;
    text-align: center;
    padding: 40px 0;
}

/* ============ FORM ============ */
.form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.form__field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.form__label {
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.form__optional {
    text-transform: none;
    letter-spacing: 0;
    color: var(--gray-400);
    font-weight: 400;
}
.form__input {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    background: var(--gray-50);
    font-family: inherit;
    font-size: 18px;
    font-weight: 300;
    color: var(--black);
    letter-spacing: -0.01em;
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
    -webkit-appearance: none;
    appearance: none;
}
.form__input::placeholder {
    color: var(--gray-400);
    font-weight: 300;
}
.form__input:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 4px var(--accent-soft);
}
.form__input.is-invalid {
    border-color: #E53935;
    background: rgba(229, 57, 53, 0.04);
}
.form__textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}
.form__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-top: 6px;
}
.form__note {
    font-size: 13px;
    color: var(--gray-400);
    margin: 0;
    max-width: 280px;
    line-height: 1.45;
}
.form__submit { flex-shrink: 0; }

/* ============ REVEAL ANIMATION ============ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    will-change: transform, opacity;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

/* ============ COOKIE BANNER ============ */
.cookie {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 200;
    width: calc(100% - 48px);
    max-width: 380px;
    background: var(--black);
    color: var(--gray-200);
    border-radius: var(--radius);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    transform: translateY(140%);
    opacity: 0;
    transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
}
.cookie.is-visible {
    transform: translateY(0);
    opacity: 1;
}
.cookie__inner {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px 24px;
}
.cookie__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--gray-300);
}
.cookie__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.cookie__btn {
    padding: 10px 18px;
    font-size: 14px;
}
.cookie .btn--ghost {
    color: var(--gray-200);
    border-color: rgba(255, 255, 255, 0.18);
}
.cookie .btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}
@media (max-width: 768px) {
    .cookie {
        right: auto;
        left: 50%;
        bottom: 12px;
        width: calc(100% - 24px);
        transform: translate(-50%, 140%);
    }
    .cookie.is-visible {
        transform: translate(-50%, 0);
    }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1280px) {
    :root { --container: 86%; }
    .approach__item { grid-template-columns: 140px 1fr; gap: 40px; }
}

/* Tighten header so logo + nav + CTA fit comfortably on smaller laptops */
@media (max-width: 1200px) {
    .header__inner { gap: 20px; padding: 18px 24px; }
    .header__logo-img { width: 52px; height: 52px; }
    .header__nav { gap: 28px; }
    .header__nav-link { font-size: 17px; }
    .header__cta { font-size: 17px; padding: 12px 22px; }
    .header.is-scrolled .header__inner { padding-top: 12px; padding-bottom: 12px; }
}

@media (max-width: 1024px) {
    body { font-size: 17px; }
    :root { --container: 90%; }

    .stats__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .stats__item:last-child { grid-column: 1 / -1; }

    .services__grid, .projects__grid { grid-template-columns: 1fr; }

    .cta__contacts { grid-template-columns: 1fr; }

    .map-card { margin: 36px 4%; max-width: 460px; padding: 36px 32px; width: auto; }

    .footer__top { flex-direction: column; text-align: center; }
    .footer__brand { flex-direction: column; align-items: center; gap: 14px; }
    .footer__nav { justify-content: center; }
    .footer__right { align-items: center; }
}

/* Switch to burger menu before the desktop nav starts crowding the CTA */
@media (max-width: 960px) {
    .header__inner { padding: 14px 20px; gap: 16px; }
    .header__nav {
        position: fixed;
        top: 0; right: 0;
        height: 100vh;
        width: min(360px, 100%);
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 24px;
        padding: 80px 40px;
        transform: translateX(100%);
        transition: transform 0.5s var(--ease);
        border-left: 1px solid var(--gray-200);
        overflow-y: auto;
    }
    .header__nav.is-open { transform: translateX(0); }
    .header__nav-link { font-size: 22px; font-weight: 400; color: var(--black); }
    .header__cta { display: none; }
    .header__burger { display: flex; }
    .header__nav-cta {
        display: inline-flex;
        align-items: center;
        padding: 14px 26px;
        border-radius: 100px;
        background: var(--accent);
        color: #fff;
        font-size: 18px;
        font-weight: 400;
        letter-spacing: -0.01em;
        margin-top: 12px;
        transition: background 0.3s var(--ease), transform 0.3s var(--ease);
    }
    .header__nav-cta:hover { background: var(--black); transform: translateY(-2px); }
}

@media (max-width: 768px) {
    :root { --container: 90%; --header-h: 72px; }

    .header__inner { padding: 12px 18px; }
    .header__logo-img { width: 46px; height: 46px; }

    .hero { padding: calc(var(--header-h) + 40px) 0 60px; min-height: auto; }
    .hero__title { font-size: clamp(36px, 9vw, 56px); }
    .hero__subtitle { font-size: 17px; }
    .hero__actions { margin-bottom: 60px; }
    .btn { padding: 13px 24px; font-size: 17px; }
    .btn--lg { padding: 18px 32px; font-size: 21px; }

    .stats { padding: 56px 0 80px; }
    .stats__grid { grid-template-columns: 1fr; gap: 32px; }
    .stats__item:last-child { grid-column: auto; }
    .stats__num { font-size: 64px; }

    .bigtext { padding: 56px 0 80px; }
    .bigtext__title { font-size: 28px; line-height: 1.25; }

    .section-head { margin-bottom: 48px; }
    .section-head__title { font-size: clamp(32px, 9vw, 48px); }

    .services, .approach, .projects { padding: 56px 0 80px; }
    .service { padding: 32px 26px; }
    .service__title { font-size: 24px; }

    .approach__item {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 32px 0;
    }
    .approach__num { font-size: 32px; }
    .approach__title { font-size: 28px; }
    .approach__text { font-size: 17px; }

    .projects__grid { gap: 24px; }
    .project__info { padding: 26px 24px 30px; }

    .cta { padding: 56px 0 80px; }
    .cta__title { font-size: clamp(40px, 10vw, 56px); }
    .cta__text { margin-bottom: 40px; }
    .cta__contacts { gap: 14px; margin-bottom: 40px; }
    .cta__contact { padding: 28px 24px; gap: 10px; }
    .cta__contact-label { font-size: 14px; }
    .cta__contact-value { font-size: 22px; }

    .map-section {
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        padding-bottom: 24px;
    }
    .map-section__frame-wrap {
        position: relative;
        inset: auto;
        height: clamp(320px, 50vh, 460px);
    }
    .map-card {
        margin: -64px 5% 0;
        padding: 28px 24px;
        width: auto;
        max-width: none;
    }
    .map-card__eyebrow { font-size: 15px; margin-bottom: 12px; }
    .map-card__title { font-size: 28px; margin-bottom: 18px; }
    .map-card__addr { font-size: 17px; margin-bottom: 20px; padding-bottom: 20px; }
    .map-card__route { margin-bottom: 22px; }
    .map-card__route-text { font-size: 15px; }

    .footer { padding: 60px 0 28px; }
    .footer__top { padding-bottom: 40px; gap: 28px; }
    .footer__nav { gap: 20px; }
    .footer__nav a { font-size: 17px; }
    .footer__bottom { font-size: 16px; flex-direction: column; align-items: center; text-align: center; }
    .footer__legal { text-align: center; }
    .footer__legal-link { font-size: 16px; }
}

@media (max-width: 768px) {
    .modal { padding: 16px; }
    .modal__dialog { padding: 36px 24px; max-height: calc(100vh - 32px); }
    .modal__dialog--policy { padding: 48px 22px 32px; }
    .modal__close { top: 12px; right: 12px; width: 40px; height: 40px; }
    .modal__title { font-size: 32px; }
    .modal__text { font-size: 16px; }
    .doc { font-size: 14px; }
    .doc h2 { font-size: 20px; margin-top: 28px; }
    .doc h3 { font-size: 17px; }
    .form__row { grid-template-columns: 1fr; gap: 22px; }
    .form__input { font-size: 16px; padding: 14px 16px; }
    .form__footer { flex-direction: column; align-items: stretch; }
    .form__note { max-width: none; text-align: center; }
}

@media (max-width: 480px) {
    :root { --container: 92%; }

    .header__inner { padding: 10px 14px; gap: 12px; }
    .header__logo-img { width: 42px; height: 42px; }
    .header__burger { width: 38px; height: 38px; }

    .hero__eyebrow { font-size: 13px; padding: 8px 14px; }
    .hero__actions { gap: 12px; }
    .hero__actions .btn { width: 100%; }
    .hero__scroll-line { width: 50px; }

    .btn--lg { padding: 16px 28px; font-size: 19px; }

    .stats__num { font-size: 56px; }
    .bigtext__title { font-size: 26px; }
    .section-head__title { font-size: clamp(28px, 9vw, 42px); }
    .section-head__eyebrow,
    .bigtext__eyebrow,
    .cta__eyebrow { font-size: 22px; }

    .service { padding: 28px 22px; border-radius: 32px; }
    .service__icon svg { width: 52px; height: 52px; }
    .service__title { font-size: 22px; }
    .service__list li { font-size: 17px; padding: 12px 0; }

    .approach__item { padding: 24px 0; }
    .approach__title { font-size: 24px; }

    .cta__title { font-size: clamp(34px, 11vw, 48px); }

    .map-card { padding: 24px 20px; margin: -56px 4% 0; }
    .map-card__title { font-size: 24px; }

    .footer { padding: 48px 0 24px; }
    .footer__inner { padding: 0 4%; }
    .footer__nav { gap: 16px; }
    .footer__nav a { font-size: 16px; }
    .footer__email { font-size: 22px; }
    .footer__bottom { font-size: 14px; }
    .footer__legal-link { font-size: 14px; }
}

/* Very small phones — keep content readable without horizontal scroll */
@media (max-width: 360px) {
    .header__nav { width: 100%; padding: 70px 28px; }
    .modal__dialog { padding: 28px 18px; border-radius: 28px; }
    .modal__title { font-size: 26px; }
    .stats__num { font-size: 48px; }
    .map-card { padding: 22px 18px; }
}
