/* Custom Fonts */
@font-face {
    font-family: 'Apfel Grotezk';
    font-weight: 400;
    font-style: normal;

    font-display: swap;
    src: url('fonts/ApfelGrotezk-Regular.woff2') format('woff2'),
        url('fonts/ApfelGrotezk-Regular.woff') format('woff');
}

@font-face {
    font-family: 'Apfel Grotezk';
    font-weight: 700;
    font-style: normal;

    font-display: swap;
    src: url('fonts/ApfelGrotezk-Fett.woff2') format('woff2'),
        url('fonts/ApfelGrotezk-Fett.woff') format('woff');
}

@font-face {
    font-family: 'Necto Mono';
    font-weight: 400;
    font-style: normal;

    font-display: swap;
    src: url('fonts/NectoMono-Regular.woff2') format('woff2'),
        url('fonts/NectoMono-Regular.otf') format('opentype');
}

:root {
    /* Palette v2 Core Colors */
    --ink: #111110;
    --charcoal: #1E1E1C;
    --graphite: #2E2E2B;
    --iron: #4A4A46;
    --ash: #8A8A84;
    --linen: #F0EFE9;
    --white: #FAFAF8;
    --ember: #E8521A;
    --ember-lt: #F47B4A;

    /* Structural Variables */
    --bg-color: #0c0c0b;
    --surface-color: var(--charcoal);
    --text-primary: var(--white);
    --text-secondary: var(--ash);
    --accent-color: var(--ember);
    --border-color: var(--graphite);
    --shadow-sm: 0 1px 2px 0 rgb(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0, 0, 0, 0.4), 0 2px 4px -1px rgb(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgb(0, 0, 0, 0.5), 0 4px 6px -2px rgb(0, 0, 0, 0.3);
    --font-heading: 'Satoshi', sans-serif;
    --font-sans: 'Space Grotesk', -apple-system, blinkmacsystemfont, sans-serif;
    --font-mono: 'Necto Mono', monospace;
}

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

html {
    overflow-x: clip;
}

body {
    scroll-behavior: smooth;

    position: relative;

    overflow-x: clip;

    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-primary);

    background-color: var(--bg-color);
}

/* Very subtle background texture */
.grid-overlay {
    pointer-events: none;

    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    background-image:
        linear-gradient(rgb(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgb(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* Navigation */
.minimal-nav {
    position: sticky;
    z-index: 100;
    top: 0.75rem;

    display: flex;
    align-items: center;
    justify-content: space-between;

    height: auto;
    padding: 0.75rem 2rem;
    border: none;

    background: transparent;
}

.logo {
    position: fixed;
    z-index: 200;
    top: 1.5rem;
    left: 2rem;

    display: flex;
    align-items: center;

    padding: 0;
    border: none;

    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
}

.logo img {
    display: block;
    width: auto;
    height: 46px;
}

.links .lang-switcher {
    display: none;
}

.links {
    position: fixed;
    z-index: 200;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);

    overflow: hidden;
    display: flex;
    align-items: center;

    height: 36px;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 10px;

    white-space: nowrap;

    background: rgb(17, 17, 16, 0.75);
    backdrop-filter: blur(24px);
    box-shadow: 0 4px 24px rgb(0, 0, 0, 0.4);
}

.links a {
    display: flex;
    gap: 0.35rem;
    align-items: center;

    height: 100%;
    margin: 0;
    padding: 0 1.5rem;

    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;

    transition: color 0.2s ease, background 0.2s ease;
}

.links a:hover {
    color: var(--text-primary);
    background: var(--charcoal);
}

.nav-num {
    font-size: 0.65rem;
    color: var(--accent-color);
}

.mobile-only-link {
    display: none;
}

.mobile-cta-btn {
    display: none;
}

.menu-close {
    display: none;
}

.nav-right {
    position: fixed;
    z-index: 200;
    top: 1.5rem;
    right: 2rem;

    display: flex;
    gap: 1rem;
    align-items: center;

    height: 36px;
    padding: 0 0.5rem 0 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;

    background: rgb(17, 17, 16, 0.75);
    backdrop-filter: blur(24px);
}

.nav-right .lang-switcher {
    display: flex;
    align-items: center;

    margin: 0;
    padding: 0;
    border: none;
}

.nav-contact-btn {
    display: flex;
    align-items: center;

    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 8px;

    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;

    background: var(--accent-color);

    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.nav-contact-btn:hover {
    background: var(--ember-lt);
    box-shadow: 0 4px 12px rgb(232, 82, 26, 0.3);
}

/* Burger menu button (mobile only) */
.burger {
    cursor: pointer;

    z-index: 300;

    display: none;
    flex-direction: column;
    gap: 5px;
    justify-content: center;

    height: auto;
    padding: 4px 8px;
    border: none;

    background: none;
}

.burger span {
    display: block;

    width: 22px;
    height: 2px;
    border-radius: 2px;

    background: var(--text-primary);

    transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
    opacity: 0;
}

.burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Language Switcher */
.lang-switcher {
    display: inline-flex;
    gap: 0.2rem;
    align-items: center;

    margin-left: 0.4rem;
    padding-left: 0.75rem;

    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
}

.lang-switcher a {
    margin: 0;
    padding: 0;
    font-size: 0.75rem;
}

.lang-switcher .active-lang {
    pointer-events: none;
    color: var(--text-primary);
}

.lang-switcher .inactive-lang {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.lang-switcher .inactive-lang:hover {
    color: var(--accent-color);
}

.lang-sep {
    color: var(--text-secondary);
}

/* Main Sections */
.minimal-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 2.5rem;
    border-bottom: 1px solid var(--border-color);
}

.minimal-section:last-of-type {
    border-bottom: none;
}

/* Bright Section */
.minimal-section.bright-section {
    position: relative;
    z-index: 1;

    border-bottom: none;

    color: var(--ink);

    background-color: var(--linen);
    clip-path: inset(0 -100vmax);
    box-shadow: 0 0 0 100vmax var(--linen);
}

.bright-section .section-header h2 {
    color: var(--ink);
}

.bright-section .section-subtext {
    color: var(--iron);
}

.section-header h2 {
    position: relative;

    display: inline-block;

    margin-bottom: 3.5rem;

    font-size: 2.8rem;
    font-weight: 700;
}

.section-header h2::after {
    content: '';

    position: absolute;
    bottom: -0.6rem;
    left: 0;

    width: 2.5rem;
    height: 2px;
    border-radius: 2px;

    background-color: var(--accent-color);
}

/* Hero Section */
#hero {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;

    min-height: 60vh;

    clip-path: inset(0 -100vmax);
}

#hero::before {
    pointer-events: none;
    content: '';

    position: absolute;
    z-index: 0;
    top: -20%;
    left: -10%;

    width: 600px;
    height: 600px;

    background: radial-gradient(circle, rgb(232, 82, 26, 0.08) 0%, transparent 70%);
}

#hero-dither {
    pointer-events: none;

    position: absolute;
    z-index: 0;
    top: 0;
    left: 50%;
    transform: translateX(-50%);

    display: block;

    width: 100vw;
    height: 100%;
}

.hero-background-logo {
    pointer-events: none;

    position: absolute;
    z-index: 0;
    top: 3rem;
    right: 3rem;

    width: 350px;
    height: auto;

    opacity: 0.85;
    mix-blend-mode: lighten;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    margin-bottom: 1rem;

    font-family: 'Funnel Display', sans-serif;
    font-size: clamp(4rem, 9vw, 7rem);
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.accent-word {
    color: var(--accent-color);
}

.subtitle {
    width: fit-content;
    margin-bottom: 2.5rem;
    margin-left: -1rem;
    padding: 0.15rem 1rem;
    border-radius: 26px;

    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.3rem;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: -0.01em;

    background: rgb(12, 12, 11, 0.1);
    backdrop-filter: blur(8px);
}

.bio {
    width: fit-content;
    max-width: 650px;
    margin-left: -1rem;
    padding: 0.5rem 1rem;
    border-radius: 26px;

    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-secondary);

    background: rgb(12, 12, 11, 0.2);
    backdrop-filter: blur(4px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 3rem;
    margin: 2.5rem 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    margin-bottom: 0.25rem;

    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Section Headers */
.section-subtext {
    margin-top: -2.5rem;
    margin-bottom: 3.5rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Symptoms Section */
.services-grid.symptoms-as-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* Compact padding + bottom borders for 2×2 grid */
.symptoms-as-grid .service-card {
    min-height: 0;
    padding: 2rem 2.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* Right column: no right border */
.symptoms-as-grid .service-card:nth-child(2n) {
    border-right: none;
}

/* Bottom row: no bottom border */
.symptoms-as-grid .service-card:nth-child(3),
.symptoms-as-grid .service-card:nth-child(4) {
    border-bottom: none;
}

@media (max-width: 640px) {
    .services-grid.symptoms-as-grid {
        grid-template-columns: 1fr;
    }

    .symptoms-as-grid .service-card {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .symptoms-as-grid .service-card:last-child {
        border-bottom: none;
    }
}

.symptom-num {
    display: block;

    margin-bottom: 1.25rem;

    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 0.12em;
}

.symptom-editorial h3 {
    margin-bottom: 0.6rem;
    font-size: 1.25rem;
}

.symptom-editorial p {
    margin-bottom: 0;

    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* About section header layout */
#about .about-header {
    display: flex;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

#about .about-header-text {
    flex: 1;
    order: 1;
}

#about .about-profile-wrap {
    order: 2;
}

#about .about-header-text h2 {
    margin-bottom: 2rem;

    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

#about .about-header-text .section-subtext {
    margin-top: 0;
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

#about .about-header-text .section-subtext:last-of-type {
    margin-bottom: 0;
}

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

.about-profile-wrap {
    position: relative;

    flex-shrink: 0;

    width: 240px;
    height: auto;

    background-color: #CECDC8;
    clip-path: inset(0% 0% 0% 0%);
}

.about-profile-wrap::after {
    pointer-events: none;
    content: '';

    position: absolute;
    inset: 0;

    border: 1px solid #CECDC8;
}

.about-profile-img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    mix-blend-mode: multiply;
}

/* Section-specific card backgrounds */
#about .service-card {
    min-height: 340px;
    background: var(--surface-color);
}

/* About cards: left border on first, right border on last */
#about .service-card:first-child {
    border-left: 1px solid var(--border-color);
}

#about .service-card:last-child {
    border-right: 1px solid var(--border-color);
}

#about .service-card h3,
#about .service-card .card-icon {
    color: var(--white);
}

#about .service-card p {
    color: var(--ash);
}

#about .card-list {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.65;
    color: rgb(250, 250, 248, 0.72);
    text-transform: none;
    letter-spacing: 0;
}

#services .expertise-right .card-list {
    font-size: 1.25rem;
    line-height: 1.55;
}

/* Restore orange hover for about cards */
#about .service-card:hover {
    background-color: var(--accent-color);
}

#about .service-card:hover h3,
#about .service-card:hover p,
#about .service-card:hover .card-icon {
    color: var(--ink);
}

/* Expertise sticky layout */
.expertise-block {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 0;

    margin: 0 -2.5rem;
    padding: 5rem 2.5rem;
    border-top: 1px solid var(--border-color);

    transition: background-color 0.3s ease;
}

.expertise-block:last-child {
    border-bottom: 1px solid var(--border-color);
}

.expertise-block:hover {
    background-color: var(--accent-color);
}

.expertise-block:hover .expertise-left h3,
.expertise-block:hover .expertise-left .card-icon {
    color: var(--ink);
}

.expertise-block:hover .expertise-right {
    transform: translateY(0);
    border-color: rgb(17, 17, 16, 0.2);
    opacity: 1;
}

.expertise-block:hover .expertise-right .card-list {
    color: var(--ink);
}

.expertise-block:hover .card-list li::before {
    color: var(--ink);
}

.expertise-block:hover .expertise-stack {
    border-color: rgb(17, 17, 16, 0.2);
}

.expertise-block:hover .cert-tag {
    color: var(--accent-color);
}

.expertise-left {
    position: sticky;
    top: 8rem;

    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: center;
    align-self: start;

    padding-right: 3rem;
}

.expertise-left .card-icon {
    flex-shrink: 0;

    width: 272px;
    height: 272px;
    margin-bottom: 0;

    color: var(--text-secondary);
}

.expertise-left h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

.expertise-right {
    transform: translateY(28px);

    padding-left: 3rem;
    border-left: 1px solid var(--border-color);

    opacity: 0;

    transition: opacity 0.65s ease, transform 0.65s ease;
}

.expertise-right.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.expertise-right .card-list {
    margin-bottom: 0;

    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.6;
    color: rgb(250, 250, 248, 0.72);
    text-transform: none;
    letter-spacing: 0;
}

.expertise-right .card-list li {
    margin-bottom: 1rem;
}

.expertise-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;

    margin-top: 2.5rem;
    padding-top: 0;
    border-top: none;
}

@media (max-width: 768px) {
    .expertise-block {
        grid-template-columns: 1fr;
        margin: 0;
        padding: 2.5rem 1.5rem;
    }

    .expertise-left {
        position: static;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 2rem;
        padding-right: 0;
    }

    .expertise-left .card-icon {
        width: 80px;
        height: 80px;
    }

    .expertise-right {
        padding-top: 2rem;
        padding-left: 0;
        border-top: 1px solid rgba(17, 17, 16, 0.15);
        border-left: none;
    }
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;

    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

    .service-card {
        min-height: 400px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .service-card:last-child {
        border-bottom: none;
    }
}

.service-card {
    position: relative;

    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    min-height: 520px;
    padding: 3.5rem 2.5rem;
    border-right: 1px solid var(--border-color);
    border-radius: 0;

    background: transparent;
    box-shadow: none;

    transition: background-color 0.3s ease, color 0.3s ease;
}

.service-card:last-child {
    border-right: none;
}



.service-card:hover {
    border-color: var(--border-color);
    color: var(--ink);
    background-color: var(--accent-color);
    box-shadow: none;
}

.card-icon {
    display: flex;
    flex-grow: 0;
    align-items: center;
    justify-content: center;

    height: 220px;
    margin-bottom: 2rem;

    color: var(--text-primary);

    transition: color 0.3s ease;
}

.bright-section .card-icon {
    color: var(--ink);
}

.service-card:hover .card-icon {
    color: var(--ink);
}

.card-icon svg {
    width: 60%;
    max-width: 160px;
    height: auto;
}

.card-icon--screenshot {
    overflow: hidden;
    align-items: stretch;

    height: 300px;
    margin: -3.5rem -2.5rem 2rem;
    padding: 0;
    border-radius: 0;
}

.card-icon--screenshot img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: top;

    transition: transform 0.4s ease, filter 0.3s ease;
}

.service-card:hover .card-icon--screenshot img {
    transform: scale(1.03);
    filter: grayscale(1);
    mix-blend-mode: multiply;
}

.service-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    transition: color 0.3s ease;
}

.bright-section .service-card h3 {
    color: var(--ink);
}

.service-card p {
    margin-bottom: 2.5rem;

    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;

    transition: color 0.3s ease;
}

#work .service-card p,
#services .service-card p {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.65;
    color: rgb(250, 250, 248, 0.72);
    text-transform: none;
    letter-spacing: 0;
}

.bright-section .service-card p {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.65;
    color: var(--iron);
    text-transform: none;
    letter-spacing: 0;
}

.service-card:hover h3,
.service-card:hover p {
    color: var(--ink);
}

.card-list {
    margin: 0 0 2.5rem;
    padding: 0;

    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--ash);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    list-style: none;
}

.card-list li {
    display: flex;
    gap: 0.6rem;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.card-list li::before {
    content: '›';

    position: relative;
    top: 0.08em;

    display: inline-block;
    flex-shrink: 0;

    font-size: 1.3em;
    font-weight: 700;
    line-height: 1;
    color: var(--accent-color);
}

.service-card:hover .card-list {
    color: var(--ink);
}

.service-card:hover .card-list li::before {
    color: var(--ink);
}

/* Explore Button */
.card-btn {
    cursor: pointer;

    align-self: flex-start;

    margin-top: auto;
    padding: 0.6rem 1.8rem;
    border: 1px solid var(--border-color);
    border-radius: 30px;

    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;

    background: transparent;

    transition: all 0.3s ease;
}

.bright-section .card-btn {
    border-color: var(--ink);
    color: var(--ink);
}

.service-card:hover .card-btn {
    border-color: var(--ink);
    color: var(--white);
    background: var(--ink);
}


.tech-item {
    display: inline-flex;
    align-items: center;

    padding: 0.4rem 1.2rem;
    border: 1px solid rgb(250, 250, 248, 0.1);
    border-radius: 40px;

    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.02em;

    background-color: rgb(250, 250, 248, 0.03);

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-item:hover {
    transform: translateY(-2px);

    border-color: var(--accent-color);

    color: var(--accent-color);

    background-color: rgb(232, 82, 26, 0.05);
    box-shadow: 0 4px 12px rgb(232, 82, 26, 0.15);
}

.expertise-block:hover .tech-item {
    border-color: rgb(17, 17, 16, 0.2);
    color: var(--ink);
    background-color: rgb(250, 250, 248, 0.15);
}

.expertise-block:hover .tech-item:hover {
    border-color: var(--ink);
    color: var(--white);
    background-color: var(--ink);
    box-shadow: 0 4px 12px rgb(17, 17, 16, 0.15);
}

.cert-tag {
    margin-left: 0.3rem;

    font-size: 0.65rem;
    font-weight: 600;
    color: var(--accent-color);

    transition: all 0.3s ease;
}

.expertise-block:hover .tech-item .cert-tag {
    color: var(--accent-color);
}

.expertise-block:hover .tech-item:hover .cert-tag {
    color: var(--white);
    opacity: 0.8;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border: 1px solid var(--border-color);
}


.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.tech-tag {
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;

    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);

    background-color: var(--bg-color);
}

/* Case Study Cards */
.case-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

.case-index {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 0.12em;
}

.case-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 40px;
    padding: 0 0.75rem;
    border: none;
    border-radius: 4px;
}

.case-logo-placeholder img {
    display: block;

    width: auto;
    max-width: 120px;
    height: 40px;

    object-fit: contain;
    filter: brightness(0) invert(1);

    transition: filter 0.3s ease;
}

.case-logo-placeholder img[alt="Van Cleef & Arpels"] {
    filter: invert(1);
    mix-blend-mode: screen;
}

.case-logo-placeholder:has(img) {
    padding: 0 0.6rem;
}

.service-card:hover .case-logo-placeholder img {
    filter: brightness(0);
}

.service-card:hover .case-logo-placeholder img[alt="Van Cleef & Arpels"] {
    filter: invert(1);
    mix-blend-mode: screen;
}

.case-logo-placeholder span {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.15em;

    transition: color 0.3s ease;
}


.service-card:hover .case-logo-placeholder span {
    color: var(--ink);
}


#work .service-card {
    min-height: 0;
}

#work .service-card .case-body {
    flex: 1;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

#work .service-card:hover .case-body {
    border-color: rgb(17, 17, 16, 0.25);
}

.case-impact {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;

    margin-top: 0;
    margin-bottom: 2rem;
    padding-top: 2rem;
}

#work .service-card .case-impact {
    min-height: 8rem;
}

.case-impact-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent-color);
    letter-spacing: -0.03em;

    transition: color 0.3s ease;
}

.service-card:hover .case-impact-number {
    color: var(--ink);
}

.case-impact-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;

    transition: color 0.3s ease;
}

.service-card:hover .case-impact-label {
    color: var(--ink);
}

/* Minimal Button */
.minimal-btn {
    cursor: pointer;

    display: inline-block;
    align-self: flex-start;

    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;

    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    text-decoration: none;

    background: transparent;

    transition: all 0.3s ease;
}

.minimal-btn:hover {
    color: var(--surface-color);
    background: var(--text-primary);
}

.nav-contact-btn::after,
.minimal-btn::after {
    content: "\2192";
    display: inline-block;
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.nav-contact-btn:hover::after,
.minimal-btn:hover::after {
    transform: translateX(4px);
}

.primary-btn {
    border-color: var(--accent-color);

    color: var(--white);

    background: var(--accent-color);
    box-shadow: 0 0 0 0 rgb(232, 82, 26, 0);

    transition: all 0.3s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);

    border-color: var(--accent-color);

    color: var(--white);

    background: var(--ember-lt);
    box-shadow: 0 6px 20px rgb(232, 82, 26, 0.35);
}

.secondary-btn {
    border-color: var(--border-color);
    color: var(--text-primary);
    background: var(--surface-color);
}

.secondary-btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: var(--shadow-sm);
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: start;
}

#contact {
    text-align: center;
}

#contact .section-header h2 {
    font-size: 4rem;
    line-height: 1.05;
    margin-bottom: 2rem;
}

#contact .section-header h2::after {
    left: 50%;
    transform: translateX(-50%);
}

#contact .contact-tagline {
    margin-left: auto;
    margin-right: auto;
}

#contact .contact-links {
    align-items: center;
}

.contact-tagline {
    max-width: 40ch;
    margin-bottom: 3rem;

    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 0.6rem;

    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-primary);
    text-decoration: none;

    transition: color 0.2s ease;
}

.contact-link::before {
    content: '→';
    color: var(--accent-color);
    transition: transform 0.2s ease;
}

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

.contact-link:hover::before {
    transform: translateX(4px);
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.form-group input,
.form-group textarea {
    resize: none;

    width: 100%;
    padding: 0.6rem 0;
    border: none;
    border-bottom: 1px solid var(--border-color);

    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-primary);

    background: transparent;
    outline: none;

    transition: border-color 0.25s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    font-size: 0.9rem;
    color: var(--iron);
}

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

.contact-form .minimal-btn {
    align-self: flex-start;
    margin-top: 0.5rem;
}

/* Success state */
.form-success {
    display: flex;
    gap: 1rem;
    align-items: center;

    padding: 1.5rem;
    border: 1px solid var(--graphite);

    background: var(--surface-color);
}

.form-success.hidden {
    display: none;
}

.form-success-icon {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--accent-color);
}

.form-success p {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    #contact .section-header h2 {
        font-size: 3rem;
    }
}

/* Social Sidebar */
.social-sidebar {
    position: fixed;
    z-index: 100;
    bottom: 0;
    left: 2.5rem;

    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.social-sidebar::after {
    content: '';

    width: 1px;
    height: 80px;
    margin-top: 0.5rem;

    background-color: var(--border-color);
}

.social-sidebar a {
    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--text-secondary);

    transition: color 0.3s ease, transform 0.3s ease;
}

.social-sidebar a:hover {
    transform: translateY(-4px);
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .social-sidebar {
        display: none;
    }

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

/* Footer */
.minimal-footer {
    padding: 2rem 2.5rem;
    border-top: 1px solid var(--border-color);

    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Modal Styling */
.modal {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;

    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    background-color: rgb(17, 17, 16, 0.6);
    backdrop-filter: blur(16px);
}

.modal.hidden {
    display: none;
}

.modal-content {
    scrollbar-color: var(--border-color) var(--surface-color);
    scrollbar-width: thin;

    position: relative;

    overflow-y: auto;

    width: 90%;
    max-width: 750px;
    max-height: 85vh;
    padding: 3.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;

    background: var(--surface-color);
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--surface-color);
}

.modal-content::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
}

.close-btn {
    cursor: pointer;

    border: none;

    font-size: 2rem;
    line-height: 1;
    color: var(--text-secondary);

    background: none;

    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--accent-color);
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-section h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-section p,
.modal-section ul {
    line-height: 1.6;
    color: var(--text-secondary);
}

.modal-section strong {
    font-weight: 700;
    color: var(--text-primary);
}

.modal-section ul {
    margin-top: 0.5rem;
    padding-left: 1.25rem;
}

.modal-section li {
    margin-bottom: 0.4rem;
}

.modal-section-grid {
    display: grid;
    gap: 1.5rem;
}

.modal-impact-section {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.modal-impact-section h4 {
    flex-shrink: 0;
    display: inline-block;
    padding: 0.25rem 0.85rem;
    border-radius: 30px;
    background: var(--accent-color);
    color: var(--ink);
    font-size: 0.8rem;
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.modal-impact-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 3.5rem;
    margin-top: 0;
}

.modal-impact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-impact-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent-color);
    letter-spacing: -0.03em;
}

.modal-impact-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.highlight-text {
    font-weight: 600;
    color: var(--accent-color) !important;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1.9rem;
    }

    #about .about-header {
        display: block;
    }

    .about-profile-wrap {
        float: right;

        width: 110px;
        height: 110px;
        margin-bottom: 0.5rem;
        margin-left: 1rem;

        clip-path: inset(0);
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .minimal-nav {
        height: 52px;
        padding: 0;
    }

    .mobile-cta-btn {
        display: flex;
        align-items: center;

        margin-right: 0.75rem;
        margin-left: auto;
        padding: 0.4rem 1rem;
        border: none;
        border-radius: 8px;

        font-family: var(--font-mono);
        font-size: 0.7rem;
        font-weight: 700;
        color: var(--white);
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 0.1em;

        background: var(--accent-color);
    }

    .links {
        z-index: 9999;
        inset: 0;
        transform: none;

        overflow: auto;
        display: none;
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
        justify-content: center;

        width: 100%;
        height: 100%;
        padding: 2rem;
        border: none;
        border-radius: 0;

        white-space: normal;

        background: rgb(30, 30, 28, 0.85);
        backdrop-filter: blur(20px);
        box-shadow: none;
    }

    .links.open {
        display: flex;
    }

    .links a {
        width: 100%;
        height: auto;
        padding: 1rem 0;
        border-right: none;
        border-bottom: 1px solid var(--border-color);

        font-size: 1.1rem;
        color: var(--white);
        text-transform: none;
        letter-spacing: 0.05em;

        transition: color 0.2s ease;
    }

    .links a:hover {
        color: var(--accent-color);
        background: transparent;
    }

    .menu-close {
        cursor: pointer;

        position: absolute;
        top: 1.25rem;
        right: 1.5rem;

        display: block;

        padding: 0.25rem;
        border: none;

        font-size: 1.25rem;
        line-height: 1;
        color: var(--text-secondary);

        background: none;

        transition: color 0.2s ease;
    }

    .menu-close:hover {
        color: var(--white);
    }

    .nav-right {
        display: none;
    }

    .mobile-only-link {
        display: flex !important;
        align-self: flex-start;

        width: auto;
        margin-top: 1rem;
        padding: 0.75rem 1.5rem;
        border-bottom: none;
    }

    .links .lang-switcher {
        display: flex;
    }

    .lang-switcher {
        margin-top: 1rem;
        padding-top: 1rem;
        padding-left: 0;
        border-top: 1px solid var(--border-color);
        border-left: none;

        font-size: 0.9rem;
    }

    .lang-switcher a {
        font-size: 0.9rem;
    }

    .burger {
        z-index: 10000;
        display: flex;
        margin-left: 0;
    }
}

/* ── Trusted by marquee ── */
.trusted-by-section {
    overflow: hidden;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.trusted-label {
    margin-bottom: 2rem;

    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.marquee-wrapper {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.marquee-track {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-logo {
    display: flex;
    align-items: center;

    height: 82px;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;

    opacity: 0.5;

    transition: opacity 0.2s;
}

.marquee-logo img {
    width: auto;
    max-width: 220px;
    height: 48px;

    object-fit: contain;
    filter: brightness(0) invert(1);
}

.marquee-logo img[alt="Van Cleef & Arpels"] {
    filter: invert(1);
    mix-blend-mode: screen;
}

.marquee-logo:hover {
    opacity: 1;
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ── Case study dedicated page ── */
.modal-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 1.5rem;
}

#cs-problem,
#cs-solution {
    line-height: 1.6;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .modal-two-col {
        grid-template-columns: 1fr;
    }
}

.modal-label {
    display: block;

    margin-bottom: 0.75rem;

    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.back-link {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;

    margin-bottom: 3rem;

    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;

    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--accent-color);
}

.cs-nav-btn {
    position: fixed;
    z-index: 150;
    top: 50%;
    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;
    border: 1px solid var(--border-color);
    border-radius: 50%;

    font-size: 1.1rem;
    color: var(--text-secondary);
    text-decoration: none;

    background: var(--bg-color);

    transition: border-color 0.2s ease, color 0.2s ease;
}

.cs-nav-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

#cs-prev {
    left: 1.5rem;
}

#cs-next {
    right: 1.5rem;
}

@media (max-width: 900px) {
    .cs-nav-btn {
        display: none;
    }
}