@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600&family=JetBrains+Mono:wght@400;500&family=Climate+Crisis&display=swap');

@font-face {
  font-family: "Fraunces Variable";
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/fraunces:vf@latest/latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --color-brand: #B91C1C;
  --color-brand-dark: #7F1414;
  --color-surface: #140F0A;
  --color-surface-elevated: #1D1610;
  --color-background: #0A0805;
  --color-text-primary: #FFFBEB;
  --color-text-secondary: #C9BFA8;
  --color-accent: #DC2626;
  --color-border: #2D2018;

  --font-display: "Fraunces Variable", serif;
  --font-body: "Figtree", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-full: 9999px;

  --shadow-md: 0 12px 32px rgba(10, 8, 5, 0.45);
  --shadow-lg: 0 20px 50px rgba(10, 8, 5, 0.55);
  --shadow-brand: 0 0 24px rgba(220, 38, 38, 0.35);
}

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

body {
  background: var(--color-background);
  font-family: var(--font-body);
}

.scrub-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#scrub-canvas {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, var(--color-background) 100%);
}

.logo {
  position: fixed;
  top: 24px;
  left: 24px;
  color: var(--color-text-primary);
  font-family: "Climate Crisis", sans-serif;
  font-size: clamp(20px, 2.4vw, 34px);
  line-height: 0.82;
  letter-spacing: 0.01em;
  z-index: 10;
}

.logo-role {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-top: 8px;
}

.timeline {
  position: fixed;
  bottom: 48px;
  left: 24px;
  right: 24px;
  height: 24px;
  z-index: 10;
}

.timeline-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 26px;
}

.timeline-tick {
  position: absolute;
  bottom: 0;
  width: 1px;
  background: rgba(201, 191, 168, 0.5);
  transition: height 0.05s linear;
}

.timeline-marker {
  position: absolute;
  bottom: -34px;
  left: 0;
  width: 2px;
  height: 20px;
  background: var(--color-brand);
}

.timeline-year-label {
  position: absolute;
  bottom: 32px;
  font-family: "Climate Crisis", sans-serif;
  font-size: 13px;
  color: var(--color-text-secondary);
  white-space: nowrap;
  cursor: pointer;
  transform-origin: center bottom;
  transition: color 0.1s linear;
}

.cta-bar {
  position: fixed;
  top: 28px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 20;
}

.cta-divider {
  width: 1px;
  height: 12px;
  background: var(--color-border);
}

.cta-btn {
  position: relative;
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-bottom: 2px;
  transition: color 0.15s ease-out;
}

.cta-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-btn:hover {
  color: var(--color-text-primary);
}

.cta-btn:hover::after {
  right: 0;
}

.cta-btn--primary {
  color: var(--color-brand);
}

.frieze-item {
  position: fixed;
  left: 50%;
  bottom: 100px;
  width: 540px;
  margin-left: -270px;
  height: 370px;
  will-change: transform, opacity;
}

.cv-card {
  position: absolute;
  inset: 0;
  cursor: pointer;
  transform: perspective(700px) rotateX(0deg) rotateY(0deg) scale(1);
  transition: transform 0.2s ease-out;
}

.cv-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mask-image: radial-gradient(ellipse 58% 64% at 46% 46%, black 0%, black 60%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 58% 64% at 46% 46%, black 0%, black 60%, transparent 95%);
}

.cv-card-scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 40% 45% at 46% 60%, rgba(10, 8, 5, 0.55) 0%, transparent 75%);
}

.cv-card-content {
  position: absolute;
  left: 40px;
  bottom: 55px;
  max-width: 300px;
  z-index: 2;
  color: var(--color-text-primary);
}

.cv-year {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.cv-title {
  font-family: "Climate Crisis", sans-serif;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 0.95;
  margin-bottom: 8px;
}

.cv-subtitle {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.cv-card-cta {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
}

.cv-card-cta::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transition: right 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cv-card-cta:hover::after {
  right: 0;
}

.content-view {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--color-background);
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.content-view.open {
  opacity: 1;
  pointer-events: auto;
}

.content-view-hero {
  position: relative;
  width: 100%;
  height: 100vh;
}

.content-view-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: blur(6px);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.content-view.open .content-view-bg {
  transform: scale(1);
  filter: blur(0);
}

.content-view-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 8, 5, 0.92) 0%, rgba(10, 8, 5, 0.45) 45%, transparent 75%);
}

.content-view-close {
  position: fixed;
  top: 28px;
  right: 28px;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-family: var(--font-mono);
  font-size: 16px;
  cursor: pointer;
  z-index: 2;
}

.content-view-body {
  position: absolute;
  left: 60px;
  bottom: 90px;
  max-width: 600px;
  z-index: 2;
  color: var(--color-text-primary);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out 0.15s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.content-view.open .content-view-body {
  opacity: 1;
  transform: translateY(0);
}

.content-view-year {
  font-family: "Climate Crisis", sans-serif;
  font-size: 16px;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.content-view-body h2 {
  font-family: "Climate Crisis", sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.95;
  margin-bottom: 16px;
}

.content-view-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 100px 24px 200px;
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
}

.content-view-article p {
  margin-bottom: 28px;
}

.content-view-article .article-img {
  width: 100%;
  border-radius: var(--radius-md);
  margin: 40px 0;
  display: block;
}

.spacer {
  height: 1200vh;
}

.loader {
  position: fixed;
  inset: 0;
  background: var(--color-background);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-primary);
  font-family: "Climate Crisis", sans-serif;
  font-size: clamp(8rem, 25vw, 22rem);
  line-height: 1;
  z-index: 100;
  transition: opacity 0.4s ease;
}

.loader.hidden {
  opacity: 0;
  pointer-events: none;
}

body.is-loading .scrub-stage,
body.is-loading .cta-bar {
  visibility: hidden;
}
