/* ════════════════════════════════════════════════════════════
   GÁBOR CSABA — PHOTOGRAPHER
   Editorial, line-separated, slate. Photos do the talking.
   ════════════════════════════════════════════════════════════ */

@font-face {
    font-family: 'Neue Haas Grotesk Display';
    src: url('fonts/neuehaasgrotdisp-55roman-trial.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Neue Haas Grotesk Display';
    src: url('fonts/neuehaasgrottext-56italic-trial.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
}
@font-face {
    font-family: 'Neue Haas Grotesk Display';
    src: url('fonts/neuehaasgrotdisp-65medium-trial.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Neue Haas Grotesk Display';
    src: url('fonts/neuehaasgrotdisp-75bold-trial.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Neue Haas Grotesk Text';
    src: url('fonts/neuehaasgrottext-55roman-trial.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Neue Haas Grotesk Text';
    src: url('fonts/neuehaasgrottext-56italic-trial.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
}
@font-face {
    font-family: 'Neue Haas Grotesk Text';
    src: url('fonts/neuehaasgrottext-75bold-trial.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

:root {
    --font-display: "Neue Haas Grotesk Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-serif: "Neue Haas Grotesk Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-mono: "IBM Plex Mono", "SF Mono", monospace;
    --pad-x: clamp(1.25rem, 4vw, 4rem);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    background: var(--bg);
    scrollbar-color: var(--ink-faint) transparent;
    scrollbar-width: thin;
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* film grain */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

::selection { background: var(--ink); color: var(--bg); }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ── type utilities ── */
.mono {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 400;
}

.mono-dim { color: var(--ink-dim); }

/* ════════════════════════════════════════
   NAV
   ════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1.1rem var(--pad-x);
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform 0.5s var(--ease), background 0.3s ease;
    will-change: transform;
}

/* auto-hide on scroll-down, reveal on scroll-up (JS toggles .nav-hidden) */
.nav.nav-hidden { transform: translateY(-100%); }

.nav-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

.nav-name em { font-style: italic; color: var(--ink-dim); }

.nav-links { display: flex; gap: 2.2rem; }

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-dim);
    position: relative;
    padding-bottom: 2px;
    transition: color 0.3s;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s var(--ease);
}

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

.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

/* ════════════════════════════════════════
   HERO (home)
   ════════════════════════════════════════ */
.hero {
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 8rem var(--pad-x) 0;
    position: relative;
}

.hero-top {
    display: flex;
    justify-content: space-between;
    padding-bottom: 4rem;
    color: var(--ink-dim);
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(4rem, 14.5vw, 13.5rem);
    line-height: 0.94;
    letter-spacing: -0.015em;
}

.hero-title .line { display: block; overflow: hidden; }

.hero-title .line span {
    display: block;
    transform: translateY(110%);
    animation: riseUp 1.1s var(--ease) forwards;
}

.hero-title .line:nth-child(2) { 
    text-align: right; 
    margin-right: -0.15em;
}
.hero-title .line:nth-child(2) span { 
    animation-delay: 0.12s; 
    font-style: italic; 
    padding-right: 0.15em;
}

@keyframes riseUp { to { transform: translateY(0); } }

.hero-sub {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 2rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    margin-top: 3.5rem;
    padding: 1.2rem 0 1.6rem;
    opacity: 0;
    animation: fadeIn 1s ease 0.7s forwards;
}

@keyframes fadeIn { to { opacity: 1; } }

/* ════════════════════════════════════════
   SECTION SCAFFOLD
   ════════════════════════════════════════ */
.section {
    border-top: 1px solid var(--line);
    padding: 0 var(--pad-x);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1.4rem 0;
    color: var(--ink-dim);
}

/* ════════════════════════════════════════
   INDEX LIST (collections)
   ════════════════════════════════════════ */
.index-list { list-style: none; overflow-anchor: auto; }

.index-row {
    border-top: 1px solid var(--line);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    position: relative;
    overflow: hidden;
}

/* blurred cover background on hover */
.index-row::before {
    content: "";
    position: absolute;
    inset: -60px;
    background-image: var(--cover-url, none);
    background-size: cover;
    background-position: center;
    filter: blur(50px) saturate(1.3) brightness(0.65);
    opacity: 0;
    transition: opacity 0.55s var(--ease);
    z-index: 0;
    pointer-events: none;
}

.index-row:hover::before {
    opacity: 1;
}

/* liquid side-shadow vignette */
.index-row::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
        rgba(34, 36, 41, 0.82) 0%,
        rgba(34, 36, 41, 0.18) 22%,
        rgba(34, 36, 41, 0.0) 42%,
        rgba(34, 36, 41, 0.0) 58%,
        rgba(34, 36, 41, 0.18) 78%,
        rgba(34, 36, 41, 0.82) 100%
    );
    opacity: 0;
    transition: opacity 0.55s var(--ease);
    z-index: 1;
    pointer-events: none;
}

.index-row:hover::after {
    opacity: 1;
}

.index-row.in { opacity: 1; transform: none; }

.index-row:last-child { border-bottom: 1px solid var(--line); }

.index-row a {
    display: grid;
    grid-template-columns: 4rem 1fr auto auto;
    align-items: baseline;
    gap: 2rem;
    padding: 2.1rem 0;
    transition: padding 0.4s var(--ease);
    position: relative;
    z-index: 2;
}

.index-row a:hover { padding-left: 1.2rem; }

.index-num { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-faint); letter-spacing: 0.15em; transition: color 0.4s var(--ease); }

.index-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.5rem, 3.4vw, 2.7rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    transition: font-style 0s, color 0.4s var(--ease);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.index-row a:hover .index-title { font-style: italic; color: #fff; }
.index-row a:hover .index-num { color: rgba(255, 255, 255, 0.6); }

.index-count, .index-year {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    color: var(--ink-dim);
    transition: color 0.4s var(--ease);
}

.index-row a:hover .index-count,
.index-row a:hover .index-year {
    color: rgba(255, 255, 255, 0.75);
}

.index-loading {
    padding: 3rem 0;
    color: var(--ink-faint);
    border-top: 1px solid var(--line);
}

/* floating hover preview */
.hover-preview {
    position: fixed;
    z-index: 90;
    width: min(20rem, 24vw);
    aspect-ratio: 3 / 2;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.35s ease, transform 0.45s var(--ease);
    border-radius: 10px;
    overflow: hidden;
    /* hard-clip edges including blur bleed */
    clip-path: inset(0 round 10px);
    -webkit-clip-path: inset(0 round 10px);
    isolation: isolate;
}

.hover-preview.on { opacity: 1; transform: scale(1); }

.hover-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.92);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.hover-preview.blurred img {
    filter: blur(22px);
    transform: scale(1.25);
}

/* Hide mobile cover image by default on desktop */
.index-cover {
    display: none;
}

/* "View All" button (home page) */
.view-all-wrap {
    display: flex;
    justify-content: center;
    padding: 3rem 0 3.5rem;
    border-top: 1px solid var(--line);
}

.view-all-btn {
    display: inline-block;
    border: 1px solid var(--line-strong);
    padding: 1rem 3rem;
    color: var(--ink-dim);
    transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.view-all-btn:hover {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}

/* ════════════════════════════════════════
   FILMSTRIP (home)
   ════════════════════════════════════════ */
.strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
}

.strip figure {
    border-right: 1px solid var(--line);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.strip figure:last-child { border-right: none; }

.strip img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    filter: saturate(0.9);
    transition: filter 0.5s ease, transform 0.7s var(--ease);
}

.strip figure:hover img { filter: saturate(1); transform: scale(1.015); }

.strip figcaption { color: var(--ink-faint); }

/* ════════════════════════════════════════
   STATEMENT BAND
   ════════════════════════════════════════ */
.statement {
    padding: clamp(6rem, 14vh, 10rem) var(--pad-x);
    border-top: 1px solid var(--line);
    max-width: 60rem;
}

.statement p {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.6rem, 3.2vw, 2.6rem);
    line-height: 1.3;
}

.statement p em { font-style: italic; color: var(--ink-dim); }

.statement .mono { display: block; margin-bottom: 2.2rem; color: var(--ink-faint); }

/* ════════════════════════════════════════
   APPROACH (home, 3-col)
   ════════════════════════════════════════ */
.approach {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
}

.approach-col {
    padding: 3.2rem var(--pad-x) 3.8rem 2.2rem;
    border-right: 1px solid var(--line);
}

.approach-col:first-child { padding-left: var(--pad-x); }
.approach-col:last-child { border-right: none; }

.approach-col .mono { display: block; color: var(--ink-faint); margin-bottom: 1.4rem; }

.approach-col p { color: var(--ink-dim); font-size: 0.98rem; max-width: 24rem; }

/* ════════════════════════════════════════
   GALLERY (collection view)
   ════════════════════════════════════════ */
.coll-head {
    padding: 9rem var(--pad-x) 0;
}

.coll-back { color: var(--ink-dim); transition: color 0.3s; display: inline-block; margin-bottom: 3rem; }
.coll-back:hover { color: var(--ink); }

.coll-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.6rem, 7vw, 6rem);
    line-height: 1.02;
    letter-spacing: -0.01em;
    max-width: 18ch;
}

.coll-desc {
    margin-top: 1.8rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--ink-dim);
    max-width: 48rem;
}

.coll-meta {
    display: flex;
    gap: 3rem;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-top: 3rem;
    padding: 1.1rem 0;
    color: var(--ink-dim);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 3rem var(--pad-x) 5rem;
}

.gallery figure {
    margin: 0;
    cursor: zoom-in;
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: rgba(0,0,0,0.03); /* subtle placeholder */
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.gallery figure.in { opacity: 1; transform: none; }

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.94);
    transition: filter 0.5s ease, transform 0.7s var(--ease);
}

.gallery figure:hover img { filter: saturate(1.06); transform: scale(1.03); }

.gallery figcaption {
    position: absolute;
    bottom: 0.7rem;
    left: 0.8rem;
    color: rgba(255,255,255,0.0);
    transition: color 0.3s;
    text-shadow: 0 1px 8px rgba(0,0,0,0.6);
    z-index: 2;
}

.gallery figure:hover figcaption { color: rgba(255,255,255,0.9); }

/* touch devices can't hover — keep a faint index visible with a scrim */
@media (hover: none) {
    .gallery figure::after {
        content: "";
        position: absolute;
        left: 0; right: 0; bottom: 0;
        height: 4.5rem;
        background: linear-gradient(to top, rgba(0,0,0,0.4), rgba(0,0,0,0));
        pointer-events: none;
        z-index: 1;
    }
    .gallery figcaption { color: rgba(255,255,255,0.82); }
}

/* predictable column counts: 3 → 2 → 1 */
@media (max-width: 1120px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .gallery { grid-template-columns: 1fr; gap: 1rem; } }

.gallery figure:focus-visible {
    outline: 1px solid var(--ink);
    outline-offset: 4px;
}

/* next collection band */
.next-band {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
    border-top: 1px solid var(--line);
    padding: clamp(4rem, 10vh, 7rem) var(--pad-x);
    text-align: center;
}

.next-band .mono { color: var(--ink-faint); }

.next-band a {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4.5vw, 3.4rem);
    font-style: italic;
    border-bottom: 1px solid var(--line-strong);
    padding-bottom: 0.25rem;
    transition: border-color 0.3s;
}

.next-band a:hover { border-color: var(--ink); }

/* ════════════════════════════════════════
   LIGHTBOX
   ════════════════════════════════════════ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: color-mix(in srgb, var(--bg-deep) 96%, black);
    display: none;
    flex-direction: column;
}

.lightbox.open { display: flex; }

.lb-bar {
    display: flex;
    justify-content: space-between;
    padding: 1.1rem var(--pad-x);
    border-bottom: 1px solid var(--line);
    color: var(--ink-dim);
}

.lb-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem var(--pad-x);
    min-height: 0;
}

.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }

.lb-nav {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--line);
}

.lb-nav button {
    flex: 1;
    padding: 1.1rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-dim);
    transition: color 0.3s, background 0.3s;
}

.lb-nav button:first-child { border-right: 1px solid var(--line); }
.lb-nav button:hover { color: var(--ink); background: rgba(233,231,225,0.04); }

/* ════════════════════════════════════════
   ABOUT
   ════════════════════════════════════════ */
.page-head {
    padding: 10rem var(--pad-x) 4rem;
}

.page-head .mono { color: var(--ink-faint); display: block; margin-bottom: 2rem; }

.page-head h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.4rem, 6vw, 5.2rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
    max-width: 22ch;
}

.page-head h1 em { font-style: italic; color: var(--ink-dim); }

.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    border-top: 1px solid var(--line);
}

.about-bio {
    padding: 3.5rem var(--pad-x) 3.5rem var(--pad-x);
    border-right: 1px solid var(--line);
}

.about-bio p {
    max-width: 38rem;
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--ink-dim);
    margin-bottom: 1.6rem;
}

.about-bio p:first-child { color: var(--ink); font-size: 1.2rem; }

.about-facts { padding: 3.5rem var(--pad-x); }

.fact {
    display: grid;
    grid-template-columns: 8.5rem 1fr;
    gap: 1.5rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--line);
    align-items: baseline;
}

.fact:first-child { padding-top: 0; }

.commissions-head {
    color: var(--ink-faint);
    font-weight: 400;
    margin: 3.2rem 0 0.6rem;
}

.fact dt { color: var(--ink-faint); }
.fact dd { font-size: 0.95rem; }
.fact dd a { border-bottom: 1px solid var(--line-strong); transition: border-color 0.3s; }
.fact dd a:hover { border-color: var(--ink); }

.services-list { list-style: none; counter-reset: svc; }

.services-list li {
    counter-increment: svc;
    display: flex;
    align-items: baseline;
    gap: 2rem;
    padding: 1.9rem 0;
    border-top: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.4vw, 1.9rem);
}

.services-list li::before {
    content: "( 0" counter(svc) " )";
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    color: var(--ink-faint);
}

.services-list li:last-child { border-bottom: 1px solid var(--line); }

.services-list li span { color: var(--ink-faint); font-family: var(--font-serif); font-style: italic; font-size: 1rem; margin-left: auto; text-align: right; }

/* ════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════ */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    border-top: 1px solid var(--line);
}

.contact-form-wrap {
    padding: 3.5rem var(--pad-x) 5rem;
    border-right: 1px solid var(--line);
}

.field { margin-bottom: 2.4rem; }

.field label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 0.7rem;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line-strong);
    padding: 0.6rem 0;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--ink);
    border-radius: 0;
    transition: border-color 0.3s;
}

.field select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.field select option { background: var(--bg-deep); color: var(--ink); }

.field textarea { resize: vertical; min-height: 7rem; line-height: 1.6; }

.field input:focus, .field textarea:focus, .field select:focus {
    outline: none;
    border-color: var(--ink);
}

.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); font-style: italic; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }

.submit-btn {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    border: 1px solid var(--line-strong);
    padding: 1.1rem 3.2rem;
    transition: background 0.35s, color 0.35s, border-color 0.35s;
}

.submit-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.submit-btn:disabled { opacity: 0.4; pointer-events: none; }

.form-status { margin-top: 1.6rem; color: var(--ink-dim); display: none; }
.form-status.show { display: block; }

.contact-aside { padding: 3.5rem var(--pad-x); }

/* ════════════════════════════════════════
   CTA BAND
   ════════════════════════════════════════ */
.cta-band {
    border-top: 1px solid var(--line);
    padding: clamp(5rem, 12vh, 8rem) var(--pad-x);
    text-align: center;
}

.cta-band .mono { display: block; color: var(--ink-faint); margin-bottom: 1.8rem; }

.cta-band a.big {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 4.6rem);
    font-style: italic;
    border-bottom: 1px solid var(--line-strong);
    padding-bottom: 0.3rem;
    transition: border-color 0.3s, color 0.3s;
}

.cta-band a.big:hover { border-color: var(--ink); }

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
.footer { border-top: 1px solid var(--line); }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    padding: 3rem var(--pad-x);
}

.footer-grid h3 {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-faint);
    font-weight: 400;
    margin-bottom: 1.2rem;
}

.footer-grid p { color: var(--ink-dim); max-width: 26rem; font-size: 0.95rem; }

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid li a { color: var(--ink-dim); font-size: 0.95rem; transition: color 0.3s; }
.footer-grid li a:hover { color: var(--ink); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.2rem var(--pad-x);
    border-top: 1px solid rgba(42, 42, 42, 0.08);
    background-color: #EFE3C7;
    color: rgba(42, 42, 42, 0.7);
    font-size: 0.85rem;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(42, 42, 42, 0.2);
    border-radius: 4px;
    color: rgba(42, 42, 42, 0.8);
    transition: all 0.3s ease;
}

.lang-toggle:hover {
    border-color: rgba(42, 42, 42, 0.6);
    color: #2a2a2a;
}

/* active lang indicator */
html[lang="en"] .lang-toggle .lang-en,
html[lang="hu"] .lang-toggle .lang-hu {
    font-weight: 700;
    color: #2a2a2a;
}


/* side project banner */
.kids-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    background-color: #EFE3C7;
    color: #2a2a2a;
    padding: 1.5rem var(--pad-x);
    text-decoration: none;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-top: 1px solid var(--line);
    text-align: center;
}

.kids-banner:hover {
    background-color: #E6D8BC;
}

.kids-banner-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.kids-banner-text {
    font-weight: 500;
}

.kids-banner-text strong {
    font-weight: 700;
    font-style: normal;
    text-decoration: none;
}

/* inline flashing coming very soon title */
.index-row.flash-active .index-title {
    animation: inline-flash 0.35s ease-in-out infinite alternate;
    color: var(--ink);
    font-style: italic;
}

@keyframes inline-flash {
    0% { opacity: 0.2; }
    100% { opacity: 1; }
}

/* ════════════════════════════════════════
   FLUID PAGE TRANSITIONS
   ════════════════════════════════════════ */

/* EXIT overlay — Netflix-style zoom from preview to fullscreen */
.transition-overlay {
    position: fixed;
    z-index: 500;
    overflow: hidden;
    pointer-events: none;
    will-change: top, left, width, height, border-radius;
    /* Start state set dynamically in JS */
    transition:
        top 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        left 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        width 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        height 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        border-radius 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.transition-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.75) saturate(1.1);
}

.transition-overlay .transition-title {
    position: absolute;
    bottom: clamp(1.5rem, 5vw, 3.5rem);
    left: clamp(1.5rem, 5vw, 3.5rem);
    right: clamp(1.5rem, 5vw, 3.5rem);
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2rem, 6vw, 5rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: #fff;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.35s ease 0.3s, transform 0.45s var(--ease) 0.3s;
    text-shadow: 0 2px 30px rgba(0,0,0,0.4);
}

.transition-overlay.active {
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0 !important;
}

.transition-overlay.active .transition-title {
    opacity: 1;
    transform: translateY(0);
}

/* ENTRY overlay — holds the cover on load (mostly handled instantly by inline HTML document.write) */
.transition-entry {
    position: fixed;
    inset: 0;
    z-index: 500;
    overflow: hidden;
    pointer-events: none;
    background: var(--bg);
}

.transition-entry img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) saturate(1.1);
}

.transition-entry .transition-entry-title {
    position: absolute;
    bottom: clamp(1.5rem, 5vw, 3.5rem);
    left: clamp(1.5rem, 5vw, 3.5rem);
    right: clamp(1.5rem, 5vw, 3.5rem);
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2rem, 6vw, 5rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: #fff;
    text-shadow: 0 2px 30px rgba(0,0,0,0.35);
}

.transition-entry.fade-out {
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 1px solid var(--ink);
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .nav {
        background: var(--bg);
        padding-top: calc(1rem + env(safe-area-inset-top));
        padding-bottom: 1rem;
    }
    .hero {
        min-height: auto;
        /* clear the fixed nav (~3.4rem tall) so the top mono row isn't clipped */
        padding-top: calc(6.5rem + env(safe-area-inset-top));
        padding-bottom: 3.5rem;
        justify-content: center;
    }
    .hero-top { padding-bottom: 2.75rem; }
    .page-head {
        padding-top: 6rem;
    }

    /* ── SELECTED WORK on mobile: full-bleed editorial photo cards.
       Every collection is an always-visible image tile with its title
       overlaid. No scroll-triggered expand — row heights are static, so
       scrolling never jumps and there's nothing to fight the scroll. ── */
    .index-list { border-top: 1px solid var(--line); }

    .index-row {
        position: relative;
        z-index: 1;
        border-top: none;
        overflow: hidden;
        opacity: 0;
        transform: translateY(26px);
        transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    }
    .index-row.in { opacity: 1; transform: none; }
    .index-row:last-child { border-bottom: none; }

    /* kill the desktop blurred-bg + side vignette on mobile */
    .index-row::before, .index-row::after { display: none; }

    .index-row a,
    .index-row a:hover {
        position: relative;
        display: block;
        width: 100%;
        height: clamp(340px, 54vh, 460px);
        padding: 0;
        overflow: hidden;
        background: var(--bg-deep);
        border-bottom: 1px solid var(--line);
    }
    .index-row:last-child a { border-bottom: none; }

    /* the cover fills the whole tile and eases in on reveal */
    .index-cover {
        display: block;
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(0.82) saturate(1.05);
        transform: scale(1.05);
        transition: transform 1.3s var(--ease);
        z-index: 0;
    }
    .index-row.in .index-cover { transform: scale(1); }
    .index-cover.blurred { filter: brightness(0.68) saturate(0.9) blur(18px); transform: scale(1.18); }

    /* bottom scrim so overlaid text stays legible on any photo */
    .index-row a::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to top,
            rgba(15,16,19,0.80) 0%,
            rgba(15,16,19,0.34) 28%,
            rgba(15,16,19,0.0) 56%);
        z-index: 1;
        pointer-events: none;
    }

    .index-row a > span {
        position: absolute;
        z-index: 2;
        color: #fff;
    }

    .index-num {
        top: 1.3rem; left: 1.3rem;
        color: rgba(255,255,255,0.78);
        letter-spacing: 0.15em;
    }

    .index-year {
        display: block;
        top: 1.3rem; right: 1.3rem;
        font-size: 0.66rem;
        letter-spacing: 0.18em;
        color: rgba(255,255,255,0.72);
    }

    .index-title {
        left: 1.3rem; right: 1.3rem;
        bottom: 2.5rem;
        font-family: var(--font-display);
        font-size: clamp(1.9rem, 7.5vw, 2.8rem);
        line-height: 1.04;
        letter-spacing: -0.01em;
        color: #fff;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        text-shadow: 0 2px 26px rgba(0,0,0,0.4);
    }

    .index-count {
        display: block !important;
        left: 1.3rem;
        bottom: 1.35rem;
        font-size: 0.66rem;
        letter-spacing: 0.18em;
        color: rgba(255,255,255,0.74);
    }

    .hover-preview {
        display: none !important;
    }
    .strip { grid-template-columns: repeat(2, 1fr); }
    .approach { grid-template-columns: 1fr; }
    .approach-col { border-right: none; border-bottom: 1px solid var(--line); padding-left: var(--pad-x); }
    .approach-col:last-child { border-bottom: none; }
    .strip figure:nth-child(2) { border-right: none; }
    .strip figure:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .about-bio, .contact-form-wrap { border-right: none; border-bottom: 1px solid var(--line); }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .nav-links { gap: 1.2rem; }
    .form-row { grid-template-columns: 1fr; }
    .strip { grid-template-columns: 1fr; }
    .strip figure { border-right: none; border-bottom: 1px solid var(--line); }
    .strip figure:last-child { border-bottom: none; }
    .hero-sub { flex-direction: column; gap: 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .hero-title .line span { transform: none; }
    .index-row, .gallery figure { opacity: 1; transform: none; }
    .index-cover, .index-row.in .index-cover { transform: none; }
    .nav.nav-hidden { transform: none; }
}



