/* ==========================================================================
   SETTINGS
   Global tokens, colors, spacing, font choices
   ========================================================================== */

:root {
  --bg: #050505;
  --text: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.52);
  --line: rgba(244, 241, 234, 0.16);

  --inverse-bg: #f4f1ea;
  --inverse-text: #090909;
  --inverse-muted: rgba(9, 9, 9, 0.52);
  --inverse-line: rgba(9, 9, 9, 0.18);

  --font: "Inter", Arial, sans-serif;

  --pad: clamp(1rem, 1.15vw, 1.45rem);
  --header-height: 3.5rem;

  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);

  --mouse-x: 50%;
  --mouse-y: 50%;
  --shift-x: 0px;
  --shift-y: 0px;
}

/* ==========================================================================
   TOOLS
   Reusable motion/accessibility helpers
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   GENERIC
   Reset / normalize-ish global rules
   ========================================================================== */

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.2;
  transition:
    background-color 320ms ease,
    color 320ms ease;
}

body.info-open,
body.project-open {
  overflow: hidden;
}

body.video-active .intro h1 {
  opacity: 0.42;
}

body.video-active .intro__statement,
body.video-active .intro__note,
body.video-active .intro__topline {
  opacity: 0.55;
}

.intro h1,
.intro__statement,
.intro__note,
.intro__topline {
  transition:
    opacity 320ms ease,
    transform 320ms ease,
    color 320ms ease;
}

body.video-active {
  background: var(--bg);
}

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

button {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

img,
video {
  max-width: 100%;
}

::selection {
  background: var(--text);
  color: var(--bg);
}

/* ==========================================================================
   ELEMENTS
   Base typography
   ========================================================================== */

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

p,
a,
button,
span,
em,
h2 {
  font-size: 0.82rem;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   OBJECTS
   Structural wrappers / page layers
   ========================================================================== */

.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 1rem;
  padding: var(--pad);
  color: var(--text);
  pointer-events: none;
  transition: color 320ms ease;
}

.site-header > * {
  pointer-events: auto;
}

/* ==========================================================================
   COMPONENTS
   Loading archive screen
   ========================================================================== */

:root {
  --load-progress: 0;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--pad);
  background: var(--bg);
  color: var(--text);
  transition:
    opacity 720ms var(--ease-out),
    transform 720ms var(--ease-out),
    visibility 720ms var(--ease-out);
}

.loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.loading-active .loader {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.loader.is-exiting {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.018);
  pointer-events: none;
}

.loader__top,
.loader__bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.loader__top p:last-child,
.loader__bottom button {
  justify-self: end;
}

.loader__top p,
.loader__bottom p,
.loader__bottom button,
.loader__eyebrow,
.loader__status span {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.loader__main {
  display: grid;
  align-content: center;
}

.loader__eyebrow {
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  color: var(--muted);
}

.loader h1 {
  max-width: 9ch;
  margin: 0;
  font-size: clamp(5rem, 14vw, 16rem);
  line-height: 0.8;
  letter-spacing: -0.085em;
  font-weight: 800;
  text-transform: uppercase;
}

.loader__status {
  width: min(100%, 34rem);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--muted);
}

.loader__bar {
  width: min(100%, 34rem);
  height: 1px;
  margin-top: 0.75rem;
  overflow: hidden;
  background: var(--line);
}

.loader__bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--text);
  transform: scaleX(var(--load-progress));
  transform-origin: left;
  transition: transform 120ms linear;
}

.loader__bottom button {
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.2rem;
  text-transform: lowercase;
}

body.loading-active {
  overflow: hidden;
}

body.loading-active .site-header,
body.loading-active .page,
body.loading-active .active-project,
body.loading-active .cursor-label {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 760px) {
  .loader__top,
  .loader__bottom {
    grid-template-columns: 1fr;
  }

  .loader__top p:last-child,
  .loader__bottom button {
    justify-self: start;
  }

  .loader h1 {
    font-size: clamp(4rem, 18vw, 7.5rem);
  }

  .loader__status {
    width: 100%;
  }
}

/* ==========================================================================
   COMPONENTS
   Header / nav
   ========================================================================== */

.brand,
.nav,
.clock {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 0.35rem;
  justify-self: center;
}

.nav a::after {
  content: " /";
}

.nav button {
  margin-left: 0.25rem;
}

.clock {
  justify-self: end;
}

/* ==========================================================================
   COMPONENTS
   Reactive background + cursor label
   ========================================================================== */

.reactive-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at var(--mouse-x) var(--mouse-y),
      rgba(244, 241, 234, 0.075),
      transparent 20rem
    );
  opacity: 0.85;
  transition: opacity 320ms ease;
}

body.video-active .reactive-glow {
  opacity: 0;
}

.cursor-label {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 80;
  pointer-events: none;
  padding: 0.35rem 0.5rem;
  background: var(--inverse-bg);
  color: var(--inverse-text);
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translate(-50%, -140%);
  transition: opacity 140ms ease;
}

.active-project {
  position: fixed;
  left: var(--pad);
  bottom: var(--pad);
  z-index: 70;
  display: grid;
  gap: 0.15rem;
  color: var(--text);
  opacity: 0;
  transform: translateY(0.6rem);
  pointer-events: none;
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    color 320ms ease;
}

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

.active-project span,
.active-project em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.active-project strong {
  font-size: clamp(1.8rem, 4vw, 4.8rem);
  line-height: 0.85;
  letter-spacing: -0.08em;
  font-weight: 800;
}

body.project-open .active-project {
  opacity: 0;
}

@media (max-width: 760px) {
  .active-project {
    display: none;
  }
}

.cursor-label.is-visible {
  opacity: 1;
}

body.project-open .cursor-label {
  display: none;
}

/* ==========================================================================
   COMPONENTS
   Hover video background
   ========================================================================== */

.video-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  background: var(--bg);
  transition: opacity 420ms ease;
}

body.video-active .video-bg {
  opacity: 1;
}

.video-bg__player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: cover;
  transform: scale(1.04);
  filter: grayscale(1) contrast(1.15) brightness(0.72);
  transition:
    opacity 520ms ease,
    transform 1400ms ease;
}

.video-bg__player.is-active {
  opacity: 1;
  transform: scale(1);
}

.video-bg__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(5, 5, 5, 0.18), rgba(5, 5, 5, 0.8)),
    radial-gradient(circle at 50% 45%, transparent, rgba(5, 5, 5, 0.72));
}

/* ==========================================================================
   COMPONENTS
   Intro
   ========================================================================== */

.intro {
  position: relative;
  min-height: 58svh;
  display: grid;
  align-content: end;
  padding: calc(var(--pad) * 5) var(--pad) clamp(3rem, 5vw, 5rem);
}

.intro__topline {
  position: absolute;
  top: calc(var(--pad) * 5);
  left: var(--pad);
  right: var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.intro__topline p:last-child {
  justify-self: center;
}

.intro h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(5.5rem, 14.8vw, 17rem);
  line-height: 0.82;
  letter-spacing: -0.075em;
  font-weight: 700;
  text-transform: uppercase;
  transform: translate(
    calc(var(--shift-x) * -0.28),
    calc(var(--shift-y) * -0.28)
  );
  transition: transform 160ms ease-out;
}

.intro__statement {
  max-width: 34rem;
  margin-top: 1rem;
  color: var(--text);
  transform: translate(
    calc(var(--shift-x) * 0.18),
    calc(var(--shift-y) * 0.18)
  );
  transition:
    color 320ms ease,
    transform 160ms ease-out;
}

.intro__note {
  max-width: 34rem;
  margin-top: 1rem;
  color: var(--muted);
  transition: color 320ms ease;
}

/* ==========================================================================
   COMPONENTS
   Selected works grid
   ========================================================================== */

.index {
  min-height: 100vh;
  padding: 0 var(--pad) var(--pad);
}

.index__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  margin-bottom: clamp(3rem, 5vw, 5rem);
}

.index__top h2,
.index__top a {
  font-weight: 700;
}

.index__top a {
  justify-self: end;
}

.works-grid {
  padding-top: 10vh;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(0.85rem, 1.1vw, 1.25rem);
  row-gap: clamp(2.5rem, 4vw, 4.5rem);
}


.work-card {
  --lift-x: 0px;
  --lift-y: 0px;

  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  color: var(--text);
  transform: translate(var(--lift-x), var(--lift-y));
  transition:
    transform 220ms ease,
    opacity 220ms ease,
    color 320ms ease;
}

.work-card:hover,
.work-card:focus-visible {
  transform:
    translate(var(--lift-x), var(--lift-y))
    translateY(-0.25rem);
}

.works-grid:has(.work-card:hover) .work-card:not(:hover) {
  opacity: 0.38;
}

.work-card__meta {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0.75rem;
  min-height: 3.25rem;
  align-items: start;
  margin-bottom: 0.75rem;
}

.work-card__meta span,
.work-card__meta em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  letter-spacing: -0.02em;
  transition: color 320ms ease;
}

.work-card__meta strong {
  display: block;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  transition: color 320ms ease;
}

.work-card__thumb {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #111;
  aspect-ratio: 2 / 3;
  border-top: 3px solid rgba(244, 241, 234, 0.8);
}

.work-card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at var(--card-x, 50%) var(--card-y, 50%),
      rgba(255, 255, 255, 0.16),
      transparent 42%
    );
  opacity: 0;
  mix-blend-mode: overlay;
  transition: opacity 200ms ease;
}

.work-card:hover .work-card__thumb::after {
  opacity: 1;
}

.work-card__thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  background: #111;
  filter: grayscale(0.15) contrast(1.02);
  transition:
    transform 320ms ease,
    opacity 320ms ease,
    filter 320ms ease;
}

.work-card:hover .work-card__thumb img,
.work-card:focus-visible .work-card__thumb img {
  transform: scale(1.025);
  filter: grayscale(0) contrast(1.05);
}

body.video-active .work-card__thumb {
  background: rgba(244, 241, 234, 0.08);
}

body.video-active .work-card__thumb img {
  opacity: 0.24;
  filter: grayscale(1) contrast(1.05);
}

body.video-active .work-card:hover .work-card__thumb img {
  opacity: 0.72;
  filter: grayscale(0.12) contrast(1.05);
}


/* ==========================================================================
   COMPONENTS
   Project fullscreen view
   ========================================================================== */

.page,
.site-header {
  transition:
    opacity 380ms ease,
    filter 380ms ease,
    transform 380ms ease;
}

body.project-open .page,
body.project-open .site-header {
  opacity: 0;
  pointer-events: none;
  filter: blur(10px);
  transform: scale(0.985);
}

.project-view {
  position: fixed;
  inset: 0;
  z-index: 95;
  overflow: hidden;
  background: #050505;
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
}

.project-view.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.project-view__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #050505;
}

.project-view__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(5, 5, 5, 0.12), rgba(5, 5, 5, 0.42)),
    radial-gradient(circle at 75% 75%, transparent, rgba(5, 5, 5, 0.58));
  pointer-events: none;
}

.project-view__media video,
.project-view__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  filter: grayscale(0.25) contrast(1.08) brightness(0.82);
  transform: scale(1.04);
  transition:
    opacity 420ms ease,
    transform 1600ms var(--ease-out),
    filter 420ms ease;
}

.project-view.is-ready .project-view__media video,
.project-view.is-ready .project-view__media img {
  transform: scale(1);
}

.project-view__media video.is-active,
.project-view__media img.is-active {
  opacity: 1;
}

.project-view__panel {
  position: absolute;
  right: var(--pad);
  bottom: var(--pad);
  z-index: 2;
  width: min(100% - calc(var(--pad) * 2), 30rem);
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  background: rgba(5, 5, 5, 0.62);
  color: var(--text);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(244, 241, 234, 0.16);
  opacity: 0;
  transform: translateY(1rem);
  transition:
    opacity 320ms ease 180ms,
    transform 320ms ease 180ms;
}

.project-view.is-ready .project-view__panel {
  opacity: 1;
  transform: translateY(0);
}

.project-view__kicker,
.project-view__role,
.project-view__description,
.project-view__meta {
  font-size: 0.82rem;
  letter-spacing: -0.02em;
}

.project-view__kicker,
.project-view__role,
.project-view__meta {
  color: rgba(244, 241, 234, 0.55);
}

.project-view__panel h2 {
  max-width: 100%;
  font-size: clamp(2.6rem, 3.2vw, 3.65rem);
  line-height: 0.88;
  letter-spacing: -0.08em;
  font-weight: 800;
  overflow-wrap: normal;
}

.project-view__description {
  max-width: 24rem;
  color: rgba(244, 241, 234, 0.76);
  line-height: 1.35;
}

.project-view__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 0.4rem;
}

.project-view__meta span::after {
  content: " /";
}

.project-view__meta span:last-child::after {
  content: "";
}

.project-view__close {
  position: fixed;
  top: var(--pad);
  right: var(--pad);
  z-index: 4;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(-0.5rem);
  transition:
    opacity 260ms ease 220ms,
    transform 260ms ease 220ms;
}

.project-view.is-ready .project-view__close {
  opacity: 1;
  transform: translateY(0);
}

body.project-open .cursor-label {
  display: none;
}

@media (max-width: 760px) {
  .project-view__panel {
    right: 1rem;
    bottom: 1rem;
    width: calc(100% - 2rem);
  }

  .project-view__panel h2 {
    font-size: clamp(2.5rem, 12vw, 4rem);
    max-width: 100%;
  }

  .project-view__close {
    top: 1rem;
    right: 1rem;
  }
}

/* ==========================================================================
   COMPONENTS
   Info panel
   ========================================================================== */

.info {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: var(--pad);
  background: var(--bg);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.info.is-open {
  opacity: 1;
  pointer-events: auto;
}

.info__close {
  position: absolute;
  top: var(--pad);
  left: var(--pad);
  color: var(--text);
  font-weight: 700;
}

.info__inner {
  grid-column: 2;
  display: grid;
  align-content: start;
  gap: clamp(2rem, 5vw, 5rem);
  padding-top: calc(var(--pad) * 4);
}

.info__bio {
  max-width: 38rem;
  font-size: clamp(1.8rem, 4vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.075em;
  font-weight: 700;
}

.info__group {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

.info__group h2 {
  color: var(--muted);
  font-weight: 400;
}

/* ==========================================================================
   UTILITIES
   Small helper states
   ========================================================================== */

.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   RESPONSIVE
   Tablet / mobile
   ========================================================================== */

@media (max-width: 1100px) {
  .works-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 5rem;
  }

  .site-header {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .brand,
  .nav,
  .clock {
    justify-self: start;
    font-size: 0.78rem;
  }

  .clock {
    display: none;
  }

  .intro {
    min-height: 72svh;
    padding-top: calc(var(--pad) * 7);
    padding-bottom: 3rem;
  }

  .intro__topline {
    position: static;
    grid-template-columns: 1fr;
    gap: 0.35rem;
    margin-bottom: 24vh;
  }

  .intro__topline p:last-child {
    justify-self: start;
  }

  .intro h1 {
    font-size: clamp(4.2rem, 19vw, 7rem);
    line-height: 0.84;
    letter-spacing: -0.07em;
    transform: none;
  }

  .intro__statement,
  .intro__note {
    max-width: 22rem;
    transform: none;
  }

  .index {
    padding-top: 0;
  }

  .index__top {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
  }

  .index__top a {
    justify-self: start;
  }

  .works-grid {
    grid-template-columns: 1fr;
    row-gap: 3rem;
  }

  .works-grid:has(.work-card:hover) .work-card:not(:hover) {
    opacity: 1;
  }

  .work-card__meta {
    grid-template-columns: 2.75rem 1fr;
  }

  .video-bg,
  .reactive-glow,
  .cursor-label,
  .active-project {
    display: none;
  }

  body.video-active {
    --text: #f4f1ea;
    --muted: rgba(244, 241, 234, 0.52);
    --line: rgba(244, 241, 234, 0.16);

    background: #050505;
  }

  body.video-active .work-card__thumb img {
    opacity: 1;
  }

  .project-view__panel {
    right: 1rem;
    bottom: 1rem;
    width: calc(100% - 2rem);
  }

  .project-view__panel h2 {
    font-size: clamp(2.8rem, 15vw, 4.8rem);
  }

  .project-view__close {
    top: 1rem;
    right: 1rem;
  }

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

  .info__inner {
    grid-column: 1;
  }

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

/* ========================================================================== 
   COMPONENTS
   Development page
   ========================================================================== */

.nav a[aria-current="page"] {
  color: var(--muted);
}

.nav a:last-child::after {
  content: "";
}

.info__group--link a,
.info__page-link {
  width: fit-content;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.2rem;
}

.dev-page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: calc(var(--pad) * 3.6) var(--pad) var(--pad);
}

.dev-hero {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.52fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 5.5rem);
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
}

.dev-eyebrow,
.dev-hero__note,
.dev-headshot figcaption,
.dev-card > p:first-child {
  color: var(--muted);
}

.dev-eyebrow {
  margin-bottom: clamp(0.85rem, 1.4vw, 1.2rem);
  font-weight: 700;
}

.dev-hero h1 {
  max-width: 8ch;
  font-size: clamp(4.2rem, 10.5vw, 11.5rem);
  line-height: 0.8;
  letter-spacing: -0.085em;
  font-weight: 800;
  text-transform: uppercase;
}

.dev-hero__statement {
  max-width: 38rem;
  margin-top: 1.2rem;
  font-size: clamp(1.35rem, 2.55vw, 3rem);
  line-height: 1;
  letter-spacing: -0.065em;
  font-weight: 700;
}

.dev-hero__note {
  max-width: 30rem;
  margin-top: 1rem;
  line-height: 1.45;
}

.dev-headshot {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.dev-headshot__frame {
  position: relative;
  overflow: hidden;
  background: #111;
  border-top: 3px solid rgba(244, 241, 234, 0.8);
  aspect-ratio: 4 / 5;
}

.dev-headshot__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent, rgba(5, 5, 5, 0.18)),
    radial-gradient(circle at 50% 35%, transparent, rgba(5, 5, 5, 0.35));
  pointer-events: none;
}

.dev-headshot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: grayscale(0.18) contrast(1.05);
}

.dev-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: clamp(3rem, 6vw, 6rem);
}

.dev-card {
  display: grid;
  gap: 1rem;
  min-height: 18rem;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

.dev-card h2 {
  max-width: 8ch;
  font-size: clamp(2.5rem, 4vw, 5rem);
  line-height: 0.86;
  letter-spacing: -0.08em;
  font-weight: 800;
}

.dev-card p:last-child {
  max-width: 22rem;
  align-self: end;
  color: rgba(244, 241, 234, 0.76);
  line-height: 1.45;
}

.dev-card a {
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.08rem;
}

@media (max-width: 900px) {
  .dev-hero,
  .dev-content {
    grid-template-columns: 1fr;
  }

  .dev-hero {
    gap: 2.5rem;
    padding-top: 4rem;
  }

  .dev-headshot {
    max-width: 28rem;
  }
}

@media (max-width: 760px) {
  .dev-page {
    padding-top: calc(var(--pad) * 5.5);
  }

  .dev-hero {
    gap: 2.5rem;
    padding-top: 1.25rem;
  }

  .dev-hero h1 {
    max-width: 8ch;
    font-size: clamp(3.65rem, 16vw, 6.2rem);
  }

  .dev-hero__statement {
    font-size: clamp(1.45rem, 7vw, 2.45rem);
  }

  .dev-content {
    gap: 2.5rem;
    padding-top: 3.5rem;
  }

  .dev-card {
    min-height: auto;
  }
}

/* ==========================================================================
   COMPONENTS
   Development image rail / clickable scrolling images
   ========================================================================== */

.dev-image-rail {
  position: relative;
  overflow: hidden;
  padding-top: clamp(2rem, 4vw, 4rem);
  padding-bottom: clamp(2rem, 5vw, 5rem);
}

.dev-image-rail__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0.85rem;
  color: var(--muted);
}

.dev-image-rail__top p:last-child {
  justify-self: end;
}

.dev-image-rail__viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.dev-image-rail__viewport::before,
.dev-image-rail__viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: clamp(3rem, 10vw, 10rem);
  pointer-events: none;
}

.dev-image-rail__viewport::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.dev-image-rail__viewport::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.dev-image-rail__track {
  display: flex;
  width: max-content;
  gap: clamp(0.85rem, 1.25vw, 1.35rem);
  animation: devRailScroll 34s linear infinite;
}

.dev-image-rail:hover .dev-image-rail__track {
  animation-play-state: paused;
}

.dev-image-link {
  position: relative;
  flex: 0 0 clamp(12rem, 18vw, 20rem);
  overflow: hidden;
  display: block;
  aspect-ratio: 4 / 5;
  background: #111;
  border-top: 3px solid rgba(244, 241, 234, 0.8);
  color: var(--text);
}

.dev-image-link img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: grayscale(0.35) contrast(1.06) brightness(0.82);
  transform: scale(1.025);
  transition:
    transform 420ms var(--ease-out),
    filter 420ms ease,
    opacity 420ms ease;
}

.dev-image-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 35%, rgba(5, 5, 5, 0.72)),
    radial-gradient(circle at 50% 40%, transparent, rgba(5, 5, 5, 0.28));
  pointer-events: none;
}

.dev-image-link span {
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.75rem;
  z-index: 2;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  opacity: 0.86;
  transform: translateY(0.2rem);
  transition:
    opacity 240ms ease,
    transform 240ms ease;
}

.dev-image-link:hover img,
.dev-image-link:focus-visible img {
  filter: grayscale(0) contrast(1.08) brightness(0.95);
  transform: scale(1.065);
}

.dev-image-link:hover span,
.dev-image-link:focus-visible span {
  opacity: 1;
  transform: translateY(0);
}

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

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

@media (prefers-reduced-motion: reduce) {
  .dev-image-rail__track {
    animation: none;
    overflow-x: auto;
    width: auto;
    padding-bottom: 0.75rem;
  }
}

@media (max-width: 760px) {
  .dev-image-rail {
    padding-top: 2rem;
    padding-bottom: 3.25rem;
  }

  .dev-image-rail__top {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .dev-image-rail__top p:last-child {
    justify-self: start;
  }

  .dev-image-link {
    flex-basis: 78vw;
  }
}

.dev-hero__copy {
  align-self: center;
  transform: translateY(clamp(1.25rem, 3vw, 3.25rem));
}

/* ==========================================================================
   COMPONENTS
   Multi-page nav / archive pages / gallery
   ========================================================================== */

.nav a[aria-current="page"] {
  color: var(--muted);
}

.nav a:last-child::after {
  content: "";
}

body.page-leaving {
  opacity: 0;
  transition: opacity 180ms ease;
}

.intro--home {
  min-height: 100svh;
}

.home-jump {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 6rem);
  max-width: 64rem;
}

.home-jump a {
  display: grid;
  gap: 0.35rem;
  min-height: 9rem;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.home-jump a:hover,
.home-jump a:focus-visible {
  transform: translateY(-0.25rem);
}

.home-jump span,
.home-jump em {
  color: var(--muted);
  font-style: normal;
}

.home-jump strong {
  font-size: clamp(2rem, 4vw, 4.8rem);
  line-height: 0.86;
  letter-spacing: -0.08em;
  font-weight: 800;
}

.archive-hero,
.gallery-page {
  position: relative;
  z-index: 2;
}

.archive-hero {
  min-height: 58svh;
  display: grid;
  align-content: end;
  padding: calc(var(--pad) * 5) var(--pad) clamp(3rem, 5vw, 5rem);
}

.archive-eyebrow {
  margin-bottom: 1rem;
  color: var(--muted);
  font-weight: 700;
}

.archive-hero h1 {
  max-width: 8ch;
  font-size: clamp(5rem, 13vw, 15rem);
  line-height: 0.78;
  letter-spacing: -0.085em;
  font-weight: 800;
  text-transform: uppercase;
}

.archive-hero p:last-child {
  max-width: 38rem;
  margin-top: 1rem;
  color: var(--muted);
  line-height: 1.45;
}

.index--projects {
  padding-top: 0;
}

.gallery-page {
  min-height: 100vh;
}

.gallery-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 1rem;
  padding: 0 var(--pad) var(--pad);
}

.gallery-card {
  position: relative;
  overflow: hidden;
  display: grid;
  margin: 0;
  min-height: 24rem;
  background: #111;
  border-top: 3px solid rgba(244, 241, 234, 0.8);
}

.gallery-card--large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 49rem;
}

.gallery-card--wide {
  grid-column: span 2;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: grayscale(0.25) contrast(1.06) brightness(0.84);
  transform: scale(1.02);
  transition:
    transform 420ms var(--ease-out),
    filter 420ms ease;
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 45%, rgba(5, 5, 5, 0.78)),
    radial-gradient(circle at 50% 35%, transparent, rgba(5, 5, 5, 0.3));
  pointer-events: none;
}

.gallery-card figcaption {
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.75rem;
  z-index: 2;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.gallery-card:hover img {
  transform: scale(1.065);
  filter: grayscale(0) contrast(1.08) brightness(0.95);
}

@media (max-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-card--large,
  .gallery-card--wide {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .home-jump,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .home-jump {
    margin-top: 2.5rem;
  }

  .archive-hero {
    min-height: 48svh;
    padding-top: calc(var(--pad) * 7);
  }

  .archive-hero h1 {
    font-size: clamp(4.2rem, 18vw, 7rem);
  }

  .gallery-card,
  .gallery-card--large,
  .gallery-card--wide {
    grid-column: auto;
    grid-row: auto;
    min-height: 28rem;
  }
}

/* ==========================================================================
   FINAL OVERRIDE
   Info panel — clean bio layout
   ========================================================================== */

.info-panel {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: block;
  overflow-y: auto;
  padding: calc(var(--pad) * 4.25) var(--pad) var(--pad);
  background: var(--bg);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.info-panel.is-open {
  opacity: 1;
  pointer-events: auto;
}

.info-panel .info__close {
  position: fixed;
  top: var(--pad);
  right: var(--pad);
  left: auto;
  z-index: 5;
  color: var(--text);
  font-weight: 700;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.2rem;
}

.info-panel__inner {
  width: min(100%, 92rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 7vw, 8rem);
  row-gap: clamp(1.35rem, 3vw, 3rem);
  align-content: start;
}

.info-panel__topline {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
}

.info-panel__bio {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(22rem, 0.72fr);
  column-gap: clamp(2rem, 6vw, 7rem);
  row-gap: 1.25rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: clamp(2rem, 4vw, 4rem);
}

.info-panel__eyebrow {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 700;
}

.info-panel__bio h2 {
  max-width: 24ch;
  margin: 0;
  font-size: clamp(2.15rem, 4.25vw, 5.25rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
  font-weight: 800;
}

.info-panel__copy {
  display: grid;
  align-content: end;
  gap: 1rem;
}

.info-panel__copy p {
  max-width: 38rem;
  color: rgba(244, 241, 234, 0.76);
  font-size: clamp(0.95rem, 1.05vw, 1.08rem);
  line-height: 1.55;
}

.info-panel__notes {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.info-panel__notes p {
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

.info-panel__links {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 7vw, 8rem);
  row-gap: 0;
}

.info-panel .info__group {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.info-panel .info__group h2 {
  color: var(--muted);
  font-weight: 400;
}

.info-panel .info__group p,
.info-panel .info__group a {
  line-height: 1.4;
}

.info-panel .info__group--link a,
.info-panel .info__page-link {
  width: fit-content;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.2rem;
}

@media (max-width: 900px) {
  .info-panel {
    padding-top: calc(var(--pad) * 5.5);
  }

  .info-panel__inner,
  .info-panel__bio,
  .info-panel__notes,
  .info-panel__links {
    width: 100%;
    margin: 0;
    grid-template-columns: 1fr;
  }

  .info-panel__topline,
  .info-panel__bio,
  .info-panel__eyebrow,
  .info-panel__notes,
  .info-panel__links {
    grid-column: 1;
  }

  .info-panel__bio h2 {
    max-width: 100%;
    font-size: clamp(2.35rem, 9.5vw, 4.8rem);
  }

  .info-panel .info__group {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

/* ==========================================================================
   HARD OVERRIDE
   Info panel reset
   ========================================================================== */

.info.info-panel {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: block;
  overflow-y: auto;
  padding: calc(var(--pad) * 4.5) var(--pad) var(--pad);
  background: var(--bg);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.info.info-panel.is-open {
  opacity: 1;
  pointer-events: auto;
}

.info.info-panel .info__close {
  position: fixed;
  top: var(--pad);
  right: var(--pad);
  left: auto;
  z-index: 10;
  color: var(--text);
  font-weight: 700;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.2rem;
}

.info-panel__inner {
  width: min(100%, 92rem);
  margin: 0 auto;
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
}

.info-panel__bio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.72fr);
  gap: clamp(2rem, 6vw, 7rem);
  border-bottom: 1px solid var(--line);
  padding-bottom: clamp(2rem, 4vw, 4rem);
}

.info-panel__eyebrow {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 700;
}

.info-panel__bio h2 {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(2.2rem, 4.4vw, 5.35rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
  font-weight: 800;
}

.info-panel__copy {
  display: grid;
  align-content: end;
  gap: 1rem;
}

.info-panel__copy p {
  max-width: 38rem;
  color: rgba(244, 241, 234, 0.76);
  font-size: clamp(0.95rem, 1.05vw, 1.08rem);
  line-height: 1.55;
}

.info-panel__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 7vw, 8rem);
}

.info.info-panel .info__group {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.info.info-panel .info__group h2 {
  color: var(--muted);
  font-weight: 400;
}

.info.info-panel .info__group p,
.info.info-panel .info__group a {
  line-height: 1.4;
}

.info.info-panel .info__group--link a,
.info.info-panel .info__page-link {
  width: fit-content;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.2rem;
}

@media (max-width: 900px) {
  .info.info-panel {
    padding-top: calc(var(--pad) * 5.5);
  }

  .info-panel__bio,
  .info-panel__links {
    grid-template-columns: 1fr;
  }

  .info-panel__bio h2 {
    max-width: 100%;
    font-size: clamp(2.35rem, 9.5vw, 4.8rem);
  }

  .info.info-panel .info__group {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}
/* ==========================================================================
   HARD OVERRIDE
   Unified Info panel layout
   ========================================================================== */

.info.info-panel {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: block;
  overflow-y: auto;
  padding: calc(var(--pad) * 4.5) var(--pad) var(--pad);
  background: var(--bg);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.info.info-panel.is-open {
  opacity: 1;
  pointer-events: auto;
}

.info.info-panel .info__close {
  position: fixed;
  top: var(--pad);
  right: var(--pad);
  left: auto;
  z-index: 10;
  color: var(--text);
  font-weight: 700;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.2rem;
}

.info-panel__inner {
  width: min(100%, 92rem);
  margin: 0 auto;
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
}

.info-panel__bio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.72fr);
  gap: clamp(2rem, 6vw, 7rem);
  border-bottom: 1px solid var(--line);
  padding-bottom: clamp(2rem, 4vw, 4rem);
}

.info-panel__eyebrow {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 700;
}

.info-panel__bio h2 {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(2.2rem, 4.4vw, 5.35rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
  font-weight: 800;
}

.info-panel__copy {
  display: grid;
  align-content: end;
  gap: 1rem;
}

.info-panel__copy p {
  max-width: 38rem;
  color: rgba(244, 241, 234, 0.76);
  font-size: clamp(0.95rem, 1.05vw, 1.08rem);
  line-height: 1.55;
}

.info-panel__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 7vw, 8rem);
}

.info.info-panel .info__group {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.info.info-panel .info__group h2 {
  color: var(--muted);
  font-weight: 400;
}

.info.info-panel .info__group p,
.info.info-panel .info__group a {
  line-height: 1.4;
}

.info.info-panel .info__group--link a,
.info.info-panel .info__page-link {
  width: fit-content;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.2rem;
}

@media (max-width: 900px) {
  .info.info-panel {
    padding-top: calc(var(--pad) * 5.5);
  }

  .info-panel__bio,
  .info-panel__links {
    grid-template-columns: 1fr;
  }

  .info-panel__bio h2 {
    max-width: 100%;
    font-size: clamp(2.35rem, 9.5vw, 4.8rem);
  }

  .info.info-panel .info__group {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

/* ==========================================================================
   MACBOOK / LAPTOP FIX
   Development page text clipping
   ========================================================================== */

html,
body {
  overflow-x: hidden;
}

.dev-page {
  overflow: visible;
}

.dev-hero,
.dev-hero__copy {
  min-width: 0;
  overflow: visible;
}

.dev-hero h1 {
  max-width: 100%;
  overflow: visible;
  overflow-wrap: normal;
  word-break: normal;
  line-height: 0.86;
}

/* MacBook / laptop widths */
@media (min-width: 901px) and (max-width: 1440px) {
  .dev-page {
    padding-top: calc(var(--pad) * 5.8);
  }

  .dev-hero {
    min-height: auto;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.48fr);
    gap: clamp(1.75rem, 4vw, 4rem);
    padding-top: clamp(3rem, 5vh, 5rem);
  }

  .dev-hero h1 {
    font-size: clamp(4.6rem, 10.2vw, 9.5rem);
    line-height: 0.88;
    letter-spacing: -0.075em;
  }

  .dev-hero__statement {
    max-width: 36rem;
    font-size: clamp(1.45rem, 2.35vw, 2.65rem);
    line-height: 1;
  }

  .dev-headshot {
    max-width: 22rem;
    justify-self: end;
  }

  .dev-content {
    padding-top: clamp(3rem, 5vw, 5rem);
  }

  .dev-card h2 {
    font-size: clamp(2.2rem, 3.3vw, 3.9rem);
    line-height: 0.92;
    letter-spacing: -0.07em;
  }
}

/* Short laptop screens, like 13-inch MacBooks */
@media (min-width: 901px) and (max-height: 850px) {
  .dev-hero {
    padding-top: 5rem;
    align-items: center;
  }

  .dev-hero h1 {
    font-size: clamp(4.2rem, 9vw, 8rem);
  }

  .dev-hero__statement {
    font-size: clamp(1.35rem, 2vw, 2.25rem);
  }

  .dev-headshot {
    max-width: 19rem;
  }
}

/* ==========================================================================
   FINAL MACBOOK HOME TITLE FIX
   Shrink "ADAM G. SIMON" and keep it one line
   ========================================================================== */

#intro-title {
  display: block !important;
  width: 100% !important;
  max-width: 92vw !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
  box-sizing: border-box !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: visible !important;
  transform: none !important;
}

/* MacBook / laptop */
@media (min-width: 761px) and (max-width: 1440px) {
  #intro-title {
    font-size: clamp(3.8rem, 8.2vw, 7.8rem) !important;
    line-height: 0.95 !important;
    letter-spacing: -0.065em !important;
  }
}

/* Short MacBook screens */
@media (min-width: 761px) and (max-width: 1440px) and (max-height: 850px) {
  #intro-title {
    font-size: clamp(3.5rem, 7.5vw, 7rem) !important;
  }
}

/* ==========================================================================
   FINAL HOME TITLE SIZE FIX
   Shrinks ADAM G. SIMON so it fits on MacBook without clipping
   ========================================================================== */

#intro-title,
.intro h1 {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: visible !important;
  transform: none !important;
  box-sizing: border-box !important;
}

/* Laptop / MacBook */
@media (min-width: 761px) and (max-width: 1440px) {
  #intro-title,
  .intro h1 {
    font-size: clamp(3.4rem, 6.8vw, 6.4rem) !important;
    line-height: 0.95 !important;
    letter-spacing: -0.055em !important;
  }
}

/* Short MacBook screens */
@media (min-width: 761px) and (max-width: 1440px) and (max-height: 850px) {
  #intro-title,
  .intro h1 {
    font-size: clamp(3.2rem, 6.4vw, 5.9rem) !important;
  }
}

/* Larger desktop can still be big, but not insane */
@media (min-width: 1441px) {
  #intro-title,
  .intro h1 {
    font-size: clamp(5.5rem, 9vw, 11rem) !important;
    line-height: 0.92 !important;
    letter-spacing: -0.065em !important;
  }
}

/* ==========================================================================
   HARD MOBILE OVERFLOW FIX
   Put this at the VERY BOTTOM of main.css
   ========================================================================== */

@media (max-width: 760px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .page,
  .intro,
  .intro--home,
  .dev-page,
  .dev-hero,
  .dev-hero__copy,
  .archive-hero,
  .gallery-page {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .site-header {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    padding: 1rem !important;
  }

  .brand {
    display: block !important;
    margin-bottom: 0.45rem !important;
  }

  .nav {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 0.25rem 0.35rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .nav a,
  .nav button {
    font-size: 0.78rem !important;
    white-space: nowrap !important;
  }

  .intro,
  .intro--home {
    min-height: auto !important;
    padding: 3rem 1rem 2rem !important;
    display: block !important;
  }

  .intro__topline {
    position: static !important;
    display: block !important;
    margin-bottom: clamp(9rem, 28vh, 13rem) !important;
  }

  .intro h1,
  #intro-title {
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(2.75rem, 12.5vw, 3.25rem) !important;
    line-height: 0.9 !important;
    letter-spacing: -0.075em !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    transform: none !important;
  }

  .intro__statement {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 0.95rem !important;
    line-height: 1.08 !important;
    transform: none !important;
  }

  .intro__note {
    width: 100% !important;
    max-width: 100% !important;
  }

  .home-jump {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 2.5rem !important;
  }

  .home-jump a {
    min-height: auto !important;
    padding: 1rem 0 2rem !important;
  }

  .home-jump strong {
    font-size: clamp(1.9rem, 9vw, 2.6rem) !important;
    line-height: 0.92 !important;
  }

  .dev-page {
    padding: 2rem 1rem 2rem !important;
  }

  .dev-hero {
    display: block !important;
    min-height: auto !important;
    padding-top: 3rem !important;
  }

  .dev-hero__copy {
    transform: none !important;
  }

  .dev-hero h1,
  #development-title {
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(2.45rem, 10.5vw, 2.85rem) !important;
    line-height: 0.9 !important;
    letter-spacing: -0.075em !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    transform: none !important;
  }

  .dev-hero__statement {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 1rem !important;
    font-size: clamp(1.35rem, 6.5vw, 1.8rem) !important;
    line-height: 0.98 !important;
  }

  .dev-image-rail {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    padding-top: 2rem !important;
  }

  .dev-image-rail__viewport {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .dev-image-link {
    flex: 0 0 clamp(8.5rem, 40vw, 10.5rem) !important;
    aspect-ratio: 2 / 3 !important;
  }

  .dev-headshot {
    max-width: 100% !important;
    margin-top: 2rem !important;
  }

  .archive-hero {
    min-height: auto !important;
    padding: 3rem 1rem 2.5rem !important;
    display: block !important;
  }

  .archive-hero h1 {
    font-size: clamp(2.8rem, 13vw, 3.6rem) !important;
    line-height: 0.9 !important;
    max-width: 100% !important;
  }
}