/* Blue Chisel Studio — editorial gallery */

:root {
  --ink: #1a1a1a;
  --ink-soft: #3a3a3a;
  --muted: #6e6a63;
  --rule: #d8d3c8;
  --paper: #f5f1e8;
  --paper-rgb: 245, 241, 232;
  --paper-warm: #ece6d7;
  --accent: #3a5a6b;
  /* --serif is used for headings and display text (card titles, pull
     quotes, prices). Ubuntu for body + UI. */
  --serif: "Questrial", "Helvetica Neue", Arial, sans-serif;
  --sans: "Ubuntu", "Helvetica Neue", Arial, sans-serif;
  --measure: 38rem;
  --page-max: 78rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
}

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

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease, color 160ms ease;
}

a:hover {
  border-bottom-color: currentColor;
}

/* ---------- Layout ---------- */

.site {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 2rem;
}

.site-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 2.25rem 0 1.5rem;
  border-bottom: 1px solid transparent;
  gap: 2rem;
  flex-wrap: wrap;
}

.site-header[data-sticky] {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  padding: 1.1rem 0 1.1rem;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.site-header[data-sticky].scrolled {
  border-bottom-color: var(--rule);
  box-shadow: 0 8px 24px -18px rgba(0,0,0,0.25);
}

.site-header:not([data-sticky]) {
  border-bottom-color: var(--rule);
}

/* Anchor sections: clear sticky header on jump */
.anchor-section {
  scroll-margin-top: 5.5rem;
}

/* Soft scroll cue under the hero */
.scroll-cue {
  display: block;
  text-align: center;
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  padding: 0.5rem 0 2rem;
  border: 0;
  opacity: 0.6;
  transition: opacity 200ms ease, transform 200ms ease;
  animation: scrollCue 2.4s ease-in-out infinite;
}
.scroll-cue:hover {
  opacity: 1;
  border-bottom-color: transparent;
}
@keyframes scrollCue {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.15;
}

/* Kate's logo — navy rooster mark + wordmark, transparent PNG. */
.brand-logo {
  display: inline-block;
  line-height: 0;
  border: 0;
}
.brand-logo:hover { border-bottom-color: transparent; }
.brand-logo img {
  height: 2.5rem;
  width: auto;
  display: block;
}
@media (max-width: 900px) { .brand-logo img { height: 2.1rem; } }
@media (max-width: 520px) { .brand-logo img { height: 1.85rem; } }

.brand .brand-sub {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  color: var(--muted);
  font-weight: 400;
  margin-top: 0.4rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav a.active {
  border-bottom-color: var(--ink);
}

/* Gallery pill sits inside the primary nav, to the left of the anchor
   links. Sized as a compact pill so it stands out against the underlined
   text links but doesn't dominate the header. */
.nav .nav-gallery {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  border: 1px solid var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  line-height: 1;
  transition: background 180ms ease, color 180ms ease, transform 160ms ease;
  white-space: nowrap;
}
.nav .nav-gallery:hover {
  background: var(--ink);
  color: var(--paper);
  border-bottom-color: var(--ink);
  transform: translateY(-1px);
}
.nav .nav-gallery.active {
  background: transparent;
  color: var(--ink);
}
.nav .nav-gallery svg { flex: 0 0 auto; }

/* Silhouette pill — matches the gallery nav pill; used for form submits. */
.btn-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 160ms ease;
  white-space: nowrap;
}
.btn-pill:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-1px);
}
.btn-pill svg { flex: 0 0 auto; }
.btn-pill.sold,
.btn-pill[disabled] {
  color: var(--muted);
  border-color: var(--rule);
  cursor: not-allowed;
  font-style: italic;
  text-transform: uppercase;
}
.btn-pill.sold:hover,
.btn-pill[disabled]:hover {
  background: transparent;
  color: var(--muted);
  transform: none;
}

@media (max-width: 520px) {
  .nav .nav-gallery {
    padding: 0.4rem 0.75rem;
    font-size: 0.6rem;
    gap: 0.4rem;
  }
  .nav .nav-gallery svg { width: 13px; height: 13px; }
}

/* Cart FAB dock — unchanged behaviour, just moved next to the morph. */
.fab-dock {
  position: fixed;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
  pointer-events: none;
}
.fab-dock .fab { pointer-events: auto; }

.fab {
  position: relative;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.88);
  color: var(--paper);
  border: 1px solid rgba(26, 26, 26, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 10px 28px -12px rgba(0, 0, 0, 0.45);
  transition: width 240ms cubic-bezier(.2,.7,.2,1),
              background 180ms ease,
              transform 160ms ease,
              box-shadow 180ms ease;
  overflow: hidden;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}
.fab:hover {
  background: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -10px rgba(0, 0, 0, 0.55);
  border-bottom-color: rgba(26, 26, 26, 0.15);
}
.fab svg {
  flex: 0 0 auto;
  transition: margin 240ms cubic-bezier(.2,.7,.2,1);
}
.fab .fab-label {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width 240ms cubic-bezier(.2,.7,.2,1),
              opacity 180ms ease,
              margin 240ms cubic-bezier(.2,.7,.2,1);
  margin-left: 0;
}
.fab:hover,
.fab:focus-visible {
  width: auto;
  padding: 0 1.1rem 0 0.95rem;
}
.fab:hover .fab-label,
.fab:focus-visible .fab-label {
  max-width: 8rem;
  opacity: 1;
  margin-left: 0.55rem;
}

/* Cart FAB — hidden until the Snipcart count goes above zero. */
.fab-cart { display: none; }
.fab-cart.visible { display: inline-flex; }
.fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  line-height: 1;
}

.cart-button {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--ink-soft);
}

.cart-button:hover {
  color: var(--ink);
}

.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 6rem;
  padding: 3rem 0 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2.5rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0.9rem;
  font-weight: 500;
}

.site-footer .fine-print {
  grid-column: 1 / -1;
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0.005em;
  color: var(--ink);
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.15;
  font-weight: 300;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.25;
}

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.lede {
  font-size: 1.22rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: var(--measure);
}

.prose {
  max-width: var(--measure);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.prose p + p {
  margin-top: 1.25rem;
}

.rule {
  width: 3rem;
  height: 1px;
  background: var(--ink);
  border: 0;
  margin: 2rem 0;
}

/* ---------- Hero ---------- */

.hero {
  padding: 6rem 0 4rem;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 5rem;
  align-items: center;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.98;
  font-weight: 300;
  letter-spacing: -0.015em;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-figure {
  position: relative;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.35);
  transition: transform 900ms ease, box-shadow 400ms ease;
}
.hero-figure-link {
  display: block;
  border: 0;
  line-height: 0;
}
.hero-figure-link:hover img {
  transform: scale(1.015);
  box-shadow: 0 40px 80px -32px rgba(0,0,0,0.45);
}
.hero-figure-link:hover { border-bottom-color: transparent; }

.hero-figure figcaption {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1rem;
}

/* ---------- Section spacing ---------- */

section {
  padding: 4rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.25rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Compact variant: eyebrow inline with the link-more on the same baseline. */
.section-head.inline {
  align-items: baseline;
}
.section-head.inline .eyebrow {
  margin-bottom: 0;
}

.section-head .link-more {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.page-head {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 3rem;
}

/* ---------- Category filter ---------- */

.category-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  border-bottom: 1px solid var(--rule);
  padding: 0 0 2rem;
  margin-bottom: 3rem;
}

.filter-btn {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  color: var(--ink);
  line-height: 1;
  transition: color 180ms ease, background 180ms ease, transform 160ms ease;
}

.filter-btn:hover {
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-1px);
}

.filter-btn.active {
  color: var(--paper);
  background: var(--ink);
}

.filter-btn .count {
  color: inherit;
  opacity: 0.7;
}

.filter-btn .count {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.82rem;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 0.35rem;
  text-transform: none;
}

.filter-btn.active .count {
  color: var(--ink-soft);
}

/* ---------- Gallery grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2.5rem;
}

.grid.featured {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  display: flex;
  flex-direction: column;
}

.card a.card-link {
  border-bottom: none;
  display: block;
}

.card .card-figure {
  background: var(--paper-warm);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card .card-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.card a.card-link:hover .card-figure img {
  transform: scale(1.035);
}

.card-body {
  padding-top: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.card-title {
  font-size: 1.18rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
}

.card-meta {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  white-space: nowrap;
}

.card-meta.sold {
  color: #9a6b3d;
  font-style: italic;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

/* ---------- Print detail ---------- */

.detail {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 4.5rem;
  padding: 3rem 0 5rem;
  align-items: start;
}

.detail-figure {
  background: var(--paper-warm);
  padding: 2rem;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.4);
}

.detail-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: var(--paper);
}

.detail-info .eyebrow {
  margin-bottom: 0.75rem;
}

.detail-info h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-style: italic;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.price {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--ink);
  margin: 0 0 1.5rem;
}

.specs {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  line-height: 1.9;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.specs dt {
  display: inline-block;
  width: 8rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
}

.specs dd {
  display: inline;
  margin: 0;
}

.specs dd::after {
  content: "";
  display: block;
}

.buy-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 1rem 1.75rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.btn:hover {
  background: transparent;
  color: var(--ink);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
}

.btn.ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn.sold {
  background: transparent;
  color: var(--muted);
  border-color: var(--rule);
  cursor: not-allowed;
  font-style: italic;
}

/* ---------- Pull quotes & split content ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
  padding: 5rem 0;
}

.split.reverse {
  grid-template-columns: 1.1fr 1fr;
}

.split img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.pull-quote {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.35;
  color: var(--ink);
  max-width: var(--measure);
  margin: 3rem auto;
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.pull-quote-tight {
  margin: 1.5rem auto 0;
  padding: 1.25rem 1rem;
}

/* About split: align text column with the top of the photo so the
   "Kate Goetz" heading (sitting below the rule) doesn't float in dead space. */
.split.about-split {
  align-items: start;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.about-name {
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  font-weight: 300;
  font-style: italic;
  margin: 0;
  letter-spacing: -0.005em;
  line-height: 1;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms cubic-bezier(.2,.7,.2,1),
              transform 900ms cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Process slideshow (pinned scroll) ---------- */

.process-slideshow {
  position: relative;
  /* ~0.55 viewport of scroll per slide — enough to feel pinned, not draggy */
  height: calc(var(--slides, 18) * 55vh);
  margin: 2rem 0 6rem;
}

.process-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--ink);
  z-index: 3;
  transition: width 120ms linear;
}

/* Reverse progress indicator — depletes as you scroll, so the user can
   feel how much of the pinned slideshow remains. */
.process-remaining {
  position: absolute;
  top: 22vh;
  bottom: 22vh;
  right: clamp(1rem, 2vw, 2rem);
  width: 4px;
  z-index: 4;
  pointer-events: none;
}
.process-remaining-track,
.process-remaining-fill {
  position: absolute;
  inset: 0;
  border-radius: 3px;
}
.process-remaining-track {
  background: var(--rule);
}
.process-remaining-fill {
  background: var(--ink);
  transform-origin: bottom center;
  transform: scaleY(1);
  will-change: transform;
}

/* "Keep scrolling" cue — bottom-center of the stage, bounces, fades out on last slide. */
.process-cue {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.6rem;
  z-index: 4;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  transition: opacity 500ms ease;
}
.process-slideshow.in-view .process-cue {
  opacity: 0.85;
}
.process-slideshow.at-end .process-cue {
  opacity: 0;
}
.process-cue-label {
  margin-bottom: 0.4rem;
}
.process-cue-arrow {
  font-size: 1.1rem;
  letter-spacing: 0;
  animation: scrollCue 2s ease-in-out infinite;
}


.process-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 5rem clamp(2rem, 6vw, 6rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 400ms ease, visibility 0s linear 400ms;
  pointer-events: none;
}

.slide.text {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}
.slide-caption.wide {
  max-width: 44rem;
}
.slide .lede-slide {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}
.slide .slide-quote {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.slide.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 400ms ease, visibility 0s linear 0s;
  pointer-events: auto;
}

.slide-figure {
  height: min(72vh, 640px);
  overflow: hidden;
  background: var(--paper-warm);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.4);
}
.slide-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-caption {
  max-width: 26rem;
}
.slide-counter {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.slide-caption h3 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.15;
  margin: 0 0 1.25rem;
}
.slide-caption p {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}

@media (max-width: 900px) {
  /* Keep the pinned slideshow on mobile — the animation works well on
     touch devices. Just restack the slide contents so figure and caption
     don't fight for horizontal space. */
  .process-slideshow {
    height: calc(var(--slides, 18) * 70vh);
  }
  .slide {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 1.25rem;
    padding: 3rem 1.25rem 2rem;
    align-content: center;
  }
  .slide.text {
    padding: 3rem 1.25rem;
  }
  .slide-figure {
    height: min(46vh, 360px);
  }
  .slide-caption {
    max-width: 100%;
  }
  .slide-caption h3 { font-size: clamp(1.4rem, 5.5vw, 1.9rem); }
  .slide-caption p  { font-size: 0.98rem; line-height: 1.55; }
  .slide .lede-slide { font-size: 1rem; }
  .slide .slide-quote { font-size: clamp(1.2rem, 4.5vw, 1.5rem); padding: 1rem 0; }
  .process-remaining {
    top: 14vh; bottom: 14vh;
    right: 0.6rem;
  }
  .process-cue { bottom: 0.9rem; font-size: 0.62rem; }
}

/* ---------- Process step gallery ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 1.75rem;
  padding: 2rem 0 4rem;
}

.step {
  display: flex;
  flex-direction: column;
}

.step-figure {
  background: var(--paper-warm);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

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

.step-number {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1rem 0 0.35rem;
}

.step-caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.step.wide {
  grid-column: span 3;
}

.step.wide .step-figure {
  aspect-ratio: 16 / 9;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .step.wide {
    grid-column: span 2;
  }
}

@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .step.wide {
    grid-column: span 1;
  }
}

/* ---------- Contact / forms ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 2rem 0 5rem;
}

.contact-details h3 {
  margin-bottom: 0.5rem;
}

.contact-details a {
  font-family: var(--sans);
  font-size: 0.95rem;
}

form.newsletter, form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

input, textarea {
  font-family: var(--serif);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--ink);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 0 1.5rem;
  }
  .hero-figure img { aspect-ratio: 4 / 5; max-height: 62vh; object-fit: cover; }
  .detail, .split, .split.reverse, .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .grid,
  .grid.featured {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.25rem;
  }
  .site-header,
  .site-header[data-sticky] {
    padding: 0.8rem 0;
  }
  .nav {
    gap: 1rem;
    font-size: 0.72rem;
  }
  .brand { font-size: 1.05rem; }
  .brand .brand-sub { font-size: 0.6rem; letter-spacing: 0.22em; margin-top: 0.25rem; }
  .fab { width: 2.6rem; height: 2.6rem; }
  .fab:hover, .fab:focus-visible { width: 2.6rem; padding: 0; }
  .fab .fab-label { display: none; }
  .fab-dock { gap: 0.5rem; right: 0.75rem; bottom: 0.75rem; }
  .filter-btn { min-height: 44px; }
  input, textarea { font-size: 16px; }
}

@media (max-width: 700px) {
  /* Featured strip on mobile becomes a swipeable rail so it can't blow out
     the page margins. Bleed to the viewport edges for a clean look. */
  .grid.featured {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding: 0 1.1rem 0.5rem;
    margin: 0 -1.1rem;
    scrollbar-width: none;
  }
  .grid.featured::-webkit-scrollbar { display: none; }
  .grid.featured .card {
    flex: 0 0 78%;
    max-width: 20rem;
    scroll-snap-align: start;
  }
}

@media (max-width: 520px) {
  .site {
    padding: 0 1.1rem;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .brand .brand-sub { display: none; }
  .brand { font-size: 0.95rem; letter-spacing: 0.12em; }
  .nav { gap: 0.75rem; font-size: 0.68rem; letter-spacing: 0.16em; }
  .hero-title { font-size: clamp(2.4rem, 9vw, 3rem); }
  .page-head { padding: 3rem 0 2rem; margin-bottom: 2rem; }
  .site-footer { margin-top: 4rem; padding: 2.5rem 0 3rem; }
  .site-footer .fine-print { flex-direction: column; }
}

/* Use dynamic viewport units where they matter so iOS Safari's address bar
   doesn't clip the pinned slideshow or hero. */
@supports (height: 100dvh) {
  .process-stage { height: 100dvh; }
}

/* ---------- Cart drawer ---------- */

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}
.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.45);
  opacity: 0;
  transition: opacity 260ms ease;
  pointer-events: none;
}
.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(26rem, 100vw);
  background: var(--paper);
  box-shadow: -24px 0 60px -24px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.cart-drawer.open { pointer-events: auto; }
.cart-drawer.open .cart-backdrop { opacity: 1; pointer-events: auto; }
.cart-drawer.open .cart-panel { transform: none; pointer-events: auto; }

body.cart-open { overflow: hidden; }

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.5rem 1rem;
  border-bottom: 1px solid var(--rule);
}
.cart-head .eyebrow { margin: 0; }
.cart-x {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}
.cart-x:hover { color: var(--accent); }

.cart-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}
.cart-empty {
  color: var(--muted);
  font-style: italic;
  text-align: center;
  padding: 3rem 1rem;
}
.cart-line {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.cart-line:last-child { border-bottom: 0; }
.cart-thumb {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: cover;
  background: var(--paper-warm);
}
.cart-line-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 400;
  margin: 0 0 0.25rem;
  line-height: 1.2;
}
.cart-line-meta {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.4rem;
  letter-spacing: 0.04em;
}
.cart-remove {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: none;
  border: 0;
  color: var(--muted);
  padding: 0;
  cursor: pointer;
}
.cart-remove:hover { color: var(--ink); }

.cart-foot {
  border-top: 1px solid var(--rule);
  padding: 1.2rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.cart-totals {
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}
.cart-checkout-btn { width: 100%; justify-content: center; }
.cart-checkout-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.cart-fine {
  font-family: var(--sans);
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  text-align: center;
}

@media (max-width: 520px) {
  .cart-panel { width: 100vw; }
  .cart-head, .cart-foot { padding-left: 1.1rem; padding-right: 1.1rem; }
  .cart-body { padding-left: 1.1rem; padding-right: 1.1rem; }
}
