/* =================================================================
   TOBIAS HERZOG — Minimal Edition
   Editorial Black & White · One contextual accent per discipline
   Sound → Blue · Image → Red · Live/VJ → Yellow
   Inspired by Bauhaus / Kandinsky · Visual Music
   ================================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Dark, ambient Bauhaus — deep charcoal & warm light */
    --paper:       #0D0E13;   /* deep charcoal base */
    --paper-deep:  #15161D;   /* raised panels */
    --ink:         #E9E6DD;   /* warm off-white */
    --ink-soft:    #A4A299;   /* muted text */
    --ink-faint:   #6C6B64;   /* captions */
    --line:        rgba(233,230,221,0.13);
    --line-2:      rgba(233,230,221,0.24);
    --glow:        rgba(233,230,221,0.05); /* faint ambient wash */

    /* Signature accents — brightened to glow on the dark field */
    --blue:   #4E6BFF;   /* Sound  · Komposition · Musik */
    --red:    #FF4B3E;   /* Bild   · Film · Visual Music */
    --yellow: #FBC02D;   /* Live   · VJing · Visuals */

    /* Contextual accent (overridden per page via body[data-page]) */
    --accent: var(--ink);
    --accent-on: var(--paper);   /* readable text colour on an accent fill */

    /* Typography */
    --display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
    --body:    'Inter', 'Helvetica Neue', Arial, sans-serif;

    /* Rhythm */
    --gutter: clamp(1.25rem, 4vw, 3.5rem);
    --maxw: 1320px;

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Per-discipline accent mapping */
body[data-page="work"]         { --accent: var(--red); }
body[data-page="music"]        { --accent: var(--blue); }
body[data-page="testimonials"] { --accent: var(--blue); }
body[data-page="vjing"]        { --accent: var(--yellow); }
body[data-page="publications"] { --accent: var(--red); }
/* home, about, press, contact keep ink as accent */

/* ---------- Base ---------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--body);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.62;
    font-weight: 400;
    font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Ambient colour glow — echoes the hero's fields across the inner pages.
   Top-right is tinted by the page's discipline accent; a cool field anchors
   the lower-left. The layer breathes very slowly (Eno pace); the home page
   keeps its animated canvas instead. Sits behind content (negative z-index)
   but above the body background. */
body:not([data-page="home"])::before {
    content: "";
    position: fixed; inset: -12vh -12vw; z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(46vw 46vw at 82% 10%, color-mix(in srgb, var(--accent) 21%, transparent), transparent 62%),
        radial-gradient(40vw 40vw at 10% 92%, color-mix(in srgb, var(--blue) 13%, transparent), transparent 62%);
    background-repeat: no-repeat;
    animation: glowBreath 52s ease-in-out infinite alternate;
}
@keyframes glowBreath {
    from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.8; }
    to   { transform: translate3d(2.4vw, -2vh, 0) scale(1.07); opacity: 1; }
}

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

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--accent-on); }

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

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 3000;
    background: var(--ink); color: var(--paper);
    padding: 0.75rem 1.1rem; font-weight: 600; letter-spacing: 0.02em;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
    display: inline-flex; align-items: baseline; gap: 0.7em;
    font-family: var(--display);
    font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.32em; text-transform: uppercase;
    color: var(--ink-soft);
}
.eyebrow .idx {
    font-variant-numeric: tabular-nums;
    color: var(--accent);
    letter-spacing: 0.1em;
}
.eyebrow::before {
    content: ""; width: 1.9em; height: 0; align-self: center;
    border-top: 1px solid var(--accent);
}

/* page section shell */
.section { padding-block: clamp(3.5rem, 8vw, 8rem); }
.section + .section { border-top: 1px solid var(--line); }

.section-head { margin-bottom: clamp(2rem, 5vw, 4rem); }
.section-title {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(2.1rem, 1.3rem + 3.6vw, 4.4rem);
    line-height: 0.98; letter-spacing: -0.025em;
    margin-top: 1rem; max-width: 16ch;
}
.section-title::after { /* Bauhaus full stop */
    content: ""; display: inline-block;
    width: 0.14em; height: 0.14em; margin-left: 0.14em;
    background: var(--accent);
}
.section-intro {
    margin-top: 1.4rem; max-width: 56ch;
    font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
    color: var(--ink-soft); line-height: 1.5;
}

/* =================================================================
   NAVIGATION
   ================================================================= */
.main-nav {
    position: sticky; top: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem;
    padding: 0.85rem var(--gutter);
    background: color-mix(in srgb, var(--paper) 86%, transparent);
    backdrop-filter: saturate(1.2) blur(10px);
    -webkit-backdrop-filter: saturate(1.2) blur(10px);
    border-bottom: 1px solid var(--line);
}

.nav-logo { display: inline-flex; align-items: center; gap: 0.6rem; }
.nav-logo .logo-mark {
    position: relative; width: 26px; height: 26px; flex: none;
}
.nav-logo .logo-mark::before { /* circle */
    content: ""; position: absolute; inset: 0;
    border: 1.5px solid var(--ink); border-radius: 50%;
}
.nav-logo .logo-mark::after { /* accent square */
    content: ""; position: absolute; left: 50%; top: 50%;
    width: 9px; height: 9px; transform: translate(-50%,-50%);
    background: var(--accent);
}
.nav-logo .logo-text {
    font-family: var(--display); font-weight: 600;
    letter-spacing: 0.14em; font-size: 0.95rem;
}

.nav-controls { display: flex; align-items: center; gap: 1.75rem; }
.nav-menu { display: flex; align-items: center; gap: 1.4rem; list-style: none; }
.nav-link {
    position: relative;
    font-family: var(--display);
    font-size: 0.82rem; font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
    padding: 0.3rem 0;
    transition: color 0.25s var(--ease);
}
.nav-link::after {
    content: ""; position: absolute; left: 0; bottom: -2px;
    width: 100%; height: 1.5px; background: var(--accent);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.3s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { color: var(--ink); }
.nav-link.active::after { transform: scaleX(1); }

.language-switcher { display: inline-flex; gap: 0.15rem; }
.lang-button {
    font-family: var(--display); font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.06em;
    background: none; border: none; cursor: pointer;
    color: var(--ink-faint); padding: 0.25rem 0.4rem;
    transition: color 0.2s var(--ease);
}
.lang-button:hover { color: var(--ink); }
.lang-button.active { color: var(--ink); position: relative; }
.lang-button.active::after {
    content: ""; position: absolute; left: 0.4rem; right: 0.4rem; bottom: 0;
    height: 1.5px; background: var(--accent);
}

/* Mobile toggle */
.nav-toggle {
    display: none; width: 40px; height: 40px;
    background: none; border: none; cursor: pointer;
    flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle-line { display: block; width: 22px; height: 1.6px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.2s; }

@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    /* backdrop-filter would trap position:fixed children inside the nav bar;
       drop it on mobile so the slide-in panel anchors to the viewport. */
    .main-nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
    .nav-controls {
        position: fixed; top: 0; right: 0; bottom: 0; left: auto;
        width: min(340px, 84vw);
        flex-direction: column; align-items: flex-start; justify-content: flex-start;
        gap: 1.4rem; padding: 5.5rem var(--gutter) 2.5rem;
        background: var(--paper); border-left: 1px solid var(--line);
        transform: translateX(100%); transition: transform 0.4s var(--ease);
        box-shadow: -24px 0 60px rgba(0,0,0,0.10);
        overflow-y: auto;
    }
    .main-nav.menu-open .nav-controls { transform: translateX(0); }
    .nav-menu { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
    .nav-link { font-size: 1.3rem; }
    .main-nav.menu-open .nav-toggle-line:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
    .main-nav.menu-open .nav-toggle-line:nth-child(2) { opacity: 0; }
    .main-nav.menu-open .nav-toggle-line:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }
}

/* =================================================================
   HERO
   ================================================================= */
.hero {
    position: relative;
    min-height: calc(100svh - 58px);
    display: flex; flex-direction: column; justify-content: center;
    padding-block: clamp(3rem, 9vh, 7rem);
    overflow: hidden;
}
#heroCanvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }

.hero-kicker {
    font-family: var(--display);
    font-size: 0.74rem; font-weight: 500; letter-spacing: 0.34em;
    text-transform: uppercase; color: var(--ink-soft);
    display: flex; align-items: center; gap: 0.8em; margin-bottom: 1.6rem;
}
.hero-kicker::before { content:""; width: 2.4em; border-top: 1px solid var(--ink); }

.hero-title {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(3.3rem, 1rem + 13vw, 12rem);
    line-height: 0.86; letter-spacing: -0.04em;
    text-transform: uppercase;
}
.hero-title .title-line { display: block; }
.hero-title .title-line:last-child { color: transparent; -webkit-text-stroke: 1.4px var(--ink); }

.hero-subtitle {
    margin-top: 1.6rem;
    font-size: clamp(1rem, 0.9rem + 0.6vw, 1.35rem);
    color: var(--ink-soft); font-weight: 400; letter-spacing: 0.01em;
}

/* The chord — circle, square, triangle as a wordless signature of the
   three disciplines (blue/red/yellow), softly glowing. */
.hero-chord { margin-top: 1.7rem; display: flex; align-items: center; gap: 1rem; }
.hero-chord .c {
    width: 11px; height: 11px; border-radius: 50%; background: var(--blue);
    box-shadow: 0 0 16px color-mix(in srgb, var(--blue) 65%, transparent);
}
.hero-chord .s {
    width: 11px; height: 11px; background: var(--red);
    box-shadow: 0 0 16px color-mix(in srgb, var(--red) 60%, transparent);
}
.hero-chord .t {
    width: 0; height: 0;
    border-left: 6.5px solid transparent; border-right: 6.5px solid transparent;
    border-bottom: 11.5px solid var(--yellow);
    filter: drop-shadow(0 0 7px color-mix(in srgb, var(--yellow) 60%, transparent));
}

/* Hero social row */
.hero-platform-label {
    margin-top: 2.6rem; font-family: var(--display);
    font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-faint);
}
.hero-platforms { margin-top: 0.9rem; display: flex; gap: 0.7rem; flex-wrap: wrap; }
.platform-chip {
    width: 46px; height: 46px; display: grid; place-items: center;
    border: 1px solid var(--line-2); color: var(--ink);
    transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.platform-chip:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-3px); }
.platform-icon { width: 20px; height: 20px; }

/* =================================================================
   PORTFOLIO GRID
   ================================================================= */
.work-carousel-container { width: 100%; }
.work-carousel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

/* Rhythmic editorial grid — tiles phrase like bars in a score:
   feature (4/6) · beats (2/6) · half-time (3/6). The span pattern is
   tuned to the current 17 projects so every row closes flush. */
@media (min-width: 561px) and (max-width: 1100px) {
    .work-carousel { grid-template-columns: repeat(2, 1fr); }
    .work-item:last-child { grid-column: 1 / -1; }
    .work-item:last-child .work-visual { aspect-ratio: 2 / 1; }
}
@media (min-width: 1101px) {
    .work-carousel { grid-template-columns: repeat(6, 1fr); }
    .work-item { grid-column: span 2; }
    .work-item:nth-child(1),
    .work-item:nth-child(9) { grid-column: span 4; }
    .work-item:nth-child(6),
    .work-item:nth-child(7),
    .work-item:nth-child(13),
    .work-item:nth-child(14) { grid-column: span 3; }
    .work-item:nth-child(1) .work-visual,
    .work-item:nth-child(9) .work-visual { aspect-ratio: 21 / 10; }
    .work-item:nth-child(6) .work-visual,
    .work-item:nth-child(7) .work-visual,
    .work-item:nth-child(13) .work-visual,
    .work-item:nth-child(14) .work-visual { aspect-ratio: 16 / 10; }
    .work-item:nth-child(1) .work-title,
    .work-item:nth-child(9) .work-title { font-size: 1.55rem; }
}
.work-item {
    background: var(--paper);
    cursor: pointer;
    display: flex; flex-direction: column;
    padding: 0; position: relative;
    transition: background 0.3s var(--ease);
    outline: none;
}
.work-item:hover, .work-item:focus-visible { background: var(--paper-deep); }

.work-visual {
    position: relative; aspect-ratio: 4 / 3; overflow: hidden;
    background: var(--paper-deep);
}
.project-slideshow { position: absolute; inset: 0; }
.slideshow-image {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0; filter: brightness(0.94) saturate(0.94);
    transition: opacity 1.1s var(--ease), filter 0.7s var(--ease), transform 1.1s var(--ease);
}
.slideshow-image.active { opacity: 1; }
.work-item:hover .slideshow-image.active { filter: brightness(1.08) saturate(1.05); transform: scale(1.04); }
/* track number — projects read like a tracklist (01–17) */
.work-item::before {
    counter-increment: work;
    content: counter(work, decimal-leading-zero);
    position: absolute; top: 0; left: 0; z-index: 3;
    font-family: var(--display); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em;
    color: var(--ink); background: color-mix(in srgb, var(--paper) 72%, transparent);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    padding: 0.35rem 0.55rem;
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.work-item:hover::before, .work-item:focus-visible::before {
    background: var(--accent); color: var(--accent-on);
}
.work-carousel { counter-reset: work; }

.visual-pattern { display: none; } /* legacy decoration removed */

.work-info { padding: 1.2rem 1.3rem 1.5rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.work-meta {
    display: flex; gap: 0.8rem; align-items: center;
    font-family: var(--display); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--ink-faint);
}
.work-year { color: var(--accent); font-weight: 600; }
.work-role { position: relative; padding-left: 0.9rem; }
.work-role::before { content:""; position:absolute; left:0; top:50%; width:4px; height:4px; background: var(--ink-faint); transform: translateY(-50%); }
.work-title {
    font-family: var(--display); font-weight: 600;
    font-size: 1.15rem; line-height: 1.1; letter-spacing: -0.01em;
    margin-top: 0.25rem; text-transform: none;
}
.work-description { color: var(--ink-soft); font-size: 0.9rem; }
.work-open {
    margin-top: auto; padding-top: 0.9rem;
    font-family: var(--display); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.06em;
    color: var(--ink); display: inline-flex; align-items: center; gap: 0.5em;
    opacity: 0.65; transition: gap 0.25s var(--ease), opacity 0.25s var(--ease);
}
.work-open::after { content: "→"; color: var(--accent); transition: transform 0.25s var(--ease); }
.work-item:hover .work-open { opacity: 1; gap: 0.8em; }
.work-item:hover .work-open::after { transform: translateX(3px); }

/* =================================================================
   ABOUT
   ================================================================= */
.about-content {
    display: grid; grid-template-columns: minmax(240px, 0.85fr) 1.3fr;
    gap: clamp(2rem, 6vw, 5rem); align-items: start;
}
.about-image { position: relative; }
.image-frame { position: relative; }
.image-frame .portrait-image { width: 100%; }
.image-frame::after { /* accent corner */
    content:""; position: absolute; right: -14px; bottom: -14px; width: 64px; height: 64px;
    border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
}
.image-frame::before {
    content:""; position: absolute; left: -14px; top: -14px; width: 64px; height: 64px;
    border-left: 2px solid var(--ink); border-top: 2px solid var(--ink);
}
.frame-corner { display:none; }

.about-text { max-width: 62ch; }
.about-heading {
    font-family: var(--display); font-weight: 600;
    font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--ink); margin: 2.2rem 0 0.7rem;
    display: flex; align-items: center; gap: 0.7em;
}
.about-heading:first-child { margin-top: 0; }
.about-heading::before { content:""; width: 1.6em; border-top: 2px solid var(--accent); }
.about-text p { margin-bottom: 1.1rem; color: var(--ink-soft); }
.about-text p:first-of-type { color: var(--ink); font-size: 1.08rem; }

/* =================================================================
   TESTIMONIALS
   ================================================================= */
.testimonials-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.testimonial-card {
    background: var(--paper); padding: 2rem 1.8rem;
    display: flex; flex-direction: column; gap: 1.2rem;
    transition: background 0.3s var(--ease);
}
.testimonial-card:hover { background: var(--paper-deep); }
.testimonial-card p:not(.testimonial-source) {
    font-family: var(--display); font-weight: 400;
    font-size: 1.12rem; line-height: 1.42; letter-spacing: -0.01em;
    position: relative; padding-top: 1.8rem;
}
.testimonial-card p:not(.testimonial-source)::before {
    content: "“"; position: absolute; top: -0.6rem; left: -0.2rem;
    font-family: var(--display); font-size: 3.2rem; line-height: 1; color: var(--accent);
}
.testimonial-card h3 {
    font-family: var(--display); font-size: 1rem; font-weight: 600;
    letter-spacing: 0; color: var(--ink);
    margin-top: auto;
}
.testimonial-source {
    font-family: var(--display); font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
    margin-top: 0.25rem;
}
.testimonial-card a, .press-card a, .music-link, .publication-link, .contact-item a {
    color: var(--ink);
    font-family: var(--display); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em;
    display: inline-flex; align-items: center; gap: 0.45em;
    border-bottom: 1.5px solid var(--accent); padding-bottom: 2px; width: fit-content;
    transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}
.testimonial-card a::after, .press-card a::after { content:"→"; color: var(--accent); }
.testimonial-card a:hover, .press-card a:hover { gap: 0.75em; }

/* =================================================================
   MUSIC
   ================================================================= */
.music-layout {
    display: grid; grid-template-columns: 1.6fr 0.9fr; gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}
.music-embed { border: 1px solid var(--line-2); }
.music-embed iframe { display: block; width: 100%; height: 420px; border: 0; }
.music-links-panel { display: flex; flex-direction: column; gap: 0.2rem; }
.music-panel-title {
    font-family: var(--display); font-size: 0.76rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--ink-soft); margin-bottom: 1rem;
}
.music-link {
    display: flex; align-items: center; justify-content: space-between;
    font-family: var(--display); font-size: 1.4rem; font-weight: 500; letter-spacing: -0.01em;
    padding: 1rem 0; border-top: 1px solid var(--line); border-bottom-width: 0;
    transition: padding-left 0.3s var(--ease), color 0.3s var(--ease);
}
.music-links-panel .music-link:last-of-type { border-bottom: 1px solid var(--line); }
.music-link::after { content:"↗"; color: var(--accent); font-size: 1rem; }
.music-link:hover { padding-left: 0.6rem; color: var(--accent); }

/* =================================================================
   VJING
   ================================================================= */
.vjing-note {
    max-width: 60ch; color: var(--ink-soft); margin-top: 0.8rem;
    padding-left: 1.2rem; border-left: 2px solid var(--accent);
}
.vjing-gallery {
    margin-top: 2.6rem;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1px;
    background: var(--line); border: 1px solid var(--line);
}
.vjing-item { position: relative; margin: 0; aspect-ratio: 4/3; overflow: hidden; background: var(--paper-deep); }
.vjing-item img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.94) saturate(0.96); transition: filter 0.7s var(--ease), transform 1s var(--ease); }
.vjing-item:hover img { filter: brightness(1.08) saturate(1.05); transform: scale(1.05); }
.vjing-item figcaption {
    position: absolute; left: 0; bottom: 0;
    font-family: var(--display); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--accent-on); background: var(--accent); padding: 0.4rem 0.7rem;
}

/* =================================================================
   PUBLICATIONS
   ================================================================= */
.publication-card {
    display: grid; grid-template-columns: auto 1fr; gap: 1.4rem 1.8rem; align-items: start;
    border: 1px solid var(--line-2); padding: clamp(1.6rem, 4vw, 2.6rem);
    max-width: 760px; transition: background 0.3s var(--ease);
}
.publication-card:hover { background: var(--paper-deep); }
.publication-badge {
    font-family: var(--display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
    background: var(--accent); color: var(--accent-on); padding: 0.4rem 0.6rem; align-self: start;
}
.publication-card h3 { font-family: var(--display); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; grid-column: 2; }
.publication-card p { color: var(--ink-soft); grid-column: 2; margin-top: 0.4rem; }
.publication-link { grid-column: 2; margin-top: 0.8rem; }
.publication-link::after { content:"↗"; color: var(--accent); }

/* =================================================================
   PRESS
   ================================================================= */
.press-media-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 2.4rem; }
.press-media-image { width: 100%; aspect-ratio: 16/10; object-fit: cover; filter: brightness(0.94) saturate(0.96); transition: filter 0.7s var(--ease); }
.press-media-image:hover { filter: brightness(1.06) saturate(1.05); }
.press-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.press-card { background: var(--paper); padding: 1.9rem 1.7rem; display: flex; flex-direction: column; gap: 0.9rem; transition: background 0.3s var(--ease); }
.press-card:hover { background: var(--paper-deep); }
.press-card h3 { font-family: var(--display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; }
.press-card p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }

/* =================================================================
   CONTACT
   ================================================================= */
.contact-content { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.contact-intro { font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); line-height: 1.15; letter-spacing: -0.02em; max-width: 18ch; }
.contact-cluster { margin-top: 2.4rem; }
.contact-subtitle { font-family: var(--display); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.7em; }
.contact-subtitle::before { content:""; width: 1.6em; border-top: 2px solid var(--accent); }
.contact-item { display: flex; align-items: center; gap: 0.6rem; font-size: 1.15rem; }
.contact-item .contact-icon { color: var(--accent); }
.contact-item a { font-family: var(--body); font-size: 1.1rem; letter-spacing: 0; border-bottom-color: var(--accent); }
.contact-platforms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 0.4rem; }
.platform-card { background: var(--paper); padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; transition: background 0.3s var(--ease); }
.platform-card:hover { background: var(--paper-deep); }
.platform-card .platform-icon { width: 22px; height: 22px; color: var(--ink); }
.platform-card-handle { font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.02em; color: var(--ink-soft); }

/* Contact geometric composition (Kandinsky still) */
.contact-visual { display: flex; justify-content: center; }
.visual-composition { position: relative; width: min(360px, 80%); aspect-ratio: 1; }
.comp-circle, .comp-square, .comp-line { position: absolute; }
.comp-circle.c1 { width: 56%; height: 56%; border: 2px solid var(--ink); border-radius: 50%; top: 6%; left: 8%; }
.comp-circle.c2 { width: 26%; height: 26%; background: var(--accent); border-radius: 50%; bottom: 10%; right: 14%; }
.comp-square.s1 { width: 34%; height: 34%; border: 2px solid var(--ink); bottom: 6%; left: 2%; transform: rotate(0deg); }
.comp-square.s2 { width: 0; height: 0; border-left: 34px solid transparent; border-right: 34px solid transparent; border-bottom: 58px solid var(--yellow); top: 4%; right: 6%; }
.comp-line.l1 { width: 92%; height: 2px; background: var(--ink); top: 50%; left: 4%; transform: rotate(-24deg); }
.comp-line.l2 { width: 60%; height: 2px; background: var(--accent); bottom: 24%; right: 0; transform: rotate(12deg); }

/* =================================================================
   FOOTER
   ================================================================= */
.footer { border-top: 1px solid var(--line-2); padding-block: clamp(2.5rem, 6vw, 4rem); }
.footer-content { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-brand { font-family: var(--display); font-weight: 600; letter-spacing: 0.06em; font-size: 1.1rem; }
.footer-brand span { color: var(--accent); }
.footer-follow-label { font-family: var(--display); font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-faint); }
.footer-links { display: flex; gap: 0.7rem; }
.footer-links a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-2); transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease); }
.footer-links a:hover { background: var(--ink); color: var(--paper); transform: translateY(-3px); }
.footer-meta { width: 100%; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.78rem; color: var(--ink-faint); font-family: var(--display); letter-spacing: 0.04em; }

/* =================================================================
   PROJECT MODAL (driven by modal.js)
   ================================================================= */
.project-modal { position: fixed; inset: 0; z-index: 2000; display: none; }
.project-modal.active, .project-modal.closing { display: block; }
.modal-overlay { position: absolute; inset: 0; background: rgba(3,3,5,0.66); backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.4s var(--ease); }
.project-modal.active .modal-overlay { opacity: 1; }
.project-modal.closing .modal-overlay { opacity: 0; }
.modal-content {
    position: absolute; top: 0; right: 0; height: 100%;
    width: min(720px, 100%); background: var(--paper);
    border-left: 1px solid var(--line-2);
    overflow-y: auto; box-shadow: -30px 0 80px rgba(0,0,0,0.18);
    transform: translateX(100%); transition: transform 0.45s var(--ease);
}
.project-modal.active .modal-content { transform: translateX(0); }
.project-modal.closing .modal-content { transform: translateX(100%); }
.modal-close {
    position: sticky; top: 0; margin-left: auto; z-index: 5;
    width: 56px; height: 56px; background: var(--paper); border: none; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line);
    cursor: pointer; display: block;
}
.modal-close .close-line { position: absolute; top: 50%; left: 50%; width: 20px; height: 1.6px; background: var(--ink); }
.modal-close .close-line:nth-child(1) { transform: translate(-50%,-50%) rotate(45deg); }
.modal-close .close-line:nth-child(2) { transform: translate(-50%,-50%) rotate(-45deg); }
.modal-close:hover { background: var(--accent); }
.modal-close:hover .close-line { background: var(--accent-on); }

.modal-inner { padding: 0 clamp(1.6rem, 4vw, 3rem) clamp(2.5rem, 6vw, 4rem); }
.modal-header { padding-top: 1.5rem; position: relative; }
/* modal.js injects old-palette inline styles onto .modal-pattern — hide it and
   use a clean accent rule of our own instead. */
.modal-pattern { display: none !important; }
.modal-header::before {
    content: ""; display: block; width: 38px; height: 3px;
    background: var(--accent); margin-bottom: 1.3rem;
}
.modal-title { font-family: var(--display); font-weight: 600; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); line-height: 1; letter-spacing: -0.02em; }
.modal-year { font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); display: inline-block; margin-top: 0.7rem; }
.modal-body { margin-top: 1.8rem; }
/* gallery markup is generated by modal.js (frame > nav buttons + slide, then meta) */
.modal-gallery { margin-bottom: 1.8rem; }
.modal-gallery[hidden] { display: none; }
.modal-gallery-frame { position: relative; border: 1px solid var(--line); background: var(--paper-deep); }
.modal-gallery-slide { margin: 0; }
.modal-gallery-image { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.modal-gallery-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; display: grid; place-items: center;
    background: color-mix(in srgb, var(--paper) 78%, transparent); color: var(--ink);
    border: 1px solid var(--line-2); cursor: pointer; font-size: 1.25rem; line-height: 1;
    backdrop-filter: blur(4px); transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.modal-gallery-nav:hover { background: var(--accent); color: var(--accent-on); border-color: var(--accent); }
.modal-gallery-nav[hidden] { display: none; }
.modal-gallery-prev { left: 0.7rem; }
.modal-gallery-next { right: 0.7rem; }
.modal-gallery-meta { display: flex; justify-content: flex-end; padding-top: 0.6rem; }
.modal-gallery-counter { font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--ink-soft); }
.modal-description { font-size: 1.08rem; color: var(--ink); margin-bottom: 1.6rem; }
.modal-description p { margin-bottom: 0.9rem; }
.modal-details { color: var(--ink-soft); }
.modal-details h3, .modal-details h4 { font-family: var(--display); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); margin: 1.6rem 0 0.7rem; }
.modal-details ul { list-style: none; }
.modal-details li { padding: 0.35rem 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.modal-details a { color: var(--ink); border-bottom: 1.5px solid var(--accent); }
.modal-details iframe { border-radius: 0 !important; }
.modal-details audio { width: 100%; margin: 0.6rem 0; }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 860px) {
    .about-content { grid-template-columns: 1fr; }
    .about-image { max-width: 360px; }
    .music-layout { grid-template-columns: 1fr; }
    .contact-content { grid-template-columns: 1fr; }
    .contact-visual { order: -1; }
    .press-media-strip { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .contact-platforms { grid-template-columns: 1fr; }
    .modal-content { width: 100%; }
}

/* Print / no-JS safety: reveal first slideshow image if JS disabled */
.no-js .slideshow-image:first-child { opacity: 1; }
