/* ═══════════════════════════════════════════════════
   Gelencser Ádám — Portfólió
   Globális stílusok
═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,400;0,700;0,900;1,400&family=IBM+Plex+Mono:wght@300;400&family=Cormorant+Garamond:ital,wght@1,300;1,400&display=swap');

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
:root {
  --bg:#070707; --white:#e8e4dc; --dim:#aaa;
  --border:#2a2a2a; --surface:#0d0d0d;
}
html { scroll-behavior:smooth; overflow-x:hidden; max-width:100%; }
body { background:var(--bg); color:var(--white); font-family:"IBM Plex Mono",monospace; cursor:none; overflow-x:hidden; max-width:100%; }

/* ── CURSOR ─────────────────────────────────────── */
#cur { width:7px; height:7px; background:var(--white); border-radius:50%; position:fixed; pointer-events:none; z-index:9999; transform:translate(-50%,-50%); transition:width .2s cubic-bezier(.16,1,.3,1),height .2s,background .2s,border .2s; }
#cur.big { width:36px; height:36px; background:transparent; border:1px solid var(--white); }
#cur.big::before, #cur.big::after { content:""; position:absolute; background:var(--white); }
#cur.big::before { width:1px; height:9px; top:50%; left:50%; transform:translate(-50%,-50%); }
#cur.big::after  { height:1px; width:9px;  top:50%; left:50%; transform:translate(-50%,-50%); }
@media (hover:none) { #cur { display:none; } body { cursor:auto; } }

/* ── GRAIN ──────────────────────────────────────── */
#grain { position:fixed; inset:0; z-index:997; pointer-events:none; opacity:.025; background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); background-size:256px; }

/* ══════════════════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════════════════ */
#lightbox {
  position: fixed; inset: 0; z-index: 9990;
  background: rgba(7,7,7,.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
#lightbox.open { opacity: 1; pointer-events: auto; }
#lightbox img {
  max-width: 92vw; max-height: 88vh;
  object-fit: contain;
  outline: 5px solid var(--white);
  box-shadow: 0 40px 120px rgba(0,0,0,.9);
  transform: scale(.92);
  transition: transform .35s cubic-bezier(.16,1,.3,1);
  display: block;
}
#lightbox.open img { transform: scale(1); }
#lb-close {
  position: absolute; top: 16px; right: 20px;
  cursor: pointer !important;
  background: none;
  border: 1px solid rgba(232,228,220,.35);
  color: var(--white);
  font-family: "IBM Plex Mono", monospace;
  font-size: 18px; line-height: 1;
  padding: 5px 12px 7px;
  opacity: .72;
  transition: opacity .2s, border-color .2s;
  z-index: 2;
}
#lb-close:hover { opacity: 1; border-color: var(--white); }
#lb-hint {
  position: absolute; bottom: 18px; left: 50%;
  transform: translateX(-50%);
  font-size: 9px; letter-spacing: .24em; text-transform: uppercase;
  color: rgba(232,228,220,.3); white-space: nowrap;
  pointer-events: none;
}
.lb-note {
  position: absolute;
  left: clamp(24px, 5vw, 72px);
  bottom: clamp(42px, 6vh, 68px);
  width: min(430px, calc(100vw - 48px));
  padding: 15px 18px 16px;
  background: rgba(7,7,7,.82);
  border-left: 1px solid rgba(191,174,139,.75);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .35s ease .1s, transform .35s ease .1s;
}
.lb-note.visible { opacity: 1; transform: translateY(0); }
.lb-note span {
  display: block;
  margin-bottom: 7px;
  color: rgba(232,228,220,.48);
  font-size: 8px;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.lb-note p {
  color: rgba(232,228,220,.92);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(16px, 1.5vw, 20px);
  font-style: italic;
  line-height: 1.45;
}
.lb-detail { position:absolute; right:clamp(24px,5vw,72px); bottom:clamp(48px,6vh,72px); padding:11px 14px; border:1px solid rgba(191,174,139,.55); color:#d8c9a7; background:rgba(7,7,7,.82); backdrop-filter:blur(12px); font-size:8px; letter-spacing:.2em; text-transform:uppercase; text-decoration:none; opacity:0; pointer-events:none; transform:translateY(8px); transition:opacity .3s,transform .3s,border-color .2s,color .2s; z-index:3; }
.lb-detail.visible { opacity:1; pointer-events:auto; transform:translateY(0); }
.lb-detail:hover { border-color:#d8c9a7; color:#fff2d5; }
@media (max-width:768px) {
  .lb-note {
    left: 16px;
    bottom: 44px;
    width: calc(100vw - 32px);
    padding: 12px 14px 13px;
  }
  .lb-detail { right:16px; bottom:14px; }
}

/* ── HOVER PREVIEW ──────────────────────────────── */
#pv { position:fixed; pointer-events:none; z-index:900; width:320px; height:212px; overflow:hidden; opacity:0; transform:scale(.88) rotate(-1deg); transition:opacity .26s cubic-bezier(.16,1,.3,1),transform .26s cubic-bezier(.16,1,.3,1); }
#pv.on { opacity:1; transform:scale(1) rotate(0); }
#pv img { width:100%; height:100%; object-fit:cover; filter:grayscale(100%) contrast(1.05) brightness(.85); display:block; }
#pv-label { position:absolute; bottom:9px; left:11px; font-size:10px; letter-spacing:.22em; color:rgba(232,228,220,.6); text-transform:uppercase; }
#pv-c1 { position:absolute; top:9px; right:9px; width:17px; height:17px; border-top:1px solid rgba(232,228,220,.3); border-right:1px solid rgba(232,228,220,.3); }
#pv-c2 { position:absolute; bottom:9px; left:9px; width:17px; height:17px; border-bottom:1px solid rgba(232,228,220,.3); border-left:1px solid rgba(232,228,220,.3); }
@media (max-width:768px) {
  #pv { width:calc(100vw - 48px); height:auto; aspect-ratio:3/2; left:24px !important; top:auto !important; bottom:80px; transform:scale(.88); }
  #pv.on { transform:scale(1); }
}

/* ══════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════ */
.top-nav { position:fixed; top:0; left:0; right:0; z-index:400; display:flex; justify-content:space-between; align-items:center; padding:18px 24px; background:linear-gradient(to bottom,rgba(7,7,7,.92) 0%,transparent 100%); }
.nav-logo { font-family:"Barlow Condensed",sans-serif; font-size:15px; font-weight:700; letter-spacing:.2em; text-transform:uppercase; color:var(--white); text-decoration:none; text-shadow:0 1px 8px rgba(0,0,0,.9); white-space:nowrap; transition:letter-spacing .22s cubic-bezier(.16,1,.3,1); }
.nav-logo:hover { letter-spacing:.13em; }
.nav-r { display:flex; gap:30px; align-items:center; }
.nav-r a { font-size:11px; letter-spacing:.18em; text-transform:uppercase; color:var(--dim); text-decoration:none; transition:color .2s; text-shadow:0 1px 6px rgba(0,0,0,.9); }
.nav-r a:hover { color:var(--white); }
.lang-switch { display:flex; align-items:center; gap:6px; }
.lang-switch span { color:#555; font-size:9px; }
.nav-r .lang-switch a { font-size:9px; color:#666; }
.lang-switch a.active { color:var(--white); }
.avail { display:flex; align-items:center; gap:7px; font-size:11px; letter-spacing:.15em; text-transform:uppercase; color:#888; }
.dot { width:5px; height:5px; border-radius:50%; background:#4a8a4a; animation:blink 2.6s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.ham { display:none; flex-direction:column; justify-content:center; gap:5px; width:36px; height:36px; cursor:pointer; z-index:410; background:none; border:none; padding:4px; }
.ham span { display:block; width:22px; height:1.5px; background:var(--white); transition:transform .3s,opacity .3s; transform-origin:center; }
.ham.open span:nth-child(1) { transform:translateY(6.5px) rotate(45deg); }
.ham.open span:nth-child(2) { opacity:0; }
.ham.open span:nth-child(3) { transform:translateY(-6.5px) rotate(-45deg); }

.mob-menu { display:none; position:fixed; inset:0; z-index:390; background:rgba(7,7,7,.97); flex-direction:column; align-items:center; justify-content:center; gap:36px; }
.mob-menu.open { display:flex; }
.mob-menu a, .mob-menu .avail { font-size:28px; letter-spacing:.18em; text-transform:uppercase; color:var(--white); text-decoration:none; font-family:"Barlow Condensed",sans-serif; font-weight:700; opacity:.85; transition:opacity .2s; }
.mob-menu a:hover { opacity:1; }
.mob-menu .avail { font-size:13px; color:#666; margin-top:16px; }
.mob-menu .mob-lang { display:flex; align-items:center; gap:12px; }
.mob-menu .mob-lang a { font-size:16px; }
.mob-menu .mob-lang span { color:#555; font-size:12px; }

@media (max-width:768px) {
  .nav-r { display:none; }
  .ham { display:flex; }
  .top-nav { padding:16px 20px; }
  .nav-logo { font-size:13px; }
}

/* ══════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════ */
.home-camera-backdrop {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
  background: #070707;
}
.home-camera-backdrop iframe {
  position: absolute; top: -12%; left: 14%;
  width: 128%; height: 124%; border: 0;
  opacity: .2;
  filter: contrast(1.15);
}
.home-camera-backdrop::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,7,7,.9) 0%, rgba(7,7,7,.48) 38%, rgba(7,7,7,.15) 72%, rgba(7,7,7,.5) 100%),
    radial-gradient(circle at 74% 44%, transparent 0%, rgba(7,7,7,.16) 48%, rgba(7,7,7,.72) 100%);
}
.home-content { position: relative; z-index: 1; }
@media (max-width:768px) {
  .home-camera-backdrop iframe { top: -4%; left: -44%; width: 190%; height: 108%; opacity: .13; }
  .home-camera-backdrop::after { background:rgba(7,7,7,.48); }
}
.hero { height:100vh; position:relative; overflow:hidden; max-width:100%; }
#chaos-stage { position:absolute; inset:0; z-index:1; overflow:hidden; }

.fcard {
  position:absolute; left:0; top:0;
  overflow:hidden;
  transform-origin: 0 0;
  will-change: transform;   /* permanent — textures uploaded once, stay in VRAM forever */
  transition: transform 1.1s cubic-bezier(.16,1,.3,1), filter .6s ease, opacity .5s ease;
  cursor: pointer;
  opacity:0;
}
/* outline only on LOADED — no ghost frame from compositor layer at 0,0 */
.fcard.loaded { opacity:.88; outline: 5px solid var(--white); }
.fcard img { display:block; width:100%; height:100%; object-fit:cover; object-position:center; filter:grayscale(100%) contrast(1.06) brightness(.72); transition:filter .55s ease,transform .55s ease; pointer-events:none; user-select:none; }
.fcard:hover { z-index:50; box-shadow:0 24px 64px rgba(0,0,0,.85); }
.fcard:hover img { filter:grayscale(0%) contrast(1.02) brightness(1); transform:scale(1.04); }

#mode-hint { position:absolute; bottom:24px; left:24px; z-index:20; font-size:9px; letter-spacing:.24em; color:rgba(232,228,220,.58); text-transform:uppercase; text-shadow:0 1px 6px rgba(0,0,0,1); pointer-events:none; display:flex; align-items:center; gap:10px; opacity:0; animation:rise .5s .95s ease both; }
.mtrack { width:32px; height:1px; background:rgba(232,228,220,.15); position:relative; overflow:hidden; }
.mtrack::after { content:""; position:absolute; top:0; left:-100%; width:100%; height:100%; background:rgba(232,228,220,.45); animation:run 2.2s ease-in-out infinite; }
@keyframes run { 0%{left:-100%} 50%{left:0} 100%{left:100%} }

.hero-text { position:absolute; left:0; top:0; bottom:0; z-index:20; width:52%; background:transparent; display:flex; flex-direction:column; justify-content:center; padding:0 48px 0 80px; pointer-events:none; transition:opacity .6s ease; }
@media (max-width:768px) { .hero-text { width:100%; padding:0 24px; justify-content:flex-end; padding-bottom:100px; } }

.eyebrow { display:flex; align-items:center; gap:12px; font-size:10px; letter-spacing:.26em; color:rgba(232,228,220,.7); text-transform:uppercase; margin-bottom:20px; text-shadow:0 1px 10px rgba(0,0,0,1),0 0 30px rgba(0,0,0,.8); opacity:0; animation:rise .6s .2s ease both; }
.eyebrow-line { width:20px; height:1px; background:rgba(232,228,220,.3); flex-shrink:0; }
.hero-h:focus-visible {outline: none !important;}
.hero-h { font-family:"Barlow Condensed",sans-serif; font-size:clamp(56px,10.5vw,156px); font-weight:900; line-height:.86; letter-spacing:-.018em; color:var(--white); text-transform:uppercase; text-shadow:0 2px 0 rgba(0,0,0,.7),0 0 20px rgba(0,0,0,1),0 0 52px rgba(0,0,0,.9),0 0 100px rgba(0,0,0,.6); opacity:0; animation:rise .8s .36s ease both; }
.hero-h .outline { -webkit-text-stroke:2px var(--white); color:transparent; text-shadow:0 0 20px rgba(0,0,0,1),0 0 52px rgba(0,0,0,.8); }
.hero-h .light-line { font-weight:700; color:var(--white); }
.hero-sub { margin-top:20px; font-family:"Cormorant Garamond",serif; font-style:italic; font-weight:300; font-size:17px; line-height:1.65; color:rgba(232,228,220,.8); max-width:300px; text-shadow:0 1px 8px rgba(0,0,0,1),0 0 24px rgba(0,0,0,.9); opacity:0; animation:rise .6s .54s ease both; }
@media (max-width:768px) { .hero-sub { display:none; } }
.chips { display:flex; align-items:center; flex-wrap:wrap; gap:8px 0; margin-top:24px; opacity:0; animation:rise .5s .72s ease both; }
.chip { font-size:9px; letter-spacing:.18em; text-transform:uppercase; color:rgba(232,228,220,.55); padding-right:12px; margin-right:12px; border-right:1px solid rgba(232,228,220,.2); text-shadow:0 1px 6px rgba(0,0,0,1); }
.chip:last-child { border-right:none; }
@keyframes rise { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:translateY(0)} }

/* ══════════════════════════════════════════════════
   MARQUEE
══════════════════════════════════════════════════ */
.marquee-wrap { border-top:1px solid var(--border); border-bottom:1px solid var(--border); overflow:hidden; padding:11px 0; background:var(--surface); }
.marquee-track { display:flex; width:max-content; animation:mroll 28s linear infinite; }
.mi { font-size:9px; letter-spacing:.24em; color:#555; text-transform:uppercase; white-space:nowrap; padding:0 20px; display:flex; align-items:center; gap:20px; }
.ms { width:3px; height:3px; background:#555; border-radius:50%; flex-shrink:0; }
@keyframes mroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ══════════════════════════════════════════════════
   GALÉRIÁK
══════════════════════════════════════════════════ */
.works { padding:48px 0 72px; }
.works-hd { display:flex; align-items:baseline; gap:14px; padding:0 24px; margin-bottom:24px; }
@media (min-width:769px) { .works-hd { padding:0 44px 0 96px; } }
.wlabel { font-size:11px; letter-spacing:.26em; color:#666; text-transform:uppercase; }
.wcount { font-size:11px; color:#444; letter-spacing:.12em; }

.proj { display:grid; grid-template-columns:48px 1fr max-content; align-items:center; padding:0 24px; border-top:1px solid var(--border); cursor:none; position:relative; min-height:68px; overflow:hidden; text-decoration:none; color:inherit; }
@media (min-width:769px) { .proj { grid-template-columns:88px 1fr max-content; padding:0 44px; min-height:78px; } }
.proj:last-child { border-bottom:1px solid var(--border); }
.proj::before { content:""; position:absolute; inset:0; background:var(--white); transform:scaleX(0); transform-origin:left; transition:transform .38s cubic-bezier(.16,1,.3,1); }
.proj:hover::before { transform:scaleX(1); }
.proj>* { position:relative; z-index:1; }
.pnum { font-size:10px; color:#777; letter-spacing:.2em; transition:color .22s; }
.pmid { display:flex; flex-direction:column; gap:3px; padding:14px 0; }
.ptitle { font-family:"Barlow Condensed",sans-serif; font-size:clamp(28px,5vw,40px); font-weight:700; text-transform:uppercase; letter-spacing:-.01em; color:var(--white); line-height:1; transition:color .22s; }
.ptags { display:flex; gap:10px; }
.ptag { font-size:9px; letter-spacing:.16em; color:#777; text-transform:uppercase; transition:color .22s; }
.pcnt { font-size:10px; letter-spacing:.14em; color:#888; transition:color .22s; align-self:center; white-space:nowrap; padding-left:8px; }
.proj:hover .pnum,.proj:hover .ptitle,.proj:hover .pcnt { color:#070707; }
.proj:hover .ptag { color:#444; }
.parr { position:absolute; right:24px; top:50%; transform:translateY(-50%) translateX(10px); font-size:16px; color:#080808; opacity:0; transition:opacity .2s,transform .28s cubic-bezier(.16,1,.3,1); z-index:2; }
@media (min-width:769px) { .parr { right:44px; } }
.proj:hover .parr { opacity:1; transform:translateY(-50%) translateX(0); }

/* ══════════════════════════════════════════════════
   MANIFESTO / SZEMLÉLET
══════════════════════════════════════════════════ */
.manifesto { border-top: 1px solid var(--border); background: var(--surface); }
.manifesto-inner { padding: 72px 24px; max-width: 1200px; margin: 0 auto; }
@media (min-width: 769px) { .manifesto-inner { padding: 96px 96px; } }

.mf-idx { font-size: 10px; letter-spacing: .26em; color: #666; text-transform: uppercase; margin-bottom: 32px; }

.mf-quote {
  font-family: "Cormorant Garamond", serif;
  font-style: italic; font-weight: 300;
  font-size: clamp(36px, 5.5vw, 76px);
  line-height: 1.12;
  color: var(--white);
  border: none; margin: 0 0 72px;
  padding: 0;
  max-width: 960px;
}
@media (max-width: 768px) { .mf-quote { margin-bottom: 52px; } }

.mf-grid { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--border); }
@media (min-width: 769px) { .mf-grid { grid-template-columns: repeat(3, 1fr); } }

.mf-item {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 769px) {
  .mf-item { padding: 36px 32px 36px 0; border-bottom: none; border-right: 1px solid var(--border); }
  .mf-item:last-child { border-right: none; padding-right: 0; }
  .mf-item:not(:first-child) { padding-left: 32px; }
}
@media (max-width: 768px) { .mf-item:last-child { border-bottom: none; } }

.mf-num { font-size: 10px; letter-spacing: .2em; color: #555; flex-shrink: 0; padding-top: 5px; min-width: 24px; }
.mf-title { font-family: "Barlow Condensed", sans-serif; font-size: clamp(22px, 2.5vw, 34px); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--white); margin-bottom: 12px; line-height: .95; }
.mf-text { font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 300; font-size: 17px; line-height: 1.7; color: var(--dim); }

/* ══════════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════════ */
#about { border-top:1px solid var(--border); display:grid; grid-template-columns:1fr; min-height:auto; }
@media (min-width:769px) { #about { grid-template-columns:52px 1fr 1fr; min-height:56vh; } }
.arail { display:none; }
@media (min-width:769px) { .arail { display:flex; border-right:1px solid var(--border); flex-direction:column; align-items:center; justify-content:flex-end; padding-bottom:36px; } }
.arail .v-text { font-size:9px; letter-spacing:.3em; color:#555; text-transform:uppercase; writing-mode:vertical-rl; transform:rotate(180deg); }
.aleft { padding:48px 24px; display:flex; flex-direction:column; justify-content:space-between; }
@media (min-width:769px) { .aleft { padding:88px 56px; } }
.ahead { font-family:"Barlow Condensed",sans-serif; font-size:clamp(44px,6vw,84px); font-weight:700; text-transform:uppercase; letter-spacing:-.015em; line-height:.88; color:var(--white); }
.aidx { font-size:10px; letter-spacing:.24em; color:#777; text-transform:uppercase; margin-top:24px; }
.port-wrap { position:relative; margin-top:32px; }
.port { display:block; width:100%; max-width:240px; aspect-ratio:3/4; object-fit:cover; object-position:top center; filter:grayscale(100%) contrast(1.05) brightness(.86); }
@media (min-width:769px) { .port { max-width:280px; } }
.port-frame { position:absolute; bottom:-8px; right:-8px; width:calc(100% - 18px); max-width:calc(240px - 18px); aspect-ratio:3/4; border:1px solid #2a2a2a; pointer-events:none; }
@media (prefers-reduced-motion: no-preference) {
  .port-frame { transform:translate(-8px,-8px); transition:transform 1s cubic-bezier(.16,1,.3,1); }
  .port-wrap.frame-in .port-frame { transform:translate(0,0); }
}
@media (min-width:769px) { .port-frame { max-width:calc(280px - 18px); } }
.aright { padding:32px 24px 48px; display:flex; flex-direction:column; justify-content:flex-start; border-top:1px solid var(--border); }
@media (min-width:769px) { .aright { padding:88px 56px; justify-content:flex-end; border-top:none; border-left:1px solid var(--border); } }
.abio { font-family:"Cormorant Garamond",serif; font-style:italic; font-weight:300; font-size:18px; line-height:1.74; color:#aaa; max-width:420px; }
.abio p+p { margin-top:14px; }
.acta { display:inline-flex; align-items:center; gap:10px; margin-top:32px; text-decoration:none; font-size:11px; letter-spacing:.24em; color:var(--white); text-transform:uppercase; border-bottom:1px solid #444; padding-bottom:4px; transition:border-color .2s; }
.acta::after { content:"→"; opacity:0; transform:translateX(-7px); transition:opacity .22s ease, transform .26s cubic-bezier(.16,1,.3,1); flex-shrink:0; }
.acta:hover { border-color:var(--white); }
.acta:hover::after { opacity:1; transform:translateX(0); }
.about-preview-actions { display:flex; align-items:flex-start; flex-wrap:wrap; gap:10px 26px; }
.about-preview-actions .acta.secondary { color:#777; }

/* ══════════════════════════════════════════════════
   ABOUT PAGE
══════════════════════════════════════════════════ */
.about-camera-backdrop { position:fixed; inset:0; z-index:0; overflow:hidden; pointer-events:none; background:#070707; }
.about-camera-backdrop iframe { position:absolute; top:-8%; left:8%; width:138%; height:118%; border:0; opacity:.18; filter:contrast(1.18); }
.about-camera-backdrop::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(7,7,7,.88) 0%,rgba(7,7,7,.52) 42%,rgba(7,7,7,.2) 73%,rgba(7,7,7,.58) 100%),radial-gradient(circle at 74% 42%,transparent 0%,rgba(7,7,7,.18) 46%,rgba(7,7,7,.76) 100%); }
.about-page { position:relative; z-index:1; min-height:100vh; padding-top:64px; overflow:hidden; background:radial-gradient(circle at 78% 12%,rgba(123,105,72,.13),transparent 31%); }
.about-page-hero { position:relative; min-height:calc(100vh - 64px); display:grid; grid-template-columns:minmax(0,1.08fr) minmax(360px,.72fr); border-bottom:1px solid var(--border); }
.about-page-intro { position:relative; z-index:2; display:flex; flex-direction:column; justify-content:center; padding:clamp(70px,9vw,145px) clamp(28px,7vw,110px); background:rgba(7,7,7,.35); }
.about-page-kicker { display:flex; align-items:center; gap:12px; margin-bottom:34px; color:#777; font-size:9px; letter-spacing:.27em; text-transform:uppercase; }
.about-page-kicker span { width:28px; height:1px; background:#6e624d; }
.about-page-intro h1 { max-width:920px; font:900 clamp(66px,10vw,158px)/.79 "Barlow Condensed",sans-serif; letter-spacing:-.035em; text-transform:uppercase; }
.about-page-intro h1 span { color:transparent; -webkit-text-stroke:1px rgba(232,228,220,.72); }
.about-page-intro > p { max-width:610px; margin-top:42px; color:#aaa398; font:italic 300 clamp(21px,2.2vw,31px)/1.45 "Cormorant Garamond",serif; }
.about-page-portrait { position:relative; min-height:680px; border-left:1px solid var(--border); overflow:hidden; background:#090909; }
.about-page-portrait::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(7,7,7,.1),transparent 38%,rgba(7,7,7,.78)); pointer-events:none; }
.about-page-portrait img { width:100%; height:100%; object-fit:cover; object-position:top center; filter:grayscale(100%) contrast(1.08) brightness(.78); transition:filter 1.2s ease; }
.about-page-portrait:hover img { filter:grayscale(65%) contrast(1.04) brightness(.88); }
.about-page-portrait figcaption { position:absolute; z-index:2; left:34px; right:34px; bottom:32px; display:flex; align-items:flex-end; justify-content:space-between; gap:20px; }
.about-page-portrait figcaption span { font:700 24px "Barlow Condensed",sans-serif; letter-spacing:.05em; text-transform:uppercase; }
.about-page-portrait figcaption small { color:#8a8274; font-size:8px; letter-spacing:.2em; text-align:right; text-transform:uppercase; }
.about-page-rail { position:absolute; z-index:3; right:-.08em; top:50%; color:rgba(232,228,220,.035); font:900 clamp(150px,22vw,360px)/1 "Barlow Condensed",sans-serif; letter-spacing:-.05em; text-transform:uppercase; transform:translateY(-50%) rotate(-90deg); transform-origin:center; pointer-events:none; }

.about-section-index { color:#716957; font-size:8px; letter-spacing:.25em; text-transform:uppercase; }
.about-statement { display:grid; grid-template-columns:minmax(180px,.35fr) minmax(0,1.65fr); padding:clamp(72px,10vw,150px) clamp(28px,7vw,110px); border-bottom:1px solid var(--border); background:rgba(7,7,7,.78); backdrop-filter:blur(2px); }
.about-statement-content { display:grid; grid-template-columns:minmax(280px,.82fr) minmax(320px,1fr); gap:clamp(48px,8vw,130px); }
.about-statement h2,.about-crossdiscipline h2,.about-practice > h2,.about-contact h2 { font:700 clamp(43px,6vw,84px)/.91 "Barlow Condensed",sans-serif; letter-spacing:-.02em; text-transform:uppercase; }
.about-statement-copy { max-width:650px; color:#aaa59c; font:italic 300 clamp(20px,1.8vw,26px)/1.66 "Cormorant Garamond",serif; }
.about-statement-copy p+p { margin-top:24px; }

.about-crossdiscipline { display:grid; grid-template-columns:minmax(180px,.35fr) minmax(280px,.72fr) minmax(340px,.93fr); gap:clamp(35px,6vw,96px); padding:clamp(78px,11vw,165px) clamp(28px,7vw,110px) clamp(55px,8vw,110px); border-bottom:1px solid var(--border); background:rgba(7,7,7,.34); }
.about-crossdiscipline-heading h2 { max-width:570px; }
.about-crossdiscipline-heading > p { max-width:500px; margin-top:34px; color:#aaa398; font:italic 300 clamp(19px,1.65vw,25px)/1.55 "Cormorant Garamond",serif; }
.about-crossdiscipline-body { max-width:680px; padding-top:3px; color:#9a968e; font:13px/1.95 "IBM Plex Mono",monospace; }
.about-crossdiscipline-body p+p { margin-top:26px; }
.about-crossdiscipline-fields { grid-column:2/-1; display:flex; flex-wrap:wrap; gap:0; margin-top:12px; border-top:1px solid rgba(232,228,220,.13); border-bottom:1px solid rgba(232,228,220,.13); }
.about-crossdiscipline-fields span { flex:1 1 155px; padding:18px 16px; color:#777268; font-size:8px; letter-spacing:.17em; text-align:center; text-transform:uppercase; }
.about-crossdiscipline-fields span+span { border-left:1px solid rgba(232,228,220,.1); }

.about-practice { padding:clamp(72px,9vw,135px) clamp(28px,7vw,110px); border-bottom:1px solid var(--border); background:rgba(7,7,7,.72); backdrop-filter:blur(2px); }
.about-practice > h2 { max-width:780px; margin-top:24px; }
.about-practice-grid { display:grid; grid-template-columns:repeat(3,1fr); margin-top:70px; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.about-practice-grid article { min-height:330px; padding:34px clamp(22px,3vw,46px) 42px; }
.about-practice-grid article+article { border-left:1px solid var(--border); }
.about-practice-grid article > span { color:#625c50; font-size:9px; letter-spacing:.2em; }
.about-practice-grid h3 { margin-top:54px; font:700 clamp(27px,3vw,42px)/.95 "Barlow Condensed",sans-serif; text-transform:uppercase; }
.about-practice-grid p { margin-top:22px; color:#817e77; font-size:11px; line-height:1.85; }

.about-quote { padding:clamp(84px,12vw,180px) clamp(28px,7vw,110px); background:linear-gradient(135deg,#0b0b0a,#070707 62%); }
.about-quote blockquote { max-width:1220px; margin:45px auto 0; color:#e8e4dc; font:italic 300 clamp(42px,7vw,104px)/.98 "Cormorant Garamond",serif; letter-spacing:-.025em; }
.about-quote blockquote span { color:#8f846f; }

.about-contact { display:grid; grid-template-columns:1fr auto; align-items:end; gap:70px; padding:clamp(72px,9vw,130px) clamp(28px,7vw,110px); border-top:1px solid var(--border); background:rgba(7,7,7,.78); }
.about-contact h2 { max-width:800px; margin-top:25px; }
.about-contact p { max-width:670px; margin-top:28px; color:#8c8880; font:14px/1.8 "IBM Plex Mono",monospace; }
.about-contact-actions { display:flex; flex-direction:column; align-items:flex-end; gap:20px; }
.about-contact-actions a { text-transform:uppercase; text-decoration:none; white-space:nowrap; }
.about-contact-primary { padding:16px 20px; border:1px solid #786b51; color:#e1d1ad; font-size:10px; letter-spacing:.16em; transition:background .2s,border-color .2s; }
.about-contact-primary:hover { border-color:#b19a6a; background:#12100c; }
.about-contact-secondary { color:#777; font-size:9px; letter-spacing:.18em; }
.about-contact-secondary:hover { color:var(--white); }

@media (max-width:980px) {
  .about-page-hero { grid-template-columns:1fr; }
  .about-page-intro { min-height:72vh; }
  .about-page-portrait { min-height:auto; height:78vh; border-left:0; border-top:1px solid var(--border); }
  .about-page-rail { display:none; }
  .about-statement { grid-template-columns:1fr; gap:40px; }
  .about-statement-content { grid-template-columns:1fr; gap:40px; }
  .about-crossdiscipline { grid-template-columns:1fr; }
  .about-crossdiscipline-fields { grid-column:1; }
  .about-practice-grid { grid-template-columns:1fr; }
  .about-practice-grid article { min-height:auto; }
  .about-practice-grid article+article { border-left:0; border-top:1px solid var(--border); }
  .about-contact { grid-template-columns:1fr; align-items:start; }
  .about-contact-actions { align-items:flex-start; }
}
@media (max-width:600px) {
  .about-camera-backdrop iframe { top:-2%; left:-48%; width:196%; height:108%; opacity:.13; }
  .about-camera-backdrop::after { background:rgba(7,7,7,.52); }
  .about-page { padding-top:56px; }
  .about-page-hero { min-height:0; }
  .about-page-intro { min-height:68vh; padding-top:78px; padding-bottom:70px; }
  .about-page-intro h1 { font-size:clamp(58px,20vw,92px); }
  .about-page-intro > p { margin-top:30px; }
  .about-page-portrait { height:68vh; }
  .about-page-portrait figcaption { left:20px; right:20px; bottom:20px; }
  .about-statement h2,.about-crossdiscipline h2,.about-practice > h2,.about-contact h2 { font-size:42px; }
  .about-crossdiscipline-fields span { flex-basis:50%; }
  .about-crossdiscipline-fields span:nth-child(odd) { border-left:0; }
  .about-crossdiscipline-fields span:nth-child(n+3) { border-top:1px solid rgba(232,228,220,.1); }
  .about-practice-grid { margin-top:44px; }
  .about-quote blockquote { margin-top:34px; }
  .about-contact-primary { font-size:8px; }
}

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
footer { border-top:1px solid var(--border); display:flex; flex-direction:column; gap:12px; align-items:flex-start; padding:20px 24px; }
@media (min-width:769px) { footer { flex-direction:row; justify-content:space-between; align-items:center; padding:24px 44px; gap:0; } }
.fname { font-family:"Barlow Condensed",sans-serif; font-size:13px; font-weight:700; letter-spacing:.2em; text-transform:uppercase; color:#888; }
.flinks { display:flex; gap:20px; flex-wrap:wrap; }
.flinks a { font-size:10px; letter-spacing:.2em; color:#888; text-decoration:none; text-transform:uppercase; transition:color .2s; }
.flinks a:hover { color:var(--white); }
.fcopy { font-size:9px; letter-spacing:.16em; color:#444; }

/* ══════════════════════════════════════════════════
   GALLERY PAGE
══════════════════════════════════════════════════ */
.gallery-page { min-height: 100vh; padding-top: 80px; }
.selection-kicker { margin-bottom:7px; font-size:8px; letter-spacing:.25em; color:#766c58; text-transform:uppercase; }
.selection-empty { min-height:calc(100vh - 210px); display:flex; flex-direction:column; align-items:flex-start; justify-content:center; padding:64px clamp(24px,8vw,112px); border-top:1px solid var(--border); }
.selection-empty span { margin-bottom:18px; color:#4d473c; font-size:9px; letter-spacing:.24em; text-transform:uppercase; }
.selection-empty h1 { max-width:720px; color:var(--white); font:900 clamp(52px,9vw,118px)/.84 "Barlow Condensed",sans-serif; letter-spacing:-.025em; text-transform:uppercase; }
.selection-empty p { max-width:480px; margin-top:28px; color:#777; font:italic 18px/1.65 "Cormorant Garamond",serif; }
.selection-empty a { display:inline-block; margin-top:32px; padding-bottom:5px; border-bottom:1px solid #4b4437; color:#cabc9d; font-size:9px; letter-spacing:.2em; text-decoration:none; text-transform:uppercase; transition:border-color .2s,color .2s; }
.selection-empty a:hover { color:var(--white); border-color:var(--white); }

.gallery-header {
  padding: 48px 44px 40px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px;
}
@media (max-width:768px) { .gallery-header { padding: 32px 24px 28px; flex-direction: column; align-items: flex-start; gap: 16px; } }

.gallery-back {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--dim); text-decoration: none;
  transition: color .2s;
}
.gallery-back:hover { color: var(--white); }
.gallery-back svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.5; }

.gallery-meta { display: flex; flex-direction: column; gap: 8px; }
.gallery-title {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(40px, 6vw, 72px); font-weight: 900;
  text-transform: uppercase; letter-spacing: -.015em; line-height: 1;
  color: var(--white);
}
.gallery-count { font-size: 10px; letter-spacing: .24em; color: #666; text-transform: uppercase; }
.exhibition-start { align-self:flex-start; margin-top:12px; display:flex; align-items:center; gap:12px; border:1px solid #49443a; background:#11100d; color:#d8c9a7; padding:10px 13px; cursor:pointer; text-transform:uppercase; transition:background .2s,border-color .2s,color .2s; }
.exhibition-start span { font:700 11px "Barlow Condensed",sans-serif; letter-spacing:.18em; }
.exhibition-start small { font:8px "IBM Plex Mono",monospace; letter-spacing:.12em; color:#746b59; }
.exhibition-start:hover { border-color:#a9956d; color:#fff2d5; background:#17140e; }
.exhibition-start:disabled { cursor:not-allowed; opacity:.45; }
.exhibition-start:disabled:hover { border-color:#49443a; color:#d8c9a7; background:#11100d; }

/* Masonry grid */
.gallery-grid {
  columns: 3; column-gap: 2px;
  padding: 2px;
}
@media (max-width: 1100px) { .gallery-grid { columns: 2; } }
@media (max-width: 600px)  { .gallery-grid { columns: 1; } }

.gallery-item {
  break-inside: avoid;
  display: block;
  position: relative;
  overflow: hidden;
  margin-bottom: 2px;
  cursor: pointer;
  outline: 5px solid var(--white);
}
.gallery-item img {
  display: block; width: 100%; height: auto;
  filter: grayscale(100%) contrast(1.05) brightness(.78);
  transition: filter .5s ease, transform .5s ease;
  user-select: none;
}
.gallery-item:hover img {
  filter: grayscale(0%) contrast(1.02) brightness(1);
  transform: scale(1.02);
}
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,7,7,.5) 0%, transparent 50%);
  opacity: 0; transition: opacity .35s ease;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

/* Gallery lightbox — felulirja a hero lightbox-ot ha kell */
.gallery-page #lightbox img { outline: none; box-shadow: none; }

/* Like button */
.like-btn {
  position: absolute; bottom: 10px; right: 10px;
  display: flex; align-items: center; gap: 5px;
  background: rgba(7,7,7,.72); border: 1px solid rgba(232,228,220,.18);
  color: rgba(232,228,220,.65);
  padding: 5px 9px 5px 7px;
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .1em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s ease, transform .25s ease, color .2s, border-color .2s, background .2s;
  z-index: 3;
}
.like-btn svg { width: 13px; height: 13px; flex-shrink: 0; transition: fill .2s, stroke .2s; }
.gallery-item:hover .like-btn { opacity: 1; transform: translateY(0); }
.photo-card-detail { position:absolute; left:14px; bottom:14px; z-index:3; padding:8px 10px; border:1px solid rgba(232,228,220,.38); background:rgba(7,7,7,.78); color:#d8c9a7; font-size:7px; letter-spacing:.16em; text-transform:uppercase; text-decoration:none; opacity:0; transform:translateY(6px); transition:opacity .25s,transform .25s,border-color .2s; }
.gallery-item:hover .photo-card-detail, .photo-card-detail:focus-visible { opacity:1; transform:translateY(0); }
.photo-card-detail:hover { border-color:#d8c9a7; color:#fff2d5; }
@media (hover:none) { .photo-card-detail { opacity:1; transform:none; } }

/* ── Önálló képoldal ─────────────────────────────── */
.photo-page { min-height:100vh; padding-top:80px; background:radial-gradient(circle at 72% 18%,rgba(103,91,67,.1),transparent 34%),var(--bg); }
.photo-page-header { min-height:108px; padding:32px 44px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--border); }
.photo-page-header > span { color:#555; font-size:9px; letter-spacing:.24em; }
.photo-detail-layout { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(330px,.6fr); min-height:calc(100vh - 188px); }
.photo-detail-image.gallery-item { margin:0; min-height:620px; display:flex; align-items:flex-start; justify-content:center; padding:clamp(28px,5vw,82px); background:#050505; cursor:zoom-in; outline:1px solid #302e2a; outline-offset:-1px; }
.photo-detail-image.gallery-item img { width:auto; height:auto; max-width:100%; max-height:calc(100vh - 245px); filter:none; transform:none; object-fit:contain; }
.photo-detail-image.gallery-item:hover img { transform:none; filter:none; }
.photo-detail-image .like-btn { top:28px; right:28px; bottom:auto; opacity:1; transform:none; background:rgba(7,7,7,.78); }
.photo-story { display:flex; flex-direction:column; justify-content:center; padding:clamp(38px,5vw,86px); border-left:1px solid var(--border); }
.photo-story-kicker { margin-bottom:22px; color:#887b60; font-size:9px; letter-spacing:.28em; text-transform:uppercase; }
.photo-story h1 { max-width:520px; font:900 clamp(46px,6vw,86px)/.88 "Barlow Condensed",sans-serif; letter-spacing:-.025em; text-transform:uppercase; overflow-wrap:anywhere; }
.photo-story > p { margin-top:34px; max-width:540px; color:#c7c0b3; font:italic 300 clamp(19px,2vw,26px)/1.55 "Cormorant Garamond",serif; }
.photo-story > p.photo-story-empty { color:#595650; font-size:18px; }
.photo-narration { margin-top:36px; padding-top:22px; border-top:1px solid var(--border); }
.photo-narration > span { display:block; margin-bottom:12px; color:#777; font-size:8px; letter-spacing:.2em; text-transform:uppercase; }
.photo-narration audio { display:block; width:100%; height:34px; filter:grayscale(1) invert(.88); }
.photo-signature { margin-top:44px; display:flex; flex-direction:column; gap:5px; }
.photo-signature span { color:#555; font-size:8px; letter-spacing:.22em; text-transform:uppercase; }
.photo-signature strong { font:700 18px "Barlow Condensed",sans-serif; letter-spacing:.04em; }
.photo-share-btn { align-self:flex-start; margin-top:26px; padding:10px 13px; border:1px solid #4b4437; background:transparent; color:#c8b68c; cursor:pointer; font:8px "IBM Plex Mono",monospace; letter-spacing:.18em; text-transform:uppercase; transition:border-color .2s,color .2s,background .2s; }
.photo-share-btn:hover { border-color:#a9956d; color:#fff2d5; background:#11100d; }
.photo-sequence { display:grid; grid-template-columns:1fr 1fr; border-top:1px solid var(--border); }
.photo-sequence a { min-height:142px; padding:30px 44px; display:flex; flex-direction:column; justify-content:center; gap:10px; color:var(--white); text-decoration:none; transition:background .25s; }
.photo-sequence a:last-child { text-align:right; border-left:1px solid var(--border); }
.photo-sequence a:hover { background:#10100e; }
.photo-sequence span { color:#666; font-size:8px; letter-spacing:.2em; text-transform:uppercase; }
.photo-sequence strong { font:700 clamp(20px,3vw,34px) "Barlow Condensed",sans-serif; text-transform:uppercase; }
@media (max-width:900px) {
  .photo-page-header { padding:26px 24px; }
  .photo-detail-layout { grid-template-columns:1fr; }
  .photo-detail-image.gallery-item { min-height:auto; padding:24px; }
  .photo-detail-image.gallery-item img { max-height:72vh; }
  .photo-story { padding:52px 24px 64px; border-left:0; border-top:1px solid var(--border); }
  .photo-sequence a { min-height:116px; padding:24px; }
}
.like-btn:hover { color: var(--white); border-color: rgba(232,228,220,.4); background: rgba(7,7,7,.88); }
.like-btn.liked { color: #e8726a; border-color: rgba(232,114,106,.35); }
.like-btn.liked svg { fill: #e8726a; stroke: #e8726a; }
.like-btn.liked:hover { color: #c05a53; }
.like-count:empty { display: none; }

@keyframes shutter-ring {
  0%   { transform:scale(.85); opacity:.75; }
  100% { transform:scale(2.2); opacity:0; }
}
.like-btn.shutter-ring::before {
  content:""; position:absolute; inset:0;
  border:1px solid #e8726a;
  animation:shutter-ring .52s cubic-bezier(.16,1,.3,1) both;
  pointer-events:none;
  z-index:-1;
}

@media (hover: none) {
  .like-btn { opacity: 1; transform: none; }
}

/* Exhibition mode */
.exhibition { position:fixed; inset:0; z-index:12000; display:grid; grid-template-rows:auto minmax(0,1fr) auto 2px; background:#050505; color:var(--white); cursor:default; opacity:0; visibility:hidden; pointer-events:none; transition:opacity .45s ease,visibility 0s linear .45s; }
.exhibition.open { opacity:1; visibility:visible; pointer-events:auto; transition:opacity .45s ease; }
.exhibition-topbar { display:flex; justify-content:space-between; align-items:flex-start; padding:20px 24px; position:relative; z-index:2; }
.exhibition-kicker { font-size:8px; letter-spacing:.25em; color:#766c58; text-transform:uppercase; }
.exhibition-series { margin-top:5px; font:700 16px "Barlow Condensed",sans-serif; letter-spacing:.14em; text-transform:uppercase; }
.exhibition-stage { position:relative; min-height:0; display:flex; align-items:center; justify-content:center; padding:0 5vw; overflow:hidden; }
.exhibition-stage::before { content:""; position:absolute; inset:0; background:radial-gradient(circle at 50% 45%,rgba(255,245,220,.035),transparent 55%); pointer-events:none; }
.exhibition-stage > img { display:block; max-width:88vw; max-height:calc(100vh - 190px); object-fit:contain; opacity:0; transform:scale(.985); filter:brightness(.82); transition:opacity 1.35s ease,transform 1.5s cubic-bezier(.16,1,.3,1),filter 1.2s ease; }
.exhibition-stage > img.visible { opacity:1; transform:scale(1); filter:brightness(1); }
.exhibition-caption { position:absolute; left:clamp(24px,6vw,90px); bottom:28px; width:min(460px,calc(100vw - 48px)); padding:16px 18px; background:rgba(5,5,5,.82); border-left:1px solid #716650; backdrop-filter:blur(12px); transition:opacity .35s,transform .35s; }
.exhibition-caption > span { display:block; margin-bottom:8px; font-size:8px; letter-spacing:.22em; color:#887b63; text-transform:uppercase; }
.exhibition-caption p { font:italic 17px/1.55 "Cormorant Garamond",serif; color:#d2cec4; }
.exhibition-caption.empty,.exhibition.notes-hidden .exhibition-caption { opacity:0; transform:translateY(8px); pointer-events:none; }
.exhibition.transitioning .exhibition-caption { opacity:0; transform:translateY(8px); pointer-events:none; }
.exhibition-controls { min-height:64px; display:flex; align-items:center; justify-content:center; gap:14px; padding:10px 24px 14px; position:relative; z-index:2; }
.exhibition-icon-btn,.exhibition-play,.exhibition-notes-toggle,.exhibition-loop { border:1px solid #333; background:rgba(10,10,10,.75); color:#aaa; cursor:pointer; transition:border-color .2s,color .2s,background .2s; }
.exhibition-icon-btn { width:38px; height:38px; font-size:15px; }
.exhibition-play { min-width:108px; height:38px; padding:0 16px; font:9px "IBM Plex Mono",monospace; letter-spacing:.16em; text-transform:uppercase; }
.exhibition-notes-toggle,.exhibition-loop { height:38px; padding:0 12px; font:8px "IBM Plex Mono",monospace; letter-spacing:.14em; text-transform:uppercase; }
.exhibition-icon-btn:hover,.exhibition-play:hover,.exhibition-notes-toggle:hover,.exhibition-loop:hover { border-color:#887b63; color:var(--white); background:#13110d; }
.exhibition-loop.active { border-color:#9a8762; color:#f1dfb9; background:#1a160f; }
.exhibition-volume-controls { display:flex; align-items:center; gap:14px; margin-left:8px; }
.exhibition-volume { display:grid; grid-template-columns:auto 82px; align-items:center; gap:8px; color:#716b60; }
.exhibition-volume span { font:8px "IBM Plex Mono",monospace; letter-spacing:.14em; text-transform:uppercase; }
.exhibition-volume input { width:82px; height:16px; accent-color:#9a8762; cursor:pointer; }
.exhibition-position { position:absolute; right:24px; font-size:9px; letter-spacing:.18em; color:#666; }
.exhibition-progress { height:2px; background:#171717; overflow:hidden; }
.exhibition-progress span { display:block; width:0; height:100%; background:#9a8762; transition:width .12s linear; }
.exhibition audio { display:none; }
@media (max-width:650px) {
  .exhibition-topbar { padding:16px 18px; }
  .exhibition-stage { padding:0 12px; }
  .exhibition-stage > img { max-width:calc(100vw - 24px); max-height:calc(100vh - 230px); }
  .exhibition-caption { left:18px; bottom:14px; width:calc(100vw - 36px); }
  .exhibition-caption p { font-size:15px; }
  .exhibition-controls { min-height:104px; align-content:center; flex-wrap:wrap; gap:8px; padding:10px 12px 12px; }
  .exhibition-volume-controls { order:2; width:100%; justify-content:center; margin-left:0; }
  .exhibition-volume { grid-template-columns:auto 70px; }
  .exhibition-volume input { width:70px; }
  .exhibition-notes-toggle { position:absolute; left:12px; top:-36px; }
  .exhibition-position { right:12px; top:-28px; }
}

/* ══════════════════════════════════════════════════
   AUTH PAGES (Login / Register)
══════════════════════════════════════════════════ */
.auth-page {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: flex-start;
  padding: 80px 24px 40px clamp(24px, 12vw, 180px);
}
.auth-camera-backdrop {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
  background:
    linear-gradient(90deg, #070707 0%, rgba(7,7,7,.96) 22%, rgba(7,7,7,.38) 58%, rgba(7,7,7,.72) 100%),
    #070707;
}
.auth-camera-backdrop iframe {
  position: absolute; top: -15%; left: 13%;
  width: 130%; height: 130%; border: 0;
  opacity: .7;
  filter: contrast(1.12);
}
.auth-camera-backdrop::before {
  content: ""; position: absolute; z-index: 1;
  top: 13vh; right: 7vw; width: min(42vw, 620px); height: 66vh;
  border: 1px solid rgba(232,228,220,.08);
  background: rgba(7,7,7,.12);
  backdrop-filter: blur(1.5px);
}
.auth-camera-backdrop::after {
  content: ""; position: absolute; z-index: 1;
  left: 0; right: 0; top: 63%; height: 1px;
  background: linear-gradient(90deg, transparent 8%, rgba(232,228,220,.12) 45%, transparent 88%);
}
.auth-box {
  position: relative; z-index: 2;
  width: 100%; max-width: 420px;
  border: 1px solid rgba(232,228,220,.16);
  padding: 48px 44px;
  background: rgba(9,9,9,.76);
  box-shadow: 0 32px 90px rgba(0,0,0,.42);
  backdrop-filter: blur(7px);
}
@media (max-width: 720px) {
  .auth-page { justify-content: center; padding: 80px 20px 40px; }
  .auth-camera-backdrop iframe { top: -8%; left: -35%; width: 190%; height: 116%; opacity: .46; }
  .auth-camera-backdrop::before { top: 18vh; right: -18vw; width: 78vw; height: 58vh; }
}
@media (max-width: 500px) { .auth-box { padding: 36px 24px; background: rgba(9,9,9,.82); } }

.auth-eyebrow {
  display: flex; align-items: center; gap: 10px; margin-bottom: 24px;
  font-size: 10px; letter-spacing: .26em; color: #555; text-transform: uppercase;
}
.auth-eyebrow-line { width: 18px; height: 1px; background: #333; }

.auth-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 44px; font-weight: 900; text-transform: uppercase;
  letter-spacing: -.015em; line-height: .9;
  color: var(--white); margin-bottom: 36px;
}

.auth-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.auth-label { font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: #666; }
.auth-input {
  background: var(--bg); border: 1px solid var(--border);
  color: var(--white); font-family: "IBM Plex Mono", monospace; font-size: 13px;
  padding: 12px 14px; outline: none; width: 100%;
  transition: border-color .2s;
}
.auth-input:focus { border-color: #555; }
.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 100px var(--bg) inset;
  -webkit-text-fill-color: var(--white);
}

.auth-checkbox-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 28px; cursor: pointer;
}
.auth-checkbox-row input[type=checkbox] {
  width: 14px; height: 14px;
  accent-color: var(--white);
  cursor: pointer;
}
.auth-checkbox-label { font-size: 10px; letter-spacing: .14em; color: #666; text-transform: uppercase; }

.auth-submit {
  width: 100%; padding: 14px;
  background: var(--white); color: var(--bg);
  font-family: "Barlow Condensed", sans-serif; font-size: 16px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  border: none; cursor: pointer;
  transition: background .2s, color .2s;
  margin-bottom: 28px;
}
.auth-submit:hover { background: #ccc; }

.auth-links { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--border); padding-top: 20px; }
.auth-links a {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: #666; text-decoration: none; transition: color .2s;
}
.auth-links a:hover { color: var(--white); }

.auth-error {
  background: rgba(180,60,60,.12); border: 1px solid rgba(180,60,60,.3);
  color: #e07070; font-size: 10px; letter-spacing: .12em;
  padding: 10px 14px; margin-bottom: 18px;
}

.auth-validation { font-size: 9px; letter-spacing: .12em; color: #e07070; margin-top: 2px; }

/* ADMIN MEDIA */
.media-page { min-height: 100vh; padding-top: 80px; }
.media-header { padding: 48px 44px 32px; border-bottom: 1px solid var(--border); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
@media (max-width: 768px) { .media-header { padding: 32px 24px 24px; flex-direction: column; align-items: flex-start; } }
.media-title { font-family: "Barlow Condensed", sans-serif; font-size: clamp(32px, 5vw, 56px); font-weight: 900; text-transform: uppercase; letter-spacing: -.015em; color: var(--white); }
.media-subtitle { font-size: 10px; letter-spacing: .22em; color: #555; text-transform: uppercase; margin-top: 6px; }
.media-tabs { display: flex; border-bottom: 1px solid var(--border); padding: 0 44px; overflow-x: auto; scrollbar-width: none; }
@media (max-width: 768px) { .media-tabs { padding: 0 24px; } }
.media-tabs::-webkit-scrollbar { display: none; }
.media-tab { padding: 16px 20px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #666; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; background: none; border-top: none; border-left: none; border-right: none; transition: color .2s, border-color .2s; }
.media-tab:hover { color: var(--white); }
.media-tab.active { color: var(--white); border-bottom-color: var(--white); }
.media-tab-badge { font-size: 9px; color: #555; margin-left: 6px; }
.media-body { padding: 32px 44px; }
@media (max-width: 768px) { .media-body { padding: 24px; } }
.upload-zone { border: 1px dashed #333; padding: 36px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; margin-bottom: 32px; position: relative; }
.upload-zone:hover, .upload-zone.drag-over { border-color: #666; background: rgba(255,255,255,.02); }
.upload-zone-icon { font-size: 28px; margin-bottom: 10px; opacity: .3; }
.upload-zone-text { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #666; }
.upload-zone-sub { font-size: 9px; letter-spacing: .16em; color: #444; margin-top: 6px; }
.upload-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-progress { margin-bottom: 24px; }
.upload-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 10px; letter-spacing: .14em; }
.upload-item-name { flex: 1; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-item-status { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.upload-item-status.ok  { color: #4a8a4a; }
.upload-item-status.err { color: #e07070; }
.upload-item-status.prog{ color: #888; }
.media-workspace { display: grid; grid-template-columns: minmax(0,1fr); gap: 28px; align-items: start; }
.media-workspace.has-editor { grid-template-columns: minmax(0,1.45fr) minmax(340px,.55fr); }
@media (max-width: 1050px) { .media-workspace.has-editor { grid-template-columns: 1fr; } }
.media-grid { columns: 5; column-gap: 4px; }
.media-workspace.has-editor .media-grid { columns: 3; }
@media (max-width: 1200px) { .media-grid { columns: 4; } }
@media (max-width: 900px)  { .media-grid { columns: 3; } }
@media (max-width: 600px)  { .media-grid { columns: 2; } }
.media-img-wrap { break-inside: avoid; margin-bottom: 4px; position: relative; overflow: hidden; display:block; width:100%; padding:0; border:1px solid transparent; background:none; text-align:left; cursor:pointer; }
.media-img-wrap.selected { border-color:var(--white); }
.media-img-wrap img { display: block; width: 100%; height: auto; filter: grayscale(60%) brightness(.8); transition: filter .3s; }
.media-img-wrap:hover img { filter: grayscale(0%) brightness(1); }
.media-img-name { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(7,7,7,.82); padding: 6px 8px; font-size: 8px; letter-spacing: .12em; color: #888; opacity: 0; transition: opacity .2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-img-wrap:hover .media-img-name { opacity: 1; }
.media-delete-btn { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border: none; border-radius: 50%; background: rgba(200,40,40,.85); color: #fff; font-size: 12px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .2s, background .2s; display: flex; align-items: center; justify-content: center; padding: 0; }
.media-img-wrap:hover .media-delete-btn { opacity: 1; }
.media-delete-btn:hover { background: rgba(220,20,20,1); }
.media-story-badge { position:absolute; top:7px; left:7px; width:23px; height:23px; display:flex; align-items:center; justify-content:center; border:1px solid rgba(232,228,220,.55); background:rgba(7,7,7,.8); color:var(--white); font:700 9px "IBM Plex Mono",monospace; }
.media-empty { padding: 48px 0; text-align: center; font-size: 10px; letter-spacing: .2em; color: #444; text-transform: uppercase; }

.narration-editor { position:sticky; top:82px; max-height:calc(100vh - 100px); overflow:auto; border:1px solid var(--border); background:#0a0a0a; padding:22px; scrollbar-width:thin; }
@media (max-width:1050px) { .narration-editor { position:relative; top:0; max-height:none; grid-row:1; } }
.narration-editor-head { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:16px; }
.narration-kicker { font-size:9px; letter-spacing:.24em; color:#666; text-transform:uppercase; }
.narration-file { margin-top:6px; font-family:"Barlow Condensed",sans-serif; font-size:22px; font-weight:700; color:var(--white); overflow-wrap:anywhere; }
.narration-close { border:0; background:none; color:#777; cursor:pointer; font-size:16px; padding:2px 4px; }
.narration-close:hover { color:var(--white); }
.narration-preview { display:block; width:100%; max-height:260px; object-fit:contain; background:#050505; margin-bottom:22px; }
.narration-label { display:block; margin:18px 0 7px; font-size:9px; letter-spacing:.2em; color:#777; text-transform:uppercase; }
.narration-input { display:block; width:100%; border:1px solid #303030; background:#101010; color:var(--white); padding:11px 12px; font:12px "IBM Plex Mono",monospace; outline:none; transition:border-color .2s; }
.narration-input:focus { border-color:#777; }
.photo-public-link { display:block; margin:-7px 0 20px; color:#c8b68c; font-size:9px; letter-spacing:.14em; text-transform:uppercase; text-decoration:none; }
.photo-public-link:hover { color:#fff2d5; }
.photo-slug-field { display:flex; align-items:center; border:1px solid #303030; background:#101010; transition:border-color .2s; }
.photo-slug-field:focus-within { border-color:#777; }
.photo-slug-field span { padding-left:12px; color:#555; font-size:11px; }
.photo-slug-field input { min-width:0; flex:1; border:0; background:transparent; color:var(--white); padding:11px 12px 11px 2px; font:11px "IBM Plex Mono",monospace; outline:0; }
.narration-textarea { display:block; width:100%; min-height:116px; resize:vertical; border:1px solid #303030; background:#101010; color:var(--white); padding:12px; font:13px/1.65 "IBM Plex Mono",monospace; outline:none; transition:border-color .2s; }
.narration-textarea.raw { min-height:90px; color:#bbb; }
.narration-textarea:focus { border-color:#777; }
.narration-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.narration-btn { border:1px solid #444; background:transparent; color:#bbb; padding:9px 12px; cursor:pointer; font:9px "IBM Plex Mono",monospace; letter-spacing:.14em; text-transform:uppercase; transition:background .2s,color .2s,border-color .2s; }
.narration-btn:hover:not(:disabled) { border-color:var(--white); color:var(--white); }
.narration-btn.primary { background:var(--white); border-color:var(--white); color:#070707; }
.narration-btn.voice { border-color:#5a5140; color:#c8b68c; }
.narration-btn.danger { border-color:#583939; color:#bf7777; }
.narration-btn.danger:hover:not(:disabled) { border-color:#c46d6d; color:#f0a0a0; }
.narration-btn.full { width:100%; margin-top:20px; }
.narration-btn:disabled { opacity:.35; cursor:wait; }
.narration-audio-row { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:9px; }
.audio-state { font-size:8px; letter-spacing:.14em; text-transform:uppercase; white-space:nowrap; }
.audio-state.ready { color:#5b9b62; }
.audio-state.stale { color:#c08b4d; }
.audio-state.missing { color:#555; }
.narration-audio { display:block; width:100%; height:34px; margin-top:10px; filter:grayscale(1) invert(.88); }
.narration-message { margin-top:14px; padding:10px 12px; border-left:2px solid #555; font-size:10px; line-height:1.55; color:#aaa; }
.narration-message.ok { border-color:#4a8a4a; }
.narration-message.err { border-color:#b65353; color:#d08a8a; }

/* ADMIN STATISTICS */
.stats-page { min-height:100vh; padding:128px 44px 64px; background:radial-gradient(circle at 78% 8%,rgba(154,135,98,.07),transparent 30%),var(--bg); }
.stats-header { display:flex; align-items:flex-end; justify-content:space-between; gap:32px; padding-bottom:30px; border-bottom:1px solid var(--border); }
.stats-kicker { color:#81745d; font-size:9px; letter-spacing:.24em; text-transform:uppercase; }
.stats-header h1 { margin-top:8px; font:900 clamp(40px,6vw,76px)/.92 "Barlow Condensed",sans-serif; letter-spacing:-.02em; text-transform:uppercase; }
.stats-header p { margin-top:12px; color:#5e5e5e; font-size:10px; letter-spacing:.12em; }
.stats-header-actions { display:flex; gap:18px; }
.stats-header-actions a { color:#777; font-size:9px; letter-spacing:.17em; text-transform:uppercase; text-decoration:none; border-bottom:1px solid #3b3b3b; padding-bottom:4px; }
.stats-header-actions a:hover { color:var(--white); border-color:var(--white); }
.stats-toolbar { min-height:62px; display:flex; align-items:center; gap:8px; border-bottom:1px solid var(--border); }
.stats-toolbar > span { margin-right:10px; color:#555; font-size:8px; letter-spacing:.2em; text-transform:uppercase; }
.stats-toolbar button { border:1px solid #333; background:transparent; color:#666; padding:8px 11px; cursor:pointer; font:8px "IBM Plex Mono",monospace; letter-spacing:.14em; text-transform:uppercase; }
.stats-toolbar button.active { border-color:#8d7d60; color:#e0d3b8; background:#15120d; }
.stats-toolbar small { margin-left:auto; color:#4c4c4c; font-size:8px; letter-spacing:.12em; }
.stats-loading,.stats-empty { display:flex; min-height:220px; align-items:center; justify-content:center; color:#4f4f4f; font-size:9px; letter-spacing:.17em; text-transform:uppercase; }
.stats-empty.compact { min-height:150px; }
.stats-metrics { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); border:1px solid var(--border); border-width:0 0 1px 1px; }
.stats-metric { position:relative; min-height:152px; display:flex; flex-direction:column; justify-content:flex-end; padding:20px; border:1px solid var(--border); border-width:1px 1px 0 0; background:rgba(255,255,255,.008); }
.stats-metric > span { position:absolute; top:16px; right:16px; color:#454039; font:8px "IBM Plex Mono",monospace; letter-spacing:.15em; }
.stats-metric strong { font:300 clamp(30px,3.5vw,52px)/1 "Cormorant Garamond",serif; color:#ded8cb; }
.stats-metric small { margin-top:10px; color:#5f5f5f; font-size:8px; letter-spacing:.16em; text-transform:uppercase; }
.stats-panel { border:1px solid var(--border); background:rgba(8,8,8,.68); }
.stats-panel-head { min-height:82px; display:flex; justify-content:space-between; align-items:flex-start; padding:18px 20px; border-bottom:1px solid var(--border); }
.stats-panel-head span { color:#5a5142; font-size:7px; letter-spacing:.22em; text-transform:uppercase; }
.stats-panel-head h2 { margin-top:7px; color:#c9c4b9; font:700 20px "Barlow Condensed",sans-serif; letter-spacing:.08em; text-transform:uppercase; }
.stats-trend { margin-top:32px; }
.stats-legend { display:flex; align-items:center; gap:7px; color:#555; font-size:8px; letter-spacing:.12em; text-transform:uppercase; }
.stats-legend i { width:6px; height:6px; background:#9a8762; }
.stats-chart { height:240px; display:flex; align-items:stretch; gap:clamp(3px,.7vw,10px); padding:24px 20px 18px; overflow:hidden; }
.stats-day { min-width:0; flex:1; display:grid; grid-template-rows:minmax(0,1fr) 15px 14px; text-align:center; }
.stats-bar-wrap { display:flex; align-items:flex-end; justify-content:center; min-height:0; }
.stats-bar { width:min(22px,72%); min-height:0; background:linear-gradient(to top,#4e4535,#a18d66); transition:height .5s cubic-bezier(.16,1,.3,1); }
.stats-day strong { color:#676158; font-size:7px; font-weight:400; }
.stats-day > span { color:#444; font-size:7px; letter-spacing:.06em; }
.stats-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:2px; margin-top:2px; }
.stats-ranking { padding:4px 20px 12px; }
.stats-rank-row { display:grid; grid-template-columns:32px minmax(0,1fr) auto; align-items:center; min-height:48px; border-bottom:1px solid #1e1e1e; gap:10px; }
.stats-rank-row:last-child { border-bottom:0; }
.stats-rank-index { color:#48433a; font-size:8px; }
.stats-rank-name { overflow:hidden; color:#aaa; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.stats-rank-value { color:#d1c6af; font:italic 18px "Cormorant Garamond",serif; }
.stats-photo-values { color:#575757; font-size:8px; white-space:nowrap; }
.stats-photo-values b { color:#b8ab90; font-weight:400; }
.stats-tip { margin:0 20px 18px; padding:12px; background:#0d0d0d; color:#555; font-size:8px; line-height:1.6; }
.stats-tip code { color:#80745e; overflow-wrap:anywhere; }
@media (max-width:1100px) { .stats-metrics { grid-template-columns:repeat(3,1fr); } }
@media (max-width:720px) {
  .stats-page { padding:104px 20px 40px; }
  .stats-header { align-items:flex-start; flex-direction:column; }
  .stats-header-actions { flex-wrap:wrap; }
  .stats-toolbar small { display:none; }
  .stats-metrics { grid-template-columns:repeat(2,1fr); }
  .stats-metric { min-height:126px; padding:16px; }
  .stats-grid { grid-template-columns:1fr; }
  .stats-chart { height:200px; padding-inline:10px; gap:2px; }
  .stats-day > span { writing-mode:vertical-rl; margin:auto; }
  .stats-photo-values { font-size:7px; }
}
