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

:root {
    --bg: #0C0B09;
    --fg: #FFFFFF;
    --accent: #DC5500;
    --accent-dim: #DC5500;
    --muted: #FFFFFF;
    --surface: #1A1815;
}

html { font-size: 16px; }

body {
    background: var(--bg);
    color: var(--fg);
    font-family: 'Calibri', sans-serif;
    font-weight: 300;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ── Background Image ── */
.bg-image {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: url('bg.png') center center / cover no-repeat;
}

.bg-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(12, 11, 9, 0.72) 0%,
        rgba(12, 11, 9, 0.50) 40%,
        rgba(12, 11, 9, 0.55) 60%,
        rgba(12, 11, 9, 0.82) 100%
    );
}

/* ── Preloader ── */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.loader-line {
    width: 60px;
    height: 1px;
    background: var(--muted);
    position: relative;
    overflow: hidden;
}

.loader-line::after {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    animation: slide 1.2s ease-in-out infinite;
}

@keyframes slide {
    0% { left: -100%; }
    50% { left: 0; }
    100% { left: 100%; }
}

/* ── Grain Overlay ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 128px 128px;
}

/* ── Decorative Grid Lines ── */
.grid-lines {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.grid-lines .v-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(220, 85, 0, 0.08) 30%, rgba(220, 85, 0, 0.08) 70%, transparent);
}

.grid-lines .v-line:nth-child(1) { left: 20%; }
.grid-lines .v-line:nth-child(2) { left: 50%; }
.grid-lines .v-line:nth-child(3) { left: 80%; }

/* ── Layout ── */
.page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 1s ease 0.3s;
}

.page.visible { opacity: 1; }

/* ── Header ── */
header {
    padding: 2.5rem 3.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 400;
    font-size: 1.1rem;
    letter-spacing: 0.35em;
    color: var(--fg);
    text-transform: uppercase;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.6s;
}

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

nav li {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    cursor: default;
    transition: color 0.3s ease;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}

nav li:nth-child(1) { animation-delay: 0.7s; }
nav li:nth-child(2) { animation-delay: 0.8s; }
nav li:nth-child(3) { animation-delay: 0.9s; }
nav li:nth-child(4) { animation-delay: 1.0s; }
nav li:nth-child(5) { animation-delay: 1.1s; }
nav li:nth-child(6) { animation-delay: 1.2s; }

nav li.active {
    color: #FFFFFF;
}

nav li:hover {
    color: var(--fg);
}

/* ── Hero ── */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.hero-badge {
    font-size: 0.6rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: #FFFFFF;
    margin-bottom: 2.5rem;
    position: relative;
    opacity: 0;
    animation: fadeUp 1s ease forwards 1s;
}

.hero-badge::before,
.hero-badge::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: var(--accent-dim);
}

.hero-badge::before { right: calc(100% + 16px); }
.hero-badge::after { left: calc(100% + 16px); }

.hero h1 {
    font-weight: 300;
    font-size: clamp(2.8rem, 7vw, 6.5rem);
    letter-spacing: 0.12em;
    line-height: 1.1;
    color: var(--accent);
    margin-bottom: 0.3em;
    opacity: 0;
    animation: fadeUp 1.2s ease forwards 1.1s;
    text-shadow: 0 2px 40px rgba(0,0,0,0.6);
}

.hero h1 span {
    display: block;
    font-style: italic;
    font-size: 0.45em;
    letter-spacing: 0.25em;
    color: var(--accent);
    margin-top: 0.4em;
    font-weight: 300;
    text-shadow: none;
}

.divider {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    margin: 2rem auto;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards 1.4s;
}

.architect-info {
    max-width: 500px;
    text-align: center;
    opacity: 0;
    animation: fadeUp 1s ease forwards 1.6s;
}

.architect-name {
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--fg);
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}

.architect-title {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.8rem;
}

.contact-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: var(--accent);
}

.contact-item svg {
    width: 14px;
    height: 14px;
    stroke: var(--accent-dim);
    fill: none;
    stroke-width: 1.5;
    flex-shrink: 0;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
}

.separator {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--accent-dim);
}

/* ── Corner Accents ── */
.corner {
    position: fixed;
    width: 40px;
    height: 40px;
    z-index: 2;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.8s;
}

.corner::before,
.corner::after {
    content: '';
    position: absolute;
    background: var(--accent-dim);
}

.corner--tl { top: 2rem; left: 2rem; }
.corner--tl::before { top: 0; left: 0; width: 20px; height: 1px; }
.corner--tl::after { top: 0; left: 0; width: 1px; height: 20px; }

.corner--tr { top: 2rem; right: 2rem; }
.corner--tr::before { top: 0; right: 0; width: 20px; height: 1px; }
.corner--tr::after { top: 0; right: 0; width: 1px; height: 20px; }

.corner--bl { bottom: 2rem; left: 2rem; }
.corner--bl::before { bottom: 0; left: 0; width: 20px; height: 1px; }
.corner--bl::after { bottom: 0; left: 0; width: 1px; height: 20px; }

.corner--br { bottom: 2rem; right: 2rem; }
.corner--br::before { bottom: 0; right: 0; width: 20px; height: 1px; }
.corner--br::after { bottom: 0; right: 0; width: 1px; height: 20px; }

/* ── Footer ── */
footer {
    padding: 2rem 3.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    animation: fadeUp 1s ease forwards 2s;
}

footer span {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: var(--muted);
    text-transform: uppercase;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent);
}

/* ── Animations ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    header {
        padding: 1.5rem 1.8rem;
        flex-direction: column;
        gap: 1.2rem;
    }

    nav ul {
        gap: 1.2rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        letter-spacing: 0.06em;
    }

    .contact-row {
        flex-direction: column;
        gap: 0.8rem;
    }

    .separator { display: none; }

    .corner { display: none; }

    footer {
        padding: 1.5rem 1.8rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}