/* ==========================================================================
   Second Chance Slabs — shared stylesheet
   Editorial serif + soft river-gradient aesthetic
   ========================================================================== */

:root {
  /* Color system */
  --ink: #221b13;            /* espresso — primary text */
  --ink-soft: #4d4237;       /* warm gray-brown — secondary text */
  --walnut: #3b2d21;         /* deep walnut panels */
  --bark: #241d15;           /* darkest — footer / cta band */
  --ivory: #faf6ec;          /* page background */
  --cream: #f2ebda;          /* raised panels */
  --sand: #e6dcc4;           /* borders, subtle fills */
  --river-deep: #58381b;     /* saddle brown — deep accent */
  --river: #8a5f2e;          /* warm oak — mid accent */
  --sage: #d8bd8e;           /* light oak / tan */
  --mist: #eee1c8;           /* palest tan */
  --gold: #b98d4f;           /* brass accent */

  /* Type */
  --serif: "Fraunces", "Georgia", serif;
  --sans: "Manrope", "Helvetica Neue", sans-serif;

  /* Rhythm */
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4rem, 9vw, 8rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

.container {
  width: min(1180px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

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

h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 480;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.display-xl {
  font-size: clamp(2.9rem, 7.2vw, 5.6rem);
  font-variation-settings: "opsz" 144;
}

.display-lg {
  font-size: clamp(2.2rem, 5vw, 3.9rem);
  font-variation-settings: "opsz" 144;
}

.display-md {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-variation-settings: "opsz" 72;
}

.display-italic { font-style: italic; font-weight: 400; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--river);
  margin-bottom: 1.1rem;
}

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 44ch;
}

.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.95rem 2rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
              background 0.3s, color 0.3s;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }

.btn-cream {
  background: var(--ivory);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(20, 30, 25, 0.18);
}
.btn-cream:hover { box-shadow: 0 16px 38px rgba(20, 30, 25, 0.26); }

.btn-dark {
  background: var(--ink);
  color: var(--ivory);
}
.btn-dark:hover { background: var(--walnut); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: rgba(34, 27, 19, 0.28);
}
.btn-outline:hover { border-color: var(--ink); }

/* Sits over the hero photo on short viewports — needs its own backdrop to stay legible */
.hero-actions .btn-outline {
  background: rgba(250, 246, 236, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn-light-outline {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(250, 246, 236, 0.4);
}
.btn-light-outline:hover { border-color: var(--ivory); }

.text-link {
  font-weight: 700;
  color: var(--river-deep);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.25s;
}
.text-link:hover { opacity: 0.65; }

/* --------------------------------------------------------------------------
   Announcement bar + navigation
   -------------------------------------------------------------------------- */

.topbar {
  background: var(--river-deep);
  color: var(--mist);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.55rem var(--gutter);
}
.topbar a {
  color: var(--ivory);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(250, 246, 236, 0.5);
  margin-left: 0.5rem;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem var(--gutter);
  background: rgba(250, 246, 236, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(34, 27, 19, 0.07);
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}
.nav-links.right { justify-content: flex-end; }

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
  padding-bottom: 3px;
  background: linear-gradient(currentColor, currentColor) bottom left / 0% 1.5px no-repeat;
  transition: color 0.25s, background-size 0.4s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); background-size: 100% 1.5px; }
.nav-links a.active { color: var(--ink); border-bottom: 2px solid var(--river); padding-bottom: 3px; }

.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 560;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
  text-align: center;
  white-space: nowrap;
}
.brand span { color: var(--river); font-style: italic; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  justify-self: end;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 4px auto;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav { grid-template-columns: auto 1fr auto; }
  .brand { text-align: left; order: -1; grid-row: 1; grid-column: 1; }
  .nav-toggle { display: block; grid-row: 1; grid-column: 3; }
  .nav-links { display: none; }
  body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    grid-column: 1 / -1;
    gap: 1.1rem;
    padding: 1.2rem 0 0.4rem;
  }
  body.nav-open .nav-links.right { padding-top: 0; }
  .nav-links a { font-size: 1.25rem; font-family: var(--serif); font-weight: 480; }
  .nav-links a.active { border-bottom: none; color: var(--river-deep); }
}

/* --------------------------------------------------------------------------
   Hero — soft river gradient, editorial serif
   -------------------------------------------------------------------------- */

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

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(4rem, 10vh, 7rem) var(--gutter) 0;
  overflow: hidden;
  background: var(--ivory);
}

.hero > * { position: relative; z-index: 2; }

/* Staggered entrance on page load */
.hero .eyebrow   { animation: rise-in 0.9s var(--ease-out) 0.05s both; }
.hero h1         { animation: rise-in 1.0s var(--ease-out) 0.18s both; }
.hero .lede      { animation: rise-in 1.0s var(--ease-out) 0.34s both; }
.hero-actions    { animation: rise-in 1.0s var(--ease-out) 0.5s both; }
.hero-visual     { animation: rise-in 1.1s var(--ease-out) 0.66s both; }

.hero h1 {
  color: #251708;
  max-width: 16ch;
  margin-inline: auto;
}

.hero .lede {
  color: rgba(37, 23, 8, 0.78);
  margin: 1.6rem auto 2.4rem;
}

.hero-actions {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* The slab image sits in normal flow at the bottom of the hero, full width,
   shown uncropped at its own natural aspect ratio — the hero simply grows
   to fit both the text above and the whole image below. */
.hero-visual {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  margin-top: calc(clamp(2rem, 5vh, 3.5rem) - 480px);
  height: calc(100vw / 1.5023 - 288px);
  overflow: hidden;
  will-change: transform;
}
.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 860px) {
  .hero-visual {
    margin-top: clamp(2rem, 5vh, 3rem);
    height: auto;
    overflow: visible;
  }
}

/* Wood/epoxy placeholder artwork (CSS-only, swap for photography) */
.art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  width: 100%;
  background:
    radial-gradient(ellipse 30% 120% at 18% 50%, rgba(0,0,0,0.28), transparent),
    radial-gradient(ellipse 30% 120% at 82% 50%, rgba(0,0,0,0.28), transparent),
    linear-gradient(100deg,
      #4a3526 0%, #5c4430 16%, #3e2d1f 30%,
      #7fae9d 40%, #4c7267 50%, #2d4f47 55%, #7fae9d 62%,
      #5c4430 72%, #453322 86%, #38291b 100%);
}
.art.tall { aspect-ratio: 3 / 4; }
.art.square { aspect-ratio: 1 / 1; }
.art.river-green {
  background:
    radial-gradient(ellipse 34% 130% at 15% 50%, rgba(0,0,0,0.3), transparent),
    radial-gradient(ellipse 34% 130% at 85% 50%, rgba(0,0,0,0.3), transparent),
    linear-gradient(95deg,
      #52381f 0%, #6b4c2c 18%, #52381f 34%,
      #9ec3a4 44%, #5d8f74 52%, #35624f 58%, #9ec3a4 66%,
      #6b4c2c 78%, #52381f 100%);
}
.art.rock {
  background:
    radial-gradient(circle 8px at 44% 46%, #cabfa8 96%, transparent),
    radial-gradient(circle 6px at 52% 58%, #a8977c 96%, transparent),
    radial-gradient(circle 7px at 49% 38%, #baa98d 96%, transparent),
    radial-gradient(circle 5px at 56% 44%, #cabfa8 96%, transparent),
    radial-gradient(ellipse 30% 120% at 12% 50%, rgba(0,0,0,0.3), transparent),
    radial-gradient(ellipse 30% 120% at 88% 50%, rgba(0,0,0,0.3), transparent),
    linear-gradient(97deg,
      #4a3526 0%, #61462f 20%, #4a3526 36%,
      #7ea98f 46%, #3f6a58 54%, #7ea98f 62%,
      #61462f 76%, #3d2c1e 100%);
}
.art.grain {
  background:
    repeating-linear-gradient(93deg,
      #4a3526 0px, #5c4430 14px, #46331f 26px, #553e29 40px, #4a3526 56px),
    linear-gradient(100deg, #4a3526, #38291b);
  background-blend-mode: overlay;
}

/* Light sweeping across the finish, like a glass reflection on cured epoxy */
.art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg,
    transparent 40%, rgba(255, 250, 238, 0.16) 50%, transparent 60%);
  background-size: 240% 100%;
  background-position: 130% 0;
  animation: sheen 7.5s ease-in-out infinite;
}
@keyframes sheen {
  0%, 55% { background-position: 130% 0; }
  100%    { background-position: -110% 0; }
}

/* --------------------------------------------------------------------------
   Stacked cream panels (DoseIQ-style overlap)
   -------------------------------------------------------------------------- */

.panel {
  position: relative;
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--section) var(--gutter);
}

.panel-overlap {
  z-index: 3;
  box-shadow: 0 -24px 60px rgba(25, 35, 28, 0.12);
}

.panel-ivory { background: var(--ivory); }

section { padding: var(--section) 0; }
section.tight { padding-top: calc(var(--section) * 0.55); padding-bottom: calc(var(--section) * 1.4); }
section.tight:not(:has(.steps)) { padding-bottom: calc(var(--section) * 0.55); }

/* --------------------------------------------------------------------------
   Cards & grids
   -------------------------------------------------------------------------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }

@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--ivory);
  border: 1px solid rgba(34, 27, 19, 0.08);
  border-radius: var(--radius-md);
  padding: 2.2rem 1.9rem;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(30, 34, 28, 0.1);
}

.card h3 { font-size: 1.45rem; margin-bottom: 0.7rem; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }

.card .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold);
  display: block;
  margin-bottom: 1.2rem;
}

/* Gallery */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}
@media (max-width: 720px) { .work-grid { grid-template-columns: 1fr; } }

.work-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 0;
  display: block;
  width: 100%;
}
.work-item .art { transition: transform 0.8s var(--ease-out); }
.work-item:hover .art { transform: scale(1.04); }

.work-meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.3rem 1.5rem;
  background: linear-gradient(transparent, rgba(20, 16, 10, 0.72));
  color: var(--ivory);
  transform: translateY(8px);
  transition: transform 0.5s var(--ease-out);
}
.work-item:hover .work-meta { transform: translateY(0); }
.work-meta strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; display: block; }
.work-meta small { font-size: 0.82rem; opacity: 0.85; letter-spacing: 0.06em; text-transform: uppercase; }

.work-item .art { aspect-ratio: unset; }
.work-item .art img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.8s var(--ease-out), opacity 0.4s ease;
  opacity: 0;
}
.work-item .art img.loaded { opacity: 1; }
.work-item:hover .art img { transform: scale(1.04); }

/* Skeleton loading state */
@keyframes skeleton-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.work-item.skeleton { pointer-events: none; }
.work-item.skeleton .art.tall { aspect-ratio: 3 / 4; }
.skeleton-box {
  background: linear-gradient(90deg, var(--mist) 25%, color-mix(in srgb, var(--mist) 60%, white) 50%, var(--mist) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}
.skeleton-line {
  height: 1rem;
  border-radius: 4px;
  width: 60%;
  margin: 0.4rem 0;
  background: linear-gradient(90deg, var(--mist) 25%, color-mix(in srgb, var(--mist) 60%, white) 50%, var(--mist) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   Our Story — dark narrative section
   -------------------------------------------------------------------------- */

.story-dark {
  background: var(--ivory);
  padding: var(--section) 0;
}

.story-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid rgba(34, 27, 19, 0.1);
}

@media (max-width: 780px) {
  .story-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .story-steps { grid-template-columns: 1fr; }
}

.story-rule {
  width: 2rem;
  height: 1.5px;
  background: var(--river);
  margin-bottom: 1.4rem;
}

.story-step h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.story-step p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.story-body {
  text-align: center;
  padding-top: clamp(3rem, 6vw, 5rem);
}

.story-body p {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  font-weight: 440;
  line-height: 1.5;
  color: var(--ink);
  max-width: 680px;
  margin-inline: auto;
}

.story-link {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--river-deep);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.25s;
}
.story-link:hover { opacity: 0.65; }

/* --------------------------------------------------------------------------
   Stats band
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.stat b {
  display: block;
  font-family: var(--serif);
  font-weight: 460;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  color: var(--river-deep);
}
.stat span {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid rgba(34, 27, 19, 0.1);
  padding: 1.1rem 0;
  background: var(--ivory);
}
.marquee-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.marquee-track span::after {
  content: "✦";
  font-style: normal;
  color: var(--gold);
  margin-left: 3.5rem;
  font-size: 0.8rem;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Process — sticky stacked steps
   -------------------------------------------------------------------------- */

.steps { display: grid; gap: 1.4rem; }

.step {
  position: sticky;
  top: 110px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  background: var(--ivory);
  border: 1px solid rgba(34, 27, 19, 0.09);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 3rem);
  box-shadow: 0 18px 50px rgba(30, 34, 28, 0.09);
}
.step:nth-child(2) { top: 126px; }
.step:nth-child(3) { top: 142px; }
.step:nth-child(4) { top: 158px; }
.step:nth-child(5) { top: 174px; }
.step:nth-child(6) { top: 190px; }

@media (max-width: 780px) {
  .step { grid-template-columns: 1fr; position: static; }
}

.step .art { border-radius: var(--radius-md); }

.step-label {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 1.05rem;
  display: block;
  margin-bottom: 0.8rem;
}
.step h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 0.8rem; }
.step p { color: var(--ink-soft); }
.step .fact {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--river);
}

/* --------------------------------------------------------------------------
   Quote / testimonial
   -------------------------------------------------------------------------- */

.quote {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
.quote blockquote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 440;
  font-style: italic;
  line-height: 1.35;
  color: var(--ink);
}
.quote cite {
  display: block;
  margin-top: 1.5rem;
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 50% 110%, rgba(138, 95, 46, 0.5), transparent),
    var(--bark);
  color: var(--ivory);
  border-radius: var(--radius-lg);
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter);
  text-align: center;
}
.cta-band h2 { color: var(--ivory); max-width: 18ch; margin-inline: auto; }
.cta-band p { color: rgba(250, 246, 236, 0.75); max-width: 46ch; margin: 1.4rem auto 2.4rem; }

/* --------------------------------------------------------------------------
   Page hero (interior pages)
   -------------------------------------------------------------------------- */

.page-hero {
  padding: calc(var(--section) * 0.9) var(--gutter) calc(var(--section) * 0.55);
  text-align: center;
  background:
    radial-gradient(ellipse 65% 80% at 50% -30%, rgba(195, 166, 121, 0.35), transparent);
}
.page-hero .eyebrow { animation: rise-in 0.9s var(--ease-out) 0.05s both; }
.page-hero h1 { max-width: 18ch; margin-inline: auto; animation: rise-in 1s var(--ease-out) 0.18s both; }
.page-hero .lede { margin: 1.4rem auto 0; animation: rise-in 1s var(--ease-out) 0.34s both; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form-card {
  background: var(--ivory);
  border: 1px solid rgba(34, 27, 19, 0.09);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: 0 24px 60px rgba(30, 34, 28, 0.08);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.45rem;
}

input, select, textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid rgba(34, 27, 19, 0.18);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--river);
  box-shadow: 0 0 0 4px rgba(138, 95, 46, 0.16);
}
textarea { resize: vertical; min-height: 130px; }

.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 1rem; }

/* Info blocks on contact page */
.info-list { list-style: none; display: grid; gap: 1.4rem; }
.info-list b { display: block; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--river); margin-bottom: 0.2rem; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

details {
  border-bottom: 1px solid rgba(34, 27, 19, 0.12);
  padding: 1.3rem 0;
}
details summary {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 1.4rem;
  color: var(--river);
  transition: transform 0.3s var(--ease-out);
}
details[open] summary::after { transform: rotate(45deg); }
details p { padding-top: 0.8rem; color: var(--ink-soft); max-width: 62ch; }
details[open] p { animation: rise-in 0.55s var(--ease-out); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

footer {
  background: var(--bark);
  color: rgba(250, 246, 236, 0.72);
  margin-top: var(--section);
  padding: calc(var(--section) * 0.8) var(--gutter) 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(250, 246, 236, 0.12);
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--ivory);
  text-decoration: none;
}
.footer-grid p { font-size: 0.95rem; max-width: 34ch; margin-top: 0.9rem; }

.footer-grid h4 {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; display: grid; gap: 0.55rem; }
.footer-grid ul a { text-decoration: none; font-size: 0.95rem; transition: color 0.25s; }
.footer-grid ul a:hover { color: var(--ivory); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-top: 1.6rem;
  font-size: 0.82rem;
  opacity: 0.65;
}

/* --------------------------------------------------------------------------
   Project modal
   -------------------------------------------------------------------------- */

body.modal-open { overflow: hidden; }

#proj-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(20, 16, 10, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: flex-end;
  justify-content: center;
}
#proj-modal.open { display: flex; }

#proj-modal-inner {
  background: var(--ivory);
  width: 100%;
  max-width: 1100px;
  max-height: 92vh;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.35s var(--ease-out) both;
}

@keyframes slideUp {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

#proj-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.75rem;
  border-bottom: 1px solid rgba(20,16,10,.1);
  flex-shrink: 0;
}

#proj-modal-title {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 500;
}

#proj-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--ink);
  opacity: 0.5;
  padding: 0.2rem 0.4rem;
  transition: opacity 0.2s;
}
#proj-modal-close:hover { opacity: 1; }

#proj-modal-grid {
  overflow-y: auto;
  padding: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

.pm-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: zoom-in;
  background: var(--sand);
}

.pm-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.5s var(--ease-out);
}
.pm-thumb img.loaded { opacity: 1; }
.pm-thumb:hover img { transform: scale(1.05); }

@media (max-width: 600px) {
  #proj-modal-grid { grid-template-columns: 1fr 1fr; gap: 4px; padding: 0.75rem; }
  #proj-modal-inner { max-height: 95vh; border-radius: 1.25rem 1.25rem 0 0; }
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0,0,0,.92);
  align-items: center;
  justify-content: center;
}
#lightbox.open { display: flex; }

#lb-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

#lb-close {
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  background: none; border: none;
  color: #fff; font-size: 2rem;
  cursor: pointer; line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}
#lb-close:hover { opacity: 1; }

#lb-prev, #lb-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: none; border: none;
  color: #fff; font-size: 2.5rem;
  cursor: pointer; padding: 0.5rem 1.25rem;
  transition: opacity 0.2s;
}
#lb-prev { left: 0.5rem; }
#lb-next { right: 0.5rem; }

#lb-counter {
  position: absolute;
  bottom: 1.25rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.5);
  font-size: 0.85rem; letter-spacing: 0.08em;
}

/* --------------------------------------------------------------------------
   Piece carousel
   -------------------------------------------------------------------------- */

.carousel-section {
  padding: 0 0 clamp(2.5rem, 5vw, 4rem);
}

.carousel-wrap {
  position: relative;
  overflow: hidden;
  background: var(--bark);
  user-select: none;
  touch-action: pan-y;
}

.carousel-track {
  display: flex;
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.carousel-track.dragging { transition: none; }

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  overflow: hidden;
  height: clamp(320px, 55vw, 520px);
}

.csl-img {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.csl-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Caption panel — hidden on mobile (shown below carousel instead) */
.csl-info { display: none; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(20, 18, 16, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, opacity 0.2s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.carousel-btn:hover { background: rgba(20, 18, 16, 0.85); }
.carousel-btn:disabled { opacity: 0.15; cursor: default; }
.carousel-prev { left: 14px; }
.carousel-next { right: 14px; }

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
}
.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}
.carousel-dot.active {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.3);
}

.carousel-counter {
  position: absolute;
  top: 14px;
  right: 16px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-family: var(--sans);
  z-index: 10;
  background: rgba(0, 0, 0, 0.25);
  padding: 3px 9px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.carousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--gold);
  opacity: 0.7;
  z-index: 10;
}

.carousel-caption-text {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.55;
  padding: 1rem var(--gutter) 0;
  max-width: min(720px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  min-height: 1.55em;
  transition: opacity 0.3s;
}

/* ── Desktop: text left, image right ── */
@media (min-width: 900px) {
  .carousel-slide {
    display: grid;
    grid-template-columns: 2fr 3fr;
    height: clamp(540px, 72vh, 860px);
  }

  /* Text panel: content centered, room for counter above and arrows below */
  .csl-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
    padding: calc(2rem + 1.5em) clamp(2.5rem, 5vw, 4.5rem) calc(2rem + 44px + 1.5rem);
    background: var(--ivory);
  }

  .csl-category {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--river);
  }

  .csl-caption {
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2.1vw, 2rem);
    font-weight: 440;
    line-height: 1.38;
    color: var(--ink);
    margin: 0;
  }

  .csl-num { display: none; }

  /* Counter: top-left, subtle */
  .carousel-counter {
    left: clamp(2.5rem, 5vw, 4.5rem);
    top: 2rem;
    right: auto;
    background: transparent;
    color: var(--ink-soft);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    opacity: 0.35;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
  }

  /* Dots: hidden — counter shows position */
  .carousel-dots { display: none; }

  /* Plain arrows: no circle, no border, no blur */
  .carousel-prev {
    left: clamp(2.5rem, 5vw, 4.5rem);
    bottom: 2rem;
    top: auto;
    transform: none;
    background: transparent;
    border: none;
    color: var(--ink);
    opacity: 0.35;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    font-size: 1.1rem;
    transition: opacity 0.2s;
  }
  .carousel-prev:hover { background: transparent; opacity: 0.9; }
  .carousel-prev:disabled { opacity: 0.12; }

  .carousel-next {
    left: calc(clamp(2.5rem, 5vw, 4.5rem) + 44px);
    right: auto;
    bottom: 2rem;
    top: auto;
    transform: none;
    background: transparent;
    border: none;
    color: var(--ink);
    opacity: 0.35;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    font-size: 1.1rem;
    transition: opacity 0.2s;
  }
  .carousel-next:hover { background: transparent; opacity: 0.9; }
  .carousel-next:disabled { opacity: 0.12; }

  /* No progress bar, no caption text on desktop */
  .carousel-progress { display: none; }
  .carousel-caption-text { display: none; }
}

/* --------------------------------------------------------------------------
   Portfolio Stage — fullscreen gallery (gallery.html)
   -------------------------------------------------------------------------- */

.portfolio-stage {
  position: relative;
  background: var(--ivory);
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 clamp(2rem, 6vw, 5rem);
}

.ps-ghost-num {
  position: absolute;
  top: 50%;
  left: 3vw;
  transform: translateY(-55%);
  font-family: var(--serif);
  font-size: clamp(10rem, 24vw, 20rem);
  font-weight: 600;
  line-height: 1;
  color: rgba(36, 29, 21, 0.06);
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 144;
}

.ps-layout {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
}

.ps-text {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  width: clamp(180px, 26%, 380px);
  padding-right: 2rem;
}

.ps-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.6rem;
}

/* Clip mask — overflow:hidden parent so title slides up into view */
.ps-title-clip {
  overflow: hidden;
  margin-bottom: 0.8rem;
}

.ps-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5.5vw, 5rem);
  font-weight: 560;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--bark);
  max-width: 14ch;
  margin-bottom: 0;
  font-variation-settings: "opsz" 144;
}

.ps-count {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(36, 29, 21, 0.4);
  margin-bottom: 2.2rem;
}

.ps-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--bark);
  text-decoration: none;
  border-bottom: 1px solid rgba(36, 29, 21, 0.35);
  padding-bottom: 3px;
  transition: border-color 0.25s, gap 0.25s;
}
.ps-cta:hover { border-color: var(--bark); gap: 0.8rem; }

/* Image column: extends to viewport right edge (stage overflow:hidden clips it) */
.ps-image-wrap {
  flex: 1;
  min-width: 0;
  margin-left: -4rem;
  margin-right: calc(-1 * clamp(2rem, 6vw, 5rem));
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

/* Horizontal image slider inside the image column */
.ps-img-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.65s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}

/* Each image is 84% of the wrap — the right 16% shows the next slide */
.ps-img-track img {
  flex: 0 0 84%;
  width: 84%;
  height: clamp(280px, 58vh, 620px);
  object-fit: cover;
  display: block;
  filter: brightness(0.45) saturate(0.6);
  transition: filter 0.6s;
}
.ps-img-track img.active          { filter: brightness(1) saturate(1); }
.portfolio-stage:hover .ps-img-track img.active { filter: brightness(1.05) saturate(1.05); }

/* Controls */
.ps-controls {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 0 clamp(2rem, 6vw, 5rem);
  z-index: 20;
}

.ps-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ps-dot {
  width: 32px;
  height: 2px;
  background: rgba(36, 29, 21, 0.18);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.35s, width 0.35s var(--ease-out);
  border-radius: 1px;
}
.ps-dot.active { background: var(--gold); width: 48px; }
.ps-dot:hover:not(.active) { background: rgba(36, 29, 21, 0.38); }

.ps-arrows {
  display: flex;
  gap: 0.65rem;
}

.ps-arrow {
  background: none;
  border: 1px solid rgba(36, 29, 21, 0.2);
  color: rgba(36, 29, 21, 0.55);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ps-arrow:hover:not(:disabled) { border-color: var(--bark); color: var(--bark); }
.ps-arrow:disabled { opacity: 0.18; cursor: default; }

.ps-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(36, 29, 21, 0.45);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

/* ── Entrance animations ── */
@keyframes ps-clip-reveal {
  from { transform: translateY(105%); }
  to   { transform: translateY(0); }
}
@keyframes ps-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ps-ghost-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* All text starts hidden */
.portfolio-stage .ps-ghost-num,
.portfolio-stage .ps-label,
.portfolio-stage .ps-count,
.portfolio-stage .ps-cta { opacity: 0; }
.portfolio-stage .ps-title { transform: translateY(105%); }

/* .ps-play triggers staggered entrance — toggled on each navigation */
.portfolio-stage.ps-play .ps-ghost-num { animation: ps-ghost-in    1.1s var(--ease-out) 0s    both; }
.portfolio-stage.ps-play .ps-label     { animation: ps-fade-up     0.5s  var(--ease-out) 0.05s both; }
.portfolio-stage.ps-play .ps-title     { animation: ps-clip-reveal 0.7s  var(--ease-out) 0.08s both; }
.portfolio-stage.ps-play .ps-count     { animation: ps-fade-up     0.45s var(--ease-out) 0.22s both; }
.portfolio-stage.ps-play .ps-cta       { animation: ps-fade-up     0.45s var(--ease-out) 0.3s  both; }

@media (max-width: 780px) {
  .portfolio-stage {
    padding: 0;
    align-items: flex-end;
  }

  .ps-layout {
    flex-direction: column;
    align-items: stretch;
    height: 100%;
  }

  .ps-image-wrap {
    position: absolute;
    inset: 0;
    border-radius: 0;
    margin-left: 0;
    z-index: 0;
  }

  .ps-img-track { height: 100%; }

  .ps-img-track img,
  .ps-img-track img.active {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    filter: brightness(0.5);
  }

  .ps-text {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 2rem clamp(1.5rem, 5vw, 3rem) 7rem;
    margin-top: auto;
    background: linear-gradient(transparent, rgba(250, 246, 236, 0.92) 30%);
  }

  .ps-ghost-num {
    font-size: clamp(7rem, 20vw, 12rem);
    top: 15%;
    transform: none;
  }

  .ps-controls { bottom: 1.5rem; }
}

/* --------------------------------------------------------------------------
   Gallery — piece sections
   -------------------------------------------------------------------------- */

.piece-section--gap {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  padding-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid rgba(34, 27, 19, 0.1);
}

.piece-back {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--river);
  margin-bottom: 1.4rem;
  transition: opacity 0.25s;
}
.piece-back:hover { opacity: 0.65; }

.piece-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 480;
  color: var(--ink);
  margin-bottom: 1.8rem;
}

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

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

/* ==========================================================================
   Pigment Picker
   ========================================================================== */

.picker-section { background: var(--ivory); }

.picker-wrap {
  margin-top: 3rem;
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.picker-canvas-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--sand);
  background: #3a2510;
  position: relative;
  margin-bottom: 1.25rem;
}

.picker-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: auto;
}

.picker-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #a08060;
  background: #3a2510;
}

.picker-controls { margin-bottom: 1.25rem; }

.picker-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.picker-chip {
  height: 28px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 1px solid var(--sand);
  background: transparent;
  color: var(--ink-soft);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.picker-chip:hover { border-color: var(--river); color: var(--ink); }
.picker-chip.on { border-color: var(--walnut); background: var(--walnut); color: var(--ivory); }

.picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
}

.picker-sw {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 10px;
  width: 100%;
}

.picker-sw:hover .picker-sc { transform: scale(1.05); }

.picker-sc {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.10);
  transition: transform 0.12s;
}

.picker-sc.sel {
  outline: 2.5px solid var(--river-deep);
  outline-offset: 2px;
}

.picker-sn {
  font-size: 0.68rem;
  font-family: var(--sans);
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.3;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.picker-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: var(--ivory);
  border: 1px solid var(--sand);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.picker-bar-left { display: flex; align-items: center; gap: 10px; }

.picker-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--sand);
  flex-shrink: 0;
  transition: background 0.4s;
}

.picker-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--river);
  font-family: var(--sans);
  font-weight: 700;
  margin-bottom: 1px;
}

.picker-name {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
}

.picker-note {
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

@media (min-width: 900px) {
  .picker-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    column-gap: clamp(1rem, 2.5vw, 2rem);
  }

  .picker-canvas-wrap {
    grid-column: 1;
    grid-row: 1 / 3;
    margin-bottom: 0;
    align-self: start;
  }

  .picker-controls {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 0;
  }

  .picker-grid {
    grid-template-columns: repeat(13, minmax(0, 1fr));
    gap: 5px;
  }

  .picker-grid[data-family="Blues"] {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .picker-grid[data-family="Greens"],
  .picker-grid[data-family="Purples"],
  .picker-grid[data-family="Colorshifts"],
  .picker-grid[data-family="Metallics"],
  .picker-grid[data-family="Reds & Pinks"],
  .picker-grid[data-family="Neutrals"] {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .picker-bar {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .picker-note {
    grid-column: 1 / -1;
    grid-row: 4;
  }
}

/* --------------------------------------------------------------------------
   Availability Calendar — build schedule
   -------------------------------------------------------------------------- */

/* ==========================================================================
   Commissions / Availability — two-column layout
   ========================================================================== */

.commissions-section {
  padding: calc(var(--section) * 0.6) 0;
}

.commissions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

/* Left copy */
.commissions-left h2 {
  margin-top: 0.6rem;
}
.commissions-left .lede {
  margin-top: 1.1rem;
  max-width: 48ch;
}
.commissions-accent {
  color: #4a9060;
  font-weight: 700;
}
.commissions-quote {
  margin-top: 1.6rem;
  padding-left: 1.1rem;
  border-left: 3px solid var(--gold);
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.65;
}
.commissions-quote a {
  color: var(--river);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.commissions-quote a:hover { border-color: var(--river); }

/* Slide-in-from-right reveal variant */
.reveal.reveal-right {
  transform: translateX(40px);
}
.reveal.reveal-right.visible {
  transform: none;
}

/* Booking card */
.commissions-card {
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
}

.cc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.cc-booking-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.cc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4a9060;
  flex-shrink: 0;
}

.cc-month {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 500;
  color: var(--ink);
}

.cc-bars {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-bottom: 0.7rem;
}

.cc-bar {
  height: 5px;
  border-radius: 3px;
}
.cc-bar-filled { background: #4a9060; }
.cc-bar-empty  { background: var(--sand); }

.cc-slots-note {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
  line-height: 1.5;
}

.cc-table {
  border-top: 1px solid rgba(34, 27, 19, 0.1);
}

.cc-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(34, 27, 19, 0.08);
}
.cc-row:last-child { border-bottom: none; }

.cc-type {
  font-size: 0.9rem;
  color: var(--ink);
}

.cc-hours {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: right;
}
.cc-hours-accent { color: #4a9060; }

.cc-weeks {
  font-size: 0.85rem;
  color: var(--ink-soft);
  min-width: 6.5rem;
  text-align: right;
}

.cc-footer-note {
  margin-top: 1.2rem;
  font-family: monospace;
  font-size: 0.72rem;
  color: var(--ink-soft);
  opacity: 0.7;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .commissions-grid {
    grid-template-columns: 1fr;
  }
  .reveal.reveal-right {
    transform: translateY(34px);
  }
}

@media (max-width: 460px) {
  .avail-row-item { grid-template-columns: 1fr; }
  .avail-ri-right { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .art::after,
  .hero .eyebrow, .hero h1, .hero .lede, .hero-actions, .hero-visual,
  .page-hero .eyebrow, .page-hero h1, .page-hero .lede,
  details[open] p { animation: none; }
  html { scroll-behavior: auto; }
}
