/* ==========================================================================
   RACTERO website (Home, Collections, About, Global Trade, Contact Us)
   Source of truth: brand.md. Section references are written as §n.
   Shape system: square corners everywhere (§5 "subtle or square").
   ========================================================================== */

@property --pos {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 50%;
}

:root {
  /* §3, §11 brand palette */
  --ractero-charcoal: #0B0B10;
  --ractero-gold: #BE9C57;
  --ractero-ivory: #F7F4EE;
  --ractero-stone: #C9C3B8;
  --ractero-slate: #2C3138;
  --ractero-sand: #E7DFD1;
  --ractero-white: #FFFFFF; /* §13 clean content sections */

  /* Derived for legibility. Brand gold is 2.4:1 on ivory, so small gold text uses a deeper shade. */
  --gold-deep: #735A28;     /* 5.9:1 on ivory, 4.9:1 on sand */
  --gold-hover: #CDAF72;    /* primary hover; charcoal label stays 9.3:1 */
  --ink: var(--ractero-charcoal);
  --ink-muted: #57544D;     /* 6.9:1 on ivory, 5.7:1 on sand */
  --on-dark: var(--ractero-ivory);
  --on-dark-muted: #B3AEA4; /* 8.9:1 on charcoal */
  --line: var(--ractero-stone);
  --line-strong: #857F74;   /* control borders, 3.6:1 on ivory */
  --line-on-dark: rgb(247 244 238 / 0.14);
  --error: #A12A1F;         /* form errors: 6.7:1 on ivory, 7.3:1 on white */

  /* §4, §11 type */
  --font-heading: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-ui: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* §12 scale, h1 and h2 maxima trimmed slightly so headlines hold two lines.
     --fs-h1 is re-derived below 1024px so each hero line stays whole. */
  --fs-h1: clamp(46px, 6vw, 88px);
  --fs-h1-page: clamp(34px, 4.4vw, 64px); /* inner pages sit one step below the homepage */
  --fs-h2: clamp(34px, 4vw, 58px);
  --fs-h3: clamp(24px, 2.2vw, 32px);
  --fs-lede: clamp(16px, 1.2vw, 18px);

  /* Layout */
  --max: 1320px;
  --gutter: clamp(16px, 4vw, 56px);
  --col-gap: clamp(16px, 2.2vw, 32px);
  --section-y: clamp(88px, 11vw, 160px);
  --header-h: 72px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Layers */
  --z-overlay: 90;
  --z-sticky: 100;
  --z-dropdown: 110;
}

/* Below the desktop grid the hero headline sizes to the container:
   "Beyond Borders" measures 7.9em in Montserrat 600, so width / 8.1 keeps it on one line. */
@media (max-width: 1023px) {
  :root {
    --fs-h1: clamp(34px, calc((100vw - 2 * var(--gutter)) / 8.1), 72px);
    /* "Global Possibilities." measures 9.25em, so width / 9.6 keeps each About headline line whole */
    --fs-h1-page: clamp(30px, calc((100vw - 2 * var(--gutter)) / 9.6), 60px);
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  background: var(--ractero-ivory);
  color: var(--ink);
  font: 400 16px/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html:has(dialog[open]) {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

/* zero specificity so component margins always win */
:where(ul[role="list"], ol[role="list"]) {
  margin: 0;
  padding: 0;
  list-style: none;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--on-dark);
  font: 500 14px/1 var(--font-ui);
}

.skip-link:focus {
  top: 16px;
}

#top-sentinel {
  position: absolute;
  top: 0;
  width: 1px;
  height: 1px;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* ---------- Type helpers ---------- */

.h2 {
  font-size: var(--fs-h2);
  line-height: 1.05;
}

.lede {
  max-width: 60ch;
  color: var(--ink-muted);
  font-size: var(--fs-lede);
  line-height: 1.7;
}

/* §6 eyebrow: gold rule, uppercase, letter-spaced */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--gold-deep);
  font: 500 12px/1.2 var(--font-ui);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 56px;
  height: 1px;
  background: var(--ractero-gold);
  transform-origin: left center;
}

.section-head {
  display: grid;
  gap: 20px;
  max-width: 720px;
}

.section-head .eyebrow {
  margin-bottom: 4px;
}

/* ---------- Buttons (§5) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  font: 500 14px/1 var(--font-ui);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, translate 0.15s ease;
}

.btn i {
  font-size: 18px;
  transition: translate 0.35s var(--ease-out);
}

.btn:hover .ph-arrow-right {
  translate: 3px 0;
}

.btn:hover .ph-download-simple {
  translate: 0 2px;
}

.btn:active {
  translate: 0 1px;
}

.btn--primary {
  background: var(--ractero-gold);
  color: var(--ractero-charcoal);
}

.btn--primary:hover {
  background: var(--gold-hover);
}

.btn--secondary {
  border-color: var(--ractero-charcoal);
  color: var(--ractero-charcoal);
}

.btn--secondary:hover {
  background: var(--ractero-charcoal);
  color: var(--ractero-ivory);
}

.btn--ghost {
  border-color: rgb(247 244 238 / 0.55);
  color: var(--on-dark);
}

.btn--ghost:hover {
  border-color: var(--on-dark);
  background: var(--on-dark);
  color: var(--ractero-charcoal);
}

.btn--sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 13px;
}

.btn--block {
  width: 100%;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
  font-size: 22px;
  transition: color 0.2s ease;
}

.icon-btn:hover {
  color: var(--gold-deep);
}

.linklike {
  text-align: left;
}

/* ---------- Header (§5) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--ractero-ivory);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled,
.site-header:has(.mega:not([hidden])) {
  box-shadow: 0 1px 0 var(--line);
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.site-header__logo {
  flex: none;
  padding-block: 12px;
}

.site-header__logo img {
  width: auto;
  height: 22px;
}

.nav {
  display: none;
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.3vw, 36px);
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  color: var(--ink);
  font: 500 14px/1 var(--font-ui);
  letter-spacing: 0.01em;
}

.nav__link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 9px;
  left: 0;
  height: 1px;
  background: var(--ractero-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease-out);
}

.nav__link:hover::after,
.nav__link[aria-expanded="true"]::after {
  transform: scaleX(1);
}

.nav__link i {
  font-size: 13px;
  transition: rotate 0.3s var(--ease-out);
}

.nav__link[aria-expanded="true"] i {
  rotate: 180deg;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.lang {
  position: relative;
  display: none;
}

.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 8px;
  font: 500 13px/1 var(--font-ui);
  letter-spacing: 0.06em;
}

.lang__btn i {
  font-size: 19px;
}

.lang__menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: var(--z-dropdown);
  min-width: 210px;
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--ractero-white);
}

.lang__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 12px;
  font: 500 14px/1.2 var(--font-ui);
}

a.lang__option:hover {
  background: var(--ractero-ivory);
}

.lang__option.is-soon {
  color: var(--ink-muted);
  cursor: default;
}

.lang__soon {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-cta {
  display: none;
  margin-left: 10px;
}

@media (min-width: 640px) {
  .header-cta {
    display: inline-flex;
  }
}

@media (min-width: 1180px) {
  .nav,
  .lang {
    display: block;
  }

  .header-actions {
    margin-left: clamp(18px, 2vw, 32px);
  }

  .menu-toggle {
    display: none;
  }
}

/* Products menu */
.mega {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: var(--z-dropdown);
  border-block: 1px solid var(--line);
  background: var(--ractero-ivory);
}

.mega__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(0, 1.5fr);
  gap: var(--col-gap);
  padding-block: 36px 44px;
}

.mega__title {
  margin-bottom: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font: 600 15px/1.2 var(--font-heading);
}

.mega__link {
  display: block;
  padding-block: 7px;
  color: var(--ink);
  font: 500 14px/1.35 var(--font-ui);
  transition: color 0.2s ease, translate 0.3s var(--ease-out);
}

.mega__link:hover {
  color: var(--gold-deep);
  translate: 4px 0;
}

.mega__feature {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-content: start;
  gap: 20px;
  padding: 16px;
  background: var(--ractero-white);
}

.mega__feature img {
  width: 88px;
  aspect-ratio: 1 / 2;
  object-fit: cover;
}

.mega__feature-title {
  display: block;
  font: 600 18px/1.25 var(--font-heading);
  letter-spacing: -0.01em;
}

.mega__feature-text {
  display: block;
  margin-top: 8px;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.55;
}

.mega__feature-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font: 500 13px/1 var(--font-ui);
}

.mega__feature:hover .mega__feature-link i {
  translate: 3px 0;
}

.mega__feature-link i {
  transition: translate 0.35s var(--ease-out);
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: rgb(11 11 16 / 0.28);
}

/* ---------- Hero: a full-size slider ----------
   Three rooms fill the screen below the header, edge to edge. The headline, text and button
   sit on a soft charcoal gradient at the foot of the picture, with the slider controls under them. */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: max(560px, calc(100svh - var(--header-h)));
  overflow: hidden;
  background: var(--ractero-slate); /* keeps the ivory text legible before the first picture paints */
  color: var(--on-dark);
}

/* Legibility gradient, measured in pixels from the foot because the text block has a fixed
   height while the hero grows with the screen: dark behind every line of text (at least 4.5:1
   for the ivory text on the brightest walls), fading out above it so the room stays clear. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgb(11 11 16 / 0.88) 0, rgb(11 11 16 / 0.76) 500px, rgb(11 11 16 / 0.36) 640px, rgb(11 11 16 / 0) 820px);
  pointer-events: none;
}

@media (min-width: 1024px) {
  .hero::before {
    background: linear-gradient(0deg, rgb(11 11 16 / 0.86) 0, rgb(11 11 16 / 0.74) 340px, rgb(11 11 16 / 0.38) 470px, rgb(11 11 16 / 0) 650px);
  }
}

.hero :focus-visible {
  outline-color: var(--ractero-gold);
}

.hero__copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-self: end;
  gap: 24px;
  padding-bottom: clamp(28px, 4.5vh, 52px);
  pointer-events: none; /* swipes pass through to the picture; the button stays clickable */
}

.hero__copy a {
  pointer-events: auto;
}

.hero__title {
  color: var(--on-dark);
  font-size: var(--fs-h1);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

/* Line masks for the entrance; the padding keeps descenders (g, p) unclipped. */
.hero__title .line {
  display: block;
  margin-bottom: -0.08em;
  padding-bottom: 0.08em;
  overflow: hidden;
}

.hero__title .line > span {
  display: inline-block;
}

.hero__aside {
  display: grid;
  justify-items: start;
  gap: 24px;
  max-width: 460px;
}

.hero__lede {
  color: rgb(247 244 238 / 0.9);
  font-size: var(--fs-lede);
  line-height: 1.7;
}

@media (min-width: 1024px) {
  .hero__copy {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: end;
  }

  .hero__title {
    grid-column: 1 / span 8;
  }

  .hero__aside {
    grid-column: 9 / span 4;
    padding-bottom: 6px;
  }
}

/* Slider: a tabbed carousel (WAI-ARIA APG). The gold line in the selected tab is the timer.
   The pictures (.stage__view) fill the whole hero; the controls run along its foot. */
.stage {
  --dwell: 7s;
  display: grid;
  grid-template-areas:
    "controls"
    "now";
  gap: 12px;
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
  padding: 20px 0 clamp(20px, 3.5vh, 36px);
  border-top: 1px solid rgb(247 244 238 / 0.2);
}

@media (min-width: 768px) {
  .stage {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "controls now";
    align-items: end;
    column-gap: var(--col-gap);
  }
}

.stage__controls,
.stage__now {
  position: relative;
  z-index: 2;
  pointer-events: none; /* only the controls themselves catch the pointer */
}

.stage__toggle,
.stage__tab,
.stage__now a {
  pointer-events: auto;
}

.stage__controls {
  display: flex;
  grid-area: controls;
  gap: clamp(12px, 1.6vw, 24px);
  min-width: 0;
}

.stage__toggle {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(247 244 238 / 0.55);
  color: var(--on-dark);
  font-size: 18px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.stage__toggle:hover {
  border-color: var(--on-dark);
  background: var(--on-dark);
  color: var(--ractero-charcoal);
}

.stage__tabs {
  display: grid;
  flex: 1;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: clamp(10px, 1.4vw, 20px);
  max-width: 640px;
}

/* Small uppercase labels, letter-spaced (§4 typography direction) */
.stage__tab {
  display: grid;
  align-content: start;
  gap: 13px;
  min-height: 44px;
  padding-top: 8px;
  color: rgb(247 244 238 / 0.74);
  font: 500 11px/1.2 var(--font-ui);
  letter-spacing: 0.16em;
  text-align: left;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.stage__tab:hover,
.stage__tab[aria-selected="true"] {
  color: var(--on-dark);
}

/* three labels share a phone's width, so they tighten to keep clear gaps */
@media (max-width: 639px) {
  .stage__tabs {
    gap: 14px;
  }

  .stage__tab {
    font-size: 10px;
    letter-spacing: 0.1em;
  }
}

.stage__meter {
  position: relative;
  display: block;
  height: 2px;
  overflow: hidden;
  background: rgb(247 244 238 / 0.28);
}

.stage__fill {
  position: absolute;
  inset: 0;
  background: var(--ractero-gold);
  transform: scaleX(0);
  transform-origin: left center;
}

/* Not rotating: the selected tab is simply full. Rotating: the line fills over the dwell time,
   and main.js moves on when it completes. */
.stage__tab[aria-selected="true"] .stage__fill {
  transform: none;
}

.stage.is-auto .stage__tab[aria-selected="true"] .stage__fill {
  animation: stage-fill var(--dwell) linear both;
}

.stage.is-auto.is-held .stage__tab[aria-selected="true"] .stage__fill {
  animation-play-state: paused;
}

@keyframes stage-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* .stage is not positioned, so the pictures size themselves to the whole hero */
.stage__view {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.stage__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  visibility: hidden;
}

.stage__slide.is-active,
.stage__slide.is-entering,
.stage__slide.is-leaving {
  visibility: visible;
}

.stage__slide.is-entering {
  z-index: 1;
}

.stage__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
  -webkit-user-drag: none;
}

/* Tall screens show a narrow slice of each room, so every slide names its own crop */
@media (max-aspect-ratio: 1/1) {
  .stage__slide img {
    object-position: var(--focus-sm, var(--focus, 50% 50%));
  }
}

/* The wipe's leading edge: a gold hairline trailed by a soft sheen, like light crossing a
   polished face. Hidden between transitions. */
.stage__scan {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}

.stage__scan::before,
.stage__scan::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
}

.stage__scan::before {
  left: 0;
  width: 1px;
  background: var(--ractero-gold);
}

.stage__scan::after {
  left: 1px;
  width: clamp(64px, 10vw, 160px);
  background: linear-gradient(90deg, rgb(247 244 238 / 0.4), rgb(247 244 238 / 0));
}

.stage__scan[data-dir="-1"]::after {
  right: 100%;
  left: auto;
  background: linear-gradient(270deg, rgb(247 244 238 / 0.4), rgb(247 244 238 / 0));
}

.stage__now {
  display: flex;
  grid-area: now;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  min-width: 0;
}

@media (min-width: 768px) {
  .stage__now {
    justify-content: flex-end;
    padding-bottom: 6px;
  }
}

.stage__detail {
  display: block;
  overflow: hidden;
  color: var(--on-dark);
  font: 600 16px/1.3 var(--font-heading);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.stage__detail > span {
  display: block;
}

.stage__code {
  color: rgb(247 244 238 / 0.74);
}

.stage .text-link {
  color: var(--on-dark);
}

.stage .text-link:hover {
  color: var(--gold-hover);
}

/* Surface comparison: two renders of the same room, one per surface */
.compare {
  margin: clamp(36px, 4.5vw, 64px) 0 0;
}

.compare__stage {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ractero-stone);
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

@media (min-width: 768px) {
  .compare__stage {
    aspect-ratio: 16 / 9;
  }
}

@media (min-width: 1280px) {
  .compare__stage {
    aspect-ratio: 2 / 1;
  }
}

.compare__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 78%;
  pointer-events: none;
  -webkit-user-drag: none;
}

.compare__img--a {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.compare.is-hinting {
  transition: --pos 1.1s var(--ease-in-out);
}

.compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 0;
}

.compare__handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -0.5px;
  width: 1px;
  background: rgb(247 244 238 / 0.92);
}

.compare__knob {
  position: absolute;
  top: 50%;
  left: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  translate: -50% -50%;
  background: var(--ractero-ivory);
  box-shadow: 0 2px 8px rgb(11 11 16 / 0.2);
  color: var(--ink);
  font-size: 22px;
  transition: scale 0.3s var(--ease-out);
}

.compare__stage:hover .compare__knob {
  scale: 1.06;
}

.compare:has(.compare__range:focus-visible) .compare__knob {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.compare__caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  font: 500 13px/1.3 var(--font-ui);
}

.compare__label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.compare__label--b {
  justify-self: end;
}

.compare__code {
  color: var(--ink-muted);
}

.compare__chip {
  width: 14px;
  height: 28px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgb(11 11 16 / 0.18);
}

.compare__hint {
  color: var(--ink-muted);
  text-align: center;
}

@media (max-width: 639px) {
  .compare__caption {
    grid-template-columns: 1fr 1fr;
  }

  .compare__hint {
    grid-row: 2;
    grid-column: 1 / -1;
  }
}

/* ---------- Collections index (white, so it separates from the ivory hero) ---------- */

.collections {
  padding-block: var(--section-y);
  background: var(--ractero-white);
}

.cx-filters {
  display: flex;
  gap: 8px;
  margin: clamp(36px, 4vw, 56px) calc(var(--gutter) * -1) 0;
  padding: 0 var(--gutter) 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.cx-filters::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .cx-filters {
    flex-wrap: wrap;
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }
}

.cx-chip {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font: 500 13px/1 var(--font-ui);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cx-chip:hover {
  border-color: var(--ink);
}

.cx-chip[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--on-dark);
}

.cx-chip__count {
  font-variant-numeric: tabular-nums;
  opacity: 0.72;
}

.cx-layout {
  display: grid;
  gap: 40px;
  margin-top: 28px;
}

.cx-list {
  display: grid;
}

@media (min-width: 1024px) {
  .cx-layout {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: start;
  }

  .cx-list {
    display: block;
    grid-column: 1 / span 6;
    columns: 2;
    column-gap: var(--col-gap);
  }

  .cx-layout > .cx-preview {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    grid-column: 7 / span 6;
  }
}

.cx-item {
  break-inside: avoid;
}

.cx-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 14px 16px;
  text-align: left;
  transition: background-color 0.25s ease;
}

.cx-name {
  font: 600 clamp(18px, 1.5vw, 21px)/1.25 var(--font-heading);
  letter-spacing: -0.01em;
  transition: translate 0.35s var(--ease-out);
}

.cx-vol {
  margin-left: 4px;
  color: var(--ink-muted);
  font: 500 13px/1 var(--font-ui);
  white-space: nowrap;
}

.cx-count {
  color: var(--ink-muted);
  font: 500 13px/1 var(--font-ui);
  font-variant-numeric: tabular-nums;
}

.cx-row:hover {
  background: rgb(247 244 238 / 0.6);
}

.cx-row:hover .cx-name {
  translate: 4px 0;
}

.cx-row[aria-current="true"] {
  background: var(--ractero-ivory);
}

.cx-row[aria-current="true"] .cx-name {
  translate: 4px 0;
}

.cx-row[aria-current="true"] .cx-count {
  color: var(--gold-deep);
}

.cx-preview {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-rows: 1fr auto;
  grid-template-areas:
    "media body"
    "media cta";
  gap: clamp(16px, 2vw, 28px);
  padding: clamp(14px, 1.6vw, 24px);
  background: var(--ractero-ivory);
}

.cx-item > .cx-preview {
  margin: 2px 0 18px;
}

@media (min-width: 480px) and (max-width: 1023px) {
  .cx-item > .cx-preview {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }
}

.cx-preview__media {
  position: relative;
  grid-area: media;
  aspect-ratio: 1 / 2;
  overflow: hidden;
  background: var(--ractero-sand);
}

.cx-preview__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cx-preview__body {
  display: flex;
  grid-area: body;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding-top: 4px;
}

.cx-preview__family {
  color: var(--gold-deep);
  font: 500 13px/1.2 var(--font-ui);
}

.cx-preview__name {
  font-size: var(--fs-h3);
  line-height: 1.1;
}

/* spec register: one rule above the group, values aligned right */
.cx-specs {
  display: grid;
  gap: 12px;
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.cx-specs div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.cx-specs dt {
  color: var(--ink-muted);
  font: 500 12px/1.2 var(--font-ui);
}

.cx-specs dd {
  margin: 0;
  font: 600 15px/1.3 var(--font-heading);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* several sizes may be listed once new formats arrive */
.cx-specs dd[data-field="sizes"] {
  white-space: normal;
  text-align: right;
}

.cx-catalogue {
  display: grid;
  grid-area: cta;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 16px 12px 12px;
  background: var(--ractero-white);
  transition: background-color 0.25s ease;
}

.cx-catalogue:hover {
  background: var(--ractero-sand);
}

.cx-catalogue__cover {
  width: 44px;
  aspect-ratio: 830 / 1172;
  object-fit: cover;
}

.cx-catalogue__label {
  display: block;
  font: 500 14px/1.3 var(--font-ui);
}

.cx-catalogue__meta {
  display: block;
  margin-top: 3px;
  color: var(--ink-muted);
  font: 500 12px/1.3 var(--font-ui);
}

.cx-catalogue i {
  font-size: 20px;
  transition: translate 0.35s var(--ease-out);
}

.cx-catalogue:hover i {
  translate: 0 2px;
}

@media (max-width: 479px) {
  .cx-preview {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    grid-template-rows: auto;
    grid-template-areas:
      "media body"
      "cta cta";
    gap: 16px;
  }

  .cx-specs div {
    display: grid;
    gap: 2px;
  }
}

/* ---------- Surface and performance (ivory, between the white Collections and Spaces) ---------- */

.surface {
  padding-block: var(--section-y);
}

.surface .compare {
  margin-top: clamp(40px, 5vw, 72px);
}

.spec {
  display: grid;
  gap: 28px;
  margin-top: clamp(56px, 7vw, 104px);
}

@media (min-width: 1024px) {
  .spec {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: start;
  }

  .spec__title {
    grid-column: 1 / span 3;
    padding-top: 12px;
  }

  .spec__list {
    grid-column: 4 / span 9;
  }
}

.spec__title {
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.2;
}

.spec__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px var(--col-gap);
}

@media (min-width: 768px) {
  .spec__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 28px;
  }
}

.spec__item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  line-height: 1.35;
}

/* each icon sits on a small square sample, echoing a tile */
.spec__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: var(--ractero-white);
  color: var(--ractero-gold);
  font-size: 24px;
}

/* ---------- Spaces ---------- */

.spaces {
  padding-block: var(--section-y);
  background: var(--ractero-white);
}

.bento {
  display: grid;
  gap: 32px;
  margin-top: clamp(40px, 5vw, 72px);
}

.space {
  margin: 0;
}

.space__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ractero-stone);
}

.space__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.space__caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
}

.space__label {
  font: 600 16px/1.3 var(--font-heading);
}

.space__detail {
  color: var(--ink-muted);
  font: 500 13px/1.3 var(--font-ui);
  text-align: right;
}

/* Tablet: living room full width, then two pairs */
@media (min-width: 768px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(32px, 3vw, 44px) clamp(12px, 1.4vw, 20px);
  }

  .space--living {
    grid-column: 1 / -1;
  }

  .space--living .space__media {
    aspect-ratio: 16 / 9;
  }
}

/* Desktop: asymmetric 7 + 5 over 3 + 5 + 4 */
@media (min-width: 1024px) {
  .bento {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .space__media,
  .space--living .space__media {
    aspect-ratio: auto;
  }

  .space--living { grid-column: 1 / span 7; }
  .space--bath { grid-column: 8 / span 5; }
  .space--bedroom { grid-column: 1 / span 3; }
  .space--office { grid-column: 4 / span 5; }
  .space--terrace { grid-column: 9 / span 4; }

  .space--living .space__media,
  .space--bath .space__media {
    height: clamp(300px, 37vw, 520px);
  }

  .space--bedroom .space__media,
  .space--office .space__media,
  .space--terrace .space__media {
    height: clamp(240px, 26vw, 360px);
  }

  .space--bath img { object-position: 30% 60%; }
  .space--bedroom img { object-position: 42% 70%; }
  .space--office img { object-position: 45% 55%; }
  .space--terrace img { object-position: 50% 75%; }
}

/* ---------- Export ---------- */

.export {
  padding-block: var(--section-y);
  background: var(--ractero-sand);
}

.export__top {
  display: grid;
  align-items: end;
  gap: 48px;
}

@media (min-width: 1024px) {
  .export__top {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
  }

  .export__intro {
    grid-column: 1 / span 7;
  }

  .export__top > .photo-slot {
    grid-column: 8 / span 5;
  }
}

.export__intro {
  display: grid;
  justify-items: start;
  gap: 24px;
}

.export__intro .h2 {
  max-width: 12em;
}

.export__intro .btn {
  margin-top: 8px;
}

/* Placeholder until real export photography is supplied (§7 containers, ports, factory) */
.photo-slot {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  aspect-ratio: 4 / 3;
  margin: 0;
  padding: 24px;
  outline: 1px dashed rgb(44 49 56 / 0.4);
  outline-offset: -14px;
  background: #DDD3C3;
  color: var(--ractero-slate);
  text-align: center;
}

@media (min-width: 640px) and (max-width: 1023px) {
  .photo-slot {
    aspect-ratio: 16 / 7;
  }
}

.photo-slot i {
  font-size: 44px;
}

.photo-slot strong {
  display: block;
  font: 600 16px/1.3 var(--font-heading);
}

.photo-slot figcaption span {
  display: block;
  margin-top: 4px;
  color: var(--ink-muted);
  font: 500 13px/1.4 var(--font-ui);
}

.steps {
  display: grid;
  gap: 36px;
  margin-top: clamp(64px, 8vw, 112px);
}

.step {
  position: relative;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}

.step__num {
  font: 500 13px/1 var(--font-ui);
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

.step__title {
  margin-top: 18px;
  font-size: clamp(22px, 1.9vw, 26px);
  line-height: 1.2;
}

.step__text {
  max-width: 32ch;
  margin-top: 10px;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.65;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--col-gap);
  }
}

@media (min-width: 1024px) {
  .steps {
    position: relative;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* one continuous route line with a tick at each step */
  .steps::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    background: var(--ink);
    transform-origin: left center;
  }

  .step {
    border-top: 0;
  }

  .step::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 0;
    width: 1px;
    height: 11px;
    background: var(--ink);
  }
}

/* ---------- Closing band (§13 dark premium section) ---------- */

.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(104px, 13vw, 190px);
  background: var(--ractero-charcoal);
  color: var(--on-dark);
}

.cta__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgb(11 11 16 / 0.95) 0%, rgb(11 11 16 / 0.84) 45%, rgb(11 11 16 / 0.52) 100%);
}

.cta__inner {
  display: grid;
  justify-items: start;
  gap: 28px;
}

.cta__title {
  color: var(--on-dark);
}

/* one sentence per line */
.cta__title span {
  display: block;
}

.cta__lede {
  color: var(--on-dark-muted);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.cta :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--ractero-gold);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line-on-dark);
  background: var(--ractero-charcoal);
  color: var(--on-dark-muted);
  font-size: 14px;
}

.site-footer__top {
  display: grid;
  gap: 48px;
  padding-block: clamp(56px, 7vw, 96px);
}

@media (min-width: 1024px) {
  .site-footer__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  }
}

.site-footer__logo {
  width: 176px;
  height: auto;
}

.site-footer__line {
  margin-top: 20px;
  color: var(--ractero-gold);
  font: 500 12px/1.4 var(--font-ui);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px var(--col-gap);
}

@media (min-width: 640px) {
  .site-footer__nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.site-footer__heading {
  margin-bottom: 14px;
  color: var(--on-dark);
  font: 600 14px/1.3 var(--font-heading);
}

.site-footer__col ul {
  display: grid;
  gap: 4px;
}

.site-footer a,
.site-footer .linklike {
  display: inline-block;
  padding-block: 5px;
  color: var(--on-dark-muted);
  transition: color 0.2s ease;
}

.site-footer a:hover,
.site-footer .linklike:hover {
  color: var(--on-dark);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 20px 32px;
  border-top: 1px solid var(--line-on-dark);
  font: 500 13px/1.4 var(--font-ui);
}

.site-footer__legal {
  display: flex;
  gap: 24px;
}

/* ---------- Dialogs ---------- */

dialog {
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  color: var(--ink);
}

dialog::backdrop {
  background: rgb(11 11 16 / 0.5);
}

.search {
  width: min(100% - 32px, 680px);
  margin: clamp(16px, 12vh, 140px) auto auto;
  background: var(--ractero-ivory);
}

.search__panel {
  padding: clamp(20px, 3vw, 32px);
}

.search__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.search__title {
  font-size: 22px;
}

.field-label {
  display: block;
  margin-top: 20px;
  color: var(--ink);
  font: 500 13px/1.3 var(--font-ui);
}

.search__field {
  position: relative;
  margin-top: 8px;
}

.search__field i {
  position: absolute;
  top: 50%;
  left: 16px;
  translate: 0 -50%;
  color: var(--ink-muted);
  font-size: 20px;
  pointer-events: none;
}

.search__input {
  width: 100%;
  height: 56px;
  padding: 0 16px 0 48px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--ractero-white);
  color: var(--ink);
  font: 400 16px/1 var(--font-body);
  appearance: none;
}

.search__input::placeholder {
  color: var(--ink-muted);
  opacity: 1;
}

.search__input:focus-visible {
  border-color: var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: 0;
}

.search__status {
  min-height: 1.4em;
  margin-top: 14px;
  color: var(--ink-muted);
  font: 500 13px/1.4 var(--font-ui);
}

.search__results {
  max-height: min(52vh, 440px);
  margin-top: 8px;
  overflow: auto;
}

.search__result {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 10px;
  text-align: left;
}

.search__result:hover,
.search__result:focus-visible {
  background: var(--ractero-white);
}

.search__thumb {
  width: 32px;
  aspect-ratio: 1 / 2;
  object-fit: cover;
}

.search__name {
  display: block;
  font: 600 16px/1.3 var(--font-heading);
}

.search__meta,
.search__count {
  display: block;
  color: var(--ink-muted);
  font: 500 12px/1.4 var(--font-ui);
}

.menu {
  width: 100%;
  height: 100%;
  margin: 0;
  background: var(--ractero-ivory);
}

.menu__inner {
  min-height: 100%;
}

.menu__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.menu__logo {
  width: auto;
  height: 22px;
}

.menu__nav {
  display: grid;
  gap: 40px;
  padding-block: 24px 40px;
}

.menu__link {
  display: block;
  padding-block: 10px;
  font: 600 clamp(28px, 7vw, 40px)/1.15 var(--font-heading);
  letter-spacing: -0.02em;
}

.menu__foot {
  display: grid;
  gap: 18px;
}

.menu__lang {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-muted);
  font: 500 14px/1 var(--font-ui);
}

/* ---------- Motion (every effect enhances content that is already visible) ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  /* The slider timer is a thin line, not movement across the screen. It only runs if the
     visitor presses play, and it must keep its real length or slides would change instantly. */
  .stage__fill {
    animation-duration: var(--dwell) !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* Hero entrance */
  html.js .hero__title .line > span { animation: line-up 1.1s var(--ease-out) 0.05s both; }
  html.js .hero__title .line + .line > span { animation-delay: 0.14s; }
  html.js .hero__aside { animation: rise 1s var(--ease-out) 0.3s both; }
  html.js .stage__controls,
  html.js .stage__now { animation: rise 1s var(--ease-out) 0.45s both; }
  html.js .stage__view { animation: fade 1.2s ease both; }
  html.js .stage__slide:first-child img { animation: settle 2.4s var(--ease-out) both; }

  /* Slider caption: the new collection name rises into place */
  .stage__detail > span.is-entering { animation: line-up 0.7s var(--ease-out) both; }

  /* Menus */
  .mega:not([hidden]) { animation: drop-in 0.45s var(--ease-out); }
  .lang__menu:not([hidden]) { animation: drop-in 0.35s var(--ease-out); }
  .scrim:not([hidden]) { animation: fade 0.3s ease; }
  dialog[open] { animation: rise 0.45s var(--ease-out); }
  dialog[open]::backdrop { animation: fade 0.3s ease; }

  /* Collection preview crossfade */
  .cx-preview__media img.is-entering { animation: preview-in 0.6s var(--ease-out) both; }

  /* Scroll reveals. main.js marks only elements that start below the fold as .is-pending,
     so anything on screen at load, in print or in a full-page capture is never hidden. */
  [data-reveal="up"].is-pending {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 90ms);
  }

  [data-reveal="up"].is-pending.is-in {
    opacity: 1;
    transform: none;
  }

  /* Surface comparison unveils, then the technical features arrive one sample at a time */
  .compare.is-pending .compare__stage {
    opacity: 0;
    clip-path: inset(10% 0 0 0);
    transition: opacity 1.1s var(--ease-out), clip-path 1.3s var(--ease-out);
  }

  .compare.is-pending .compare__caption {
    opacity: 0;
    transition: opacity 0.8s ease 0.5s;
  }

  .compare.is-pending.is-in .compare__stage { opacity: 1; clip-path: inset(0); }
  .compare.is-pending.is-in .compare__caption { opacity: 1; }

  .spec__list.is-pending .spec__item {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 70ms);
  }

  .spec__list.is-pending.is-in .spec__item { opacity: 1; transform: none; }

  /* Spaces: each room opens top to bottom, in sequence */
  .space.is-pending .space__media {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1.2s var(--ease-out) calc(var(--i, 0) * 120ms);
  }

  .space.is-pending .space__media img {
    scale: 1.08;
    transition: scale 1.8s var(--ease-out) calc(var(--i, 0) * 120ms);
  }

  .space.is-pending .space__caption {
    opacity: 0;
    transition: opacity 0.8s ease calc(var(--i, 0) * 120ms + 0.45s);
  }

  .space.is-pending.is-in .space__media { clip-path: inset(0); }
  .space.is-pending.is-in .space__media img { scale: 1; }
  .space.is-pending.is-in .space__caption { opacity: 1; }

  /* Export route: the line runs first, then each step arrives */
  .steps.is-pending::before { transform: scaleX(0); transition: transform 1.4s var(--ease-in-out); }
  .steps.is-pending .step {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 140ms + 0.25s);
  }

  .steps.is-pending.is-in::before { transform: none; }
  .steps.is-pending.is-in .step { opacity: 1; transform: none; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
}

@keyframes line-up {
  from { transform: translateY(105%); }
}

@keyframes unveil {
  from { clip-path: inset(10% 0 0 0); opacity: 0; }
  to { clip-path: inset(0); opacity: 1; }
}

@keyframes drop-in {
  from { opacity: 0; transform: translateY(-6px); }
}

@keyframes fade {
  from { opacity: 0; }
}

@keyframes settle {
  from { transform: scale(1.08); }
}

@keyframes preview-in {
  from { opacity: 0; scale: 1.04; }
}

/* ==========================================================================
   Inner pages: About, Global Trade, Collections, Contact Us
   ========================================================================== */

/* Current page in the navigation */
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu__link[aria-current="page"] {
  color: var(--gold-deep);
}

/* Breadcrumb */
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-muted);
  font: 500 13px/1.4 var(--font-ui);
}

.crumbs li + li::before {
  content: "/";
  color: var(--line-strong);
}

.crumbs a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s ease;
}

.crumbs a:hover {
  text-decoration-color: var(--ractero-gold);
}

/* Text link with a gold rule (§3 gold for accent lines) */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ractero-gold);
  color: var(--ink);
  font: 500 14px/1.3 var(--font-ui);
  transition: color 0.2s ease;
}

.text-link i {
  transition: translate 0.35s var(--ease-out);
}

.text-link:hover {
  color: var(--gold-deep);
}

.text-link:hover i {
  translate: 3px 0;
}

/* ---------- Page heroes ---------- */

.page-hero {
  padding-block: clamp(28px, 4vw, 56px) clamp(64px, 8vw, 112px);
}

.page-hero__title {
  margin-top: clamp(24px, 3vw, 40px);
  font-size: var(--fs-h1-page);
  line-height: 1;
  letter-spacing: -0.03em;
}

.page-hero__title span {
  display: block;
}

.page-hero__lede {
  max-width: 52ch;
  margin-top: 24px;
  color: var(--ink-muted);
  font-size: var(--fs-lede);
  line-height: 1.7;
}

.page-hero__text > .btn {
  margin-top: 32px;
}

.page-hero__media {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ractero-stone);
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Split: text beside a portrait image (About) */
.page-hero--split .page-hero__grid {
  display: grid;
  align-items: end;
  gap: 40px;
}

@media (min-width: 1024px) {
  .page-hero--split .page-hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
  }

  .page-hero--split .page-hero__text {
    grid-column: 1 / span 7;
    padding-bottom: 8px;
  }

  .page-hero--split .page-hero__media {
    grid-column: 8 / span 5;
  }

  .page-hero__media--portrait {
    aspect-ratio: 4 / 5;
  }

  .page-hero__media--portrait img {
    object-position: 62% 50%;
  }
}

/* Stacked: headline row, then a full-bleed image band (Global Trade) */
.page-hero--stacked {
  padding-bottom: 0;
}

.page-hero__head {
  display: grid;
  gap: 24px;
}

.page-hero--stacked .page-hero__title {
  max-width: 13em;
}

.page-hero__aside .page-hero__lede {
  margin-top: 0;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

@media (min-width: 1024px) {
  .page-hero__head {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: end;
    margin-top: clamp(24px, 3vw, 40px);
  }

  .page-hero--stacked .page-hero__title {
    grid-column: 1 / span 7;
    margin-top: 0;
  }

  .page-hero__aside {
    grid-column: 8 / span 5;
    padding-bottom: 6px;
  }
}

.page-hero__band {
  aspect-ratio: 16 / 9;
  margin: clamp(40px, 5vw, 72px) 0 0;
  overflow: hidden;
  background: var(--ractero-stone);
}

@media (min-width: 768px) {
  .page-hero__band {
    aspect-ratio: 21 / 8;
  }
}

.page-hero__band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}

/* Compact: headline only (Contact) */
.page-hero--compact {
  padding-bottom: clamp(40px, 5vw, 64px);
}

.page-hero--compact .page-hero__title {
  max-width: 14em;
}

/* ---------- About: who we are ---------- */

.intro {
  padding-block: var(--section-y);
  background: var(--ractero-white);
}

.intro__title {
  max-width: 12em;
}

.intro__grid {
  display: grid;
  gap: 24px;
  margin-top: clamp(32px, 4vw, 56px);
}

@media (min-width: 1024px) {
  .intro__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
  }

  .intro__lead {
    grid-column: 1 / span 6;
  }

  .intro__body {
    grid-column: 8 / span 5;
  }
}

.intro__lead {
  max-width: 34ch;
  color: var(--ink);
  font-size: clamp(20px, 1.8vw, 25px);
  line-height: 1.5;
}

.intro__body {
  display: grid;
  gap: 18px;
  color: var(--ink-muted);
}

/* Fact register: one rule above, values at reading size (not a hero-metric strip) */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px var(--col-gap);
  margin: clamp(56px, 7vw, 96px) 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--ink);
}

.facts__item {
  display: grid;
  align-content: start;
  gap: 8px;
}

.facts dt {
  color: var(--ink-muted);
  font: 500 13px/1.3 var(--font-ui);
}

.facts dd {
  margin: 0;
  font: 600 clamp(20px, 2vw, 28px)/1.15 var(--font-heading);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

/* ---------- About: principles ---------- */

.principles {
  padding-block: var(--section-y);
}

.principles__grid {
  display: grid;
  gap: 48px;
}

.principles__head {
  display: grid;
  align-content: start;
  gap: 20px;
}

@media (min-width: 1024px) {
  .principles__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: start;
  }

  .principles__head {
    position: sticky;
    top: calc(var(--header-h) + 48px);
    grid-column: 1 / span 5;
  }

  .principles__list {
    grid-column: 7 / span 6;
  }
}

.principle {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 20px;
  padding-block: 32px;
  border-top: 1px solid var(--line);
}

.principle:last-child {
  border-bottom: 1px solid var(--line);
}

.principle__icon {
  color: var(--ractero-gold);
  font-size: 34px;
  line-height: 1;
}

.principle__title {
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.2;
}

.principle__text {
  max-width: 44ch;
  margin-top: 8px;
  color: var(--ink-muted);
}

/* ---------- About: sample board ---------- */

.range {
  padding-block: var(--section-y);
  background: var(--ractero-white);
}

.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 12px;
  margin-top: clamp(40px, 5vw, 64px);
}

@media (min-width: 640px) {
  .board {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .board {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 32px 16px;
  }
}

@media (min-width: 1280px) {
  .board {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
}

.board__link {
  display: grid;
  gap: 10px;
}

.board__link img {
  width: 100%;
  aspect-ratio: 1 / 2;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgb(11 11 16 / 0.06);
  transition: translate 0.5s var(--ease-out);
}

.board__link:hover img {
  translate: 0 -6px;
}

.board__name {
  color: var(--ink);
  font: 500 13px/1.35 var(--font-ui);
  transition: color 0.2s ease;
}

.board__link:hover .board__name {
  color: var(--gold-deep);
}

/* ---------- Global Trade: who we supply ---------- */

.audience {
  padding-block: var(--section-y);
}

.tabs {
  margin-top: clamp(40px, 5vw, 64px);
}

.tabs__list {
  display: flex;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.tabs__list::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .tabs__list {
    margin-inline: 0;
    padding-inline: 0;
  }
}

.tabs__tab {
  position: relative;
  flex: none;
  margin-right: clamp(22px, 3vw, 48px);
  padding: 18px 0;
  color: var(--ink-muted);
  font: 600 clamp(15px, 1.3vw, 18px)/1.2 var(--font-heading);
  transition: color 0.2s ease;
}

.tabs__tab::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--ractero-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease-out);
}

.tabs__tab:hover,
.tabs__tab[aria-selected="true"] {
  color: var(--ink);
}

.tabs__tab[aria-selected="true"]::after {
  transform: scaleX(1);
}

.tabs__panel {
  display: grid;
  gap: 32px;
  padding-top: clamp(32px, 4vw, 56px);
}

.tabs__panel:focus-visible {
  outline-offset: 8px;
}

@media (min-width: 1024px) {
  .tabs__panel {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: start;
  }

  .tabs__intro {
    grid-column: 1 / span 6;
    grid-row: span 2;
  }

  .ticks,
  .tabs__cta {
    grid-column: 8 / span 5;
  }

  .tabs__cta {
    justify-self: start;
  }
}

.tabs__cta {
  justify-self: start;
}

.tabs__title {
  max-width: 16em;
  font-size: var(--fs-h3);
  line-height: 1.15;
}

.tabs__intro p {
  max-width: 46ch;
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: var(--fs-lede);
}

.ticks {
  display: grid;
  gap: 16px;
}

.ticks li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.ticks i {
  flex: none;
  color: var(--gold-deep);
  font-size: 18px;
  translate: 0 3px;
}

/* ---------- Global Trade: process timeline ---------- */

.process {
  padding-block: var(--section-y);
  background: var(--ractero-white);
}

.process__grid {
  display: grid;
  gap: 56px;
}

.process__aside {
  display: grid;
  align-content: start;
  gap: 20px;
}

.photo-slot--compact {
  aspect-ratio: 16 / 10;
  margin-top: 16px;
}

@media (min-width: 1024px) {
  .process__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: start;
  }

  .process__aside {
    position: sticky;
    top: calc(var(--header-h) + 40px);
    grid-column: 1 / span 5;
  }

  .timeline {
    grid-column: 7 / span 6;
  }
}

.timeline {
  --progress: 0;
  position: relative;
}

/* the route: a hairline with a gold fill that follows the step in view */
.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 21.5px;
  width: 1px;
}

.timeline::before {
  background: var(--line);
}

.timeline::after {
  background: var(--ractero-gold);
  transform: scaleY(var(--progress));
  transform-origin: center top;
  transition: transform 0.6s var(--ease-out);
}

.timeline__step {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 24px;
  padding-bottom: clamp(40px, 5vw, 64px);
}

.timeline__step:last-child {
  padding-bottom: 0;
}

.timeline__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  background: var(--ractero-white);
  font: 500 13px/1 var(--font-ui);
  font-variant-numeric: tabular-nums;
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

.timeline__step.is-past .timeline__num {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--on-dark);
}

.timeline__title {
  margin-top: 9px;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.2;
}

.timeline__text {
  max-width: 46ch;
  margin-top: 10px;
  color: var(--ink-muted);
}

/* ---------- Global Trade: questions ---------- */

.faq {
  padding-block: var(--section-y);
}

.faq__grid {
  display: grid;
  gap: 40px;
}

.faq__aside {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 20px;
}

@media (min-width: 1024px) {
  .faq__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
  }

  .faq__aside {
    grid-column: 1 / span 4;
  }

  .faq__list {
    grid-column: 6 / span 7;
  }
}

.faq__item {
  border-top: 1px solid var(--line);
}

.faq__item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
  cursor: pointer;
  font: 600 clamp(17px, 1.5vw, 20px)/1.35 var(--font-heading);
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary i {
  flex: none;
  font-size: 20px;
  transition: rotate 0.35s var(--ease-out);
}

.faq__item[open] summary i {
  rotate: 45deg;
}

.faq__item p {
  max-width: 60ch;
  padding: 0 48px 24px 0;
  color: var(--ink-muted);
}

/* ---------- Collections: catalogue library ---------- */

/* "Collections" in the header is a menu button, so the current page is marked with a class */
.nav__link.is-current::after {
  transform: scaleX(1);
}

.section-head__link {
  justify-self: start;
}

/* Title band: warm stone under an ivory wash, the title above its breadcrumb (client reference) */
.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(36px, 4.5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: var(--ractero-sand);
}

.band__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.band__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.band__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(247 244 238 / 0.4);
}

.band__title {
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.band .crumbs {
  margin-top: 12px;
}

.band .crumbs li[aria-current] {
  color: var(--gold-deep);
}

.library {
  padding-block: clamp(40px, 5.5vw, 80px) var(--section-y);
}

.library__grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 1024px) {
  .library__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: start;
  }

  .filter {
    position: sticky;
    top: calc(var(--header-h) + 32px);
    grid-column: 1 / span 3;
  }

  .library__results {
    grid-column: 4 / span 9;
  }

  html:not(.js) .library__results {
    grid-column: 1 / -1;
  }
}

/* The filters need the script; without it every catalogue is simply listed */
html:not(.js) .filter {
  display: none;
}

.filter__title {
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.2;
}

.filter__form {
  display: grid;
  gap: 36px;
  margin-top: 24px;
}

.filter__label {
  display: block;
  color: var(--ink);
  font: 500 13px/1.3 var(--font-ui);
}

.filter__search {
  position: relative;
  margin-top: 6px;
}

.filter__input {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 400 15px/1 var(--font-body);
  appearance: none;
}

.filter__input::placeholder {
  color: var(--ink-muted);
  opacity: 1;
}

.filter__input::-webkit-search-cancel-button {
  display: none;
}

.filter__input:focus-visible {
  border-bottom-color: var(--ink);
  outline: none;
  box-shadow: 0 1px 0 var(--ink);
}

.filter__search > i,
.filter__clear {
  position: absolute;
  top: 50%;
  right: 0;
  translate: 0 -50%;
  color: var(--ink);
  font-size: 20px;
}

.filter__search > i {
  right: 10px;
  pointer-events: none;
}

.filter__clear {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

.filter__clear:not([hidden]) + i {
  display: none;
}

.filter__group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.filter__legend {
  width: 100%;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
  font: 600 16px/1.3 var(--font-heading);
}

.sizes {
  display: grid;
  margin-top: 6px;
}

/* One size at a time (radio buttons), drawn as square selectors to match the reference */
.size {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--ink);
  font: 500 14px/1.3 var(--font-ui);
  cursor: pointer;
}

.size__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.size__count {
  color: var(--ink-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.size__box {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line-strong);
  background: var(--ractero-white);
  transition: border-color 0.2s ease;
}

.size__box::after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--ink);
  transform: scale(0);
  transition: transform 0.25s var(--ease-out);
}

.size:hover .size__label {
  color: var(--gold-deep);
}

.size:hover .size__box,
.size__input:checked ~ .size__box {
  border-color: var(--ink);
}

.size__input:checked ~ .size__box::after {
  transform: none;
}

.size__input:focus-visible ~ .size__box {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Below the desktop grid the filters sit above the catalogues and sizes become a row of chips */
@media (max-width: 1023px) {
  .filter__form {
    gap: 24px;
    margin-top: 16px;
  }

  .filter__legend {
    padding-bottom: 10px;
    border-bottom: 0;
    font-size: 14px;
  }

  .sizes {
    display: flex;
    gap: 8px;
    margin: 0 calc(var(--gutter) * -1);
    padding: 2px var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .sizes::-webkit-scrollbar {
    display: none;
  }

  .size {
    flex: none;
    grid-template-columns: auto auto;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    background: var(--ractero-white);
    font-size: 13px;
  }

  .size__box {
    display: none;
  }

  .size:has(.size__input:checked) {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--on-dark);
  }

  .size:has(.size__input:checked) .size__count {
    color: var(--on-dark-muted);
  }

  .size:hover .size__label {
    color: inherit;
  }

  .size:has(.size__input:focus-visible) {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
  }
}

.library__status {
  margin-bottom: 20px;
  color: var(--ink-muted);
  font: 500 13px/1.4 var(--font-ui);
}

.shelf {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 12px;
}

@media (min-width: 640px) {
  .shelf {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 20px;
  }
}

@media (min-width: 1280px) {
  .shelf {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* A catalogue: its cover, then the size and name on a white footer */
.book {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--ractero-white);
}

.book__cover {
  display: block;
  aspect-ratio: 830 / 1172;
  overflow: hidden;
  background: var(--ractero-sand);
}

.book__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.6s var(--ease-out);
}

.book:hover .book__cover img {
  scale: 1.035;
}

.book__body {
  display: grid;
  flex: 1;
  align-content: start;
  gap: 4px;
  padding: 14px 16px 16px;
}

.book__size {
  color: var(--ink-muted);
  font: 500 11px/1.3 var(--font-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.book__name {
  font: 600 16px/1.25 var(--font-heading);
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.book:hover .book__name {
  color: var(--gold-deep);
}

@media (max-width: 639px) {
  .book__body {
    padding: 10px 12px 12px;
  }

  .book__name {
    font-size: 14px;
  }
}

.shelf__item.is-target .book {
  outline: 2px solid var(--ractero-gold);
  outline-offset: 4px;
}

.library__empty {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: clamp(24px, 3vw, 40px);
  border: 1px dashed var(--line-strong);
  color: var(--ink-muted);
}

.library__empty-title {
  color: var(--ink);
  font: 600 18px/1.3 var(--font-heading);
}

.library__empty .text-link {
  margin-top: 6px;
}

/* A size without catalogues yet */
.soon {
  display: grid;
  justify-items: start;
  gap: 18px;
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--line);
  background: var(--ractero-white);
}

.soon__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  color: var(--ractero-gold);
  font-size: 28px;
}

.soon__title {
  max-width: 18em;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.15;
}

.soon__text {
  max-width: 52ch;
  color: var(--ink-muted);
}

.soon__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

@media (prefers-reduced-motion: no-preference) {
  html.js .band__title,
  html.js .band .crumbs {
    animation: rise 0.9s var(--ease-out) both;
  }

  html.js .band .crumbs {
    animation-delay: 0.1s;
  }

  .shelf__item.is-target .book {
    animation: target 1.6s var(--ease-out) both;
  }

  .soon:not([hidden]),
  .library__empty:not([hidden]) {
    animation: rise 0.6s var(--ease-out);
  }
}

@keyframes target {
  0%, 40% { outline-color: var(--ractero-gold); }
  100% { outline-color: rgb(190 156 87 / 0.25); }
}

/* ---------- Contact: form and details ---------- */

.contact {
  padding-bottom: var(--section-y);
}

.contact__grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 1024px) {
  .contact__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: start;
  }

  .contact__form-wrap {
    grid-column: 1 / span 8;
  }

  .contact__details {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    grid-column: 9 / span 4;
  }
}

.contact__form-wrap {
  padding: clamp(20px, 3.5vw, 48px);
  background: var(--ractero-white);
}

.contact__title {
  font-size: var(--fs-h3);
  line-height: 1.15;
}

.contact__note {
  margin-top: 8px;
  color: var(--ink-muted);
  font: 500 13px/1.4 var(--font-ui);
}

.form {
  display: grid;
  gap: 28px;
  margin-top: 32px;
}

.form__grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 640px) {
  .form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
  }
}

.field {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field__label {
  padding: 0;
  color: var(--ink);
  font: 500 13px/1.3 var(--font-ui);
}

.field__req {
  color: var(--gold-deep);
}

.field__optional {
  margin-left: 6px;
  color: var(--ink-muted);
}

.field__input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--ractero-white);
  color: var(--ink);
  font: 400 16px/1.5 var(--font-body);
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field__input:hover {
  border-color: var(--ink-muted);
}

.field__input:focus-visible {
  border-color: var(--ink);
  outline: none;
  box-shadow: 0 0 0 1px var(--ink);
}

.field__input--area {
  min-height: 168px;
  resize: vertical;
}

.field__input[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 1px var(--error);
}

.field__hint {
  color: var(--ink-muted);
  font: 500 13px/1.5 var(--font-ui);
}

.field__error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--error);
  font: 500 13px/1.45 var(--font-ui);
}

.field__error i {
  flex: none;
  font-size: 16px;
  translate: 0 1px;
}

/* Choice chips: native radios and checkboxes, visually replaced but still focusable */
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.choice__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  background: var(--ractero-white);
  color: var(--ink);
  font: 500 14px/1.2 var(--font-ui);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.choice:hover {
  border-color: var(--ink);
}

.choice__input:checked + .choice {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--on-dark);
}

.choice__input:focus-visible + .choice {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.field--choices.is-invalid .choice {
  border-color: var(--error);
}

.field--consent {
  grid-template-columns: 22px minmax(0, 1fr);
  column-gap: 12px;
}

.consent__input {
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--ractero-charcoal);
}

.consent {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.6;
}

.consent a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.field--consent .field__error {
  grid-column: 2;
}

.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding-top: 8px;
}

.form__actions .btn[disabled] {
  cursor: progress;
  opacity: 0.8;
}

.form__status {
  color: var(--ink-muted);
  font: 500 13px/1.45 var(--font-ui);
}

.form__status.is-error {
  color: var(--error);
}

.form__done {
  display: grid;
  justify-items: start;
  gap: 16px;
  padding-top: 32px;
}

.form__done:focus {
  outline: none;
}

.form__done > i {
  color: var(--ractero-gold);
  font-size: 48px;
}

.form__done-title {
  font-size: var(--fs-h3);
  line-height: 1.15;
}

.form__done p {
  max-width: 50ch;
  color: var(--ink-muted);
}

.form__done strong {
  color: var(--ink);
  font-weight: 500;
}

.form__note {
  padding: 12px 14px;
  border: 1px dashed var(--line-strong);
  background: var(--ractero-ivory);
  font: 500 13px/1.5 var(--font-ui);
}

.form__note code {
  font-size: 12px;
}

.contact__details {
  display: grid;
  gap: 28px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--ractero-sand);
}

.details {
  display: grid;
  gap: 22px;
  margin: 0;
}

.details__row {
  display: grid;
  gap: 6px;
}

.details dt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-muted);
  font: 500 13px/1.2 var(--font-ui);
}

.details dt i {
  color: var(--ink);
  font-size: 18px;
}

.details dd {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

.details dd a {
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.2s ease;
}

.details dd a:hover {
  border-color: var(--ractero-gold);
}

.details address {
  font-style: normal;
}

.details__links {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid rgb(11 11 16 / 0.12);
}

@media (prefers-reduced-motion: no-preference) {
  html.js .page-hero__title span,
  html.js .page-hero__title:not(:has(span)) {
    animation: rise 0.9s var(--ease-out) both;
  }

  html.js .page-hero__title span + span {
    animation-delay: 0.1s;
  }

  html.js .page-hero__lede,
  html.js .page-hero__actions,
  html.js .page-hero__text > .btn {
    animation: rise 0.9s var(--ease-out) 0.2s both;
  }

  html.js .page-hero__media,
  html.js .page-hero__band {
    animation: unveil 1.3s var(--ease-out) 0.15s both;
  }

  .tabs__panel:not([hidden]) {
    animation: rise 0.5s var(--ease-out);
  }

  .faq__item[open] p {
    animation: rise 0.45s var(--ease-out);
  }

  .form__done:not([hidden]) {
    animation: rise 0.6s var(--ease-out);
  }
}
