:root {
  --ink: #070706;
  --ink-soft: #191817;
  --paper: #f6efe4;
  --paper-strong: #fffaf0;
  --muted: #847d70;
  --line: rgba(7, 7, 6, 0.16);
  --white-line: rgba(255, 250, 240, 0.18);
  --cyan: #72e8ff;
  --coral: #ff6b4a;
  --green: #b6ff6f;
  --violet: #b9a1ff;
  --max: 1240px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: "Space Grotesk", "Lato", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.35;
  margin: 0;
  overflow-x: hidden;
}

body::before {
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 4px);
  content: "";
  inset: 0;
  opacity: 0.22;
  pointer-events: none;
  position: fixed;
  z-index: 2;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-color: currentColor;
  text-underline-offset: 0.18em;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

button,
input {
  font: inherit;
}

.motion-canvas {
  height: 100svh;
  inset: 0;
  pointer-events: none;
  position: fixed;
  width: 100vw;
  z-index: 0;
}

.skip-link {
  background: var(--paper-strong);
  color: var(--ink);
  left: 16px;
  padding: 10px 14px;
  position: fixed;
  top: -56px;
  z-index: 80;
}

.skip-link:focus {
  top: 16px;
}

.site {
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.site-header,
.glass-dock {
  background: rgba(7, 7, 6, 0.68);
  border: 1px solid rgba(255, 250, 240, 0.28);
  box-shadow: 0 18px 80px rgba(0, 0, 0, 0.28);
  color: var(--paper-strong);
  position: fixed;
  z-index: 50;
}

.site-header {
  border-radius: 999px;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  width: min(920px, calc(100vw - 32px));
}

.glass-dock {
  border-radius: 18px;
  bottom: 18px;
  right: 18px;
}

.glass-content {
  position: relative;
  z-index: 3;
}

.nav-inner {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: auto 1fr auto;
  min-height: 56px;
  padding: 8px 12px 8px 18px;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  border: 1px solid rgba(255, 250, 240, 0.45);
  border-radius: 50%;
  height: 34px;
  object-fit: cover;
  width: 34px;
}

.brand span {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-toggle {
  align-items: center;
  background: rgba(255, 250, 240, 0.1);
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 50%;
  color: var(--paper-strong);
  display: none;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.nav-toggle svg {
  height: 21px;
  width: 21px;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 4px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a,
.dock-links a,
.pill-link {
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  padding: 10px 12px;
  text-decoration: none;
}

.nav-links a {
  display: block;
}

.nav-links a[aria-current="page"],
.nav-links a:hover,
.dock-links a:hover,
.pill-link:hover {
  background: var(--paper-strong);
  color: var(--ink);
}

.nav-meta {
  color: rgba(255, 250, 240, 0.68);
  font-size: 0.76rem;
  font-weight: 700;
}

.dock-links {
  display: grid;
  gap: 4px;
  padding: 8px;
}

.dock-links a {
  display: block;
}

.page {
  isolation: isolate;
  padding-top: 0;
}

.section {
  overflow: hidden;
  padding: clamp(56px, 7vw, 96px) clamp(18px, 4vw, 56px);
  position: relative;
}

.section-inner {
  margin: 0 auto;
  max-width: var(--max);
  position: relative;
  z-index: 1;
}

.section-dark {
  background: rgba(7, 7, 6, 0.42);
  color: var(--paper);
}

.section-paper {
  background: rgba(246, 239, 228, 0.95);
  color: var(--ink);
}

.section-ink {
  background: rgba(7, 7, 6, 0.92);
  color: var(--paper);
}

.page > .section:first-child:not(.home-hero):not(.work-hero) {
  padding-top: 116px;
}

.home-hero,
.work-hero {
  align-items: end;
  display: grid;
  min-height: calc(100svh - 72px);
  padding-bottom: 8px;
  padding-top: 92px;
}

.hero-grid {
  align-items: end;
  display: grid;
  gap: clamp(26px, 5vw, 72px);
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.78fr);
  margin: 0 auto;
  max-width: var(--max);
  width: 100%;
}

.eyebrow {
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 16px;
}

.section-paper .eyebrow {
  color: #225e1d;
}

.display {
  font-family: "Archivo Black", "Arial Black", "Lato", sans-serif;
  font-size: 7rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.9;
  text-wrap: balance;
}

.display-mid {
  font-family: "Archivo Black", "Arial Black", "Lato", sans-serif;
  font-size: 5rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.92;
  text-wrap: balance;
}

.lede {
  color: rgba(255, 250, 240, 0.72);
  font-size: 1.15rem;
  line-height: 1.45;
  max-width: 680px;
}

.section-paper .lede {
  color: rgba(7, 7, 6, 0.68);
}

.hero-copy {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
}

.hero-kicker {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  border: 1px solid currentColor;
  border-radius: 999px;
  color: rgba(255, 250, 240, 0.78);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  padding: 8px 10px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-link {
  align-items: center;
  background: rgba(255, 250, 240, 0.09);
  border: 1px solid rgba(255, 250, 240, 0.24);
  color: var(--paper-strong);
  display: inline-flex;
  min-height: 42px;
}

.section-paper .pill-link {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-strong);
}

.section-paper .pill-link:hover {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--ink);
}

.hero-media {
  align-self: stretch;
  display: grid;
  min-height: 420px;
  position: relative;
}

.hero-photo {
  align-self: end;
  display: block;
  min-height: 100%;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.hero-photo img {
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  width: 100%;
}

.hero-photo::after {
  background: linear-gradient(180deg, transparent 50%, rgba(7, 7, 6, 0.78));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero-caption {
  align-items: end;
  bottom: 0;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  left: 0;
  padding: 18px;
  position: absolute;
  right: 0;
  z-index: 1;
}

.hero-caption span {
  color: var(--paper-strong);
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-index {
  align-items: center;
  background: var(--green);
  border-radius: 50%;
  color: var(--ink);
  display: flex;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.ticker {
  border-top: 1px solid var(--white-line);
  margin-top: 32px;
  overflow: hidden;
  padding-top: 14px;
}

.ticker-track {
  animation: ticker 26s linear infinite;
  color: rgba(255, 250, 240, 0.72);
  display: flex;
  font-size: 1.25rem;
  font-weight: 700;
  gap: 28px;
  letter-spacing: 0;
  min-width: max-content;
  white-space: nowrap;
}

.ticker-track span::after {
  color: var(--coral);
  content: "/";
  margin-left: 28px;
}

.split {
  display: grid;
  gap: clamp(28px, 5vw, 76px);
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.work-card,
.photo {
  margin: 0;
}

.feature-card {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.feature-card img,
.work-card img,
.photo img {
  background: rgba(7, 7, 6, 0.12);
  object-fit: cover;
  width: 100%;
}

.feature-card img {
  aspect-ratio: 4 / 5;
}

.feature-card figcaption,
.photo figcaption,
.work-card figcaption {
  align-items: center;
  display: flex;
  font-size: 0.82rem;
  font-weight: 700;
  gap: 12px;
  justify-content: space-between;
  letter-spacing: 0;
  padding-top: 10px;
}

.feature-card figcaption span:last-child,
.work-card figcaption span:last-child,
.photo figcaption::after {
  color: var(--muted);
}

.work-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(28px, 5vw, 56px);
}

.work-card {
  border-top: 1px solid var(--white-line);
  color: var(--paper);
  padding-top: 14px;
  text-decoration: none;
}

.work-card img {
  aspect-ratio: 16 / 11;
}

.work-card:hover img,
.feature-card:hover img,
.photo button:hover img {
  filter: contrast(1.08) saturate(1.08);
}

.about-copy {
  display: grid;
  gap: 20px;
}

.about-copy p {
  color: rgba(7, 7, 6, 0.68);
  font-size: 1.15rem;
  line-height: 1.55;
}

.section-dark .about-copy p,
.section-ink .about-copy p {
  color: rgba(255, 250, 240, 0.72);
}

.resume-list {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
  margin-top: 12px;
  padding-top: 20px;
}

.resume-list h2 {
  color: #225e1d;
  font-size: 0.82rem;
  letter-spacing: 0;
  margin-bottom: 6px;
}

.resume-list p {
  margin: 0;
}

.resume-list .role {
  color: var(--muted);
}

.about-mosaic {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.about-mosaic img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}

.about-mosaic img:first-child {
  aspect-ratio: 16 / 10;
  grid-column: 1 / -1;
}

.portfolio-intro {
  align-items: end;
  display: grid;
  gap: clamp(22px, 4vw, 54px);
  grid-template-columns: minmax(180px, 0.5fr) minmax(0, 1.5fr);
  margin-bottom: clamp(44px, 7vw, 92px);
}

.section-nav {
  align-content: start;
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.section-nav a {
  color: currentColor;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.section-nav a::before {
  color: var(--coral);
  content: "/";
  margin-right: 8px;
}

.year-section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(160px, 0.42fr) minmax(0, 1.58fr);
  padding: clamp(34px, 5vw, 60px) 0;
  scroll-margin-top: 96px;
}

.year-section h2 {
  color: #225e1d;
  font-family: "Archivo Black", "Arial Black", "Lato", sans-serif;
  font-size: 2.6rem;
  letter-spacing: 0;
  line-height: 0.95;
}

.gallery {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.photo button {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: zoom-in;
  display: block;
  padding: 0;
  text-align: left;
  width: 100%;
}

.photo img {
  aspect-ratio: 4 / 4.6;
}

.photo figcaption {
  min-height: 1.25rem;
}

.photo figcaption::after {
  content: attr(data-index);
}

.contact-section {
  min-height: 68svh;
}

.contact-grid {
  align-items: end;
  display: grid;
  gap: clamp(30px, 6vw, 80px);
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
}

.contact-link {
  display: inline-block;
  font-family: "Archivo Black", "Arial Black", "Lato", sans-serif;
  font-size: 5.8rem;
  letter-spacing: 0;
  line-height: 0.92;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.contact-link span {
  color: var(--cyan);
}

.contact-meta {
  border-left: 1px solid var(--white-line);
  color: rgba(255, 250, 240, 0.64);
  display: grid;
  gap: 18px;
  padding-left: 20px;
}

.contact-logo {
  color: var(--coral);
  font-family: "Archivo Black", "Arial Black", "Lato", sans-serif;
  font-size: 7.8rem;
  letter-spacing: 0;
  line-height: 0.85;
}

.site-footer {
  display: none;
}

.lightbox {
  align-items: center;
  background: rgba(7, 7, 6, 0.92);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 90;
}

.lightbox[data-open="true"] {
  display: flex;
}

.lightbox figure {
  margin: 0;
  max-width: min(1100px, 92vw);
}

.lightbox img {
  max-height: 86vh;
  object-fit: contain;
}

.lightbox figcaption {
  color: var(--paper);
  font-size: 0.88rem;
  font-weight: 700;
  padding-top: 10px;
  text-align: center;
}

.lightbox button {
  align-items: center;
  background: rgba(255, 250, 240, 0.12);
  border: 1px solid rgba(255, 250, 240, 0.26);
  border-radius: 50%;
  color: var(--paper);
  display: flex;
  height: 46px;
  justify-content: center;
  position: absolute;
  width: 46px;
}

.lightbox button svg {
  height: 24px;
  width: 24px;
}

.lightbox-close {
  right: 22px;
  top: 22px;
}

.lightbox-prev {
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
}

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

.reveal[data-visible="true"] {
  opacity: 1;
  transform: translateY(0);
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 980px) {
  .site-header {
    border-radius: 24px;
  }

  .nav-inner {
    grid-template-columns: 1fr auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-meta {
    display: none;
  }

  .nav-links {
    display: none;
    grid-column: 1 / -1;
    justify-content: start;
    padding: 2px 0 8px;
  }

  .nav-links[data-open="true"] {
    display: flex;
    flex-wrap: wrap;
  }

  .hero-grid,
  .split,
  .portfolio-intro,
  .year-section,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .display {
    font-size: 5.4rem;
  }

  .display-mid {
    font-size: 3.8rem;
  }

  .hero-media {
    min-height: 390px;
  }

  .hero-photo img {
    min-height: 390px;
  }

  .feature-grid,
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-link {
    font-size: 4.4rem;
  }

  .contact-logo {
    font-size: 5.8rem;
  }

  .contact-meta {
    border-left: 0;
    border-top: 1px solid var(--white-line);
    padding-left: 0;
    padding-top: 20px;
  }
}

@media (max-width: 620px) {
  .site-header {
    top: 10px;
    width: calc(100vw - 20px);
  }

  .nav-inner {
    min-height: 54px;
    padding: 7px 8px 7px 12px;
  }

  .brand span {
    font-size: 0.8rem;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .glass-dock {
    display: none;
  }

  .section {
    padding: 48px 18px;
  }

  .home-hero,
  .work-hero {
    min-height: calc(100svh - 56px);
    padding-bottom: 18px;
    padding-top: 90px;
  }

  .display {
    font-size: 3.6rem;
  }

  .display-mid {
    font-size: 2.65rem;
  }

  .hero-media,
  .hero-photo img {
    min-height: 300px;
  }

  .contact-link {
    font-size: 2.6rem;
  }

  .contact-logo {
    font-size: 3.8rem;
  }

  .year-section h2 {
    font-size: 2rem;
  }

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

  .feature-grid,
  .gallery,
  .work-grid,
  .about-mosaic {
    grid-template-columns: 1fr;
  }

  .ticker-track {
    animation-duration: 18s;
  }

  .lightbox {
    padding: 18px;
  }

  .lightbox-prev,
  .lightbox-next {
    bottom: 18px;
    top: auto;
    transform: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
