/* Counterwood Custom Tops & Accents — site styles
   Inherits the Bespoke Interior Style token system (dark bark + gold + cream,
   Gambetta / Switzer / Courier Prime) with one differentiator: --walnut. */

:root {
  --bark: #241d16;
  --bark-2: #2f261d;
  --sand: #f3ebdd;
  --gold-deep: #8a5a12;
  --ink: #33291c;
  --gold: #de9d37;
  --gold-light: #e8ae55;
  --cream: #faf4e9;
  --stone: #c9bfae;
  --smoke: #9aa3a0;

  /* Counterwood differentiator */
  --walnut: #6b4326;
  --walnut-soft: rgba(107, 67, 38, 0.5);

  --font-display: "Gambetta", "Iowan Old Style", Georgia, serif;
  --font-body: "Switzer", "Helvetica Neue", Arial, sans-serif;
  --font-label: "Courier Prime", "Courier New", monospace;

  --gutter: clamp(1.25rem, 5vw, 6rem);
  --measure: 62ch;
  --rule: rgba(201, 191, 174, 0.18);
  --rule-dark: rgba(51, 41, 28, 0.16);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--bark);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.7;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--bark); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--gold);
  color: var(--bark);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-label);
  font-size: 0.75rem;
  text-decoration: none;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- type primitives ---------- */

.label {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: lowercase;
  color: var(--gold);
  margin: 0;
  max-width: none;
}
.label--smoke { color: var(--smoke); }
.label--ink { color: rgba(51, 41, 28, 0.62); }

.display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0;
  overflow-wrap: break-word;
}

h2.display { font-size: clamp(1.875rem, 1.3rem + 2.6vw, 3.5rem); }

h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0 0 1.25em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.6;
  color: var(--stone);
  font-weight: 300;
}

.muted { color: var(--smoke); }

/* ---------- layout ---------- */

.section {
  padding: clamp(4rem, 8vw, 9rem) var(--gutter);
  position: relative;
}
.section--light { background: var(--cream); color: var(--ink); }
.section--light .lede { color: rgba(51, 41, 28, 0.74); }
.section--light .muted { color: rgba(51, 41, 28, 0.6); }
.section--light .label--smoke { color: rgba(51, 41, 28, 0.6); }

.wrap { max-width: 1240px; margin: 0 auto; width: 100%; }

.head {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.head__rule { width: 100%; height: 1px; background: var(--rule); margin-top: 0.5rem; }
.section--light .head__rule { background: var(--rule-dark); }

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

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal, .reveal-off .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gutter);
  background: rgba(36, 29, 22, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.5s ease, border-color 0.5s ease, padding 0.4s ease;
}
.nav.is-stuck {
  background: rgba(36, 29, 22, 0.93);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: rgba(201, 191, 174, 0.12);
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.nav__home {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex: 0 0 auto;
  color: var(--gold);
  min-width: 0;
}
.nav__mark { width: 34px; height: 34px; flex: 0 0 auto; }
.nav__wordmark { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.nav__wordmark-1 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.nav__wordmark-2 {
  font-family: var(--font-label);
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  color: var(--smoke);
  margin-top: 2px;
  white-space: nowrap;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: var(--stone);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}
.nav__links a:hover, .nav__links a.is-active {
  color: var(--gold);
  border-bottom-color: rgba(222, 157, 55, 0.6);
}

.nav__cta {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid rgba(222, 157, 55, 0.45);
  padding: 0.65rem 1rem;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
  white-space: nowrap;
  flex: 0 0 auto;
}
.nav__cta:hover { background: var(--gold); border-color: var(--gold); color: var(--bark); }

@media (max-width: 940px) {
  .nav__links { display: none; }
}
@media (max-width: 460px) {
  .nav__wordmark-2 { display: none; }
  .nav__wordmark-1 { font-size: 0.9375rem; letter-spacing: 0.12em; }
  .nav__cta { font-size: 0.5625rem; letter-spacing: 0.1em; padding: 0.55rem 0.7rem; }
  .nav__mark { width: 30px; height: 30px; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 7.5rem var(--gutter) clamp(2.5rem, 4vw, 3.5rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; }
/* shop footage sits over the still and cross-fades in once it actually plays */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
  opacity: 0;
  transition: opacity 900ms ease;
  pointer-events: none;
}
.hero__video.is-playing { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(36,29,22,0.70) 0%, rgba(36,29,22,0.14) 32%, rgba(36,29,22,0.34) 70%, rgba(36,29,22,0.88) 100%),
    linear-gradient(90deg, rgba(36,29,22,0.82) 0%, rgba(36,29,22,0.44) 42%, rgba(36,29,22,0.03) 78%);
}
.hero__inner { width: 100%; max-width: 1240px; margin: 0 auto; }

.hero__badge { width: clamp(104px, 11vw, 148px); margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.hero__badge svg { width: 100%; height: auto; border-radius: 50%; }
.badge__word, .badge__sub { font-family: var(--font-display); }

.hero .label { margin-bottom: 1rem; }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.25rem, 1.3rem + 4.4vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 1.35rem;
  max-width: 19ch;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold-light);
  white-space: nowrap;
}
/* narrow phones: let the accent phrase wrap rather than overrun the viewport */
@media (max-width: 640px) {
  .hero h1 { max-width: none; }
  .hero h1 em { white-space: normal; }
}

.hero__sub {
  max-width: 48ch;
  color: var(--stone);
  font-size: clamp(1rem, 0.96rem + 0.3vw, 1.1875rem);
  line-height: 1.6;
  margin-bottom: clamp(1.75rem, 3vw, 2.25rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.hero__caption {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.1rem;
  border-top: 1px solid var(--walnut-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  text-decoration: none;
  padding: 1rem 1.5rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
  text-align: center;
}
.btn:hover { background: var(--gold); color: var(--bark); }
.btn__arrow { transition: transform 0.35s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--ghost { border-color: rgba(201, 191, 174, 0.35); color: var(--stone); }
.btn--ghost:hover { background: transparent; border-color: var(--stone); color: var(--cream); }

.btn--sm { padding: 0.8rem 1.15rem; font-size: 0.6875rem; letter-spacing: 0.14em; }

.btn--solid { background: var(--gold); color: var(--bark); border-color: var(--gold); }
.btn--solid:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.btn[disabled]:hover { background: var(--gold); }

.link-line {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-decoration: none;
  border: 0;
  border-bottom: 1px solid rgba(222, 157, 55, 0.35);
  padding: 0 0 2px;
  background: none;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
  overflow-wrap: anywhere;
}
.link-line:hover { color: var(--gold-light); border-bottom-color: var(--gold-light); }

/* ---------- craft ---------- */

.craft { border-top: 1px solid var(--walnut-soft); }
.craft__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.25rem, 4.5vw, 4.5rem);
}
.craft__quote { max-width: 22ch; }
.craft__quote span { color: var(--gold); font-style: italic; }
.craft__aside { margin-top: 1.75rem; display: flex; align-items: center; gap: 1rem; }
.craft__aside .rule { height: 1px; width: 3rem; background: rgba(222, 157, 55, 0.6); flex: 0 0 auto; }
@media (max-width: 640px) {
  .craft__aside { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}
.craft__body { display: grid; gap: 1.5rem; align-content: start; }

@media (min-width: 940px) {
  .craft__grid { grid-template-columns: 1.02fr 1fr; align-items: start; }
}

.pillars {
  list-style: none;
  margin: clamp(2.75rem, 6vw, 5rem) 0 0;
  padding: 0;
  display: grid;
  border-top: 1px solid var(--rule);
}
.pillars li {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: 0.5rem 2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--rule);
}
.pillars .pillar__name {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: lowercase;
  padding-top: 0.35rem;
}
.pillars .pillar__text { color: var(--stone); margin: 0; max-width: 58ch; }

@media (max-width: 680px) {
  .pillars li { grid-template-columns: 1fr; gap: 0.35rem; }
  .pillars .pillar__name { padding-top: 0; }
}

/* ---------- pieces ---------- */

.section--work {
  background: var(--sand);
  color: var(--ink);
  border-top: 1px solid var(--rule-dark);
}
.section--work h2,
.section--work h3 { color: var(--ink); }
.section--work .head__rule { background: var(--rule-dark); }
.section--work .label { color: var(--gold-deep); }
.section--work .lede { color: rgba(51, 41, 28, 0.74); }
.section--work .muted { color: rgba(51, 41, 28, 0.6); }
.section--work .piece__body > p { color: rgba(51, 41, 28, 0.78); }
.section--work .spec { border-top-color: var(--rule-dark); }
.section--work .spec > div { border-bottom-color: var(--rule-dark); }
.section--work .spec dt { color: var(--gold-deep); }
.section--work .spec dd { color: rgba(51, 41, 28, 0.72); }
.section--work .btn {
  color: var(--ink);
  border-color: rgba(51, 41, 28, 0.38);
}
.section--work .btn:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  color: var(--cream);
}

.pieces { display: grid; gap: clamp(3.5rem, 7vw, 6.5rem); }

.piece {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}
.piece__media { position: relative; }
.piece__media picture { display: block; }
.piece__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--walnut-soft);
}
.piece__body { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.piece__body h3 { margin-top: -0.25rem; }
.piece__body > p { color: var(--stone); margin: 0; max-width: 52ch; }

.spec {
  margin: 0.35rem 0 0.5rem;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.spec > div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0.25rem 1.25rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
}
.spec dt {
  font-family: var(--font-label);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: lowercase;
  padding-top: 0.15rem;
}
.spec dd {
  margin: 0;
  color: var(--stone);
  font-size: 0.9375rem;
  line-height: 1.5;
  overflow-wrap: break-word;
}
.piece__body .btn { justify-self: start; }

@media (max-width: 520px) {
  .spec > div { grid-template-columns: 1fr; gap: 0.1rem; }
  .spec dt { padding-top: 0; }
}

@media (min-width: 900px) {
  .piece { grid-template-columns: 1.06fr 1fr; gap: clamp(2.5rem, 4vw, 4.5rem); }
  .piece--flip .piece__media { order: 2; }
  .piece--flip .piece__body { order: 1; }
}

/* ---------- edge band ---------- */

.band {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(58vh, 520px);
  padding: clamp(3rem, 7vw, 6rem) var(--gutter);
  overflow: hidden;
}
.band picture { position: absolute; inset: 0; z-index: -2; }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 55%; }
.band__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(36,29,22,0.86) 0%, rgba(36,29,22,0.52) 42%, rgba(36,29,22,0.22) 74%, rgba(36,29,22,0.46) 100%);
}
.band__quote cite.label--smoke { color: rgba(250, 244, 233, 0.72); }
.band__quote { margin: 0; max-width: 1240px; margin-inline: auto; width: 100%; }
.band__quote p {
  font-size: clamp(1.625rem, 1.1rem + 2.6vw, 3rem);
  max-width: 24ch;
  margin: 0 0 1rem;
}
.band__quote cite { font-style: normal; display: block; margin-top: 1.25rem; }

/* ---------- process ---------- */

.process__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
@media (min-width: 1000px) {
  .process__layout { grid-template-columns: 1.35fr 0.65fr; }
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--rule-dark); }
.steps li {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 0.5rem 2rem;
  padding: clamp(1.5rem, 2.5vw, 2rem) 0;
  border-bottom: 1px solid var(--rule-dark);
}
.steps__no {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  color: var(--walnut);
  padding-top: 0.5rem;
}
.steps h3 { margin-bottom: 0.6rem; }
.steps p { margin: 0; color: rgba(51, 41, 28, 0.76); max-width: 56ch; }

@media (max-width: 640px) {
  .steps li { grid-template-columns: 1fr; gap: 0.5rem; }
  .steps__no { padding-top: 0; }
}

.process__aside { display: grid; gap: 0.9rem; }
.process__aside img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--rule-dark);
}

/* ---------- species ---------- */

.species {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (min-width: 620px) { .species { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 940px) { .species { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.species li {
  background: var(--bark);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  display: grid;
  gap: 0.75rem;
  align-content: start;
}
.species li h3 { color: var(--cream); }
.species__note { color: var(--stone); margin: 0; font-size: 0.9375rem; line-height: 1.6; max-width: 42ch; }
.species__use {
  margin-top: 0.35rem;
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  line-height: 1.7;
}
.species__use b {
  font-weight: 400;
  color: rgba(154, 163, 160, 0.7);
  letter-spacing: 0.18em;
}

/* ---------- materials on light ---------- */

#materials {
  background: var(--sand);
  color: var(--ink);
  border-top: 1px solid var(--rule-dark);
}
#materials h2 { color: var(--ink); }
#materials .label { color: var(--gold-deep); }
#materials .lede { color: rgba(51, 41, 28, 0.74); }
#materials .head__rule { background: var(--rule-dark); }
#materials .species {
  background: var(--rule-dark);
  border-color: var(--rule-dark);
}
#materials .species li { background: #fdf8ee; }
#materials .species li h3 { color: var(--ink); }
#materials .species__note { color: rgba(51, 41, 28, 0.78); }
#materials .label--smoke { color: rgba(51, 41, 28, 0.58); }
#materials .species__use b { color: var(--gold-deep); }

/* ---------- trade ---------- */

.trade {
  background: linear-gradient(160deg, var(--bark-2) 0%, #34281c 100%);
  border-top: 1px solid var(--walnut-soft);
  border-bottom: 1px solid var(--walnut-soft);
}
.trade__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
@media (min-width: 960px) { .trade__grid { grid-template-columns: 0.9fr 1.1fr; } }
.trade h2 { max-width: 18ch; }
.trade .label { margin-bottom: 1rem; }
.trade__list {
  list-style: none;
  margin: 1.75rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 0.75rem 1.5rem;
}
.trade__list li {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--stone);
  padding-left: 1.1rem;
  position: relative;
}
.trade__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 1px;
  background: var(--gold);
}

/* ---------- form ---------- */

.section--form { border-top: 1px solid var(--rule); }
.form__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
@media (min-width: 1020px) {
  .form__layout { grid-template-columns: 0.82fr 1.18fr; }
  .form__intro { position: sticky; top: 7rem; }
}
.form__intro .label { margin-bottom: 1rem; }
.form__intro h2 { margin-bottom: 1.25rem; }
.form__facts {
  margin-top: 2.25rem;
  display: grid;
  gap: 1.25rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}
.form__facts > div { display: grid; gap: 0.4rem; }
.form__facts p { margin: 0; color: var(--stone); font-size: 0.9375rem; line-height: 1.55; max-width: 40ch; }

.form__panel {
  background: var(--bark-2);
  border: 1px solid var(--walnut-soft);
  padding: clamp(1.5rem, 3.2vw, 2.75rem);
  min-width: 0;
}

.form { display: grid; gap: 1.25rem; }
.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.25rem;
}
.form__row--single { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) {
  .form__row--single { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form__row--single .field:only-child { grid-column: span 1; }
}

.field { display: grid; gap: 0.5rem; min-width: 0; }
.field label {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  color: var(--stone);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.req { color: var(--gold); }
.opt { color: var(--smoke); font-size: 0.5625rem; letter-spacing: 0.14em; }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9375rem;
  color: var(--cream);
  background: rgba(36, 29, 22, 0.66);
  border: 1px solid rgba(201, 191, 174, 0.2);
  border-radius: 0;
  padding: 0.85rem 0.9rem;
  transition: border-color 0.3s ease, background 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 8rem; line-height: 1.6; }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
                    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) calc(50% + 1px), calc(100% - 0.8rem) calc(50% + 1px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
  cursor: pointer;
  text-overflow: ellipsis;
}
.field select option { background: var(--bark-2); color: var(--cream); }
.field input::placeholder, .field textarea::placeholder { color: rgba(154, 163, 160, 0.65); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(201, 191, 174, 0.34); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(36, 29, 22, 0.93);
  box-shadow: 0 0 0 1px rgba(222, 157, 55, 0.35);
}
.field [aria-invalid="true"] { border-color: #c9603f; box-shadow: 0 0 0 1px rgba(201, 96, 63, 0.35); }
.field__err {
  font-family: var(--font-label);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: #e08a68;
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.form__fine {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--smoke);
  max-width: 32ch;
  line-height: 1.5;
}
.form__status {
  margin: 0;
  font-family: var(--font-label);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  line-height: 1.6;
  color: var(--smoke);
  max-width: none;
}
.form__status:empty { display: none; }
.form__status.is-error { color: #e08a68; }
.form__status.is-busy { color: var(--gold); }
.form__status a { color: var(--gold); }

.form__done { display: grid; gap: 0.85rem; justify-items: start; color: var(--cream); }
.form__done-mark { width: 44px; height: 44px; color: var(--gold); margin-bottom: 0.5rem; }
.form__done h3 { max-width: 26ch; }
.form__done > p { color: var(--stone); margin: 0; max-width: 44ch; }
.form__done-fine { font-size: 0.875rem; line-height: 1.6; }
.form__again { margin-top: 0.75rem; }

/* ---------- footer ---------- */

.footer {
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) 2rem;
  border-top: 1px solid var(--walnut-soft);
  background: #1e1811;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
.footer__brand { display: grid; gap: 1rem; justify-items: start; color: var(--gold); }
.footer__mark { width: 44px; height: 44px; }
.footer__name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
  line-height: 1.2;
  display: grid;
  gap: 0.35rem;
}
.footer__name span {
  font-family: var(--font-label);
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: var(--smoke);
}
.footer__col ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.footer__col li { font-size: 0.875rem; color: var(--stone); line-height: 1.5; overflow-wrap: anywhere; }
.footer__col a { text-decoration: none; border-bottom: 1px solid transparent; transition: color 0.3s ease, border-color 0.3s ease; }
.footer__col a:hover { color: var(--gold); border-bottom-color: rgba(222, 157, 55, 0.5); }

.footer__base {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

/* ---------- shop gallery ---------- */

.gallery { background: var(--bark-2); }

/* Justified rows: inside each row the column widths are proportional to each
   photo's own aspect ratio, so every photo in a row lands at exactly the same
   height, the row bottoms line up, and nothing gets cropped. Real slab photos
   come in every shape and cropping them would hide the live edge. */
.gal {
  display: flex;
  flex-direction: column;
  gap: clamp(0.7rem, 1.3vw, 1.25rem);
}

.gal__row {
  display: grid;
  grid-template-columns: var(--frs);
  gap: clamp(0.7rem, 1.3vw, 1.25rem);
  align-items: start;
}

.gal__item {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.gal__btn {
  display: block;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid var(--walnut-soft);
  background: var(--bark);
  cursor: zoom-in;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.45s ease;
}
.gal__btn picture { display: block; }
.gal__btn img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--ar, 1);
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.gal__btn:hover { border-color: var(--gold); }
.gal__btn:hover img { transform: scale(1.035); }
.gal__btn:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

.gal__zoom {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  color: var(--bark);
  background: var(--gold);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.gal__btn:hover .gal__zoom,
.gal__btn:focus-visible .gal__zoom { opacity: 1; transform: none; }

.gal__cap {
  font-family: var(--font-label);
  font-size: 0.75rem;
  line-height: 1.55;
  color: rgba(201, 191, 174, 0.74);
  margin: 0.65rem 0 0;
}
.gal__n {
  color: var(--gold);
  margin-right: 0.55rem;
  letter-spacing: 0.08em;
}

.gal__note {
  margin: clamp(1.75rem, 3vw, 2.75rem) 0 0;
  text-align: center;
}

/* Below the justified breakpoint the rows dissolve into a uniform grid.
   Multicol was fragmenting tall tiles and leaving empty boxes, so narrow
   screens get a real grid instead. Tiles crop to a shared 4:5 here; tapping
   one opens the full uncropped photo in the viewer. */
@media (max-width: 900px) {
  .gal {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
  }
  .gal__row { display: contents; }
  .gal__btn img { aspect-ratio: 4 / 5; }
  .gal__cap { font-size: 0.6875rem; margin-top: 0.5rem; }
}

@media (max-width: 560px) {
  .gal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }
  /* captions live in the viewer on phones so the grid stays compact.
     Each tile's aria-label still carries the caption for screen readers. */
  .gal__cap { display: none; }
  .gal__zoom {
    opacity: 1;
    transform: none;
    width: 1.65rem;
    height: 1.65rem;
    right: 0.35rem;
    bottom: 0.35rem;
  }
  .gal__zoom svg { width: 14px; height: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .gal__btn img { transition: none; }
  .gal__btn:hover img { transform: none; }
}

/* ---------- lightbox ---------- */

.lb {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3.5rem);
}
.lb__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 12, 0.97);
  cursor: zoom-out;
}
.lb[hidden] { display: none; }

.lb__fig {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: center;
  max-width: min(1100px, 100%);
  max-height: 100%;
  min-width: 0;
}
.lb__pic { display: block; min-height: 0; }
.lb__fig img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 12rem);
  width: auto;
  height: auto;
  border: 1px solid var(--walnut-soft);
  background: var(--bark-2);
}
.lb__cap {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: center;
  text-align: center;
  max-width: 62ch;
}
.lb__cap p { margin: 0; }
.lb__cap #lb-count { color: var(--gold); }
.lb__cap #lb-text {
  font-family: var(--font-label);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(250, 244, 233, 0.78);
}

.lb__x,
.lb__arrow {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 191, 174, 0.28);
  background: rgba(36, 29, 22, 0.72);
  color: var(--cream);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.lb__x:hover,
.lb__arrow:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bark);
}
.lb__x:focus-visible,
.lb__arrow:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

.lb__x {
  top: clamp(0.75rem, 2.5vw, 1.75rem);
  right: clamp(0.75rem, 2.5vw, 1.75rem);
  width: 2.75rem;
  height: 2.75rem;
}
.lb__arrow {
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3.5rem;
}
.lb__arrow--prev { left: clamp(0.5rem, 2vw, 1.5rem); }
.lb__arrow--next { right: clamp(0.5rem, 2vw, 1.5rem); }

@media (max-width: 640px) {
  .lb { padding: 3.5rem 0.75rem 1rem; }
  .lb__fig img { max-height: calc(100vh - 15rem); }
  .lb__arrow {
    top: auto;
    bottom: clamp(0.75rem, 3vw, 1.25rem);
    transform: none;
    width: 3.25rem;
    height: 2.9rem;
  }
}

body.lb-open { overflow: hidden; }
/* the sticky nav must not read through the modal backdrop */
body.lb-open .nav { opacity: 0; pointer-events: none; }
.nav { transition: background 0.5s ease, border-color 0.5s ease, padding 0.4s ease, opacity 0.25s ease; }
.lb__fig img.is-loading { opacity: 0.2; }
.lb__fig img { transition: opacity 0.4s ease; }

/* ---------- shop film ---------- */

.section--film { background: var(--bark-2); }
.film { margin: clamp(2rem, 4vw, 3rem) 0 0; }
.film__frame {
  position: relative;
  border: 1px solid var(--walnut-soft);
  background: var(--bark);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.65);
}
.film__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bark);
}
.film__cap { display: block; margin-top: 1.1rem; }
