/* Ryan Barrett. Ceramics
   Palette: cool stone + ink + one rust accent. Type: Archivo (variable width) + DM Mono. */

:root {
  /* dark throughout, whatever the visitor's device is set to */
  color-scheme: dark;
  --bg: #11110f;
  --bg-2: #1a1a18;
  --ink: #e3e3e0;
  --muted: #8d8d88;
  --line: rgba(227, 227, 224, .16);
  --accent: #d7653f;
  --night: #0b0b0a;
  --night-ink: #e3e3e0;
  --gutter: clamp(16px, 2.2vw, 32px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  font-variation-settings: "wdth" 100;
  font-size: 17px;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
figure, blockquote, ol, ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.mono {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.45;
  letter-spacing: .01em;
  font-weight: 400;
}
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* split text */
.char { display: inline-block; will-change: transform; }
.char-wrap { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .02em; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  height: 56px; padding: 0 var(--gutter);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .01em;
  mix-blend-mode: difference; color: #e3e3e0;
}
.nav__links { display: flex; gap: clamp(16px, 2.4vw, 40px); }
/* the bar slides away while scrolling down, so it never sits on top of the text, and returns on the way back up */
.nav { transition: transform .5s var(--ease); }
.nav.is-away { transform: translateY(-100%); }
.nav a { position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100svh; min-height: 560px;
  overflow: hidden;
}
.hero__media {
  position: absolute; inset: 0;
  --wt: 13%; --wr: 9%; --wb: 15%; --wl: 50%;
  background: #1c1714;
  /* the window the work sits in, between the two lines of the name */
  clip-path: inset(var(--wt) var(--wr) var(--wb) var(--wl));
  will-change: clip-path;
}
.hero__media video {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%;
}
.hero__title {
  position: absolute; inset: 0;
  margin: 0; padding: 64px var(--gutter) calc(var(--gutter) + 4px);
  display: flex; flex-direction: column; justify-content: space-between;
  font-weight: 500; text-transform: uppercase;
  line-height: .8; letter-spacing: -.035em;
  pointer-events: none;
}
.hero__line { display: block; white-space: nowrap; font-size: var(--fit, 22vw); }
.hero__line--2 { align-self: flex-end; }
.hero__caption {
  position: absolute; left: var(--gutter); top: 50%;
  transform: translateY(-50%);
  max-width: 24ch;
}

/* full-bleed photograph version of the hero, name set in light stone over it */
.hero--image .hero__media { clip-path: none; background: #111; }
.hero--image .hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; will-change: transform; }
.hero--image .hero__media::after {
  /* a quiet vignette so the type holds over the brighter edges of the photo */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(10, 10, 9, .45), transparent 32%, transparent 62%, rgba(10, 10, 9, .55)),
    linear-gradient(to right, rgba(10, 10, 9, .35), transparent 45%);
}
.hero--image .hero__title, .hero--image .hero__caption { color: #ebe9e4; }

/* ---------- STATEMENT ---------- */
.statement {
  padding: clamp(100px, 16vh, 200px) var(--gutter) clamp(100px, 18vh, 220px);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter);
  grid-template-rows: auto auto;
}
.statement__text {
  grid-column: 1 / span 8; grid-row: 1; align-self: center;
  font-size: clamp(34px, 5.4vw, 92px);
  line-height: .98; letter-spacing: -.03em; font-weight: 400;
  font-variation-settings: "wdth" 88;
  text-wrap: balance;
  position: relative; z-index: 1;
}
.statement__text .word { opacity: .14; transition: none; }
/* the studio photograph, whole and uncropped, to the right of the statement */
.statement__img { grid-column: 9 / span 3; grid-row: 1 / span 2; margin: 0; align-self: start; }
.statement__img img { display: block; width: 100%; height: auto; }
/* the note sits on a small panel laid over the photo's lower-left corner, like a label on a print */
.statement__aside {
  grid-column: 4 / span 6; grid-row: 2; align-self: end; z-index: 1; /* wide and low, a landscape label over the photo's lower-left corner */
  margin-bottom: clamp(48px, 10vh, 120px);
  padding: 16px 18px; background: var(--bg);
}
.statement__aside p { max-width: none; } /* runs the full width of the panel */

/* ---------- MACRO BANDS (wide cinematic details between sections) ---------- */
.band { position: relative; padding: 0 0 clamp(56px, 10vh, 120px); }
.band--dark { background: #000; color: #ebe9e4; padding-top: clamp(56px, 10vh, 120px); }
.band__frame { margin: 0; height: min(42.86vw, 72vh); overflow: hidden; } /* 21:9, capped so it never fills the whole screen */
.band__frame { position: relative; }
/* the photo is 160% of the frame's height, so it has room to travel through the window as you scroll */
.band__frame img { position: absolute; left: 0; top: -30%; display: block; width: 100%; height: 160%; object-fit: cover; object-position: var(--pos, 50% 50%); transform-origin: 50% 50%; will-change: transform; }
.band__cap { margin: 14px var(--gutter) 0; color: var(--muted); }
.band--dark .band__cap { color: rgba(235, 233, 228, .6); }

/* ---------- DEPTH GALLERY (pieces fly from the distance past the viewer, after the Lindbergh portfolio) ---------- */
.strip { position: relative; overflow: hidden; background: var(--bg); color: var(--ink); }
.depth { position: relative; height: 100svh; perspective: 1000px; overflow: hidden; }
.depth__world { position: absolute; inset: 0; transform-style: preserve-3d; }
.depth__item {
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--w) * 1.55); aspect-ratio: var(--ar);
  opacity: 0; will-change: transform, opacity;
  box-shadow: 0 18px 50px rgba(21, 21, 20, .12);
}
.depth__item img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* the opening title, full width; it pulls apart as the flight begins */
.depth__title {
  position: absolute; inset: 0; margin: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 0 var(--gutter);
  line-height: .82; letter-spacing: -.04em; font-weight: 500;
  text-transform: uppercase; font-variation-settings: "wdth" 72;
  pointer-events: none;
}
/* the macro photograph behind the title, in slices that pull apart with the letters */
.depth__bg { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.depth__slice { position: absolute; overflow: hidden; will-change: transform, opacity; }
.depth__slice img { position: absolute; max-width: none; object-fit: cover; object-position: 50% 45%; }
.depth__cap { position: absolute; left: var(--gutter); bottom: var(--gutter); margin: 0; color: rgba(235, 233, 228, .75); }
.strip:not(.is-static) .depth__title { color: #e3e3e0; }
.strip.is-static .depth__bg { display: none; }
.depth__line { display: block; white-space: nowrap; }
.depth__char { display: inline-block; will-change: transform, opacity; }
.depth__marker {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: var(--gutter);
  display: flex; justify-content: space-between; color: var(--muted);
  opacity: 0; pointer-events: none;
}
/* the layered glaze photograph the flight ends on, behind "View series of works" */
.depth__endbg { position: absolute; inset: 0; z-index: 1; overflow: hidden; opacity: 0; pointer-events: none; background: #111; }
.depth__endbg img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; will-change: transform; }
.depth__endbg::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .28); } /* a light veil so the title always reads */
.depth__endcap { position: absolute; left: var(--gutter); bottom: var(--gutter); margin: 0; z-index: 1; color: rgba(235, 233, 228, .75); }
.strip.is-static .depth__endbg { display: none; }
.strip:not(.is-static) .depth__end { z-index: 3; color: #ebe9e4; }
.strip:not(.is-static) .depth__end .mono { color: rgba(235, 233, 228, .75); }
.depth__end {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  text-align: center; color: inherit; opacity: 0;
}
.depth__end .mono { display: block; color: var(--muted); margin-bottom: 12px; }
.depth__end-title {
  display: block;
  font-size: clamp(40px, 6vw, 110px); line-height: .86; letter-spacing: -.04em;
  text-transform: uppercase; font-variation-settings: "wdth" 72;
  transition: font-variation-settings 1s var(--ease), color .4s;
}
@media (min-width: 768px) { .depth__end-title { white-space: nowrap; } }
.depth__end:hover .depth__end-title { color: var(--accent); } /* colour only: widening the letters made the line wrap and jump */

/* reduced motion: the same pieces as a calm grid */
.strip.is-static .depth { height: auto; perspective: none; padding: 120px var(--gutter) 80px; }
.strip.is-static .depth__world { position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--gutter); }
.strip.is-static .depth__item { position: static; width: auto; opacity: 1; box-shadow: none; }
.strip.is-static .depth__title { position: static; font-size: 16vw !important; margin-bottom: 40px; }
.strip.is-static .depth__marker { display: none; }
.strip.is-static .depth__end { position: static; translate: none; opacity: 1; display: block; margin-top: 48px; }

/* ---------- NOCTURNE (type behind the work) ---------- */
.behind {
  position: relative;
  height: 120svh; min-height: 720px;
  background: #000; /* identical to the photograph's black, so the frame edge disappears */
  overflow: hidden;
  display: grid; place-items: center;
}
.behind__img {
  position: relative; height: 94svh; width: auto; max-width: none;
  /* feather every edge so the photograph dissolves into the section's black */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 22%, #000 78%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 74%, transparent 97%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 22%, #000 78%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 74%, transparent 97%);
  mask-composite: intersect;
}
.behind__cap { position: absolute; left: var(--gutter); bottom: var(--gutter); color: #8a8a85; }

/* ---------- SURFACE LOUPE ---------- */
.lens {
  position: relative; overflow: hidden;
  background: #000; /* the photograph's own black */
  height: 100vh; height: 100svh; /* the photograph fills the whole screen on every device */
  cursor: none;
  --size: clamp(180px, 20vw, 320px);
}
.lens__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.lens__loupe {
  z-index: 2;
  position: absolute; left: 0; top: 0;
  width: var(--size); height: var(--size); border-radius: 50%;
  background-repeat: no-repeat; background-color: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .55), 0 18px 50px rgba(0, 0, 0, .45);
  pointer-events: none;
  opacity: 0; scale: .6;
  transition: opacity .35s var(--ease), scale .6s var(--ease);
  will-change: transform;
}
.lens.is-on .lens__loupe { opacity: 1; scale: 1; }
/* a soft shadow rising from the bottom edge, so the caption reads over pale clay */
.lens::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent); pointer-events: none; }
.lens__text {
  z-index: 1;
  position: absolute; left: var(--gutter); bottom: var(--gutter);
  display: flex; gap: clamp(28px, 5vw, 80px);
  color: rgba(241, 241, 238, .8);
  pointer-events: none;
}
@media (hover: none) { .lens { cursor: auto; } }

/* ---------- SHOWN ---------- */
.display-s {
  margin: 0;
  font-size: clamp(48px, 7vw, 124px); line-height: .84; letter-spacing: -.04em;
  font-weight: 500; text-transform: uppercase; font-variation-settings: "wdth" 70;
}

/* ---------- IN THE ROUND (3D scan) ---------- */
.round { padding: clamp(100px, 16vh, 200px) var(--gutter) 0; }
@media (min-width: 768px) and (min-height: 521px) { .round { display: none; } } /* the 3D scan is a phone-only section, upright or turned sideways */
.round__body {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter);
  align-items: end; margin-top: clamp(28px, 5vh, 56px);
}
.round__text { grid-column: 1 / span 5; }
.round__note { margin-top: 24px; color: var(--muted); }
.round__stage {
  grid-column: 7 / span 5;
  height: min(78vh, 760px);
  cursor: grab;
  /* soft edges, so the swirling dust fades out instead of being cut off */
  --fade: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: var(--fade); -webkit-mask-composite: source-in;
  mask-image: var(--fade); mask-composite: intersect;
}
.round__stage:active { cursor: grabbing; }

/* ---------- ABOUT (reading column beside a pinned, uncropped photo) ---------- */
.about {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter);
  align-items: start;
  padding: clamp(100px, 16vh, 200px) var(--gutter) clamp(120px, 20vh, 240px);
}
.about__rule {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
  color: var(--muted);
}
/* the text uses the whole left half: heading and lead across it, then paragraph and quote side by side */
.about__col {
  grid-column: 1 / span 7;
  padding-top: clamp(28px, 5vh, 56px);
  display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(var(--gutter) * 2);
  row-gap: clamp(40px, 7vh, 88px); align-content: start;
}
.about__col .display-s, .about__lead { grid-column: 1 / -1; }
.about__lead {
  font-size: clamp(26px, 3.6vw, 64px); line-height: 1.06; letter-spacing: -.025em;
  font-variation-settings: "wdth" 90;
  /* runs right across the text area, out to the edge of the quote column beneath */
  text-wrap: pretty;
}
.about__body { grid-column: 1; max-width: 46ch; }
.about__quote {
  grid-column: 2; align-self: start;
  padding-top: 18px; border-top: 1px solid var(--line);
  font-size: clamp(22px, 2vw, 34px); line-height: 1.06; letter-spacing: -.02em;
  font-variation-settings: "wdth" 86;
}
.about__quote cite { display: block; margin-top: 16px; font-style: normal; color: var(--muted); }
/* press and partner logos, under the quote */
/* the logo block is exactly as tall as the exhibitions list beside it: same top rule, same bottom line */
.about__logos { grid-column: 2; display: flex; flex-direction: column; }
.about__shows { grid-column: 1; }
.about__shows ul { list-style: none; margin: 0; padding: 0; }
.about__shows li {
  display: grid; grid-template-columns: 4em 1fr; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--line); line-height: 1.3; font-size: .9em;
}
.about__shows li .mono { color: var(--muted); padding-top: .15em; }
/* title and venue share a line where there is room, so the list is about as tall as the logo block beside it */
.about__shows em { display: inline; font-style: normal; color: var(--muted); }
.about__shows em::before { content: "  \00b7  "; white-space: pre; }
.about__logos-label { color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.about__logos ul {
  list-style: none; margin: 0; padding: 0;
  flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); grid-auto-rows: minmax(52px, 1fr);
  gap: 8px clamp(20px, 2.4vw, 40px); align-items: center; padding: 10px 0;
}
.about__logos li { display: flex; align-items: center; }
.about__logos img { display: block; height: clamp(28px, 3vw, 46px); width: auto; max-width: 100%; object-fit: contain; opacity: .85; transition: opacity .3s; }
.about__logos li.is-tall img { height: clamp(50px, 5.2vw, 82px); }
.about__logos a:hover img { opacity: 1; }
.about__video { display: inline-block; align-self: flex-start; white-space: nowrap; margin-top: 4px; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.about__video:hover { color: var(--accent); border-color: var(--accent); }
/* the logos are dark ink; in dark mode they turn light */
.about__logos img { filter: invert(1); }
/* the whole photograph, never cropped, held in view while the column scrolls */
.about__img {
  grid-column: 8 / span 5; justify-self: end;
  position: sticky; top: 72px;
  margin-top: clamp(28px, 5vh, 56px);
}
.about__img img { display: block; width: auto; max-width: 100%; height: calc(100svh - 140px); max-height: 1100px; object-fit: contain; }
.about__img figcaption { margin-top: 10px; color: var(--muted); }

/* ---------- CONTACT ---------- */
/* the portrait sits large on the right, and the EMAIL type is allowed to run over it */
.contact {
  display: grid; grid-template-columns: 1fr; align-items: end;
  padding: 0 var(--gutter) clamp(40px, 8vh, 80px); border-top: 1px solid var(--line);
}
.contact__big { grid-area: 1 / 1; position: relative; z-index: 1; }
.contact__img {
  grid-area: 1 / 1; justify-self: end; align-self: end;
  width: clamp(260px, 36vw, 600px); margin: clamp(32px, 6vh, 72px) 0 0;
}
.contact__img img { display: block; width: 100%; height: auto; filter: grayscale(1); }
.contact__big { display: block; padding-top: clamp(24px, 4vh, 48px); }
.contact__word {
  display: block; font-size: 25vw; line-height: .78; letter-spacing: -.05em; font-weight: 500;
  text-transform: uppercase; font-variation-settings: "wdth" 72;
  transition: font-variation-settings 1s var(--ease), color .4s;
}
.contact__big:hover .contact__word { font-variation-settings: "wdth" 100; color: var(--accent); }
.contact__addr { display: block; margin-top: 18px; }

.foot {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter) 22px;
}

/* ---------- SERIES PAGES + WORK INDEX ---------- */
.rule {
  display: flex; justify-content: space-between; gap: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.rule a:hover { color: var(--ink); }
.sp-head { padding: 96px var(--gutter) 0; }
.page-title {
  margin: clamp(28px, 5vh, 56px) 0 0;
  font-size: clamp(64px, 15vw, 280px); line-height: .82; letter-spacing: -.045em;
  font-weight: 500; text-transform: uppercase; font-variation-settings: "wdth" 72;
}
.sp-meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 22px; color: var(--muted); }
.sp-intro {
  max-width: 34ch; margin: clamp(40px, 8vh, 96px) 0 0 auto;
  font-size: clamp(20px, 1.9vw, 30px); line-height: 1.2; letter-spacing: -.015em;
}

/* works are never cropped: each keeps its own proportions. Upright photos stand in large pairs, landscape ones run wide */
.sp-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter); row-gap: clamp(48px, 9vh, 120px);
  align-items: start;
  padding: clamp(64px, 11vh, 140px) var(--gutter);
}
.sp-fig { margin: 0; }
.sp-fig img { width: 100%; height: auto; cursor: zoom-in; }
.g-l { grid-column: 1 / span 6; }
.g-r { grid-column: 7 / span 6; margin-top: 16vh; } /* a slight stagger, so each pair reads as two placed prints */
.g-wide { grid-column: 2 / span 10; }
.g-solo { grid-column: 4 / span 6; }

.sp-next {
  display: flex; justify-content: space-between; align-items: flex-end; gap: var(--gutter);
  padding: 32px var(--gutter) clamp(60px, 10vh, 120px);
  border-top: 1px solid var(--line); margin: 0 var(--gutter); padding-left: 0; padding-right: 0;
}
.sp-next__prev { color: var(--muted); }
.sp-next__prev:hover { color: var(--ink); }
.sp-next__big { text-align: right; }
.sp-next__big .mono { display: block; color: var(--muted); margin-bottom: 10px; }
.sp-next__name {
  display: block;
  font-size: clamp(48px, 9vw, 168px); line-height: .84; letter-spacing: -.04em;
  font-weight: 500; text-transform: uppercase; font-variation-settings: "wdth" 72;
  transition: font-variation-settings 1s var(--ease), color .4s;
}
.sp-next__big:hover .sp-next__name { font-variation-settings: "wdth" 110; color: var(--accent); }

/* every series cover in the same frame, in an even grid */
.wi-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--gutter); align-items: start;
  padding: clamp(64px, 12vh, 140px) var(--gutter) clamp(80px, 14vh, 180px);
}
.wi-card { display: block; margin-bottom: clamp(48px, 8vh, 96px); }
.wi-card figure { margin: 0; overflow: hidden; aspect-ratio: 3 / 4; }
.wi-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.wi-card:hover img { transform: scale(1.03); }
.wi-card__name {
  display: block; margin-top: 14px;
  font-size: clamp(28px, 2.6vw, 44px); line-height: 1; letter-spacing: -.03em;
  text-transform: uppercase; font-variation-settings: "wdth" 72;
  transition: font-variation-settings .9s var(--ease);
}
.wi-card:hover .wi-card__name { font-variation-settings: "wdth" 112; }
.wi-card__meta { display: block; margin-top: 6px; color: var(--muted); }


/* ---------- REVEAL ---------- */
.reveal { overflow: hidden; }
.js .reveal img { clip-path: inset(100% 0 0 0); }

/* ---------- LIGHTBOX ---------- */
.lb {
  position: fixed; inset: 0; z-index: 60;
  background: var(--bg);
  display: grid; grid-template-rows: 56px 1fr auto;
}
.lb[hidden] { display: none; }
.lb__bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter);
}
.lb__close { font-family: var(--mono); font-size: 11.5px; }
.lb__close:hover { color: var(--accent); }
.lb__count { text-align: right; }
.lb__stage { display: grid; place-items: center; min-height: 0; margin: 0; overflow: hidden; padding: 8px var(--gutter); }
.lb__stage img { max-height: calc(100svh - 56px - 140px); max-width: 100%; width: auto; height: auto; object-fit: contain; }
.lb__nav { position: absolute; top: 56px; bottom: 120px; width: 40%; }
.lb__nav--prev { left: 0; cursor: w-resize; }
.lb__nav--next { right: 0; cursor: e-resize; }
.lb__thumbs {
  display: flex; gap: 8px; justify-content: center; align-items: flex-end;
  padding: 16px var(--gutter) 22px; overflow-x: auto; position: relative; z-index: 2;
}
.lb__thumbs button { flex: 0 0 auto; height: 64px; opacity: .45; transition: height .5s var(--ease), opacity .3s; }
.lb__thumbs button img { height: 100%; width: auto; }
.lb__thumbs button.is-active { height: 92px; opacity: 1; }
.lb__thumbs button:hover { opacity: 1; }

/* ---------- GRAIN ---------- */
.grain {
  position: fixed; inset: 0; z-index: 70; pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- 3D CLAY PRINTING (process page) ---------- */
.pr .page-title { font-size: clamp(40px, 11.6vw, 230px); white-space: nowrap; }
.sp-intro a, .pr-more a { text-decoration: underline; text-underline-offset: 3px; }
.pr-steps { padding: clamp(56px, 10vh, 120px) var(--gutter) 0; }
.pr-steps ol { list-style: none; margin: 0; padding: 0; }
.pr-steps li {
  display: grid; grid-template-columns: 1fr 4fr 7fr; gap: var(--gutter); align-items: baseline;
  padding: clamp(20px, 3vh, 32px) 0; border-top: 1px solid var(--line);
}
.pr-steps li .mono { color: var(--muted); }
.pr-steps h2 { margin: 0; font-size: clamp(28px, 3.2vw, 56px); line-height: 1; letter-spacing: -.03em; font-weight: 500; text-transform: uppercase; font-variation-settings: "wdth" 72; }
.pr-steps p { margin: 0; max-width: 60ch; }
.pr-fig { margin: clamp(56px, 10vh, 120px) var(--gutter) 0; max-width: 560px; }
.pr-fig img { display: block; width: 100%; height: auto; }
.pr-fig--in { margin-left: 0; margin-right: 0; margin-bottom: clamp(32px, 5vh, 56px); }
.pr-faq { padding: clamp(56px, 10vh, 120px) var(--gutter) clamp(64px, 12vh, 140px); max-width: 860px; }
.pr-faq > h2 { margin: 0 0 12px; font-size: inherit; font-weight: 400; color: var(--muted); }
.pr-faq div { padding: 20px 0; border-top: 1px solid var(--line); }
.pr-faq h3 { margin: 0 0 8px; font-size: clamp(20px, 1.8vw, 28px); line-height: 1.15; letter-spacing: -.02em; font-weight: 500; }
.pr-faq p { margin: 0; }
.pr-more { margin-top: 28px !important; }

.cv-block { margin-top: clamp(40px, 7vh, 72px); max-width: 860px; }
.cv-block a, .about__cv, .about__shows li a { text-decoration: underline; text-underline-offset: 3px; }
.about__cv { float: right; color: var(--ink); }
.pr .sp-intro + .sp-intro { margin-top: 1em; }

/* ---------- MOBILE ---------- */
@media (min-width: 768px) and (max-width: 1100px) { .wi-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- TABLET (iPad, and narrow laptop windows) ----------
   the desktop layout was squeezing here; the statement and About sections stack instead */
@media (min-width: 768px) and (max-width: 1100px) {
  .statement__text { grid-column: 1 / -1; }
  .statement__img { grid-column: 6 / -1; grid-row: 2; margin-top: 56px; }
  .statement__aside { grid-column: 1 / span 8; grid-row: 2; align-self: end; margin-bottom: 64px; }
  .about__col { grid-column: 1 / -1; }
  .about__img { grid-column: 1 / -1; position: static; justify-self: center; margin-top: 72px; }
  .about__img img { height: auto; max-height: 86svh; max-width: 100%; }
  .depth__end-title { font-size: 10vw; }
}

/* ---------- PHONE TURNED SIDEWAYS (short, wide screens) ----------
   nothing taller than the screen, so each piece and both name lines can be seen whole */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 0; }
  .hero .hero__caption { top: 64px; bottom: auto; left: auto; right: var(--gutter); max-width: 24ch; text-align: right; transform: none; } /* beside RYAN, clear of the name (also wins over the upright-phone rule) */
  .behind { height: 100svh; min-height: 0; }
  .statement__img img, .contact__img img, .about__img img, .pr-fig img, .sp-fig img {
    width: auto; max-width: 100%; height: auto; max-height: 88svh;
  }
  .contact__img { width: auto; }
  .wi-grid { grid-template-columns: repeat(3, 1fr); }
  .round__stage { height: 86svh; }
}

/* ---------- PHONE + TABLET: tighter spacing, so no screen is left mostly empty ---------- */
@media (max-width: 1100px) {
  .statement { padding-top: 72px; padding-bottom: 72px; }
  .band { padding-bottom: 40px; }
  .round { padding-top: 64px; }
  .about { padding-top: 72px; padding-bottom: 64px; }
  .about__col { row-gap: 40px; }
  .contact__img { margin-top: 32px; }
  /* the address sits on a small label, so it stays readable where it runs over the portrait */
  .contact__addr { display: inline-block; background: var(--bg); padding: 6px 8px; margin-left: -8px; position: relative; z-index: 2; }
}

@media (max-width: 767px) {
  .round__body { grid-template-columns: 1fr; }
  .round__text, .round__stage { grid-column: 1; }
  .round__stage { height: 72vh; margin-top: 24px; }
  .nav__links { gap: 14px; }
  .hero__media { --wt: 24%; --wr: 6%; --wb: 24%; --wl: 38%; }
  .hero__caption { top: 50%; max-width: 15ch; }
  .statement { grid-template-columns: repeat(6, 1fr); }
  .statement__text { grid-column: 1 / -1; grid-row: 1; }
  .statement__img { grid-column: 2 / -1; grid-row: 2; margin-top: 40px; }
  .statement__aside { grid-column: 1 / -1; grid-row: 3; margin: -64px 0 0; align-self: start; }

  .depth__item { width: calc(var(--w) * 1.9); }
  .depth__end-title { font-size: 25vw; line-height: .84; } /* the closing title fills the screen instead of floating small in it */

  .behind { height: 100svh; min-height: 560px; }
  .behind__img { height: 84svh; }

  .contact__img { width: 72%; }
  /* the portrait sits above and EMAIL below it, so the white word never runs over the photo */
  .contact__img { grid-area: 1 / 1; }
  .contact__big { grid-area: 2 / 1; padding-top: 28px; }
  .contact__addr { background: none; padding: 0; margin-left: 0; }
  /* bigger touch areas for the small links */
  .nav a { padding: 14px 0; }
  .foot { gap: 2px; }
  .foot a { padding: 9px 0; }
  .pr .sp-head { padding-bottom: 72px; }
  .sp-head { padding-top: 80px; }
  .sp-meta { flex-direction: column; gap: 4px; }
  .sp-grid { grid-template-columns: 1fr; row-gap: 40px; }
  .sp-fig[class*="g-"] { grid-column: 1; margin-top: 0; }
  .sp-next { flex-direction: column; align-items: flex-end; }
  .wi-grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about__rule span:nth-child(2) { display: none; }
  .about__col, .about__img { grid-column: 1; }
  .about__col { grid-template-columns: 1fr; row-gap: 32px; }
  .about__body, .about__quote, .about__logos, .about__shows { grid-column: 1; }
  .about__logos ul { grid-template-columns: repeat(2, 1fr); }
  .about__img { position: static; justify-self: stretch; margin-top: 48px; }
  .about__img img { width: 100%; height: auto; }
  .foot { flex-direction: column; }
  .pr-steps li { grid-template-columns: 2.5em 1fr; }
  .pr-steps li p { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal img { clip-path: none; }
  .statement__text .word { opacity: 1; }
  .hero__media { clip-path: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
