:root {
  --bg: #f2ece2;
  --bg-strong: #e4d8c5;
  --paper: #fbf7f0;
  --paper-deep: #efe5d5;
  --ink: #201815;
  --muted: #6d625a;
  --line: rgba(32, 24, 21, 0.12);
  --shadow: 0 28px 50px rgba(40, 25, 10, 0.12);
  --shadow-strong: 0 42px 80px rgba(28, 20, 13, 0.22);
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.52), transparent 36%),
    linear-gradient(180deg, #f6f1e8 0%, var(--bg) 48%, #eee4d7 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(50, 40, 30, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(50, 40, 30, 0.03) 1px, transparent 1px);
  background-size: 110px 110px;
}

img {
  display: block;
  max-width: 100%;
}

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

.site-shell {
  position: relative;
}

.site-header {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 1.4rem 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 -1rem auto;
  height: calc(100% + 0.25rem);
  border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, rgba(246, 241, 232, 0.9), rgba(246, 241, 232, 0.52));
  border: 1px solid rgba(32, 24, 21, 0.06);
  z-index: -1;
}

.brand,
.site-nav a,
.back-link,
.caption-link,
.contact-card a {
  transition: opacity 180ms ease, color 180ms ease, transform 180ms ease;
}

.brand {
  font-family: Baskerville, "Iowan Old Style", "Palatino Linotype", serif;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  letter-spacing: 0.03em;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.site-nav a:hover,
.brand:hover,
.back-link:hover,
.caption-link:hover,
.contact-card a:hover {
  opacity: 0.72;
}

main {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.hero {
  padding-top: 2rem;
}

.hero-copy {
  width: min(40rem, 100%);
  padding-top: 3rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--muted);
}

h1,
h2,
h3 {
  font-family: Baskerville, "Iowan Old Style", "Palatino Linotype", serif;
  font-weight: 400;
  line-height: 0.98;
  margin: 0;
}

h1 {
  font-size: clamp(3.3rem, 7vw, 6.6rem);
  max-width: 12ch;
}

.hero-intro,
.section-heading p,
.about-card p,
.work-note,
.story-card p,
.series-card__body p,
.archive-copy p,
.related-card__copy p,
.contact-section p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-intro {
  max-width: 34rem;
  margin: 1.5rem 0 0;
  font-size: 1.04rem;
}

.orbit-scroll {
  height: 210vh;
  position: relative;
}

.orbit-stage {
  position: sticky;
  top: 5.75rem;
  height: calc(100vh - 7rem);
  display: grid;
  grid-template-columns: minmax(17rem, 22rem) 1fr;
  gap: clamp(1rem, 3vw, 3.5rem);
  align-items: center;
}

.orbit-caption {
  align-self: center;
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: rgba(251, 247, 240, 0.76);
  box-shadow: var(--shadow);
  border-radius: 1.6rem;
}

.caption-label {
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  color: var(--muted);
}

.orbit-caption h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.caption-meta,
.caption-series,
.caption-note {
  margin: 0.8rem 0 0;
}

.caption-hint {
  display: none;
  margin: 0.9rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.caption-series {
  font-size: 0.92rem;
}

.caption-link {
  display: inline-flex;
  margin-top: 1.2rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.15rem;
}

.orbit-scene {
  position: relative;
  height: 100%;
  min-height: 42rem;
  perspective: 1600px;
  isolation: isolate;
}

.orbit-card {
  position: absolute;
  width: min(34vw, 29rem);
  max-width: 29rem;
  aspect-ratio: 0.82;
  transform-origin: center;
  pointer-events: none;
  transition:
    transform 260ms ease,
    box-shadow 260ms ease,
    opacity 260ms ease,
    filter 260ms ease;
  filter: saturate(0.92);
}

.orbit-card--intro {
  aspect-ratio: 0.78;
}

.orbit-card.is-active {
  filter: saturate(1);
  pointer-events: auto;
}

.orbit-card.is-active .art-card-frame,
.orbit-card.is-active .archive-title-card {
  box-shadow: var(--shadow-strong);
}

.orbit-card.is-recessed {
  filter: blur(0.1px) saturate(0.85);
}

.art-card-frame,
.archive-title-card {
  width: 100%;
  height: 100%;
  background: var(--paper);
  border-radius: 1.8rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(32, 24, 21, 0.08);
  overflow: hidden;
}

.art-card-frame {
  padding: 1rem;
}

.art-card-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.1rem;
}

.archive-title-card {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(243, 235, 222, 0.9)),
    var(--paper);
}

.archive-mark {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--muted);
}

.archive-title-card h3 {
  margin-top: auto;
  font-size: clamp(2.4rem, 5vw, 4rem);
  max-width: 7ch;
}

.archive-subtitle {
  margin: 1rem 0 0;
  font-size: 1rem;
  color: var(--muted);
}

.archive-note {
  margin: 1.4rem 0 0;
  max-width: 15ch;
  line-height: 1.6;
  color: var(--muted);
}

.archive-mark--bottom {
  margin-top: auto;
}

.section {
  padding: 7rem 0 0;
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 2.2rem;
}

.section-heading h2 {
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  margin-bottom: 1rem;
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.series-card,
.archive-item,
.about-card,
.contact-card,
.story-card,
.related-card {
  border: 1px solid var(--line);
  background: rgba(251, 247, 240, 0.72);
  box-shadow: var(--shadow);
  border-radius: 1.6rem;
  overflow: hidden;
}

.series-card figure,
.archive-item figure,
.related-card figure {
  margin: 0;
}

.series-card img,
.archive-item img,
.related-card img {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  object-fit: cover;
}

.series-card__body,
.archive-copy,
.related-card__copy,
.contact-card,
.about-card,
.story-card {
  padding: 1.2rem;
}

.series-card h3,
.archive-copy h3,
.related-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.archive-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.archive-link,
.related-card a {
  display: block;
  height: 100%;
}

.archive-copy {
  display: grid;
  gap: 0.3rem;
}

.archive-copy p,
.archive-copy span {
  margin: 0;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 28rem);
  gap: 1rem;
  align-items: stretch;
}

.about-card {
  padding: 1.7rem;
}

.about-figure {
  margin: 0;
  border-radius: 1.6rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.contact-card a {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-family: Baskerville, "Iowan Old Style", "Palatino Linotype", serif;
}

.work-page {
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.back-link {
  display: inline-flex;
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.work-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 25rem);
  gap: 1rem;
  align-items: start;
}

.work-figure {
  margin: 0;
  padding: 1rem;
  background: rgba(251, 247, 240, 0.82);
  box-shadow: var(--shadow-strong);
  border: 1px solid var(--line);
  border-radius: 1.8rem;
}

.work-figure img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 1.2rem;
  background: var(--paper);
}

.work-meta-panel {
  border: 1px solid var(--line);
  background: rgba(251, 247, 240, 0.72);
  box-shadow: var(--shadow);
  border-radius: 1.6rem;
  padding: 1.5rem;
  position: sticky;
  top: 6.4rem;
}

.work-meta-panel h1 {
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  margin-bottom: 1rem;
}

.work-meta,
.work-note {
  margin: 0.8rem 0 0;
}

.work-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 1080px) {
  .orbit-stage,
  .about-layout,
  .work-layout {
    grid-template-columns: 1fr;
  }

  .orbit-stage {
    height: auto;
    min-height: calc(100vh - 7rem);
    align-items: start;
  }

  .orbit-caption {
    order: 2;
    align-self: start;
  }

  .orbit-scene {
    min-height: 34rem;
  }

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

  .work-meta-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding-top: 0.85rem;
    align-items: flex-start;
    gap: 1rem;
  }

  .site-nav {
    gap: 0.85rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4.6rem);
  }

  .hero-copy {
    padding-top: 1.2rem;
  }

  .orbit-scroll {
    height: auto;
    padding-top: 2rem;
  }

  .orbit-stage {
    position: static;
    min-height: auto;
    gap: 1rem;
  }

  .orbit-scene {
    min-height: 28rem;
  }

  .orbit-card {
    width: min(60vw, 18rem);
  }

  .caption-hint {
    display: block;
  }

  .orbit-scene.is-mobile-orbit {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 64vw;
    column-gap: 0;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    touch-action: pan-x pinch-zoom;
    padding-bottom: 1.25rem;
    padding-inline: 18vw;
    scrollbar-width: none;
  }

  .orbit-scene.is-mobile-orbit::-webkit-scrollbar {
    display: none;
  }

  .orbit-scene.is-mobile-orbit .orbit-card {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    margin-left: -18vw;
    scroll-snap-align: center;
    pointer-events: auto;
    transform-origin: center 75%;
  }

  .orbit-scene.is-mobile-orbit .orbit-card:first-of-type {
    margin-left: 0;
  }

  .series-grid,
  .archive-grid,
  .related-grid,
  .work-story-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .orbit-scroll {
    height: auto;
    padding-top: 2rem;
  }

  .orbit-stage {
    position: static;
    grid-template-columns: 1fr;
    height: auto;
  }

  .orbit-scene {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    height: auto;
    min-height: 0;
  }

  .orbit-card {
    position: relative;
    width: 100%;
    aspect-ratio: 0.88;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    pointer-events: auto;
  }
}
