/* --- Variables & Design Tokens --- */
:root {
    /* Colors: Slate Scale (Professional, Neutral) */
    --bg: #ffffff; /* We keep the page bg white, but transparent enough for dots if needed */
    --slate-900: #0f172a; /* Deep Navy/Black for primary text */
    --slate-700: #334155;
    --slate-600: #475569; /* Muted text */
    --slate-500: #64748b;
    --slate-200: #e2e8f0; /* Borders */
    --slate-50:  #f8fafc; /* Subtle fills */

    /* Accent Color (Restrained usage) */
    --accent: #2563eb; /* Royal Blue */
    --accent-light: #eff6ff; /* Very light blue for backgrounds */

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', serif;
}

/* --- Global Reset --- */

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

body {
    font-family: var(--font-sans);
    color: var(--slate-900);
    line-height: 1.5;
    /* Ensure content sits above the fixed canvas */
    position: relative;
    overflow-x: hidden;
    background-color: transparent; /* Allows canvas to show through if desired, though usually we layer it */
}

/* --- Interactive Background Canvas --- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Puts it behind everything */
    pointer-events: none; /* Allows you to click links "through" the canvas */
    opacity: 0.7; /* Subtle effect */
}

/* --- Page Layout --- */
.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Typography Utilities --- */
.text-highlight {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--slate-900);
    text-underline-offset: 4px;
    text-decoration: underline 2px rgba(37, 99, 235, 0.2);
}

.text-accent-bold {
    color: var(--accent);
    font-weight: 600;
}

/* --- Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
}

.navbar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--slate-900);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.02em;
    transition: opacity 0.2s;
}

.navbar__brand:hover {
    opacity: 0.8;
}

.brand__dot {
    width: 10px;
    height: 10px;
    background-color: var(--slate-900);
    border-radius: 50%;
}

.navbar__links {
    display: flex;
    gap: 32px;
}

.navbar__links a {
    text-decoration: none;
    color: var(--slate-500);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.navbar__links a:hover {
    color: var(--slate-900);
}

.navbar__left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-link-row {
    margin-bottom: 24px; /* Space between link and title */
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--slate-500); /* Muted, professional gray */
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent; /* No blocky background */
    border: none; /* No border */
    padding: 0;
}

.back-link:hover {
    color: var(--accent); /* Highlights in blue */
    transform: translateX(-4px); /* Subtle slide to the left */
}

.back-link svg {
    transition: transform 0.2s ease;
}

.nav-link--active {
    color: var(--slate-900) !important;
    font-weight: 600 !important;
}

/* --- Hero Section --- */
.hero {
    padding: 100px 0 80px;
    max-width: 800px;
}

.hero__title {
    font-family: var(--font-serif); /* The main visual change */
    font-size: clamp(3rem, 5vw, 4.5rem); /* Responsive giant text */
    line-height: 1.1;
    font-weight: 400; /* Regular weight looks more elegant in Serif */
    color: var(--slate-900);
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero__subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--slate-600);
    line-height: 1.6;
    max-width: 600px;
}

/* --- Status Badges --- */
.status-badge {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 6px 10px;
    border-radius: 20px;
}

.status--live {
    background-color: var(--accent-light);
    color: var(--accent);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.status--dev {
    background-color: var(--slate-50);
    color: var(--slate-500);
    border: 1px solid var(--slate-200);
}

/* --- Minimal Grid System (New) --- */
.minimal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 64px;
    row-gap: 80px;
    margin-bottom: 120px;
    margin-top: 40px;
}

@media (max-width: 900px) {
    .minimal-grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }
}

.minimal-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.2s ease;
    /* Reset card properties if mixed */
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.minimal-item:hover {
    transform: none;
}

.minimal-item:hover .minimal-item__title {
    color: var(--accent);
    transition: color 0.2s ease;
}

.minimal-item:hover .minimal-item__cta {
    color: var(--accent);
    transition: color 0.2s ease;
}

.minimal-item__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--slate-200);
    padding-bottom: 18px;
}

.minimal-item__icon {
    font-family: var(--font-serif);
    font-size: 26px;
    font-style: italic;
    color: var(--accent);
    /* Remove boxy background */
    background: transparent;
    border: none;
    width: auto;
    height: auto;
    display: inline;
}

.minimal-item__title {
    font-family: var(--font-serif);
    font-size: 26px; /* Slightly larger for impact */
    font-weight: 400; 
    color: var(--slate-900);
    margin-right: auto;
    letter-spacing: -0.02em;
    transition: color 0.2s ease;
}

.minimal-item__desc {
    font-size: 16px;
    color: var(--slate-600);
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 45ch;
}

.minimal-item__cta {
    font-size: 13px;
    font-weight: 700;
    color: var(--slate-900);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.minimal-item--locked {
    opacity: 0.4;
    pointer-events: none;
}

/* --- About Section (New Implementation) --- */
.about-section {
    border-top: 1px solid rgba(226, 232, 240, 0.6); /* Transparent slate-200 */
    padding-top: 80px;
    margin-bottom: 120px;
}

/* Mobile Default: Stacked */
.about-grid {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 32px;
}

.about-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-style: italic;
    color: var(--slate-900);
    letter-spacing: -0.02em;
}

.about-body {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.lead-text {
    font-size: 24px;
    font-weight: 300; /* Light weight looks very clean */
    line-height: 1.5;
    color: var(--slate-700);
}

.about-details {
    font-size: 18px;
    color: var(--slate-600);
    line-height: 1.7;
    max-width: 65ch; /* Optimal reading width */
}

.about-details p {
    margin-bottom: 24px;
}

/* Tablet/Desktop: Split Layout (1/3 Sidebar, 2/3 Content) */
@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 4fr 8fr; /* 4/12 and 8/12 logic */
        gap: 64px;
    }
}

/* --- Footer --- */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--slate-200);
    text-align: center;
    color: var(--slate-500);
    font-size: 13px;
    margin-top: auto;
}


/* --- Contact Form Styles --- */
.contact-container {
    max-width: 600px;
    margin: 0 auto 120px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--slate-700);
    margin-bottom: 8px;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--slate-900);
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.2s;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
    background: #fff;
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    display: inline-block;
    background-color: var(--slate-900);
    color: white;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s;
    width: 100%;
}

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

.social-links {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 24px;
}

.social-links a {
    color: var(--slate-500);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: var(--accent); /* Uses your blue accent on hover */
}

.brand__logo {
    display: block;
    width: 300px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* --- Shared interaction + accessibility improvements --- */
html,
body {
    max-width: 100%;
    overflow-x: clip;
}

a,
button,
input,
select,
textarea {
    touch-action: manipulation;
}

.navbar__links a,
.back-link,
.btn-submit,
.social-links a,
button,
[role="button"] {
    min-height: 44px;
}

/* --- Homepage + contact responsive hardening --- */
.navbar {
    gap: 12px;
    flex-wrap: wrap;
}

main {
    width: 100%;
}

.contact-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 0 0 20px 0;
}

.hero--compact {
    padding-top: 0;
    padding-bottom: 40px;
}

.hero__title--contact {
    margin-top: 0;
    font-size: clamp(2rem, 6vw, 2.5rem);
}

@media (max-width: 767px) {
    .page {
        padding: 0 16px;
    }

    .navbar {
        padding: 18px 0;
    }

    .navbar__links {
        width: 100%;
        justify-content: flex-start;
        gap: 16px;
    }

    .brand__logo {
        width: min(52vw, 220px);
        height: auto;
    }

    .hero {
        padding: 56px 0 40px;
    }

    .hero__subtitle {
        font-size: 1.05rem;
    }

    .about-section {
        padding-top: 56px;
        margin-bottom: 72px;
    }

    .about-title {
        font-size: 2rem;
    }

    .lead-text {
        font-size: 1.25rem;
    }

    .about-details {
        font-size: 1rem;
    }

    .contact-container {
        margin-bottom: 72px;
    }

    .social-links {
        flex-wrap: wrap;
        gap: 12px;
    }
}

@media (min-width: 768px) {
    .contact-fields {
        grid-template-columns: 1fr 1fr;
    }
}

@media (hover: none) {
    .btn-submit:hover,
    .back-link:hover,
    .navbar__links a:hover,
    .social-links a:hover {
        transform: none;
    }
}
