/* Ricki Walter - Personal Website Styles */

/*
 * Fonts, served from this site (no request to Google).
 * Syne and IBM Plex Sans, latin and latin-ext subsets as Google Fonts serves
 * them (variable fonts: one file per subset covers every weight below).
 * Same families and weights as the former Google Fonts link:
 * Syne 400-800, IBM Plex Sans 400-500. License: assets/fonts/OFL.txt (SIL OFL 1.1).
 */
@font-face {
    font-family: 'Syne';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/syne-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Syne';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/syne-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 400 500;
    font-stretch: 100%;
    font-display: swap;
    src: url('../fonts/ibm-plex-sans-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 400 500;
    font-stretch: 100%;
    font-display: swap;
    src: url('../fonts/ibm-plex-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

html {
    overflow-x: hidden;
}

:root {
    --bg-primary: #F8F8F6;
    --bg-secondary: #EEEDE8;
    --bg-accent: #E4E2DC;
    --text-primary: #1A1918;
    --text-secondary: #6B6966;
    --accent: #1A1918;
    --accent-cta: #EA580C;
    --accent-cta-hover: #C2410C;
    --border: #D8D6D0;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1A1918;
        --bg-secondary: #252422;
        --bg-accent: #2E2C2A;
        --text-primary: #F8F8F6;
        --text-secondary: #A8A5A0;
        --accent: #F8F8F6;
        --accent-cta: #FB923C;
        --accent-cta-hover: #FDBA74;
        --border: #3D3A37;
    }
}

body {
    font-family: 'IBM Plex Sans', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .section-title, .logo, .nav-links a {
    font-family: 'Syne', sans-serif;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Animations */
@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes drawLine {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.reveal {
    animation: fadeSlide 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.15s; }
.delay-3 { animation-delay: 0.25s; }
.delay-4 { animation-delay: 0.35s; }
.delay-5 { animation-delay: 0.45s; }
.delay-6 { animation-delay: 0.55s; }
.delay-7 { animation-delay: 0.65s; }

/* Navigation */
nav {
    padding: 24px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(248, 248, 246, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 100;
    transition: all 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    nav {
        background: rgba(26, 25, 24, 0.75);
    }
}

nav.scrolled {
    padding: 16px 0;
    background: rgba(248, 248, 246, 0.9);
    box-shadow: 0 1px 0 var(--border);
}

@media (prefers-color-scheme: dark) {
    nav.scrolled {
        background: rgba(26, 25, 24, 0.9);
    }
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 8px 16px;
    z-index: 200;
    font-weight: 500;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

.logo {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.logo:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 4px;
}

.nav-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid var(--border);
}

/* Badge text: full on desktop, short on mobile (toggled in 900px breakpoint) */
.nav-badge-short { display: none; }
.nav-badge-full { display: inline; }

.nav-badge-dot {
    width: 7px;
    height: 7px;
    background: #22c55e;
    border-radius: 50%;
    animation: glow 2s ease-in-out infinite;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links a:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 4px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 32px;
}

.lang-option {
    font-family: 'Syne', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-secondary);
    padding: 12px 12px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lang-option:hover {
    color: var(--text-primary);
}

.lang-option.active {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.lang-option:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

.lang-divider {
    color: var(--border);
    font-size: 12px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 160;
}

.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.mobile-menu-btn span::before,
.mobile-menu-btn span::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu-btn span::before {
    top: -6px;
}

.mobile-menu-btn span::after {
    top: 6px;
}

.mobile-menu-btn.open span {
    background: transparent;
}

.mobile-menu-btn.open span::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-btn.open span::after {
    top: 0;
    transform: rotate(-45deg);
}

.mobile-menu-btn:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
}

.mobile-nav-links {
    list-style: none;
    margin-bottom: 32px;
}

.mobile-nav-links li {
    margin-bottom: 8px;
}

.mobile-nav-links a {
    font-family: 'Syne', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    padding: 12px 0;
    transition: color 0.2s ease;
}

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

.mobile-nav-links a:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 4px;
}

.mobile-nav-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-close svg {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
}

.mobile-nav-close:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

.mobile-nav-overlay {
    display: none;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        animation: none;
        opacity: 1;
        transform: none;
        filter: none;
    }
    .divider {
        animation: none;
        transform: scaleX(1);
    }
    .nav-badge-dot {
        animation: none;
    }
    .hero-cta::before {
        animation: none;
    }
    * {
        transition-duration: 0.01ms !important;
    }
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    min-height: 100dvh;
}

.hero h1 {
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 40px;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.hero h1 .line {
    display: block;
    overflow: hidden;
}

.hero h1 .line-inner {
    display: block;
}

.hero h1 .muted {
    color: var(--text-secondary);
    font-weight: 600;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.75;
    margin-bottom: 48px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--accent-cta);
    color: #FFFFFF;
    padding: 18px 36px;
    border-radius: 100px;
    text-decoration: none;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: none;
}

.hero-cta:hover {
    background: var(--accent-cta-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(234, 88, 12, 0.3);
}

.hero-cta:hover::before {
    animation: shimmer 0.6s ease forwards;
}

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

.hero-cta svg {
    position: relative;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-cta:hover svg {
    transform: translateX(5px);
}

.hero-cta:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 4px;
}

.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--text-primary);
    padding: 17px 32px;
    border-radius: 100px;
    border: 1.5px solid var(--border);
    text-decoration: none;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.01em;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    margin-left: 16px;
}

.hero-cta-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}

.hero-cta-secondary:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 4px;
}

.hero-cta-secondary svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.cta-group .hero-cta-secondary {
    margin-left: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: end;
    margin-top: 80px;
}

.hero-image {
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -16px;
    left: -16px;
    right: 16px;
    bottom: 16px;
    border: 1px solid var(--border);
    z-index: -1;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-image:hover::before {
    top: -8px;
    left: -8px;
}

.hero-image img {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    filter: grayscale(100%) contrast(1.05);
    transition: all 0.5s ease;
}

.hero-image:hover img {
    filter: grayscale(0%) contrast(1);
}

.hero-sidebar {
    padding-bottom: 40px;
}

.hero-sidebar p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.75;
}

/* Divider */
.divider-section {
    padding: 0;
    overflow: hidden;
}

.divider {
    border: 0;
    height: 1px;
    background: var(--border);
    margin: 0;
    transform-origin: left;
    animation: drawLine 1s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
    transform: scaleX(0);
}

/* Services Section */
.services {
    padding: 120px 0;
}

.section-header {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 24px;
    align-items: baseline;
    margin-bottom: 64px;
}

.section-number {
    font-family: 'Syne', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.services-list {
    display: flex;
    flex-direction: column;
}

.service-item {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    padding: 40px 0;
    border-top: 1px solid var(--border);
    position: relative;
    cursor: default;
}

.service-item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--text-primary);
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-item:hover::after {
    width: 100%;
}

.service-item:last-child {
    border-bottom: 1px solid var(--border);
}

.service-item h3 {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-item:hover h3 {
    transform: translateX(12px);
}

.service-item p {
    color: var(--text-secondary);
    font-size: 15px;
    max-width: 440px;
    line-height: 1.75;
}

/* Testimonial Section */
.testimonial {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.testimonial-content {
    max-width: 720px;
    margin: 0 auto;
}

.testimonial-label {
    font-family: 'Syne', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 40px;
}

/* Pull quote: the hero sentence */
.testimonial-pullquote {
    position: relative;
    margin-bottom: 40px;
    padding-left: 4px;
}

.testimonial-pullquote::before {
    content: '\201C';
    font-family: 'Syne', sans-serif;
    font-size: 80px;
    font-weight: 800;
    line-height: 1;
    color: var(--accent-cta);
    opacity: 0.25;
    position: absolute;
    top: -20px;
    left: -8px;
}

.testimonial-pullquote p {
    font-family: 'Syne', sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    padding-left: 40px;
}

/* Full testimonial text below the pull quote */
.testimonial-full {
    padding-left: 40px;
    margin-bottom: 32px;
    border-left: 2px solid var(--border);
}

.testimonial-full p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.testimonial-full p:last-child {
    margin-bottom: 0;
}

/* Attribution */
.testimonial-attribution {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 40px;
}

.testimonial-name {
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-role {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Recent Work Section */
.recent-work {
    padding: 120px 0;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.work-item {
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.work-item:hover {
    border-color: var(--text-secondary);
}

.work-item h3 {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.work-role {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.work-item > p:not(.work-role) {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.work-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.work-tech span {
    font-size: 12px;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-secondary);
    font-family: 'IBM Plex Sans', sans-serif;
}

/* Featured Work - Architecture Highlights */
.work-item-featured {
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.3s ease;
    grid-column: 1 / -1;
}

.work-item-featured:hover {
    border-color: var(--text-secondary);
}

.work-item-featured h3 {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.work-item-featured .work-role {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.work-item-featured > p:not(.work-role) {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.work-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 24px 0 20px;
}

.work-highlight {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.work-highlight:hover {
    border-color: var(--text-secondary);
}

.work-highlight-label {
    font-family: 'Syne', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.work-highlight p:not(.work-highlight-label) {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.work-details {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
}

.work-details li {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.work-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 13px;
    width: 8px;
    height: 1px;
    background: var(--text-secondary);
}

.work-result {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-bottom: 20px;
}

/* How I Work Section */
.how-i-work {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.process-card {
    background: var(--bg-primary);
    padding: 32px 28px;
    border: 1px solid var(--border);
    position: relative;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.process-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.process-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(26, 25, 24, 0.08);
}

.process-card:hover::after {
    transform: scaleX(1);
}

.process-number {
    font-family: 'Syne', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.process-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.process-icon svg {
    width: 100%;
    height: 100%;
}

.process-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.process-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* How I Build Section (centered one-liner) */
.how-i-build-statement {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 0;
}

.how-i-build-statement p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.how-i-build-statement p strong {
    color: var(--text-primary);
    font-weight: 600;
}

.how-i-build-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--accent-cta);
    text-decoration: none;
    margin-top: 24px;
    transition: color 0.2s ease;
}

.how-i-build-link:hover {
    color: var(--accent-cta-hover);
}

.how-i-build-link:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 4px;
}

/* About Section */
.about {
    padding: 120px 0;
}

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

.about-text p {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.8;
}

.about-text p:first-of-type {
    color: var(--text-primary);
    font-size: 19px;
}

.about-details h3 {
    font-family: 'Syne', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    margin-top: 40px;
}

.about-details h3:first-child {
    margin-top: 0;
}

.build-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.build-item {
    background: var(--bg-secondary);
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.build-item:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
    transform: translateY(-3px);
}

.build-item:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

.current-project {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.7;
}

.current-project a {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(var(--text-secondary), var(--text-secondary));
    background-size: 100% 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.3s ease;
}

.current-project a:hover {
    background-size: 0% 1px;
}

.current-project a:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    align-items: center;
}

.contact h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(32px, 4vw + 12px, 52px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-wrap: balance;
}

.contact-info {
    text-align: right;
}

.contact-name {
    font-family: 'Syne', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.contact-email {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    color: var(--accent-cta);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 0;
    margin-bottom: 20px;
    position: relative;
    transition: color 0.2s ease;
}

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

.contact-email .arrow {
    position: absolute;
    right: -30px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-email:hover .arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Icon + text pattern: use flex-start for multi-line alignment */
.contact-book {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    min-height: 44px;
    padding: 10px 0;
    margin-bottom: 16px;
    margin-left: auto;
    transition: color 0.2s ease;
    width: fit-content;
}

.contact-book:hover {
    color: var(--text-primary);
}

.contact-book svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.social-links {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
}

.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

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

.social-links a svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s;
}

.social-links a:hover svg {
    transform: scale(1.1);
}

.contact-email:focus-visible,
.contact-book:focus-visible,
.social-links a:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 4px;
}

/* Accessibility Utilities */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Footer */
footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
}

footer .container {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-divider {
    color: var(--border);
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--text-primary);
}

footer a:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

/* ==========================================================================
   Responsive - Desktop-first (max-width breakpoints)
   1100px: tablet layout
   900px: mobile nav
   600px: phone adjustments
   ========================================================================== */

@media (max-width: 1100px) {
    .work-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .work-item {
        padding: 24px;
    }

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

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

    .contact-info {
        text-align: left;
    }

    .contact-book {
        margin-left: 0;
    }

    .social-links {
        justify-content: flex-start;
    }
}

@media (max-width: 900px) {
    .hero {
        padding: 120px 0 80px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 48px;
    }

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

    .hero-image img {
        max-width: 320px;
    }

    .nav-badge {
        font-size: 10px;
        padding: 4px 10px;
        gap: 6px;
    }

    /* Paired toggle: always exactly one visible */
    .nav-badge-full { display: none; }
    .nav-badge-short { display: inline; }

    .testimonial {
        padding: 80px 0;
    }

    .testimonial-pullquote p {
        font-size: 24px;
        padding-left: 32px;
    }

    .testimonial-pullquote::before {
        font-size: 64px;
        top: -16px;
        left: -4px;
    }

    .testimonial-full {
        padding-left: 32px;
    }

    .testimonial-attribution {
        padding-left: 32px;
    }

    .section-header {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .service-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }

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

    .nav-links {
        display: none;
    }

    .lang-switch {
        margin-left: auto;
        margin-right: 16px;
        padding-left: 12px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-nav {
        position: fixed;
        top: 0;
        right: -100%;
        left: auto;
        width: 280px;
        height: 100vh;
        background: var(--bg-primary);
        padding: 80px 32px 32px;
        z-index: 150;
        transition: right 0.3s cubic-bezier(0.22, 1, 0.36, 1);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    }

    .mobile-nav.open {
        right: 0;
    }

    .mobile-nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 140;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-nav-overlay.open {
        opacity: 1;
        visibility: visible;
    }

    .mobile-nav,
    .mobile-nav-overlay {
        display: block;
    }

    footer .container {
        flex-direction: column;
        gap: 12px;
    }

    .footer-right {
        flex-wrap: wrap;
        gap: 8px 12px;
    }
}

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

    .container {
        padding: 0 24px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .section-title {
        font-size: 32px;
    }

    .testimonial {
        padding: 64px 0;
    }

    .testimonial-pullquote p {
        font-size: 20px;
        padding-left: 24px;
    }

    .testimonial-pullquote::before {
        font-size: 52px;
        top: -12px;
        left: -4px;
    }

    .testimonial-full {
        padding-left: 24px;
    }

    .testimonial-attribution {
        padding-left: 24px;
    }

    .work-highlights {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Legal Pages (Impressum, Datenschutz, Legal Notice, Privacy Policy)
   ========================================================================== */

.legal-page nav {
    position: static;
    background: var(--bg-primary);
    backdrop-filter: none;
    border-bottom: 1px solid var(--border);
}

.legal-page nav .container {
    max-width: 1100px;
}

.legal-page .back-link {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.legal-page .back-link:hover {
    color: var(--text-primary);
}

.legal-page .back-link:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 4px;
}

.legal-page main {
    padding: 80px 0 120px;
}

.legal-page main .container {
    max-width: 800px;
}

.legal-page h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 48px;
    letter-spacing: -0.03em;
}

.legal-page h2 {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.legal-page p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.75;
}

.legal-page a {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.legal-page a:hover {
    text-decoration: none;
}

.legal-page a:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

.legal-content {
    color: var(--text-secondary);
}

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

.legal-content ul {
    margin: 12px 0 12px 24px;
    color: var(--text-secondary);
}

.legal-content li {
    margin-bottom: 8px;
    line-height: 1.75;
}

.legal-page h3 {
    font-family: 'Syne', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
}

.last-updated {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-style: italic;
}

.legal-page footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
}

.legal-page footer .container {
    max-width: 1100px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
}

.legal-page footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

.legal-page footer a:hover {
    color: var(--text-primary);
}

.legal-page .footer-links {
    display: flex;
    gap: 24px;
}

@media (max-width: 600px) {
    .legal-page main {
        padding: 60px 0 80px;
    }

    .legal-page h1 {
        font-size: 32px;
    }

    .legal-page footer .container {
        flex-direction: column;
        gap: 16px;
    }

    .legal-page .footer-links {
        flex-direction: column;
        gap: 8px;
    }
}

/* ============================================
   Workshops section (added 2026-04-20)
   Inherits .recent-work container styling.
   ============================================ */

.workshops-intro {
    max-width: 720px;
    margin-bottom: 48px;
    font-size: 17px;
    line-height: 1.55;
    color: var(--text-secondary);
}

.workshops-formats {
    margin-top: 56px;
    padding: 32px;
    background: var(--bg-secondary, #EEEDE8);
    border-radius: 8px;
}

.workshops-formats h3 {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.workshops-format-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.workshops-format-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border, #D8D6D0);
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-primary);
}

.workshops-format-list li:last-child {
    border-bottom: none;
}

.workshops-format-list li strong {
    font-weight: 600;
}

.workshops-note {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-top: 12px;
}

.workshops-note em {
    font-style: italic;
}

.workshops-cta {
    margin-top: 40px;
    display: flex;
    justify-content: flex-start;
}

@media (prefers-color-scheme: dark) {
    .workshops-formats {
        background: rgba(255, 255, 255, 0.04);
    }

    .workshops-format-list li {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
}

/* ============================================
   Lead magnet CTA (added 2026-04-20)
   ============================================ */

.workshops-lead-magnet {
    margin-top: 40px;
    padding: 28px 32px;
    border: 1px solid var(--border, #D8D6D0);
    border-radius: 8px;
    background: var(--bg-primary, #F8F8F6);
    max-width: 780px;
}

.workshops-lead-magnet h3 {
    font-family: 'Syne', sans-serif;
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    line-height: 1.3;
}

.workshops-lead-magnet p {
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.workshops-lead-magnet .lead-magnet-contact {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 16px 0 0;
}

.workshops-lead-magnet .lead-magnet-contact a {
    color: var(--text-primary);
    text-decoration: underline;
}

.workshops-lead-magnet .lead-magnet-contact a:hover {
    text-decoration: none;
}

@media (prefers-color-scheme: dark) {
    .workshops-lead-magnet {
        background: rgba(255, 255, 255, 0.02);
        border-color: rgba(255, 255, 255, 0.12);
    }
}

@media (max-width: 600px) {
    .workshops-lead-magnet {
        padding: 20px 20px;
    }
    .workshops-lead-magnet h3 {
        font-size: 17px;
    }
}

/* ============================================
   FAQ section (added 2026-04-20)
   ============================================ */

.faq-list {
    max-width: 780px;
    margin-top: 24px;
}

.faq-item {
    border-bottom: 1px solid var(--border, #D8D6D0);
    padding: 20px 0;
}

.faq-item:first-of-type {
    border-top: 1px solid var(--border, #D8D6D0);
}

.faq-item summary {
    font-family: 'Syne', sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    padding-right: 24px;
    position: relative;
    line-height: 1.4;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 400;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item summary:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 4px;
    border-radius: 2px;
}

.faq-item p {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 680px;
}

@media (prefers-color-scheme: dark) {
    .faq-item {
        border-bottom-color: rgba(255, 255, 255, 0.12);
    }

    .faq-item:first-of-type {
        border-top-color: rgba(255, 255, 255, 0.12);
    }
}

@media (max-width: 600px) {
    .workshops-formats {
        padding: 24px 20px;
    }

    .workshops-formats h3 {
        font-size: 18px;
    }

    .workshops-format-list li {
        font-size: 14px;
    }

    .faq-item summary {
        font-size: 16px;
    }
}


/* ============================================
   Contact form page (/contact/, /de/kontakt/)
   Builds on the .legal-page layout.
   ============================================ */

.contact-page .contact-intro {
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.form-field label {
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-field input,
.form-field textarea {
    font: inherit;
    font-size: 16px;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    width: 100%;
    min-height: 48px;
    transition: border-color 0.2s ease;
}

.form-field textarea {
    resize: vertical;
    min-height: 160px;
    line-height: 1.6;
}

.form-field input:hover,
.form-field textarea:hover {
    border-color: var(--text-secondary);
}

.form-field input:focus-visible,
.form-field textarea:focus-visible,
.form-check input:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
    border-color: var(--text-primary);
}

.form-hint {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Honeypot: off-screen for people, still in the DOM for bots. */
.form-field-hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form-check input {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 3px;
    accent-color: var(--accent-cta);
}

.form-check label {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.form-submit {
    border: 0;
    cursor: pointer;
    align-self: flex-start;
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: wait;
}

.form-status {
    min-height: 1.6em;
    margin: 0;
}

.contact-page .form-status-success,
.contact-page .form-status-error {
    color: var(--text-primary);
    font-weight: 500;
}

/* Result notices for the no-JS form post (redirect to #sent / #error). */
.form-notice {
    display: none;
    padding: 16px 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    margin-bottom: 32px;
}

.contact-page .form-notice {
    color: var(--text-primary);
}

.form-notice:target {
    display: block;
}

/* Focus lands here after the redirect (for screen readers); the border marks it visually. */
.form-notice:focus {
    outline: none;
}

.form-notice-success:target {
    border-left: 4px solid var(--accent-cta);
}

.form-notice-error:target {
    border-left: 4px solid var(--text-primary);
}

@media (max-width: 600px) {
    .form-submit {
        align-self: stretch;
        justify-content: center;
    }
}
