/* =========================================================
   The Fish Boots — Design System
   Western heritage × modern luxury editorial
   ========================================================= */

:root {
  --obsidian: #171717;
  --charcoal: #252525;
  --leather: #70452e;
  --leather-deep: #4f3020;
  --gold: #d4ac70;
  --gold-soft: rgba(212, 172, 112, .18);
  --gold-line: rgba(212, 172, 112, .45);
  --ivory: #f8f5ef;
  --ivory-2: #f1ebe1;
  --taupe: #b8a99a;
  --ink: #2a2522;
  --ink-soft: #5b524b;

  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Hoefler Text", Georgia, "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --container: 1200px;
  --prose: 70ch;
  --radius: 2px;
  --shadow-1: 0 1px 2px rgba(23, 23, 23, .06), 0 8px 24px rgba(23, 23, 23, .06);
  --shadow-2: 0 2px 4px rgba(23, 23, 23, .08), 0 22px 48px rgba(23, 23, 23, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;

  /* Signature patterns */
  --scales: radial-gradient(circle at 50% 0, transparent 56%, var(--gold-soft) 57%, var(--gold-soft) 61%, transparent 62%) 0 0 / 40px 24px,
            radial-gradient(circle at 50% 0, transparent 56%, var(--gold-soft) 57%, var(--gold-soft) 61%, transparent 62%) 20px 12px / 40px 24px;
  --stitch: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 18px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--obsidian);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 4.4rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.65rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
p { margin: 0 0 1.1em; }
a { color: var(--leather); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--leather-deep); }
ul, ol { padding-left: 1.2em; margin: 0 0 1.2em; }
li { margin-bottom: .45em; }
strong { font-weight: 600; color: var(--obsidian); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 200;
  background: var(--gold); color: var(--obsidian); padding: .6rem 1rem; font-weight: 600;
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 1rem; }

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

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.prose { max-width: var(--prose); }
.prose > h3 { margin-top: 1.6em; }
.center { text-align: center; margin-inline: auto; }

/* ---------- Eyebrow & ornaments ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--font-sans);
  font-size: .76rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--leather); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.on-dark .eyebrow, .eyebrow--light, .hero .eyebrow, .page-hero .eyebrow,
.section--dark .eyebrow, .section--leather .eyebrow, .cta-band .eyebrow { color: var(--gold); }

.ornament {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 0 auto; max-width: 340px; color: var(--gold);
}
.ornament::before, .ornament::after {
  content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold));
  transform-origin: right; transition: transform 1.1s var(--ease);
}
.ornament::after { background: linear-gradient(270deg, transparent, var(--gold)); transform-origin: left; }
.ornament span {
  width: 9px; height: 9px; border: 1px solid var(--gold); transform: rotate(45deg); flex: none;
  box-shadow: 0 0 0 4px transparent, 0 0 0 5px var(--gold-line);
}
.js .ornament:not(.is-visible)::before,
.js .ornament:not(.is-visible)::after { transform: scaleX(0); }

.stitch-rule { height: 2px; background: var(--stitch); opacity: .55; border: 0; margin: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(23, 23, 23, .96);
  border-bottom: 1px solid rgba(212, 172, 112, .18);
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
@supports (backdrop-filter: blur(10px)) {
  .site-header { background: rgba(23, 23, 23, .88); backdrop-filter: saturate(140%) blur(12px); }
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, .28); background: rgba(23, 23, 23, .97); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: var(--header-h); transition: min-height .35s var(--ease);
}
.is-scrolled .header-inner { min-height: 64px; }

.brand {
  display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ivory);
  flex: none;
}
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-name {
  font-family: var(--font-serif); font-size: 1.28rem; letter-spacing: .04em; line-height: 1;
}
.brand-name small {
  display: block; font-family: var(--font-sans); font-size: .58rem; letter-spacing: .32em;
  text-transform: uppercase; color: var(--gold); margin-top: .35rem;
}
.brand:hover { color: #fff; }

.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--gold-line); color: var(--ivory);
  width: 46px; height: 46px; cursor: pointer; border-radius: var(--radius); position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 12px; width: 20px; height: 1.5px; background: currentColor; content: "";
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span { top: 22px; }
.nav-toggle span::before { left: 0; top: -6px; }
.nav-toggle span::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.primary-nav { display: flex; align-items: center; gap: 1.6rem; }
.nav-list { display: flex; align-items: center; gap: 1.35rem; list-style: none; margin: 0; padding: 0; }
.nav-list li { margin: 0; }
.nav-list a {
  position: relative; display: inline-block; padding: .45rem 0;
  color: rgba(248, 245, 239, .82); text-decoration: none; font-size: .86rem; letter-spacing: .04em;
  transition: color .25s;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: #fff; }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--gold); --btn-fg: var(--obsidian);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.6rem;
  font-family: var(--font-sans); font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid var(--gold); border-radius: var(--radius); cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease), transform .2s var(--ease), box-shadow .35s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--obsidian);
  transform: translateY(101%); transition: transform .4s var(--ease);
}
.btn:hover { color: var(--gold); box-shadow: 0 10px 26px rgba(23, 23, 23, .22); }
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ivory); border-color: var(--gold-line); }
.btn--ghost::before { background: var(--gold); }
.btn--ghost:hover { color: var(--obsidian); border-color: var(--gold); }
.btn--dark { --btn-bg: var(--obsidian); --btn-fg: var(--ivory); border-color: var(--obsidian); }
.btn--dark::before { background: var(--leather); }
.btn--dark:hover { color: #fff; border-color: var(--leather); }
.btn--sm { min-height: 40px; padding: .55rem 1.1rem; font-size: .74rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

.text-link {
  display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .84rem;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--leather);
  border-bottom: 1px solid var(--gold-line); padding-bottom: .2rem; transition: gap .3s var(--ease), border-color .3s;
}
.text-link::after { content: "→"; font-size: 1rem; }
.text-link:hover { gap: .75rem; border-color: var(--leather); }
.on-dark .text-link { color: var(--gold); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--ivory);
  background:
    radial-gradient(ellipse 70% 60% at 85% 30%, rgba(112, 69, 46, .55), transparent 70%),
    radial-gradient(ellipse 60% 60% at 0% 100%, rgba(112, 69, 46, .35), transparent 70%),
    linear-gradient(160deg, #1d1b1a 0%, var(--obsidian) 55%, #120f0d 100%);
  padding: clamp(4.5rem, 10vw, 8.5rem) 0 clamp(4rem, 8vw, 7rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0; background: var(--scales); opacity: .55;
  -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 85%);
          mask-image: linear-gradient(100deg, transparent 30%, #000 85%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--stitch); opacity: .5;
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.hero h1 { color: var(--ivory); margin-bottom: .45em; max-width: 14ch; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(248, 245, 239, .82); max-width: 52ch; margin-bottom: 2rem; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-top: 2.6rem; padding-top: 1.6rem;
  border-top: 1px solid rgba(212, 172, 112, .2); list-style: none; padding-left: 0;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--taupe);
}
.hero-meta li { margin: 0; display: flex; align-items: center; gap: .6rem; }
.hero-meta li::before { content: ""; width: 6px; height: 6px; border: 1px solid var(--gold); transform: rotate(45deg); }

.emblem {
  position: relative; aspect-ratio: 4 / 5; width: 100%; max-width: 420px; justify-self: end;
  display: grid; place-items: center;
}
.emblem::before {
  content: ""; position: absolute; inset: 0;
  border: 1px solid var(--gold-line);
  background:
    linear-gradient(var(--obsidian), var(--obsidian)) padding-box,
    linear-gradient(160deg, rgba(212, 172, 112, .7), rgba(112, 69, 46, .3) 50%, rgba(212, 172, 112, .6)) border-box;
  border: 1px solid transparent;
  clip-path: polygon(50% 0, 100% 9%, 100% 91%, 50% 100%, 0 91%, 0 9%);
}
.emblem::after {
  content: ""; position: absolute; inset: 14px; border: 1px dashed rgba(212, 172, 112, .35);
  clip-path: polygon(50% 0, 100% 9%, 100% 91%, 50% 100%, 0 91%, 0 9%);
}
.emblem svg { position: relative; z-index: 1; width: 74%; height: auto; }
.emblem-caption {
  position: absolute; z-index: 2; bottom: 12%; left: 50%; transform: translateX(-50%);
  font-size: .62rem; letter-spacing: .34em; text-transform: uppercase; color: var(--gold); white-space: nowrap;
}

/* ---------- Page hero (inner) ---------- */
.page-hero {
  position: relative; overflow: hidden; color: var(--ivory);
  background:
    radial-gradient(ellipse 55% 80% at 100% 0%, rgba(112, 69, 46, .5), transparent 70%),
    linear-gradient(180deg, #1b1918, var(--obsidian));
  padding: clamp(2.2rem, 5vw, 3.4rem) 0 clamp(3.2rem, 7vw, 5.2rem);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; background: var(--scales); opacity: .35;
  -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000);
          mask-image: linear-gradient(90deg, transparent 40%, #000);
}
.page-hero--pattern-diamond::before {
  background:
    linear-gradient(45deg, transparent 47%, var(--gold-soft) 48%, var(--gold-soft) 52%, transparent 53%) 0 0 / 38px 38px,
    linear-gradient(-45deg, transparent 47%, var(--gold-soft) 48%, var(--gold-soft) 52%, transparent 53%) 0 0 / 38px 38px;
}
.page-hero--pattern-stitch::before {
  background: repeating-linear-gradient(0deg, transparent 0 22px, rgba(212, 172, 112, .14) 22px 23px),
              repeating-linear-gradient(90deg, transparent 0 22px, rgba(212, 172, 112, .08) 22px 23px);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--ivory); max-width: 20ch; font-size: clamp(2.1rem, 4.6vw, 3.7rem); }
.page-hero .lead { color: rgba(248, 245, 239, .8); font-size: clamp(1.03rem, 1.5vw, 1.18rem); max-width: 60ch; margin: 0; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--stitch); opacity: .45; }

.breadcrumb { margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; margin: 0; padding: 0; font-size: .78rem; letter-spacing: .08em; }
.breadcrumb li { margin: 0; color: var(--taupe); display: flex; align-items: center; gap: .3rem; }
.breadcrumb li + li::before { content: "/"; color: rgba(212, 172, 112, .55); margin-right: .3rem; }
.breadcrumb a { color: rgba(248, 245, 239, .78); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb [aria-current] { color: var(--gold); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.8rem, 8vw, 6.5rem) 0; position: relative; }
.section--tight { padding: clamp(2.8rem, 6vw, 4.5rem) 0; }
.section--ivory2 { background: var(--ivory-2); }
.section--dark { background: var(--charcoal); color: rgba(248, 245, 239, .84); }
.section--dark h2, .section--dark h3 { color: var(--ivory); }
.section--dark a:not(.btn) { color: var(--gold); }
.section--dark strong { color: var(--ivory); }
.section--leather {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(212, 172, 112, .18), transparent 60%),
    linear-gradient(160deg, var(--leather), var(--leather-deep));
  color: rgba(248, 245, 239, .88);
}
.section--leather h2, .section--leather h3 { color: var(--ivory); }
.section--leather a:not(.btn) { color: var(--gold); }
.section--scales::before {
  content: ""; position: absolute; inset: 0; background: var(--scales); opacity: .4; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at 100% 50%, #000, transparent 65%);
          mask-image: radial-gradient(ellipse at 100% 50%, #000, transparent 65%);
}
.section > .container { position: relative; }
.lazy-section { contain: layout paint; }

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head.center { text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }
.section--dark .section-head p, .section--leather .section-head p { color: rgba(248, 245, 239, .76); }

/* Editorial split */
.split {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start;
}
.split--rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split-aside { position: sticky; top: calc(var(--header-h) + 2rem); }
.split-aside h2 { margin-bottom: .4em; }
.split-aside .big-num {
  font-family: var(--font-serif); font-size: clamp(4rem, 9vw, 7.5rem); line-height: .9; color: transparent;
  -webkit-text-stroke: 1px var(--gold); display: block; margin-bottom: .6rem; letter-spacing: -.03em;
}
.split-body > p:first-child::first-letter {
  font-family: var(--font-serif); float: left; font-size: 3.6em; line-height: .85; padding: .08em .12em 0 0; color: var(--leather);
}
.split-body.no-drop > p:first-child::first-letter { all: unset; }
.section--dark .split-body > p:first-child::first-letter { color: var(--gold); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: clamp(1.1rem, 2.2vw, 1.8rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative; background: #fff; padding: clamp(1.6rem, 3vw, 2.2rem);
  border: 1px solid rgba(112, 69, 46, .14); border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.card::after {
  content: ""; position: absolute; inset: -1px; border: 1px solid var(--gold); border-radius: inherit;
  opacity: 0; transition: opacity .45s var(--ease); pointer-events: none;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.card:hover::after { opacity: 1; }
.card h3 { margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }
.card .num {
  font-family: var(--font-serif); font-size: 2.6rem; line-height: 1; color: var(--gold); display: block; margin-bottom: 1rem;
}
.card .icon { width: 40px; height: 40px; color: var(--leather); margin-bottom: 1.1rem; }
.section--dark .card { background: rgba(255, 255, 255, .03); border-color: rgba(212, 172, 112, .2); box-shadow: none; color: rgba(248, 245, 239, .8); }
.section--dark .card .icon { color: var(--gold); }

/* Collection cards */
.collection-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 440px; padding: 2rem; overflow: hidden; isolation: isolate;
  text-decoration: none; color: var(--ivory); border-radius: var(--radius);
  background: var(--obsidian);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.collection-card::before {
  content: ""; position: absolute; inset: 0; z-index: -2; transition: transform 1.2s var(--ease), opacity .6s;
}
.collection-card::after {
  content: ""; position: absolute; inset: 12px; z-index: -1; border: 1px solid rgba(212, 172, 112, .28);
  transition: inset .5s var(--ease), border-color .5s var(--ease);
}
.collection-card--men::before {
  background:
    linear-gradient(180deg, rgba(23, 23, 23, .1) 20%, rgba(23, 23, 23, .92) 88%),
    linear-gradient(45deg, transparent 46%, rgba(212, 172, 112, .2) 47%, rgba(212, 172, 112, .2) 53%, transparent 54%) 0 0 / 44px 44px,
    linear-gradient(-45deg, transparent 46%, rgba(212, 172, 112, .2) 47%, rgba(212, 172, 112, .2) 53%, transparent 54%) 0 0 / 44px 44px,
    linear-gradient(150deg, #3a2a20, #171717);
}
.collection-card--women::before {
  background:
    linear-gradient(180deg, rgba(23, 23, 23, .05) 20%, rgba(23, 23, 23, .9) 88%),
    repeating-radial-gradient(circle at 70% 25%, transparent 0 18px, rgba(212, 172, 112, .2) 18px 19px),
    linear-gradient(160deg, #6a4434, #2a1d17);
}
.collection-card--pirarucu::before {
  background:
    linear-gradient(180deg, rgba(23, 23, 23, .05) 20%, rgba(23, 23, 23, .92) 88%),
    radial-gradient(ellipse 60% 70% at 50% 0, transparent 54%, rgba(212, 172, 112, .32) 55%, rgba(212, 172, 112, .32) 58%, transparent 59%) 0 0 / 70px 46px,
    radial-gradient(ellipse 60% 70% at 50% 0, transparent 54%, rgba(212, 172, 112, .32) 55%, rgba(212, 172, 112, .32) 58%, transparent 59%) 35px 23px / 70px 46px,
    linear-gradient(170deg, #70452e, #241812);
}
.collection-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(23, 23, 23, .3); }
.collection-card:hover::before { transform: scale(1.06); }
.collection-card:hover::after { inset: 18px; border-color: var(--gold); }
.collection-card .tag {
  position: absolute; top: 2rem; left: 2rem; font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
}
.collection-card .index {
  position: absolute; top: 1.4rem; right: 2rem; font-family: var(--font-serif); font-size: 3.4rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(212, 172, 112, .6);
}
.collection-card h3 { color: var(--ivory); font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: .4em; }
.collection-card p { color: rgba(248, 245, 239, .78); font-size: .97rem; margin-bottom: 1.2rem; }
.collection-card .go {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .76rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); transition: gap .35s var(--ease);
}
.collection-card:hover .go { gap: .9rem; }

/* Feature list (numbered) */
.feature-list { list-style: none; padding: 0; margin: 0; counter-reset: feat; display: grid; gap: 0; }
.feature-list li {
  counter-increment: feat; display: grid; grid-template-columns: 4rem 1fr; gap: 1.2rem;
  padding: 1.5rem 0; border-top: 1px solid rgba(112, 69, 46, .16); margin: 0;
}
.feature-list li:last-child { border-bottom: 1px solid rgba(112, 69, 46, .16); }
.feature-list li::before {
  content: counter(feat, decimal-leading-zero); font-family: var(--font-serif); font-size: 1.6rem; color: var(--gold); line-height: 1.1;
}
.feature-list h3 { font-size: 1.2rem; margin-bottom: .3em; }
.feature-list p { margin: 0; color: var(--ink-soft); }
.section--dark .feature-list li { border-color: rgba(212, 172, 112, .2); }
.section--dark .feature-list p { color: rgba(248, 245, 239, .72); }

/* Spec / definition grid */
.spec {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px;
  background: rgba(112, 69, 46, .18); border: 1px solid rgba(112, 69, 46, .18); margin: 2rem 0;
}
.spec > div { background: var(--ivory); padding: 1.4rem 1.5rem; }
.section--ivory2 .spec > div { background: var(--ivory-2); }
.spec dt { font-family: var(--font-serif); font-size: 1.12rem; color: var(--obsidian); margin-bottom: .35rem; }
.spec dd { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* Callout */
.callout {
  position: relative; padding: 1.6rem 1.8rem 1.6rem 2.2rem; margin: 2rem 0;
  background: #fff; border: 1px solid rgba(112, 69, 46, .16);
}
.callout::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--gold), var(--leather)); }
.callout h3 { font-size: 1.12rem; margin-bottom: .4em; }
.callout p:last-child { margin-bottom: 0; }
.section--dark .callout { background: rgba(255, 255, 255, .04); border-color: rgba(212, 172, 112, .22); }

.pull-quote {
  font-family: var(--font-serif); font-style: italic; font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.35;
  color: var(--obsidian); max-width: 34ch; margin: 0 0 1.4rem; padding-left: 1.4rem; border-left: 1px solid var(--gold);
}
.section--dark .pull-quote, .section--leather .pull-quote { color: var(--ivory); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.8rem 0; border: 1px solid rgba(112, 69, 46, .18); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 520px; }
caption { text-align: left; padding: 1rem 1.2rem; font-family: var(--font-serif); font-size: 1.1rem; color: var(--obsidian); border-bottom: 1px solid rgba(112, 69, 46, .18); }
th, td { text-align: left; padding: .95rem 1.2rem; border-bottom: 1px solid rgba(112, 69, 46, .12); vertical-align: top; }
th { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--leather); font-weight: 600; background: var(--ivory); }
tbody tr:last-child td { border-bottom: 0; }
tbody th { text-transform: none; letter-spacing: 0; font-size: .96rem; color: var(--obsidian); font-family: var(--font-serif); background: transparent; }

.status {
  display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: .25rem .6rem; border: 1px dashed var(--leather); color: var(--leather); white-space: nowrap;
}

/* ---------- Accordion ---------- */
.accordion { border-top: 1px solid rgba(112, 69, 46, .2); }
.accordion details { border-bottom: 1px solid rgba(112, 69, 46, .2); }
.accordion summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.35rem 0; font-family: var(--font-serif); font-size: clamp(1.06rem, 1.6vw, 1.26rem); color: var(--obsidian);
  transition: color .25s;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border: 1px solid var(--gold-line); border-radius: 50%;
  background:
    linear-gradient(var(--leather), var(--leather)) center / 10px 1.5px no-repeat,
    linear-gradient(var(--leather), var(--leather)) center / 1.5px 10px no-repeat;
  transition: transform .35s var(--ease), background-color .3s, border-color .3s;
}
.accordion details[open] > summary::after {
  transform: rotate(45deg); border-color: var(--gold); background-color: var(--gold-soft);
}
.accordion summary:hover { color: var(--leather); }
.accordion .answer { padding: 0 3rem 1.4rem 0; color: var(--ink-soft); overflow: hidden; }
.accordion .answer p:last-child { margin-bottom: 0; }
.accordion details[open] .answer { animation: acc-in .45s var(--ease); }
@keyframes acc-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.section--dark .accordion, .section--dark .accordion details { border-color: rgba(212, 172, 112, .22); }
.section--dark .accordion summary { color: var(--ivory); }
.section--dark .accordion .answer { color: rgba(248, 245, 239, .74); }
.section--dark .accordion summary::after {
  background:
    linear-gradient(var(--gold), var(--gold)) center / 10px 1.5px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center / 1.5px 10px no-repeat;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; text-align: center; color: var(--ivory);
  background:
    radial-gradient(ellipse 50% 90% at 50% 120%, rgba(212, 172, 112, .25), transparent 70%),
    linear-gradient(180deg, var(--obsidian), #0f0d0c);
  padding: clamp(4rem, 9vw, 7rem) 0;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: var(--scales); opacity: .3; -webkit-mask-image: radial-gradient(ellipse at 50% 50%, transparent 30%, #000 80%); mask-image: radial-gradient(ellipse at 50% 50%, transparent 30%, #000 80%); }
.cta-band .container { position: relative; }
.cta-band h2 { color: var(--ivory); max-width: 22ch; margin-inline: auto; }
.cta-band p { color: rgba(248, 245, 239, .76); max-width: 56ch; margin: 0 auto 2.2rem; }
.cta-band .btn-row { justify-content: center; }
.cta-band .ornament { margin-bottom: 2rem; }

/* Related links */
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.related a {
  display: block; padding: 1.6rem; background: #fff; text-decoration: none; color: var(--ink);
  border: 1px solid rgba(112, 69, 46, .14); position: relative; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.related a:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--gold); color: var(--ink); }
.related .k { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--leather); display: block; margin-bottom: .5rem; }
.related .t { font-family: var(--font-serif); font-size: 1.25rem; color: var(--obsidian); display: block; margin-bottom: .4rem; }
.related .d { font-size: .93rem; color: var(--ink-soft); display: block; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--obsidian); margin-bottom: .5rem; }
.field .req { color: var(--leather); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid rgba(112, 69, 46, .3); border-radius: var(--radius); padding: .85rem 1rem; min-height: 50px;
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 172, 112, .28); }
.field .hint { font-size: .85rem; color: var(--ink-soft); margin-top: .4rem; display: block; }
.field .error { display: none; font-size: .85rem; color: #9a2f1d; margin-top: .4rem; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #9a2f1d; }
.field.is-invalid .error { display: block; }
.form-status { min-height: 1.5em; font-size: .96rem; padding: 0; }
.form-status:not(:empty) { padding: 1rem 1.2rem; border-left: 3px solid var(--gold); background: #fff; }
.form-panel { background: #fff; padding: clamp(1.6rem, 4vw, 2.6rem); border: 1px solid rgba(112, 69, 46, .16); box-shadow: var(--shadow-1); }

/* ---------- Footer ---------- */
.site-footer { background: var(--obsidian); color: rgba(248, 245, 239, .7); padding: clamp(3.5rem, 7vw, 5rem) 0 1.6rem; position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--stitch); opacity: .45; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.4rem; }
.footer-brand p { font-size: .95rem; max-width: 38ch; margin-top: 1.2rem; }
.site-footer h2 { font-family: var(--font-sans); font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: rgba(248, 245, 239, .78); text-decoration: none; font-size: .94rem; transition: color .25s; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3.2rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(212, 172, 112, .16); font-size: .84rem; color: rgba(248, 245, 239, .5);
}

/* ---------- Reveal animations (progressive) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .08s; }
.js .reveal-d2 { transition-delay: .16s; }
.js .reveal-d3 { transition-delay: .24s; }
.js .reveal-heading { opacity: 0; transform: translateY(14px); letter-spacing: .01em; transition: opacity 1s var(--ease), transform 1s var(--ease), letter-spacing 1.2s var(--ease); }
.js .reveal-heading.is-visible { opacity: 1; transform: none; letter-spacing: -.01em; }

.hero-anim > * { animation: rise .9s var(--ease) both; }
.hero-anim > *:nth-child(2) { animation-delay: .08s; }
.hero-anim > *:nth-child(3) { animation-delay: .16s; }
.hero-anim > *:nth-child(4) { animation-delay: .24s; }
.hero-anim > *:nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.emblem { animation: fade-in 1.4s .2s var(--ease) both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.reveal-all .reveal, .reveal-all .reveal-heading { opacity: 1 !important; transform: none !important; clip-path: none !important; }
.reveal-all .ornament::before, .reveal-all .ornament::after { transform: none !important; }

/* 404 */
.notfound { min-height: 62vh; display: grid; place-items: center; text-align: center; }
.notfound .code { font-family: var(--font-serif); font-size: clamp(6rem, 18vw, 11rem); line-height: .9; color: transparent; -webkit-text-stroke: 1px var(--gold); display: block; margin-bottom: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-list { gap: 1rem; }
  .nav-list a { font-size: .8rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: inline-block; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--obsidian); border-bottom: 1px solid rgba(212, 172, 112, .2);
    padding: .6rem 1.25rem 1.6rem; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .js .primary-nav { visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s; }
  .js .primary-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .no-js .nav-toggle { display: none; }
  .no-js .primary-nav { position: static; }
  .no-js .header-inner { flex-wrap: wrap; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { display: block; padding: .9rem 0; font-size: 1rem; border-bottom: 1px solid rgba(212, 172, 112, .12); }
  .nav-list a::after { display: none; }
  .primary-nav .btn { margin-top: 1.2rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .emblem { max-width: 300px; justify-self: center; order: -1; }
  .split, .split--rev { grid-template-columns: 1fr; }
  .split-aside { position: static; }
  .grid-3, .grid-4, .related { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .grid-2, .grid-3, .grid-4, .related, .form-row { grid-template-columns: 1fr; }
  .collection-card { min-height: 360px; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .feature-list li { grid-template-columns: 2.8rem 1fr; gap: .8rem; }
  .accordion .answer { padding-right: 0; }
  .emblem { max-width: 230px; }
  .hero-meta { gap: .6rem 1.4rem; }
  .btn-row .btn { flex: 1 1 100%; }
}

@media (hover: none) {
  .card:hover, .collection-card:hover, .related a:hover { transform: none; }
  .card:active, .collection-card:active, .related a:active { transform: scale(.99); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal-heading { opacity: 1; transform: none; clip-path: none; }
  .js .ornament::before, .js .ornament::after { transform: none !important; }
}

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none; }
  body { background: #fff; }
  .page-hero, .hero { background: none; color: #000; }
  .page-hero h1, .hero h1 { color: #000; }
}
