/* --- 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;
}

/* --- Grid System (Cards) --- */
.grid-entry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Responsive columns */
    gap: 32px;
    margin-bottom: 120px;
}

.card {
    background: rgba(255, 255, 255, 0.8); /* Slight transparency for backdrop blur effect if you add it later */
    backdrop-filter: blur(8px);
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 32px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); /* Apple-like smooth ease */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05); /* Soft shadow on hover */
}

.card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.card__header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card__icon {
    font-family: var(--font-serif);
    font-size: 24px;
    font-style: italic;
    color: var(--slate-900);
    background: var(--slate-50);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--slate-200);
}

.card__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--slate-900);
    letter-spacing: -0.01em;
}

.card__desc {
    color: var(--slate-600);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 32px;
    flex-grow: 1; /* Pushes footer to bottom */
}

.card__footer {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* --- 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);
}

/* --- Locked Card State --- */
.card--locked {
    opacity: 0.7;
    pointer-events: none;
    background: #fafafa;
}

.card--locked .card__icon {
    color: var(--slate-400);
}

.card--locked .card__footer {
    color: var(--slate-400);
}

/* --- 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 {
    height: 120px;
    width: auto;
}