/* ─── tokens ─────────────────────────────────────────── */
:root {
    --bg: #f8f7f3;
    --bg2: #ffffff;
    --ink: #12100e;
    --ink2: #6b6456;
    --navy: #0e1a2e;
    --gold: #c9a96e;
    --gold2: #b8944e;
    --line: #e5e0d5;
    --sidebar-w: 240px;
    --max: 1200px;

    --fs-h1: clamp(2.8rem, 5vw, 4.4rem);
    --fs-h2: clamp(1.8rem, 3.5vw, 2.8rem);
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3 { font-family: 'Libre Baskerville', Georgia, serif; }

/* ─── demo bar ───────────────────────────────────────── */
.demo-bar {
    background: var(--navy);
    color: rgba(255,255,255,0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 1.5rem;
    font-size: 0.8rem;
    gap: 1rem;
}
.demo-bar strong { font-weight: 700; margin-right: 0.5rem; color: #fff; }
.demo-links { display: flex; gap: 0.75rem; align-items: center; }
.demo-links a { font-weight: 500; opacity: 0.75; }
.demo-links a:hover { opacity: 1; }
.demo-cta {
    background: var(--gold);
    color: #fff;
    padding: 0.35rem 0.9rem;
    border-radius: 4px;
    font-weight: 600;
    opacity: 1 !important;
}

/* ─── header ─────────────────────────────────────────── */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 247, 243, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.nav {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 2rem;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.brand {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.2rem;
    color: var(--navy);
    flex: none;
}
.brand strong { font-weight: 700; color: var(--gold); }

.nav-links {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-links a { font-weight: 500; color: var(--ink2); font-size: 0.875rem; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
    background: var(--navy) !important;
    color: #fff !important;
    padding: 0.5rem 1.3rem;
    border-radius: 4px;
    font-weight: 600 !important;
}
.nav-cta:hover { background: #162035 !important; }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    padding: 4px;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ─── reveal ─────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── hero ───────────────────────────────────────────── */
.hero {
    background: var(--navy);
    padding: 5.5rem 2rem 4.5rem;
}
.hero-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
}

.hero-copy { display: flex; flex-direction: column; gap: 1.5rem; }

.eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
}

.hero-copy h1 {
    font-size: var(--fs-h1);
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-copy p { color: rgba(255,255,255,0.65); font-size: 1.05rem; line-height: 1.75; max-width: 500px; }

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

.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
}
.hero-stats > div {
    background: rgba(255,255,255,0.06);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.hero-stats strong {
    font-family: 'Libre Baskerville', serif;
    font-size: 2.4rem;
    color: var(--gold);
    line-height: 1;
}
.hero-stats small { font-size: 1.5rem; }
.hero-stats span { font-size: 0.75rem; color: rgba(255,255,255,0.5); letter-spacing: 0.06em; }

/* ─── buttons ────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: 0.18s ease;
    border: none;
    font-family: 'Inter', sans-serif;
}
.btn.primary { background: var(--gold); color: #fff; }
.btn.primary:hover { background: var(--gold2); }
.btn.ghost {
    background: transparent;
    color: rgba(255,255,255,0.8);
    border: 1.5px solid rgba(255,255,255,0.2);
}
.btn.ghost:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

/* ─── page body ──────────────────────────────────────── */
.page-body {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    gap: 4rem;
    align-items: start;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* ─── sidebar ────────────────────────────────────────── */
.sidebar {
    position: sticky;
    top: calc(68px + 2rem);
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.side-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink2);
    margin-bottom: 0.75rem;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 2px solid var(--line);
}
.side-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink2);
    padding: 0.55rem 1rem;
    border-left: 2px solid transparent;
    margin-left: -2px;
    transition: color 0.15s, border-color 0.15s;
}
.side-nav a:hover { color: var(--ink); }
.side-nav a.active { color: var(--gold); font-weight: 700; border-left-color: var(--gold); }

.side-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}
.side-contact > div { display: flex; flex-direction: column; gap: 0.15rem; }
.side-contact strong {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}
.side-contact span { font-size: 0.82rem; color: var(--ink2); }

/* ─── main content ───────────────────────────────────── */
.main-content { min-width: 0; }

.content-section {
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--line);
}
.content-section:last-child { border-bottom: none; }

.content-section h2 {
    font-size: var(--fs-h2);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}
.content-section > p {
    color: var(--ink2);
    font-size: 1rem;
    line-height: 1.75;
    max-width: 640px;
    margin-bottom: 2.5rem;
}

.label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

/* ─── services ───────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.service-card {
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.2s;
}
.service-card:hover { border-color: var(--gold); }
.service-icon { color: var(--gold); font-size: 1rem; }
.service-card h3 { font-size: 1.05rem; line-height: 1.25; }
.service-card p { color: var(--ink2); font-size: 0.875rem; line-height: 1.7; }

/* ─── team ───────────────────────────────────────────── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.team-card {
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.team-img img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }

.team-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; }
.team-body h3 { font-size: 1rem; }
.team-role { font-size: 0.72rem; font-weight: 600; color: var(--gold); letter-spacing: 0.04em; }
.team-body p { color: var(--ink2); font-size: 0.82rem; line-height: 1.65; margin-top: 0.5rem; }

/* ─── studio ─────────────────────────────────────────── */
.studio-section .studio-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}
.studio-copy { display: flex; flex-direction: column; gap: 1.25rem; }
.studio-copy h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.2; }
.studio-copy > p { color: var(--ink2); font-size: 0.95rem; line-height: 1.75; }

blockquote {
    border-left: 3px solid var(--gold);
    padding-left: 1.25rem;
}
blockquote p {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink);
    margin-bottom: 0.5rem;
}
blockquote cite { font-size: 0.78rem; color: var(--ink2); }

.studio-img { border-radius: 8px; overflow: hidden; }
.studio-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ─── testimonials ───────────────────────────────────── */
.testimonials { display: flex; flex-direction: column; gap: 1.25rem; }

.testimonial {
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.stars { color: var(--gold); font-size: 0.9rem; letter-spacing: 0.08em; }

.testimonial p {
    font-style: italic;
    color: var(--ink2);
    font-size: 0.9rem;
    line-height: 1.75;
    margin: 0;
    border: none;
    padding: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
}
.testimonial-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimonial-author strong { font-size: 0.85rem; font-weight: 600; display: block; }
.testimonial-author span { font-size: 0.75rem; color: var(--ink2); }

/* ─── contact form ───────────────────────────────────── */
.contact-section > p { margin-bottom: 2rem; }

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; max-width: 640px; }

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

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink2);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    background: var(--bg2);
    border: 1px solid var(--line);
    color: var(--ink);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    width: 100%;
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--gold); }
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form .btn { align-self: flex-start; }

.form-note { font-size: 0.78rem; color: var(--ink2); }

/* ─── footer ─────────────────────────────────────────── */
.footer {
    background: var(--navy);
    padding: 3.5rem 2rem 1.5rem;
}
.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: start;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand { font-size: 1.2rem; color: #fff; }
.footer-brand strong { color: var(--gold); }
.footer-inner > div:first-child p { color: rgba(255,255,255,0.45); font-size: 0.82rem; margin-top: 0.5rem; }

.footer-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-nav a { font-size: 0.85rem; color: rgba(255,255,255,0.55); }
.footer-nav a:hover { color: #fff; }

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    text-align: right;
}
.footer-contact strong { font-size: 0.85rem; color: #fff; }
.footer-contact span { font-size: 0.8rem; color: rgba(255,255,255,0.45); }

.footer-bottom {
    max-width: var(--max);
    margin: 1.5rem auto 0;
    display: flex;
    justify-content: center;
}
.footer-bottom p { font-size: 0.72rem; color: rgba(255,255,255,0.25); text-align: center; }

/* ─── toast ──────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    background: var(--navy);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.85rem 1.75rem;
    border-radius: 4px;
    border-left: 3px solid var(--gold);
    transition: transform 0.35s ease;
    z-index: 9999;
    white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ─── responsive ─────────────────────────────────────── */
@media (max-width: 1024px) {
    .page-body { grid-template-columns: 200px 1fr; gap: 2.5rem; }
    .team-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .page-body { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .side-nav { flex-direction: row; border-left: none; border-bottom: 2px solid var(--line); flex-wrap: wrap; gap: 0; }
    .side-nav a { border-left: none; border-bottom: 2px solid transparent; margin-left: 0; margin-bottom: -2px; }
    .side-nav a.active { border-left: none; border-bottom-color: var(--gold); }

    .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
    .hero-stats { grid-template-columns: repeat(4, 1fr); }
    .services-grid { grid-template-columns: 1fr; }
    .studio-section .studio-inner { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .footer-contact { text-align: center; }
}

@media (max-width: 640px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 68px; left: 0; right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        padding: 1.5rem 2rem;
        gap: 1.2rem;
        z-index: 99;
    }
    .menu-toggle { display: flex; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .demo-bar { flex-direction: column; text-align: center; }
    .page-body { padding-left: 1.25rem; padding-right: 1.25rem; }
}
