:root {
  color-scheme: light;
  --ink: #0b0b0b;
  --muted: #6f6f6f;
  --paper: #f4f4f2;
  --paper-strong: #ffffff;
  --wash: #e7e7e4;
  --line: #d0d0cc;
  --line-strong: #aaaaa6;
  --coal: #050505;
  --moss: #4d4d4d;
  --brick: #2f2f2f;
  --rose: #5b5b5b;
  --blue: #3d3d3d;
  --gold: #8a8a86;
  --radius: 8px;
  --max: 1240px;
  --shadow: 0 18px 54px rgba(17, 17, 15, 0.09);
  --shadow-deep: 0 24px 80px rgba(0, 0, 0, 0.14);
  font-family:
    Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

.load-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(22px, 5vw, 54px);
  transition:
    opacity 520ms cubic-bezier(0.76, 0, 0.24, 1),
    visibility 520ms cubic-bezier(0.76, 0, 0.24, 1);
}

.load-screen.is-done {
  opacity: 0;
  visibility: hidden;
}

.load-count {
  font-size: clamp(6rem, 22vw, 18rem);
  color: rgba(0, 0, 0, 0.12);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.72;
}

.load-copy {
  display: grid;
  gap: 4px;
  justify-items: end;
  font-size: 0.78rem;
  font-weight: 560;
  text-align: right;
  text-transform: uppercase;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
}

.cursor-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  width: min(28vw, 360px);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.24);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-deep);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0) rotate(-3deg) scale(0.9);
  transition:
    opacity 160ms ease,
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cursor-preview.is-visible {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) rotate(-3deg) scale(1);
}

.cursor-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px clamp(16px, 4vw, 42px);
  border-bottom: 1px solid transparent;
  color: var(--ink);
  mix-blend-mode: normal;
  transition:
    background 180ms ease,
    border-color 180ms ease;
}

.site-header.is-solid {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(244, 244, 242, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  gap: 2px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.brand span:last-child {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 420;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 28px);
  font-size: 0.78rem;
  font-weight: 560;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  width: min(100% - 28px, 1920px);
  margin: 0 auto;
  padding: clamp(96px, 10vh, 132px) clamp(18px, 5vw, 92px) clamp(44px, 7vh, 78px);
  place-items: center;
  isolation: isolate;
}

.hero::before {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 4;
  display: grid;
  width: min(760px, 92vw);
  justify-items: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 13px;
  color: inherit;
  font-size: 0.76rem;
  font-weight: 560;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: none;
  font-family: inherit;
  font-size: clamp(3rem, 6vw, 6.4rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.95;
  white-space: nowrap;
}

.hero p:not(.eyebrow) {
  max-width: 520px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.45;
}

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

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  padding: 11px 18px;
  font-size: 0.82rem;
  font-weight: 560;
  text-transform: uppercase;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: rgba(255, 255, 255, 0.54);
  color: var(--ink);
}

.button.ghost {
  background: transparent;
  color: var(--ink);
}

.hero-preview {
  position: absolute;
  inset: clamp(92px, 11vh, 130px) clamp(22px, 4vw, 80px) clamp(32px, 5vh, 66px);
  z-index: 2;
  pointer-events: none;
  transform: translateY(var(--hero-shift, 0));
}

.hero-tile {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: var(--shadow);
  cursor: pointer;
  pointer-events: auto;
  padding: 0;
  text-align: left;
  transform: translate3d(var(--float-x, 0), var(--float-y, 0), 0) rotate(var(--rotate, 0deg));
  transition:
    box-shadow 260ms ease,
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-tile::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 46%);
  content: "";
  opacity: 0;
  transition: opacity 220ms ease;
}

.hero-tile img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-tile:hover img,
.hero-tile:focus-visible img {
  transform: scale(1.16);
}

.hero-tile:hover,
.hero-tile:focus-visible {
  box-shadow: var(--shadow-deep);
  transform: translate3d(var(--float-x, 0), calc(var(--float-y, 0) - 8px), 0)
    rotate(var(--rotate, 0deg));
}

.hero-tile:hover::after,
.hero-tile:focus-visible::after {
  opacity: 1;
}

.hero-tile span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  border-radius: var(--radius);
  background: rgba(244, 244, 242, 0.82);
  color: var(--ink);
  padding: 7px 9px;
  font-size: 0.64rem;
  font-weight: 560;
  opacity: 0;
  text-transform: uppercase;
  transform: translateY(6px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.hero-tile:hover span,
.hero-tile:focus-visible span {
  opacity: 1;
  transform: translateY(0);
}

.hero-tile-nycb {
  --rotate: -1.2deg;
  top: 8%;
  left: 8%;
  width: min(14vw, 260px);
  aspect-ratio: 0.86;
}

.hero-tile-nycb img {
  object-position: 54% 48%;
}

.hero-tile-spotify {
  --rotate: 1deg;
  top: 12%;
  right: 3.5%;
  width: min(17vw, 320px);
  aspect-ratio: 16 / 8.3;
}

.hero-tile-spotify img {
  object-position: 78% 50%;
}

.hero-tile-sins {
  --rotate: 0.6deg;
  right: 2.5%;
  bottom: 21%;
  width: min(20vw, 370px);
  aspect-ratio: 16 / 9;
}

.hero-tile-sins img {
  object-position: 78% 48%;
}

.hero-tile-dandelion {
  --rotate: 0.8deg;
  left: 5.5%;
  bottom: 12%;
  width: min(20vw, 360px);
  aspect-ratio: 16 / 9;
}

.hero-tile-dandelion img {
  object-position: 72% 48%;
}

.hero-tile-light {
  --rotate: -0.7deg;
  left: 47%;
  bottom: 0;
  width: min(19vw, 350px);
  aspect-ratio: 16 / 9;
}

.hero-tile-light img {
  object-position: 68% 50%;
}

.hero-tile-type {
  display: none;
}

.hero-tile-type img {
  object-position: 50% 45%;
}

.hero-rail {
  position: absolute;
  z-index: 5;
  bottom: clamp(24px, 5vh, 58px);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 420;
  text-transform: uppercase;
  pointer-events: none;
  writing-mode: vertical-rl;
}

.hero-rail-left {
  left: clamp(12px, 2vw, 28px);
  transform: rotate(180deg);
}

.marquee-band {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: clamp(20px, 4vw, 52px);
  padding: 13px 0;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  font-size: clamp(1rem, 2.6vw, 2.1rem);
  font-weight: 360;
  text-transform: uppercase;
  white-space: nowrap;
}

.index-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.58fr) minmax(0, 1fr);
  gap: 1px;
  width: min(var(--max), calc(100% - 36px));
  margin: clamp(58px, 8vw, 100px) auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--line);
}

.index-note,
.work-index {
  background: rgba(255, 255, 255, 0.72);
}

.index-note {
  padding: clamp(24px, 4vw, 42px);
}

.index-note .eyebrow {
  color: var(--rose);
}

.index-note h2 {
  margin: 0;
  max-width: 470px;
  font-family: inherit;
  font-size: clamp(2rem, 3.7vw, 3.3rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
}

.index-note p:not(.eyebrow) {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.work-index {
  display: grid;
}

.index-note,
.work-index button,
.project-card,
.resume-hero,
.resume-panel {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.index-note.is-revealed,
.work-index button.is-revealed,
.project-card.is-revealed,
.resume-hero.is-revealed,
.resume-panel.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.work-index button {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(180px, 1fr) minmax(180px, 0.8fr);
  gap: 18px;
  align-items: center;
  min-height: 76px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 14px clamp(16px, 3vw, 30px);
  text-align: left;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.work-index button::after {
  position: absolute;
  right: clamp(14px, 2vw, 24px);
  color: currentColor;
  content: "Open";
  font-size: 0.7rem;
  font-weight: 520;
  opacity: 0;
  text-transform: uppercase;
  transform: translateX(-8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.work-index button:last-child {
  border-bottom: 0;
}

.work-index button:hover,
.work-index button:focus-visible {
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  transform: translateX(4px);
}

.work-index button:hover::after,
.work-index button:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

.work-index span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 520;
}

.work-index button:hover span,
.work-index button:focus-visible span,
.work-index button:hover em,
.work-index button:focus-visible em {
  color: var(--muted);
}

.work-index strong {
  font-family: inherit;
  font-size: clamp(1.18rem, 2.45vw, 2.2rem);
  font-weight: 500;
  line-height: 1.05;
}

.work-index em {
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 400;
}

.section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 118px) 0;
}

.work-section {
  padding-top: clamp(92px, 11vw, 150px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(160px, 0.24fr) minmax(0, 0.76fr);
  gap: clamp(18px, 4vw, 54px);
  align-items: start;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 0;
  font-family: inherit;
  font-size: clamp(2.4rem, 4.6vw, 4.7rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
}

.section-heading .eyebrow {
  color: var(--brick);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  cursor: pointer;
  padding: 8px 13px;
  font-size: 0.76rem;
  font-weight: 520;
  text-transform: uppercase;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.project-card {
  display: grid;
  grid-column: span 4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.project-card:nth-child(2) {
  margin-top: 42px;
}

.project-card:nth-child(3),
.project-card:nth-child(6) {
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
}

.project-card:nth-child(3) .project-copy p:last-child,
.project-card:nth-child(6) .project-copy p:last-child {
  color: var(--muted);
}

.project-card:nth-child(5) {
  margin-top: -26px;
}

.project-card.is-hidden {
  display: none;
}

.project-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-deep);
  transform: translateY(-7px) rotate(-0.35deg);
}

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

.project-cover {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 0;
  background: #e8e8e6;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.project-cover img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-cover:hover img,
.project-cover:focus-visible img {
  transform: scale(1.14);
}

.project-card:nth-child(1) .project-cover img {
  object-position: 72% 48%;
}

.project-card:nth-child(2) .project-cover img {
  object-position: 66% 52%;
}

.project-card:nth-child(3) .project-cover img {
  object-position: 77% 50%;
}

.project-card:nth-child(4) .project-cover img {
  object-position: 48% 42%;
}

.project-card:nth-child(5) .project-cover img {
  object-position: 62% 46%;
}

.project-card:nth-child(6) .project-cover img {
  object-position: 78% 48%;
}

.project-card:nth-child(7) .project-cover img {
  object-position: 50% 43%;
}

.open-indicator {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 7px 11px;
  font-size: 0.72rem;
  font-weight: 560;
  text-transform: uppercase;
}

.project-copy {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.project-meta {
  margin: 0;
  color: var(--moss);
  font-size: 0.72rem;
  font-weight: 520;
  text-transform: uppercase;
}

.project-card:nth-child(3) .project-meta,
.project-card:nth-child(6) .project-meta {
  color: var(--moss);
}

.project-copy h3 {
  margin: 0;
  font-family: inherit;
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
  font-weight: 520;
  line-height: 1.08;
}

.project-copy p:last-child {
  margin: 0;
  color: var(--muted);
}

.resume-hero {
  display: grid;
  width: min(var(--max), calc(100% - 36px));
  min-height: 72svh;
  margin: 0 auto;
  padding: clamp(116px, 17vh, 190px) 0 clamp(58px, 9vw, 100px);
  align-content: end;
  border-bottom: 1px solid var(--line);
}

.resume-hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: inherit;
  font-size: clamp(4.2rem, 11vw, 10rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.92;
}

.resume-hero > p:not(.eyebrow) {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.1vw, 1.55rem);
  line-height: 1.35;
}

.resume-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 480;
  text-transform: uppercase;
}

.resume-contact a,
.resume-contact span {
  border-bottom: 1px solid transparent;
}

.resume-contact a:hover,
.resume-contact a:focus-visible {
  border-color: currentColor;
  color: var(--ink);
}

.resume-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.32fr) minmax(0, 0.68fr);
  gap: 18px;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 48px) 0 clamp(72px, 11vw, 140px);
}

.resume-panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
}

.resume-sidebar {
  position: sticky;
  top: 76px;
  align-self: start;
  display: grid;
}

.resume-sidebar > div {
  display: grid;
  gap: 10px;
  padding: clamp(18px, 2.6vw, 28px);
  border-bottom: 1px solid var(--line);
}

.resume-sidebar > div:last-child {
  border-bottom: 0;
}

.resume-sidebar h2,
.resume-section-title h2,
.resume-entry h3 {
  margin: 0;
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 0;
}

.resume-sidebar h2 {
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  line-height: 0.98;
}

.resume-sidebar p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  padding: 6px 9px;
  color: var(--muted);
  font-size: 0.78rem;
}

.resume-main {
  display: grid;
  gap: 18px;
}

.resume-section-title {
  display: grid;
  grid-template-columns: minmax(120px, 0.22fr) minmax(0, 0.78fr);
  gap: 24px;
  padding: clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
}

.resume-section-title h2 {
  max-width: 640px;
  font-size: clamp(2.2rem, 4.3vw, 4.35rem);
  line-height: 0.94;
}

.resume-row {
  display: grid;
  grid-template-columns: minmax(124px, 0.24fr) minmax(0, 0.76fr);
  gap: 24px;
  padding: clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
}

.resume-row:last-child {
  border-bottom: 0;
}

.resume-time {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 520;
  text-transform: uppercase;
}

.resume-entry {
  display: grid;
  gap: 10px;
}

.resume-entry h3 {
  font-size: clamp(1.45rem, 2.5vw, 2.25rem);
  line-height: 1;
}

.resume-role {
  margin: 0;
  color: var(--moss);
  font-size: 0.82rem;
  font-weight: 520;
  text-transform: uppercase;
}

.resume-entry ul {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.resume-entry li {
  position: relative;
  padding-left: 16px;
}

.resume-entry li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
  content: "";
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  background: rgba(5, 5, 5, 0.84);
  padding: 18px;
}

.lightbox.is-open {
  display: grid;
}

.lightbox-shell {
  display: grid;
  width: min(1180px, 100%);
  max-height: calc(100vh - 36px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: #111;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
}

.lightbox-topbar,
.lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  color: #fff;
}

.lightbox-topbar h2 {
  margin: 1px 0 0;
  font-size: clamp(1.1rem, 3vw, 1.75rem);
  line-height: 1;
}

.lightbox-kicker,
.lightbox-footer p,
.lightbox-footer span {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 700;
}

.lightbox-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 48vh;
  background: #050505;
}

.lightbox-stage img {
  width: 100%;
  max-height: min(72vh, 760px);
  object-fit: contain;
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.icon-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.icon-button:hover,
.icon-button:focus-visible {
  background: #fff;
  color: var(--ink);
}

.stage-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
}

.stage-control.prev {
  left: 14px;
}

.stage-control.next {
  right: 14px;
}

body.lightbox-open {
  overflow: hidden;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

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

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

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding-top: 104px;
  }

  .hero-preview {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: min(820px, 100%);
    margin-top: 36px;
    pointer-events: auto;
    transform: none !important;
  }

  .hero-rail,
  .cursor-preview {
    display: none;
  }

  .hero-tile,
  .hero-tile-nycb,
  .hero-tile-spotify,
  .hero-tile-sins,
  .hero-tile-dandelion,
  .hero-tile-light,
  .hero-tile-type {
    position: relative;
    inset: auto;
    width: auto;
    aspect-ratio: 16 / 10;
    transform: none;
  }

  .hero-tile-type {
    display: none;
  }

  .index-panel {
    grid-template-columns: 1fr;
  }

  .project-card,
  .feature-card {
    grid-column: span 6;
  }

  .resume-shell {
    grid-template-columns: 1fr;
  }

  .resume-sidebar {
    position: relative;
    top: auto;
  }
}

@media (max-width: 700px) {
  .site-header {
    padding: 14px 16px;
  }

  .nav-links {
    gap: 12px;
    font-size: 0.7rem;
  }

  .brand span:first-child {
    font-size: 0.84rem;
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    width: min(100% - 28px, var(--max));
    padding: 94px 0 42px;
  }

  .hero::before {
    display: none;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.45rem, 12vw, 4.2rem);
  }

  .hero-preview {
    gap: 10px;
  }

  .hero-tile img {
    height: 100%;
    min-height: 0;
  }

  .index-panel,
  .section {
    width: min(100% - 28px, var(--max));
  }

  .work-index button {
    grid-template-columns: 38px 1fr;
    gap: 10px 14px;
    transform: none;
  }

  .work-index em {
    grid-column: 2;
  }

  .section {
    padding: 60px 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .resume-hero {
    width: min(100% - 28px, var(--max));
    min-height: auto;
    padding: 112px 0 50px;
  }

  .resume-hero h1 {
    font-size: clamp(3.8rem, 20vw, 6.4rem);
  }

  .resume-shell {
    width: min(100% - 28px, var(--max));
    padding-bottom: 72px;
  }

  .resume-section-title,
  .resume-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px;
  }

  .resume-contact {
    display: grid;
    gap: 7px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .feature-card {
    grid-column: auto;
    margin-top: 0;
  }

  .project-card:nth-child(2),
  .project-card:nth-child(5) {
    margin-top: 0;
  }
  .lightbox {
    padding: 8px;
  }

  .lightbox-shell {
    max-height: calc(100vh - 16px);
  }

  .lightbox-topbar,
  .lightbox-footer {
    padding: 12px;
  }

  .stage-control {
    width: 38px;
    height: 38px;
  }
}

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

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

  .cursor-preview {
    display: none;
  }
}
