/* =====================================================================
   Sajasha · Creative Think Tank — Core Stylesheet
   Design: Apple-grade editorial. Huge type, generous whitespace,
   obsessive micro-interactions, warm monochrome with accent.
===================================================================== */

/* ─── Self-hosted fonts (100% DSGVO, no 3rd-party requests) ─────── */
/* Inter — served as a variable woff2, browser picks weight from single file */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/inter-var-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: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/inter-var-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;
}
/* Playfair Display — italic 400 only */
@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/playfair-italic-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: 'Playfair Display';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/playfair-italic-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+2074, U+20AC, U+2122, U+2212, U+FB00-FB04, U+FEFF, U+FFFD;
}

/* ─── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, video, svg { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ─── Tokens ──────────────────────────────────────────────────────── */
:root {
    --bg:          #0A0A0A;
    --bg-2:        #111111;
    --bg-soft:     #1A1A1A;
    --ink:         #F5F1EA;
    --ink-mute:    #9A9590;
    --ink-faint:   #555049;

    --accent:      #FF6B35;
    --accent-2:    #FFA862;
    --accent-soft: rgba(255, 107, 53, .12);

    --border:      rgba(245, 241, 234, .08);
    --border-2:    rgba(245, 241, 234, .14);

    --ease:        cubic-bezier(.2,.9,.2,1);
    --ease-out:    cubic-bezier(.16,1,.3,1);

    --font-display:'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
    --font-serif:  'Playfair Display', 'Times New Roman', serif;

    --shell-pad-x: clamp(1.25rem, 4vw, 3rem);
    --max-w:       1440px;
}

body.light-theme {
    --bg:          #FDF8F2;
    --bg-2:        #FFFFFF;
    --bg-soft:     #F3ECE3;
    --ink:         #0A0A0A;
    --ink-mute:    #5A524B;
    --ink-faint:   #B8AFA3;
    --border:      rgba(10, 10, 10, .08);
    --border-2:    rgba(10, 10, 10, .14);
}

body {
    font-family: var(--font-display);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.5;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -.005em;
    overflow-x: hidden;
    transition: background .4s var(--ease), color .4s var(--ease);
}

/* ─── Layout primitives ──────────────────────────────────────────── */
.shell {
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: var(--shell-pad-x);
}

section {
    position: relative;
    padding-block: clamp(4rem, 10vh, 8rem);
}

/* ─── Typography scale ───────────────────────────────────────────── */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.035em;
    color: var(--ink);
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .8rem;
    border: 1px solid var(--border-2);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--ink-mute);
    background: var(--bg-2);
    backdrop-filter: blur(12px);
}
.kicker::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: pulseDot 2.4s infinite;
}
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.display-xl {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 8.5rem);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: .95;
}
.display-l {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1;
}
.display-m {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.05;
}
.lead {
    font-size: clamp(1.1rem, 1.6vw, 1.4rem);
    line-height: 1.5;
    color: var(--ink-mute);
    max-width: 64ch;
}
.text-serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

/* ─── Nav ─────────────────────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding-block: 1rem;
    background: color-mix(in srgb, var(--bg) 72%, transparent);
    backdrop-filter: saturate(160%) blur(20px);
    -webkit-backdrop-filter: saturate(160%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s var(--ease), padding .3s var(--ease);
}
.nav.is-scrolled {
    border-bottom-color: var(--border);
    padding-block: .65rem;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.01em;
}
.nav-brand .logo-mark {
    width: 60px; height: 60px;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform .5s var(--ease);
}
.nav-brand .logo-wordmark {
    height: 33px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: opacity .3s var(--ease);
}
.nav-brand:hover .logo-mark { transform: rotate(-12deg) scale(1.08); }
@media (max-width: 520px) {
    .nav-brand .logo-wordmark { display: none; }
}

.nav-links {
    display: flex;
    gap: .25rem;
    list-style: none;
}
.nav-links a {
    padding: .55rem 1rem;
    border-radius: 999px;
    color: var(--ink-mute);
    font-size: 14px;
    font-weight: 500;
    transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-soft); }

.nav-cta { display: flex; align-items: center; gap: .5rem; }

.theme-toggle {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--border-2);
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .4s var(--ease);
}
.theme-toggle:hover { background: var(--bg-soft); transform: rotate(12deg); }

.nav-burger { display: none; }

/* ─── Buttons ─────────────────────────────────────────────────────── */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .95rem 1.7rem;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -.005em;
    cursor: pointer;
    border: 1px solid transparent;
    background: var(--ink);
    color: var(--bg);
    transition: transform .4s var(--ease), background .3s, color .3s, box-shadow .3s;
    will-change: transform;
}
.btn:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 14px 40px -12px rgba(255, 107, 53, .55);
}
.btn .btn-arrow { transition: transform .3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--border-2);
}
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); box-shadow: none; }

.btn-sm { padding: .55rem 1rem; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* ─── Hero ────────────────────────────────────────────────────────── */
.hero {
    padding-top: clamp(8rem, 18vh, 12rem);
    padding-bottom: clamp(4rem, 8vh, 6rem);
    position: relative;
    overflow: hidden;
}
.hero-mesh {
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 80%;
    background: radial-gradient(ellipse 50% 60% at 30% 40%, rgba(255, 107, 53, .22), transparent 60%),
                radial-gradient(ellipse 50% 50% at 70% 60%, rgba(184, 134, 11, .18), transparent 60%),
                radial-gradient(ellipse 40% 60% at 50% 20%, rgba(107, 70, 193, .12), transparent 60%);
    filter: blur(40px);
    pointer-events: none;
    z-index: -1;
    animation: meshDrift 22s ease-in-out infinite alternate;
}
@keyframes meshDrift {
    0%   { transform: translate(0,0) scale(1); }
    100% { transform: translate(-3%, 4%) scale(1.08); }
}

.hero-inner { display: flex; flex-direction: column; gap: 2rem; }
.hero-title {
    font-size: clamp(3rem, 11vw, 9.5rem);
    line-height: .92;
    letter-spacing: -.05em;
    font-weight: 800;
    max-width: 18ch;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span {
    display: block;
    transform: translateY(110%);
    animation: riseLine 1s var(--ease-out) forwards;
}
.hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.hero-title .line:nth-child(3) > span { animation-delay: .22s; }
@keyframes riseLine { to { transform: translateY(0); } }

.hero-title em {
    font-style: normal;
    background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 50%, var(--ink) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmerText 6s ease-in-out infinite alternate;
}
@keyframes shimmerText { to { background-position: 100% 0; } }

.hero-sub { max-width: 52ch; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

.hero-scroll {
    position: absolute;
    left: var(--shell-pad-x); bottom: 2rem;
    font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
    color: var(--ink-mute);
    display: inline-flex; align-items: center; gap: .6rem;
    opacity: 0; animation: fadeIn 1s .8s var(--ease-out) forwards;
}
.hero-scroll::after {
    content: '';
    display: inline-block;
    width: 1px; height: 30px;
    background: currentColor;
    animation: scrollLine 2.2s ease-in-out infinite;
    transform-origin: top;
}
@keyframes scrollLine {
    0%   { transform: scaleY(.1); opacity: 1; }
    100% { transform: scaleY(1); opacity: 0; }
}
@keyframes fadeIn { to { opacity: 1; } }

/* ─── Marquee ─────────────────────────────────────────────────────── */
.marquee {
    overflow: hidden;
    padding-block: 2rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: marquee 32s linear infinite;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -.025em;
    color: var(--ink);
    white-space: nowrap;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 3rem; }
.marquee-track span::after {
    content: '✦';
    font-size: .7em;
    color: var(--accent);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─── Reveal Animations ─────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal[data-delay="1"].in-view { transition-delay: .08s; }
.reveal[data-delay="2"].in-view { transition-delay: .16s; }
.reveal[data-delay="3"].in-view { transition-delay: .24s; }
.reveal[data-delay="4"].in-view { transition-delay: .32s; }

/* ─── About ───────────────────────────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}
.about-lead {
    font-size: clamp(1.4rem, 2.1vw, 1.85rem);
    line-height: 1.35;
    letter-spacing: -.015em;
    color: var(--ink);
    font-weight: 500;
    margin-block: 1rem 2rem;
    max-width: 28ch;
}
.about-paragraphs p {
    color: var(--ink-mute);
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.65;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.stat {
    padding: 1.5rem 1.75rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg-2);
    transition: transform .4s var(--ease), border-color .3s;
}
.stat:hover { transform: translateY(-4px); border-color: var(--accent); }
.stat-value {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
    background: linear-gradient(135deg, var(--ink), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat-label { color: var(--ink-mute); font-size: 13px; margin-top: .5rem; }

/* ─── Philosophy (Quote block) ───────────────────────────────────── */
.philosophy {
    text-align: center;
    padding-block: clamp(6rem, 14vh, 12rem);
    position: relative;
}
.philosophy-title {
    font-size: clamp(2rem, 5.5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.05;
    max-width: 22ch;
    margin-inline: auto;
}
.philosophy-title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
}
.philosophy-text {
    margin-top: 2rem;
    margin-inline: auto;
    max-width: 58ch;
    color: var(--ink-mute);
    font-size: 1.1rem;
    line-height: 1.65;
}

/* ─── Services grid ──────────────────────────────────────────────── */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}
.svc {
    position: relative;
    padding: 2rem;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: transform .5s var(--ease), border-color .3s;
    cursor: default;
}
.svc::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), var(--svc-color, var(--accent-soft)), transparent 40%);
    opacity: 0;
    transition: opacity .4s var(--ease);
    pointer-events: none;
}
.svc:hover::before { opacity: .5; }
.svc:hover { transform: translateY(-4px); border-color: var(--accent); }

.svc-number {
    font-size: 12px;
    color: var(--ink-faint);
    letter-spacing: .15em;
    font-weight: 600;
}
.svc-title {
    margin-top: .75rem;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -.02em;
}
.svc-desc {
    margin-top: .75rem;
    color: var(--ink-mute);
    font-size: 14.5px;
    line-height: 1.55;
}
.svc-dot {
    width: 40px; height: 40px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    background: var(--svc-color, var(--accent));
    box-shadow: 0 0 30px -5px var(--svc-color, var(--accent));
    transition: transform .4s var(--ease);
}
.svc:hover .svc-dot { transform: scale(1.15); }

/* ─── Portfolio ──────────────────────────────────────────────────── */
.portfolio-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.portfolio-filter {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: .5rem;
}
.filter-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--ink-mute);
    padding: .55rem 1.1rem;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all .25s var(--ease);
    white-space: nowrap;
}
.filter-btn:hover { color: var(--ink); background: var(--bg-soft); }
.filter-btn.active {
    color: var(--bg);
    background: var(--ink);
    border-color: var(--ink);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    min-height: 40vh;
    transition: opacity .25s;
}
.portfolio-grid.is-loading { opacity: .4; }

@media (max-width: 900px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
@media (max-width: 560px) { .portfolio-grid { grid-template-columns: 1fr; } }

/* Uniform card: image on top (fixed aspect), meta below — flat, embedded, symmetric */
.pf-item {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--bg-2);
    cursor: pointer;
    transition: transform .45s var(--ease), border-color .3s, box-shadow .3s;
    opacity: 0;
    transform: translateY(16px);
    animation: pfIn .6s var(--ease-out) forwards;
    will-change: transform;
}
.pf-item.is-hidden { display: none; }
.pf-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 14px 40px -18px rgba(255,107,53,.35);
}
.pf-item:focus-visible { border-color: var(--accent); outline: none; }
@keyframes pfIn { to { opacity: 1; transform: none; } }

.pf-media {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-soft);
}
.pf-media img, .pf-media video {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease);
}
.pf-item:hover .pf-media img,
.pf-item:hover .pf-media video { transform: scale(1.04); }

.pf-body {
    padding: 1rem 1.15rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    flex: 1;
}
.pf-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-faint);
    font-weight: 600;
}
.pf-cat { color: var(--accent); }
.pf-year { color: var(--ink-faint); }

.pf-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -.015em;
    line-height: 1.25;
    color: var(--ink);
    margin-top: .15rem;
}
.pf-sub {
    color: var(--ink-mute);
    font-size: 13.5px;
    line-height: 1.45;
}

.pf-empty {
    grid-column: 1 / -1;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--ink-mute);
    border: 1px dashed var(--border-2);
    border-radius: 20px;
}

/* Mehr anzeigen */
.portfolio-more {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}
.portfolio-more[hidden] { display: none; }

/* ─── Lightbox ───────────────────────────────────────────────────── */
.lightbox {
    position: fixed; inset: 0;
    z-index: 200;
    background: rgba(0,0,0,.92);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity .3s var(--ease);
}
.lightbox.is-open { display: flex; opacity: 1; }

.lightbox-inner {
    max-width: 1100px;
    width: 100%;
    max-height: 90vh;
    background: var(--bg-2);
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    transform: translateY(30px) scale(.97);
    opacity: 0;
    transition: transform .5s var(--ease-out), opacity .4s;
}
.lightbox.is-open .lightbox-inner { transform: none; opacity: 1; }

.lightbox-media {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
}
.lightbox-media img, .lightbox-media video {
    width: 100%; height: 100%;
    object-fit: contain;
    max-height: 90vh;
}

.lightbox-body {
    padding: 2.5rem;
    overflow-y: auto;
}
.lightbox-body .pf-cat { color: var(--accent); margin-bottom: 1rem; }
.lightbox-body h3 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.15;
}
.lightbox-body .sub {
    color: var(--ink-mute);
    margin-top: .5rem;
}
.lightbox-body .desc {
    margin-top: 1.5rem;
    color: var(--ink-mute);
    line-height: 1.65;
}
.lightbox-meta {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.lightbox-meta .k { color: var(--ink-faint); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; }
.lightbox-meta .v { font-weight: 600; margin-top: .25rem; }

.lightbox-tags { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.lightbox-tags span {
    font-size: 12px;
    padding: .25rem .7rem;
    border-radius: 999px;
    background: var(--bg-soft);
    color: var(--ink-mute);
}

.lightbox-close {
    position: absolute;
    top: 1rem; right: 1rem;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, transform .2s;
    z-index: 2;
}
.lightbox-close:hover { background: rgba(255,255,255,.24); transform: rotate(90deg); }

@media (max-width: 900px) {
    .lightbox { padding: 1rem; }
    .lightbox-inner { grid-template-columns: 1fr; max-height: 95vh; }
    .lightbox-body { padding: 1.5rem; }
}

/* ─── Contact ────────────────────────────────────────────────────── */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.contact-info .lead { margin-top: 1.25rem; }
.contact-meta {
    margin-top: 2.5rem;
    display: grid;
    gap: 1rem;
}
.contact-meta a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-2);
    transition: border-color .2s, transform .3s var(--ease);
}
.contact-meta a:hover { border-color: var(--accent); transform: translateX(4px); }
.contact-meta .label { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-faint); }
.contact-meta .value { font-size: 16px; font-weight: 600; margin-top: 2px; }

.contact-form {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
}
.contact-form label {
    display: block;
    margin-bottom: 1rem;
}
.contact-form label > span {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-mute);
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: .5rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: .85rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border-2);
    border-radius: 12px;
    color: var(--ink);
    font-size: 15px;
    transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.contact-form textarea { resize: vertical; min-height: 120px; }

.contact-form .consent {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: 13px;
    color: var(--ink-mute);
    line-height: 1.5;
}
.contact-form .consent input { width: auto; margin-top: 2px; }
.contact-form .consent a { color: var(--accent); text-decoration: underline; }

/* Honeypot */
.contact-form .hp { position: absolute; left: -9999px; opacity: 0; }

.form-feedback {
    margin-top: 1rem;
    padding: .85rem 1rem;
    border-radius: 10px;
    font-size: 14px;
    display: none;
}
.form-feedback.is-success { display: block; background: rgba(16,185,129,.1); color: #10B981; border: 1px solid rgba(16,185,129,.3); }
.form-feedback.is-error { display: block; background: rgba(231,76,60,.1); color: #EF4444; border: 1px solid rgba(231,76,60,.3); }

.form-error-inline {
    color: #EF4444;
    font-size: 12px;
    margin-top: .3rem;
}

/* ─── Footer ─────────────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--border);
    padding-block: 4rem 2rem;
    margin-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
}
.footer h4 {
    font-size: 12px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--ink-mute);
    font-weight: 600;
    margin-bottom: 1rem;
}
.footer-big {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.05;
    max-width: 14ch;
}
.footer-wordmark {
    display: block;
    height: clamp(72px, 10.5vw, 120px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
}
.footer-tagline {
    color: var(--ink-mute);
    margin-top: 1rem;
    max-width: 40ch;
}
.footer ul { list-style: none; display: grid; gap: .6rem; }
.footer ul li { color: var(--ink-mute); font-size: 14px; font-weight: 400; }
.footer a { color: var(--ink-mute); font-size: 14px; font-weight: 400; transition: color .2s; }
.footer a:hover { color: var(--accent); }

.footer-bar {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 12.5px;
    color: var(--ink-faint);
    flex-wrap: wrap;
}
.footer-credit {
    color: var(--ink-faint);
    font-size: 12px;
    letter-spacing: .02em;
}
.footer-credit a {
    color: var(--ink-mute);
    border-bottom: 1px dotted var(--border-2);
    padding-bottom: 1px;
    transition: color .2s, border-color .2s;
}
.footer-credit a:hover { color: var(--accent); border-color: var(--accent); }

/* ─── Cookie Banner ──────────────────────────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 1rem; left: 1rem; right: 1rem;
    max-width: 560px;
    margin-inline: auto;
    background: var(--bg-2);
    border: 1px solid var(--border-2);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
    z-index: 150;
    transform: translateY(140%);
    opacity: 0;
    transition: transform .6s var(--ease-out), opacity .4s;
    overflow: hidden;
}
.cookie-banner.is-visible { transform: none; opacity: 1; }
.cookie-banner-inner { padding: 1.25rem 1.5rem; }

.cookie-banner h5 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin-bottom: .4rem;
}
.cookie-banner p {
    color: var(--ink-mute);
    font-size: 13.5px;
    line-height: 1.55;
}
.cookie-banner a { color: var(--accent); text-decoration: underline; }

.cookie-actions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: flex-end;
}
.cookie-actions .btn-ghost { border: 1px solid var(--border-2); }

.cookie-categories {
    margin-top: 1rem;
    display: grid;
    gap: .6rem;
    max-height: 50vh;
    overflow-y: auto;
}
.cookie-cat {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: .85rem 1rem;
    background: var(--bg);
}
.cookie-toggle {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .85rem;
    align-items: start;
    cursor: pointer;
    user-select: none;
}
.cookie-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.cookie-switch {
    position: relative;
    width: 38px;
    height: 22px;
    border-radius: 999px;
    background: var(--bg-soft);
    border: 1px solid var(--border-2);
    flex-shrink: 0;
    transition: background .25s var(--ease);
    margin-top: 2px;
}
.cookie-switch::after {
    content: '';
    position: absolute;
    top: 2px; left: 2px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--ink-mute);
    transition: transform .25s var(--ease), background .25s;
}
.cookie-toggle input:checked ~ .cookie-switch { background: var(--accent); border-color: var(--accent); }
.cookie-toggle input:checked ~ .cookie-switch::after { transform: translateX(16px); background: #fff; }
.cookie-toggle input:disabled ~ .cookie-switch { opacity: .65; cursor: not-allowed; }
.cookie-cat-title {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -.005em;
}
.cookie-cat-desc {
    display: block;
    font-size: 12.5px;
    color: var(--ink-mute);
    line-height: 1.5;
    margin-top: .25rem;
}

/* Embed placeholder (YouTube / Instagram without consent) */
.embed-gate {
    position: relative;
    border: 1px dashed var(--border-2);
    border-radius: 14px;
    background: var(--bg-2);
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--ink-mute);
    font-size: 14px;
    line-height: 1.6;
}
.embed-gate strong { color: var(--ink); font-weight: 600; display: block; margin-bottom: .4rem; }
.embed-gate .btn { margin-top: 1rem; }

/* ─── Legal pages ────────────────────────────────────────────────── */
.legal {
    padding-top: clamp(7rem, 14vh, 10rem);
    padding-bottom: clamp(4rem, 8vh, 6rem);
    max-width: 720px;
    margin-inline: auto;
}
.legal h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -.03em; margin-bottom: 2rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2.5rem; margin-bottom: .75rem; letter-spacing: -.01em; }
.legal p, .legal ul { color: var(--ink-mute); line-height: 1.75; margin-bottom: 1rem; font-size: 15.5px; }
.legal ul { padding-left: 1.25rem; }
.legal a { color: var(--accent); text-decoration: underline; }

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .nav-links { display: none; position: absolute; top: 100%; right: var(--shell-pad-x); background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px; padding: 1rem; flex-direction: column; min-width: 180px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
    .nav.is-open .nav-links { display: flex; }
    .nav-burger { display: inline-flex; width: 40px; height: 40px; border: 1px solid var(--border-2); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
    .nav-burger span { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .3s var(--ease); }
    .nav-burger span::before, .nav-burger span::after { content: ''; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
    .nav-burger span::before { top: -6px; }
    .nav-burger span::after { top: 6px; }

    .about-grid, .contact-wrap { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .portfolio-head { flex-direction: column; align-items: stretch; }
}

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