:root {
  --paper: #f7f7f5;
  --ink: #202126;
  --muted: #77787c;
  --faint: #a8a9ab;
  --rule: #dededb;
  --panel: #ffffff;
  --red: #ff4b55;
  --green: #00f348;
  --shadow: 0 1px 4px rgba(32, 33, 38, 0.13);
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(32, 33, 38, 0.018) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 18px;
  color: var(--ink);
  font-family: var(--sans);
  min-width: 320px;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(32, 33, 38, 0.09) 0.6px, transparent 0.6px);
  background-size: 4px 4px;
  opacity: 0.09;
  mix-blend-mode: multiply;
  z-index: 20;
}

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

.hud {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--ink);
  z-index: 15;
}

.hud-top {
  position: fixed;
  top: 18px;
  left: clamp(18px, 3.2vw, 42px);
  right: clamp(18px, 3.2vw, 42px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  font-size: clamp(0.78rem, 1vw, 1.05rem);
  pointer-events: none;
}

.rec-line,
.camera-settings,
.brand,
.site-nav,
.section-heading,
.kicker,
.date,
.type,
.project-card a,
.deck-link,
.timeline-entry a,
.email-button,
.site-footer {
  font-family: var(--mono);
  text-transform: uppercase;
}

.rec-line {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.rec-dot,
.brand-dot,
.email-button span {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--red);
  display: inline-block;
}

.camera-settings {
  display: grid;
  gap: 0.1rem;
  text-align: right;
}

.corner {
  position: fixed;
  width: 54px;
  height: 54px;
  z-index: 14;
  pointer-events: none;
  opacity: 0.55;
}

.corner-tl {
  left: 40px;
  bottom: 30px;
  border-left: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
}

.corner-br {
  right: 40px;
  bottom: 30px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
}

.site-header {
  height: 96px;
  padding: 52px clamp(24px, 4.8vw, 80px) 22px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  font-size: 0.98rem;
  font-weight: 600;
}

.brand-dot {
  width: 0.58rem;
  height: 0.58rem;
}

.site-nav {
  display: flex;
  gap: clamp(1.2rem, 4vw, 3.3rem);
  font-size: 0.98rem;
  font-weight: 600;
}

.site-nav a,
.site-footer a,
.project-card a,
.project-link,
.timeline-entry a,
.deck-link {
  color: var(--muted);
  transition: color 160ms ease, background-color 160ms ease;
}

.site-nav a:hover,
.site-footer a:hover,
.project-card a:hover,
.project-card:hover .project-link,
.timeline-entry a:hover,
.deck-link:hover {
  color: var(--ink);
}

.section-shell {
  width: min(100% - clamp(36px, 8.6vw, 176px), 2320px);
  margin-inline: auto;
}

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 452px);
  gap: clamp(2rem, 9vw, 13rem);
  align-items: center;
  padding: clamp(78px, 10vh, 116px) 0 clamp(84px, 12vh, 132px);
}

.kicker {
  color: var(--muted);
  font-size: clamp(0.84rem, 1vw, 1.05rem);
  font-weight: 500;
  margin: 0 0 2.2rem;
}

.hero h1 {
  font-size: clamp(4.4rem, 9.3vw, 10.8rem);
  line-height: 0.88;
  margin: 0;
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 800;
}

.lede {
  color: #626368;
  font-size: clamp(1.25rem, 2vw, 2rem);
  line-height: 1.35;
  margin: 3rem 0 0;
}

.portrait-frame {
  position: relative;
  width: min(100%, 452px);
  justify-self: end;
  margin: 0;
}

.portrait-image {
  aspect-ratio: 1.25 / 1;
  position: relative;
  overflow: hidden;
  background: #d9dad6;
  box-shadow: var(--shadow);
}

.portrait-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 54% 42%;
}

.focus-tag {
  position: absolute;
  right: -16px;
  top: -16px;
  background: var(--green);
  color: var(--ink);
  font-family: var(--mono);
  text-transform: uppercase;
  padding: 0.18rem 0.38rem;
  font-size: 0.88rem;
}

.frame-count {
  position: absolute;
  left: 14px;
  bottom: -16px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  padding: 0.18rem 0.45rem;
  font-size: 0.88rem;
}

.section-heading {
  min-height: 76px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--faint);
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1rem, 1.35vw, 1.5rem);
  letter-spacing: 0.22em;
  font-weight: 500;
}

.section-heading span {
  font-size: 0.9rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 2.7vw, 36px);
  padding: clamp(44px, 6vw, 72px) 0 1rem;
}

.project-card {
  min-height: 250px;
  background: var(--panel);
  border: 1px solid #e5e5e2;
  box-shadow: var(--shadow);
  padding: clamp(28px, 3vw, 52px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

a.project-card {
  cursor: pointer;
}

a.project-card:hover {
  border-color: #d4d4d0;
  box-shadow: 0 4px 16px rgba(32, 33, 38, 0.11);
  transform: translateY(-2px);
}

a.project-card:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.card-index {
  font-family: var(--mono);
  background: #f0f0ee;
  padding: 0.08rem 0.36rem;
  font-weight: 600;
  color: #3b3c40;
  margin-bottom: 2rem;
}

.project-card h3 {
  font-size: clamp(1.7rem, 2.2vw, 2.15rem);
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  line-height: 1;
  font-weight: 800;
}

.type {
  color: var(--muted);
  margin: 0 0 2rem;
}

.project-card p:not(.type) {
  color: #626368;
  font-size: clamp(1.1rem, 1.45vw, 1.45rem);
  line-height: 1.52;
  margin: 0 0 2rem;
  max-width: 820px;
}

.project-card a,
.project-link {
  margin-top: auto;
  color: var(--faint);
  font-family: var(--mono);
  text-transform: uppercase;
}

.deck-link {
  display: inline-block;
  margin: 0 0 clamp(84px, 10vw, 136px);
  color: var(--muted);
}

.metadata {
  padding-bottom: clamp(78px, 10vw, 128px);
}

.metadata-heading {
  border-bottom: 0;
}

.metadata-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 36%);
  gap: clamp(3rem, 8vw, 12rem);
  align-items: start;
  padding-top: clamp(52px, 6vw, 86px);
}

.timeline {
  display: grid;
  gap: clamp(42px, 5vw, 64px);
}

.timeline-entry {
  border-left: 4px solid #d6d6d3;
  padding-left: clamp(24px, 3vw, 48px);
}

.timeline-entry.active {
  border-left-color: var(--ink);
}

.timeline-entry .date {
  color: var(--faint);
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
}

.timeline-entry h3 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.14;
}

.timeline-entry p:not(.date) {
  color: #66676b;
  font-size: clamp(1.08rem, 1.55vw, 1.45rem);
  line-height: 1.42;
  margin: 0;
}

.timeline-entry a {
  display: inline-block;
  margin-top: 1.1rem;
  color: var(--muted);
}

.stack-panel {
  min-height: min(70vh, 720px);
  background: var(--panel);
  border: 1px solid #e5e5e2;
  box-shadow: var(--shadow);
  padding: clamp(36px, 4vw, 70px);
  position: sticky;
  top: 110px;
}

.stack-panel h3 {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: clamp(1rem, 1.35vw, 1.35rem);
  font-weight: 500;
  margin: 0 0 2.7rem;
}

.stack-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}

.stack-panel li {
  font-family: var(--mono);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stack-panel i {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--green);
}

.contact {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  min-height: 420px;
  padding: clamp(70px, 8vw, 106px) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.contact h2 {
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 1.08;
  margin: 0;
  letter-spacing: 0;
}

.email-button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--ink);
  color: var(--paper);
  padding: 1.2rem 1.9rem;
  font-size: clamp(0.95rem, 1.1vw, 1.18rem);
  min-width: 300px;
  justify-content: center;
}

.email-button span {
  width: 0.55rem;
  height: 0.55rem;
}

.site-footer {
  min-height: 92px;
  width: min(100% - clamp(36px, 8.6vw, 176px), 2320px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  gap: clamp(1.4rem, 3vw, 2.8rem);
}

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

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

@media (max-width: 900px) {
  .site-header {
    height: auto;
    padding-top: 58px;
    align-items: start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.82rem;
  }

  .hero,
  .metadata-layout,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 4rem;
  }

  .portrait-frame {
    justify-self: start;
    max-width: 390px;
  }

  .stack-panel {
    position: relative;
    top: auto;
    min-height: auto;
  }

  .contact {
    align-items: flex-start;
    flex-direction: column;
  }

  .email-button {
    min-width: min(100%, 300px);
  }
}

@media (max-width: 620px) {
  .hud-top {
    top: 12px;
  }

  .camera-settings {
    display: none;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .section-shell,
  .site-footer {
    width: min(100% - 36px, 2320px);
  }

  .hero h1 {
    font-size: clamp(4rem, 20vw, 6rem);
  }

  .project-card {
    min-height: 230px;
  }

  .section-heading {
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 0.35rem;
  }

  .section-heading h2 {
    letter-spacing: 0.12em;
  }

  .corner {
    display: none;
  }

  .contact h2 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 0;
  }
}
