:root {
  --bg: #050505;
  --bg-soft: #0b0b0b;
  --text: #f1f1f1;
  --muted: #9a9a9a;
  --line: rgba(255,255,255,.14);
  --line-strong: rgba(255,255,255,.28);
  --accent: #ff8c00;
  --pad: clamp(20px, 4vw, 72px);
  --content: 1380px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(34,34,34,.35), transparent 42%),
    var(--bg);
  color: var(--text);
  font-family: Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  background: var(--accent);
  color: #000;
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .045;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

#tsparticles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  animation: particlesIntro 2.6s ease 1s both;
}

/* --- NAVBAR: same layout and assets as the original --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(0,0,0,.92), rgba(0,0,0,.2), transparent);
  backdrop-filter: blur(2px);
  opacity: 0;
  animation: navIntro .9s cubic-bezier(.22,1,.36,1) .15s both;
}

.logo img { width: 80px; display: block; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a img {
  width: 40px;
  vertical-align: middle;
  transition: transform .3s cubic-bezier(.175,.885,.32,1.275), filter .3s ease;
}
.nav-links a[href="/fanzine"] img { width: 55px; }
.nav-links a img:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 5px rgba(255,255,255,.5));
}

main { position: relative; z-index: 2; }

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: end start;
  padding: 150px var(--pad) 64px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(5,5,5,.96) 0%, rgba(5,5,5,.2) 34%, rgba(5,5,5,.06) 66%, rgba(5,5,5,.52) 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-model-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(1.045);
  filter: blur(10px);
  animation: modelIntro 1.85s cubic-bezier(.16,1,.3,1) .12s both;
}

model-viewer {
  width: min(84vw, 1100px);
  height: min(86vh, 900px);
  --progress-mask: transparent;
  filter: drop-shadow(0 60px 80px rgba(0,0,0,.55));
  animation: modelFloat 7s ease-in-out infinite;
  transform-origin: center;
}

@keyframes modelFloat {
  0%,100% { transform: translate3d(0,0,0) rotate(-1deg); }
  50% { transform: translate3d(0,-18px,0) rotate(1.4deg); }
}

/* --- INITIAL PAGE SEQUENCE --- */
@keyframes navIntro {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes modelIntro {
  0% { opacity: 0; transform: scale(1.045); filter: blur(10px); }
  55% { opacity: .88; }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

@keyframes signatureIntro {
  0% { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateY(14px); }
  18% { opacity: 1; }
  100% { opacity: 1; clip-path: inset(0 0 0 0); transform: translateY(0); }
}

@keyframes copyIntro {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes particlesIntro {
  from { opacity: 0; }
  to { opacity: .55; }
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 900px;
}

.eyebrow,
.entry-kicker,
.mono,
.cv-heading,
.section-label,
.archive-link,
.event-date,
.end-sub,
.language-switch {
  font-family: "Courier New", Courier, monospace;
  letter-spacing: .08em;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: clamp(.72rem, .9vw, .9rem);
  color: var(--muted);
}

.hero-signature {
  display: block;
  width: clamp(280px, 42vw, 700px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left center;
  user-select: none;
  -webkit-user-drag: none;
  filter: invert(1);
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transform: translateY(14px);
  animation: signatureIntro 1.2s cubic-bezier(.16,1,.3,1) .62s both;
}

.hero-role {
  margin: 28px 0 34px;
  max-width: 620px;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  color: #d0d0d0;
  opacity: 0;
  transform: translateY(14px);
  animation: copyIntro .9s cubic-bezier(.22,1,.36,1) 1.02s both;
}

.text-link,
.contact-link {
  color: var(--text);
  text-decoration: none;
}


.language-switch {
  position: absolute;
  z-index: 4;
  right: var(--pad);
  bottom: 66px;
  display: flex;
  gap: 9px;
  align-items: center;
  color: #565656;
  font-size: .8rem;
  opacity: 0;
  transform: translateY(10px);
  animation: copyIntro .8s cubic-bezier(.22,1,.36,1) 1.18s both;
}
.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #6f6f6f;
  font: inherit;
  cursor: pointer;
  padding: 2px 0;
  transition: color .2s ease;
}
.lang-btn:hover,
.lang-btn.active { color: var(--text); }
.lang-btn.active::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 3px;
  background: var(--accent);
}

.statement,
.archive-section,
.selected-cv {
  width: min(calc(100% - (var(--pad) * 2)), var(--content));
  margin: 0 auto;
  padding: clamp(100px, 13vw, 190px) 0;
}

.section-label {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: clamp(64px, 8vw, 110px);
  font-size: .74rem;
  color: #737373;
}
.section-label span:first-child { color: var(--accent); }
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.statement-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .75fr);
  gap: clamp(50px, 9vw, 150px);
  align-items: end;
}

.statement-lead {
  margin: 0;
  max-width: 950px;
  font-size: clamp(2.3rem, 5.2vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.statement-note {
  max-width: 430px;
  color: #aeaeae;
  line-height: 1.7;
  font-size: .98rem;
}
.statement-note .mono {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: .75rem;
}

.archive-section {
  padding-top: 40px;
}

.archive-entry {
  position: relative;
  display: grid;
  grid-template-columns: minmax(130px, .45fr) minmax(0, 1.55fr);
  gap: clamp(34px, 7vw, 120px);
  padding: clamp(70px, 9vw, 130px) 0;
  border-top: 1px solid var(--line);
}

.archive-entry:last-child { border-bottom: 1px solid var(--line); }

.year {
  position: sticky;
  top: 125px;
  align-self: start;
  font-size: clamp(3.4rem, 8vw, 8.5rem);
  line-height: .82;
  letter-spacing: -.07em;
  color: rgba(255,255,255,.12);
  transition: color .4s ease, transform .4s ease;
}
.archive-entry:hover .year {
  color: rgba(255,255,255,.34);
  transform: translateX(8px);
}

.entry-content { max-width: 880px; }
.entry-kicker {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: .74rem;
}
.entry-content h2 {
  margin: 0 0 22px;
  font-size: clamp(2.3rem, 5vw, 5.2rem);
  line-height: .95;
  letter-spacing: -.055em;
}
.entry-content > p:not(.entry-kicker) {
  max-width: 760px;
  margin: 0;
  color: #b8b8b8;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.7;
}
.entry-content em { color: #fff; }

.inline-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.28);
  transition: color .2s ease, border-color .2s ease;
}
.inline-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.text-link {
  display: inline-block;
  margin-top: 30px;
  color: #ddd;
  font-family: "Courier New", Courier, monospace;
  font-size: .78rem;
  border-bottom: 1px solid #3d3d3d;
  padding-bottom: 4px;
}
.text-link:hover { color: var(--accent); border-color: var(--accent); }

.micro-fact {
  margin-top: 34px;
  max-width: 670px;
  padding: 16px 0 0 18px;
  border-left: 1px solid var(--accent);
  color: #8f8f8f;
  font-family: "Courier New", Courier, monospace;
  font-size: .82rem;
  line-height: 1.6;
}

.archive-entry-featured {
  margin-left: calc(var(--pad) * -0.35);
  margin-right: calc(var(--pad) * -0.35);
  padding-left: calc(var(--pad) * .35);
  padding-right: calc(var(--pad) * .35);
  background: linear-gradient(110deg, rgba(255,140,0,.035), transparent 55%);
}

.event-stack {
  margin-top: 42px;
  border-top: 1px solid var(--line);
}
.event-line {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 30px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.event-date {
  color: #757575;
  font-size: .73rem;
}
.event-line strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  letter-spacing: .025em;
}
.event-line p {
  margin: 0;
  color: #929292;
  line-height: 1.55;
  font-size: .92rem;
}
.event-stack.compact { max-width: 760px; }

.selected-cv { padding-top: 50px; }
.cv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cv-block {
  min-height: 290px;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.015);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.cv-block:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  background: rgba(255,255,255,.03);
}
.cv-heading {
  margin: 0 0 36px;
  color: var(--accent);
  font-size: .72rem;
}
.cv-block p:not(.cv-heading) {
  margin: 0;
  padding: 13px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #aaa;
  line-height: 1.45;
  font-size: .9rem;
}
.cv-block em { color: #e4e4e4; }

.bio-end {
  min-height: 58svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 34px;
  padding: 100px var(--pad) 70px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 20%, rgba(255,140,0,.05), transparent 32%),
    #030303;
}
.footer-signature {
  display: block;
  width: clamp(180px, 24vw, 420px);
  max-width: 72vw;
  height: auto;
  object-fit: contain;
  object-position: left center;
  user-select: none;
  -webkit-user-drag: none;
  filter: invert(1);
}
.contact-link {
  font-family: "Courier New", Courier, monospace;
  font-size: .8rem;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line-strong);
}
.contact-link:hover { color: var(--accent); border-color: var(--accent); }

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s cubic-bezier(.22,1,.36,1), transform .85s cubic-bezier(.22,1,.36,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .statement-grid { grid-template-columns: 1fr; }
  .statement-note { max-width: 680px; }
  .cv-grid { grid-template-columns: 1fr; }
  .cv-block { min-height: auto; }
}

@media (max-width: 760px) {
  :root { --pad: 20px; }

  .navbar { padding: 14px 16px; }
  .logo img { width: 64px; }
  .nav-links { gap: 13px; }
  .nav-links a img { width: 32px; }
  .nav-links a[href="/fanzine"] img { width: 45px; }

  .hero {
    min-height: 100svh;
    padding: 120px var(--pad) 42px;
    place-items: end start;
  }
  model-viewer {
    width: 145vw;
    height: 78vh;
    transform: translateY(-6vh);
    opacity: .92;
  }
  .hero::after {
    background: linear-gradient(to top, rgba(5,5,5,.98) 0%, rgba(5,5,5,.38) 42%, rgba(5,5,5,.08) 72%, rgba(5,5,5,.65) 100%);
  }
  .hero-signature { width: clamp(220px, 72vw, 430px); }
  .hero-role { max-width: 90%; font-size: .95rem; }
  .language-switch { right: 20px; bottom: auto; top: 95px; }

  .statement,
  .archive-section,
  .selected-cv {
    width: calc(100% - 40px);
  }

  .archive-entry {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .year {
    position: static;
    font-size: clamp(4.5rem, 24vw, 7rem);
  }
  .archive-entry:hover .year { transform: none; }
  .archive-entry-featured {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .event-line {
    grid-template-columns: 1fr;
    gap: 9px;
  }

}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
