:root {
  color-scheme: light;
  --slate: #66717c;
  --slate-dark: #58636e;
  --ink: #202428;
  --light: #f2f2ef;
  --white: #ffffff;
  --line: rgba(255,255,255,.24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--slate); color: var(--light); font-family: Georgia, "Times New Roman", serif; overflow-x: hidden; }
body:not(.bio-page) { height: 100vh; height: 100svh; overflow: hidden; }
body:not(.bio-page) main { height: 100%; }
a { color: inherit; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.3rem;
  padding: 0 clamp(1.2rem, 4vw, 4rem);
  color: rgba(255,255,255,.78);
  background: linear-gradient(180deg, rgba(0,0,0,.35), transparent);
  font-family: Arial, Helvetica, sans-serif;
}
nav { display: flex; gap: clamp(1.1rem, 3vw, 3rem); }
nav a { font-size: .78rem; font-weight: 300; text-decoration: none; }
nav a { padding: .35rem 0; border-bottom: 1px solid transparent; }
nav a:hover, nav a:focus-visible, nav a.active { border-color: currentColor; color: white; }
.social-links { display: flex; align-items: center; gap: .9rem; }
.social-links a, .social-links span { width: 1rem; height: 1rem; display: inline-flex; color: rgba(255,255,255,.78); }
.social-links a { transition: color 180ms ease; }
.social-links a:hover { color: white; }
.social-links span { opacity: .55; }
.social-links svg { width: 100%; height: 100%; fill: currentColor; }

.hero {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 22%, rgba(255,55,128,.38) 0%, transparent 34%),
    radial-gradient(circle at 68% 72%, rgba(0,221,255,.35) 0%, transparent 42%),
    radial-gradient(circle at 28% 84%, rgba(124,71,255,.4) 0%, transparent 38%),
    linear-gradient(135deg, #060018 0%, #14103b 48%, #001d2b 100%);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: .16;
  background:
    repeating-radial-gradient(circle at 30% 40%, transparent 0 1px, rgba(255,255,255,.13) 1px 2px, transparent 2px 4px),
    repeating-linear-gradient(115deg, rgba(255,255,255,.025) 0 1px, transparent 1px 4px);
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    radial-gradient(circle at 58% 43%, transparent 0 20%, rgba(0,0,0,.2) 54%, rgba(0,0,0,.72) 100%),
    linear-gradient(105deg, rgba(0,13,25,.72) 0%, rgba(7,10,17,.24) 46%, rgba(49,19,5,.3) 100%);
}
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 43%; filter: contrast(1.34) brightness(.58) saturate(.78) sepia(.08); transform: scale(1.02); animation: cinematic-drift 18s ease-in-out infinite alternate; }
.hero-art { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; opacity: .24; mix-blend-mode: screen; pointer-events: none; }
.hero-copy { position: relative; z-index: 2; height: 100%; min-height: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; padding: 22vh clamp(1.5rem, 6vw, 6rem) 3rem; text-align: left; }
h1 { margin: 0; font-family: Arial, Helvetica, sans-serif; font-size: clamp(1.55rem, 2.7vw, 2.55rem); font-weight: 200; line-height: 1; letter-spacing: .02em; text-transform: none; }
.kicker, .eyebrow { margin: 1rem 0 0; font-family: Arial, Helvetica, sans-serif; font-size: .67rem; font-weight: 300; letter-spacing: .18em; text-transform: uppercase; }
.hero .kicker { color: rgba(255,255,255,.78); }

.section {
  position: relative;
  min-height: 76svh;
  display: grid;
  grid-template-columns: minmax(8rem, .28fr) 1fr;
  gap: clamp(2rem, 7vw, 8rem);
  align-content: center;
  padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 7vw, 7rem);
  border-bottom: 1px solid var(--line);
  background: var(--slate);
  scroll-margin-top: 4rem;
}
.section-index { display: none; }
.section-heading { grid-column: 1; align-self: start; }
.eyebrow { margin: 0 0 .65rem; color: rgba(255,255,255,.55); }
.section h2, .contact-section h2 { margin: 0; font-family: Arial, Helvetica, sans-serif; font-size: clamp(2rem, 4vw, 4rem); font-weight: 200; line-height: 1; letter-spacing: .01em; }

.bio-section { background: var(--slate-dark); }
.bio-copy { grid-column: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-self: center; }
.bio-copy p { margin: 0; color: rgba(255,255,255,.72); font-size: clamp(.95rem, 1.2vw, 1.15rem); line-height: 1.65; }
.bio-copy .lead { color: rgba(255,255,255,.9); font-size: clamp(1.15rem, 1.6vw, 1.5rem); line-height: 1.5; }

.dark-section { background: #30363c; }
.work-list {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
}
.work-item {
  position: relative;
  min-height: 9.5rem;
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.25rem;
  background: rgba(255,255,255,.035);
  color: rgba(255,255,255,.84);
  text-decoration: none;
  transition: background 180ms ease;
}
.work-item:hover { background: rgba(255,255,255,.1); }
.source-logo { min-height: 2rem; display: flex; align-items: flex-start; font-family: Arial, Helvetica, sans-serif; font-weight: 700; line-height: 1; }
.logo-telegram { font-size: .9rem; letter-spacing: -.04em; text-transform: uppercase; }
.logo-n1 { width: 1.85rem; min-height: 1.85rem; align-items: center; justify-content: center; background: #d9222a; color: white; font-size: .85rem; }
.logo-katholisch { color: #ffc5c8; font-size: .9rem; }
.logo-vreme { color: #ffc2c8; font-size: .95rem; letter-spacing: .08em; }
.logo-24sata { color: #ffb7bd; font-size: 1rem; }
.work-item h3 { margin: auto 1.2rem 0 0; font-family: Arial, Helvetica, sans-serif; font-size: clamp(.86rem, 1vw, 1rem); font-weight: 300; line-height: 1.32; }
.work-arrow { position: absolute; top: 1rem; right: 1rem; font-family: Arial, Helvetica, sans-serif; font-size: .75rem; }

.publications-section { background: var(--slate); }
.contact-section { min-height: 66svh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 4rem 1.25rem; background: #4f5963; color: var(--light); text-align: center; scroll-margin-top: 4rem; }
.contact-section .eyebrow { margin-bottom: .9rem; }
.contact-section h2 { margin-bottom: 2rem; }
.contact-section > a { padding-bottom: .25rem; border-bottom: 1px solid rgba(255,255,255,.45); color: rgba(255,255,255,.78); font-size: clamp(.95rem, 1.4vw, 1.2rem); text-decoration: none; }
footer { display: flex; justify-content: space-between; padding: 1.2rem clamp(1.25rem, 4vw, 4rem); background: #343b42; color: rgba(255,255,255,.55); font-family: Arial, Helvetica, sans-serif; font-size: .66rem; }
footer a { text-decoration: none; }

.bio-page { height: 100vh; height: 100svh; overflow: hidden; background: #20262c; }
.bio-page .site-header { background: linear-gradient(180deg, rgba(30,36,41,.38), transparent); }
.bio-page-main { height: 100%; }
.bio-page-content {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 46%) 1fr;
  background: linear-gradient(135deg, #313a42 0%, #20262c 100%);
}
.bio-portrait { height: 100%; overflow: hidden; background: #111; }
.bio-portrait img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 44%; filter: grayscale(1) contrast(1.18) brightness(.72); }
.bio-page-panel { display: flex; flex-direction: column; justify-content: center; gap: clamp(1.6rem, 4vh, 3rem); min-width: 0; padding: 6rem clamp(2rem, 6vw, 6rem) 3rem; }
.bio-page-content h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  text-align: left;
  text-transform: none;
}
.bio-page-copy { max-width: 42rem; }
.bio-page-copy > p { margin: 0 0 1.1rem; color: rgba(255,255,255,.7); font-size: clamp(.88rem, 1.05vw, 1.05rem); line-height: 1.58; }
.bio-page-copy .lead { color: rgba(255,255,255,.94); font-size: clamp(1.12rem, 1.6vw, 1.45rem); line-height: 1.4; }
.bio-contact { margin-top: clamp(1.5rem, 4vh, 2.8rem); padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.24); }
.bio-contact .eyebrow { margin-bottom: .65rem; }
.bio-contact a { color: rgba(255,255,255,.82); font-size: clamp(1rem, 1.4vw, 1.2rem); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.38); }

.reveal { opacity: 0; transform: translateY(1.25rem); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 800px) {
  .site-header { min-height: 3.8rem; }
  nav { gap: 1rem; overflow-x: auto; }
  nav a { white-space: nowrap; font-size: .66rem; }
  .hero-photo { object-position: 52% center; filter: contrast(1.3) brightness(.54) saturate(.74) sepia(.07); }
  .hero-art { opacity: .2; }
  .section { min-height: auto; grid-template-columns: 1fr; gap: 2.2rem; padding-block: 4.5rem; }
  .section-heading, .bio-copy, .work-list { grid-column: 1; }
  .bio-copy { grid-template-columns: 1fr; gap: 1.5rem; }
  .work-list { grid-template-columns: 1fr; }
  .work-item { min-height: 8.5rem; }
  .bio-page-content { grid-template-columns: 1fr; grid-template-rows: 38% 62%; }
  .bio-portrait { height: 100%; min-height: 0; }
  .bio-portrait img { height: 100%; min-height: 0; object-position: center 40%; }
  .bio-page-panel { justify-content: flex-start; gap: .8rem; padding: 1rem 1.25rem .8rem; overflow: hidden; }
  .bio-page-content h1 { font-size: 1.65rem; }
  .bio-page-copy > p { margin-bottom: .65rem; font-size: clamp(.74rem, 2.6vw, .9rem); line-height: 1.38; }
  .bio-page-copy .lead { font-size: clamp(.95rem, 3.7vw, 1.15rem); line-height: 1.28; }
  .bio-contact { margin-top: .7rem; padding-top: .65rem; }
  .bio-contact .eyebrow { margin-bottom: .45rem; }
  .bio-contact a { font-size: .82rem; }
}

@media (max-width: 520px) {
  h1 { font-size: clamp(1.45rem, 7vw, 2.2rem); }
  .hero-copy { align-items: flex-start; justify-content: flex-end; padding: 3rem 1.25rem 11vh; text-align: left; }
  .section h2, .contact-section h2 { font-size: 2.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-art { opacity: .16; }
}

@keyframes cinematic-drift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.075) translate3d(-.7%, -.35%, 0); }
}
