:root {
  --bg: #141414;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-strong: rgba(255, 255, 255, 0.035);
  --surface-soft: rgba(255, 255, 255, 0.018);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f0f0f0;
  --muted: #a8a8a8;
  --accent: #e8e8e8;
  --max-width: 1120px;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.025), transparent 20%),
    linear-gradient(180deg, #202020 0%, #161616 55%, #101010 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
  line-height: 1.65;
}

h1,
h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.page-shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.section {
  padding-bottom: 44px;
}

.intro {
  display: grid;
  gap: 10px;
}

.intro-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.intro-block {
  display: block;
}

.intro-name {
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 800;
  max-width: 11ch;
}

.top-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 8px;
}

.top-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
}

.top-links a:hover,
.top-links a:focus-visible {
  color: var(--text);
}

.top-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.top-link-icon img,
.top-link-icon svg {
  display: block;
  width: 14px;
  height: 14px;
}

.top-link-icon img {
  object-fit: contain;
}

.top-link-icon svg {
  fill: currentColor;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  font-weight: 800;
}

.about-text {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.0625rem;
}

.section-heading {
  margin-bottom: 8px;
}

.project-list {
  display: grid;
  gap: 0;
}

.project-row {
  display: grid;
  grid-template-columns: minmax(360px, 1.08fr) minmax(0, 0.92fr);
  gap: 32px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.project-row:last-child {
  border-bottom: 1px solid var(--line);
}

.project-meta {
  display: grid;
  align-content: start;
  gap: 10px;
}

.project-meta h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.6rem);
  font-weight: 800;
  line-height: 1.08;
}

.project-company {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.project-company:hover,
.project-company:focus-visible {
  color: var(--text);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.action-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.875rem;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    opacity 160ms ease;
}

.action-link:hover,
.action-link:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: currentColor;
  flex: 0 0 16px;
}

.action-icon img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.action-icon svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  display: block;
}

.project-content {
  display: grid;
  gap: 12px;
  align-items: start;
}

.project-points {
  margin: 0;
  padding-left: 16px;
  list-style-position: outside;
  color: var(--muted);
  line-height: 1.65;
  max-width: none;
  font-size: 1rem;
}

.project-points li + li {
  margin-top: 6px;
}

.project-media {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  aspect-ratio: 16 / 9;
  box-shadow: none;
}

.project-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.55);
  opacity: 0.7;
  transition:
    filter 180ms ease,
    opacity 180ms ease;
}

.project-media video.is-active {
  filter: grayscale(0) brightness(1);
  opacity: 1;
}

.video-toggle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(240, 240, 240, 0.78);
  cursor: pointer;
  opacity: 0.88;
  transition: opacity 160ms ease;
}

.video-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.video-toggle:hover,
.video-toggle:focus-visible {
  opacity: 1;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 28px), var(--max-width));
    padding-top: 28px;
  }

  .site-header {
    padding-bottom: 0;
  }

  .project-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px 0;
  }

  .project-content {
    gap: 14px;
  }

  .section {
    padding-bottom: 52px;
  }
}
