:root {
  --bg: #e7e2da;
  --paper: #f0ebe3;
  --paper-line: rgba(82, 103, 74, 0.18);
  --line: rgba(233, 226, 213, 0.16);
  --text: #f4efe7;
  --muted: #9f988d;
  --ink: #4a4c43;
  --ink-muted: #777c72;
  --accent: #5d6f46;
  --accent-soft: #d7e0c8;
  --shadow: 0 30px 70px rgba(78, 68, 56, 0.14);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --header-height: 0px;
  --hero-height: 0px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(93, 111, 70, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.4), transparent 26%),
    linear-gradient(180deg, #f2eee8 0%, #e8e3dc 42%, #e3ddd6 100%);
}

body.is-lightbox-open {
  overflow: hidden;
  overscroll-behavior: contain;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(90px);
  opacity: 0.4;
  z-index: 0;
}

body::before {
  top: 6vh;
  left: -8vw;
  width: 28vw;
  height: 28vw;
  background: rgba(93, 111, 70, 0.1);
}

body::after {
  right: -6vw;
  bottom: 12vh;
  width: 24vw;
  height: 24vw;
  background: rgba(255, 255, 255, 0.2);
}

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

button {
  font: inherit;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(1380px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(0.95rem, 2vw, 1.4rem) 0 calc(4rem + var(--safe-bottom));
}

.site-header {
  position: sticky;
  top: calc(0.7rem + var(--safe-top));
  z-index: 30;
  padding-bottom: 0.9rem;
}

.eyebrow,
.section-label,
.sidebar-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.about-card,
.sidebar-card,
.about-foot-card {
  box-shadow: var(--shadow);
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.45rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(82, 103, 74, 0.14);
  border-radius: 999px;
  background: rgba(240, 235, 227, 0.72);
  box-shadow: 0 14px 34px rgba(78, 68, 56, 0.08);
  backdrop-filter: blur(16px);
}

.topbar-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.topbar-group::-webkit-scrollbar {
  display: none;
}

.topbar-links {
  justify-content: flex-end;
}

.topbar-pill {
  appearance: none;
  border: 1px solid var(--paper-line);
  background: rgba(255, 255, 255, 0.26);
  color: var(--ink);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.topbar-pill:hover,
.topbar-pill:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.52);
  border-color: rgba(93, 111, 70, 0.28);
}

.topbar-pill.is-active {
  background: rgba(93, 111, 70, 0.14);
  color: var(--accent);
  border-color: rgba(93, 111, 70, 0.38);
}

.wordmark {
  justify-self: center;
  max-width: 100%;
  text-align: center;
  text-wrap: balance;
  font-family: "Instrument Serif", serif;
  font-size: clamp(1.8rem, 2.2vw, 2.6rem);
  line-height: 1;
  color: #556478;
}

.hero-stage {
  position: relative;
  z-index: 1;
  margin-bottom: 1.15rem;
  pointer-events: none;
  opacity: calc(1 - var(--intro-fade, 0));
  transform: translateY(calc(var(--intro-fade, 0) * -26px));
  filter: blur(calc(var(--intro-fade, 0) * 12px));
  transition: opacity 120ms linear, transform 120ms linear, filter 120ms linear;
  will-change: opacity, transform, filter;
}

.hero-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(11.5rem, 24vh, 16rem);
  overflow: hidden;
  border-radius: 28px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 42px 90px rgba(0, 0, 0, 0.38);
}

.hero-reel-shell {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-reel-shell.is-empty {
  display: none;
}

.hero-reel-frame,
.hero-reel-embed,
.hero-reel-video {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-reel-frame {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-reel-embed,
.hero-reel-video {
  border: 0;
  object-fit: cover;
}

.hero-reel-shell.is-carousel {
  display: block;
}

.hero-reel-shell.is-paused .hero-carousel-row {
  animation-play-state: paused;
}

.hero-carousel {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  overflow: hidden;
  padding: 0.85rem 0;
  perspective: 1400px;
}

.hero-carousel::before,
.hero-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 16%;
  z-index: 1;
  pointer-events: none;
}

.hero-carousel::before {
  left: 0;
  background: linear-gradient(90deg, rgba(7, 10, 7, 0.76) 0%, rgba(7, 10, 7, 0) 100%);
}

.hero-carousel::after {
  right: 0;
  background: linear-gradient(270deg, rgba(7, 10, 7, 0.76) 0%, rgba(7, 10, 7, 0) 100%);
}

.hero-carousel-track {
  display: grid;
  gap: 0.65rem;
  width: max-content;
  min-width: 100%;
}

.hero-carousel-row {
  --hero-row-start: 0%;
  --hero-row-duration: 44s;
  display: flex;
  gap: 0.75rem;
  width: max-content;
  will-change: transform;
  animation: hero-carousel-row var(--hero-row-duration) linear infinite;
}

.hero-carousel-row-primary {
  --hero-row-start: 0%;
  --hero-row-duration: 42s;
}

.hero-carousel-row-secondary {
  --hero-row-start: -12%;
  --hero-row-duration: 54s;
  opacity: 0.88;
}

.hero-carousel-item {
  position: relative;
  flex: 0 0 clamp(9rem, 12vw, 12.5rem);
  aspect-ratio: 1.48;
  overflow: hidden;
  border: 1px solid rgba(240, 235, 227, 0.14);
  border-radius: 22px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  transform: rotateY(-20deg) scale(0.96);
}

.hero-carousel-item[style*="background-image"] {
  background-image: none !important;
  background-color: transparent !important;
}

.hero-carousel-item.is-missing {
  background: transparent !important;
  border-color: rgba(240, 235, 227, 0.18);
}

.hero-carousel-row-secondary .hero-carousel-item {
  transform: translateY(-0.18rem) rotateY(18deg) scale(0.92);
}

.hero-carousel-item:nth-child(4n + 2) {
  transform: translateY(0.32rem) rotateY(14deg) scale(0.92);
}

.hero-carousel-item:nth-child(4n + 3) {
  transform: translateY(-0.24rem) rotateY(-12deg) scale(0.95);
}

.hero-carousel-row-secondary .hero-carousel-item:nth-child(4n + 2) {
  transform: translateY(0.18rem) rotateY(-12deg) scale(0.9);
}

.hero-carousel-row-secondary .hero-carousel-item:nth-child(4n + 3) {
  transform: translateY(-0.28rem) rotateY(20deg) scale(0.93);
}

.hero-carousel-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  filter: saturate(0.92) contrast(0.94) brightness(0.86);
}

@keyframes hero-carousel-row {
  from {
    transform: translate3d(var(--hero-row-start), 0, 0);
  }

  to {
    transform: translate3d(calc(var(--hero-row-start) - 50%), 0, 0);
  }
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 5, 0.08) 0%, rgba(5, 8, 5, 0.24) 50%, rgba(5, 8, 5, 0.68) 100%);
}

.hero-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(126, 255, 126, 0.16), transparent 18%),
    radial-gradient(circle at 68% 34%, rgba(1, 234, 1, 0.08), transparent 24%),
    linear-gradient(135deg, rgba(6, 10, 6, 0.34), rgba(7, 12, 7, 0.08));
  mix-blend-mode: screen;
}

.hero-copy-shell {
  position: relative;
  display: grid;
  place-items: center;
  z-index: 2;
  width: min(100% - 2rem, 860px);
  padding: clamp(0.45rem, 1.2vw, 0.8rem) 1rem;
  opacity: calc(1 - var(--hero-card-fade, 0));
  transform:
    translateY(calc(var(--hero-card-fade, 0) * -34px))
    scale(calc(1 - var(--hero-card-fade, 0) * 0.08));
  filter: blur(calc(var(--hero-card-fade, 0) * 12px));
  transition: opacity 120ms linear, transform 120ms linear, filter 120ms linear;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  text-align: center;
  color: #f7f2ea;
}

.route-view {
  transition: opacity 260ms ease, transform 260ms ease;
}

.route-view[hidden],
.project-view[hidden],
.gallery-lightbox[hidden] {
  display: none !important;
}

.route-view.is-route-enter,
.route-view.is-route-leave {
  opacity: 0;
  transform: translateY(22px);
}

.hero-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(241, 247, 238, 0.74);
}

.hero-title {
  margin: 0;
  display: grid;
  line-height: 0.94;
  font-family: "Instrument Serif", serif;
  font-size: clamp(2rem, 4.8vw, 3.9rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero-title span:last-child {
  font-size: clamp(2.2rem, 5.2vw, 4.2rem);
  color: var(--accent-soft);
}

.video-card,
.still-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 18, 10, 0.94), rgba(3, 5, 3, 0.92));
  contain: layout paint;
}

.panel {
  display: none;
  position: relative;
  z-index: 1;
}

.panel.is-active {
  display: block;
  padding-top: 0.35rem;
  animation: panel-in 320ms ease;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 420px);
  gap: 1rem;
  align-items: end;
  margin: 0 0 1.15rem;
}

.practice-band {
  display: grid;
  gap: 0;
  margin: 0 0 1.2rem;
  opacity: calc(1 - var(--intro-fade, 0));
  transform: translateY(calc(var(--intro-fade, 0) * -18px));
  filter: blur(calc(var(--intro-fade, 0) * 10px));
  transition: opacity 120ms linear, transform 120ms linear, filter 120ms linear;
  will-change: opacity, transform, filter;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  content-visibility: auto;
  contain-intrinsic-size: 1px 220px;
}

.practice-card {
  display: grid;
  align-content: start;
  gap: 0.2rem;
  min-height: 100%;
  padding: 0.95rem 1rem 0.9rem;
  border: 1px solid rgba(93, 111, 70, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(93, 111, 70, 0.08), transparent 26%),
    rgba(255, 255, 255, 0.34);
  box-shadow: var(--shadow);
  contain: layout paint;
}

.practice-index {
  margin: 0;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.practice-title {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  line-height: 0.95;
  color: var(--ink);
}

.section-title {
  margin: 0.4rem 0 0;
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 0.95;
  color: var(--ink);
}

.section-copy {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.7;
  text-wrap: pretty;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.45rem, 0.7vw, 0.8rem);
  content-visibility: auto;
  contain-intrinsic-size: 1px 780px;
}

.video-card {
  position: relative;
  display: block;
  aspect-ratio: 1.58;
  overflow: hidden;
  border-radius: 22px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.video-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 420ms ease;
}

.video-media-image,
.still-media-image,
.project-gallery-media-image,
.project-hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.video-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.02) 24%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.05) 100%);
}

.video-card:hover .video-media {
  transform: scale(1.04);
}

.video-mark {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  margin: 0;
  color: rgba(221, 255, 221, 0.92);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.video-content {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  align-content: end;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.82) 66%, rgba(0, 0, 0, 0.92) 100%);
}

.video-card:focus-visible,
.still-card:focus-visible,
.project-back:focus-visible,
.project-link:focus-visible,
.project-gallery-trigger:focus-visible,
.gallery-lightbox-close:focus-visible,
.gallery-lightbox-nav:focus-visible {
  outline: 2px solid rgba(1, 234, 1, 0.82);
  outline-offset: -2px;
}

.video-meta {
  margin: 0;
  color: rgba(190, 216, 190, 0.76);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.video-title {
  margin: 0;
  max-width: 13ch;
  font-family: "Instrument Serif", serif;
  font-size: clamp(1.7rem, 2.2vw, 2.2rem);
  line-height: 0.92;
  color: #f6f0e8;
}

.video-hover-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.video-card:hover .video-hover-meta,
.video-card:focus-visible .video-hover-meta,
.video-card:focus-within .video-hover-meta {
  opacity: 1;
  transform: translateY(0);
}

.video-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  font-weight: 700;
}

.video-link.is-muted {
  color: var(--muted);
}

.stills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 2px;
  padding: 2px;
  border-radius: 28px;
  background: transparent;
  overflow: hidden;
  box-shadow: var(--shadow);
  content-visibility: auto;
  contain-intrinsic-size: 1px 780px;
}

.still-card--wide {
  grid-column: span 2;
  aspect-ratio: 3.16;
}

.still-card--full {
  grid-column: 1 / -1;
  aspect-ratio: 4.74;
}

.still-card {
  appearance: none;
  width: 100%;
  padding: 0;
  border: 0;
  text-align: left;
  position: relative;
  display: block;
  aspect-ratio: 1.58;
  overflow: hidden;
  border-radius: 0;
  cursor: pointer;
}

.still-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 420ms ease;
}

.still-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.08) 38%, rgba(0, 0, 0, 0.84) 100%);
}

.still-card:hover .still-media {
  transform: scale(1.03);
}

.still-caption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  display: grid;
  gap: 0.3rem;
  padding: 1rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.88) 100%);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.still-card:hover .still-caption,
.still-card:focus-visible .still-caption,
.still-card:focus-within .still-caption {
  opacity: 1;
  transform: translateY(0);
}

.still-project {
  margin: 0;
  color: rgba(190, 216, 190, 0.76);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.still-title {
  margin: 0;
  max-width: 12ch;
  font-family: "Instrument Serif", serif;
  font-size: clamp(1.65rem, 2.3vw, 2.3rem);
  line-height: 0.94;
  color: #f6f0e8;
}

.project-view {
  display: grid;
  gap: 1.2rem;
}

.project-back,
.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--paper-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-back {
  justify-self: start;
}

.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 1rem;
}

.project-hero-media,
.project-sidebar-card,
.project-gallery-card {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  contain: layout paint;
}

.project-hero-media {
  position: relative;
  overflow: hidden;
  min-height: clamp(360px, 56vw, 680px);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.project-hero-image[hidden] {
  display: none;
}

.project-hero-copy {
  display: grid;
  align-content: end;
  gap: 0.9rem;
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid rgba(93, 111, 70, 0.14);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow);
}

.project-kicker {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.project-title {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.92;
}

.project-summary {
  margin: 0;
  max-width: 28ch;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.8;
}

.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.7fr);
  gap: 1rem;
  align-items: start;
  content-visibility: auto;
  contain-intrinsic-size: 1px 980px;
}

.project-player-shell {
  display: grid;
  gap: 0.75rem;
  content-visibility: auto;
  contain-intrinsic-size: 1px 520px;
}

.project-player-frame {
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  background: #0a0f0a;
}

.project-player-embed,
.project-player-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.project-body {
  display: block;
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid rgba(93, 111, 70, 0.14);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow);
  contain: layout paint;
}

.project-body p {
  margin: 0;
  max-width: 66ch;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.78;
  text-wrap: pretty;
}

.project-body p + p {
  margin-top: 1rem;
}

.project-sidebar {
  display: grid;
  gap: 1rem;
}

.project-sidebar-card {
  padding: 1.2rem;
  border: 1px solid rgba(93, 111, 70, 0.14);
  background: rgba(255, 255, 255, 0.3);
}

.project-facts {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.project-fact {
  display: grid;
  gap: 0.2rem;
}

.project-fact-label {
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-fact-value {
  color: var(--ink);
  line-height: 1.6;
}

.project-credits {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.project-credits li {
  color: var(--ink);
  line-height: 1.6;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  content-visibility: auto;
  contain-intrinsic-size: 1px 960px;
}

.project-gallery-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.3);
}

.project-gallery-trigger {
  appearance: none;
  width: 100%;
  padding: 0;
  border: 0;
  text-align: left;
  cursor: zoom-in;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.project-gallery-media {
  position: relative;
  min-height: 240px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: transform 320ms ease;
}

.project-gallery-trigger:hover .project-gallery-media,
.project-gallery-trigger:focus-visible .project-gallery-media {
  transform: scale(1.03);
}

.project-gallery-open {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(6, 9, 6, 0.78);
  color: #f5f0e8;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-gallery-copy {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
}

.project-gallery-title {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-size: 1.45rem;
  line-height: 0.95;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 8, 0.82);
  backdrop-filter: blur(10px);
}

.gallery-lightbox-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  width: min(1280px, 100%);
}

.gallery-lightbox-figure {
  margin: 0;
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.gallery-lightbox-stage {
  position: relative;
  height: min(76vh, 960px);
  overflow: hidden;
}

.gallery-lightbox-slide {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 78%;
  display: grid;
  place-items: center;
  transform-origin: center;
  pointer-events: none;
}

.gallery-lightbox-stage.is-transitioning .gallery-lightbox-slide {
  transition:
    transform 340ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 340ms ease,
    filter 340ms ease;
}

.gallery-lightbox-slide-prev,
.gallery-lightbox-slide-next {
  width: 30%;
  opacity: 0.32;
  filter: saturate(0.85) brightness(0.8);
}

.gallery-lightbox-slide-prev {
  z-index: 1;
  transform: translateX(calc(-50% - 112%)) scale(0.86);
}

.gallery-lightbox-slide-current {
  z-index: 2;
  transform: translateX(-50%) scale(1);
}

.gallery-lightbox-slide-next {
  z-index: 1;
  transform: translateX(calc(-50% + 112%)) scale(0.86);
}

.gallery-lightbox-stage.is-animating-next .gallery-lightbox-slide-prev {
  transform: translateX(calc(-50% - 164%)) scale(0.8);
  opacity: 0;
}

.gallery-lightbox-stage.is-animating-next .gallery-lightbox-slide-current {
  transform: translateX(calc(-50% + 112%)) scale(0.86);
  opacity: 0.32;
  filter: saturate(0.85) brightness(0.8);
}

.gallery-lightbox-stage.is-animating-next .gallery-lightbox-slide-next {
  transform: translateX(-50%) scale(1);
  opacity: 1;
  filter: none;
  z-index: 2;
}

.gallery-lightbox-stage.is-animating-prev .gallery-lightbox-slide-prev {
  transform: translateX(-50%) scale(1);
  opacity: 1;
  filter: none;
  z-index: 2;
}

.gallery-lightbox-stage.is-animating-prev .gallery-lightbox-slide-current {
  transform: translateX(calc(-50% - 112%)) scale(0.86);
  opacity: 0.32;
  filter: saturate(0.85) brightness(0.8);
}

.gallery-lightbox-stage.is-animating-prev .gallery-lightbox-slide-next {
  transform: translateX(calc(-50% + 164%)) scale(0.8);
  opacity: 0;
}

.gallery-lightbox-slide.is-empty {
  opacity: 0;
}

.gallery-lightbox-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  background: rgba(0, 0, 0, 0.2);
}

.gallery-lightbox-side-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.28);
  background: rgba(0, 0, 0, 0.22);
}

.gallery-lightbox-caption {
  display: grid;
  gap: 0.35rem;
  padding: 0 0.2rem;
  color: #f1ece4;
}

.gallery-lightbox-meta {
  margin: 0;
  color: rgba(241, 236, 228, 0.66);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gallery-lightbox-title {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 0.95;
}

.gallery-lightbox-note {
  margin: 0;
  max-width: 72ch;
  color: rgba(241, 236, 228, 0.8);
  line-height: 1.7;
}

.gallery-lightbox-note:empty {
  display: none;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
  appearance: none;
  border: 1px solid rgba(240, 235, 227, 0.2);
  background: rgba(240, 235, 227, 0.12);
  color: #f5f0e8;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.gallery-lightbox-close {
  position: absolute;
  top: -0.25rem;
  right: 0;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
}

.gallery-lightbox-nav {
  z-index: 3;
  min-width: 72px;
  height: 54px;
  padding: 0 0.9rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.gallery-lightbox-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.about-editorial {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid rgba(93, 111, 70, 0.1);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(93, 111, 70, 0.08), transparent 24%),
    linear-gradient(180deg, #ede8df 0%, #e3ddd6 100%);
  color: #4f4a44;
  box-shadow: var(--shadow);
  content-visibility: auto;
  contain-intrinsic-size: 1px 1200px;
}

.about-top {
  display: grid;
  grid-template-columns: 120px minmax(220px, 300px) minmax(320px, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}

.about-heading-column {
  padding-top: 0.2rem;
}

.about-caption {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--accent-soft);
}

.about-intro,
.about-longform {
  display: block;
}

.about-intro p,
.about-longform p {
  margin: 0;
  max-width: 66ch;
  color: #5b5650;
  font-size: clamp(0.95rem, 1.15vw, 1.02rem);
  line-height: 1.78;
  text-wrap: pretty;
}

.about-intro p + p,
.about-longform p + p {
  margin-top: 1rem;
}

.about-intro {
  max-width: 34ch;
}

.about-portrait-frame {
  justify-self: end;
  width: min(100%, 430px);
}

.about-portrait {
  width: 100%;
  aspect-ratio: 0.78;
  border-radius: 2px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.about-longform {
  margin-top: clamp(1.35rem, 3vw, 2rem);
  max-width: 76ch;
}

.about-statement {
  display: grid;
  gap: 0.5rem;
  margin-top: clamp(1.35rem, 3vw, 2rem);
  padding: 1.2rem 0 0;
  border-top: 1px solid rgba(93, 111, 70, 0.12);
}

.about-statement-copy {
  margin: 0;
  max-width: 22ch;
  font-family: "Instrument Serif", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: #4a463f;
}

.about-foot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: clamp(1.6rem, 3vw, 2.2rem);
  padding-top: 1.2rem;
  border-top: 1px solid rgba(93, 111, 70, 0.12);
}

.about-foot-card {
  padding: 1.2rem 1.25rem;
  border: 1px solid rgba(93, 111, 70, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.28);
}

.about-foot-card .sidebar-label {
  color: #767069;
}

.about-foot-card .service-list li {
  color: #5b5650;
  border-bottom-color: rgba(79, 74, 68, 0.1);
}

.about-foot-card .contact-label {
  color: #767069;
}

.about-foot-card .contact-value {
  color: #3f3a34;
}

.about-card,
.sidebar-card {
  border-radius: var(--radius-xl);
  padding: clamp(1.3rem, 3vw, 2rem);
}

.sidebar-stack {
  display: grid;
  gap: 1rem;
}

.service-list,
.contact-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.service-list {
  display: grid;
  gap: 0.65rem;
}

.service-list li {
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(243, 233, 220, 0.08);
  color: var(--muted);
}

.contact-list {
  display: grid;
  gap: 0.9rem;
}

.contact-list a,
.contact-list span {
  display: block;
}

.about-intro a,
.about-longform a,
.about-cta-copy a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(93, 111, 70, 0.3);
  text-underline-offset: 0.18em;
}

.about-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.about-tag {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(93, 111, 70, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  color: #4f4a44;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-cta {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.35rem;
  padding: 1.3rem 1.35rem;
  border: 1px solid rgba(93, 111, 70, 0.12);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(93, 111, 70, 0.08), rgba(255, 255, 255, 0.38)),
    rgba(255, 255, 255, 0.28);
  box-shadow: var(--shadow);
}

.about-cta-title {
  margin: 0;
  max-width: 18ch;
  font-family: "Instrument Serif", serif;
  font-size: clamp(1.7rem, 2.7vw, 2.3rem);
  line-height: 0.98;
  color: #47423b;
}

.about-cta-copy {
  margin: 0;
  max-width: 60ch;
  color: #5b5650;
  line-height: 1.8;
}

.contact-label {
  margin-bottom: 0.2rem;
  color: var(--ink-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.contact-value {
  font-size: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise-in 680ms ease forwards;
}

.delay-1 {
  animation-delay: 80ms;
}

.delay-2 {
  animation-delay: 160ms;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .hero-carousel-row {
    animation: none;
    transform: translate3d(0, 0, 0) !important;
  }

  .hero-carousel-row-secondary {
    display: none;
  }
}

@media (max-width: 1080px) {
  .section-head {
    grid-template-columns: 1fr;
    gap: 0;
    align-items: start;
  }

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

  .topbar {
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 0.7rem;
  }

  .wordmark {
    justify-self: center;
    order: 0;
  }

  .topbar-tabs {
    order: 1;
  }

  .topbar-group {
    justify-content: center;
  }

  .topbar-links {
    order: 2;
    justify-content: center;
  }

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

  .still-card--wide {
    grid-column: span 2;
    aspect-ratio: 3.16;
  }

  .still-card--full {
    grid-column: 1 / -1;
    aspect-ratio: 3.16;
  }

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

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

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

  .section-copy {
    max-width: 54ch;
  }

  .about-top {
    grid-template-columns: 1fr;
  }

  .about-heading-column,
  .about-intro,
  .about-portrait-frame {
    max-width: 100%;
  }

  .about-intro {
    max-width: 44ch;
  }

  .about-portrait-frame {
    justify-self: start;
    width: min(100%, 520px);
  }

  .about-foot {
    grid-template-columns: 1fr;
  }

  .gallery-lightbox-dialog {
    grid-template-columns: 1fr;
  }

  .gallery-lightbox-close {
    top: 0;
  }

  .gallery-lightbox-stage {
    height: min(62vh, 720px);
  }

  .gallery-lightbox-slide-prev,
  .gallery-lightbox-slide-next {
    width: 24%;
  }
}

@media (max-width: 900px) {
  .site-shell {
    width: min(100% - 1.25rem, 100%);
  }

  .topbar {
    padding: 0.7rem;
  }

  .topbar-pill {
    padding: 0.48rem 0.82rem;
    font-size: 0.64rem;
  }

  .wordmark {
    font-size: clamp(1.55rem, 4.8vw, 2.1rem);
  }

  .hero-media {
    min-height: clamp(10.8rem, 26vh, 14rem);
  }

  .hero-copy-shell {
    width: min(100% - 1.15rem, 760px);
  }

  .hero-kicker {
    font-size: 0.62rem;
    letter-spacing: 0.15em;
  }

  .hero-title {
    font-size: clamp(1.85rem, 6vw, 3.15rem);
  }

  .hero-title span:last-child {
    font-size: clamp(2rem, 6.4vw, 3.35rem);
  }

  .project-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }

  .project-summary {
    max-width: none;
  }

  .project-hero-media {
    min-height: clamp(20rem, 56vw, 30rem);
  }

  .project-gallery-media {
    min-height: 220px;
  }

  .about-editorial {
    padding: 1.25rem;
  }

  .practice-card {
    padding: 0.95rem;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 0.9rem, 100%);
    padding-bottom: calc(3.5rem + var(--safe-bottom));
  }

  .site-header {
    top: calc(0.35rem + var(--safe-top));
    padding-bottom: 0.7rem;
  }

  .topbar {
    gap: 0.65rem;
    padding: 0.68rem;
    border-radius: 24px;
  }

  .topbar-group {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
    padding-bottom: 0;
    scrollbar-width: none;
  }

  .topbar-tabs,
  .topbar-links {
    justify-content: center;
  }

  .topbar-pill {
    flex: 0 0 auto;
    min-height: 40px;
  }

  .wordmark {
    width: 100%;
    justify-self: center;
    text-align: center;
    font-size: clamp(1.3rem, 7vw, 1.8rem);
  }

  .hero-media {
    min-height: clamp(10rem, 28vh, 11.8rem);
    border-radius: 24px;
  }

  .hero-carousel {
    padding: 0.55rem 0;
  }

  .hero-carousel-row {
    gap: 0.45rem;
  }

  .hero-carousel-item {
    flex-basis: clamp(6.6rem, 28vw, 8.4rem);
    border-radius: 16px;
  }

  .hero-copy-shell {
    width: min(100% - 0.85rem, 860px);
    padding: 0.35rem 0.65rem;
  }

  .hero-copy {
    justify-items: center;
    text-align: center;
  }

  .hero-kicker {
    font-size: 0.58rem;
    letter-spacing: 0.14em;
  }

  .hero-title {
    font-size: clamp(1.7rem, 9vw, 2.55rem);
  }

  .hero-title span:last-child {
    font-size: clamp(1.85rem, 9.8vw, 2.8rem);
  }

  .section-head {
    gap: 0;
    margin-bottom: 0.95rem;
  }

  .practice-band {
    margin-bottom: 1rem;
  }

  .practice-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .section-title {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .section-copy {
    max-width: none;
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .videos-grid,
  .stills-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding: 0;
    background: transparent;
    overflow: visible;
  }

  .still-card--wide,
  .still-card--full {
    grid-column: auto;
    aspect-ratio: 1.18;
  }

  .video-card,
  .still-card {
    border-radius: 22px;
    aspect-ratio: 1.18;
  }

  .project-hero-media {
    min-height: clamp(18rem, 52vh, 24rem);
  }

  .project-gallery-media {
    min-height: 200px;
  }

  .video-content,
  .still-caption {
    opacity: 1;
    transform: translateY(0);
  }

  .video-hover-meta {
    opacity: 1;
    transform: translateY(0);
  }

  .video-title,
  .still-title {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .video-content,
  .about-card,
  .sidebar-card,
  .about-editorial,
  .about-foot-card,
  .project-body,
  .project-sidebar-card,
  .project-hero-copy {
    padding: 1.1rem;
  }

  .project-view {
    gap: 1rem;
  }

  .project-back,
  .project-link {
    min-height: 42px;
    padding: 0.72rem 0.95rem;
    font-size: 0.62rem;
  }

  .project-hero {
    gap: 0.8rem;
  }

  .project-hero-copy {
    gap: 0.7rem;
  }

  .project-kicker {
    font-size: 0.64rem;
  }

  .project-title {
    font-size: clamp(2.15rem, 11vw, 3.1rem);
  }

  .project-summary,
  .project-body p,
  .project-fact-value,
  .project-credits li {
    font-size: 0.95rem;
    line-height: 1.7;
  }

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

  .project-gallery {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .project-gallery-copy {
    padding: 0.9rem;
  }

  .project-gallery-title {
    font-size: 1.28rem;
  }

  .about-editorial {
    padding: 1rem;
    border-radius: 24px;
  }

  .about-caption {
    font-size: 1.2rem;
  }

  .about-intro {
    max-width: none;
  }

  .about-intro p,
  .about-longform p {
    font-size: 0.94rem;
    line-height: 1.7;
  }

  .about-foot {
    gap: 1rem;
  }

  .about-statement-copy {
    font-size: clamp(1.8rem, 9vw, 2.45rem);
  }

  .about-cta {
    padding: 1.05rem;
  }

  .about-cta-title {
    max-width: none;
    font-size: clamp(1.55rem, 8vw, 2rem);
  }

  .service-list,
  .contact-list {
    margin-top: 0.85rem;
  }

  .contact-value {
    font-size: 0.94rem;
  }

  .gallery-lightbox {
    padding: 0.75rem;
  }

  .gallery-lightbox-stage {
    height: min(54vh, 520px);
  }

  .gallery-lightbox-slide-prev,
  .gallery-lightbox-slide-next {
    width: 15%;
    opacity: 0.14;
  }

  .gallery-lightbox-nav {
    position: fixed;
    bottom: calc(0.9rem + var(--safe-bottom));
    z-index: 2;
    min-width: 68px;
    height: 50px;
  }

  .gallery-lightbox-prev {
    left: 1rem;
  }

  .gallery-lightbox-next {
    right: 1rem;
  }

  .gallery-lightbox-image,
  .gallery-lightbox-side-image {
    border-radius: 14px;
  }

  .gallery-lightbox-caption {
    gap: 0.2rem;
    padding: 0 0.1rem;
  }

  .gallery-lightbox-title {
    font-size: clamp(1.35rem, 7.4vw, 1.9rem);
  }
}

@media (max-width: 560px) {
  body::before,
  body::after {
    opacity: 0.24;
    filter: blur(64px);
  }

  .site-shell {
    width: min(100% - 0.65rem, 100%);
  }

  .topbar {
    padding: 0.58rem;
    border-radius: 22px;
  }

  .topbar-pill {
    min-height: 38px;
    padding: 0.45rem 0.75rem;
    font-size: 0.6rem;
  }

  .hero-media {
    border-radius: 20px;
  }

  .hero-carousel-row-secondary {
    display: none;
  }

  .hero-carousel-item {
    flex-basis: clamp(6rem, 34vw, 7.2rem);
    border-radius: 14px;
  }

  .video-card,
  .still-card {
    aspect-ratio: 1.08;
    border-radius: 18px;
  }

  .still-card--wide,
  .still-card--full {
    aspect-ratio: 1.08;
  }

  .project-hero-media,
  .project-player-frame,
  .project-body,
  .project-sidebar-card,
  .project-gallery-card {
    border-radius: 20px;
  }

  .project-gallery-open {
    right: 0.8rem;
    bottom: 0.8rem;
    min-height: 32px;
    padding: 0.42rem 0.72rem;
    font-size: 0.58rem;
  }

  .gallery-lightbox-stage {
    height: min(50vh, 460px);
  }

  .gallery-lightbox-slide-prev,
  .gallery-lightbox-slide-next {
    width: 10%;
    opacity: 0.1;
  }

  .gallery-lightbox-close {
    top: 0;
    right: 0;
  }
}
