:root {
  --page: #ffffff;
  --ink: #1d2024;
  --muted: #777a80;
  --line: #dddeda;
  --soft: #efefeb;
  --white: #ffffff;
  --content-max: 1180px;
  --content-gutter: clamp(24px, 4vw, 56px);
  --body-font: Inter, "Helvetica Neue", Arial, sans-serif;
  --display-font: Corbel, "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  padding-bottom: 72px;
  background: var(--page);
  color: var(--ink);
  font-family: var(--display-font);
  text-transform: uppercase;
}

body::selection {
  background: #1d2024;
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

input,
textarea {
  font: inherit;
  text-transform: none;
}

img {
  display: block;
  width: 100%;
  -webkit-user-drag: none;
  user-select: none;
}

.tile,
.project-hero,
.project-gallery,
.lightbox {
  user-select: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(29, 32, 36, 0.06);
}

.top-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(1120px, calc(100% - 34px));
  min-height: 116px;
  margin: 0 auto;
  padding: 10px 0 12px;
}

.filter-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: clamp(16px, 2.4vw, 34px);
  margin: 0 auto;
}

.filter {
  position: relative;
  min-height: 24px;
  padding: 0 0 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  color: #80848a;
  font-size: 11pt;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter.is-active {
  background: transparent;
  color: var(--ink);
}

.filter.is-active::after {
  position: absolute;
  left: 25%;
  right: 25%;
  bottom: 0;
  height: 2px;
  content: "";
  background: #aeb3b8;
}

.wordmark {
  display: grid;
  justify-items: center;
  min-width: 210px;
  min-height: 86px;
  text-align: center;
  text-transform: uppercase;
}

.wordmark::before {
  display: block;
  width: 286px;
  height: 146px;
  content: "";
  background: url("assets/images/brand/joshua-lawrence-studios-logo-cropped.png") center / contain no-repeat;
}

.wordmark > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wordmark small {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wordmark-text {
  font-size: clamp(1.02rem, 1.8vw, 1.32rem);
  font-weight: 500;
  letter-spacing: 0.52em;
  line-height: 1;
  text-indent: 0.52em;
}

.menu-button {
  position: absolute;
  right: 0;
  top: 36px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  min-height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
}

.menu-panel {
  position: absolute;
  top: 84px;
  right: 0;
  display: grid;
  min-width: 190px;
  padding: 12px;
  border: 1px solid rgba(29, 32, 36, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 54px rgba(24, 26, 30, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.menu-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.menu-panel a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.menu-panel a:hover,
.menu-panel a:focus-visible {
  background: #f3f3f0;
}

.intro {
  width: min(1120px, calc(100% - 34px));
  margin: 0 auto;
  padding: clamp(6px, 1vw, 12px) 0 0;
}

.intro p {
  max-width: 780px;
  margin: 0 auto;
  color: #42464d;
  font-family: var(--display-font);
  font-size: clamp(1rem, 1.55vw, 1.16rem);
  line-height: 1.65;
  text-align: center;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: min(1120px, calc(100% - 34px));
  margin: clamp(18px, 2.4vw, 34px) auto 0;
  padding-bottom: 78px;
}

.tile {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #161719;
  isolation: isolate;
}

.tile-large,
.tile-wide {
  grid-column: auto;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(0.96) brightness(0.92);
  backface-visibility: hidden;
  transform: translateZ(0);
  transition:
    filter 320ms ease,
    opacity 260ms ease,
    transform 420ms ease;
  will-change: filter, transform;
}

.tile::after {
  content: "";
  display: none;
}

.tile span {
  display: none;
}

.tile span {
  display: none;
}

.tile i {
  display: none;
}

.tile:hover img,
.tile:focus-visible img,
.tile:active img {
  filter: saturate(1.18) contrast(1.08) brightness(1.02);
  transform: translateZ(0) scale(1.055);
}

.tile:hover i,
.tile:focus-visible i,
.tile:active i {
  transform: translateX(6px);
}

.tile.is-hidden {
  display: none;
}

.bio-section,
.shop-section {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  gap: clamp(22px, 4vw, 58px);
  width: min(1120px, calc(100% - 34px));
  margin: 0 auto;
  padding: clamp(78px, 9vw, 126px) 0;
  border-bottom: 1px solid var(--line);
}

.section-kicker {
  color: #555a62;
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.bio-copy h1,
.shop-heading h2 {
  max-width: 800px;
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(2rem, 5vw, 4.8rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.08;
}

.bio-copy p,
.shop-heading p {
  max-width: 700px;
  margin: 28px 0 0;
  color: #53575f;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.75;
}

.bio-page {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  width: min(1120px, calc(100% - 34px));
  margin: 0 auto;
  padding: clamp(38px, 5vw, 68px) 0 96px;
}

.bio-portraits {
  line-height: 0;
}

.bio-portrait-grid-image {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.bio-copy-panel {
  max-width: 620px;
  align-self: start;
  padding-top: 0;
}

.bio-copy-panel h1 {
  margin: 0;
  color: #4f545b;
  font-size: 11pt;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.45;
}

.bio-copy-panel p:not(.section-kicker) {
  margin: 22px 0 0;
  color: #000;
  font-size: 10pt;
  line-height: 1.62;
}

.bio-copy-panel .section-link {
  margin-top: 28px;
}

.section-link {
  align-self: start;
  display: inline-flex;
  justify-content: center;
  min-width: 150px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 780;
  letter-spacing: 0.14em;
  line-height: 44px;
  text-transform: uppercase;
  white-space: nowrap;
}

.simple-page {
  width: min(920px, calc(100% - 34px));
  margin: 0 auto;
  padding: clamp(72px, 12vw, 148px) 0 clamp(120px, 14vw, 180px);
}

.simple-page h1 {
  max-width: 820px;
  margin: 18px 0 0;
  font-family: var(--display-font);
  font-size: clamp(2.3rem, 6vw, 5.4rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.08;
}

.simple-page p:not(.section-kicker) {
  max-width: 680px;
  margin: 30px 0 0;
  color: #53575f;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.8;
}

.simple-page .section-link {
  margin-top: 34px;
}

.shop-page {
  width: min(980px, calc(100% - 34px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 104px) 0 clamp(120px, 14vw, 180px);
}

.shop-intro {
  display: grid;
  grid-template-columns: 170px minmax(0, 760px);
  gap: clamp(24px, 5vw, 68px);
  margin-bottom: clamp(38px, 6vw, 70px);
}

.shop-page-minimal {
  padding-top: clamp(28px, 5vw, 62px);
}

.shop-intro h1 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  font-weight: 400;
  line-height: 1.08;
}

.shop-intro p {
  max-width: 640px;
  margin: 24px 0 0;
  color: #53575f;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.75;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
}

.product-grid-expanded {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  max-width: 100%;
  border: 0;
  background: #fff;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}

.product-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.88) contrast(0.98);
  transition: filter 180ms ease, transform 180ms ease;
}

.product-card:hover img {
  filter: saturate(1.03) contrast(1.02);
}

.product-content {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: clamp(14px, 1.7vw, 20px) 2px 0;
}

.product-meta {
  color: #70747a;
  font-size: 11pt;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card h2 {
  margin: 0;
  font-family: var(--display-font);
  color: #000;
  font-size: 11pt;
  font-weight: 800;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.product-card p {
  margin: 0;
  color: #000;
  font-size: 10pt;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.product-footer {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  margin-top: 4px;
}

.product-price {
  color: #000;
  font-size: 11pt;
  font-weight: 800;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #000;
  font-size: 10pt;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.product-link::after {
  content: "\2192";
  font-size: 11pt;
  line-height: 1;
  transition: transform 180ms ease;
}

.product-card:hover .product-link::after,
.product-card:focus-visible .product-link::after {
  transform: translateX(4px);
}

.shop-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 10pt;
  text-align: center;
}

.product-page {
  width: min(1120px, calc(100% - 34px));
  margin: 0 auto;
  padding: clamp(22px, 4vw, 52px) 0 clamp(100px, 12vw, 150px);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
}

.product-gallery-viewer {
  width: min(100%, 420px);
  min-width: 0;
  max-width: 100%;
  justify-self: start;
  overflow: hidden;
}

.product-gallery-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  background: #f4f4f1;
  touch-action: pan-y;
}

.product-gallery-track {
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  transition: transform 260ms ease;
  will-change: transform;
}

.product-gallery-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.product-gallery-slide img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.01);
}

.product-gallery-arrow {
  position: absolute;
  top: 50%;
  width: 34px;
  height: 44px;
  border: 0;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  transform: translateY(-50%);
}

.product-gallery-prev {
  left: 0;
}

.product-gallery-next {
  right: 0;
}

.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(54px, 74px));
  gap: 8px;
  margin-top: 10px;
}

.product-gallery-thumb {
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  opacity: 0.55;
}

.product-gallery-thumb.is-active {
  border-color: var(--ink);
  opacity: 1;
}

.product-gallery-thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.preset-comparisons {
  display: grid;
  gap: 14px;
  width: min(100%, 420px);
  justify-self: start;
}

.before-after {
  --reveal: 50%;
  position: relative;
  display: none;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #f4f4f1;
  touch-action: none;
}

.before-after.is-active {
  display: block;
}

.before-after img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.before-after-image {
  filter: saturate(0.72) contrast(0.94);
}

.before-after-after {
  position: absolute;
  inset: 0;
  width: 100%;
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--reveal)) 0 0);
}

.before-after-after img {
  filter: saturate(1.04) contrast(1.04);
}

.before-after-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--reveal);
  width: 2px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.14);
  transform: translateX(-50%);
  pointer-events: none;
}

.before-after-handle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: #111;
  content: "\2039  \203A";
  font-size: 1rem;
  line-height: 31px;
  text-align: center;
  transform: translate(-50%, -50%);
}

.before-after-label {
  position: absolute;
  bottom: 12px;
  z-index: 2;
  color: white;
  font-size: 9pt;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.before-after-before-label {
  right: 14px;
}

.before-after-after-label {
  left: 14px;
}

.before-after-range {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.preset-comparison-thumbs {
  margin-top: -4px;
}

.product-detail-copy {
  display: grid;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
  padding-top: 0;
}

.product-back {
  width: fit-content;
  color: #6f747a;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-detail-copy h1 {
  max-width: 560px;
  margin: 0;
  font-family: var(--display-font);
  color: #000;
  font-size: 11pt;
  font-weight: 800;
  line-height: 1.22;
}

.product-detail-copy p {
  max-width: 560px;
  margin: 0;
  color: #000;
  font-size: 10pt;
  line-height: 1.55;
}

.product-includes {
  display: grid;
  gap: 10px;
  margin: 4px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(29, 32, 36, 0.12);
  color: #000;
  font-size: 10pt;
  line-height: 1.5;
  list-style: none;
}

.product-includes li::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  margin-right: 12px;
  background: rgba(29, 32, 36, 0.42);
  vertical-align: middle;
}

.product-purchase {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(29, 32, 36, 0.12);
}

.product-return {
  color: #70747a;
  font-size: 10pt;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.payment-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: #fff;
  cursor: default;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.payment-button:disabled {
  opacity: 1;
}

a.payment-button {
  cursor: pointer;
}

.waitlist-form {
  display: grid;
  gap: 12px;
  width: min(100%, 520px);
  margin-top: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.waitlist-form h2 {
  margin: 0 0 2px;
  color: #70747a;
  font-size: 11pt;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.form-status {
  margin: 0 0 4px;
  color: #000;
  font-family: var(--body-font);
  font-size: 10pt;
  line-height: 1.45;
  text-transform: none;
}

.form-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.waitlist-form label {
  display: grid;
  gap: 6px;
  color: #70747a;
  font-size: 9pt;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.waitlist-form input,
.waitlist-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: #000;
  font-family: var(--body-font);
  font-size: 10pt;
  line-height: 1.35;
}

.waitlist-form input {
  min-height: 42px;
  padding: 0 10px;
}

.waitlist-form textarea {
  min-height: 104px;
  padding: 10px;
  resize: vertical;
}

.waitlist-form .payment-button {
  width: fit-content;
  min-width: 128px;
  margin-top: 2px;
}

.project-page {
  width: min(1120px, calc(100% - 34px));
  margin: 0 auto;
  padding: clamp(14px, 2vw, 28px) 0 clamp(88px, 10vw, 124px);
}

.project-hero img {
  width: 100%;
  height: min(575px, 55vh);
  object-fit: cover;
  cursor: zoom-in;
}

.project-video {
  position: relative;
  overflow: hidden;
  background: #f4f4f2;
  aspect-ratio: 16 / 9;
}

.project-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #141414;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  transition: background 180ms ease, transform 180ms ease;
}

.video-play:hover {
  background: white;
  transform: translate(-50%, -50%) scale(1.04);
}

.project-video.is-playing .video-play {
  display: none;
}

.project-intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(18px, 4vw, 44px);
  padding: clamp(16px, 2.4vw, 24px) 2vw clamp(14px, 1.8vw, 20px);
}

.project-title h1 {
  margin: 0 0 12px;
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  line-height: 1.18;
  text-transform: uppercase;
}

.project-details {
  display: grid;
  grid-template-columns: 132px 1fr;
  column-gap: 22px;
  row-gap: 6px;
  margin-left: 0;
  position: relative;
  background: linear-gradient(#aeb3b8, #aeb3b8) no-repeat 144px 0 / 2px 100%;
}

.project-details::after {
  content: none;
}

.detail-row {
  display: contents;
  color: #5c6066;
  font-size: 0.78rem;
  line-height: 1.18;
}

.detail-row dt {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  grid-column: 1;
  color: var(--ink);
  font-size: 0.6rem;
  font-weight: 760;
  letter-spacing: 0.06em;
  padding-right: 10px;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}

.detail-row dd {
  grid-column: 2;
  margin: 0;
  padding-left: 0;
}

.project-copy {
  display: grid;
  gap: 10px;
  max-width: 500px;
}

.project-copy h2 {
  margin: 0 0 3px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.project-copy p {
  margin: 0;
  color: #565a61;
  font-size: 0.82rem;
  line-height: 1.38;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.project-gallery img {
  aspect-ratio: 1;
  object-fit: cover;
  cursor: zoom-in;
}

.project-next {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.project-next a {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
}

.lightbox.is-open {
  display: grid;
}

.lightbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lightbox-close,
.lightbox-arrow {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.lightbox-close {
  min-height: 38px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lightbox-count {
  color: rgba(29, 32, 36, 0.58);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.lightbox-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  touch-action: pan-y;
}

.lightbox-track {
  display: flex;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.lightbox-slide {
  display: grid;
  flex: 0 0 100%;
  place-items: center;
  min-width: 0;
  height: 100%;
  padding: 0 clamp(14px, 5vw, 74px);
}

.lightbox-slide img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 150px);
  object-fit: contain;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 72px;
  color: rgba(29, 32, 36, 0.72);
  font-size: 2.6rem;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 0;
}

.lightbox-next {
  right: 0;
}

.lightbox-caption {
  min-height: 20px;
  color: rgba(29, 32, 36, 0.58);
  font-size: 0.78rem;
  text-align: center;
}

.lightbox-rights {
  margin: 0;
  color: rgba(29, 32, 36, 0.46);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.shop-section {
  grid-template-columns: 170px minmax(0, 1fr);
}

.shop-grid {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.shop-grid article {
  background: var(--white);
}

.shop-grid img {
  aspect-ratio: 1.15;
  object-fit: cover;
}

.shop-grid div {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.shop-grid span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.shop-grid strong {
  font-size: 1.16rem;
  font-weight: 620;
}

.shop-grid button {
  min-height: 42px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  min-height: 54px;
  padding: 0 clamp(16px, 4vw, 48px);
  border-top: 1px solid rgba(29, 32, 36, 0.08);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}

.site-footer > a {
  justify-self: start;
  font-size: 11pt;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
}

.socials {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2.4vw, 24px);
}

.socials a {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  min-height: 28px;
  color: #353941;
  font-size: 11pt;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.socials svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
}

.site-footer p {
  justify-self: end;
  margin: 0;
  color: #9a9da2;
  font-size: 11pt;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.top-nav,
.intro,
.portfolio-grid,
.bio-section,
.shop-section,
.bio-page,
.shop-page,
.product-page,
.project-page {
  width: min(var(--content-max), calc(100% - (var(--content-gutter) * 2)));
}

.shop-page {
  max-width: 1060px;
}

@media (min-width: 681px) and (max-width: 1100px) {
  :root {
    --content-gutter: clamp(30px, 5vw, 58px);
  }

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

  .tile,
  .tile-large,
  .tile-wide {
    grid-column: span 1;
  }

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

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

  .product-page {
    padding-top: clamp(30px, 5vw, 56px);
  }

  .product-detail {
    grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(26px, 4vw, 48px);
  }
}

@media (max-width: 940px) {
  .top-nav {
    min-height: 0;
    padding: 22px 0;
  }

  .portfolio-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tile,
  .tile-large,
  .tile-wide {
    grid-column: span 1;
  }

  .bio-section,
  .shop-section,
  .shop-intro,
  .project-intro,
  .bio-page {
    grid-template-columns: 1fr;
  }

  .shop-grid {
    grid-column: auto;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 4px;
    padding: 10px 16px;
  }

  .site-footer > a,
  .site-footer p {
    justify-self: center;
  }
}

@media (min-width: 681px) and (max-width: 1100px) {
  .portfolio-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tile,
  .tile-large,
  .tile-wide {
    grid-column: span 1;
  }

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

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

@media (max-width: 680px) {
  :root {
    --content-gutter: clamp(18px, 5vw, 24px);
  }

  .wordmark {
    min-width: 0;
    width: 100%;
  }

  .wordmark::before {
    width: 246px;
    height: 126px;
  }

  .filter-menu {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 18px;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filter-menu::-webkit-scrollbar {
    display: none;
  }

  .filter {
    min-height: 22px;
    font-size: clamp(0.52rem, 2.35vw, 0.66rem);
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  .wordmark > span {
    font-size: 0.92rem;
    letter-spacing: 0.38em;
    text-indent: 0.38em;
  }

  .wordmark small {
    letter-spacing: 0.42em;
    text-indent: 0.42em;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-grid {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .product-grid-expanded {
    grid-template-columns: 1fr;
    gap: 68px;
  }

  .product-card {
    grid-template-columns: 1fr;
    padding-bottom: 8px;
  }

  .product-card img {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .product-content {
    gap: 6px;
    padding: 11px 2px 0;
  }

  .product-card h2 {
    font-size: 11pt;
  }

  .product-card p {
    font-size: 0.78rem;
    line-height: 1.42;
  }

  .product-footer {
    align-items: flex-end;
    gap: 10px;
  }

  .product-page {
    padding-top: 22px;
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
  }

  .product-gallery-viewer {
    width: min(100%, 340px);
    justify-self: center;
  }

  .preset-comparisons {
    width: min(100%, 340px);
    justify-self: center;
  }

  .product-gallery-slide img {
    aspect-ratio: 4 / 5;
  }

  .product-gallery-thumbs {
    grid-auto-flow: column;
    grid-auto-columns: 54px;
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .product-detail-copy {
    gap: 13px;
    width: 100%;
  }

  .product-detail-copy h1 {
    font-size: clamp(1.75rem, 9vw, 2.7rem);
  }

  .product-purchase {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .product-return {
    width: fit-content;
    align-self: center;
    margin-top: 2px;
  }

  .payment-button {
    width: 100%;
  }

  .tile span {
    left: 22px;
  }

  .tile span {
    bottom: 18px;
    max-width: calc(100% - 44px);
    gap: 9px;
    font-size: 0.72rem;
    letter-spacing: 0.24em;
  }

  .tile i {
    font-size: 1.2rem;
  }

  .bio-section,
  .shop-section {
    padding: 64px 0;
  }

  .bio-page {
    padding: 42px 0 96px;
  }

  .bio-copy-panel {
    max-width: none;
  }

  .project-intro {
    padding: 28px 0 24px;
  }

  .project-hero img {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .detail-row {
    grid-template-columns: 96px 1fr;
    gap: 14px;
  }

  .project-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-next {
    flex-direction: column;
  }

  .lightbox {
    padding: 14px;
  }

  .lightbox-arrow {
    width: 42px;
    height: 60px;
    font-size: 2rem;
  }

  .site-footer p {
    letter-spacing: 0.18em;
  }
}

@media (hover: none), (pointer: coarse), (max-width: 760px) {
  .tile img {
    filter: none;
  }

  .tile:active img,
  .tile:focus-visible img {
    filter: none;
    transform: scale(1.035);
  }
}

/* Production-credit project layout */
.project-intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
  padding: clamp(18px, 2.5vw, 28px) 2vw clamp(16px, 2vw, 24px);
}

.project-credit {
  border-top: 1px solid rgba(29, 32, 36, 0.16);
  padding-top: 14px;
}

.credit-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.credit-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 20px;
  align-items: baseline;
}

.credit-row dt {
  color: #70747a;
  font-size: 11pt;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.18;
  text-transform: uppercase;
}

.credit-row dd {
  margin: 0;
  color: #000;
  font-size: 11pt;
  font-weight: 800;
  line-height: 1.18;
}

.project-overview {
  border-top: 1px solid rgba(29, 32, 36, 0.16);
  padding-top: 14px;
}

.project-overview p {
  max-width: 620px;
  margin: 0;
  color: #000;
  font-size: 10pt;
  line-height: 1.55;
}

@media (max-width: 680px) {
  .project-intro {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 0 22px;
  }

  .project-overview {
    padding-top: 12px;
  }

  .credit-row {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 14px;
  }
}

/* Type scale normalization */
.filter,
.tile span,
.site-footer > a,
.socials a,
.site-footer p,
.credit-row dt,
.credit-row dd,
.bio-copy-panel h1,
.product-meta,
.product-card h2,
.product-price,
.product-detail-copy h1 {
  font-size: 11pt;
}

.project-overview p,
.bio-copy-panel p:not(.section-kicker),
.product-card p,
.product-link,
.product-detail-copy p,
.product-includes {
  font-size: 10pt;
}

.project-overview p,
.project-copy p,
.bio-copy-panel p:not(.section-kicker) {
  font-family: var(--body-font);
  text-transform: none;
}

.credit-row dt,
.bio-copy-panel h1,
.product-meta {
  color: #70747a;
  font-weight: 800;
}

.credit-row dd,
.product-card h2,
.product-card p,
.product-price,
.product-link,
.product-detail-copy h1,
.product-detail-copy p,
.product-includes,
.project-overview p,
.bio-copy-panel p:not(.section-kicker) {
  color: #000;
}

@media (max-width: 680px) {
  .filter-menu {
    gap: clamp(7px, 2vw, 10px);
  }

  .filter {
    font-size: 9pt;
    letter-spacing: 0.01em;
  }

  .filter-mobile-hide {
    display: none;
  }

  .tile span {
    font-size: 9pt;
  }

  .site-footer > a,
  .socials a,
  .site-footer p {
    font-size: 9pt;
    letter-spacing: 0.03em;
  }
}

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

  .top-nav,
  .intro,
  .portfolio-grid,
  .bio-page,
  .shop-page,
  .product-page,
  .project-page {
    width: calc(100% - 40px);
    max-width: calc(100% - 40px);
  }

  .portfolio-grid,
  .product-grid,
  .product-grid-expanded,
  .product-card,
  .product-content,
  .product-detail,
  .project-intro,
  .project-gallery,
  .bio-page {
    min-width: 0;
  }

  .product-footer,
  .project-next {
    flex-wrap: wrap;
  }

  .product-meta,
  .product-card h2,
  .product-card p,
  .product-price,
  .product-link,
  .product-detail-copy h1,
  .product-detail-copy p,
  .product-includes,
  .credit-row dd,
  .project-overview p,
  .site-footer > a,
  .site-footer p {
    overflow-wrap: anywhere;
  }

  .product-gallery-thumbs {
    max-width: 100%;
  }
}
