/* =========================================================
   Urban Build & Co — Editorial Stylesheet
   Palette: Navy Architectural · Layout: Editorial
   ========================================================= */

:root {
    /* Colors — Navy Architectural palette */
    --bg: #F7F9FC;
    --surface: #FFFFFF;
    --ink: #0E1B2E;
    --ink-soft: #455773;
    --ink-mute: #8593AD;
    --line: #E5EAF2;
    --line-strong: #C9D2E0;
    --accent: #1E5AB8;
    --accent-dark: #15407F;
    --accent-soft: #E8F0FC;
    --dark: #0E1B2E;
    --dark-soft: #1A2940;
    --whatsapp: #25D366;

    /* Type */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Layout */
    --container: 1320px;
    --gutter: clamp(1.5rem, 4vw, 3rem);
    --radius-sm: 4px;
    --radius: 8px;

    /* Motion */
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--bg);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    font-feature-settings: "ss01", "cv01";
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: var(--ink);
}

p { color: var(--ink-soft); line-height: 1.7; }

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--ink-soft);
    letter-spacing: 0.24em;
    text-transform: uppercase;
}
.kicker::before {
    content: '';
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: 0.5;
}

.serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
}

/* ---------- Layout helpers ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

section { position: relative; }

.hairline {
    width: 100%;
    height: 1px;
    background: var(--line);
}
.hairline-dark { background: rgba(255,255,255,0.1); }

/* ---------- Header ---------- */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.header.scrolled {
    background: rgba(247, 249, 252, 0.92);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 1px 0 var(--line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 84px;
    gap: 2rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
.logo img {
    height: 50px;
    width: auto;
    max-width: 240px;
    display: block;
    object-fit: contain;
}
.footer .logo img { height: 38px; filter: brightness(0) invert(1); }

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin-left: auto;
}
.nav-links a {
    position: relative;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink);
    padding: 0.4rem 0;
    transition: color 0.3s var(--ease);
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    height: 1px; width: 0;
    background: var(--ink);
    transition: width 0.4s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding-left: 2rem;
}
.lang-btn {
    background: none;
    border: none;
    color: var(--ink-mute);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.35rem;
    transition: color 0.3s var(--ease);
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.active { color: var(--ink); }
.lang-sep { color: var(--line-strong); font-size: 0.75rem; }

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.menu-toggle span {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--ink);
    transition: transform 0.4s var(--ease), opacity 0.2s var(--ease);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Header on dark sections */
.header.on-dark:not(.scrolled) .nav-links a,
.header.on-dark:not(.scrolled) .lang-btn,
.header.on-dark:not(.scrolled) .lang-sep { color: rgba(255,255,255,0.85); }
.header.on-dark:not(.scrolled) .nav-links a::after { background: #fff; }
.header.on-dark:not(.scrolled) .lang-btn.active { color: #fff; }
.header.on-dark:not(.scrolled) .menu-toggle span { background: #fff; }
.header.on-dark:not(.scrolled) .logo img {
    /* On dark hero, if logo is dark, invert. Comment out if logo is already light */
    filter: brightness(0) invert(1);
}

/* ---------- Buttons & links ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem 1.75rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    transition: background 0.4s var(--ease), color 0.4s var(--ease),
                border-color 0.4s var(--ease), transform 0.4s var(--ease);
    min-height: 52px;
    white-space: nowrap;
    position: relative;
}
.btn .arrow {
    display: inline-block;
    transition: transform 0.4s var(--ease);
}
.btn:hover .arrow { transform: translateX(5px); }

.btn-solid {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}
.btn-solid:hover { background: var(--accent); border-color: var(--accent); }

.btn-line {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn-line:hover { background: var(--ink); color: #fff; }

.btn-line-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.35);
}
.btn-line-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
    padding-bottom: 0.3rem;
    border-bottom: 1px solid currentColor;
    transition: gap 0.4s var(--ease), color 0.3s var(--ease);
}
.link-arrow:hover { gap: 0.8rem; color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--dark);
    color: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 9rem 0 3rem;
}

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 5vh;
}
.hero-top .index { font-family: var(--font-serif); font-style: italic; letter-spacing: 0.05em; text-transform: none; font-size: 0.95rem; color: var(--accent); }

.hero-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: auto 0;
}

.hero-title {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(2.6rem, 8.5vw, 7.5rem);
    line-height: 0.98;
    letter-spacing: -0.025em;
    color: #fff;
    max-width: 14ch;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}
.hero-title .italic {
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
}
.hero-title .line {
    display: block;
    overflow: hidden;
}
.hero-title .line > span {
    display: block;
    transform: translateY(120%);
    transition: transform 1.1s var(--ease-out);
}
.hero.in .hero-title .line > span { transform: translateY(0); }
.hero.in .hero-title .line:nth-child(2) > span { transition-delay: 0.12s; }
.hero.in .hero-title .line:nth-child(3) > span { transition-delay: 0.24s; }
.hero.in .hero-title .line:nth-child(4) > span { transition-delay: 0.36s; }

.hero-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: end;
}

.hero-row p {
    color: rgba(255,255,255,0.72);
    max-width: 42ch;
    font-size: clamp(1rem, 1.1vw, 1.1rem);
    line-height: 1.7;
}

.hero-cta-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
}

.hero-bottom {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1rem, 3vw, 2rem);
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    margin-top: 5vh;
}
.hero-meta {
    display: flex;
    flex-direction: column;
}
.hero-meta .num {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 2.4vw, 2.1rem);
    font-weight: 500;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}
.hero-meta .num em {
    font-style: italic;
    color: var(--accent);
    font-weight: 400;
}
.hero-meta .lbl {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* ---------- Manifesto strip ---------- */
.manifesto {
    padding: clamp(5rem, 10vw, 9rem) 0;
    border-bottom: 1px solid var(--line);
}
.manifesto-text {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(1.6rem, 3.2vw, 2.6rem);
    line-height: 1.2;
    color: var(--ink);
    max-width: 28ch;
    letter-spacing: -0.015em;
}
.manifesto-text em {
    font-style: italic;
    color: var(--accent);
    font-weight: 400;
}
.manifesto-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
.manifesto-row .kicker { padding-top: 0.5rem; }

/* ---------- Section frame ---------- */
.section {
    padding: clamp(5rem, 10vw, 9rem) 0;
    position: relative;
}
.section-frame {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}
.section-frame .col-meta { position: sticky; top: 110px; }
.section-meta-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    line-height: 1.05;
    letter-spacing: -0.015em;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    max-width: 12ch;
}
.section-meta-desc {
    font-size: 0.95rem;
    color: var(--ink-soft);
    max-width: 32ch;
}

/* ---------- Services (editorial list) ---------- */
.services-list {
    border-top: 1px solid var(--line);
}
.service-row {
    display: grid;
    grid-template-columns: 70px 1.1fr 1.3fr;
    gap: clamp(1rem, 4vw, 3rem);
    padding: clamp(2rem, 3.5vw, 3rem) 0;
    border-bottom: 1px solid var(--line);
    align-items: start;
    position: relative;
    transition: padding 0.5s var(--ease);
}
.service-row::before {
    content: '';
    position: absolute;
    inset: auto 0 -1px 0;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.7s var(--ease-out);
}
.service-row:hover::before { transform: scaleX(1); }

.service-num {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--accent);
    letter-spacing: 0.02em;
    padding-top: 0.3rem;
}
.service-title {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--ink);
    transition: color 0.4s var(--ease);
}
.service-row:hover .service-title { color: var(--accent); }

.service-desc {
    font-size: 1rem;
    color: var(--ink-soft);
    line-height: 1.7;
    max-width: 56ch;
}

/* ---------- Selected Works ---------- */
.works {
    padding: clamp(5rem, 10vw, 9rem) 0;
}

.works-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 2rem;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}
.works-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: -0.02em;
    max-width: 16ch;
}
.works-header h2 em { font-style: italic; color: var(--accent); font-weight: 400; }

.works-list {
    display: flex;
    flex-direction: column;
    gap: clamp(4rem, 8vw, 7rem);
}

.work-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}
.work-item:nth-child(even) .work-image { order: 2; }
.work-item:nth-child(even) .work-text { order: 1; }

.work-image {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: var(--line);
    border-radius: var(--radius);
}
.work-image::after {
    /* very subtle inset shadow on photo edges */
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(14, 27, 46, 0.04);
    pointer-events: none;
    border-radius: var(--radius);
    z-index: 4;
}
.work-image img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.4s var(--ease), transform 1.8s var(--ease-out);
    transform: scale(1.03);
    will-change: opacity, transform;
}
.work-image img.active { opacity: 1; }
.work-image:hover img.active { transform: scale(1.06); }

.work-image .badge {
    position: absolute;
    top: 1.25rem; left: 1.25rem;
    z-index: 3;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
    padding: 0.4rem 0.85rem;
    border: 1px solid rgba(255,255,255,0.6);
    backdrop-filter: blur(8px);
    background: rgba(14, 27, 46, 0.35);
    border-radius: 999px;
}
.work-image .indicators {
    position: absolute;
    left: 1.25rem; bottom: 1.25rem;
    display: flex; gap: 6px;
    z-index: 3;
}
.work-image .indicators span {
    width: 22px; height: 1px;
    background: rgba(255,255,255,0.35);
    transition: background 0.5s var(--ease);
}
.work-image .indicators span.active { background: #fff; }

.work-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-soft) 0%, #D5E2F4 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    gap: 1rem;
    text-align: center;
    padding: 2rem;
}
.work-placeholder svg { width: 38px; height: 38px; opacity: 0.6; }
.work-placeholder .pl-title {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--accent-dark);
}
.work-placeholder .pl-sub {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}

.work-index {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--accent);
    margin-bottom: 1.25rem;
    display: block;
}
.work-title {
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 1.5rem;
}
.work-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--line);
}
.work-meta span { display: inline-flex; align-items: center; }
.work-meta span + span::before {
    content: '·';
    margin-right: 1.25rem;
    color: var(--line-strong);
}
.work-desc {
    font-size: 1rem;
    color: var(--ink-soft);
    line-height: 1.75;
    max-width: 52ch;
    margin-bottom: 1.75rem;
}

/* ---------- Process ---------- */
.process {
    padding: clamp(5rem, 10vw, 9rem) 0;
    background: var(--dark);
    color: #fff;
}
.process .section-meta-title,
.process .section-meta-desc { color: #fff; }
.process .section-meta-desc { color: rgba(255,255,255,0.65); }
.process .kicker { color: rgba(255,255,255,0.6); }
.process .kicker::before { background: rgba(255,255,255,0.4); }

.process-list {
    border-top: 1px solid rgba(255,255,255,0.12);
}
.process-step {
    display: grid;
    grid-template-columns: 80px 1.1fr 1.3fr;
    gap: clamp(1rem, 4vw, 3rem);
    padding: clamp(1.75rem, 3vw, 2.5rem) 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    align-items: start;
}
.step-num {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--accent);
    padding-top: 0.3rem;
}
.step-title {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    font-weight: 500;
    line-height: 1.1;
    color: #fff;
    letter-spacing: -0.01em;
}
.step-desc {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    max-width: 56ch;
}

/* ---------- Values (typographic statement) ---------- */
.values {
    padding: clamp(5rem, 12vw, 11rem) 0;
}
.values-statement {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
    max-width: 22ch;
    margin: 0 auto clamp(3rem, 6vw, 5rem);
    text-align: center;
    font-weight: 500;
}
.values-statement em { font-style: italic; color: var(--accent); font-weight: 400; }

.values-list {
    max-width: 760px;
    margin: 0 auto;
    border-top: 1px solid var(--line);
}
.value-row {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 2rem;
    padding: 1.85rem 0;
    border-bottom: 1px solid var(--line);
    align-items: baseline;
}
.value-num {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--accent);
    font-size: 1rem;
}
.value-content h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--ink);
}
.value-content p {
    font-size: 0.98rem;
    color: var(--ink-soft);
    line-height: 1.7;
    max-width: 56ch;
}

/* ---------- Contact ---------- */
.contact {
    padding: clamp(5rem, 10vw, 9rem) 0 clamp(3rem, 6vw, 5rem);
    background: var(--dark);
    color: #fff;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.contact-wrap {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: end;
}
.contact-statement {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1;
    letter-spacing: -0.025em;
    color: #fff;
    margin-bottom: 2.5rem;
    max-width: 12ch;
    font-weight: 500;
}
.contact-statement em { font-style: italic; color: var(--accent); font-weight: 400; }
.contact-intro {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    line-height: 1.75;
    max-width: 46ch;
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    padding-left: 2rem;
    border-left: 1px solid rgba(255,255,255,0.15);
}
.contact-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.contact-row .lbl {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.contact-row .val {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 400;
    transition: color 0.3s var(--ease);
}
.contact-row a.val:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.55);
    padding: 3rem 0 1.75rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand p {
    color: rgba(255,255,255,0.55);
    font-size: 0.92rem;
    max-width: 36ch;
    margin-top: 1.25rem;
}
.footer-col h4 {
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.65rem; }
.footer-col a, .footer-col p {
    color: rgba(255,255,255,0.55);
    font-size: 0.92rem;
    transition: color 0.3s var(--ease);
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.04em;
}

/* ---------- WhatsApp float ---------- */
.wa-float {
    position: fixed;
    bottom: 1.75rem; right: 1.75rem;
    width: 56px; height: 56px;
    background: var(--whatsapp);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 24px -8px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: transform 0.4s var(--ease);
}
.wa-float::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid var(--whatsapp);
    animation: ring 2.4s var(--ease) infinite;
    opacity: 0.5;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 26px; height: 26px; fill: #fff; position: relative; z-index: 1; }
@keyframes ring {
    0% { transform: scale(1); opacity: 0.65; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ---------- Reveal animations (gated on JS-ready) ---------- */
.reveal { will-change: opacity, transform; }
html.js-ready .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
    transition-delay: calc(var(--d, 0) * 80ms);
}
html.js-ready .reveal.in { opacity: 1; transform: none; }

.reveal-img { position: relative; }
html.js-ready .reveal-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg);
    z-index: 2;
    transform-origin: top;
    transition: transform 1.2s var(--ease-out);
    pointer-events: none;
}
html.js-ready .reveal-img.in::before { transform: scaleY(0); }
.work-text .reveal-img::before { background: var(--bg); }
.process .reveal-img::before,
.contact .reveal-img::before,
.hero .reveal-img::before { background: var(--dark); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
    .reveal, html.js-ready .reveal { opacity: 1; transform: none; }
    .reveal-img::before { display: none; }
    .hero-title .line > span { transform: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .section-frame { grid-template-columns: 1fr; gap: 2.5rem; }
    .section-frame .col-meta { position: static; }
    .service-row { grid-template-columns: 60px 1fr; }
    .service-row .service-desc { grid-column: 1 / -1; padding-left: 60px; padding-top: 0.5rem; }
    .process-step { grid-template-columns: 60px 1fr; }
    .process-step .step-desc { grid-column: 1 / -1; padding-left: 60px; padding-top: 0.5rem; }
    .works-header { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .hero { padding: 7rem 0 2.5rem; }
    .hero-row { grid-template-columns: 1fr; gap: 2rem; }
    .hero-bottom { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }
    .work-item { grid-template-columns: 1fr; gap: 2rem; }
    .work-item:nth-child(even) .work-image { order: unset; }
    .work-item:nth-child(even) .work-text { order: unset; }
    .work-image { aspect-ratio: 4/3; }
    .manifesto-row { grid-template-columns: 1fr; gap: 1.5rem; }
    .contact-wrap { grid-template-columns: 1fr; gap: 3rem; align-items: start; }
    .contact-details { padding-left: 0; padding-top: 2rem; border-left: 0; border-top: 1px solid rgba(255,255,255,0.15); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .nav-links {
        position: absolute;
        top: 84px; left: 0; right: 0;
        flex-direction: column;
        gap: 0;
        padding: 1rem var(--gutter) 1.5rem;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
    }
    .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
    .nav-links li { width: 100%; border-bottom: 1px solid var(--line); }
    .nav-links li:last-child { border-bottom: 0; }
    .nav-links a { display: block; padding: 1rem 0; font-size: 1rem; }
    .nav-links a::after { display: none; }
    .menu-toggle { display: inline-flex; }
    .lang-switch { margin-left: auto; padding-left: 0; }

    .header.on-dark:not(.scrolled) .nav-links { background: var(--bg); }
    .header.on-dark:not(.scrolled) .nav-links a { color: var(--ink); }

    .hero-top { font-size: 0.65rem; }
    .hero-bottom { grid-template-columns: repeat(2, 1fr); }
    .works-header h2 { font-size: clamp(2rem, 8vw, 2.6rem); }
    .work-meta { font-size: 0.7rem; gap: 0.3rem 1rem; }
    .work-meta span + span::before { margin-right: 1rem; }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2rem; }
    .footer-brand { grid-column: auto; }

    .wa-float { bottom: 1.25rem; right: 1.25rem; width: 52px; height: 52px; }
}
