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

:root {
    --navy: #0C1420;
    --navy2: #111D2E;
    --navy3: #172540;
    --stone: #F0ECE4;
    --stone2: #E0D9CE;
    --gold: #B8883A;
    --gold2: #D4A855;
    --smoke: #8A9BB0;
    --muted: #4A5568;
    --white: #FFFFFF;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'Space Mono', monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--navy);
    color: var(--stone);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 4rem;
    transition: background 0.4s, box-shadow 0.4s;
}

nav.scrolled {
    background: rgba(12, 20, 32, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(184, 136, 58, 0.2);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--stone);
    text-decoration: none;
}

.nav-logo span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--smoke);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--stone);
}

.nav-cta {
    background: var(--gold);
    color: var(--navy) !important;
    padding: 0.6rem 1.4rem;
    border-radius: 2px;
    font-weight: 600 !important;
    color: var(--navy) !important;
    transition: background 0.2s !important;
}

.nav-cta:hover {
    background: var(--gold2) !important;
    color: var(--navy) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--stone);
    transition: all 0.3s;
}

/* ── HERO ── */
#hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: var(--navy);
}

/* Blueprint grid */
.blueprint-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.07;
    background-image:
        linear-gradient(rgba(184, 136, 58, 0.6) 1px, transparent 1px),
        linear-gradient(90deg, rgba(184, 136, 58, 0.6) 1px, transparent 1px);
    background-size: 60px 60px;
}

.blueprint-grid::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(184, 136, 58, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(184, 136, 58, 0.3) 1px, transparent 1px);
    background-size: 12px 12px;
}

/* Large structural R */
.hero-letter {
    position: absolute;
    right: -2vw;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: clamp(28rem, 38vw, 52rem);
    font-weight: 700;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(184, 136, 58, 0.13);
    user-select: none;
    pointer-events: none;
    letter-spacing: -0.05em;
}

/* Diagonal gradient overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg,
            rgba(12, 20, 32, 0.98) 0%,
            rgba(12, 20, 32, 0.85) 55%,
            rgba(12, 20, 32, 0.1) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 4rem;
    max-width: 900px;
    padding-top: 6rem;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--gold);
}

h1.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 7vw, 7rem);
    font-weight: 600;
    line-height: 1.0;
    color: var(--stone);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

h1.hero-title em {
    font-style: italic;
    color: var(--gold2);
}

.hero-sub {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--smoke);
    line-height: 1.8;
    max-width: 480px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--gold);
    color: var(--navy);
    padding: 0.9rem 2rem;
    border-radius: 2px;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--gold2);
    transform: translateY(-1px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid rgba(184, 136, 58, 0.5);
    color: var(--stone2);
    padding: 0.9rem 2rem;
    border-radius: 2px;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--stone);
}

.hero-stats {
    position: absolute;
    bottom: 4rem;
    left: 4rem;
    right: 4rem;
    z-index: 2;
    display: flex;
    gap: 3rem;
    border-top: 1px solid rgba(184, 136, 58, 0.2);
    padding-top: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--stone);
    line-height: 1;
}

.stat-number span {
    color: var(--gold);
}

.stat-label {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--smoke);
    margin-top: 0.3rem;
}

/* ── ANGLE DIVIDER ── */
.angle-down {
    width: 100%;
    height: 80px;
    background: var(--stone);
    clip-path: polygon(0 0, 100% 60%, 100% 100%, 0 100%);
    margin-top: -1px;
}

.angle-up {
    width: 100%;
    height: 80px;
    background: var(--stone);
    clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%);
    margin-bottom: -1px;
}

.angle-down-navy {
    width: 100%;
    height: 80px;
    background: var(--navy);
    clip-path: polygon(0 0, 100% 60%, 100% 100%, 0 100%);
}

.angle-up-navy {
    width: 100%;
    height: 80px;
    background: var(--navy);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 40%);
    margin-bottom: -1px;
}

/* ── SERVICES ── */
#services {
    background: var(--stone);
    padding: 5rem 4rem 3rem;
    color: var(--navy);
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.section-label::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--gold);
}

h2.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--navy);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

h2.section-title em {
    font-style: italic;
    color: var(--gold);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--muted);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 3.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2px;
    margin-top: 2rem;
}

.service-card {
    background: var(--navy2);
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: background 0.25s;
    cursor: default;
}

.service-card:hover {
    background: var(--navy3);
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.35s;
}

.service-card:hover::after {
    width: 100%;
}

.service-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 1.5rem;
    color: var(--gold);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

h3.service-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--stone);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.service-desc {
    font-size: 0.875rem;
    color: var(--smoke);
    line-height: 1.75;
}

/* ── WHY US / ABOUT ── */
#about {
    background: var(--stone);
    padding: 2rem 4rem 5rem;
    color: var(--navy);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-left {}

.about-right {}

.feature-list {
    list-style: none;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(184, 136, 58, 0.12);
    border: 1px solid rgba(184, 136, 58, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    border-radius: 2px;
}

.feature-text h4 {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.feature-text p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.65;
}

.stats-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(12, 20, 32, 0.08);
}

.stat-box {
    background: var(--stone2);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
}

.stat-box .big {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}

.stat-box .big span {
    color: var(--gold);
}

.stat-box .label {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 0.5rem;
}

.stat-box.dark {
    background: var(--navy);
}

.stat-box.dark .big {
    color: var(--stone);
}

.stat-box.dark .label {
    color: var(--smoke);
}

/* ── PROCESS ── */
#process {
    background: var(--navy);
    padding: 5rem 4rem;
}

h2.section-title.light {
    color: var(--stone);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 3rem;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.process-step {
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.step-dot {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(184, 136, 58, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    background: var(--navy);
    z-index: 1;
    position: relative;
}

.step-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--stone);
    margin-bottom: 0.5rem;
}

.step-desc {
    font-size: 0.83rem;
    color: var(--smoke);
    line-height: 1.7;
}

/* ── PORTFOLIO ── */
#portfolio {
    background: var(--navy);
    padding: 0 4rem 5rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 240px 240px;
    gap: 3px;
    margin-top: 2.5rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    background: var(--navy3);
    cursor: pointer;
}

.portfolio-item.tall {
    grid-row: 1 / 3;
}

.portfolio-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 5rem;
    color: rgba(184, 136, 58, 0.06);
    font-weight: 700;
}

/* Decorative construction patterns */
.portfolio-item:nth-child(1) .portfolio-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 20px,
            rgba(184, 136, 58, 0.03) 20px,
            rgba(184, 136, 58, 0.03) 21px);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 20, 32, 0.95) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    transition: opacity 0.3s;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 0.8;
}

.portfolio-category {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.4rem;
}

.portfolio-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--stone);
}

/* ── LEAD FORM ── */
#contact {
    background: var(--stone);
    padding: 6rem 4rem;
    color: var(--navy);
}

.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-left h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--navy);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.contact-left h2 em {
    font-style: italic;
    color: var(--gold);
}

.contact-left p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.contact-item-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(184, 136, 58, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    border-radius: 2px;
}

.contact-item-text {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.5;
}

.contact-item-text strong {
    display: block;
    font-weight: 600;
    color: var(--navy);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.15rem;
}

/* Form */
.lead-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--navy);
}

input,
select,
textarea {
    background: var(--white);
    border: 1px solid rgba(12, 20, 32, 0.18);
    border-radius: 2px;
    padding: 0.8rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--navy);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 136, 58, 0.12);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230C1420' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

textarea {
    resize: vertical;
    min-height: 110px;
}

.form-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.submit-btn {
    background: var(--navy);
    color: var(--stone);
    border: none;
    border-radius: 2px;
    padding: 0.95rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.submit-btn:hover {
    background: var(--navy3);
    transform: translateY(-1px);
}

.submit-btn svg {
    transition: transform 0.2s;
}

.submit-btn:hover svg {
    transform: translateX(3px);
}

.form-note {
    font-size: 0.75rem;
    color: var(--smoke);
    line-height: 1.5;
    flex: 1;
    min-width: 160px;
}

.success-msg {
    display: none;
    background: rgba(184, 136, 58, 0.1);
    border: 1px solid rgba(184, 136, 58, 0.4);
    border-radius: 2px;
    padding: 1rem 1.25rem;
    color: var(--navy);
    font-size: 0.875rem;
    line-height: 1.6;
}

.success-msg.show {
    display: block;
}

/* Error states */
input.error,
select.error,
textarea.error {
    border-color: #c0392b;
}

.error-msg {
    font-size: 0.72rem;
    color: #c0392b;
    display: none;
}

.error-msg.show {
    display: block;
}

/* ── FOOTER ── */
footer {
    background: var(--navy);
    padding: 4rem 4rem 2rem;
    color: var(--smoke);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(184, 136, 58, 0.15);
}

.footer-brand .nav-logo {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    display: block;
}

.footer-tagline {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--smoke);
    max-width: 260px;
}

.footer-col h5 {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--stone2);
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-col a {
    font-size: 0.875rem;
    color: var(--smoke);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--stone);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.78rem;
    color: var(--smoke);
    opacity: 0.6;
}

.footer-bottom a {
    color: var(--smoke);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--stone);
}

/* ── SCROLL ANIMATIONS ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    nav {
        padding: 1.2rem 2rem;
    }

    .hero-content {
        padding: 6rem 2rem 2rem;
    }

    .hero-stats {
        left: 2rem;
        right: 2rem;
    }

    #services,
    #about,
    #process,
    #portfolio,
    #contact {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    footer {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .stats-right {
        grid-template-columns: 1fr 1fr;
    }

    .contact-wrap {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .process-steps::before {
        display: none;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .portfolio-item.tall {
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    
    #hero {
    min-height: 50vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: var(--navy);
    }
    
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    h1.hero-title {
        font-size: 2.8rem;
    }

    .hero-stats {
        display: none;
    }

    .hero-letter {
        font-size: 20rem;
        opacity: 0.5;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .footer-top {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }
}

/* ── MOBILE NAV DRAWER ── */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--navy);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--stone);
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-nav a:hover {
    color: var(--gold);
}

.mobile-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--stone);
    font-size: 2rem;
    cursor: pointer;
    z-index: 999;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition: none;
    }

    * {
        transition: none !important;
        animation: none !important;
    }
}