/* ===========================
   THEME VARIABLES
=========================== */
:root {
    --accent:         #E8B84B;
    --brand:          #5f63a2;
    --bg:             #fdfcfa;
    --bg-card:        #ffffff;
    --border:         #ede9e3;
    --border-light:   #ddd8d0;
    --text:           #1c1c1c;
    --text-secondary: #787068;
    --text-muted:     #a8a096;
    --text-body:      #4a4540;
    --text-skill:     #5a5450;
    --nav-bg:         #fdfcfa;
    --placeholder:    #ede9e3;
    --shadow:         rgba(0, 0, 0, 0.07);
}

[data-theme="dark"] {
    --bg:             #131211;
    --bg-card:        #1e1c1a;
    --border:         #2c2925;
    --border-light:   #3a3530;
    --text:           #f0ece6;
    --text-secondary: #8a8278;
    --text-muted:     #6a6460;
    --text-body:      #c8c0b8;
    --text-skill:     #a09890;
    --nav-bg:         rgba(19, 18, 17, 0.88);
    --placeholder:    #2a2724;
    --shadow:         rgba(0, 0, 0, 0.3);
}

/* ===========================
   CUSTOM CURSOR
=========================== */
* { cursor: none !important; }

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    border-radius: 100px;
    will-change: transform;
    width: 26px;
    height: 26px;
    border: 1.5px solid #075431; /* same green as the menu text */
    background-color: rgba(7, 84, 49, 0.35); /* see-through inside */
    margin-left: -13px;
    margin-top: -13px;
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: opacity 0.2s, width 0.35s ease, height 0.25s ease,
                margin 0.25s ease, background-color 0.25s ease, border-color 0.25s ease,
                padding 0.35s ease;
}

.cursor-ring-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    opacity: 0;
    color: #1c1c1c;
    transition: opacity 0s;
}

.cursor-ring-text {
    font-size: 0.72rem;
    font-weight: 500;
    color: #1c1c1c;
    white-space: nowrap;
    font-family: inherit;
    padding-right: 0.5rem;
    opacity: 0;
    transition: opacity 0s;
}

.cursor-ring.cursor-filipa,
.cursor-ring.cursor-filipa-unsee {
    width: max-content;
    max-width: 200px;
    height: 30px;
    margin-left: 4px;
    margin-top: 10px;
    padding: 0 0.6rem;
    border-color: #075431;
    background-color: rgba(7, 84, 49, 0.92); /* cursor green; white text on it is ~7.4:1 */
    gap: 0.3rem;
}

.cursor-ring.cursor-filipa .cursor-ring-icon,
.cursor-ring.cursor-filipa .cursor-ring-text,
.cursor-ring.cursor-filipa-unsee .cursor-ring-icon,
.cursor-ring.cursor-filipa-unsee .cursor-ring-text {
    opacity: 1;
    color: #ffffff;
    transition: opacity 0.2s 0.2s ease;
}

.cursor-ring.cursor-hover {
    width: 38px;
    height: 38px;
    margin-left: -19px;
    margin-top: -19px;
    border-color: #f63434; /* turns red over anything clickable */
    background-color: rgba(246, 52, 52, 0.55);
}

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* ===========================
   LAYOUT
=========================== */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 8vw;
}

/* ===========================
   NAVIGATION
=========================== */
.nav {
    position: static;
    top: 0;
    z-index: 100;
    background-color: var(--nav-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: background-color 0.3s ease;
}

.nav-inner {
    width: 100%;
    margin: 0 auto;
    padding: 0 8vw;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text);
    line-height: 1;
}

/* Brand nav treatment, shared by index.html and spotify.html. */
.nav-brand .nav-inner {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 38px;
    padding-right: 38px;
}

.nav-brand .nav-logo {
    font-size: 18px;
    font-weight: 500;
}

.nav-brand .nav-links {
    gap: 32px;
}

.nav-brand .nav-links a {
    font-size: 18px;
    font-weight: 500;
}

/* Top menu on every page (Figma "Home" + "MENU ON HOVER"): green, red bold on
   hover, and a line under the menu. */
.nav-brand {
    border-bottom: 1px solid var(--border);
}

.nav-brand .nav-logo,
.nav-brand .nav-links a {
    color: #075431;
}

/* The page you're on (class="active") is red; hover is red and bold.
   The name never changes colour — it's just the link home. */
.nav-brand .nav-links a.active {
    color: #f63434;
    font-weight: 500;
}

.nav-brand .nav-links a:hover {
    color: #f63434;
    font-weight: 700;
}

/* Home page (Figma "Home"): hero and work sit in a centred 880px column;
   the footer keeps the menu's 38px page edges. */
.home-page .container {
    max-width: calc(880px + 2 * 38px);
    padding-left: 38px;
    padding-right: 38px;
}

.home-page .footer-inner {
    max-width: none;
}

.home-page .footer p {
    font-size: 16px;
    line-height: 1;
}

/* Hero — Figma 2:8 */
.home-page .hero {
    padding: 80px 0 32px;
}

.home-page .hero-title {
    font-size: 36px;
    letter-spacing: -0.72px;
}

.home-page .hero-sub {
    font-size: 16px;
    color: var(--text-body);
    max-width: 601px;
}

.home-page .hero-location {
    margin-top: -4px;         /* 16px layout gap - 4px = 12px under the subtitle */
    font-size: 16px;
    line-height: 1;
    color: var(--text-secondary);
}

.home-page .reach-out {
    margin-top: 8px;          /* 16px + 8px = 24px from the location */
    padding: 8px 0 0 9px;     /* 3px line + 9px = content 12px in */
    border-left: 3px solid #f63434;
}

.home-page .reach-label {
    font-size: 14px;
    letter-spacing: 1.4px;    /* 10% */
    line-height: 1;
}

.home-page .reach-btn {
    padding: 8px 16px;
}

.home-page .reach-text {
    font-size: 16px;
}

/* Selected work — Figma 3:7 */
.home-page #work {
    padding-top: 64px;
    padding-bottom: 96px;
}

.home-page .sw-title {
    font-size: 34px;
    letter-spacing: -0.68px;
}

.home-page .sw-grid {
    grid-template-columns: 1fr;
}


.filipa-toggle {
    cursor: none;
    display: inline-flex;
    align-items: center;
}

.filipa-photo {
    display: none;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    vertical-align: middle;
}

.filipa-toggle.showing-photo .filipa-name {
    display: none;
}

.filipa-toggle.showing-photo .filipa-photo {
    display: inline-block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
    line-height: 1;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a.active {
    color: var(--text);
    font-weight: 700;
}


/* Theme toggle button */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 100px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: border-color 0.2s, color 0.2s, background-color 0.2s;
    padding: 0;
}

.theme-toggle:hover {
    border-color: var(--text-secondary);
    color: var(--text);
}

.theme-toggle svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}

/* Show/hide sun vs moon */
.icon-moon,
.icon-sun { display: none; }

/* ===========================
   HERO
=========================== */
.hero {
    padding: 5rem 0 2rem;
}

.hero-layout {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 0;
}

.hero-sub {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 560px;
}

.hero-location {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===========================
   GET IN TOUCH
=========================== */
.reach-out {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1.5rem;
}

.reach-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.reach-btns {
    display: flex;
    gap: 0.5rem;
}

.reach-btn {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    background: transparent;
    border: 1px solid var(--placeholder);
    border-radius: 100px;
    padding: 0.4rem 0.75rem;
    color: var(--text-muted);
    font-family: inherit;
    transition: border-color 0.3s, color 0.3s, background-color 0.3s;
}

.reach-btn svg {
    width: 14px;
    height: 14px;
    display: block;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    flex-shrink: 0;
}

.reach-btn svg[fill="currentColor"] {
    fill: currentColor;
    stroke: none;
}

.reach-text {
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    white-space: nowrap;
    font-size: 0.8rem;
    line-height: 1;
    vertical-align: middle;
    margin-left: 0;
    padding-bottom: 2px;
    transition: max-width 0.4s ease, opacity 0.3s ease, margin-left 0.3s ease;
}

.reach-text a {
    color: inherit;
}

.reach-btn.active {
    border-color: rgba(7, 84, 49, 0.5);   /* cursor green */
    background: rgba(7, 84, 49, 0.12);
    color: var(--text);
    box-shadow: 0 2px 8px var(--shadow);
}

.reach-btn.active .reach-text {
    max-width: 280px;
    opacity: 1;
    margin-left: 0.5rem;
}

/* ===========================
   SECTIONS
=========================== */
.section {
    padding: 1.5rem 0 5rem;
}

.section-last {
    padding-bottom: 6rem;
}

.section-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* ===========================
   RECENT PROJECTS
=========================== */
.rp-list {
    display: flex;
    flex-direction: column;
    margin-top: 1.5rem;
}

.rp-item {
    display: grid;
    grid-template-columns: 2rem 1fr auto auto 1.5rem;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    transition: color 0.2s, padding-left 0.2s;
}

.rp-list .rp-item:first-child {
    border-top: 1px solid var(--border);
}

.rp-item:hover {
    padding-left: 0.5rem;
}

.rp-number {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.rp-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
}

.rp-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.rp-year {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.rp-arrow {
    color: var(--text-muted);
    font-size: 1rem;
    transition: transform 0.2s, color 0.2s;
}

.rp-item:hover .rp-arrow {
    transform: translateX(4px);
    color: var(--text);
}

/* ===========================
   SELECTED WORK
=========================== */
.sw-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2rem;
}

.sw-title {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1;
}

.sw-title em {
    font-style: italic;
    font-weight: 300;
}

.sw-meta {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.sw-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.sw-card {
    display: block;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease,
                background-color 0.3s ease, border-color 0.3s ease;
}

.sw-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px var(--shadow);
}

.sw-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--placeholder);
}

.sw-card-image video,
.sw-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Spotify Radar cover: the banner is ~2.1:1, so show it whole inside the 4:3 card
   and fill the rest with the banner's own dark background. */
.sw-card-image--banner {
    aspect-ratio: 1600 / 750; /* the banner video's own shape, so no bars */
    background-color: #f0f0eb; /* matches the banner's opening frame */
}

/* .sw-card sets display, which would otherwise override the hidden attribute */
.sw-card[hidden] {
    display: none;
}

.sw-card-name {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-style: italic;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: -0.01em;
    text-shadow: 0 1px 8px rgba(0,0,0,0.25);
}

.sw-card-info {
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.sw-card-desc {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.sw-card-tags {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.sw-card-year {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Figma Home "Frame 347": the card is just the cover; text and chip sit below it. */
.sw-project {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.sw-project .sw-card {
    width: 100%;
}

.sw-project:hover .sw-card {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px var(--shadow);
}

.sw-project-desc {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.16px;
    color: var(--text-body);
}

.sw-project .chip {
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0.96px;
    padding: 3px 10px;
}

/* ===========================
   PROJECT CARDS (legacy)
=========================== */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.project-card {
    display: block;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease,
                background-color 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px var(--shadow);
}

.project-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background-color: var(--placeholder);
    transition: background-color 0.3s ease;
}

.project-info {
    padding: 1.25rem 1.5rem 1.5rem;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.625rem;
}

.project-year {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Status Chips */
.chip {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.65rem;
    border-radius: 100px;
    text-transform: uppercase;
}

.chip-shipped {
    background-color: #ddf0e6;
    color: #286648;
}

.chip-wip {
    background-color: #fef3d4;
    color: #8a6100;
}

.chip-concept {
    background-color: #8c8478;   /* Figma: grey-brown pill, light text */
    color: #fdfcfa;
}

[data-theme="dark"] .chip-shipped {
    background-color: #1a3d2a;
    color: #5fd49a;
}

[data-theme="dark"] .chip-wip {
    background-color: #3a2e00;
    color: #f0c040;
}

[data-theme="dark"] .chip-concept {
    background-color: #22204a;
    color: #9b97e0;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.project-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ===========================
   ABOUT
=========================== */
.about-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 4rem;
    align-items: start;
}

.placeholder-portrait {
    aspect-ratio: 3 / 4;
    border-radius: 6px;
    width: 100%;
}

.about-body {
    font-size: 1.05rem;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
}

.skill-tag {
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--border-light);
    border-radius: 100px;
    color: var(--text-skill);
    transition: border-color 0.3s ease, color 0.3s ease;
}

/* ===========================
   CONTACT
=========================== */
.contact-inner {
    max-width: 560px;
}

.contact-heading {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.contact-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-email {
    display: inline-block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    padding-bottom: 0.2rem;
    margin-bottom: 2rem;
    transition: border-color 0.2s;
}

.contact-email:hover {
    border-color: var(--text);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--text);
}

/* ===========================
   FOOTER
=========================== */
.footer {
    padding: 1.5rem 0;
    transition: border-color 0.3s ease;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ===========================
   FADE-IN ANIMATIONS
=========================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   RESPONSIVE
=========================== */

/* iPad (768px – 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 6vw;
    }

    .sw-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

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

    .about-grid {
        grid-template-columns: 180px 1fr;
        gap: 2.5rem;
    }

    .hero {
        padding: 6rem 0 4rem;
    }
}

/* ===========================
   PHONE (Figma "home-mobile-390" + "home-mobile menu open")
=========================== */
/* Menu button: hidden on bigger screens */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;                /* two 2px lines, 12px apart */
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 100px;
}

.nav-toggle span {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 2px;       /* round line ends */
    background-color: #075431;
    transition: transform 0.25s ease, width 0.25s ease, opacity 0.2s ease;
}

.nav-toggle span:nth-child(2) {
    display: none;            /* the design uses two lines */
}

@media (max-width: 767px) {
    /* Menu bar: 76px tall, 20px edges */
    .nav-brand {
        position: relative;
    }

    .nav-brand .nav-inner {
        height: 76px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .nav-brand .nav-logo {
        font-size: 16px;
    }

    .nav-toggle {
        display: flex;
    }

    /* Open menu: full-width panel under the bar, right-aligned rows */
    .nav-brand .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 50;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 0 20px;
        background-color: var(--bg);
        border-bottom: 1px solid var(--border);
    }

    .nav-brand.nav-open .nav-links {
        display: flex;
    }

    .nav-brand .nav-links a,
    .nav-brand .nav-links a:hover {
        display: block;
        padding: 16px 20px;
        border-radius: 12px;
        text-align: right;
        font-size: 20px;
        font-weight: 500;
        line-height: 1.2;
    }

    /* Open: the two lines turn into a green ✕ (18×18) */
    .nav-open .nav-toggle span {
        width: 25.5px;
    }

    .nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    /* ---- Home page ---- */
    .home-page .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .home-page .hero {
        padding: 40px 0 32px;
    }

    .home-page .hero-layout {
        gap: 0;
    }

    .home-page .hero-title {
        font-size: 32px;
        font-weight: 500;
        line-height: 1.2;
        letter-spacing: -0.64px;
        margin-bottom: 40px;
    }

    .home-page .hero-sub {
        font-size: 15px;
        line-height: 1.6;
    }

    .home-page .hero-location {
        margin-top: 12px;
        font-size: 14px;
    }

    .home-page .reach-out {
        width: 100%;
        margin-top: 40px;
        padding: 16px 16px 16px 13px;   /* 3px line + 13px = 16px in */
        gap: 16px;
    }

    .home-page .reach-label {
        font-size: 12px;
        letter-spacing: 1.2px;
    }

    /* Buttons: stacked, full width, text always showing */
    .home-page .reach-btns {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .home-page .reach-btn {
        width: 100%;
        padding: 12px 16px;
        background-color: #fff;
        border-color: var(--border);
        color: var(--text-body);
    }

    .home-page .reach-btn svg {
        display: none;
    }

    .home-page .reach-text {
        max-width: none;
        opacity: 1;
        margin-left: 0;
        padding-bottom: 0;
        font-size: 14px;
    }

    .home-page #work {
        padding: 32px 0 48px;
    }

    .home-page .sw-header {
        margin-bottom: 24px;
    }

    .home-page .sw-title {
        font-size: 24px;
        line-height: 1.2;
        letter-spacing: -0.48px;
    }

    .home-page .sw-project .sw-card {
        border: 0;
        border-radius: 6px;
    }

    .home-page .sw-project-desc {
        margin-top: 12px;          /* 12px gap + 12px = 24px under the cover */
        font-size: 12px;
        letter-spacing: -0.12px;
    }

    .home-page .sw-project .chip {
        font-size: 10px;
        letter-spacing: 0.6px;
        padding: 4px 10px;
    }

    /* Footer: line on top, only "Designed & built by me", centred */
    .home-page .footer {
        padding: 24px 0;
        border-top: 1px solid var(--border);
    }

    .home-page .footer p:first-child {
        display: none;
    }

    .home-page .footer p {
        font-size: 14px;
        line-height: 1.4;
    }
}

/* Touch screens: no custom cursor, normal behaviour back */
@media (hover: none), (pointer: coarse) {
    * {
        cursor: auto !important;
    }

    .cursor-ring {
        display: none !important;
    }
}

/* Phone (up to 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 5vw;
    }

    .nav-inner {
        padding: 0 5vw;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .hero {
        padding: 4.5rem 0 3rem;
    }

    .hero-layout {
        gap: 1rem;
    }

    .hero-sub {
        font-size: 1rem;
    }

    .sw-grid {
        grid-template-columns: 1fr;
    }

    .sw-header {
        flex-direction: column;
        gap: 0.25rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .placeholder-portrait {
        max-width: 160px;
    }

    .section {
        padding: 3.5rem 0;
    }

    .contact-heading {
        font-size: 1.75rem;
    }

    .social-links {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .footer-inner {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}
