/* ============================================================
   krūd — Primal. Unfinished. Perfume.
   Brutalismo sensorial. Zero border-radius. Heavy easing.
   ============================================================ */

:root {
  --carbon: #231F20;
  --basalt: #141312;
  --bone: #F4F1EC;
  --slate: #55524E;
  --concrete: #8C8983;
  --pulp: #B5B1AA;
  --plum: #5C3A44;
  --rose: #E8C6BE;
  --opal: #E3D5DC;
  --copper: #C88A6E;
  --brass: #C6A15B;
  --oxide: #9C5B33;

  --font-slab: "Besley", serif;
  --font-cond: "Oswald", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "Space Mono", monospace;

  --ease-krud: cubic-bezier(0.2, 0, 0, 1);
  --dur: 480ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 0 !important;
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--slate) var(--basalt);
}

body {
  background: var(--basalt);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

::selection {
  background: var(--oxide);
  color: var(--bone);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--basalt); }
::-webkit-scrollbar-thumb { background: var(--slate); }
::-webkit-scrollbar-thumb:hover { background: var(--oxide); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; color: inherit; cursor: pointer; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 300;
  background: var(--oxide);
  color: var(--bone);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid var(--oxide);
  outline-offset: 3px;
}

/* ---------- Typography primitives ---------- */
.eyebrow {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

h1, h2, h3 {
  font-family: var(--font-slab);
  font-weight: 500;
  line-height: 1.08;
  text-transform: none; /* sentence case, never all-caps */
}

/* ---------- Rules / filetes ---------- */
.rule-double {
  height: 7px;
  border-top: 2px solid currentColor;
  border-bottom: 1px solid currentColor;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  padding: 1.05rem 2.2rem;
  border: 2px solid currentColor;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--dur) var(--ease-krud), border-color var(--dur) var(--ease-krud);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--oxide);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 520ms var(--ease-krud);
  z-index: -1;
}
.btn:hover, .btn:focus-visible {
  color: var(--bone);
  border-color: var(--oxide);
}
.btn:hover::before, .btn:focus-visible::before {
  transform: scaleY(1);
}
.btn .arr { transition: transform 520ms var(--ease-krud); }
.btn:hover .arr { transform: translateX(6px); }

/* ============================================================
   Custom cursor
   ============================================================ */
.cursor-dot, .cursor-hex {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 400;
  will-change: transform;
  display: none;
}
.cursor-dot {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: var(--oxide);
}
.cursor-hex {
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
}
.cursor-hex svg {
  width: 100%;
  height: 100%;
  display: block;
  transform: scale(0.35);
  opacity: 0;
  transition: transform 420ms var(--ease-krud), opacity 420ms var(--ease-krud);
}
.cursor-hex polygon {
  fill: none;
  stroke: var(--oxide);
  stroke-width: 2;
}
body.cursor-on .cursor-hex svg {
  transform: scale(1);
  opacity: 1;
}
@media (pointer: fine) {
  body.has-cursor { cursor: none; }
  body.has-cursor a, body.has-cursor button { cursor: none; }
  body.has-cursor .cursor-dot, body.has-cursor .cursor-hex { display: block; }
}

/* ============================================================
   Preloader
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: var(--basalt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.preloader-u {
  width: clamp(90px, 14vw, 160px);
}
/* The u stays a complete filled glyph; the reveal is done with a
   clip-path wipe from JS, so no stroke-dash tracing of the fill
   outline (which can never close cleanly on a two-subpath glyph). */
.preloader-u path {
  fill: var(--bone);
}
.preloader-count {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--concrete);
}
.preloader.is-done { pointer-events: none; }

/* ============================================================
   Navigation
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1.25rem, 4vw, 3.5rem);
  mix-blend-mode: difference;
  color: var(--bone);
  background-color: transparent;
  transition: background-color var(--dur) var(--ease-krud);
}
/* Past the hero the bar turns solid Basalt so the wordmark never
   fights the section headlines scrolling underneath it. */
.site-nav.is-scrolled {
  mix-blend-mode: normal;
  background-color: var(--basalt);
}
.site-nav .nav-logo svg {
  width: 92px;
  height: auto;
  display: block;
  fill: var(--bone);
}
.site-nav ul {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.8rem);
  list-style: none;
}
.site-nav ul a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  position: relative;
  padding: 0.4rem 0;
}
.site-nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--bone);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-krud);
}
.site-nav ul a:hover::after,
.site-nav ul a:focus-visible::after { transform: scaleX(1); }
@media (max-width: 640px) {
  .site-nav ul li { display: none; }
  .site-nav ul li.nav-keep { display: block; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--basalt);
  padding: 6rem 1.5rem 4rem;
}
.hero-bg {
  position: absolute;
  inset: -12% 0;
  background-color: var(--basalt);
  background-image: url("../assets/hero-dark.jpg");
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(20, 19, 18, 0.15) 0%, rgba(20, 19, 18, 0.78) 100%),
    linear-gradient(to bottom, rgba(20, 19, 18, 0.5), rgba(20, 19, 18, 0.2) 40%, rgba(20, 19, 18, 0.85));
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform;
}
.hero-wordmark {
  width: min(58vw, 860px);
  min-width: 280px;
}
.hero-wordmark svg {
  width: 100%;
  height: auto;
  display: block;
  fill: var(--bone);
}
.hero-claim {
  margin-top: clamp(2rem, 5vh, 3.5rem);
  list-style: none;
}
.hero-claim li {
  overflow: hidden;
}
.hero-claim span {
  display: block;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.4vw, 2.6rem);
  letter-spacing: 0.34em;
  text-indent: 0.34em; /* optical centering vs tracking */
  line-height: 1.35;
  text-transform: uppercase;
}
.hero-claim li:last-child span { color: var(--oxide); }
.hero-cta {
  margin-top: clamp(2.5rem, 6vh, 4rem);
}
.hero-batch {
  position: absolute;
  z-index: 2;
  bottom: 1.6rem;
  left: clamp(1.25rem, 4vw, 3.5rem);
  color: var(--concrete);
}
.hero-scroll {
  position: absolute;
  z-index: 2;
  bottom: 1.6rem;
  right: clamp(1.25rem, 4vw, 3.5rem);
  color: var(--concrete);
}

/* ============================================================
   Manifesto
   ============================================================ */
.manifesto {
  position: relative;
  background-color: var(--bone);
  background-image: url("../assets/texture-plaster.jpg");
  background-size: cover;
  background-position: center;
  color: var(--carbon);
  padding: clamp(8rem, 18vh, 14rem) clamp(1.5rem, 6vw, 6rem);
}
.manifesto-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(3rem, 8vh, 6rem);
  color: var(--slate);
}
.manifesto-head .rule-double { flex: 1; color: var(--carbon); }
.manifesto p.reveal-words {
  font-family: var(--font-slab);
  font-weight: 500;
  font-size: clamp(1.7rem, 4.2vw, 3.4rem);
  line-height: 1.32;
  max-width: 62rem;
}
.manifesto .word { opacity: 1; }
.manifesto-sign {
  margin-top: clamp(3rem, 8vh, 5rem);
  color: var(--slate);
}

/* ============================================================
   Collection — Eight strata
   ============================================================ */
.collection {
  position: relative;
  background-color: var(--basalt);
}
.coll-intro {
  min-height: 90svh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding: clamp(7rem, 16vh, 11rem) clamp(1.5rem, 6vw, 6rem);
}
.coll-intro h2 {
  font-size: clamp(2.4rem, 5.6vw, 5rem);
  max-width: 16ch;
}
.coll-intro .coll-intro-copy {
  margin-top: 2.2rem;
  max-width: 40ch;
  color: var(--pulp);
  font-size: 1.02rem;
}
.coll-intro .eyebrow { color: var(--oxide); display: block; margin-bottom: 1.6rem; }
.coll-strata-fig {
  position: relative;
  border: 2px solid var(--slate);
  padding: 10px;
  max-width: 380px;
  justify-self: end;
  width: 100%;
}
.coll-strata-fig .fig-inner {
  border: 1px solid var(--slate);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
  background: var(--carbon);
}
.coll-strata-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.coll-strata-fig .fig-strata {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}
.coll-strata-fig .fig-strata i { flex: 1; display: block; }
.coll-strata-fig figcaption {
  margin-top: 0.9rem;
  color: var(--concrete);
}
@media (max-width: 900px) {
  .coll-intro { grid-template-columns: 1fr; }
  .coll-strata-fig { justify-self: start; }
}

/* Pinned track */
.coll-pin {
  position: relative;
  overflow: hidden;
}
.coll-track {
  display: flex;
  width: 800vw;
  will-change: transform;
}
.panel {
  width: 100vw;
  min-height: 100svh;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 5vw, 6rem);
  padding: clamp(6rem, 12vh, 8rem) clamp(1.5rem, 6vw, 6rem) clamp(5rem, 10vh, 7rem);
  color: var(--panel-ink);
  position: relative;
}
.panel:nth-child(even) { flex-direction: row-reverse; }

/* Per-stratum themes */
.t-noir   { --panel-bg: #1A1717; --panel-ink: var(--bone); --panel-soft: var(--concrete); }
.t-cuivre { --panel-bg: #5C3A44; --panel-ink: var(--bone); --panel-soft: var(--rose); }
.t-opal   { --panel-bg: #E3D5DC; --panel-ink: var(--carbon); --panel-soft: var(--slate); }
.t-basalt { --panel-bg: #55524E; --panel-ink: var(--bone); --panel-soft: var(--pulp); }
.t-sel    { --panel-bg: #B5B1AA; --panel-ink: var(--carbon); --panel-soft: var(--slate); }
.t-cendre { --panel-bg: #8C8983; --panel-ink: var(--carbon); --panel-soft: #3A3634; }
.t-ocre   { --panel-bg: #9C5B33; --panel-ink: var(--bone); --panel-soft: #E8D9CB; }
.t-argile { --panel-bg: #7A5C4E; --panel-ink: var(--bone); --panel-soft: var(--pulp); }

/* Cartridge plate frame around packshot */
.plate {
  border: 2px solid var(--panel-ink);
  padding: 10px;
  width: min(34vw, 420px);
  flex-shrink: 0;
  position: relative;
}
.plate-inner {
  border: 1px solid var(--panel-ink);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  position: relative;
}
.plate-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-krud), box-shadow 700ms var(--ease-krud);
}
.plate:hover .plate-inner img,
.plate:focus-within .plate-inner img {
  transform: scale(1.02);
}
.plate:hover {
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.55);
}
.plate .plate-code {
  position: absolute;
  top: 50%;
  left: -1.2rem;
  transform: rotate(180deg) translateY(50%);
  writing-mode: vertical-rl;
  color: var(--panel-soft);
  font-size: 0.68rem;
}
.t-cuivre .plate-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: transparent;
  background-image: url("../assets/texture-rose.jpg");
  background-size: cover;
  opacity: 0.12;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.panel-info {
  max-width: 34rem;
}
.panel-info .panel-code {
  color: var(--panel-soft);
  display: block;
  margin-bottom: 1.2rem;
}
.panel-info h3 {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
}
.panel-info .panel-claim {
  margin-top: 1.4rem;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.5vw, 1.25rem);
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.panel-info .panel-family {
  margin-top: 0.5rem;
  color: var(--panel-soft);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.panel-notes {
  margin: 2rem 0;
  padding: 1.4rem 0;
  border-top: 2px solid var(--panel-ink);
  border-bottom: 1px solid var(--panel-ink);
  list-style: none;
}
.panel-notes li {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  display: flex;
  gap: 1rem;
  padding: 0.3rem 0;
}
.panel-notes li b {
  font-weight: 700;
  min-width: 4.5rem;
  color: var(--panel-soft);
}
.panel-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.panel-meta .price {
  font-family: var(--font-mono);
  font-size: 0.9rem;
}
.coll-counter {
  position: absolute;
  bottom: 1.6rem;
  left: clamp(1.25rem, 4vw, 3.5rem);
  z-index: 5;
  color: var(--bone);
  mix-blend-mode: difference;
  font-size: 0.9rem;
}
.coll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: var(--oxide);
  z-index: 5;
}

/* Collection: stacked on mobile / no-pin fallback */
@media (max-width: 900px) {
  .coll-track { width: 100%; flex-direction: column; }
  .panel {
    width: 100%;
    min-height: auto;
    flex-direction: column !important;
    align-items: flex-start;
    background: var(--panel-bg);
    padding: 5rem clamp(1.5rem, 6vw, 3rem);
  }
  .plate { width: min(78vw, 380px); align-self: center; }
  .coll-counter, .coll-progress { display: none; }
}

/* ============================================================
   Anatomy
   ============================================================ */
.anatomy {
  background: var(--bone);
  color: var(--carbon);
  padding: clamp(7rem, 16vh, 12rem) clamp(1.5rem, 6vw, 6rem);
}
.anatomy-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}
.anatomy-copy .eyebrow { color: var(--oxide); display: block; margin-bottom: 1.6rem; }
.anatomy-copy h2 {
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  max-width: 14ch;
}
.anatomy-copy p {
  margin-top: 2rem;
  max-width: 42ch;
  color: var(--slate);
}
.anatomy-list {
  list-style: none;
  margin-top: 3rem;
  border-top: 2px solid var(--carbon);
}
.anatomy-list li {
  display: flex;
  gap: 1.4rem;
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--pulp);
}
.anatomy-list .mono { color: var(--oxide); }
.anatomy-list p { margin: 0; font-size: 0.92rem; color: var(--slate); max-width: none; }
.anatomy-list h3 { font-family: var(--font-cond); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.24em; text-transform: uppercase; }

.anatomy-fig {
  position: relative;
  border: 2px solid var(--carbon);
  padding: 10px;
}
.anatomy-fig .fig-inner {
  border: 1px solid var(--carbon);
  overflow: hidden;
  background: var(--pulp);
}
.anatomy-fig img { width: 100%; height: auto; }
.callout {
  position: absolute;
  display: flex;
  align-items: center;
  pointer-events: none;
  transform: translateY(-50%);
}
.callout .c-line {
  height: 1px;
  background: var(--carbon);
  flex: 1 1 auto;
  min-width: 18px;
}
.callout .c-dot {
  width: 7px;
  height: 7px;
  background: var(--oxide);
  flex-shrink: 0;
}
.callout .c-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--bone);
  border: 1px solid var(--carbon);
  padding: 0.35rem 0.6rem;
  white-space: nowrap;
}
/* Each callout is anchored by its DOT: the left/right offsets are
   percentages of the figure, so the dot lands on the same spot of the
   photo at every viewport width. The line flexes between the label
   (kept at the frame edge) and the dot. */
.co-cap   { top: 16%; left: 10px; right: 50%; }  /* dot on the hex nut cap */
.co-cap .c-line { transform-origin: left; }
.co-plate { top: 62%; left: 51%; right: 10px; }  /* dot on the forged plate */
.co-plate .c-line { transform-origin: right; }
.co-glass { top: 88%; left: 10px; right: 55%; }  /* dot on the hammered glass */
.co-glass .c-line { transform-origin: left; }
@media (max-width: 640px) {
  /* Narrow screens: let labels wrap so they never overflow the
     callout box and push the dot off its anchor point. */
  .callout .c-label { font-size: 0.6rem; white-space: normal; line-height: 1.5; }
}
@media (max-width: 900px) {
  .anatomy-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Batch system
   ============================================================ */
.batch {
  position: relative;
  background: var(--basalt);
  color: var(--bone);
  padding: clamp(7rem, 16vh, 12rem) clamp(1.5rem, 6vw, 6rem);
  overflow: hidden;
}
.batch::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: transparent;
  background-image: url("../assets/texture-hammered.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.14;
  pointer-events: none;
}
.batch-inner { position: relative; max-width: 1400px; margin: 0 auto; }
.batch-head { display: flex; align-items: baseline; gap: 2rem; margin-bottom: clamp(3.5rem, 9vh, 6rem); }
.batch-head .eyebrow { color: var(--oxide); white-space: nowrap; }
.batch-head .rule-double { flex: 1; color: var(--slate); }
.batch-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--slate);
  border-bottom: 2px solid var(--slate);
}
.batch-stats .stat {
  padding: clamp(2rem, 5vh, 3.5rem) 1.5rem;
  border-left: 1px solid var(--slate);
  text-align: center;
}
.batch-stats .stat:first-child { border-left: none; }
.stat-num {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.5vw, 6rem);
  line-height: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  display: block;
  margin-top: 1rem;
  color: var(--concrete);
}
@media (max-width: 900px) {
  .batch-stats { grid-template-columns: repeat(2, 1fr); }
  .batch-stats .stat:nth-child(3) { border-left: none; }
  .batch-stats .stat:nth-child(n+3) { border-top: 1px solid var(--slate); }
}

.batch-low {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(3rem, 6vw, 6rem);
  margin-top: clamp(4rem, 10vh, 7rem);
  align-items: center;
}
.batch-copy h2 { font-size: clamp(2rem, 4vw, 3.4rem); max-width: 14ch; }
.batch-copy p { margin-top: 1.8rem; color: var(--pulp); max-width: 44ch; }
.batch-card {
  border: 2px solid var(--bone);
  padding: 10px;
  max-width: 420px;
  justify-self: end;
  width: 100%;
}
.batch-card-inner {
  border: 1px solid var(--bone);
  padding: 1.8rem 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}
.batch-card-inner .bc-title {
  display: flex;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--slate);
  color: var(--oxide);
  font-weight: 700;
}
.batch-card-inner dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem 1.4rem;
}
.batch-card-inner dt { color: var(--concrete); }
.batch-card-inner dd { text-align: right; }
.batch-card-inner .bc-foot {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--slate);
  color: var(--concrete);
}
@media (max-width: 900px) {
  .batch-low { grid-template-columns: 1fr; }
  .batch-card { justify-self: start; }
}

/* ============================================================
   Editorial / workshop
   ============================================================ */
.workshop {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  background: var(--slate);
  overflow: hidden;
}
.workshop-bg {
  position: absolute;
  inset: -10% 0;
  background-color: var(--slate);
  background-image: url("../assets/editorial-hand.jpg");
  background-size: cover;
  background-position: center;
  filter: grayscale(1) contrast(1.05);
  will-change: transform;
}
.workshop-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 19, 18, 0.88) 0%, rgba(20, 19, 18, 0.25) 55%, rgba(20, 19, 18, 0.35) 100%);
}
.workshop-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(8rem, 20vh, 14rem) clamp(1.5rem, 6vw, 6rem) clamp(4rem, 10vh, 7rem);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(3rem, 6vw, 7rem);
  align-items: end;
  color: var(--bone);
}
.workshop-quote {
  font-family: var(--font-slab);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.15;
}
.workshop-story .eyebrow { color: var(--rose); display: block; margin-bottom: 1.4rem; }
.workshop-story p {
  margin-top: 1.1rem;
  color: var(--opal);
  font-size: 0.95rem;
  max-width: 46ch;
}
@media (max-width: 900px) {
  .workshop-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--basalt);
  color: var(--bone);
  padding: clamp(6rem, 14vh, 10rem) clamp(1.5rem, 6vw, 6rem) 2.5rem;
  border-top: 2px solid var(--carbon);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3rem;
  padding-bottom: clamp(3rem, 8vh, 5rem);
}
.footer-wordmark svg {
  width: clamp(220px, 30vw, 420px);
  height: auto;
  fill: var(--bone);
}
.footer-claim {
  margin-top: 1.8rem;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--concrete);
}
.footer-links {
  display: flex;
  gap: clamp(2.5rem, 5vw, 5rem);
  flex-wrap: wrap;
}
.footer-links h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 1.1rem;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  position: relative;
}
.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 1px;
  width: 100%;
  background: var(--oxide);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-krud);
}
.footer-links a:hover::after, .footer-links a:focus-visible::after { transform: scaleX(1); }
.footer-bottom {
  border-top: 1px solid var(--carbon);
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  color: var(--slate);
}

/* ============================================================
   Claim modal — placa-cartucho over Basalto
   ============================================================ */
.claim-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  visibility: hidden;
}
.claim-modal.is-open { visibility: visible; }
.claim-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 19, 18, 0.85);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-krud);
}
.claim-modal.is-open .claim-overlay { opacity: 1; }
/* Placa-cartucho: double border, Bone plate, Carbon ink */
.claim-plate {
  position: relative;
  z-index: 2;
  width: min(92vw, 460px);
  border: 2px solid var(--bone);
  padding: 10px;
  background: var(--bone);
  color: var(--carbon);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur) var(--ease-krud), transform 520ms var(--ease-krud);
}
.claim-modal.is-open .claim-plate {
  opacity: 1;
  transform: translateY(0);
}
.claim-plate-inner {
  border: 1px solid var(--carbon);
  padding: clamp(1.8rem, 5vw, 2.6rem) clamp(1.4rem, 4vw, 2.2rem) clamp(1.5rem, 4vw, 2rem);
  position: relative;
}
.claim-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
  transition: color var(--dur) var(--ease-krud), background-color var(--dur) var(--ease-krud);
}
.claim-close svg { width: 14px; height: 14px; display: block; }
.claim-close:hover, .claim-close:focus-visible {
  color: var(--bone);
  background: var(--oxide);
}
.claim-ref {
  display: block;
  color: var(--oxide);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.claim-plate h3 {
  font-family: var(--font-slab);
  font-weight: 500;
  font-size: clamp(1.7rem, 4.5vw, 2.3rem);
  line-height: 1.1;
}
.claim-sub {
  margin-top: 0.9rem;
  color: var(--slate);
  font-size: 0.92rem;
  max-width: 34ch;
}
#claim-form { margin-top: 1.8rem; }
.claim-label {
  display: block;
  color: var(--slate);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.claim-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--carbon);
  padding: 0.55rem 0;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--carbon);
  transition: border-color var(--dur) var(--ease-krud);
}
.claim-input::placeholder { color: var(--pulp); }
.claim-input:focus {
  outline: none;
  border-bottom-color: var(--oxide);
  box-shadow: 0 1px 0 0 var(--oxide);
}
.claim-modal .is-invalid { border-bottom-color: var(--oxide); box-shadow: 0 1px 0 0 var(--oxide); }
.claim-field + .claim-field { margin-top: 1.4rem; }
/* Country combobox */
.claim-combo { position: relative; }
.claim-combo-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 4;
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 14.5rem;
  overflow-y: auto;
  background: var(--bone);
  border: 1px solid var(--carbon);
  border-top: none;
}
.claim-combo-list[hidden] { display: none; }
.claim-combo-option {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--carbon);
  cursor: pointer;
}
.claim-combo-option + .claim-combo-option { border-top: 1px solid rgba(35, 31, 32, 0.12); }
.claim-combo-option .ccode { color: var(--concrete); font-size: 0.68rem; letter-spacing: 0.16em; }
.claim-combo-option.is-active { background: var(--oxide); color: var(--bone); }
.claim-combo-option.is-active .ccode { color: var(--bone); }
.claim-error {
  margin-top: 0.8rem;
  color: var(--oxide);
  font-size: 0.72rem;
}
.claim-submit {
  margin-top: 1.6rem;
  width: 100%;
  justify-content: center;
}
.claim-submit[disabled] { opacity: 0.7; pointer-events: none; }
.claim-legal {
  margin-top: 1.4rem;
  color: var(--concrete);
  font-size: 0.68rem;
}
/* Honeypot: visually gone, still in the DOM for bots */
.claim-hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.claim-view-success h3 { color: var(--carbon); }
@media (prefers-reduced-motion: reduce) {
  .claim-overlay, .claim-plate { transition: none; transform: none; }
}

/* ============================================================
   Motion / a11y
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .preloader { display: none; }
}
