:root {
  --page: #2c2c2c;
  --bg: #0e0e0e;
  --card: #0e0e0e;
  --line: #252525;
  --line-2: #353535;
  --text: #eeeeee;
  --muted: #c3c3c3;
  --faint: #8a8a8a;
  --mint: #00ffc2;
  --nav: #1b1b1b;
  --sans: "Sora", "Instrument Sans", sans-serif;
  --mono: "Red Hat Mono", "IBM Plex Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.03em;
  -webkit-font-smoothing: antialiased;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 3840px;
  margin-inline: auto;
}

main {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

img {
  max-width: 100%;
  height: auto;
}

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

a:hover {
  color: var(--mint);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

::selection {
  background: var(--mint);
  color: #111;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--mint);
  color: #111;
  padding: 0.6rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.card {
  background:
    linear-gradient(#0e0e0e, transparent),
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(255, 255, 255, 0.028) 34px 35px),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(255, 255, 255, 0.028) 34px 35px);
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  position: relative;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav {
  display: grid;
  grid-template-columns: minmax(7rem, 1fr) minmax(0, 5fr) minmax(13rem, 1.4fr);
  gap: 1.25rem;
  align-items: start;
  padding: 1.4rem 1rem 1rem;
}

.wordmark {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.07em;
  color: #fff;
  line-height: 1;
}

.wordmark:hover {
  color: var(--mint);
}

.nav-status {
  min-width: 0;
}

.scramble {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 18px;
  letter-spacing: -0.05em;
  color: var(--muted);
  min-height: 18px;
}

.scramble .dud {
  color: var(--mint);
  opacity: 0.7;
}

.nav-mail {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: -0.05em;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 4px;
  background: linear-gradient(#000, transparent);
  background-color: var(--nav);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  justify-self: end;
}

.nav-links a {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: -0.04em;
  padding: 0.55rem 0.7rem;
  border-radius: 3px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fff;
  background: #111;
}

.hero {
  display: grid;
  grid-template-columns: minmax(9rem, 1fr) minmax(0, 5fr) minmax(14rem, 1.35fr);
  gap: 1.5rem 1.25rem;
  padding: 0.5rem 1rem 2.5rem;
  min-height: min(78vh, 46rem);
  align-items: start;
}

.meta-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 14rem;
  padding-top: 0.3rem;
}

.mono {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 18px;
  letter-spacing: -0.05em;
  color: var(--muted);
}

.headline {
  margin: 0;
  max-width: 52rem;
  font-size: clamp(1.7rem, 4.2vw, 3rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.06em;
  color: #eee;
}

.headline strong {
  font-weight: 700;
  color: #fff;
}

.photo-dot {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  border-radius: 50%;
  background: #e8e6e2 url("../images/victor.jpg") center 18% / cover no-repeat;
  vertical-align: -0.18em;
  margin: 0 0.08em;
}

.lede-more {
  margin: 1.35rem 0 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.45;
  letter-spacing: -0.04em;
}

.now-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem 0.85rem;
  margin-top: 1.75rem;
}

.now-row .label {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.now-row a {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.06em;
  color: var(--muted);
}

.now-row a:hover {
  color: var(--mint);
}

.hero-photo {
  margin: 0;
  background: #e8e6e2;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  overflow: hidden;
  min-height: 16rem;
  aspect-ratio: 4 / 5;
  max-height: 28rem;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}

.section-card {
  padding: 1.5rem 1rem 2.5rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-label {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 1;
  color: #fff;
}

.works {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.works-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 10px;
}

.works-row.invert {
  grid-template-columns: 1fr 1.5fr;
}

.works-row.solo {
  grid-template-columns: 1.5fr 1fr;
}

.case-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  color: inherit;
  min-width: 0;
}

.case-visual {
  position: relative;
  min-height: 220px;
  aspect-ratio: 16 / 10;
  border-radius: 2px;
  overflow: hidden;
  background: #141414;
  border: 1px solid #1d1d1d;
}

.case-visual .glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(3.5rem, 8vw, 6rem);
  opacity: 0.92;
}

.case-visual .plus {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #9a9a9a;
  font-size: 14px;
  z-index: 2;
}

.case-visual .case-shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.45s ease;
}

.case-card:hover .case-shot {
  transform: scale(1.035);
}

.case-visual[data-tone="fiber"] {
  background: radial-gradient(120% 80% at 20% 10%, #2a3a5c 0%, #10141c 55%, #0a0a0a 100%);
  color: #8eb4ff;
}
.case-visual[data-tone="growth"] {
  background: radial-gradient(120% 80% at 80% 0%, #1c3d32 0%, #101410 60%, #0a0a0a 100%);
  color: #7dffc7;
}
.case-visual[data-tone="systems"] {
  background: radial-gradient(120% 80% at 10% 80%, #3a3428 0%, #161410 60%, #0a0a0a 100%);
  color: #e4d6b8;
}
.case-visual[data-tone="global"] {
  background: radial-gradient(120% 80% at 90% 80%, #1a3344 0%, #101418 60%, #0a0a0a 100%);
  color: #7ad7ff;
}
.case-visual[data-tone="auto"] {
  background: radial-gradient(120% 80% at 50% 0%, #3a2a12 0%, #14110c 60%, #0a0a0a 100%);
  color: #ffb45c;
}
.case-visual[data-tone="hub"] {
  background: radial-gradient(120% 80% at 0% 0%, #243018 0%, #11140e 60%, #0a0a0a 100%);
  color: #c6e07a;
}
.case-visual[data-tone="arch"] {
  background: radial-gradient(120% 80% at 100% 0%, #12352d 0%, #0e1412 60%, #0a0a0a 100%);
  color: var(--mint);
}

.case-card:hover .case-visual {
  outline: 1px solid color-mix(in srgb, currentColor 35%, transparent);
}

.case-info {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}

.case-mark {
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}

.case-title {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.1;
  color: #fff;
}

.case-pitch {
  margin: 0.35rem 0 0;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 18px;
  letter-spacing: -0.05em;
  color: var(--muted);
  max-width: 36ch;
}

.site-footer {
  padding: 2rem 1rem 1.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem 1.5rem;
}

.footer-title {
  margin: 0 0 0.7rem;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 1.05;
}

.footer-copy,
.footer-heading {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: -0.05em;
  color: var(--faint);
}

.footer-heading {
  margin: 0 0 0.65rem;
  text-transform: none;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
}

.footer-links a {
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: -0.04em;
}

.legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
}

.page-hero {
  padding: 1.5rem 1rem 0.5rem;
}

.crumb {
  display: inline-flex;
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.case-kicker {
  margin: 0 0 0.6rem;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.page-title {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.98;
  max-width: 16ch;
}

.case-role {
  margin: 1rem 0 0;
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: -0.04em;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.25rem;
  margin: 1rem 0 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.case-gallery {
  display: grid;
  gap: 10px;
  margin: 1.25rem 1rem 0;
}

.case-shot-fig {
  margin: 0;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: #111;
}

.case-shot-fig img {
  display: block;
  width: 100%;
  height: auto;
}

.case-shot-fig figcaption {
  padding: 0.55rem 0.75rem 0.75rem;
}

.case-body {
  padding: 0.5rem 1rem 1rem;
}

.block {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 1.25rem 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.block h2 {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: -0.04em;
  color: var(--muted);
  font-weight: 500;
}

.block p,
.block li {
  margin: 0;
  max-width: 42rem;
  color: var(--text);
}

.block p + p,
.block ul {
  margin-top: 0.85rem;
}

.block ul {
  padding-left: 1.1rem;
}

.block li + li {
  margin-top: 0.4rem;
}

.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tool {
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mint);
}

.stack-names {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.15rem;
  margin: 0 1rem 1.35rem;
  font-size: clamp(1.45rem, 3.6vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 1.25;
  color: #fff;
}

.stack-names span {
  color: #fff;
  white-space: nowrap;
}

.stack-names .stack-dot {
  color: var(--faint);
  font-weight: 500;
  padding: 0 0.55rem;
}

.stack-kicker {
  margin: 0 0 0.55rem;
}

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  border-top: 1px solid var(--line);
  margin: 0 1rem;
  padding: 1.25rem 0 2rem;
}

.pager .dir {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  margin-bottom: 0.3rem;
}

.pager .name {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.pager .next {
  text-align: right;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(13rem, 18rem);
  gap: 2rem 2.5rem;
  align-items: start;
  padding: 0.5rem 1rem 1.5rem;
}

.prose p {
  margin: 0 0 1.05rem;
  max-width: 40rem;
  color: var(--muted);
  letter-spacing: -0.03em;
}

.prose p:first-of-type {
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1.45;
}

.facts,
.timeline,
.edu {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.facts li,
.timeline li,
.edu li {
  border-top: 1px solid var(--line);
  padding: 0.8rem 0;
  display: grid;
  gap: 0.6rem 1rem;
}

.facts li {
  grid-template-columns: 8.5rem 1fr;
}

.timeline li {
  grid-template-columns: 11.5rem minmax(9rem, 0.85fr) minmax(0, 1.4fr);
  align-items: baseline;
}

.edu li {
  grid-template-columns: minmax(12rem, 0.9fr) minmax(0, 1.4fr);
}

.facts .label,
.timeline .when,
.timeline .detail,
.edu .detail {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.timeline .org,
.edu .org {
  font-weight: 600;
  letter-spacing: -0.04em;
}

.about-intro {
  margin: 1rem 1rem 1.25rem;
  max-width: 42rem;
  color: var(--muted);
}

.inner-pad {
  padding-left: 1rem;
  padding-right: 1rem;
}

.not-found {
  min-height: 60vh;
  display: grid;
  align-content: center;
  padding: 3rem 1rem;
}

.not-found h1 {
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  margin: 0.3rem 0 0;
  letter-spacing: -0.07em;
}

@media (max-width: 900px) {
  .nav,
  .hero,
  .about-layout,
  .footer-grid,
  .works-row,
  .works-row.invert,
  .works-row.solo,
  .pager,
  .block,
  .facts li,
  .timeline li,
  .edu li {
    grid-template-columns: 1fr;
  }

  .nav-links {
    justify-self: start;
  }

  .hero {
    min-height: 0;
  }

  .hero-photo {
    width: min(18rem, 100%);
    aspect-ratio: 1;
    max-height: none;
  }

  .pager .next {
    text-align: left;
  }
}

@media (max-width: 560px) {
  body {
    padding: 6px;
  }

  .headline {
    font-size: 1.55rem;
  }
}

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

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