:root {
  --bg: #030303;
  --text: #f2f2f2;
  --muted: #c7c7c7;
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #d53a3a;
  --cursor-orbit-point: rgba(246, 245, 238, 0.88);
  --cursor-orbit-line: rgba(246, 245, 238, 0.38);
  --eyebrow-text: #000000;
  --eyebrow-bg: #ffffff;
  --timeline-dot: #f6f5ee;
  --timeline-dot-ring: rgba(246, 245, 238, 0.18);
  --timeline-line: rgba(255, 255, 255, 0.28);
  --theme-button-bg: rgba(255, 255, 255, 0.08);
  --theme-button-border: rgba(255, 255, 255, 0.3);
  --separator-gap: 2.4rem;
}

[data-theme="light"] {
  --bg: #f7f7f2;
  --text: #131313;
  --muted: #3a3a3a;
  --line: rgba(0, 0, 0, 0.12);
  --line-strong: rgba(0, 0, 0, 0.2);
  --accent: #b12929;
  --cursor-orbit-point: rgba(35, 35, 30, 0.78);
  --cursor-orbit-line: rgba(35, 35, 30, 0.32);
  --eyebrow-text: #ffffff;
  --eyebrow-bg: #131313;
  --timeline-dot: #181818;
  --timeline-dot-ring: rgba(0, 0, 0, 0.16);
  --timeline-line: rgba(0, 0, 0, 0.34);
  --theme-button-bg: rgba(0, 0, 0, 0.06);
  --theme-button-border: rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--bg);
}

.bg-grid {
  display: none;
}

.site-header,
main {
  width: min(1120px, 88%);
  position: relative;
  z-index: 1;
}

.cursor-orbit-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.site-header {
  margin: 5.2rem auto 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: end;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  width: fit-content;
  text-decoration: none;
  text-transform: none;
  line-height: 0.88;
  letter-spacing: -0.02em;
  color: var(--text);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 144px;
}

.brand span:first-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.brand span:last-child {
  margin-top: -0.03em;
}

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  align-self: end;
  white-space: nowrap;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
  font-size: clamp(0.95rem, 1.1vw, 1.45rem);
  opacity: 0.92;
}

.site-nav a:not(:last-child)::after {
  content: " - ";
  opacity: 0.85;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  text-decoration: underline;
  text-decoration-color: var(--text);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.14em;
}

.theme-toggle {
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 4;
  width: 2.7rem;
  height: 2.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: var(--theme-button-bg);
  border: 1px solid var(--theme-button-border);
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: transparent;
}

.theme-toggle svg {
  width: 1.2rem;
  height: 1.2rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.theme-toggle .icon-sun {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

main {
  margin: var(--separator-gap) auto 4.5rem;
  border-top: 1px solid var(--line);
  padding-top: var(--separator-gap);
}

.hero {
  max-width: 1020px;
}

.eyebrow {
  margin: 0;
  position: relative;
  display: inline-block;
  padding: 0.18rem calc(1ch + 0.95rem) 0.18rem 0.5rem;
  font-size: 1.75rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--eyebrow-text);
  background: var(--eyebrow-bg);
  opacity: 1;
}

.eyebrow::before {
  display: none;
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1ch;
  background: repeating-linear-gradient(
    135deg,
    var(--eyebrow-text) 0 6px,
    var(--eyebrow-bg) 6px 12px
  );
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  color: var(--text);
}

h1,
h2 {
  font-family: "Archivo Black", sans-serif;
}

h1 {
  margin-top: 1.2rem;
  font-size: clamp(1.9rem, 4.1vw, 3.6rem);
  max-width: 30ch;
}

h2 {
  font-size: clamp(1.2rem, 2.1vw, 2rem);
}

h3 {
  font-size: clamp(1.08rem, 1.6vw, 1.45rem);
  font-weight: 800;
}

.lead {
  margin-top: 1.6rem;
  max-width: 90ch;
  font-size: clamp(1.04rem, 1.6vw, 1.48rem);
  line-height: 1.32;
  color: var(--text);
}

.bio-collapse {
  max-width: 90ch;
}

.bio-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bio-more {
  display: none;
}

.bio-link {
  display: block;
  width: fit-content;
  margin: 0.9rem 0 0 auto;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
  font-weight: 700;
}

.bio-link-less {
  display: none;
}

.bio-toggle:checked ~ .bio-more {
  display: block;
}

.bio-toggle:checked ~ .bio-link .bio-link-more {
  display: none;
}

.bio-toggle:checked ~ .bio-link .bio-link-less {
  display: inline;
}

.section-head {
  margin-top: 4rem;
  margin-bottom: 1.6rem;
}

.section-head h2 {
  margin-top: 0.6rem;
}

.card-grid,
.timeline {
  display: grid;
  gap: 1.25rem;
}

.card-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.card {
  grid-column: span 4;
}

.card,
.timeline-item,
.contact-block {
  padding: 1.25rem 1.2rem 1.3rem;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.01);
}

.page-home .card {
  border: none;
}

.page-home .teaser-current {
  display: block;
  width: fit-content;
  margin: 0.4rem 0 0.5rem 0;
  font-size: 0.78rem;
}

.timeline-item {
  border-left: 3px solid var(--accent);
}

.page-experience .timeline {
  position: relative;
  gap: 1.5rem;
  max-width: 1100px;
  margin-inline: auto;
  padding: 0.25rem 0;
}

.page-experience .timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 2px;
  background: var(--timeline-line);
  transform: translateX(-50%);
}

.page-experience .timeline-item {
  position: relative;
  border: none;
  border-left: none;
  background: rgba(255, 255, 255, 0.03);
  width: calc(50% - 2.2rem);
}

.page-experience .timeline-item:nth-child(odd) {
  margin-right: auto;
}

.page-experience .timeline-item:nth-child(even) {
  margin-left: auto;
}

.page-experience .timeline-item::before {
  content: "";
  position: absolute;
  top: 1.2rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--timeline-dot);
  box-shadow: 0 0 0 4px var(--timeline-dot-ring);
}

.page-experience .timeline-item:nth-child(odd)::before {
  right: -2.52rem;
}

.page-experience .timeline-item:nth-child(even)::before {
  left: -2.52rem;
}

.item-meta {
  margin: 0;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffbcbc;
  font-weight: 700;
}

.card p,
.timeline-item p,
.contact-block p {
  margin: 0.72rem 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.98rem;
}

.contact-block {
  max-width: 760px;
}

.contact-block a {
  color: var(--text);
  text-decoration-color: var(--accent);
  text-underline-offset: 0.16em;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: rise-in 450ms ease-out forwards;
}

.reveal:nth-of-type(2) {
  animation-delay: 90ms;
}

.reveal:nth-of-type(3) {
  animation-delay: 150ms;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .site-header {
    margin-top: 2.4rem;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    align-items: start;
  }

  .site-nav a {
    font-size: 1.15rem;
  }

  main {
    margin-top: var(--separator-gap);
  }

  .card {
    grid-column: span 6;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor-orbit-canvas {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header,
  main {
    width: min(1120px, 92%);
  }

  .brand {
    font-size: clamp(2.5rem, 18vw, 4.4rem);
  }

  .site-nav {
    display: grid;
    gap: 0.6rem;
  }

  .site-nav a {
    font-size: 1.02rem;
  }

  .theme-toggle {
    top: 0.8rem;
    right: 0.8rem;
    width: 2.45rem;
    height: 2.45rem;
  }

  .site-nav a::after {
    content: "";
  }

  .eyebrow {
    font-size: 1.1rem;
  }

  .lead {
    line-height: 1.45;
  }

  .card,
  .timeline-item {
    grid-column: span 12;
  }

  .page-experience .timeline {
    padding-left: 2.2rem;
  }

  .page-experience .timeline::before {
    left: 0.7rem;
    transform: none;
  }

  .page-experience .timeline-item {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .page-experience .timeline-item::before {
    left: -1.75rem;
    right: auto;
  }
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.card-link:hover h3,
.card-link:focus-visible h3 {
  text-decoration: underline;
  text-decoration-color: var(--text);
  text-underline-offset: 0.18em;
}

.model-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.model-link img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  margin-bottom: 0.85rem;
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%);
  transition: filter 220ms ease-in-out, -webkit-filter 220ms ease-in-out;
}

.model-link:hover h3,
.model-link:focus-visible h3 {
  text-decoration: underline;
  text-decoration-color: var(--text);
  text-underline-offset: 0.18em;
}

.model-link:hover img,
.model-link:focus-visible img {
  filter: grayscale(0%);
  -webkit-filter: grayscale(0%);
}
