/* ── Reset ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── Design tokens ── */
:root {
    --bg: #131517;
    --white: #f0ede8;
    --g2: #2a2d30;
    --g3: #484c50;
    --g4: #8a9298;
    --g5: #b0b8bc;

    --font-sans: "Inter", system-ui, sans-serif;

    --max-width: 1360px;
    --padding-x: clamp(20px, 5vw, 80px);
    --section-padding: clamp(52px, 8vw, 88px);
    --section-padding-mobile: clamp(40px, 6vw, 64px);
}

/* ── Base ── */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("../assets/floorplan_text_removed.png") center / cover no-repeat;
    opacity: 0.07;
    pointer-events: none;
    z-index: 0;
}

main,
nav,
footer {
    position: relative;
    z-index: 1;
}

/* Offset anchor scroll for fixed nav */
[id] {
    scroll-margin-top: 64px;
}

/* ── Canvas grid (decorative background) ── */
#canvas-grid {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ── Custom cursor ── */
#cursor {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    mix-blend-mode: difference;
}

/* ── Shared container ── */
.about-container,
.services-container,
.approach-container,
.areas-container,
.footer-container {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding-left: var(--padding-x);
    padding-right: var(--padding-x);
}

/* ── Logo filter (inverts dark logo to white) ── */
.footer-ronin-logo {
    filter: grayscale(1) invert(1) opacity(0.7);
    display: block;
    width: auto;
    height: 60px;
}

/* ── Nav ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    height: 54px;
    overflow: visible;
    background: rgba(17, 18, 19, 0.88);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--padding-x);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.nav-logo {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-center {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    list-style: none;
}

.nav-logo,
.nav-center a,
.footer-links a {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--white);
    text-decoration: none;
    transition: color 0.18s ease;
}

.nav-logo:hover,
.nav-center a:hover,
.footer-links a:hover {
    color: var(--g5);
}

.nav-cta {
    justify-self: end;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--white);
    text-decoration: none;
    transition: color 0.18s ease;
}

.nav-cta:hover {
    color: var(--g5);
}

/* ── Buttons ── */
.btn-primary,
.btn-secondary {
    padding: 12px 28px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-decoration: none;
}

.btn-primary {
    background: var(--white);
    color: var(--bg);
    transition: opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.88;
}

.btn-secondary {
    color: var(--g5);
    border: 1px solid var(--g5);
    transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
    border-color: var(--g4);
    color: var(--white);
}

/* ── Hero ── */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    padding-top: 54px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-inner {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 48px var(--padding-x);
    min-height: calc(100vh - 54px);
    min-height: calc(100svh - 54px);
    display: flex;
    align-items: center;
}

.hero-inner > div {
    width: 100%;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
    font-size: clamp(9px, 1.1vw, 13px);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--g4);
    opacity: 0;
    animation: up 0.7s 0.1s ease forwards;
}

.hero-eyebrow-line {
    display: block;
    width: 28px;
    height: 1px;
    background: var(--g4);
}

.hero-title {
    display: block;
    width: max-content;
    max-width: 100%;
    white-space: normal;
    margin-bottom: 30px;
    font-family: var(--font-sans);
    font-size: clamp(36px, 6vw, 76px);
    font-weight: 300;
    line-height: 0.96;
    letter-spacing: -0.04em;
    opacity: 0;
    animation: up 0.9s 0.22s ease forwards;
}

.hero-subline {
    min-height: 1.3em;
    margin-bottom: 20px;
    font-family: var(--font-sans);
    font-style: italic;
    font-weight: 200;
    font-size: clamp(12px, 2.8vw, 36px);
    color: var(--g5);
    letter-spacing: -0.01em;
    white-space: nowrap;
    opacity: 0;
    animation: up 0.7s 0.42s ease forwards;
}

.blink {
    display: inline-block;
    width: 1.5px;
    height: 0.82em;
    margin-left: 2px;
    vertical-align: middle;
    background: var(--g4);
    animation: blink 0.85s step-end infinite;
}

.hero-actions {
    display: flex;
    gap: 12px;
    opacity: 0;
    animation: up 0.7s 0.6s ease forwards;
}

/* ── Shared section styles ── */
.section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-label {
    display: block;
    margin-bottom: 18px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--g4);
}

.section-title {
    font-family: var(--font-sans);
    font-size: clamp(28px, 3.8vw, 50px);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

/* ── Approach ── */
.approach {
    background: rgba(255, 255, 255, 0.70);
    border-top: 1px solid rgba(17, 18, 19, 0.08);
    border-bottom: 1px solid rgba(17, 18, 19, 0.08);
}

.approach-container {
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
}

.approach .section-label,
.areas-header .section-label {
    color: var(--g3);
}

.approach-head {
    margin-bottom: 34px;
}

.approach-title {
    margin-top: 10px;
    font-family: var(--font-sans);
    font-size: clamp(28px, 3.8vw, 50px);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--g2);
    overflow-wrap: break-word;
}

/* ── Pillar (shared by Approach + Locations) ── */
.pillars-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 4vw, 52px);
}

.pillar-rule {
    width: 36px;
    height: 1px;
    margin-bottom: 22px;
    background: rgba(17, 18, 19, 0.22);
}

.pillar-label {
    display: block;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--g3);
}

.pillar-headline {
    margin-bottom: 18px;
    font-family: var(--font-sans);
    font-size: clamp(30px, 2.8vw, 44px);
    font-weight: 300;
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: var(--g2);
    overflow-wrap: break-word;
}

.pillar-text {
    max-width: 30ch;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.8;
    letter-spacing: -0.01em;
    color: var(--g3);
}

/* ── About ── */
.about-container {
    padding-top: var(--section-padding);
    padding-bottom: 48px;
}

.about-grid {
    display: grid;
    grid-template-columns: clamp(100px, 12vw, 160px) minmax(0, 1fr);
    column-gap: clamp(24px, 3vw, 40px);
    row-gap: 24px;
    align-items: stretch;
}

.about-header {
    grid-column: 1 / -1;
    max-width: 760px;
    margin-bottom: 8px;
}

.about-photo-container {
    width: 100%;
    align-self: stretch;
}

.about-photo {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 180px;
    max-height: 320px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}

.about-body {
    max-width: 720px;
}

.about-body p {
    margin-bottom: 18px;
    font-size: clamp(13px, 2vw, 18px);
    font-weight: 300;
    line-height: 1.8;
    letter-spacing: -0.01em;
    color: var(--g4);
}

.about-body p:last-child {
    margin-bottom: 0;
}

/* ── Services ── */
.services-container {
    padding-top: 32px;
    padding-bottom: var(--section-padding);
}

.services-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.service-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--g2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--g5);
    font-size: clamp(12px, 1.4vw, 14px);
    font-weight: 400;
    letter-spacing: 0.03em;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.service-pill:hover {
    border-color: var(--g4);
    color: var(--white);
    background: rgba(255, 255, 255, 0.04);
}

/* ── Locations ── */
.areas {
    color: var(--bg);
    background: rgba(255, 255, 255, 0.70);
    border-top: 1px solid rgba(17, 18, 19, 0.08);
    border-bottom: 1px solid rgba(17, 18, 19, 0.08);
}

.areas-container {
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
}

.areas-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 44px;
    color: var(--g3);
}

.areas-header h2 {
    font-family: var(--font-sans);
    font-size: clamp(28px, 3.8vw, 50px);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--bg);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 4vw, 52px);
}

/* ── Contact ── */
.contact-container {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: var(--section-padding) var(--padding-x);
}

.contact-grid {
    display: inline-flex;
    flex-direction: column;
    gap: clamp(20px, 3vw, 32px);
    max-width: 100%;
}

.contact-description {
    margin-top: 12px;
    max-width: 44ch;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.8;
    letter-spacing: -0.01em;
    color: var(--g4);
}

.contact-rows {
    display: grid;
    grid-template-columns: 72px auto auto;
    column-gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-row {
    display: contents;
}

.contact-row-label,
.contact-row-value,
.contact-row-btn {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-row-label {
    font-size: clamp(11px, 1vw, 13px);
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--g4);
    align-self: center;
}

.contact-row-value {
    font-family: var(--font-sans);
    font-size: clamp(16px, 1.4vw, 19px);
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--white);
    user-select: text;
    align-self: center;
}

.contact-row-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-left: 12px;
    align-self: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.03);
    color: var(--g5);
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
    flex-shrink: 0;
}

.contact-row-btn:hover {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.07);
    color: var(--white);
}

.contact-sub {
    margin-top: 14px;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--g4);
}

.contact-sub a {
    color: var(--g5);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    transition: color 0.18s ease, border-color 0.18s ease;
}

.contact-sub a:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ── Footer ── */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 34px var(--padding-x);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 24px;
    white-space: nowrap;
}

.footer-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-tagline {
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--g3);
}

/* ── Scroll reveal (progressive enhancement) ── */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.85s ease, transform 0.85s ease;
}

.reveal.in {
    opacity: 1;
    transform: none;
}

.reveal-cascade > * {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.85s ease, transform 0.85s ease;
}

.reveal-cascade.in > *:nth-child(1) {
    opacity: 1;
    transform: none;
    transition-delay: 0.1s;
}

.reveal-cascade.in > *:nth-child(2) {
    opacity: 1;
    transform: none;
    transition-delay: 0.25s;
}

.reveal-cascade.in > *:nth-child(3) {
    opacity: 1;
    transform: none;
    transition-delay: 0.4s;
}

/* ── Keyframes ── */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0; }
}

@keyframes up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
}

/* ── Responsive: 980px (tablet landscape) ── */
@media (max-width: 980px) {
    .hero-title {
        white-space: normal;
    }

    .pillars-inner,
    .areas-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .areas-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .footer-container {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: space-between;
    }

    .contact-container {
        padding: var(--section-padding-mobile) var(--padding-x);
    }
}

/* ── Responsive: 860px (tablet portrait) ── */
@media (max-width: 860px) {
    nav {
        padding: 0 20px;
    }

    .hero-inner,
    .about-container,
    .services-container,
    .approach-container,
    .areas-container,
    .contact-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .nav-container {
        padding: 0 20px;
        grid-template-columns: 1fr auto;
    }

    .nav-center {
        display: none;
    }

    .nav-cta {
        justify-self: end;
    }

    .footer-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding-top: 28px;
        padding-bottom: 28px;
        text-align: center;
    }

    .footer-links {
        position: static;
        transform: none;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-right {
        margin-left: 0;
    }

    .hero-inner {
        padding-top: 64px;
        padding-bottom: 48px;
    }

    .about-container,
    .services-container,
    .approach-container,
    .areas-container {
        padding-top: var(--section-padding-mobile);
        padding-bottom: var(--section-padding-mobile);
    }

    .services-tags {
        gap: 8px;
    }

    #cursor {
        display: none;
    }

    .contact-row-value {
        font-size: 16px;
        word-break: break-word;
    }
}

/* ── Responsive: 640px (single-column) ── */
@media (max-width: 640px) {
    .pillars-inner,
    .areas-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-header {
        grid-column: auto;
        max-width: none;
        margin-bottom: 0;
    }

    .about-photo-container {
        width: clamp(160px, 40vw, 220px);
    }

    .about-body {
        max-width: none;
    }

    .about-body p {
        display: inline;
        white-space: normal;
        font-size: 16px;
        margin-bottom: 0;
    }
}

/* ── Responsive: 480px (small phones) ── */
@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        text-align: center;
    }

    .contact-rows {
        grid-template-columns: 52px 1fr auto;
        column-gap: 10px;
    }
}
