/* =========================================================================
   Craft of Medina — shared stylesheet
   Navy #0F2C4C · Sand #F0DFC4 · Newsreader (display) + Jost (body)
   ========================================================================= */

/* --- 1. Tokens ---------------------------------------------------------- */
:root {
  --navy:        #0f2c4c;
  --navy-deep:   #0a1e34;
  --navy-soft:   #274a6d;
  --sand:        #f0dfc4;
  --sand-deep:   #e4cda6;
  --paper:       #fcf9f4;
  --paper-warm:  #f6efe3;
  --brass:       #a8854f;
  --brass-light: #ddc094;

  --ink:         var(--navy);
  --ink-soft:    #4d6076;
  --ink-faint:   #7c8b9c;
  --rule:        rgba(15, 44, 76, .16);
  --rule-soft:   rgba(15, 44, 76, .09);
  --rule-light:  rgba(240, 223, 196, .26);

  --font-display: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-sans:    "Jost", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;

  --step--1: clamp(.78rem, .76rem + .12vw, .84rem);
  --step-0:  clamp(1rem, .97rem + .16vw, 1.09rem);
  --step-1:  clamp(1.14rem, 1.08rem + .3vw, 1.34rem);
  --step-2:  clamp(1.45rem, 1.3rem + .72vw, 2rem);
  --step-3:  clamp(1.85rem, 1.55rem + 1.5vw, 2.9rem);
  --step-4:  clamp(2.3rem, 1.72rem + 2.9vw, 4.4rem);

  --gap:      clamp(1.1rem, .8rem + 1.1vw, 1.9rem);
  --section:  clamp(4rem, 2.5rem + 6vw, 8rem);
  --edge:     clamp(1.15rem, .6rem + 2.2vw, 3rem);
  --measure:  68ch;

  --ease: cubic-bezier(.22, .68, .28, 1);
  --shadow-lift: 0 24px 60px -34px rgba(10, 30, 52, .55);
}

/* --- 2. Reset ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  font-weight: 350;
  line-height: 1.72;
  letter-spacing: .004em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; background: var(--paper-warm); }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--navy); color: var(--sand);
  padding: .7rem 1.15rem; font-size: var(--step--1);
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  transition: top .2s var(--ease);
}
.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;
}

/* --- 3. Typography ------------------------------------------------------ */
h1, h2, h3, .display, .serif {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.012em;
  line-height: 1.08;
  color: var(--navy);
  font-optical-sizing: auto;
}
h1, .display { font-size: var(--step-4); line-height: 1.02; letter-spacing: -.02em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.25; letter-spacing: -.005em; }

.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(.66rem, .63rem + .12vw, .74rem);
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.15rem;
}
.eyebrow--light { color: var(--brass-light); }

.lede {
  font-size: var(--step-1);
  line-height: 1.62;
  color: var(--ink-soft);
  font-weight: 320;
  max-width: 52ch;
}
p { max-width: var(--measure); }
p + p { margin-top: 1.1em; }
.muted { color: var(--ink-soft); }
.small { font-size: var(--step--1); line-height: 1.66; }

.workshop-note {
  margin-top: clamp(1.8rem, 3.5vw, 2.6rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule-soft);
  font-size: var(--step--1);
}
.workshop-note strong { color: var(--ink); font-weight: 500; }

/* diamond rule — the brand's recurring divider */
.rule-diamond {
  display: flex; align-items: center; gap: .75rem;
  margin: 1.9rem 0; max-width: 22rem;
}
.rule-diamond::before, .rule-diamond::after {
  content: ""; height: 1px; flex: 1; background: var(--rule);
}
.rule-diamond::after { flex: 2.4; }
.rule-diamond i {
  width: 7px; height: 7px; transform: rotate(45deg);
  border: 1px solid var(--brass); flex: none;
}
.rule-diamond--light::before, .rule-diamond--light::after { background: var(--rule-light); }
.rule-diamond--light i { border-color: var(--brass-light); }
.rule-diamond--center { margin-inline: auto; }

/* --- 4. Layout ---------------------------------------------------------- */
.wrap { width: min(100% - (var(--edge) * 2), 1320px); margin-inline: auto; }
.wrap--tight { width: min(100% - (var(--edge) * 2), 1080px); margin-inline: auto; }
.wrap--text  { width: min(100% - (var(--edge) * 2), 780px);  margin-inline: auto; }
.section { padding-block: var(--section); }
.section--flush-top { padding-top: 0; }
.section--sand { background: var(--paper-warm); }
.section--navy { background: var(--navy); color: var(--sand); }
.section--navy h2, .section--navy h3 { color: var(--sand); }

.section-head { max-width: 62ch; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-head p { color: var(--ink-soft); margin-top: 1.1rem; }
.section-head--split {
  display: grid; gap: var(--gap) clamp(2rem, 5vw, 5rem);
  grid-template-columns: 1fr; max-width: none; align-items: end;
}
@media (min-width: 62rem) {
  .section-head--split { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); }
  .section-head--split > p { margin-top: 0; }
}
#our-story .section-head--split { align-items: start; }

/* --- 5. Buttons --------------------------------------------------------- */
.btn {
  --btn-bg: var(--navy); --btn-fg: var(--sand); --btn-bd: var(--navy);
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .92rem 1.6rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  font-size: var(--step--1); font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; position: relative;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn::after {
  content: ""; width: 5px; height: 5px; flex: none;
  border: 1px solid currentColor; transform: rotate(45deg);
  opacity: .55; transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.btn:hover { --btn-bg: transparent; --btn-fg: var(--navy); }
.btn:hover::after { transform: rotate(45deg) translate(2px, -2px); opacity: 1; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy); --btn-bd: var(--rule); }
.btn--ghost:hover { --btn-bg: var(--navy); --btn-fg: var(--sand); --btn-bd: var(--navy); }
.btn--light { --btn-bg: var(--sand); --btn-fg: var(--navy); --btn-bd: var(--sand); }
.btn--light:hover { --btn-bg: transparent; --btn-fg: var(--sand); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: var(--sand); --btn-bd: var(--rule-light); }
.btn--outline-light:hover { --btn-bg: var(--sand); --btn-fg: var(--navy); --btn-bd: var(--sand); }
.btn--sm { padding: .68rem 1.15rem; letter-spacing: .13em; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: var(--step--1); font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--navy);
  padding-bottom: .3rem; border-bottom: 1px solid var(--rule);
  transition: border-color .3s var(--ease), gap .3s var(--ease);
}
.link-arrow:hover { border-color: var(--brass); gap: .95rem; }
.link-arrow--light { color: var(--sand); border-color: var(--rule-light); }
.link-arrow--light:hover { border-color: var(--brass-light); }

/* --- 6. Header ---------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(252, 249, 244, .93);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--rule-soft);
}
.header__inner {
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.6rem);
  min-height: 4.6rem;
}
.logo {
  display: inline-flex; align-items: center; gap: .7rem;
  text-decoration: none; flex: none; margin-right: auto;
}
.logo img { width: 34px; height: 34px; background: none; }
.logo span {
  font-family: var(--font-display);
  font-size: clamp(.86rem, .8rem + .3vw, 1.02rem);
  letter-spacing: .21em; text-transform: uppercase;
  color: var(--navy); white-space: nowrap; line-height: 1;
  padding-top: .12em;
}
@media (max-width: 26rem) { .logo span { letter-spacing: .13em; font-size: .8rem; } }

.nav { display: none; }
@media (min-width: 62rem) { .nav { display: block; } }
.nav > ul { display: flex; align-items: center; gap: clamp(1.1rem, 2vw, 2.1rem); }
.nav a, .nav .nav__toggle {
  display: inline-block; padding: .45rem 0;
  font-size: .74rem; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; text-decoration: none; color: var(--navy);
  background: none; border: 0; cursor: pointer; position: relative;
}
.nav a::after, .nav .nav__toggle::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .1rem;
  height: 1px; background: var(--brass);
  transform: scaleX(0); transform-origin: left;
  transition: transform .38s var(--ease);
}
.nav a:hover::after, .nav li:hover .nav__toggle::after,
.nav [aria-current="page"]::after, .nav .is-active::after { transform: scaleX(1); }

.has-sub { position: relative; }
.sub {
  position: absolute; top: calc(100% + .1rem); left: -1.1rem;
  min-width: 13rem; padding: .55rem 0;
  background: var(--paper); border: 1px solid var(--rule-soft);
  box-shadow: var(--shadow-lift);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.sub a {
  display: block; padding: .55rem 1.1rem; letter-spacing: .13em;
  font-size: .72rem; width: 100%;
}
.sub a::after { display: none; }
.sub a:hover { background: var(--paper-warm); color: var(--brass); }

.header__actions { display: flex; align-items: center; gap: .55rem; flex: none; }
.header__actions .btn { display: none; }
@media (min-width: 48rem) { .header__actions .btn { display: inline-flex; } }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.7rem; height: 2.7rem; padding: 0;
  background: none; border: 1px solid var(--rule); cursor: pointer;
  color: var(--navy);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.icon-btn:hover { background: var(--navy); color: var(--sand); border-color: var(--navy); }
.icon-btn svg { width: 1.15rem; height: 1.15rem; }
.icon-btn--menu { display: inline-flex; }
@media (min-width: 62rem) { .icon-btn--menu { display: none; } }
.icon-btn--wa { display: inline-flex; }
@media (min-width: 62rem) { .icon-btn--wa { display: none; } }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(92vw, 24rem); z-index: 120;
  background: var(--navy); color: var(--sand);
  padding: 1.4rem var(--edge) 2.4rem;
  transform: translateX(101%); visibility: hidden;
  transition: transform .5s var(--ease), visibility .5s;
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer__top { display: flex; justify-content: flex-end; margin-bottom: 1.6rem; }
.drawer .icon-btn { border-color: var(--rule-light); color: var(--sand); }
.drawer .icon-btn:hover { background: var(--sand); color: var(--navy); border-color: var(--sand); }
.drawer nav a {
  display: block; padding: .78rem 0; text-decoration: none;
  font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2;
  color: var(--sand); border-bottom: 1px solid var(--rule-light);
}
.drawer nav .sub-item {
  font-family: var(--font-sans); font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase;
  padding-left: 1.1rem; color: var(--brass-light);
}
.drawer .drawer__foot { margin-top: auto; padding-top: 2rem; }
.drawer .drawer__foot .btn { width: 100%; justify-content: center; margin-bottom: .6rem; }
.backdrop {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(10, 30, 52, .5); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.backdrop.is-open { opacity: 1; visibility: visible; }

/* --- 7. Breadcrumb ------------------------------------------------------ */
.breadcrumb { margin-bottom: 1.7rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.breadcrumb li { display: flex; align-items: center; gap: .5rem; }
.breadcrumb li + li::before { content: "/"; color: var(--ink-faint); }
.breadcrumb a, .breadcrumb span {
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-faint); text-decoration: none;
}
.breadcrumb a:hover { color: var(--brass); }
.breadcrumb [aria-current] { color: var(--navy); }

/* --- 8. Hero ------------------------------------------------------------ */
/* full-bleed photograph, copy sitting on a navy scrim over it */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-items: end;
  min-height: clamp(27rem, 68vh, 34rem);
  background: var(--navy-deep); color: var(--sand);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: var(--hero-pos, 64% center);
  background: var(--navy-deep);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    rgba(10, 30, 52, .58) 0%, rgba(10, 30, 52, .84) 52%, rgba(10, 30, 52, .95) 100%);
}
.hero__inner { position: relative; padding-block: clamp(2.6rem, 7vw, 5rem); }
.hero__text { max-width: 34rem; }
.hero__text .lede { margin-top: 1.5rem; }

.hero h1 { color: var(--sand); }
.hero .eyebrow { color: var(--brass-light); }
.hero .lede { color: rgba(240, 223, 196, .84); }
.hero .rule-diamond::before, .hero .rule-diamond::after { background: var(--rule-light); }
.hero .rule-diamond i { border-color: var(--brass-light); }
.hero .breadcrumb a, .hero .breadcrumb span { color: rgba(240, 223, 196, .74); }
.hero .breadcrumb a:hover { color: var(--brass-light); }
.hero .breadcrumb [aria-current] { color: var(--sand); }
.hero .breadcrumb li + li::before { color: rgba(240, 223, 196, .38); }
.hero .btn { --btn-bg: var(--sand); --btn-fg: var(--navy); --btn-bd: var(--sand); }
.hero .btn:hover { --btn-bg: transparent; --btn-fg: var(--sand); }
.hero .btn--ghost { --btn-bg: transparent; --btn-fg: var(--sand); --btn-bd: var(--rule-light); }
.hero .btn--ghost:hover { --btn-bg: var(--sand); --btn-fg: var(--navy); --btn-bd: var(--sand); }

@media (min-width: 62rem) {
  .hero { align-items: center; min-height: clamp(32rem, 78vh, 44rem); }
  .hero::after {
    background: linear-gradient(96deg,
      rgba(10, 30, 52, .92) 0%, rgba(10, 30, 52, .78) 32%,
      rgba(10, 30, 52, .34) 66%, rgba(10, 30, 52, .06) 100%);
  }
  .hero__inner::before {
    content: ""; position: absolute; inset: clamp(-2rem, -3vw, -1rem) auto clamp(-2rem, -3vw, -1rem) -2.4rem;
    width: 1px; background: var(--rule-light);
  }
}

/* plain hero — no photograph, for utility pages like Contact */
.hero--plain {
  position: static; isolation: auto; overflow: visible;
  display: block; min-height: 0;
  background: var(--paper); color: var(--ink);
  padding-block: clamp(2.6rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem);
}
.hero--plain::after { display: none; }
.hero--plain h1 { color: var(--navy); }
.hero--plain .eyebrow { color: var(--brass); }
.hero--plain .lede { color: var(--ink-soft); }
.hero--plain .rule-diamond::before, .hero--plain .rule-diamond::after { background: var(--rule); }
.hero--plain .rule-diamond i { border-color: var(--brass); }
.hero--plain .breadcrumb a, .hero--plain .breadcrumb span { color: var(--ink-faint); }
.hero--plain .breadcrumb a:hover { color: var(--brass); }
.hero--plain .breadcrumb [aria-current] { color: var(--navy); }
.hero--plain .breadcrumb li + li::before { color: var(--ink-faint); }
@media (min-width: 62rem) { .hero--plain { align-items: initial; min-height: 0; } }

/* --- 9. Spec block (qualities / applications) --------------------------- */
.spec {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--rule); padding-top: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 48rem) { .spec { grid-template-columns: 1fr 1fr; } }
@media (min-width: 62rem) {
  .spec > div + div { padding-left: clamp(2rem, 4vw, 4rem); border-left: 1px solid var(--rule); }
}
.quick-facts { margin-top: .9rem; font-size: var(--step--1); color: var(--ink-soft); max-width: 64rem; }
.quick-facts strong { color: var(--ink); font-weight: 500; }
.spec h3 { margin-bottom: 1.3rem; }
.spec li {
  position: relative; padding-left: 1.7rem; padding-block: .55rem;
  color: var(--ink-soft); border-bottom: 1px solid var(--rule-soft);
  max-width: 34rem;
}
.spec li::before {
  content: ""; position: absolute; left: 0; top: 1.28em;
  width: 6px; height: 6px; transform: rotate(45deg);
  border: 1px solid var(--brass);
}

/* --- 10. Editorial image edit ------------------------------------------ */
.edit { display: grid; gap: clamp(1.6rem, 3.5vw, 3.2rem) var(--gap); }
@media (min-width: 48rem) { .edit { grid-template-columns: repeat(12, 1fr); } }
.edit > figure { margin: 0; }
/* tablet: two up */
@media (min-width: 48rem) and (max-width: 61.99rem) {
  .edit > figure { grid-column: span 6; }
  .edit > figure:nth-child(2n) { margin-top: clamp(1.5rem, 4vw, 3rem); }
}
/* desktop: three up, mirrored 5-4-3 / 3-5-4 rhythm so the row
   heights stagger instead of marching in a single portrait size */
@media (min-width: 62rem) {
  .edit > figure:nth-child(6n+1) { grid-column: span 5; }
  .edit > figure:nth-child(6n+2) { grid-column: span 4; margin-top: clamp(1.4rem, 3vw, 3rem); }
  .edit > figure:nth-child(6n+3) { grid-column: span 3; margin-top: clamp(2.6rem, 6vw, 5.5rem); }
  .edit > figure:nth-child(6n+4) { grid-column: span 3; margin-top: clamp(2.6rem, 6vw, 5.5rem); }
  .edit > figure:nth-child(6n+5) { grid-column: span 5; }
  .edit > figure:nth-child(6n+6) { grid-column: span 4; margin-top: clamp(1.4rem, 3vw, 3rem); }
}
.figure__frame {
  display: block; position: relative; overflow: hidden;
  background: var(--paper-warm); border: 0; padding: 0; width: 100%;
  cursor: zoom-in; appearance: none;
}
.figure__frame img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease), filter .6s var(--ease);
}
.figure__frame:hover img { transform: scale(1.035); }
.figure__frame::after {
  content: ""; position: absolute; inset: 0;
  border: 1px solid rgba(240, 223, 196, 0);
  transition: border-color .4s var(--ease);
}
.figure__frame:hover::after { border-color: rgba(240, 223, 196, .45); }
.edit .figure__frame img { aspect-ratio: 4 / 5; }
/* square source photography keeps its own proportion */
.edit--square .figure__frame img { aspect-ratio: 1 / 1; }
figcaption {
  margin-top: .85rem; font-size: var(--step--1);
  color: var(--ink-soft); max-width: 38ch; line-height: 1.55;
}
figcaption b { font-weight: 500; color: var(--navy); }

/* --- 11. Full-bleed band ----------------------------------------------- */
.band { position: relative; overflow: hidden; background: var(--navy); }
.band img {
  width: 100%; height: clamp(15rem, 34vw, 26rem); object-fit: cover;
  opacity: .82;
}
.band__inner {
  position: absolute; inset: 0; display: grid; align-items: center;
  background: linear-gradient(90deg, rgba(10,30,52,.86) 0%, rgba(10,30,52,.5) 55%, rgba(10,30,52,.15) 100%);
}
.band blockquote {
  font-family: var(--font-display); color: var(--sand);
  font-size: var(--step-2); line-height: 1.25; max-width: 22ch;
}
.band cite {
  display: block; margin-top: 1.1rem; font-style: normal;
  font-family: var(--font-sans); font-size: var(--step--1);
  letter-spacing: .2em; text-transform: uppercase; color: var(--brass-light);
}

/* --- 12. Archive grid --------------------------------------------------- */
.archive {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr));
}
@media (min-width: 48rem) {
  .archive { grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr)); }
}
.archive .figure__frame img { aspect-ratio: 1 / 1; }
.archive figcaption { font-size: .8rem; margin-top: .6rem; }

/* --- 13. Colour grid ---------------------------------------------------- */
.filters {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
}
.chip {
  padding: .5rem 1rem; background: none; cursor: pointer;
  border: 1px solid var(--rule);
  font-size: .72rem; font-weight: 500; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-soft);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.chip:hover { border-color: var(--brass); color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--sand); }

/* a chart, not a gallery — the whole range should read in one view.
   Name and reference live on the swatch overlay and in the lightbox. */
.swatches {
  display: grid; gap: clamp(.3rem, .7vw, .55rem);
  grid-template-columns: repeat(auto-fill, minmax(3.6rem, 1fr));
}
@media (min-width: 48rem) {
  .swatches { grid-template-columns: repeat(auto-fill, minmax(4.4rem, 1fr)); }
}
@media (min-width: 62rem) {
  .swatches { grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr)); }
}
.swatches--compact { grid-template-columns: repeat(auto-fill, minmax(2.6rem, 1fr)); }
@media (min-width: 48rem) {
  .swatches--compact { grid-template-columns: repeat(auto-fill, minmax(3rem, 1fr)); }
}
@media (min-width: 62rem) {
  .swatches--compact { grid-template-columns: repeat(auto-fill, minmax(3.4rem, 1fr)); }
}
.swatch {
  display: block; position: relative; width: 100%;
  padding: 0; border: 0; background: none; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), z-index 0s;
}
.swatch img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  outline: 1px solid var(--rule-soft); outline-offset: -1px;
  transition: outline-color .3s var(--ease);
}
.swatch:hover, .swatch:focus-visible {
  transform: scale(1.14); z-index: 2;
  box-shadow: 0 16px 30px -16px rgba(10, 30, 52, .55);
}
.swatch:hover img, .swatch:focus-visible img { outline-color: var(--brass); }

.swatch__ref {
  position: absolute; inset: auto 0 0 0;
  padding: .28rem .2rem;
  background: rgba(10, 30, 52, .82);
  color: var(--sand);
  font-size: .56rem; font-weight: 500; letter-spacing: .1em;
  font-variant-numeric: tabular-nums; text-align: center; line-height: 1;
  opacity: 0; transition: opacity .25s var(--ease);
}
.swatch:hover .swatch__ref, .swatch:focus-visible .swatch__ref { opacity: 1; }
.swatch.is-hidden { display: none; }
.swatch-count {
  margin-top: 1.5rem; font-size: var(--step--1); color: var(--ink-faint);
}

/* --- 13b. Tile chart (bejmat) ------------------------------------------- */
/* a short range, so the cells stay large and carry their names in the open,
   and the glaze cells take the tile's own rectangular proportion */
.tiles {
  display: grid; gap: clamp(.9rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr));
}
.tiles--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.tiles--compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 6.5rem), 1fr)); gap: clamp(.6rem, 1.4vw, 1rem); }
.tile {
  display: block; width: 100%; padding: 0; border: 0;
  background: none; text-align: left; cursor: pointer;
}
.tile img {
  width: 100%; object-fit: cover;
  outline: 1px solid var(--rule-soft); outline-offset: -1px;
  transition: outline-color .3s var(--ease), transform .4s var(--ease),
              box-shadow .4s var(--ease);
}
.tiles--glaze .tile img { aspect-ratio: 900 / 305; }
.tiles--square .tile img { aspect-ratio: 1 / 1; }
.tile:hover img, .tile:focus-visible img {
  outline-color: var(--brass); transform: translateY(-4px);
  box-shadow: 0 16px 30px -20px rgba(10, 30, 52, .6);
}
.tile__name {
  display: block; margin-top: .65rem;
  font-size: .86rem; line-height: 1.35; color: var(--navy);
}
.tile__note {
  display: block; margin-top: .1rem;
  font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint);
}
.subhead {
  margin: 0 0 1.2rem; padding-bottom: .7rem;
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
}
.subhead span {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-faint); flex: none;
}
.subhead__intro {
  margin: -.4rem 0 1.3rem; max-width: 62ch;
  font-size: var(--step--1); line-height: 1.66; color: var(--ink-soft);
}
.group + .group { margin-top: clamp(2.4rem, 5vw, 3.6rem); }

/* --- 14. Note / callout ------------------------------------------------- */
.note {
  position: relative; background: var(--paper-warm);
  padding: clamp(1.8rem, 4vw, 3.4rem);
  border: 1px solid var(--rule-soft);
}
.note::before, .note::after {
  content: ""; position: absolute; width: 22px; height: 22px;
  border: 1px solid var(--brass); opacity: .65;
}
.note::before { top: .8rem; left: .8rem; border-right: 0; border-bottom: 0; }
.note::after { bottom: .8rem; right: .8rem; border-left: 0; border-top: 0; }
.note h3 { margin-bottom: .9rem; }
.note p { color: var(--ink-soft); }

.cols-2 { display: grid; gap: clamp(1.6rem, 4vw, 3.2rem); }
@media (min-width: 48rem) { .cols-2 { grid-template-columns: 1fr 1fr; } }
.cols-3 { display: grid; gap: clamp(1.6rem, 3vw, 2.8rem); }
@media (min-width: 48rem) { .cols-3 { grid-template-columns: repeat(3, 1fr); } }

/* numbered list (process) */
.steps { display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 3.4rem 1fr; gap: 1.2rem;
  padding-block: 1.5rem; border-top: 1px solid var(--rule);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--rule); }
.step__n {
  font-family: var(--font-display); font-size: 1.9rem;
  color: var(--brass); line-height: 1;
}
.step p { color: var(--ink-soft); margin-top: .35rem; }
.section--navy .step { border-color: var(--rule-light); }
.section--navy .step:last-child { border-bottom-color: var(--rule-light); }
.section--navy .step p, .section--navy p { color: rgba(240, 223, 196, .78); }
.section--navy .step__n { color: var(--brass-light); }

/* --- 15. Product cards (rugs / lighting) -------------------------------- */
.products {
  display: grid; gap: clamp(1.4rem, 3vw, 2.6rem) var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
}
.product { display: flex; flex-direction: column; }
.product .figure__frame img { aspect-ratio: 1 / 1; }
.product__body { padding-top: .9rem; display: flex; flex-direction: column; flex: 1; }
.product__name { font-family: var(--font-display); font-size: 1.06rem; line-height: 1.3; }
.product__note { font-size: .82rem; color: var(--ink-soft); margin-top: .3rem; flex: 1; }
.product__cta {
  margin-top: .85rem; align-self: flex-start;
  font-size: .68rem; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; text-decoration: none; color: var(--brass);
  border-bottom: 1px solid transparent; padding-bottom: .15rem;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.product__cta:hover { border-color: var(--brass); color: var(--navy); }

/* --- 15b. Horizontal image sliders (catalogue page) --------------------- */
.slider {
  display: flex; gap: var(--gap); overflow-x: auto;
  scroll-snap-type: x proximity; scroll-padding-left: var(--gap);
  margin: 0; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; -ms-overflow-style: none;
}
.slider::-webkit-scrollbar { display: none; }
.slider > * { flex: 0 0 auto; scroll-snap-align: start; }
.slider--lifestyle > * { width: 14rem; }
.slider--lifestyle .figure__frame img { aspect-ratio: 4 / 5; }
.slider--lifestyle.slider--square .figure__frame img { aspect-ratio: 1 / 1; }
@media (min-width: 48rem) { .slider--lifestyle > * { width: 17rem; } }
.slider--products > * { width: 9rem; }
.slider--products .product__name { font-size: .84rem; }
.slider--products .product__note { font-size: .72rem; }
@media (min-width: 48rem) { .slider--products > * { width: 10.5rem; } }

.slider-group { position: relative; }
.slider-arrow {
  position: absolute; top: 40%; transform: translateY(-50%); z-index: 2;
  width: 2.5rem; height: 2.5rem; border-radius: 50%; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper); border: 1px solid var(--rule);
  color: var(--navy); cursor: pointer;
  box-shadow: 0 10px 22px -12px rgba(10, 30, 52, .45);
  transition: opacity .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.slider-arrow svg { width: 18px; height: 18px; }
.slider-arrow:hover { background: var(--navy); color: var(--sand); }
.slider-arrow[disabled] { opacity: 0; pointer-events: none; }
.slider-arrow--prev { left: -.9rem; }
.slider-arrow--next { right: -.9rem; }
@media (max-width: 47.99rem) {
  .slider-arrow { width: 2.2rem; height: 2.2rem; }
  .slider-arrow--prev { left: -.4rem; }
  .slider-arrow--next { right: -.4rem; }
}

/* --- 16. Category cards ------------------------------------------------- */
.cards { display: grid; gap: var(--gap); }
@media (min-width: 48rem) { .cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); } }
.card {
  position: relative; display: block; text-decoration: none;
  overflow: hidden; background: var(--navy); color: var(--sand);
}
.card img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; opacity: .78;
  transition: transform 1.2s var(--ease), opacity .5s var(--ease);
}
.card:hover img { transform: scale(1.05); opacity: .62; }
.card__body {
  position: absolute; inset: auto 0 0 0; padding: clamp(1.2rem, 3vw, 2rem);
  background: linear-gradient(0deg, rgba(10,30,52,.9) 10%, rgba(10,30,52,0) 100%);
}
.card__body h3 { color: var(--sand); }
.card__body p { color: rgba(240, 223, 196, .8); font-size: .84rem; margin-top: .4rem; max-width: 30ch; }
.card__more {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: .9rem;
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-light);
}

/* --- 17. CTA band ------------------------------------------------------- */
.cta { background: var(--navy); color: var(--sand); position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: clamp(.8rem, 2vw, 1.6rem);
  border: 1px solid var(--rule-light); pointer-events: none;
}
.cta__inner { padding-block: clamp(3.4rem, 7vw, 6rem); text-align: center; position: relative; }
.cta h2 { color: var(--sand); max-width: 18ch; margin-inline: auto; }
.cta p { color: rgba(240, 223, 196, .8); margin: 1.3rem auto 0; max-width: 46ch; }
.cta .btn-row { justify-content: center; }

/* --- 18. Footer --------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: rgba(240, 223, 196, .78); }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--sand); }
.footer__grid {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  padding-block: clamp(3rem, 6vw, 5rem);
}
@media (min-width: 48rem) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__grid h4 {
  font-family: var(--font-sans); font-size: .7rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--brass-light);
  margin-bottom: 1.1rem;
}
.footer__grid li { padding-block: .3rem; font-size: .92rem; }
.footer__brand img { width: 40px; height: 40px; margin-bottom: 1.1rem; background: none; }
.footer__brand p { font-size: .92rem; max-width: 34ch; color: rgba(240, 223, 196, .7); }
.footer__brand .serif { color: var(--sand); font-size: 1.15rem; margin-bottom: .8rem; display: block; }
.footer__bar {
  border-top: 1px solid var(--rule-light); padding-block: 1.5rem;
  display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; justify-content: space-between;
  font-size: .76rem; color: rgba(240, 223, 196, .55);
}

/* --- 19. Forms ---------------------------------------------------------- */
.form { display: grid; gap: 1.3rem; }
@media (min-width: 40rem) { .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; } }
.field { display: grid; gap: .45rem; }
.field label {
  font-size: .7rem; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-soft);
}
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem;
  background: var(--paper); border: 1px solid var(--rule);
  color: var(--navy); font-size: 1rem; font-weight: 350;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brass); outline: none; background: #fff;
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
                    linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 1.3rem) 1.35rem, calc(100% - 1rem) 1.35rem;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.field--hp { position: absolute; left: -9999px; }
.form__note { font-size: .8rem; color: var(--ink-faint); }

/* --- 20. Lightbox ------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem);
  background: rgba(8, 24, 41, .94);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage {
  position: relative; max-width: min(100%, 62rem); width: 100%;
  display: grid; justify-items: center; gap: 1.1rem;
  transform: scale(.97); transition: transform .45s var(--ease);
}
.lightbox.is-open .lightbox__stage { transform: none; }
.lightbox__img {
  max-height: 74vh; width: auto; max-width: 100%; object-fit: contain;
  background: var(--navy-deep);
  align-self: center; /* the stage is a grid: stop it stretching the image box */
}
.lightbox__img--swatch {
  width: min(17rem, 62vw); height: auto; aspect-ratio: 1/1;
  outline: 1px solid var(--rule-light); outline-offset: -1px;
}
/* sample photographs that carry their own proportion (bejmat glazes/patterns) */
.lightbox__img--tile {
  width: auto; height: auto;
  max-width: min(38rem, 88vw); max-height: 58vh;
  outline: 1px solid var(--rule-light); outline-offset: -1px;
}
.lightbox__meta { text-align: center; color: rgba(240, 223, 196, .82); max-width: 46ch; }
.lightbox__meta h3 { color: var(--sand); font-size: var(--step-2); }
.lightbox__meta .ref {
  display: block; margin-top: .5rem; font-size: .74rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--brass-light);
}
.lightbox__meta p { font-size: .88rem; margin: .8rem auto 0; }
.lightbox__meta .btn { margin-top: 1.3rem; }
.lightbox__close, .lightbox__nav {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.9rem; height: 2.9rem; padding: 0; cursor: pointer;
  background: rgba(240, 223, 196, .08); color: var(--sand);
  border: 1px solid var(--rule-light);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--sand); color: var(--navy); }
.lightbox__close { top: calc(-1 * clamp(1rem, 4vw, 3rem) + .4rem); right: 0; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav[data-dir="prev"] { left: calc(-1 * clamp(.6rem, 3vw, 3.2rem)); }
.lightbox__nav[data-dir="next"] { right: calc(-1 * clamp(.6rem, 3vw, 3.2rem)); }
.lightbox__nav svg, .lightbox__close svg { width: 1.05rem; height: 1.05rem; }
.lightbox__count {
  font-size: .72rem; letter-spacing: .2em; color: rgba(240, 223, 196, .55);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 40rem) {
  .lightbox__nav[data-dir="prev"] { left: -.3rem; }
  .lightbox__nav[data-dir="next"] { right: -.3rem; }
}

/* --- 21. Reveal on scroll ---------------------------------------------- */
/* only hide reveal content once we know JS can bring it back */
.js .reveal { opacity: 0; transform: translateY(20px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important; transition-duration: .01ms !important;
  }
}

/* --- 22. Utilities ------------------------------------------------------ */
.stack > * + * { margin-top: 1.1rem; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.center { text-align: center; }
.center p, .center .lede { margin-inline: auto; }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.tag {
  padding: .35rem .8rem; border: 1px solid var(--rule);
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
}
a.tag { transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
a.tag:hover, a.tag:focus-visible { background: var(--navy); border-color: var(--navy); color: var(--sand); }

/* --- 23. Contact page ---------------------------------------------------- */
.contact-grid {
  display: grid; gap: clamp(2.4rem, 5vw, 4rem);
  padding-bottom: var(--section);
}
@media (min-width: 62rem) {
  .contact-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
}
.contact-form-panel {
  background: var(--paper-warm); border: 1px solid var(--rule-soft);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}
.enquiry-badge {
  display: inline-block; margin-bottom: 1.3rem; padding: .5rem .9rem;
  background: var(--navy); color: var(--sand);
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
}
.enquiry-badge[hidden] { display: none; }
.form-success { padding: clamp(1.6rem, 4vw, 2.6rem) 0; }
.form-success h3 { margin-bottom: .7rem; }
.form-success p { color: var(--ink-soft); }
.form-success .rule-diamond { margin-left: 0; }

.contact-details { display: grid; }
.contact-list { margin-top: 1.3rem; display: grid; gap: .9rem; }
.contact-list__label {
  display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: .2rem;
}
.contact-list a { text-decoration: none; font-size: 1rem; color: var(--navy); }
.contact-list a:hover { color: var(--brass); }

.steps--compact .step {
  grid-template-columns: 2.4rem 1fr; padding-block: 1.1rem; gap: .9rem;
}
.steps--compact .step__n { font-size: 1.4rem; }
.step h4 {
  font-family: var(--font-sans); font-size: .92rem; font-weight: 500;
  color: var(--navy); letter-spacing: .01em;
}
.steps--compact .step p { font-size: .85rem; margin-top: .25rem; }

/* numbered capability / value-prop list, two columns on wide screens */
.bullet-grid {
  display: grid; gap: 0 clamp(2rem, 4vw, 4rem);
  border-top: 1px solid var(--rule); margin-top: 1.6rem;
}
@media (min-width: 48rem) { .bullet-grid { grid-template-columns: 1fr 1fr; } }
.bullet-grid li {
  padding-block: 1.2rem; border-bottom: 1px solid var(--rule-soft);
  list-style: none;
}
@media (min-width: 48rem) {
  .bullet-grid li:nth-child(odd) { border-right: 1px solid var(--rule); padding-right: 2rem; }
  .bullet-grid li:nth-child(even) { padding-left: 2rem; }
}
.bullet-grid strong {
  display: block; font-family: var(--font-display); font-size: 1.05rem;
  font-weight: 400; color: var(--navy); margin-bottom: .3rem;
}
.bullet-grid span { color: var(--ink-soft); font-size: .92rem; }

/* our story: single image + flowing text column */
.story { display: grid; gap: clamp(2.2rem, 5vw, 3rem); }
@media (min-width: 62rem) {
  .story { grid-template-columns: minmax(0, 34%) minmax(0, 1fr); align-items: start; gap: clamp(3rem, 6vw, 5.5rem); }
}
.story__media { background: var(--paper-warm); }
.story__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 29 / 30; }

.stat-badge {
  display: inline-flex; flex-direction: column; gap: .1rem;
  border: 1px solid var(--rule); padding: 1.1rem 1.5rem; margin-top: 1.8rem;
}
.stat-badge strong { font-family: var(--font-display); font-size: 2rem; color: var(--navy); line-height: 1; }
.stat-badge span { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-top: .3rem; }

.pull-quote {
  border-left: 2px solid var(--brass); padding-left: 1.4rem; max-width: 52ch;
}
.pull-quote p { font-size: var(--step-0); color: var(--ink-soft); line-height: 1.6; }

.process-strip {
  font-size: var(--step--1); font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-soft);
}

.section--navy .step h4 { color: var(--sand); }

.cta__tagline {
  margin-top: 2rem; font-style: italic; color: rgba(240, 223, 196, .6);
}

/* --- 16. Guides --------------------------------------------------------- */
/* long-form editorial: a single narrow measure, photographs allowed to
   break wider than the text, and a quiet structure that reads on a phone */

.guide-hero .lede { max-width: 46ch; }
.guide-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem;
  margin-top: 1.6rem; font-size: .7rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-faint);
}
.guide-meta span + span::before {
  content: ""; display: inline-block; width: 4px; height: 4px;
  margin-right: .9rem; transform: rotate(45deg) translateY(-1px);
  border: 1px solid var(--brass); opacity: .8;
}

/* on-page contents — a short list, not a sidebar */
.toc {
  margin: 0 0 clamp(2.4rem, 5vw, 3.4rem);
  padding: 1.4rem 0 1.5rem;
  border-block: 1px solid var(--rule);
}
.toc h2 {
  font-family: var(--font-sans); font-size: .68rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: .9rem;
}
.toc ol { counter-reset: toc; display: grid; gap: .35rem; }
@media (min-width: 48rem) { .toc ol { grid-template-columns: 1fr 1fr; gap: .35rem 2.4rem; } }
.toc li { counter-increment: toc; }
.toc a {
  display: flex; gap: .8rem; text-decoration: none;
  color: var(--ink-soft); font-size: .94rem; line-height: 1.5;
  padding-block: .18rem;
  transition: color .3s var(--ease);
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--brass); font-size: .7rem; letter-spacing: .08em;
  font-variant-numeric: tabular-nums; padding-top: .32em; flex: none;
}
.toc a:hover { color: var(--navy); }

/* article body */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  font-size: var(--step-2); line-height: 1.15;
  margin-top: clamp(2.8rem, 6vw, 4.2rem); scroll-margin-top: 6rem;
}
.prose h2 + p { margin-top: 1.2rem; }
.prose h3 {
  font-size: var(--step-1); margin-top: clamp(2rem, 4vw, 2.6rem);
  scroll-margin-top: 6rem;
}
.prose p { color: var(--ink-soft); max-width: none; }
.prose strong { color: var(--navy); font-weight: 500; }
.prose em { font-style: italic; }
.prose a:not(.btn):not(.link-arrow) {
  color: var(--navy); text-decoration: none;
  border-bottom: 1px solid var(--brass);
  transition: background .3s var(--ease);
}
.prose a:not(.btn):not(.link-arrow):hover { background: rgba(168, 133, 79, .13); }
.prose ul, .prose ol { display: grid; gap: .55rem; color: var(--ink-soft); }
.prose ul li { position: relative; padding-left: 1.5rem; }
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: 5px; height: 5px; transform: rotate(45deg);
  border: 1px solid var(--brass);
}
.prose ol { counter-reset: pl; }
.prose ol li { position: relative; padding-left: 2.1rem; counter-increment: pl; }
.prose ol li::before {
  content: counter(pl, decimal-leading-zero);
  position: absolute; left: 0; top: .1em;
  color: var(--brass); font-size: .76rem; letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}
.prose > .note, .prose > figure, .prose > .figure-pair,
.prose > .compare, .prose > .btn-row {
  margin-top: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: clamp(2rem, 4vw, 2.8rem);
}
.prose .note p { font-size: .94rem; }
.prose .note h3 { margin-top: 0; }

/* photographs sit slightly wider than the measure on large screens */
.prose figure { margin-inline: 0; }
.prose figure img { width: 100%; }
@media (min-width: 74rem) {
  .prose > figure, .prose > .figure-pair { width: calc(100% + 8rem); }
}
.figure-pair { display: grid; gap: var(--gap); }
@media (min-width: 40rem) { .figure-pair { grid-template-columns: 1fr 1fr; align-items: start; } }
.figure-pair figure { margin: 0; }
.prose figcaption { max-width: 46ch; }

/* comparison table — scrolls inside itself on a phone */
.compare { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare table { border-collapse: collapse; width: 100%; min-width: 34rem; }
.compare th, .compare td {
  text-align: left; vertical-align: top; padding: .95rem 1.1rem .95rem 0;
  border-bottom: 1px solid var(--rule-soft); font-size: .92rem;
  line-height: 1.55; color: var(--ink-soft);
}
.compare thead th {
  border-bottom: 1px solid var(--rule); color: var(--navy);
  font-size: .68rem; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; padding-bottom: .7rem;
}
.compare tbody th { color: var(--navy); font-weight: 400; font-family: var(--font-display); font-size: 1rem; }

/* question list */
.faq { border-top: 1px solid var(--rule); margin-top: clamp(2.4rem, 5vw, 3.4rem); }
.faq > div { border-bottom: 1px solid var(--rule-soft); padding-block: 1.5rem; }
.faq h3 { font-size: 1.06rem; margin-top: 0; }
.faq p { margin-top: .7rem; color: var(--ink-soft); }

/* related reading */
.related { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.related a {
  display: grid; gap: .2rem 1.4rem; align-items: baseline;
  padding-block: 1.15rem; border-bottom: 1px solid var(--rule-soft);
  text-decoration: none;
  transition: padding-left .35s var(--ease);
}
@media (min-width: 48rem) { .related a { grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); } }
.related a:hover { padding-left: .7rem; }
.related strong {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.08rem; line-height: 1.3; color: var(--navy);
}
.related span { font-size: .87rem; color: var(--ink-soft); line-height: 1.55; }

/* --- 16b. Guides index -------------------------------------------------- */
.guide-grid {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}
.guide-card {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--rule-soft);
  text-decoration: none; overflow: hidden;
  transition: border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}
.section--sand .guide-card { background: var(--paper); }
.guide-card:hover {
  border-color: var(--brass); transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
.guide-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.guide-card__body { padding: 1.25rem 1.35rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.guide-card__kicker {
  font-size: .64rem; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: var(--brass); margin-bottom: .6rem;
}
.guide-card h3 { font-size: 1.14rem; line-height: 1.25; }
.guide-card p { font-size: .87rem; color: var(--ink-soft); margin-top: .55rem; flex: 1; }
.guide-card__more {
  margin-top: 1rem; font-size: .66rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint);
}
.guide-card:hover .guide-card__more { color: var(--brass); }

/* compact list used further down the index and on product pages */
.guide-list { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.guide-list a {
  display: grid; gap: .15rem 1.4rem; align-items: baseline;
  padding-block: 1.05rem; border-bottom: 1px solid var(--rule-soft);
  text-decoration: none; transition: padding-left .35s var(--ease);
}
@media (min-width: 48rem) { .guide-list a { grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); } }
.guide-list a:hover { padding-left: .7rem; }
.guide-list strong {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.04rem; line-height: 1.3; color: var(--navy);
}
.guide-list span { font-size: .86rem; color: var(--ink-soft); line-height: 1.55; }

/* related-reading heading sits at section-subtitle scale, not section scale */
h2.subhead { font-size: var(--step-1); letter-spacing: -.005em; }
.faq--flush { margin-top: clamp(2.4rem, 5vw, 3.4rem); }

/* palette strip inside a guide — a fixed six-across row rather than an
   auto-filled chart, so a short selection reads as a considered palette */
.swatches--palette { grid-template-columns: repeat(3, 1fr); gap: clamp(.4rem, 1vw, .7rem); }
@media (min-width: 34rem) {
  .swatches--palette { grid-template-columns: repeat(6, 1fr); }
}
