/* ==========================================================
   Shared page pieces
   ========================================================== */

.page-heading {
    padding: 72px 0 48px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.page-section {
    padding: 64px 0;
}

.page-section.compact {
    padding: 56px 0 96px;
}

.page-section+.page-section {
    border-top: 1px solid var(--border);
}

.section-label {
    display: block;
    margin-bottom: 14px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.section-title {
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    max-width: 720px;
}

h2.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-title .accent {
    color: var(--accent);
}

.section-description {
    max-width: 620px;
    margin: 18px 0 0;
    font-size: 1.05rem;
    color: var(--muted);
}

/* ==========================================================
   Home
   ========================================================== */

.home-hero {
    display: flex;
    align-items: center;
    min-height: calc(100vh - var(--header-h));
    padding: 64px 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}

.hero-eyebrow {
    margin: 0 0 20px;
    font-size: 0.9rem;
    color: var(--muted);
}

.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 3.75rem);
    letter-spacing: -0.03em;
}

.hero-title .accent {
    color: var(--accent);
}

.hero-description {
    max-width: 560px;
    margin: 24px 0 0;
    font-size: 1.125rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.hero-actions.center {
    justify-content: center;
}

.hero-image-frame {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 480px;
    margin-left: auto;
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-placeholder {
    position: absolute;
    inset: 0;
    display: none;
    place-items: center;
    font-size: 5rem;
    font-weight: 600;
    color: #aab2c0;
}

.hero-placeholder.show {
    display: grid;
}

/* Interests list */

.interest-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.interest-item {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.interest-item h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.interest-item p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
}

/* Call to action band */

.cta {
    padding: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.cta h3 {
    font-size: 1.4rem;
}

.cta p {
    max-width: 480px;
    margin: 12px auto 0;
    color: var(--muted);
}

.cta .hero-actions {
    margin-top: 24px;
}

/* ==========================================================
   About
   ========================================================== */

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
}

.about-aside {
    position: sticky;
    top: calc(var(--header-h) + 32px);
}

.about-aside dl {
    margin: 0;
    padding: 8px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-aside div:last-child {
    border-bottom: 0;
}

.about-aside div {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.about-aside dt {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.about-aside dd {
    margin: 4px 0 0;
    color: var(--text);
    font-weight: 500;
}

.about-content p {
    max-width: 640px;
}

.about-content strong {
    color: var(--text);
    font-weight: 500;
}

.timeline {
    margin-top: 40px;
    max-width: 720px;
    border-left: 1px solid var(--border-strong);
}

.timeline-item {
    position: relative;
    padding: 0 0 36px 28px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -4.5px;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--accent);
}

.timeline-item h3 {
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.timeline-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

/* ==========================================================
   Projects
   ========================================================== */

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 24px;
}

.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.project-card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.08);
}

.project-image {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #e9edf3;
    border-bottom: 1px solid var(--border);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-placeholder {
    position: absolute;
    inset: 0;
    display: none;
    place-items: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: #a3acba;
}

.project-placeholder.show {
    display: grid;
}

.project-details {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
}

.project-category {
    margin-bottom: 8px;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.project-details h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.project-details p {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.project-tags span {
    padding: 3px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.78rem;
    color: var(--text-soft);
}

/* ==========================================================
   Elsewhere (socials)
   ========================================================== */

.social-list {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.social-row {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 22px 28px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s ease;
}

.social-row:last-child {
    border-bottom: 0;
}

a.social-row:hover {
    background: var(--bg);
}

.social-row h3 {
    font-size: 1.05rem;
}

.social-row p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.social-arrow {
    color: var(--muted);
    transition: color 0.15s ease;
}

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

.social-note {
    max-width: 560px;
    margin-top: 56px;
}

.social-note h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.social-note p {
    margin: 0;
    color: var(--muted);
}

/* ==========================================================
   Contact
   ========================================================== */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
}

.contact-info h3,
.contact-form h3 {
    margin-bottom: 12px;
    font-size: 1.35rem;
}

.contact-info>p {
    color: var(--muted);
}

.contact-method {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.contact-methods {
    margin-top: 28px;
    border-top: 1px solid var(--border);
}

.contact-method small {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.contact-method a,
.contact-method span {
    color: var(--text);
    font-weight: 500;
}

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

.contact-form {
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-intro {
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--muted);
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9aa3b0;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

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

.form-notice {
    margin: 14px 0 0;
    font-size: 0.82rem;
    color: var(--muted);
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 900px) {

    .home-hero-grid,
    .about-grid,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-image-frame {
        margin-left: 0;
        max-width: 280px;
        order: -1;
    }

    .about-aside {
        position: static;
    }

    .interest-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .page-heading {
        padding: 56px 0 36px;
    }

    .page-section {
        padding: 56px 0;
    }

    .home-hero {
        min-height: 0;
        padding: 48px 0;
    }

    .social-row {
        grid-template-columns: 1fr auto;
        gap: 4px 16px;
        padding: 18px 20px;
    }

    .social-row h3 {
        grid-column: 1;
    }

    .social-row p {
        grid-column: 1;
    }

    .social-arrow {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .cta {
        padding: 28px 20px;
    }

    .contact-form {
        padding: 24px 20px;
    }
}