/* ============================================================
   MILLHURST MILLS — Heritage / Modern design system  v2
   Lumber · Hardware · Building Materials · Since 1925
   ============================================================ */

/* ---- Palettes ------------------------------------------------ */
:root {
  --bg:        #f3ece0;
  --bg-alt:    #e9dfce;
  --paper:     #fbf7ee;
  --ink:       #20190f;
  --ink-soft:  #4c4334;
  --ink-mute:  #897b66;
  --line:      #211b12;
  --line-soft: #d6c9b1;
  --accent:    #b0492a;   /* burnt sienna */
  --accent-2:  #8a3418;
  --forest:    #2c3a2c;   /* deep forest */
  --forest-2:  #1d2a1d;
  --gold:      #c08a2e;
  --on-dark:   #f3ece0;

  /* type */
  --font-display: "Newsreader", "Source Serif 4", Georgia, serif;
  --font-body:    "Archivo", -apple-system, system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* spacing / layout */
  --container: 1320px;
  --pad-x: 40px;
  --section: 116px;
  --radius: 3px;
}

[data-palette="warm"] {
  --bg:#f0e6d4; --bg-alt:#e4d4b8; --paper:#f9efdb; --ink:#271809; --ink-soft:#4f391f;
  --ink-mute:#8a7457; --line:#34230f; --line-soft:#d2bd92; --accent:#bd4d1d; --accent-2:#8c3211;
  --forest:#5b3a1a; --forest-2:#3c2611; --gold:#d39433;
}
[data-palette="cool"] {
  --bg:#eceae3; --bg-alt:#dcd9cd; --paper:#f5f3ec; --ink:#15191a; --ink-soft:#35403f;
  --ink-mute:#6c7674; --line:#1c2322; --line-soft:#bcc0b9; --accent:#9a4429; --accent-2:#6f2f18;
  --forest:#22413a; --forest-2:#15302a; --gold:#9a8c5e;
}

/* ---- Fonts --------------------------------------------------- */
[data-fonts="workshop"] {
  --font-display: "Zilla Slab", Georgia, serif;
  --font-body: "Archivo", system-ui, sans-serif;
}
[data-fonts="modern"] {
  --font-display: "Hanken Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
}

/* ---- Density ------------------------------------------------- */
[data-density="compact"]  { --section: 74px; }
[data-density="spacious"] { --section: 156px; }

/* ---- Reset --------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-weight: 500; }

/* ---- Type helpers ------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.02em;
}
[data-fonts="modern"] .display { font-weight: 700; letter-spacing: -0.03em; }
.serif { font-family: var(--font-display); }
.italic { font-style: italic; }
.accent-ink { color: var(--accent); }
.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow .tick { width: 18px; height: 1px; background: var(--accent); display: inline-block; }

/* ---- Layout -------------------------------------------------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); }
.wide { max-width: 1600px; }
.narrow { max-width: 940px; }
section { position: relative; }
.section-pad { padding: var(--section) 0; }
.pad-top { padding-top: var(--section); }
.divider { border-top: 1px solid var(--line); }
.divider-soft { border-top: 1px solid var(--line-soft); }

/* ---- Utility bar -------------------------------------------- */
.utility {
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.utility .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 10px; padding-bottom: 10px; }
.utility .u-left, .utility .u-right { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.utility .u-right { opacity: 0.8; }
.utility .sep { opacity: 0.35; }
.utility a:hover { color: var(--gold); }

/* ---- Header -------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding-top: 18px; padding-bottom: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand .mark {
  width: 42px; height: 42px; flex-shrink: 0;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
}
.brand .mark svg { width: 24px; height: 24px; }
.brand .brand-logo { height: 44px; width: auto; display: block; }
.brand .wm { line-height: 1; }
.brand:has(.brand-logo) .wm { display: none; }
.brand .wm .name, .brand .wm .sub { display: block; }
.brand .wm .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 23px;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.brand .wm .sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
}
.nav { justify-self: center; display: flex; gap: 30px; align-items: center; }
.nav a {
  font-size: 13.5px; font-weight: 500; letter-spacing: 0.01em;
  position: relative; padding: 6px 0; color: var(--ink-soft);
  transition: color .15s;
}
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); }
.nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--accent);
}
.header-cta { justify-self: end; display: flex; gap: 14px; align-items: center; }
.header-cta .phone {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.header-cta .phone:hover { color: var(--accent); }
/* Millhurst Trading logo — right side of header, matched to the Mills logo footprint (~122px wide) */
.header-cta .cta-actions { display: inline-flex; gap: 14px; align-items: center; }
.header-cta .brand-trading { display: inline-flex; align-items: center; padding-left: 16px; margin-left: 2px; border-left: 1px solid var(--line-soft); }
.header-cta .brand-trading img { width: 122px; height: auto; display: block; transition: opacity .15s; }
.header-cta .brand-trading:hover img { opacity: .78; }
@media (max-width: 1080px) {
  .site-header .container { grid-template-columns: auto 1fr auto; }
  .site-header .header-cta { display: flex !important; justify-self: end; }
  .header-cta .cta-actions { display: none; }
  .header-cta .brand-trading { padding-left: 0; margin-left: 0; border-left: none; }
}

/* mobile nav toggle (hidden on desktop) */
.nav-toggle { display: none; }

/* ---- Buttons ------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border: 1.5px solid var(--ink); background: var(--ink); color: var(--on-dark);
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; transition: all .16s ease; border-radius: var(--radius);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--on-dark); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--ink); border-color: var(--ink); color: var(--gold); }
.btn-light { background: transparent; border-color: rgba(243,236,224,.4); color: var(--on-dark); }
.btn-light:hover { background: var(--on-dark); border-color: var(--on-dark); color: var(--ink); }
.btn-sm { padding: 10px 16px; font-size: 11px; }
.arrow::after { content: "→"; font-family: var(--font-mono); }
.link-arrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-soft);
  display: inline-flex; gap: 8px; align-items: center;
}
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---- Marquee ------------------------------------------------- */
.marquee {
  background: var(--forest); color: #fff;
  border-bottom: 1px solid var(--line);
  overflow: hidden; font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
}
.marquee-track { display: flex; white-space: nowrap; animation: marquee 48s linear infinite; }
.marquee-track span { display: inline-flex; gap: 44px; padding-right: 44px; }
.marquee-track i { font-style: normal; opacity: 0.55; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Sub-page hero ------------------------------------------ */
.page-hero { padding: 64px 0 56px; border-bottom: 1px solid var(--line); position: relative; }
.breadcrumb {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: 28px;
  display: flex; gap: 10px; align-items: center;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: 0.4; }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(48px, 6vw, 88px); line-height: 0.96; letter-spacing: -0.025em;
  max-width: 16ch;
}
[data-fonts="modern"] .page-hero h1 { font-weight: 700; }
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-hero .lede {
  font-family: var(--font-display); font-size: 21px; line-height: 1.5;
  color: var(--ink-soft); max-width: 620px; margin-top: 24px;
}
.page-hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: end; }

/* ---- Section label ------------------------------------------ */
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; margin-bottom: 44px;
  padding-bottom: 22px; border-bottom: 1px solid var(--line);
}
.section-head .lead h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(34px, 3.6vw, 52px); line-height: 1.0; letter-spacing: -0.02em;
  margin-top: 14px;
}
[data-fonts="modern"] .section-head .lead h2 { font-weight: 700; }
.section-head .lead h2 em { font-style: italic; color: var(--accent); }
.section-head p { color: var(--ink-soft); max-width: 46ch; font-size: 15px; }

/* ---- Image frame -------------------------------------------- */
.img { position: relative; overflow: hidden; background: var(--bg-alt); }
.img img { width: 100%; height: 100%; object-fit: cover; }
.img .tag {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; background: rgba(20,17,12,.82); color: var(--on-dark);
  padding: 6px 11px;
}
.img .tag.light { background: var(--paper); color: var(--ink); border: 1px solid var(--line-soft); }

/* ---- Department cards (hub) --------------------------------- */
.dept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.dept-card {
  display: flex; flex-direction: column; color: var(--ink);
  border: 1px solid var(--line-soft); background: var(--paper);
  transition: transform .2s ease, box-shadow .2s ease;
}
.dept-card:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -28px rgba(20,17,12,.5); }
.dept-card .img { aspect-ratio: 4/3; }
.dept-card:hover .img img { transform: scale(1.04); }
.dept-card .img img { transition: transform .5s ease; }
.dept-card .body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.dept-card .kn { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); display:flex; justify-content:space-between; }
.dept-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 27px; line-height: 1.04; letter-spacing: -0.01em; }
.dept-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }
.dept-card .brands-line { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.dept-card .go { color: var(--accent); font-weight: 500; }

/* ---- Product cards ------------------------------------------ */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.product-card {
  background: var(--paper); border: 1px solid var(--line-soft);
  display: flex; flex-direction: column; color: var(--ink);
  transition: border-color .15s, transform .2s;
}
.product-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.product-card .ph {
  aspect-ratio: 1/1; background: #fff; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.product-card .ph img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.product-card .ph.cover img { object-fit: cover; padding: 0; }
.product-card .ribbon {
  position: absolute; top: 0; left: 0; z-index: 2;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; background: var(--accent); color: #fff; padding: 5px 10px;
}
.product-card .ribbon.gold { background: var(--gold); color: var(--ink); }
.product-card .ribbon.forest { background: var(--forest); color: var(--on-dark); }
.product-card .pb { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.product-card .brandtag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); }
.product-card h4 { font-family: var(--font-display); font-weight: 500; font-size: 19px; line-height: 1.1; }
.product-card .spec { font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; }
.product-card .foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line-soft); }
.product-card .price { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.product-card .price small { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--ink-mute); text-transform: uppercase; font-weight: 400; }
.product-card .unit { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); }

/* ---- Brand tiles -------------------------------------------- */
.brand-grid { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-bottom: none; border-right: none; }
.brand-tile {
  aspect-ratio: 1.7/1; display: grid; place-items: center; padding: 26px;
  border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  background: var(--paper); transition: background .15s;
}
.brand-tile:hover { background: var(--bg-alt); }
.brand-tile img { max-height: 46px; max-width: 76%; width: auto; object-fit: contain; filter: saturate(0.9); }

.brand-card {
  display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center;
  border: 1px solid var(--line-soft); background: var(--paper); padding: 22px 26px;
  color: var(--ink); transition: border-color .15s, transform .2s;
}
.brand-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.brand-card .logo { height: 56px; display: grid; place-items: center; }
.brand-card .logo img { max-height: 52px; max-width: 100%; object-fit: contain; }
.brand-card h4 { font-family: var(--font-display); font-size: 21px; font-weight: 500; margin-bottom: 5px; }
.brand-card .cat { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 8px; }
.brand-card p { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }

/* ---- Spec / stat rows --------------------------------------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 28px 24px; border-right: 1px solid var(--line-soft); }
.stat:last-child { border-right: none; }
.stat .k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 10px; }
.stat .v { font-family: var(--font-display); font-size: 40px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.stat .v small { font-size: 18px; color: var(--ink-soft); }

/* ---- Feature split ------------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.wide-img { grid-template-columns: 1.3fr 1fr; }
.split .img { aspect-ratio: 4/3; }
.feature-list { display: grid; gap: 14px; margin: 22px 0 30px; }
.feature-list li { list-style: none; display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.feature-list li::before { content: "→"; color: var(--accent); font-family: var(--font-mono); }

/* ---- Bands (dark / forest) ---------------------------------- */
.band-ink { background: var(--ink); color: var(--on-dark); }
.band-forest { background: var(--forest); color: var(--on-dark); }
.band-ink h2, .band-forest h2 { color: var(--on-dark); }
.band-ink .eyebrow, .band-forest .eyebrow { color: var(--gold); }
.band-ink .section-head, .band-forest .section-head { border-color: rgba(243,236,224,.2); }
.on-dark-soft { color: rgba(243,236,224,.78); }

/* ---- Quote / testimonial ------------------------------------ */
.quote-big {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(30px, 3.6vw, 50px); line-height: 1.18; letter-spacing: -0.015em;
  max-width: 22ch;
}
.quote-big em { font-style: italic; color: var(--accent); }
blockquote cite { font-style: normal; }

/* ---- Forms --------------------------------------------------- */
.field { display: grid; gap: 7px; }
.field label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); }
.field input, .field textarea, .field select {
  background: var(--paper); border: 1px solid var(--line); color: var(--ink);
  padding: 14px 16px; font-family: inherit; font-size: 15px; border-radius: var(--radius);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

/* ---- Footer -------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding: 84px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.1fr; gap: 44px; padding-bottom: 56px; border-bottom: 1px solid rgba(243,236,224,.16); }
.footer-brand .name { font-family: var(--font-display); font-weight: 600; font-size: 32px; line-height: 1; margin-bottom: 16px; }
.footer-brand p { font-size: 13.5px; opacity: 0.72; line-height: 1.65; max-width: 32ch; }
.footer-brand .est { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-top: 18px; }
.footer-col h5 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.5; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: grid; gap: 11px; }
.footer-col a, .footer-col li { font-size: 13.5px; opacity: 0.82; }
.footer-col a:hover { color: var(--gold); opacity: 1; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 26px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.5; gap: 20px; flex-wrap: wrap; }

/* ---- Misc ---------------------------------------------------- */
.pill { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; border: 1px solid var(--line-soft); padding: 6px 12px; color: var(--ink-soft); border-radius: 999px; }
.pill.solid { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.note { font-size: 12.5px; color: var(--ink-mute); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- Responsive --------------------------------------------- */
@media (max-width: 1080px) {
  :root { --pad-x: 24px; --section: 84px; }
  .nav { display: none; }
  .site-header .container { grid-template-columns: auto 1fr; }
  .header-cta { display: none; }
  .dept-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .split, .page-hero-grid, .split.wide-img { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
}
@media (max-width: 620px) {
  .utility .u-right { display: none; }
  .dept-grid, .product-grid, .product-grid.cols-3, .brand-grid { grid-template-columns: 1fr 1fr; }
  .brand-grid { grid-template-columns: 1fr 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   SHARED COMPONENTS — added for multi-division expansion
   ============================================================ */

/* ---- Trust chips -------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-soft);
  border: 1px solid var(--line-soft); background: var(--paper);
  padding: 8px 14px; border-radius: 100px; display: inline-flex; align-items: center; gap: 8px;
}
.chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.band-ink .chip, .band-forest .chip, .hero-media .chip {
  background: rgba(243,236,224,.08); border-color: rgba(243,236,224,.28); color: rgba(243,236,224,.92);
}
.band-ink .chip::before, .band-forest .chip::before, .hero-media .chip::before { background: var(--gold); }

/* ---- Category cards ----------------------------------------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cat-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cat-card {
  background: var(--paper); border: 1px solid var(--line-soft); padding: 30px 28px;
  display: flex; flex-direction: column; gap: 12px; color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .15s;
}
a.cat-card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -28px rgba(20,17,12,.5); border-color: var(--accent); }
.cat-card .kn { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.cat-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 24px; line-height: 1.05; letter-spacing: -0.01em; }
.cat-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }
.cat-card .more { margin-top: auto; padding-top: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
a.cat-card:hover .more::after { content: " →"; }

/* ---- Two-division source cards ------------------------------ */
.src-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.src-card {
  border: 1px solid var(--line); background: var(--paper); padding: 44px 42px;
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.src-card:hover { transform: translateY(-4px); box-shadow: 0 30px 56px -30px rgba(20,17,12,.5); }
.src-card.dark { background: var(--forest); color: var(--on-dark); border-color: var(--forest); }
.src-card .eyebrow { margin-bottom: 20px; }
.src-card.dark .eyebrow { color: var(--gold); }
.src-card h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px,2.8vw,38px); line-height: 1.0; letter-spacing: -0.02em; margin-bottom: 14px; }
.src-card .sub { font-size: 15px; color: var(--ink-soft); line-height: 1.55; margin-bottom: 22px; max-width: 40ch; }
.src-card.dark .sub { color: rgba(243,236,224,.82); }
.src-card ul { list-style: none; display: grid; gap: 10px; margin-bottom: 28px; }
.src-card li { font-size: 14px; color: var(--ink-soft); display: grid; grid-template-columns: 20px 1fr; gap: 8px; }
.src-card li::before { content: "→"; color: var(--accent); font-family: var(--font-mono); }
.src-card.dark li { color: rgba(243,236,224,.86); }
.src-card.dark li::before { color: var(--gold); }
.src-card .act { margin-top: auto; }

/* ---- Featured specialty strip ------------------------------- */
.spec-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); }
.spec-link {
  padding: 26px 24px; border-right: 1px solid var(--line-soft); color: var(--ink);
  display: flex; flex-direction: column; gap: 8px; transition: background .15s;
}
.spec-strip .spec-link:last-child { border-right: none; }
.spec-link:hover { background: var(--paper); }
.spec-link .n { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); }
.spec-link h4 { font-family: var(--font-display); font-weight: 500; font-size: 20px; line-height: 1.05; letter-spacing: -0.01em; }
.spec-link:hover h4 { color: var(--accent); }
.spec-link .ar { font-family: var(--font-mono); color: var(--accent); margin-top: 4px; font-size: 13px; }

/* ---- FAQ ---------------------------------------------------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 920px; }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between;
  align-items: baseline; gap: 24px;
  font-family: var(--font-display); font-size: 21px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent); font-size: 22px; flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { font-size: 15px; color: var(--ink-soft); line-height: 1.65; padding: 0 0 24px; max-width: 70ch; }

/* ---- Numbered guide grid ------------------------------------ */
.numgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); }
.numgrid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.numgrid .s { padding: 32px 28px; border-right: 1px solid var(--line-soft); }
.numgrid .s:last-child { border-right: none; }
.numgrid .n { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--accent); margin-bottom: 16px; }
.numgrid h4 { font-family: var(--font-display); font-size: 22px; font-weight: 500; margin-bottom: 10px; letter-spacing: -0.01em; }
.numgrid p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }

/* ---- Millhurst Trading text logo lockup --------------------- */
.tlogo { display: inline-flex; flex-direction: column; gap: 6px; }
.tlogo .tl-main { font-family: var(--font-display); font-weight: 600; font-size: 30px; letter-spacing: -0.01em; line-height: .9; display: inline-flex; align-items: center; gap: 12px; }
.tlogo .tl-main .bar { width: 30px; height: 2px; background: var(--gold); }
.tlogo .tl-sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }

/* ---- Disclaimer note band ----------------------------------- */
.disc { background: var(--bg-alt); border: 1px solid var(--line-soft); padding: 20px 24px; display: flex; gap: 14px; align-items: flex-start; }
.disc .di { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); padding-top: 3px; white-space: nowrap; }
.disc p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; margin: 0; }

/* ---- Responsive for shared components ----------------------- */
@media (max-width: 1080px) {
  .src-cards { grid-template-columns: 1fr; }
  .cat-grid, .cat-grid.cols-4 { grid-template-columns: 1fr 1fr; }
  .spec-strip { grid-template-columns: 1fr 1fr; }
  .spec-link:nth-child(2) { border-right: none; }
  .spec-link:nth-child(1), .spec-link:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
  .numgrid, .numgrid.cols-3 { grid-template-columns: 1fr 1fr; }
  .numgrid .s:nth-child(2) { border-right: none; }
}
@media (max-width: 620px) {
  .cat-grid, .cat-grid.cols-2, .cat-grid.cols-4 { grid-template-columns: 1fr; }
  .spec-strip { grid-template-columns: 1fr; }
  .spec-link { border-right: none; border-bottom: 1px solid var(--line-soft); }
  .numgrid, .numgrid.cols-3 { grid-template-columns: 1fr; }
  .numgrid .s { border-right: none; border-bottom: 1px solid var(--line-soft); }
  .src-card { padding: 32px 26px; }
}

/* Trading nav accent */
.nav .nav-trading{color:var(--gold);}
.nav .nav-trading::after{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--accent);margin-left:6px;vertical-align:middle;}
.nav .nav-trading:hover{color:var(--accent);}


/* ---- Page transitions (cross-document view transitions) ------ */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: mm-page-out .26s ease both; }
  ::view-transition-new(root) { animation: mm-page-in .38s cubic-bezier(.22,.7,.3,1) both; }
  @keyframes mm-page-out { to { opacity: 0; transform: translateY(-10px); } }
  @keyframes mm-page-in { from { opacity: 0; transform: translateY(14px); } }
}
