/* ============================================================================
   THE BIG MAN — sections.css
   Page-level composition: hero, ethos, mills, collections, atelier, contact.
   ========================================================================== */

/* ============================ hero ====================================== */

/* The hero grows past 100svh rather than clipping its own headline on short
   or landscape screens; only the background layers are clipped. */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(6rem, 14vh, 10rem) clamp(4.5rem, 11vh, 7rem);
}
.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

/* Layer 1 — a very large woven cloth, slowly drifting. */
.hero__cloth {
  position: absolute;
  inset: -6%;
  z-index: 0;
  opacity: 0.62;
  filter: saturate(0.85) contrast(1.08);
  animation: cloth-drift 60s linear infinite alternate;
}
.hero__cloth canvas { width: 100%; height: 100%; object-fit: cover; }
@keyframes cloth-drift {
  from { transform: scale(1.06) translate3d(-1.5%, -1%, 0); }
  to   { transform: scale(1.16) translate3d(1.5%, 1.5%, 0); }
}

/* Layer 2 — light falling across the cloth. */
.hero__light {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(58% 46% at 50% 38%, rgba(223,214,192,0.16), transparent 70%),
    linear-gradient(180deg, rgba(8,8,10,0.86) 0%, rgba(8,8,10,0.55) 42%, rgba(8,8,10,0.96) 100%);
}

/* Layer 3 — spotlight that follows the pointer. */
.hero__spot {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(340px 340px at var(--mx, 50%) var(--my, 40%),
    rgba(223,214,192,0.13), transparent 68%);
  transition: background 0.18s linear;
}

.hero__inner { position: relative; z-index: 3; width: 100%; }

.hero__eyebrow { margin-bottom: clamp(1.4rem, 3vw, 2.4rem); }

.hero__title {
  font-size: var(--t-4xl);
  line-height: 0.86;
  letter-spacing: -0.03em;
  margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}
.hero__title .hl { display: block; }
.hero__title .l2 {
  display: block;
  font-family: var(--f-deco);
  font-size: 0.44em;
  letter-spacing: 0.14em;
  line-height: 1.2;
  margin-top: 0.35em;
  color: var(--bone-2);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.2rem, 3.4vw, 3rem);
  margin-top: clamp(1.8rem, 4vw, 3.2rem);
  padding-top: clamp(1.2rem, 2.4vw, 1.8rem);
  border-top: var(--rule);
  max-width: 62rem;
}
.hero__meta div { min-width: 108px; }
.hero__meta b {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 300;
  color: var(--brass-lt);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero__meta span {
  display: block;
  margin-top: 0.55rem;
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone-3);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: clamp(1.8rem, 3vw, 2.6rem);
}

/* ============================ ethos ===================================== */

.ethos { position: relative; }
.ethos__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
@media (max-width: 900px) { .ethos__grid { grid-template-columns: 1fr; } }

.ethos__statement {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 3.1vw, 2.85rem);
  line-height: 1.16;
  font-weight: 300;
  color: var(--bone);
}
.ethos__statement em { font-style: italic; color: var(--brass-lt); }

.tenets { display: grid; gap: 0; margin-top: 1rem; }
.tenet {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1.2rem;
  padding-block: clamp(1.3rem, 2.4vw, 1.9rem);
  border-top: 1px solid rgba(239,233,222,0.08);
  transition: padding-left 0.55s var(--ease);
}
.tenet:last-child { border-bottom: 1px solid rgba(239,233,222,0.08); }
.tenet:hover { padding-left: 0.7rem; }
.tenet__n {
  font-family: var(--f-display);
  font-size: var(--t-lg);
  color: var(--brass);
  line-height: 1;
  padding-top: 0.2rem;
}
.tenet h3 {
  font-size: var(--t-lg);
  margin-bottom: 0.45rem;
  letter-spacing: 0;
}
.tenet p { font-size: var(--t-sm); color: var(--bone-3); line-height: 1.62; }

/* ============================ mills ===================================== */

/* Horizontal cloth-house rail, driven sideways by vertical scroll. */
.mills { background: var(--ink); position: relative; }
.rail { position: relative; height: 320vh; }
.rail__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.rail__head {
  padding-inline: var(--gut);
  margin-bottom: clamp(1.6rem, 4vh, 3rem);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}
.rail__track {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2rem);
  padding-inline: var(--gut);
  will-change: transform;
}

.mill {
  position: relative;
  flex: none;
  width: clamp(280px, 34vw, 460px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(239,233,222,0.08);
  background: var(--ink-2);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.2rem, 2.4vw, 2rem);
  isolation: isolate;
  transition: border-color 0.55s;
}
.mill:hover { border-color: rgba(188,177,150,0.4); }
.mill .swatch { position: absolute; inset: 0; z-index: -2; }
.mill::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(8,8,10,0.30) 0%, rgba(8,8,10,0.62) 46%, rgba(8,8,10,0.95) 100%);
}
.mill:hover .swatch canvas { transform: scale(1.14); }
.mill__no {
  position: absolute;
  top: clamp(1rem, 2vw, 1.6rem);
  left: clamp(1.2rem, 2.4vw, 2rem);
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--brass-lt);
}
.mill__seat {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.7rem;
  line-height: 1.5;
}
.mill__name {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  line-height: 1.02;
  margin-bottom: 0.6rem;
}
.mill__note { font-size: var(--t-sm); color: var(--bone-2); line-height: 1.55; }
.mill__bunches {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(188,177,150,0.20);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-3);
}

.rail__hint {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--bone-3);
}
.rail__hint i {
  width: 46px; height: 1px;
  background: rgba(188,177,150,0.5);
  position: relative;
  overflow: hidden;
}
.rail__hint i::after {
  content: "";
  position: absolute;
  inset: 0 100% 0 0;
  background: var(--brass-lt);
  animation: hint 2.4s var(--ease-io) infinite;
}
@keyframes hint { 0% { inset: 0 100% 0 0; } 50% { inset: 0 0 0 0; } 100% { inset: 0 0 0 100%; } }

/* Small screens: the rail becomes an ordinary swipeable row. */
@media (max-width: 860px) {
  .rail { height: auto; }
  .rail__sticky { position: static; height: auto; padding-block: 0; }
  .rail__track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1.2rem;
    transform: none !important;
    -webkit-overflow-scrolling: touch;
  }
  .mill { scroll-snap-align: start; width: min(78vw, 340px); }
}

/* ============================ collections =============================== */

.coll__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2rem, 4vw, 3.4rem);
}

/* Eight chapters, so four columns fill two clean rows on a desktop. */
.coll__nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: var(--rule);
}
@media (max-width: 1040px) { .coll__nav { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .coll__nav { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .coll__nav { grid-template-columns: 1fr; } }
.coll__row {
  position: relative;
  display: block;
  padding: clamp(1.6rem, 3vw, 2.6rem) clamp(1.1rem, 2vw, 1.8rem);
  border-bottom: var(--rule);
  border-right: var(--rule);
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(190px, 24vw, 280px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.coll__row .swatch {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.7s var(--ease), transform 1.4s var(--ease);
}
.coll__row::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(8,8,10,0.66);
  opacity: 0;
  transition: opacity 0.7s;
}
.coll__row:hover .swatch { opacity: 1; transform: scale(1); }
.coll__row:hover::after { opacity: 1; }
.coll__row-n {
  font-size: 9px;
  letter-spacing: 0.26em;
  color: var(--brass);
  margin-bottom: auto;
}
.coll__row h3 {
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  margin-bottom: 0.5rem;
  transition: transform 0.6s var(--ease);
}
.coll__row:hover h3 { transform: translateY(-4px); }
.coll__row p { font-size: var(--t-sm); color: var(--bone-3); }
.coll__row-count {
  margin-top: 0.9rem;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-2);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.coll__row-count::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--brass);
}

/* Featured strip on the home page */
.featured {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(0.9rem, 1.8vw, 1.6rem);
}

/* ============================ atelier / process ========================= */

.atelier { background: var(--ink-2); position: relative; overflow: hidden; }
.atelier::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 50% at 8% 0%, rgba(118,123,78,0.16), transparent 60%),
    radial-gradient(60% 60% at 100% 100%, rgba(188,177,150,0.09), transparent 60%);
  pointer-events: none;
}
.atelier .wrap { position: relative; }

.steps { counter-reset: step; margin-top: clamp(2rem, 5vw, 3.6rem); }
.step {
  display: grid;
  grid-template-columns: clamp(3.5rem, 8vw, 7rem) 1fr auto;
  gap: clamp(1rem, 3vw, 2.6rem);
  align-items: start;
  padding-block: clamp(1.6rem, 3.4vw, 2.6rem);
  border-top: 1px solid rgba(239,233,222,0.09);
  position: relative;
}
.step:last-child { border-bottom: 1px solid rgba(239,233,222,0.09); }
.step::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  height: 1px; width: 0;
  background: var(--brass);
  transition: width 0.8s var(--ease);
}
.step:hover::after { width: 100%; }
.step__n {
  font-family: var(--f-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(188,177,150,0.55);
  transition: color 0.6s;
}
.step:hover .step__n { color: rgba(188,177,150,0.16); }
.step h3 { font-size: clamp(1.25rem, 2.2vw, 1.9rem); margin-bottom: 0.6rem; }
.step p { font-size: var(--t-sm); color: var(--bone-3); max-width: 58ch; line-height: 1.66; }
.step__t {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  white-space: nowrap;
  padding-top: 0.5rem;
}
@media (max-width: 720px) {
  .step { grid-template-columns: 3rem 1fr; }
  .step__t { grid-column: 2; padding-top: 0.8rem; }
}

/* measurement diagram */
.figure-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  border: var(--rule);
  background: linear-gradient(180deg, rgba(22,22,26,0.9), rgba(8,8,10,0.9));
  overflow: hidden;
}
.figure-wrap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.figure-wrap .body { fill: none; stroke: rgba(239,233,222,0.35); stroke-width: 1; }
.figure-wrap .mline { stroke: var(--brass); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.figure-wrap.in .mline { animation: m-in 0.6s var(--ease) forwards; }
.figure-wrap .mline:nth-of-type(1) { animation-delay: 0.20s; }
.figure-wrap .mline:nth-of-type(2) { animation-delay: 0.34s; }
.figure-wrap .mline:nth-of-type(3) { animation-delay: 0.48s; }
.figure-wrap .mline:nth-of-type(4) { animation-delay: 0.62s; }
.figure-wrap .mline:nth-of-type(5) { animation-delay: 0.76s; }
.figure-wrap .mline:nth-of-type(6) { animation-delay: 0.90s; }
.figure-wrap .mtxt {
  fill: var(--brass-lt);
  font-family: var(--f-ui);
  font-size: 7px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
}
.figure-wrap.in .mtxt { animation: m-in 0.6s var(--ease) forwards; animation-delay: 1s; }
@keyframes m-in { to { opacity: 1; } }

/* ============================ quote ===================================== */

.quote {
  text-align: center;
  padding-block: clamp(5rem, 11vw, 9rem);
  position: relative;
}
.quote blockquote {
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 4.4vw, 3.6rem);
  line-height: 1.14;
  font-weight: 300;
  max-width: 20ch;
  margin-inline: auto;
}
.quote blockquote em { font-style: italic; color: var(--brass-lt); }
.quote cite {
  display: block;
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bone-3);
}

/* ============================ diaries =================================== */

.diaries__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.8rem, 1.6vw, 1.4rem);
}
/* The tile is a <button> — it opens the same drawer a card does. Buttons paint
   their own background over any negative-z descendant, so the media sits in its
   own layer at z-index 0 and the caption is lifted above it. */
.diary {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(239,233,222,0.07);
  background: var(--ink-2);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  padding: clamp(1rem, 2vw, 1.6rem);
  min-height: 0;
}
.diary > .diary__media { position: absolute; inset: 0; z-index: 0; }
.diary__media .swatch { position: absolute; inset: 0; }
.diary__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,8,10,0.18) 30%, rgba(8,8,10,0.92));
}
.diary > span:not(.diary__media), .diary > h4 { position: relative; z-index: 1; }
.diary:hover .swatch canvas { transform: scale(1.12); }
.diary h4 { font-size: clamp(1.05rem, 1.8vw, 1.5rem); margin-bottom: 0.3rem; }
.diary > span:not(.diary__media) {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}
.d-a { grid-column: span 7; aspect-ratio: 16 / 11; }
.d-b { grid-column: span 5; aspect-ratio: 4 / 5; }
.d-c { grid-column: span 4; aspect-ratio: 1; }
.d-d { grid-column: span 4; aspect-ratio: 1; }
.d-e { grid-column: span 4; aspect-ratio: 1; }
@media (max-width: 760px) {
  .d-a, .d-b { grid-column: span 12; }
  .d-c, .d-d, .d-e { grid-column: span 6; }
  .d-a { aspect-ratio: 4 / 3; }
  .d-b { aspect-ratio: 5 / 4; }
}

.diary__media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.diary:hover .diary__media img { transform: scale(1.08); }

/* ============================== faq ===================================== */

/* Native <details> — no JS, keyboard-operable, and the answers are in the DOM
   for a crawler whether or not anyone opens them. */
.faq__list { border-top: var(--rule-soft); margin-top: clamp(1.6rem, 3vw, 2.4rem); }
.faq__item { border-bottom: var(--rule-soft); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: clamp(0.9rem, 2vw, 1.25rem);
  font-family: var(--f-display);
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  line-height: 1.2;
  transition: color 0.3s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  margin-left: auto;
  flex: none;
  width: 10px; height: 10px;
  border-right: 1px solid var(--brass);
  border-bottom: 1px solid var(--brass);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.3s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq__item summary:hover { color: var(--brass-lt); }
.faq__item p {
  font-size: var(--t-sm);
  color: var(--bone-3);
  max-width: 72ch;
  padding-bottom: clamp(1rem, 2vw, 1.4rem);
  line-height: 1.75;
}
.faq__item p a { color: var(--bone-2); border-bottom: 1px solid rgba(188,177,150,0.3); }
.faq__item p a:hover { color: var(--brass-lt); }

.faq__also {
  margin-top: clamp(1.8rem, 3.5vw, 2.8rem);
  max-width: 92ch;
  line-height: 1.85;
}
.faq__also b { color: var(--brass); font-weight: 400; }

/* ============================ contact =================================== */

.contact { background: var(--ink); }
.contact__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.4rem, 6vw, 6rem);
  align-items: start;
}
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

.contact__form { display: grid; gap: clamp(0.6rem, 1.4vw, 1.1rem); }
.contact__form .two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.4vw, 2rem); }
@media (max-width: 560px) { .contact__form .two { grid-template-columns: 1fr; } }

.contact__card {
  border: var(--rule);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  background: linear-gradient(180deg, rgba(22,22,26,0.8), rgba(8,8,10,0.5));
}
.contact__line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid rgba(239,233,222,0.08);
  font-size: var(--t-sm);
}
.contact__line b { font-weight: 400; color: var(--bone); }
.contact__line span { color: var(--bone-3); font-size: var(--t-xs); letter-spacing: 0.16em; text-transform: uppercase; }

/* The address runs to three lines, so it sits under its label rather than
   fighting it across the row. */
.contact__line--stack { display: block; }
.contact__line--stack span { display: block; margin-bottom: 0.5rem; }
.contact__line--stack b { display: block; line-height: 1.55; }
.contact__line--stack a { border-bottom: 1px solid rgba(188,177,150,0.24); }
.contact__line--stack a:hover { color: var(--brass-lt); border-bottom-color: var(--brass); }

/* ============================ footer ==================================== */

.footer { border-top: var(--rule); background: var(--ink); padding-top: clamp(3rem, 6vw, 5rem); }
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(1.6rem, 3vw, 3rem);
  padding-bottom: clamp(2.4rem, 5vw, 4rem);
}
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }

.footer h5 {
  font-family: var(--f-ui);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.1rem;
  font-weight: 400;
}
.footer li + li { margin-top: 0.55rem; }
.footer li a, .footer p {
  font-size: var(--t-sm);
  color: var(--bone-3);
  transition: color 0.35s;
}
.footer li a:hover { color: var(--brass-lt); }

/* Sized off the viewport so all 26 characters fit on one line at any width. */
.footer__wordmark {
  font-family: var(--f-deco);
  font-size: min(9rem, 5.85vw);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(188,177,150,0.28);
  text-align: center;
  padding-block: clamp(1rem, 3vw, 2rem);
  white-space: nowrap;
  overflow: hidden;
}
.footer__bar {
  border-top: 1px solid rgba(239,233,222,0.08);
  padding-block: 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: var(--t-xs);
  color: var(--bone-3);
  letter-spacing: 0.1em;
}

.footer__addr {
  margin-top: 1.2rem;
  font-style: normal;
  line-height: 1.75;
}
.footer__addr a { color: var(--bone-2); }
.footer__addr a:hover { color: var(--brass-lt); }

.footer__switch {
  font-size: var(--t-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
  border-bottom: 1px solid rgba(188,177,150,0.3);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}
.footer__switch:hover { color: var(--brass-lt); border-bottom-color: var(--brass); }

/* ============================ collections page ========================== */

.page-hero {
  position: relative;
  padding-block: clamp(9rem, 20vh, 14rem) clamp(2.4rem, 5vw, 4rem);
  overflow: hidden;
}
.page-hero .swatch { position: absolute; inset: 0; z-index: -2; opacity: 0.30; }
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8,8,10,0.9), rgba(8,8,10,0.72) 40%, var(--ink));
}

.toolbar {
  position: sticky;
  top: 0;
  z-index: 500;
  padding-block: 1rem;
  background: rgba(8,8,10,0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(188,177,150,0.14);
  margin-bottom: clamp(1.6rem, 3vw, 2.6rem);
}
.toolbar__inner { display: grid; gap: 1rem; }
.toolbar__row { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }

.results-count {
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone-3);
  white-space: nowrap;
}
.results-count b { color: var(--brass-lt); font-weight: 400; font-variant-numeric: tabular-nums; }

.cat-block { padding-block: clamp(1.6rem, 3vw, 3rem); }
.cat-block__head {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  margin-bottom: clamp(1.2rem, 2.4vw, 2rem);
  border-bottom: var(--rule);
  padding-bottom: 0.9rem;
  flex-wrap: wrap;
}
.cat-block__head h2 { font-size: clamp(1.6rem, 3.4vw, 2.8rem); }
.cat-block__head em {
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}
.cat-block__head p { font-size: var(--t-sm); color: var(--bone-3); flex: 1 1 320px; }

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: clamp(0.8rem, 1.6vw, 1.5rem);
}

.empty {
  text-align: center;
  padding-block: clamp(4rem, 12vw, 8rem);
  color: var(--bone-3);
}
.empty h3 { font-size: var(--t-xl); color: var(--bone); margin-bottom: 0.8rem; }

/* Back-to-top */
.totop {
  position: fixed;
  right: clamp(1rem, 2.4vw, 2rem);
  bottom: clamp(1rem, 2.4vw, 2rem);
  z-index: 7000;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(188,177,150,0.3);
  border-radius: 50%;
  background: rgba(8,8,10,0.75);
  backdrop-filter: blur(10px);
  color: var(--brass);
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.45s, transform 0.55s var(--ease), background 0.35s, color 0.35s;
}
.totop.in { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--brass); color: var(--ink); }
