/* Jonas St. Michael — official site
   Display: condensed system grotesk (Impact / Arial Narrow)
   Body: Helvetica Neue stack
   Accent: fluorescent green on black
*/

:root {
  --black: #000000;
  --white: #f4f4f4;
  --muted: #b8b8b8;
  --green: #2aff02;
  --green-dim: #1db000;
  --lilac: #f6e4ee;
  --lilac-text: #161016;
  --line: #1f1f1f;
  --font-display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pad: clamp(1rem, 3vw, 2.5rem);
  --gap: 2px;
  --radius: 1.5rem;
  --max-text: 42rem;
  --focus: var(--green);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--black);
  color: var(--white);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  background: var(--black);
  color: var(--white);
}

img,
video,
picture {
  max-width: 100%;
  height: auto;
  display: block;
}

img {
  background: #000;
}

a {
  color: inherit;
  text-decoration: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:hover {
  color: var(--green);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--pad);
  top: -4rem;
  z-index: 1000;
  background: var(--green);
  color: var(--black);
  padding: 0.4rem 0.8rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.skip-link:focus {
  top: var(--pad);
}

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.9;
  text-transform: uppercase;
  margin: 0;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

/* ---------- INTRO ---------- */

.intro {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #c98474;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  padding: max(var(--pad), env(safe-area-inset-top)) max(var(--pad), env(safe-area-inset-right)) max(var(--pad), env(safe-area-inset-bottom)) max(var(--pad), env(safe-area-inset-left));
}

.intro__media,
.intro__veil {
  position: absolute;
  inset: 0;
}

.intro__media {
  z-index: 0;
}

.intro__media picture,
.intro__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

.intro__media img {
  transform: scale(1.08);
  animation: intro-drift 34s ease-in-out infinite alternate;
}

.intro__veil {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(48, 16, 12, 0.38) 0%, rgba(48, 16, 12, 0.08) 34%, rgba(48, 16, 12, 0.16) 62%, rgba(28, 8, 6, 0.62) 100%);
  transition: opacity 0.7s ease;
}

.intro:hover .intro__veil,
.intro:focus-within .intro__veil {
  opacity: 0.42;
}

html.show-intro .intro,
html.show-intro .intro[hidden] {
  display: flex;
}

.intro__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  max-width: 100%;
  position: relative;
  z-index: 2;
}

.intro__name {
  appearance: none;
  border: 0;
  background: none;
  color: var(--green);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 12vw, 9rem);
  line-height: 0.82;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  max-width: 18ch;
  padding: 0;
  outline: none;
  box-shadow: none;
  position: relative;
  z-index: 2;
  text-shadow: 0 0.08em 0.45em rgba(0, 0, 0, 0.55);
  transition: transform 0.45s ease, letter-spacing 0.45s ease;
}

.intro__center:hover .intro__name,
.intro__name:hover {
  transform: scale(1.035);
  letter-spacing: 0.012em;
}

.intro__name:focus,
.intro__name:focus-visible {
  outline: none;
  box-shadow: none;
  color: var(--green);
}

.intro__role {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(0.78rem, 1.5vw, 0.95rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  text-align: center;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
  transition: color 0.35s ease;
}

.intro__center:hover .intro__role {
  color: var(--white);
}

.intro.is-leaving {
  pointer-events: none;
  animation: intro-fade 0.7s ease forwards;
}

.intro.is-leaving .intro__name {
  animation: intro-out 0.7s ease forwards;
}

.intro.is-leaving .intro__role,
.intro.is-leaving .intro__hint {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.intro__hint {
  appearance: none;
  position: absolute;
  bottom: max(var(--pad), env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  border: 0;
  background: none;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  cursor: pointer;
  outline: none;
  z-index: 2;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
  transition: color 0.3s ease;
}

.intro__hint:hover,
.intro__hint:focus-visible,
.intro__center:hover ~ .intro__hint {
  color: var(--green);
}

/* Photo stays in the DOM under the intro so it can load during the opening. */

/* ---------- HEADER / NAV ---------- */

.site-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 1rem;
  padding: max(var(--pad), env(safe-area-inset-top)) max(var(--pad), env(safe-area-inset-right)) var(--pad) max(var(--pad), env(safe-area-inset-left));
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
  width: max-content;
  max-width: 100%;
}

.home-page .brand__name {
  color: var(--green);
}

.brand__name:hover,
.brand__name:focus-visible {
  color: var(--green);
}

.brand__tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.15rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.8vw, 1.7rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  justify-content: flex-end;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.nav a[aria-current="page"] {
  color: var(--green);
}

.nav--footer {
  padding: var(--pad);
}

.home-page .site-header .nav--home-top {
  display: none;
}

html.home-past-hero .home-page .site-header .nav--home-top {
  display: none;
}

html.header-hidden .site-header {
  transform: translateY(-100%);
  pointer-events: none;
}

.home-page .nav--footer {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1.85rem, 3.4vw, 3.15rem);
  padding: 0.85rem 0 max(1rem, env(safe-area-inset-bottom));
  font-size: clamp(1.35rem, 2.6vw, 2.45rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.home-page .nav--footer a {
  color: var(--white);
}

.home-page .nav--footer a:hover,
.home-page .nav--footer a:focus-visible {
  color: var(--green);
}

/* ---------- HOMEPAGE ---------- */

html.show-intro,
html.show-intro body {
  height: 100%;
  overflow: hidden;
}

body.home-page {
  min-height: 100svh;
}

.home {
  height: calc(100svh - 7.25rem);
  max-height: calc(100svh - 7.25rem);
  min-height: 20rem;
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  position: relative;
  padding: 0 var(--pad);
  box-sizing: border-box;
}

.home__stage {
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
}

.home__link {
  display: none;
  align-items: stretch;
  justify-content: stretch;
  width: 100%;
  height: 100%;
  max-width: none;
  color: inherit;
  min-height: 0;
  cursor: pointer;
}

.home__link.is-active,
html.no-js .home__link[data-home-shot]:first-of-type {
  display: flex;
}

.home__link[hidden] {
  display: none !important;
}

html.no-js .home__link[data-home-shot]:first-of-type {
  display: flex !important;
}

.home__link:hover {
  color: inherit;
}

.home__figure {
  margin: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: grid;
  place-items: stretch;
}

.home__shot {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.home__shot picture {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
}

.home__shot img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: var(--home-position, center center);
  border-radius: var(--radius);
  transition: transform 0.5s ease;
}

.home__shot::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 52%;
  pointer-events: none;
  border-radius: 0 0 var(--radius) var(--radius);
  background: linear-gradient(transparent 10%, rgba(0, 0, 0, 0.78));
  opacity: 1;
  transition: opacity 0.35s ease;
}

.home__link:hover img,
.home__link:focus-visible img {
  transform: scale(1.015);
}

.home__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 2rem 1.75rem 1.6rem;
  line-height: 1.25;
  opacity: 1;
  transform: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.home__caption-title,
.home__caption-meta,
.home__caption-cta {
  display: block;
  max-width: 100%;
}

.home__caption-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--green);
}

.home__caption-meta {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.home__caption-cta {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--white);
}

@media (hover: hover) and (pointer: fine) {
  .home__caption {
    opacity: 0;
    transform: translateY(8px);
  }

  .home__shot::after {
    opacity: 0;
  }

  .home__link:hover .home__caption,
  .home__link:focus-visible .home__caption {
    opacity: 1;
    transform: none;
  }

  .home__link:hover .home__shot::after,
  .home__link:focus-visible .home__shot::after {
    opacity: 1;
  }
}

.home-page .site-header {
  position: sticky;
  background: var(--black);
  padding-bottom: 0.5rem;
}

html.home-past-hero .home-page .site-header {
  background: var(--black);
}

html.home-past-hero .home-page .nav--footer {
  visibility: visible;
  pointer-events: auto;
}

.work-index--home {
  padding-top: 2.25rem;
}

/* ---------- PAGE SHELL ---------- */

.page {
  padding: 0 var(--pad) 4rem;
}

.bio-page {
  background: var(--lilac);
  color: var(--lilac-text);
}

.bio-page .site-header {
  background: var(--lilac);
}

.bio-page .brand__name,
.bio-page .nav a,
.bio-page .site-footer,
.bio-page .site-footer a {
  color: var(--lilac-text);
}

.bio-page .brand__tag,
.bio-page .site-footer {
  color: #6b5560;
}

.bio-page .brand__name:hover {
  color: var(--lilac-text);
}

.bio-page .nav a:hover,
.bio-page .nav a[aria-current="page"],
.bio-page .site-footer a:hover {
  color: var(--lilac-text);
  box-shadow: inset 0 -2px 0 var(--green);
}

.bio-page :focus-visible {
  outline-color: var(--lilac-text);
}

.page--lilac {
  background: var(--lilac);
  color: var(--lilac-text);
  min-height: 100vh;
}

.page--lilac a:hover:not(.brand__name) {
  color: var(--lilac-text);
  box-shadow: inset 0 -2px 0 var(--green);
}

.page--lilac :focus-visible {
  outline-color: var(--lilac-text);
}

.page--lilac .site-header,
.page--lilac .site-footer {
  color: var(--lilac-text);
}

.page--lilac .brand__name,
.page--lilac .nav a {
  color: var(--lilac-text);
}

.page--lilac .brand__name:hover {
  color: var(--lilac-text);
}

.page--lilac .nav a:hover,
.page--lilac .nav a[aria-current="page"] {
  color: var(--lilac-text);
  box-shadow: inset 0 -2px 0 var(--green);
}

.page--lilac .brand__tag {
  color: #6b5560;
}

.page-title {
  font-size: clamp(2.4rem, 8vw, 6rem);
  margin: 0 0 2rem;
}

.lede {
  max-width: var(--max-text);
  font-size: 1.05rem;
  font-weight: 500;
}

.meta-line {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.75rem 0 2rem;
}

.page--lilac .meta-line {
  color: #6b5560;
}

.prose {
  max-width: var(--max-text);
  font-size: 1.05rem;
  font-weight: 400;
}

.prose p + p {
  margin-top: 1em;
}

/* ---------- WORK INDEX ---------- */

.work-index {
  padding: 0 var(--pad) 4rem;
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
}

.work-tile {
  min-width: 0;
}

.work-tile {
  display: block;
  background: #000;
  color: inherit;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.work-tile__media {
  display: block;
  background: #000;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

@media (min-width: 900px) {
  .work-tile__media {
    aspect-ratio: auto;
    height: 58svh;
    min-height: 20rem;
    max-height: 36rem;
  }
}

.work-tile__media picture {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
}

.work-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
  transition: transform 0.55s ease;
}

.work-tile:hover .work-tile__media img,
.work-tile:focus-visible .work-tile__media img {
  transform: scale(1.035);
}

.work-tile__tags {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.work-tile__tag {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}

.work-tile__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem;
  padding: 2.8rem 1rem 1.15rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}

.work-tile__title {
  font-size: clamp(1.15rem, 2.8vw, 2.1rem);
  font-weight: 600;
  color: var(--white);
  transition: color 0.2s ease;
}

.work-tile:hover .work-tile__title,
.work-tile:focus-visible .work-tile__title {
  color: var(--green);
}

.work-tile:focus-visible {
  outline-offset: 3px;
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

.reveal {
  opacity: 1;
  transform: none;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ---------- PROJECT ---------- */

.project-split {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(16rem, 0.82fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  padding: 0 var(--pad) 3rem;
}

.project-split__text {
  position: sticky;
  top: 1.25rem;
  align-self: start;
  order: 2;
}

.project-split__visuals {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
  order: 1;
}

.project-split__visuals .artwork {
  width: 100%;
  margin: 0;
}

.project-split__text h1 {
  font-size: clamp(2rem, 5vw, 4.2rem);
  margin-bottom: 0.4rem;
}

.project-split__text .prose,
.project-split__text .lede {
  max-width: 36rem;
}

.project-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
  margin: 0 0 1.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-nav:not(:has(a + a)) {
  display: none;
}

.project-nav a {
  color: var(--muted);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.project-nav a:hover,
.project-nav a.is-active,
.project-nav a:focus-visible {
  color: var(--green);
}

[data-project-section] {
  scroll-margin-top: 5.5rem;
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: 0 var(--pad) 3rem;
}

.gallery--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  padding: 0 var(--pad) 3rem;
}

.gallery--install {
  grid-template-columns: 1fr 1fr 1fr;
}

.gallery--stills {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 56rem;
}

.gallery--full {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  padding: 0 var(--pad) 3rem;
}

.gallery--full .artwork {
  width: 100%;
  max-width: none;
}

.gallery--full .artwork__button {
  display: block;
  width: 100%;
  max-width: none;
}

.gallery--full .artwork__button picture {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

.gallery--full .artwork__button img {
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: contain;
}

.gallery--triptych {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  padding: 0 var(--pad) 5rem;
}

@media (min-width: 800px) {
  .gallery--triptych {
    grid-template-columns: 1fr 1fr 1fr;
    align-items: start;
  }
}

.gallery__section-title {
  font-size: clamp(1rem, 2vw, 1.3rem);
  padding: 1rem var(--pad) 0.6rem;
  color: var(--muted);
}

.gallery__section-title--flush {
  padding-left: 0;
  padding-right: 0;
}

.gallery__section-title--clip {
  padding: 0 0 0.55rem;
  font-size: 0.82rem;
}

.project-block .gallery {
  padding-top: 0;
}

.artwork {
  margin: 0;
  width: 100%;
  min-width: 0;
  scroll-margin-top: 5.5rem;
}

.artwork:target .artwork__button {
  box-shadow: 0 0 0 2px var(--green);
}

.artwork:target figcaption {
  color: var(--green);
}

.artwork--portrait {
  width: 100%;
}

.artwork__button {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  cursor: zoom-in;
  display: block;
  width: 100%;
  color: inherit;
  overflow: hidden;
  border-radius: var(--radius);
}

.artwork__button img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  transition: transform 0.5s ease;
}

.artwork__button:hover img,
.artwork__button:focus-visible img {
  transform: scale(1.025);
}

.artwork figcaption {
  margin-top: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-video {
  padding: 0 var(--pad) 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.project-video--split {
  padding: 0;
  max-width: none;
  margin: 0;
}

.project-video video {
  width: 100%;
  background: #000;
  border-radius: var(--radius);
}

.thanks {
  max-width: var(--max-text);
  padding: 0 var(--pad) 4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 var(--pad) 4rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
}

.pager a span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  margin-bottom: 0.2rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 2.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--green);
  color: #111;
  padding: 0.9rem 1.45rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.cta:hover,
.cta:focus-visible {
  background: #111;
  color: var(--green);
}

.bio-page .cta:hover,
.bio-page .cta:focus-visible {
  background: var(--lilac-text);
  color: var(--green);
}

/* ---------- CV ---------- */

.cv-download {
  display: inline-block;
  margin: 0 0 1.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--green);
  padding-bottom: 0.15rem;
}

.cv-nav {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem 1rem;
  overflow-x: auto;
  padding: 0.75rem 0 0.9rem;
  margin: 0 0 1.5rem;
  background: var(--black);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  scrollbar-width: thin;
}

.cv-nav a {
  white-space: nowrap;
  color: var(--muted);
}

.cv-nav a:hover,
.cv-nav a.is-active,
.cv-nav a:focus-visible {
  color: var(--green);
}

.cv-section {
  margin: 0 0 2.4rem;
  max-width: 54rem;
  scroll-margin-top: 3.2rem;
}

.cv-section h2 {
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  margin-bottom: 0.9rem;
  color: var(--green);
}

.cv-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cv-list li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
}

.cv-list .year {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ---------- CONTACT ---------- */

.contact-block {
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.contact-block a {
  color: var(--green);
}

.contact-block a:hover {
  color: var(--white);
}

.contact-form {
  max-width: 34rem;
  margin-top: 2.75rem;
  display: grid;
  gap: 1.25rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  appearance: none;
  width: 100%;
  margin: 0;
  padding: 0.65rem 0;
  border: 0;
  border-bottom: 1px solid #333;
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.contact-form select {
  background: var(--black);
}

.contact-form textarea {
  min-height: 8rem;
  resize: vertical;
  line-height: 1.45;
}

.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
  outline: none;
  border-bottom-color: var(--green);
}

.contact-form .cta {
  justify-self: start;
  margin-top: 0.6rem;
  border: 0;
  cursor: pointer;
  font-size: 0.95rem;
}

/* ---------- LIGHTBOX ---------- */

.lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.96);
  color: var(--white);
}

.lightbox::backdrop {
  background: #000;
}

.lightbox__frame {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 4rem 4rem;
}

.lightbox__image {
  max-width: min(96vw, 1800px);
  max-height: calc(100dvh - 6rem);
  width: auto;
  height: auto;
  object-fit: contain;
  background: transparent;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  appearance: none;
  position: absolute;
  background: none;
  border: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  z-index: 2;
}

.lightbox__close {
  top: 1rem;
  right: 1rem;
  font-size: 0.85rem;
}

.lightbox__prev,
.lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  padding: 1rem;
}

.lightbox__prev { left: 0.2rem; }
.lightbox__next { right: 0.2rem; }

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover,
.lightbox__close:focus-visible,
.lightbox__prev:focus-visible,
.lightbox__next:focus-visible {
  color: var(--green);
}

.lightbox__caption {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 0.8rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- FOOTER ---------- */

.site-footer {
  padding: var(--pad);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- REDUCED MOTION ---------- */

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.js .intro.is-active .intro__name,
html.show-intro .intro__name {
  animation: intro-in 0.7s ease both;
}

.js .home.is-revealed .home__figure {
  animation: photo-in 0.8s ease both;
}

@keyframes intro-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes intro-out {
  to {
    opacity: 0;
    transform: translateY(-22px) scale(0.94);
    letter-spacing: 0.08em;
  }
}

@keyframes intro-fade {
  to { opacity: 0; }
}

@keyframes intro-drift {
  from { transform: scale(1.14) translate3d(-1.8%, 1%, 0); }
  to { transform: scale(1.05) translate3d(1.8%, -1.2%, 0); }
}

@keyframes photo-in {
  from { opacity: 0; transform: scale(1.035); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .js .intro.is-active .intro__name,
  html.show-intro .intro__name,
  .js .home.is-revealed .home__figure,
  .intro.is-leaving,
  .intro.is-leaving .intro__name,
  .intro__media img {
    animation: none;
  }

  .intro__media img {
    transform: none;
  }

  .reveal,
  .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .work-tile:hover .work-tile__media img,
  .artwork__button:hover img,
  .home__link:hover img,
  .home__link:focus-visible img {
    transform: none;
  }

  .home__caption,
  .home__shot::after {
    opacity: 1;
    transform: none;
  }

  html.header-hidden .site-header {
    transform: none;
    pointer-events: auto;
  }
}

/* ---------- SMALL SCREENS ---------- */

@media (max-width: 899px) {
  .project-split {
    grid-template-columns: 1fr;
    padding-bottom: 1.5rem;
  }

  .project-split__text,
  .project-split__visuals {
    order: 0;
  }

  .project-split__text {
    position: static;
  }

  .project-split__text h1 {
    font-size: clamp(1.8rem, 11vw, 3rem);
  }

  .gallery--grid,
  .gallery--install {
    grid-template-columns: 1fr;
  }

  .gallery--stills {
    grid-template-columns: 1fr 1fr;
  }

  .site-header .nav {
    flex-wrap: wrap;
  }

  .home-page .site-header .nav--home-top {
    display: none;
    justify-content: flex-end;
    gap: 0.85rem;
  }

  html.home-past-hero .home-page .site-header .nav--home-top {
    display: none;
  }

  .home-page .brand__tag {
    display: none;
  }

  .home-page .site-header {
    position: sticky;
    background: var(--black);
    padding-bottom: 0.55rem;
  }

  html.home-past-hero .home-page .site-header {
    background: var(--black);
  }

  .home-page .brand__name {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
    text-shadow: none;
  }

  html.home-past-hero .home-page .brand__name {
    font-size: 1.05rem;
  }

  body.home-page {
    height: auto;
    max-height: none;
    min-height: 100svh;
  }

  .home {
    height: calc(100svh - 4.75rem);
    max-height: calc(100svh - 4.75rem);
    min-height: 16rem;
    overflow: hidden;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    padding: 0 max(var(--pad), env(safe-area-inset-left));
    padding-right: max(var(--pad), env(safe-area-inset-right));
    margin-bottom: 0;
  }

  .home__stage {
    position: relative;
    inset: auto;
    padding: 0;
    overflow: hidden;
  }

  .home__link.is-active,
  .home__figure,
  .home__shot,
  .home__shot picture {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
  }

  .home__shot img,
  .home__figure img,
  .home__link:hover img,
  .home__link:focus-visible img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: var(--home-position, center center);
    border-radius: var(--radius);
    transform: none;
  }

  .home__link {
    cursor: pointer;
  }

  .home__caption,
  .home__shot::after {
    display: none;
  }

  .home-page .nav--footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    position: absolute;
    left: max(var(--pad), env(safe-area-inset-left));
    right: max(var(--pad), env(safe-area-inset-right));
    bottom: 0;
    z-index: 6;
    gap: 0.32em;
    padding: 0 1.15rem max(1.35rem, env(safe-area-inset-bottom));
    font-size: clamp(2.6rem, 14vw, 4rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.03em;
    white-space: normal;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  }

  .home-page .nav--footer a {
    min-height: 0;
    padding: 0.06em 0;
    color: var(--white);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  }

  .home-page .nav--footer a:hover,
  .home-page .nav--footer a:focus-visible {
    color: var(--green);
  }

  body:not(.home-page) .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--black);
    padding-top: max(0.85rem, env(safe-area-inset-top));
    padding-bottom: 0.75rem;
  }

  html.header-hidden .cv-page .site-header,
  html.header-hidden .project-page .site-header {
    transform: none;
    pointer-events: auto;
  }

  .cv-nav,
  .project-nav {
    top: calc(3.05rem + env(safe-area-inset-top, 0px));
    z-index: 40;
  }

  .cv-nav {
    position: sticky;
    background: var(--black);
    border-bottom: 1px solid var(--line);
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }

  .bio-page .site-header {
    background: var(--black);
  }

  .bio-page .brand__name,
  .bio-page .nav a {
    color: var(--white);
    box-shadow: none;
  }

  .bio-page .brand__name:hover,
  .bio-page .brand__name:focus-visible,
  .bio-page .nav a:hover,
  .bio-page .nav a:focus-visible,
  .bio-page .nav a[aria-current="page"] {
    color: var(--green);
    box-shadow: none;
  }

  .bio-page .brand__tag {
    color: var(--muted);
  }

  .project-nav {
    position: fixed;
    top: calc(3.05rem + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    z-index: 40;
    flex-wrap: nowrap;
    gap: 0.2rem 1.15rem;
    overflow-x: auto;
    scrollbar-width: none;
    background: var(--black);
    margin: 0;
    padding: 0.35rem max(var(--pad), env(safe-area-inset-right)) 0.35rem max(var(--pad), env(safe-area-inset-left));
    border-bottom: 1px solid var(--line);
  }

  .project-split:has(.project-nav a + a) {
    padding-top: 3.1rem;
  }

  .project-nav::-webkit-scrollbar {
    display: none;
  }

  .project-nav a {
    flex: 0 0 auto;
  }

  .cv-section {
    scroll-margin-top: 7.25rem;
  }

  .intro__name {
    font-size: clamp(3.2rem, 18vw, 4.8rem);
    line-height: 1.02;
    max-width: 9ch;
  }

  .intro__role {
    letter-spacing: 0.1em;
    max-width: 16rem;
    padding: 0 0.5rem;
    line-height: 1.35;
  }

  .intro__hint {
    font-size: 0.9rem;
    padding: 1rem;
    min-height: 48px;
  }

  .work-tile__title {
    font-size: 1.05rem;
  }

  .work-tile__caption {
    padding: 2.8rem 0.9rem 1rem;
  }
}

@media (max-width: 699px) {
  html,
  body {
    overflow-x: clip;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 0.2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: max(0.75rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) 0.55rem max(1rem, env(safe-area-inset-left));
  }

  .brand__name {
    font-size: 1.05rem;
  }

  .brand__tag {
    display: none;
  }

  .nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    gap: 0.1rem 0.85rem;
    font-size: 1rem;
    line-height: 1;
  }

  .nav a {
    display: inline-flex;
    min-height: 36px;
    margin-left: 0;
  }

  .project-nav {
    top: calc(2.85rem + env(safe-area-inset-top, 0px));
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .cv-nav {
    top: calc(2.85rem + env(safe-area-inset-top, 0px));
  }

  .work-index {
    padding: 0 max(1rem, env(safe-area-inset-right)) 3rem max(1rem, env(safe-area-inset-left));
  }

  .work-index--home {
    padding-top: 0.85rem;
  }

  .home {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    height: calc(100svh - 4.35rem);
    max-height: calc(100svh - 4.35rem);
    margin-bottom: 0;
  }

  .home-page .nav--footer {
    left: max(1rem, env(safe-area-inset-left));
    right: max(1rem, env(safe-area-inset-right));
  }

  .work-tile {
    border-radius: 1.1rem;
  }

  .page {
    padding: 0 max(1rem, env(safe-area-inset-right)) 3.5rem max(1rem, env(safe-area-inset-left));
  }

  .page-title {
    font-size: clamp(2rem, 14vw, 3.2rem);
  }

  .project-split,
  .gallery,
  .gallery--grid,
  .gallery--full,
  .gallery--install,
  .project-video {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .cv-nav {
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .cv-list li {
    grid-template-columns: 3.4rem 1fr;
    gap: 0.6rem;
    font-size: 0.95rem;
  }

  .contact-block {
    font-size: clamp(1.15rem, 6vw, 1.8rem);
    overflow-wrap: anywhere;
  }

  .lightbox__frame {
    padding: 3.5rem 0.6rem 3.2rem;
  }

  .lightbox__prev,
  .lightbox__next {
    top: auto;
    bottom: 0.2rem;
    transform: none;
    font-size: 1.2rem;
    min-width: 44px;
    min-height: 44px;
  }

  .pager {
    flex-direction: column;
    padding: 0 max(1rem, env(safe-area-inset-right)) 3rem max(1rem, env(safe-area-inset-left));
  }

  .pager a {
    min-height: 44px;
  }

  .site-footer {
    padding: 1rem max(1rem, env(safe-area-inset-right)) max(1.2rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  }
}
