/* ==========================================================================
   Threadbayt — threadbayt.com
   Design system: designmd "pinterest" (masonry pin grid, 16/32/pill radii,
   flat elevation, single saturated accent, cream chrome, 8px grid, 64px
   section rhythm) — retinted to the brand's cream + deep madder red and
   re-voiced with an editorial serif per the brand brief.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens -- */
:root {
  /* accent — Pinterest Red's role, retinted to deep madder (thread dye) */
  --madder: #a32724;
  --madder-pressed: #7e1c1a;
  --madder-deep: #6e1815;
  --on-primary: #fff8ec;

  /* ink */
  --ink: #1e1512;
  --ink-soft: #35241e;
  --body: #4a3a31;
  --mute: #6e5a4a;
  --ash: #96826f;
  --stone: #cfbca2;

  /* rules */
  --hairline: #e2d3bb;
  --hairline-soft: #efe3ce;

  /* surfaces */
  --canvas: #fffdf8;
  --surface-soft: #fcf6ea;
  --surface-card: #f6eddc;
  --secondary-bg: #eaddc6;
  --secondary-pressed: #dcc9ac;
  --surface-dark: #241a16;
  --on-dark: #fbf3e6;
  --on-dark-mute: rgba(251, 243, 230, 0.74);

  /* semantic */
  --error: #8f1410;
  --focus-outer: #3a50c9;
  --focus-inner: #fffdf8;

  /* radii — three values only, per the system */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 32px;
  --r-full: 9999px;

  /* spacing */
  --s-xxs: 4px;
  --s-xs: 6px;
  --s-sm: 8px;
  --s-md: 12px;
  --s-lg: 16px;
  --s-xl: 24px;
  --s-xxl: 32px;
  --s-section: 64px;

  /* type */
  --serif-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --serif-text: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, system-ui, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-display: clamp(2.25rem, 6.2vw, 4.375rem);
  --fs-display-lg: clamp(1.9rem, 4.4vw, 2.75rem);
  --fs-h2: clamp(1.65rem, 3vw, 2.125rem);
  --fs-h3: 1.375rem;
  --fs-h4: 1.125rem;
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;

  --maxw: 1280px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface-soft);
  color: var(--body);
  font-family: var(--serif-text);
  font-size: var(--fs-body);
  line-height: 1.7;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif-display);
  color: var(--ink);
  font-weight: 600;
  margin: 0;
  font-variation-settings: "SOFT" 0, "WONK" 0;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--ink-soft); }

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

:focus-visible {
  outline: 3px solid var(--focus-outer);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute;
  left: var(--s-lg);
  top: -80px;
  z-index: 60;
  background: var(--madder);
  color: var(--on-primary);
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--r-md);
  text-decoration: none;
  transition: top 140ms ease;
}
.skip-link:focus { top: var(--s-md); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.tz-defs {
  position: absolute;
  width: 0; height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ------------------------------------------------------------ structure -- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--s-xl);
}

.section { padding-block: var(--s-section); }
.section--canvas { background: var(--canvas); }
.section--soft { background: var(--surface-soft); }
.section--card { background: var(--surface-card); }

.section-head { max-width: 62ch; }
.section-head--wide { max-width: 78ch; }

.eyebrow {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--madder);
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  margin-bottom: var(--s-md);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 10px;
  background: var(--madder);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 10'%3E%3Cpath d='M1 5 5 1l4 4-4 4zM13 5l4-4 4 4-4 4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 10'%3E%3Cpath d='M1 5 5 1l4 4-4 4zM13 5l4-4 4 4-4 4z'/%3E%3C/svg%3E") center / contain no-repeat;
  flex: none;
}

.section-title {
  font-size: var(--fs-h2);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.lede {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--body);
  margin-top: var(--s-lg);
}

.note {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--mute);
}

/* --------------------------------------------------------------- rules --- */
.stitch-rule {
  height: 12px;
  background: var(--madder);
  opacity: 0.55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 12'%3E%3Cpath d='M0 5h3v2H0zM6 5h3v2H6zM12 5h3v2h-3zM18 5h3v2h-3zM10 1h4v2h-4zM10 9h4v2h-4z'/%3E%3C/svg%3E") 0 0 / 24px 12px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 12'%3E%3Cpath d='M0 5h3v2H0zM6 5h3v2H6zM12 5h3v2h-3zM18 5h3v2h-3zM10 1h4v2h-4zM10 9h4v2h-4z'/%3E%3C/svg%3E") 0 0 / 24px 12px repeat-x;
}

/* -------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-sm);
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: var(--r-md);
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}
.btn--primary { background: var(--madder); color: var(--on-primary); }
.btn--primary:hover { background: var(--madder-pressed); }
.btn--primary:active { background: var(--madder-deep); }

.btn--secondary { background: var(--secondary-bg); color: var(--ink); }
.btn--secondary:hover { background: var(--secondary-pressed); }

.btn--lg {
  min-height: 52px;
  padding: 14px 26px;
  font-size: 0.9375rem;
}

.btn--on-dark.btn--secondary {
  background: rgba(251, 243, 230, 0.12);
  color: var(--on-dark);
  box-shadow: inset 0 0 0 1px rgba(251, 243, 230, 0.42);
}
.btn--on-dark.btn--secondary:hover { background: rgba(251, 243, 230, 0.24); }

/* --------------------------------------------------------------- header -- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s-xl);
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif-display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  flex: none;
}
.brand__mark { width: 26px; height: 26px; color: var(--madder); flex: none; }
.brand__accent { color: var(--madder); }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s-xl);
  margin-left: auto;
}
.nav__links a {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav__links a:hover { border-bottom-color: var(--madder); }
.nav__links a[aria-current="page"] { border-bottom-color: var(--madder); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--s-md);
  flex: none;
}

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--surface-card);
  border: 0;
  border-radius: var(--r-full);
  cursor: pointer;
  color: var(--ink);
}
.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.nav__drawer { display: none; }

/* ----------------------------------------------------------------- hero -- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--hairline);
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, var(--surface-soft) 0%, var(--surface-soft) 44%, rgba(252, 246, 234, 0.86) 62%, rgba(252, 246, 234, 0.35) 88%);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 56px;
  padding-block: 88px 96px;
}
.hero__title {
  font-size: var(--fs-display);
  line-height: 1.14;
  letter-spacing: -0.025em;
  font-weight: 500;
  max-width: 13ch;
}
.hero__title em {
  font-style: italic;
  color: var(--madder);
}
.hero__lede {
  margin-top: var(--s-xl);
  font-size: 1.125rem;
  line-height: 1.75;
  max-width: 46ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-md);
  margin-top: var(--s-xxl);
}
.hero__note {
  margin-top: var(--s-xl);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-sm) var(--s-lg);
}
.hero__note li {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--mute);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-full);
  padding: 7px 14px;
}

.hero__piece {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.hero__piece svg { width: 100%; height: auto; }
.hero__caption {
  position: absolute;
  border: 1px solid var(--hairline);
  left: var(--s-lg);
  bottom: var(--s-lg);
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  background: var(--canvas);
  border-radius: var(--r-full);
  padding: 8px 14px;
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ink);
}
.hero__caption span { color: var(--mute); font-weight: 500; }

/* --------------------------------------------------------- filter chips -- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-sm);
  margin-top: var(--s-xl);
}
.chip {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink);
  background: var(--surface-card);
  border: 0;
  border-radius: var(--r-full);
  padding: 10px 18px;
  min-height: 40px;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}
.chip:hover { background: var(--secondary-bg); }
.chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--on-dark);
}

/* ------------------------------------------------------- masonry (pins) -- */
.masonry {
  margin-top: var(--s-xl);
  columns: 4;
  column-gap: var(--s-sm);
}
.tile {
  break-inside: avoid;
  margin-bottom: var(--s-sm);
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-card);
}
.tile > svg {
  width: 100%;
  height: auto;
  transition: transform 260ms ease;
}
.tile:hover > svg { transform: scale(1.03); }
.tile__pill {
  position: absolute;
  left: var(--s-md);
  bottom: var(--s-md);
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1;
  padding: 8px 12px;
  border-radius: var(--r-full);
}
.tile__tag {
  position: absolute;
  right: var(--s-md);
  top: var(--s-md);
  background: rgba(255, 253, 248, 0.92);
  color: var(--mute);
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: var(--r-full);
}
.tile[hidden] { display: none; }

.grid-foot {
  margin-top: var(--s-xl);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-lg);
  justify-content: space-between;
}

/* --------------------------------------------------------------- splits -- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.split--start { align-items: start; }

.panel {
  background: var(--canvas);
  border-radius: var(--r-md);
  padding: var(--s-xxl);
  border: 1px solid var(--hairline-soft);
}
.panel__title {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: var(--s-lg);
}

/* barriers list */
.barriers { display: grid; gap: var(--s-lg); }
.barriers li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: var(--s-md);
  align-items: start;
  padding-bottom: var(--s-lg);
  border-bottom: 1px solid var(--hairline-soft);
}
.barriers li:last-child { border-bottom: 0; padding-bottom: 0; }
.barriers svg { width: 22px; height: 22px; color: var(--madder); margin-top: 5px; }
.barriers strong {
  display: block;
  font-family: var(--serif-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
}
.barriers span { font-size: 0.9375rem; line-height: 1.6; color: var(--mute); }

/* ------------------------------------------------------------- features -- */
.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-lg);
  margin-top: var(--s-xxl);
}
.feature {
  background: var(--canvas);
  border-radius: var(--r-md);
  padding: var(--s-xl);
  border: 1px solid var(--hairline-soft);
}
.feature__icon {
  width: 34px;
  height: 34px;
  color: var(--madder);
  margin-bottom: var(--s-lg);
}
.feature h3 {
  font-size: 1.0625rem;
  line-height: 1.35;
  margin-bottom: var(--s-sm);
}
.feature p { font-size: 0.9375rem; line-height: 1.65; color: var(--mute); }

/* ---------------------------------------------------------------- steps -- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-lg);
  margin-top: var(--s-xxl);
  counter-reset: step;
}
.step {
  background: var(--surface-card);
  border-radius: var(--r-md);
  padding: var(--s-xl);
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-full);
  background: var(--madder);
  color: var(--on-primary);
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-bottom: var(--s-lg);
}
.step h3 {
  font-size: 1.0625rem;
  margin-bottom: var(--s-sm);
}
.step p { font-size: 0.9375rem; line-height: 1.65; color: var(--mute); }

/* ------------------------------------------------------------ provenance -- */
.prov-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--s-lg);
  margin-top: var(--s-xxl);
  align-items: start;
}

.maker-card {
  background: var(--canvas);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.maker-card__art { position: relative; }
.maker-card__art svg { width: 100%; height: auto; }
.maker-card__sample {
  position: absolute;
  left: var(--s-lg);
  top: var(--s-lg);
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--r-full);
}
.maker-card__body { padding: var(--s-xl); }
.maker-card__id {
  display: flex;
  align-items: center;
  gap: var(--s-md);
}
.maker-card__avatar {
  width: 52px; height: 52px;
  flex: none;
  border-radius: var(--r-full);
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.maker-card__avatar svg { width: 100%; height: 100%; }
.maker-card__id h3 { font-size: 1.125rem; line-height: 1.3; }
.maker-card__id p {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  color: var(--mute);
}
.maker-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-md);
  margin-top: var(--s-xl);
  padding-top: var(--s-lg);
  border-top: 1px solid var(--hairline-soft);
}
.maker-stats div {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  color: var(--mute);
  line-height: 1.45;
}
.maker-stats b {
  display: block;
  font-family: var(--serif-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--stone);
  line-height: 1;
  margin-bottom: 6px;
}

.record {
  background: var(--canvas);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--r-lg);
  padding: var(--s-xxl);
}
.record__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-md);
  padding-bottom: var(--s-lg);
  border-bottom: 1px solid var(--hairline);
}
.record__head h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }
.record dl { margin: 0; }
.record__row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: var(--s-lg);
  padding: var(--s-lg) 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.record__row dt {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  padding-top: 3px;
}
.record__row dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.record__foot {
  margin-top: var(--s-xl);
  display: flex;
  gap: var(--s-md);
  align-items: flex-start;
  background: var(--surface-card);
  border-radius: var(--r-md);
  padding: var(--s-lg);
}
.record__foot svg { width: 20px; height: 20px; color: var(--madder); flex: none; margin-top: 3px; }

/* -------------------------------------------------------------- pricing -- */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-lg);
  margin-top: var(--s-xxl);
  align-items: start;
}
.price-card {
  background: var(--canvas);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--r-md);
  padding: var(--s-xxl);
  height: 100%;
}
.price-card--lead {
  background: var(--madder);
  border-color: var(--madder);
  color: var(--on-primary);
}
.price-card__label {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}
.price-card--lead .price-card__label { color: rgba(255, 248, 236, 0.8); }
.price-card__amount {
  font-family: var(--serif-display);
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: var(--s-md) 0 var(--s-sm);
}
.price-card--lead .price-card__amount { color: var(--on-primary); }
.price-card__amount small {
  font-family: var(--sans);
  margin-left: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--mute);
}
.price-card--lead .price-card__amount small { color: rgba(255, 248, 236, 0.8); }
.price-card h3 {
  font-size: 1.0625rem;
  margin-bottom: var(--s-sm);
}
.price-card--lead h3 { color: var(--on-primary); }
.price-card__desc { font-size: 0.9375rem; line-height: 1.65; color: var(--mute); }
.price-card--lead .price-card__desc { color: rgba(255, 248, 236, 0.86); }
.price-list { margin-top: var(--s-lg); display: grid; gap: var(--s-sm); }
.price-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--mute);
}
.price-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 9px; height: 9px;
  background: var(--madder);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.price-card--lead .price-list li { color: rgba(255, 248, 236, 0.9); }
.price-card--lead .price-list li::before { background: var(--on-primary); }

.pricing-note {
  margin-top: var(--s-xl);
  max-width: 74ch;
}

/* --------------------------------------------------------- transparency -- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-lg);
  margin-top: var(--s-xxl);
}
.stat {
  background: var(--canvas);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--r-md);
  padding: var(--s-xl);
}
.stat__mark { width: 28px; height: 28px; color: var(--madder); margin-bottom: var(--s-lg); }
.stat h3 {
  font-size: 1.0625rem;
  line-height: 1.4;
  margin-bottom: var(--s-sm);
}
.stat__desc { font-size: 0.9375rem; line-height: 1.6; color: var(--mute); }
.stat__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--s-lg);
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--madder);
  background: var(--surface-card);
  border-radius: var(--r-full);
  padding: 7px 12px;
}

/* ------------------------------------------------------------- CTA band -- */
.cta-band {
  position: relative;
  background: var(--surface-dark);
  color: var(--on-dark);
  overflow: hidden;
}
.cta-band__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0.13;
}
.cta-band__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(36, 26, 22, 0.94) 0%, rgba(36, 26, 22, 0.72) 55%, rgba(36, 26, 22, 0.45) 100%);
}
.cta-band__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 48px;
  align-items: center;
  padding-block: 72px;
}
.cta-band h2 {
  color: var(--on-dark);
  font-size: var(--fs-display-lg);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 500;
}
.cta-band p {
  margin-top: var(--s-lg);
  color: var(--on-dark-mute);
  font-size: 1.0625rem;
  max-width: 52ch;
}
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-md);
  justify-content: flex-end;
}

/* --------------------------------------------------------------- footer -- */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding-block: 48px var(--s-xxl);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: var(--s-xxl);
}
.footer-brand p {
  margin-top: var(--s-md);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--mute);
  max-width: 34ch;
}
.footer-col h2 {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--s-md);
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  color: var(--mute);
  text-decoration: none;
}
.footer-col a:hover { color: var(--madder); text-decoration: underline; }
.footer-bottom {
  margin-top: var(--s-xxl);
  padding-top: var(--s-lg);
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-md) var(--s-xl);
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  color: var(--mute);
}

/* ------------------------------------------------------------ contact -- */
.page-head {
  position: relative;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}
.page-head__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0.5;
}
.page-head__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--surface-soft) 0%, var(--surface-soft) 52%, rgba(252, 246, 234, 0.6) 100%);
}
.page-head__inner {
  position: relative;
  padding-block: 72px 64px;
  max-width: 62ch;
}
.page-head h1 {
  font-size: var(--fs-display-lg);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 500;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 48px;
  align-items: start;
}

.form-card {
  background: var(--canvas);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--r-lg);
  padding: var(--s-xxl);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-xl);
}
.field { display: block; }
.field--full { grid-column: 1 / -1; }
.field > label {
  display: block;
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--s-sm);
}
.field .hint {
  display: block;
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--mute);
  margin-top: 2px;
}
.input,
.select,
.textarea {
  width: 100%;
  background: var(--canvas);
  color: var(--ink);
  border: 1px solid var(--ash);
  border-radius: var(--r-md);
  padding: 12px 15px;
  font-family: var(--serif-text);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.input { min-height: 48px; }
.select {
  min-height: 48px;
  font-family: var(--sans);
  font-size: 0.9375rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%236e5a4a' d='M1 1h2v2H1zM3 3h2v2H3zM5 5h2v2H5zM7 3h2v2H7zM9 1h2v2H9z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
  padding-right: 42px;
}
.textarea { min-height: 148px; resize: vertical; }
.input::placeholder,
.textarea::placeholder { color: var(--mute); opacity: 1; }

.input:focus,
.select:focus,
.textarea:focus {
  outline: 3px solid var(--focus-outer);
  outline-offset: 2px;
  border-color: var(--ink);
}
.field[data-invalid="true"] .input,
.field[data-invalid="true"] .select,
.field[data-invalid="true"] .textarea {
  border-color: var(--error);
  box-shadow: inset 0 0 0 1px var(--error);
}
.field__error {
  display: none;
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--error);
  margin-top: var(--s-sm);
}
.field[data-invalid="true"] .field__error { display: block; }

.form-foot {
  margin-top: var(--s-xl);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-lg);
  justify-content: space-between;
}
.form-alert {
  display: none;
  margin-bottom: var(--s-xl);
  border-radius: var(--r-md);
  padding: var(--s-lg);
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  background: #fbe9e6;
  color: var(--error);
  border: 1px solid #e8c3bd;
}
.form-alert[data-visible="true"] { display: block; }

.form-success {
  display: none;
  text-align: left;
}
.form-success[data-visible="true"] { display: block; }
.form-success svg { width: 46px; height: 46px; color: var(--madder); margin-bottom: var(--s-lg); }
.form-success h2 { font-size: var(--fs-h3); margin-bottom: var(--s-md); }
.form-success p { color: var(--mute); max-width: 46ch; }
.form-success .btn { margin-top: var(--s-xl); }

.contact-aside { display: grid; gap: var(--s-lg); }
.aside-card {
  background: var(--surface-card);
  border-radius: var(--r-md);
  padding: var(--s-xl);
}
.aside-card h2 {
  font-size: 1.0625rem;
  margin-bottom: var(--s-md);
}
.aside-card p { font-size: 0.9375rem; line-height: 1.65; color: var(--mute); }
.aside-card a { color: var(--madder); font-weight: 600; }
.contact-lines { display: grid; gap: var(--s-md); margin-top: var(--s-md); }
.contact-lines li {
  font-size: 0.9375rem;
  line-height: 1.5;
}
.contact-lines strong {
  display: block;
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}
.next-steps { counter-reset: ns; display: grid; gap: var(--s-lg); margin-top: var(--s-lg); }
.next-steps li {
  counter-increment: ns;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: var(--s-md);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--mute);
}
.next-steps li::before {
  content: counter(ns);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: var(--r-full);
  background: var(--canvas);
  color: var(--madder);
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.aside-art {
  border-radius: var(--r-md);
  overflow: hidden;
}
.aside-art svg { width: 100%; height: auto; }

/* ---------------------------------------------------------- responsive -- */
@media (max-width: 1180px) {
  .masonry { columns: 3; }
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  :root { --s-section: 48px; }

  .nav__links,
  .nav__actions { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__drawer {
    display: none;
    border-top: 1px solid var(--hairline);
    background: var(--canvas);
    padding: var(--s-lg) 0 var(--s-xl);
  }
  .nav__drawer[data-open="true"] { display: block; }
  .nav__drawer ul { display: grid; gap: var(--s-xs); }
  .nav__drawer a {
    display: block;
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    padding: 12px var(--s-md);
    border-radius: var(--r-md);
  }
  .nav__drawer a:hover { background: var(--surface-card); }
  .nav__drawer .btn { width: 100%; margin-top: var(--s-sm); }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-xxl);
    padding-block: 56px 64px;
  }
  .hero__scrim {
    background: linear-gradient(180deg, var(--surface-soft) 0%, rgba(252, 246, 234, 0.92) 62%, rgba(252, 246, 234, 0.7) 100%);
  }
  .hero__title { max-width: 18ch; }
  .hero__piece { max-width: 460px; }

  .split,
  .prov-layout,
  .contact-layout,
  .cta-band__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-xxl);
  }
  .cta-band__actions { justify-content: flex-start; }

  .pricing { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-xl); }
  .record__row { grid-template-columns: minmax(0, 1fr); gap: var(--s-xxs); }
}

@media (max-width: 720px) {
  .container { padding-inline: var(--s-lg); }
  .masonry { columns: 2; column-gap: var(--s-xs); }
  .tile { margin-bottom: var(--s-xs); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .panel, .price-card, .form-card, .record { padding: var(--s-xl); }
  .maker-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-sm); }
}

@media (max-width: 480px) {
  .masonry { columns: 1; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .brand { font-size: 1.25rem; }
  .hero__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .tile:hover > svg { transform: none; }
}

@media print {
  .site-header, .cta-band, .nav__drawer { display: none; }
}
