/* ==========================================================================
   PORTFOLIO STYLESHEET — HERO SECTION (minimal editorial split-screen)
   ==========================================================================
   Organized as:
     1. Design Tokens (CSS variables)  <-- change colors/fonts here
     2. Reset & base styles
     3. Hero layout (two-panel split screen)
     4. Text panel (headline, description, buttons)
     5. Photo panel (placeholder, overlay, socials, CV tag, scroll cue)
     6. Responsive breakpoints
   ========================================================================== */


/* ==========================================================================
   1. DESIGN TOKENS
   --------------------------------------------------------------------------
   EDIT THIS SECTION to re-theme the entire site.
   ========================================================================== */
:root {
    /* ---- Core colors ---- */
    --bg-panel: #edece6;          /* left panel background (warm off-white) */
    --text-dark: #1c1b18;         /* headline / high-emphasis text */
    --text-muted: #6f6d66;        /* supporting paragraph text */

    /* EDIT THIS: the small accent color used for the "Hello" label and
       the thin connecting line. A rust/terracotta reads warm and human;
       swap for any single accent you like. */
    --accent: #c1573c;

    /* Dark, moody duotone used for the photo placeholder gradient.
       Replace with a real photo and this becomes irrelevant. */
    --photo-grad-start: #262a22;
    --photo-grad-end: #3a1f1c;

    --btn-dark-bg: #1c1b18;
    --btn-dark-text: #f3f2ee;

    /* ---- Typography ----
       EDIT THIS if you want different fonts. Update the Google Fonts
       <link> tags in index.html to match if you change these. */
    --font-display: 'Fraunces', Georgia, serif;   /* big serif headline */
    --font-body: 'Inter', 'Segoe UI', sans-serif; /* everything else */

    /* ---- Motion ---- */
    --transition-fast: 180ms ease;
    --transition-medium: 420ms cubic-bezier(0.22, 1, 0.36, 1);
}


/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}


/* ==========================================================================
   3. HERO LAYOUT — two-panel split screen
   ========================================================================== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}


/* ==========================================================================
   4. TEXT PANEL (left)
   ========================================================================== */
.hero-text-panel {
    background: var(--bg-panel);
    display: flex;
    align-items: center;
    padding: 48px 6vw;
}

.hero-text-inner {
    max-width: 560px;
    animation: fade-up 0.8s var(--transition-medium) both;
}

/* Small label above the headline */
.hero-eyebrow {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}

/* Main headline — big serif, tight leading, like a magazine masthead */
.hero-headline {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2.1rem, 4vw, 3.15rem);
    line-height: 1.18;
    letter-spacing: -0.01em;
    color: var(--text-dark);
    margin-bottom: 28px;
}

/* Short introduction paragraph */
.hero-description {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 46ch;
    margin-bottom: 40px;
}

/* CTA buttons */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 18px 30px;
    border-radius: 0;               /* sharp corners = the quiet/minimal cue */
    border: 1px solid var(--text-dark);
    transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
    white-space: nowrap;
}

.btn-filled {
    background: var(--btn-dark-bg);
    color: var(--btn-dark-text);
}

.btn-filled:hover {
    transform: translateY(-2px);
    background: var(--accent);
    border-color: var(--accent);
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
}

.btn-outline:hover {
    transform: translateY(-2px);
    background: var(--text-dark);
    color: var(--btn-dark-text);
}


/* ==========================================================================
   5. PHOTO PANEL (right)
   ========================================================================== */
.hero-photo-panel {
    position: relative;
    overflow: hidden;
    min-height: 320px; /* keeps some height on very short/mobile screens */
}

/* Placeholder shown until a real photo is added. Swap for
   <img class="photo-real"> — see the comment in index.html. */
.photo-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--photo-grad-start) 0%, var(--photo-grad-end) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.photo-placeholder span {
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

/* Applied automatically once you swap the placeholder for a real <img> */
.photo-real {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Subtle bottom-left vignette so the "Get My CV" tag / seam line stays legible */
.photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.28), transparent 45%);
    pointer-events: none;
}

/* Vertical social icon stack over the photo, right-hand edge */
.hero-socials {
    position: absolute;
    top: 32px;
    right: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 2;
}

.social-link {
    color: #ffffff;
    opacity: 0.85;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.social-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Thin vertical line trailing down from the social icons — decorative,
   echoes the reference design's icon-to-footer line */
.socials-line {
    position: absolute;
    top: 190px;
    right: 41px;
    width: 1px;
    height: 90px;
    background: rgba(255, 255, 255, 0.35);
    z-index: 2;
}

/* "Get My CV" tag: a thin horizontal line running from the panel seam
   into a small bordered box, sitting near the bottom of the photo panel */
.cv-tag {
    position: absolute;
    left: 0;
    bottom: 56px;
    display: flex;
    align-items: center;
    z-index: 2;
    transition: transform var(--transition-fast);
}

.cv-tag:hover {
    transform: translateX(4px);
}

.cv-tag-line {
    width: 64px;
    height: 1px;
    background: rgba(255, 255, 255, 0.6);
}

.cv-tag-box {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #f3f2ee;
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 14px 22px;
    background: rgba(28, 27, 24, 0.25);
    backdrop-filter: blur(4px);
}

/* Small circular scroll-down cue, bottom-right corner of the photo panel */
.scroll-indicator {
    position: absolute;
    right: 32px;
    bottom: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f3f2ee;
    z-index: 2;
    animation: bob 2.4s ease-in-out infinite;
}

.scroll-indicator:hover {
    background: rgba(255, 255, 255, 0.12);
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(5px); }
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ==========================================================================
   6. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablets: stack the two panels instead of side-by-side */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-photo-panel {
        min-height: 60vh;
        order: -1; /* photo appears above the text on smaller screens */
    }

    .hero-text-panel {
        padding: 56px 7vw 64px;
    }

    .cv-tag {
        bottom: 40px;
    }
}

/* Mobile phones */
@media (max-width: 560px) {
    .hero-photo-panel {
        min-height: 46vh;
    }

    .hero-headline {
        font-size: 1.9rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-socials {
        top: 20px;
        right: 20px;
        gap: 16px;
    }

    .socials-line {
        display: none; /* not enough vertical room on small photo panels */
    }

    .cv-tag {
        bottom: 24px;
    }

    .cv-tag-line {
        width: 32px;
    }

    .cv-tag-box {
        padding: 11px 16px;
        font-size: 0.66rem;
    }

    .scroll-indicator {
        width: 38px;
        height: 38px;
        right: 20px;
        bottom: 20px;
    }
}








/* ==========================================================================
   SKILLS MARQUEE STRIP
   -------------------------------------------------------------------------
   A continuously scrolling strip between the Hero and About sections.
   Two identical <ul class="marquee-group"> lists sit side by side inside
   a track twice as wide as the viewport; animating that track from
   -50% back to 0% makes it appear to glide left-to-right forever, with
   no visible seam. Hovering pauses it; reduced-motion users get a
   static, non-animated version instead (see the media query at the
   bottom of this file).
   ========================================================================== */
.marquee {
    overflow: hidden;
    background: var(--accent);
    padding: 20px 0;
    border-top: 1px solid rgba(28, 27, 24, 0.1);
    border-bottom: 1px solid rgba(28, 27, 24, 0.1);
}

.marquee-inner {
    display: flex;
    width: max-content;
    animation: marquee-scroll 26s linear infinite;
}

/* Pause the animation on hover/focus so the text is easy to read */
.marquee:hover .marquee-inner,
.marquee:focus-within .marquee-inner {
    animation-play-state: paused;
}

.marquee-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    list-style: none;
}

.marquee-group li {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dark);
    white-space: nowrap;
    padding: 0 18px;
}

/* The small ✦ separators between skill names, slightly muted */
.marquee-sep {
    padding: 0 !important;
    opacity: 0.5;
    font-size: 0.7rem !important;
}

/* Animates the track from -50% to 0%, giving a continuous
   left-to-right glide */
@keyframes marquee-scroll {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}

/* Respect users who have reduced-motion turned on: freeze the strip
   and let it scroll horizontally with a normal touch/scroll gesture
   instead of auto-animating. */
@media (prefers-reduced-motion: reduce) {
    .marquee {
        overflow-x: auto;
    }

    .marquee-inner {
        animation: none !important;
        transform: none !important;
    }

    /* Hide the duplicated second list — it's only needed for the loop */
    .marquee-group:last-child {
        display: none;
    }
}








/* ==========================================================================
   ABOUT SECTION
   -------------------------------------------------------------------------
   Reuses the same tokens defined at the top of this file (colors, fonts,
   transitions), so it stays visually consistent with the hero above it.
   ========================================================================== */
.about {
    background: var(--bg-panel);
    padding: 110px 6vw;
    border-top: 1px solid rgba(28, 27, 24, 0.08); /* thin seam under the hero */
}

.about-container {
    max-width: 1080px;
    margin: 0 auto;
}

/* Reusable small uppercase label — same look as the hero's "Hello" tag */
.section-eyebrow {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}

.about-heading {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--text-dark);
    max-width: 18ch;
    margin-bottom: 56px;
}

/* Two-column layout: bio text on the left, quick facts on the right */
.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

.about-bio p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 52ch;
    margin-bottom: 20px;
}

.about-bio p:last-child {
    margin-bottom: 0;
}

/* Quick facts list, styled like a spec sheet: label + value rows
   separated by thin top borders */
.about-facts {
    display: flex;
    flex-direction: column;
}

.fact-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid rgba(28, 27, 24, 0.12);
}

.fact-row:last-child {
    border-bottom: 1px solid rgba(28, 27, 24, 0.12);
}

.fact-row dt {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

.fact-row dd {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text-dark);
    text-align: right;
}

/* Core strengths row */
.about-strengths {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 40px;
    list-style: none;
    padding-top: 40px;
    border-top: 1px solid rgba(28, 27, 24, 0.12);
}

.about-strengths li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--text-dark);
}

.strength-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    flex-shrink: 0;
}


/* ---- Responsive ---- */
@media (max-width: 900px) {
    .about {
        padding: 80px 7vw;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-heading {
        max-width: none;
    }

    .fact-row dd {
        text-align: right;
    }
}

@media (max-width: 560px) {
    .about {
        padding: 64px 6vw;
    }

    .about-strengths {
        flex-direction: column;
        gap: 14px;
    }
}





/* ==========================================================================
   PROJECTS SECTION
   -------------------------------------------------------------------------
   A 2x2 grid of clickable project cards, styled consistently with the
   Skills cards (sharp corners, soft pill tags). Clicking a card opens
   the shared modal defined below.
   ========================================================================== */
.projects {
    background: var(--bg-panel);
    padding: 110px 6vw;
    border-top: 1px solid rgba(28, 27, 24, 0.08);
}

.projects-container {
    max-width: 1080px;
    margin: 0 auto;
}

.projects-heading {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--text-dark);
    max-width: 22ch;
    margin-bottom: 12px;
}

.projects-hint {
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 48px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

/* Cards are real <button> elements for built-in keyboard/click support */
.project-card {
    display: block;
    width: 100%;
    text-align: left;
    background: #ffffff;
    border: 1px solid rgba(28, 27, 24, 0.1);
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.project-card:hover,
.project-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 24px 44px -26px rgba(28, 27, 24, 0.28);
}

/* Image area — replace the placeholder <div> with a real <img class="project-image-real">
   and this same box sizing/cropping will apply automatically */
.project-image {
    aspect-ratio: 16 / 10;
    background: var(--bg-panel);
    border-bottom: 1px solid rgba(28, 27, 24, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.project-image span {
    font-family: var(--font-body);
    font-size: 0.82rem;
}

.project-image-real {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-bottom: 1px solid rgba(28, 27, 24, 0.1);
}

.project-card-body {
    padding: 24px 26px 28px;
}

.project-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.project-tags li {
    font-family: var(--font-body);
    font-size: 0.76rem;
    color: var(--text-muted);
    background: var(--bg-panel);
    border: 1px solid rgba(28, 27, 24, 0.1);
    border-radius: 999px;
    padding: 6px 12px;
}


/* ==========================================================================
   PROJECT DETAIL MODAL
   ========================================================================== */
.project-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(28, 27, 24, 0.55);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-medium), visibility var(--transition-medium);
}

.project-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.project-modal-overlay[hidden] {
    display: none;
}

.project-modal {
    background: #ffffff;
    width: 100%;
    max-width: 640px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.96);
    transition: transform var(--transition-medium);
}

.project-modal-overlay.is-open .project-modal {
    transform: scale(1);
}

.project-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid rgba(28, 27, 24, 0.15);
    font-size: 1.3rem;
    line-height: 1;
    color: var(--text-dark);
    cursor: pointer;
    z-index: 2;
    transition: color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.project-modal-close:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: rotate(90deg);
}

.project-modal-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--bg-panel);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(28, 27, 24, 0.1);
}

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

.project-modal-body {
    padding: 32px 32px 40px;
}

.project-modal-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.project-modal-summary {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.project-modal-subheading {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
    margin-top: 28px;
}

.project-modal-subheading:first-of-type {
    margin-top: 0;
}

.project-modal-approach {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
}

.project-modal-approach li {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text-dark);
    padding-left: 22px;
    position: relative;
}

.project-modal-approach li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.project-modal-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.project-modal-tools li {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--text-muted);
    background: var(--bg-panel);
    border: 1px solid rgba(28, 27, 24, 0.1);
    border-radius: 999px;
    padding: 6px 13px;
}

.project-modal-outcome {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text-dark);
}


/* ---- Responsive ---- */
@media (max-width: 900px) {
    .projects {
        padding: 80px 7vw;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 560px) {
    .projects {
        padding: 64px 6vw;
    }

    .project-modal-body {
        padding: 26px 22px 32px;
    }

    .project-modal-title {
        font-size: 1.3rem;
    }
}


/* ==========================================================================
   CONTACT SECTION
   -------------------------------------------------------------------------
   Reuses the same tokens defined at the top of this file. The form uses
   underline-only inputs (no boxes) to stay consistent with the thin-line,
   editorial feel used throughout the page.
   ========================================================================== */
.contact {
    background: var(--bg-panel);
    padding: 110px 6vw;
    border-top: 1px solid rgba(28, 27, 24, 0.08);
}

.contact-container {
    max-width: 1080px;
    margin: 0 auto;
}

.contact-heading {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--text-dark);
    max-width: 20ch;
    margin-bottom: 56px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 72px;
}

/* ---- Left column: contact details ---- */
.contact-lead {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 42ch;
    margin-bottom: 36px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    margin-bottom: 36px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid rgba(28, 27, 24, 0.12);
}

.detail-row:last-child {
    border-bottom: 1px solid rgba(28, 27, 24, 0.12);
}

.detail-row dt {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

.detail-row dd {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text-dark);
    text-align: right;
}

.detail-row dd a {
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

.detail-row dd a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.contact-socials {
    display: flex;
    gap: 24px;
}

.contact-socials a {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(28, 27, 24, 0.3);
    padding-bottom: 3px;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

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

/* ---- Right column: form ---- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-field input,
.form-field textarea {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(28, 27, 24, 0.3);
    padding: 10px 2px;
    resize: vertical;
    transition: border-color var(--transition-fast);
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-bottom-color: var(--accent);
}

.contact-form .btn {
    align-self: flex-start;
    margin-top: 8px;
    cursor: pointer;
    font-family: var(--font-body);
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    min-height: 1.2em;
}

.form-note.is-success {
    color: var(--accent);
}


/* ==========================================================================
   FOOTER
   -------------------------------------------------------------------------
   Dark background so the page opens (hero photo panel) and closes
   (footer) on the same tone.
   ========================================================================== */
.site-footer {
    background: var(--text-dark);
    padding: 32px 6vw;
}

.footer-container {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
}

.footer-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: #f3f2ee;
}

.footer-copy {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: rgba(243, 242, 238, 0.55);
}

.footer-top {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f3f2ee;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.footer-top:hover {
    opacity: 0.7;
    transform: translateY(-2px);
}


/* ---- Responsive ---- */
@media (max-width: 900px) {
    .contact {
        padding: 80px 7vw;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 560px) {
    .contact {
        padding: 64px 6vw;
    }

    .contact-socials {
        gap: 20px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}














.project-image {
    width: 100%;
    height: 290px; /* Same height for all 4 project boxes */
    overflow: hidden;
    border-radius: 8px;
}

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