/* =========================================================
   TKMM · v4
   Six switchable palettes. Every colour in the page is a token,
   so the whole site re-skins from one attribute on <html>.
   ========================================================= */

/* self-hosted — no external font request */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/space-grotesk-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/space-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/space-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/vazirmatn-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/vazirmatn-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/vazirmatn-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------
   PALETTES
   --------------------------------------------------------- */

/* 1 · زغال و زرده — charcoal ground, saffron yolk, brick */
:root,
html[data-palette="charcoal"] {
  --bg: #f7f3eb;
  --bg-2: #efe9de;
  --surface: #ffffff;
  --ink: #15171b;
  --muted: #6c6e73;
  --line: rgba(21, 23, 27, 0.14);

  --deep: #15171b;
  --deep-2: #0a0b0e;
  --on-deep: #f7f3eb;
  --on-deep-muted: rgba(247, 243, 235, 0.62);
  --line-deep: rgba(247, 243, 235, 0.17);

  --brand: #15171b;
  --accent: #f2a50c;
  --accent-lit: #ffc64b;
  --accent-dim: #b57506;
  --on-accent: #15171b;
  --accent-2: #c0451f;
  --on-accent-2: #fff4ef;
}

/* 2 · مزرعه — deep field green, wheat, rust */
html[data-palette="field"] {
  --bg: #f2f4ee;
  --bg-2: #e6ebe0;
  --surface: #ffffff;
  --ink: #141a16;
  --muted: #5d6a62;
  --line: rgba(20, 26, 22, 0.15);

  --deep: #11261c;
  --deep-2: #081610;
  --on-deep: #eef3ea;
  --on-deep-muted: rgba(238, 243, 234, 0.64);
  --line-deep: rgba(238, 243, 234, 0.18);

  --brand: #1b4332;
  --accent: #e0b12a;
  --accent-lit: #f6cf5c;
  --accent-dim: #a37c10;
  --on-accent: #17200f;
  --accent-2: #c1440e;
  --on-accent-2: #fff3ec;
}

/* 3 · فولاد — steel navy, amber, coral */
html[data-palette="steel"] {
  --bg: #f0f3f7;
  --bg-2: #e2e9f1;
  --surface: #ffffff;
  --ink: #0e1723;
  --muted: #5a6b80;
  --line: rgba(14, 23, 35, 0.15);

  --deep: #0d1b2a;
  --deep-2: #050d16;
  --on-deep: #eaf1f8;
  --on-deep-muted: rgba(234, 241, 248, 0.64);
  --line-deep: rgba(234, 241, 248, 0.18);

  --brand: #14385c;
  --accent: #f5a524;
  --accent-lit: #ffc45f;
  --accent-dim: #b0740d;
  --on-accent: #10202f;
  --accent-2: #e04b4b;
  --on-accent-2: #fff3f3;
}

/* 4 · خاک رس — terracotta, sand, pine */
html[data-palette="clay"] {
  --bg: #f9f3ea;
  --bg-2: #efe4d6;
  --surface: #fffcf7;
  --ink: #241812;
  --muted: #7c6455;
  --line: rgba(36, 24, 18, 0.15);

  --deep: #2c1910;
  --deep-2: #180c07;
  --on-deep: #f7eee3;
  --on-deep-muted: rgba(247, 238, 227, 0.64);
  --line-deep: rgba(247, 238, 227, 0.18);

  --brand: #8e3b1b;
  --accent: #e2a32a;
  --accent-lit: #f8c460;
  --accent-dim: #a97612;
  --on-accent: #2a1a0c;
  --accent-2: #3f6b52;
  --on-accent-2: #f0fbf5;
}

/* 5 · زیتون — olive, bronze, burnt orange */
html[data-palette="olive"] {
  --bg: #f5f3e9;
  --bg-2: #e9e6d6;
  --surface: #fdfcf6;
  --ink: #20231a;
  --muted: #6b7060;
  --line: rgba(32, 35, 26, 0.15);

  --deep: #232a1c;
  --deep-2: #13180f;
  --on-deep: #f2f1e4;
  --on-deep-muted: rgba(242, 241, 228, 0.64);
  --line-deep: rgba(242, 241, 228, 0.18);

  --brand: #4a5533;
  --accent: #c8912a;
  --accent-lit: #e6b658;
  --accent-dim: #90670f;
  --on-accent: #211f0d;
  --accent-2: #8c4a26;
  --on-accent-2: #fbf1e9;
}

/* 6 · شب — near-black page, amber (dark) */
html[data-palette="night"] {
  --bg: #0f1113;
  --bg-2: #16191d;
  --surface: #1a1e22;
  --ink: #f2eee7;
  --muted: #9a9da3;
  --line: rgba(242, 238, 231, 0.15);

  --deep: #08090b;
  --deep-2: #000000;
  --on-deep: #f2eee7;
  --on-deep-muted: rgba(242, 238, 231, 0.6);
  --line-deep: rgba(242, 238, 231, 0.15);

  --brand: #f2eee7;
  --accent: #f5a524;
  --accent-lit: #ffc45f;
  --accent-dim: #a86f0d;
  --on-accent: #0f1113;
  --accent-2: #e5533d;
  --on-accent-2: #17100e;
}

/* ---------------------------------------------------------
   NON-COLOUR TOKENS
   --------------------------------------------------------- */
:root {
  --sans: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  --lat: "Space Grotesk", "Vazirmatn", sans-serif;

  /* The seal is carried as an inline mask, not a linked image: CSS masks are
     CORS-checked and a linked file is treated as cross-origin under file://,
     which silently blanked the mark. Inline data is always same-origin. */
  --logo-mask: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAADcAQMAAAAhlF3CAAAABlBMVEX///////9VfPVsAAAAAXRSTlMAQObYZgAACm1JREFUeNrFmM+PJMlVxz8RmVQmVmkyWX6V5d6p9B44IBkV0gjaoujK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W0m2eZ2sIcddmpW4j3RVxs0uT8bgsn5Bo4KeMA9oy3VNAVj90icMj5Fm+Xs5VCKYFXtsCupIKOOd+DJ4z9JiijLY7XD7eGga9ye6Pf7m+N9HAbM0envrQ9RryYrZW0GsVt8GoMzJMw9JOLbVCyw40B38Mbs9QN/odVgxzAM5/+xA8Xtk1w2VcINfSxrY8FX4itIPvIYbTPxFQ35Mf/7uPpeJGlgi++0FB1wNS8YE8lZuFeZCnSK+iPsJT2f/JW3TD8f/n8N5HkbA2Q56ZjAAAAAElFTkSuQmCC");

  --pad: clamp(18px, 4.4vw, 52px);
  --sec-y: clamp(46px, 5.2vw, 76px);
  --e: cubic-bezier(0.2, 0.75, 0.25, 1);
  --e-out: cubic-bezier(0.16, 0.84, 0.3, 1);

  /* audience track: member = accent, buyer = accent-2 */
  --cta: var(--accent);
  --on-cta: var(--on-accent);
}
html[data-mode="buyer"] {
  --cta: var(--accent-2);
  --on-cta: var(--on-accent-2);
}
html[data-mode="member"] .for-buyer { display: none; }
html[data-mode="buyer"] .for-member { display: none; }

/* ---------------------------------------------------------
   BASE
   --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  scrollbar-color: var(--accent-dim) var(--bg-2);
  scrollbar-width: thin;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--accent-dim); }

body {
  margin: 0;
  overflow-x: clip;          /* clip, not hidden — hidden breaks position:sticky */
  direction: rtl;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background 0.5s var(--e), color 0.5s var(--e);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }
ul, dl, dd { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: fixed; top: -80px; inset-inline-start: 14px; z-index: 400;
  background: var(--deep); color: var(--on-deep); padding: 11px 18px; font-weight: 700;
}
.skip:focus { top: 14px; }

/* ---------------------------------------------------------
   SHARED
   --------------------------------------------------------- */
.wrap { width: 100%; max-width: 1340px; margin-inline: auto; padding-inline: var(--pad); }

.lat {
  font-family: var(--lat); font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}

.sec { padding-block: var(--sec-y); position: relative; }
.sec + .sec { border-top: 1px solid var(--line); }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--lat); font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--accent); flex: none; }
.eyebrow::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: 0.26; }

.sec-head { margin-bottom: clamp(24px, 3vw, 42px); }
.sec-head h2 {
  font-size: clamp(28px, 4vw, 54px);
  color: var(--brand); max-width: 17ch; text-wrap: balance;
}
.sec-head .sub {
  margin-top: 14px; max-width: 56ch; color: var(--muted);
  font-size: clamp(15px, 1.15vw, 17.5px); line-height: 1.75;
}
.on-deep-block { background: var(--deep); color: var(--on-deep); }
.on-deep-block .sec-head h2 { color: var(--on-deep); }
.on-deep-block .sec-head .sub,
.on-deep-block .eyebrow { color: var(--on-deep-muted); }

.note {
  font-size: 12.5px; line-height: 1.7; color: var(--muted);
  border-inline-start: 2px solid var(--line); padding-inline-start: 12px;
}
.on-deep-block .note { color: var(--on-deep-muted); border-color: var(--line-deep); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 24px; font-weight: 700; font-size: 15px;
  border: 1.5px solid transparent; position: relative;
  transition: 0.28s var(--e); white-space: nowrap;
}
.btn .ar { transition: transform 0.28s var(--e); }
.btn:hover .ar { transform: translateX(-5px); }
.btn-fill { background: var(--cta); color: var(--on-cta); border-color: var(--cta); }
.btn-fill:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-line { border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--brand); background: var(--brand); color: var(--bg); }
.on-deep-block .btn-line,
.hero .btn-line { border-color: var(--line-deep); color: var(--on-deep); }
.on-deep-block .btn-line:hover,
.hero .btn-line:hover { background: var(--on-deep); color: var(--deep); border-color: var(--on-deep); }

/* reveal */
.rv { opacity: 0; transform: translateY(14px); }
.rv-on {
  opacity: 1; transform: none;
  transition: opacity 0.55s var(--e), transform 0.55s var(--e);
  transition-delay: calc(var(--d, 0) * 55ms);
}
/* masked line reveal for headings */
.mask { display: block; overflow: hidden; }
.mask > i { display: block; font-style: normal; transform: translateY(110%); }
.mask-on > i {
  transform: none;
  transition: transform 0.85s var(--e-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}

/* seal, recoloured to the palette through a mask */
.seal {
  display: grid; place-items: center; border-radius: 50%;
  background: var(--bg); flex: none; position: relative;
}
.seal i {
  width: 78%; height: 78%; background: var(--brand);
  -webkit-mask: var(--logo-mask) center / contain no-repeat;
  mask: var(--logo-mask) center / contain no-repeat;
}
.seal-dark { background: var(--on-deep); }
.seal-dark i { background: var(--deep); }

/* grain */
.grain { position: relative; }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  opacity: 0.055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* =========================================================
   LOADER
   ========================================================= */
.load {
  position: fixed; inset: 0; z-index: 300; background: var(--deep);
  display: grid; place-items: center; gap: 20px; align-content: center;
  transition: opacity 0.5s var(--e), visibility 0.5s;
}
.load .seal { width: 84px; height: 84px; }
.load-bar { width: 168px; height: 2px; background: var(--line-deep); overflow: hidden; }
.load-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.9s var(--e-out); }
.load.go .load-bar i { width: 100%; }
.load.out { opacity: 0; visibility: hidden; }

/* =========================================================
   PROGRESS RAIL
   ========================================================= */
.rail {
  position: fixed; inset-block: 0; inset-inline-start: 0; width: 42px; z-index: 90;
  display: flex; align-items: center; justify-content: center; pointer-events: none;
}
.rail-track { position: relative; width: 1px; height: 42vh; background: var(--line); }
.rail-fill { position: absolute; inset-inline: 0; top: 0; height: 0; background: var(--accent); }
.rail-dots {
  position: absolute; left: -5px; top: 0; height: 100%; width: 11px;
  display: flex; flex-direction: column; justify-content: space-between; pointer-events: auto;
}
.rail-dots a { width: 11px; height: 11px; display: grid; place-items: center; position: relative; }
.rail-dots a::after {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--muted); opacity: 0.6; transition: 0.3s var(--e);
}
.rail-dots a:hover::after { opacity: 1; transform: scale(1.5); }
.rail-dots a.on::after { background: var(--accent); opacity: 1; transform: scale(1.9); }
.rail-dots a span {
  position: absolute; inset-inline-end: 18px; white-space: nowrap;
  font-family: var(--lat); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--ink); color: var(--bg); padding: 3px 8px;
  opacity: 0; transform: translateX(-5px); transition: 0.28s var(--e);
}
.rail-dots a:hover span, .rail-dots a:focus-visible span { opacity: 1; transform: none; }

/* =========================================================
   HEADER
   ========================================================= */
.bar {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 18px;
  padding: 12px clamp(14px, 3.4vw, 42px);
  color: #fff; transition: 0.35s var(--e);
}
.bar.solid {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.bar-brand { display: flex; align-items: center; gap: 10px; flex: none; }
.bar-brand .seal { width: 38px; height: 38px; background: #fff; }
.bar-brand .seal i { background: var(--deep); }
.bar.solid .bar-brand .seal { background: var(--brand); }
.bar.solid .bar-brand .seal i { background: var(--bg); }
.bar-brand b { font-size: 14.5px; font-weight: 800; letter-spacing: -0.01em; display: block; }
.bar-brand em {
  font-style: normal; font-family: var(--lat); font-size: 9px;
  letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.6;
}
.bar-nav { display: flex; gap: 2px; margin-inline-start: auto; }
.bar-nav a { padding: 8px 12px; font-size: 14px; font-weight: 600; position: relative; }
.bar-nav a::after {
  content: ""; position: absolute; inset-inline: 12px; bottom: 3px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s var(--e);
}
.bar-nav a:hover::after, .bar-nav a.on::after { transform: scaleX(1); }

.mode {
  display: flex; flex: none; padding: 3px; gap: 2px;
  border: 1.5px solid currentColor; border-radius: 100px;
}
.mode button {
  padding: 6px 14px; font-size: 12.5px; font-weight: 700; border-radius: 100px;
  opacity: 0.6; transition: 0.25s var(--e);
}
.mode button[aria-pressed="true"] { background: var(--cta); color: var(--on-cta); opacity: 1; }

.burger { display: none; flex: none; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px 0; }

.sheet {
  position: fixed; inset: 0; z-index: 120; background: var(--deep); color: var(--on-deep);
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  padding: 8vh var(--pad); overflow-y: auto; visibility: hidden;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1), visibility 0.5s;
}
.sheet.open { transform: none; visibility: visible; }
.sheet a { font-size: clamp(26px, 8vw, 42px); font-weight: 800; padding: 7px 0; letter-spacing: -0.02em; }
.sheet .x { position: absolute; top: 18px; inset-inline-end: 18px; font-size: 30px; line-height: 1; }
.sheet .tel { margin-top: 28px; font-family: var(--lat); letter-spacing: 0.1em; opacity: 0.7; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; background: var(--deep-2);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 56%;
  filter: grayscale(1) contrast(1.08) brightness(0.8);
  transform: scale(1.04);
}
.hero-bg img.ken { animation: ken 26s var(--e-out) forwards; }
@keyframes ken { from { transform: scale(1.04); } to { transform: scale(1.2); } }
.hero-tint {
  position: absolute; inset: 0; z-index: 1;
  background: var(--deep); mix-blend-mode: multiply; opacity: 0.52;
}
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(44% 46% at 84% 10%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 68%),
    linear-gradient(to top, rgba(0, 0, 0, 0.82) 4%, rgba(0, 0, 0, 0.34) 46%, rgba(0, 0, 0, 0.1) 100%);
}
/* a faint six-column rule, the way a drawing sheet is set out */
.hero-grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(to left, rgba(255, 255, 255, 0.075) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
}
.hero-spot {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: radial-gradient(300px circle at var(--mx, 70%) var(--my, 30%), color-mix(in srgb, var(--accent-lit) 20%, transparent), transparent 70%);
  transition: opacity 0.6s linear;
}
.hero:hover .hero-spot { opacity: 1; }

.hero-top {
  position: relative; z-index: 2; width: 100%; max-width: 1340px; margin-inline: auto;
  padding: 104px var(--pad) 0; display: flex; justify-content: flex-end;
}
.hero-site {
  direction: ltr;
  font-family: var(--lat); font-size: 10.5px; font-weight: 500; letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.72); text-align: left; line-height: 2.1;
  border-left: 2px solid var(--accent); padding-left: 11px; min-height: 4.4em;
}
.hero-site b { display: block; font-weight: 500; min-height: 1.2em; }
.caret { display: inline-block; width: 7px; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-body {
  position: relative; z-index: 2; margin-top: auto;
  width: 100%; max-width: 1340px; margin-inline: auto;
  padding: 0 var(--pad) clamp(22px, 3vw, 40px);
}
.hero-kick {
  display: inline-flex; align-items: center; gap: 11px;
  font-size: 13px; font-weight: 600; color: var(--accent-lit); margin-bottom: 16px;
}
.hero-kick::before { content: ""; width: 30px; height: 2px; background: var(--accent); }
.hero h1 {
  font-size: clamp(48px, 10.4vw, 132px); font-weight: 900;
  line-height: 1.0; letter-spacing: -0.045em; color: #fff; margin-bottom: 22px;
}
.hero h1 .lo > i { color: var(--accent); }
.hero-lead {
  max-width: 44ch; font-size: clamp(15.5px, 1.3vw, 19px);
  color: rgba(255, 255, 255, 0.8); line-height: 1.72;
}
.hero-lead b { color: #fff; font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* bottom rail — a scrim, never a coloured bar over the photograph */
.hero-rail {
  position: relative; z-index: 2; flex: none;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.12));
  backdrop-filter: blur(3px);
  overflow: hidden;
}
.conv-track { direction: ltr; display: flex; width: max-content; animation: conv 38s linear infinite; }
.hero-rail:hover .conv-track { animation-play-state: paused; }
@keyframes conv { to { transform: translateX(-50%); } }
.conv-item {
  direction: rtl; display: flex; align-items: baseline; gap: 10px;
  padding: 13px 26px; color: rgba(255, 255, 255, 0.9);
  border-inline-end: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap; font-size: 14px; font-weight: 600;
}
.conv-item i { font-style: normal; font-family: var(--lat); font-size: 10.5px; letter-spacing: 0.14em; color: var(--accent); }

.hero-cue {
  position: absolute; z-index: 2; bottom: 84px; left: var(--pad);
  display: flex; align-items: center; gap: 9px;
  font-family: var(--lat); font-size: 9.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.6);
}
.hero-cue u { display: block; width: 1px; height: 34px; background: rgba(255, 255, 255, 0.3); position: relative; overflow: hidden; }
.hero-cue u::after {
  content: ""; position: absolute; inset-inline: 0; height: 14px; background: var(--accent);
  animation: cue 2s var(--e) infinite;
}
@keyframes cue { 0% { top: -14px; } 100% { top: 34px; } }

/* =========================================================
   CREED
   ========================================================= */
.creed { background: var(--deep); color: var(--on-deep); position: relative; overflow: hidden; }
.creed .wrap { position: relative; z-index: 1; padding-block: clamp(52px, 6.4vw, 96px); }
.creed-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(30px, 5vw, 88px); align-items: start;
}
.creed-tag {
  font-family: var(--lat); font-size: 10.5px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 22px; display: block;
}
.creed blockquote {
  margin: 0; position: relative;
  font-size: clamp(25px, 3.5vw, 48px); font-weight: 800;
  line-height: 1.22; letter-spacing: -0.025em;
}
.creed blockquote em { font-style: normal; color: var(--accent); }
.creed .qm {
  display: block; font-family: var(--lat); font-size: 62px; line-height: 0.5;
  color: var(--accent); opacity: 0.4; margin-bottom: 16px; height: 30px;
}
.creed-sub { margin-top: 22px; max-width: 46ch; color: var(--on-deep-muted); font-size: 15.5px; }

.facts { border-top: 1px solid var(--line-deep); }
.fact {
  display: flex; align-items: baseline; gap: 16px;
  padding: 15px 0; border-bottom: 1px solid var(--line-deep);
}
.fact dt {
  font-size: clamp(26px, 2.9vw, 40px); font-weight: 800; line-height: 1;
  color: var(--accent-lit); letter-spacing: -0.03em; flex: none; min-width: 2.6ch;
}
.fact .lead {
  flex: 1; height: 1px; border-bottom: 1px dotted var(--line-deep);
  transform: translateY(-5px) scaleX(0); transform-origin: right;
}
.fact.rv-on .lead {
  transform: translateY(-5px) scaleX(1);
  transition: transform 0.8s var(--e) calc(var(--d, 0) * 55ms + 140ms);
}
.fact dd { flex: none; font-size: 14px; color: var(--on-deep-muted); max-width: 22ch; text-align: left; }

/* =========================================================
   SEC 01 — THE CHAIN (pinned horizontal scroll)
   ========================================================= */
.chain { position: relative; background: var(--deep-2); }
.chain-vp {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--deep-2); color: var(--on-deep);
}
.chain-head {
  flex: none; padding: 74px var(--pad) 0;
  width: 100%; max-width: 1340px; margin-inline: auto;
}
.chain-head h2 { font-size: clamp(22px, 2.8vw, 38px); color: var(--on-deep); }
.chain-head .eyebrow { color: var(--on-deep-muted); }
.chain-meta {
  display: flex; align-items: center; gap: 16px; margin-top: 12px;
  font-family: var(--lat); font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--on-deep-muted);
}
.chain-prog { flex: 1; height: 2px; background: var(--line-deep); position: relative; max-width: 420px; }
.chain-prog i { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: var(--accent); }
.chain-count { color: var(--accent); font-weight: 600; }

.chain-track {
  flex: 1 1 0; min-height: 0;
  display: flex; align-items: stretch; gap: 16px;
  width: max-content; padding: 20px var(--pad) 30px;
  will-change: transform;
}
.stop {
  width: clamp(270px, 50vw, 560px); flex: none;
  display: grid; grid-template-rows: minmax(0, 1fr) auto;
  background: var(--deep); border: 1px solid var(--line-deep);
  overflow: hidden; position: relative;
}
.stop-fig { position: relative; min-height: 0; overflow: hidden; background: var(--deep-2); }
.stop-fig img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.9) contrast(1.05) brightness(0.92);
  transition: transform 1s var(--e);
}
.stop:hover .stop-fig img { transform: scale(1.05); }
.stop-n {
  position: absolute; top: 0; inset-inline-start: 0; z-index: 1;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--lat); font-weight: 700; font-size: 12px; letter-spacing: 0.14em;
  padding: 7px 13px;
}
.stop-body { padding: clamp(16px, 1.8vw, 26px); }
.stop-body h3 { font-size: clamp(18px, 1.6vw, 24px); color: var(--on-deep); }
.stop-body p { margin-top: 10px; font-size: 14.5px; color: var(--on-deep-muted); line-height: 1.7; }
.stop-spec { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.stop-spec span {
  font-size: 12px; padding: 5px 10px; color: var(--on-deep-muted);
  border: 1px solid var(--line-deep);
}

/* =========================================================
   SEC 02 — MILL
   ========================================================= */
.mill { background: var(--deep); color: var(--on-deep); overflow: hidden; }
.silo-scroll {
  overflow-x: auto; overflow-y: hidden;
  margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); padding-bottom: 8px;
}
.silo-svg { width: 100%; min-width: 820px; height: auto; }

#gGrain .g1 { stop-color: var(--accent-lit); }
#gGrain .g2 { stop-color: var(--accent); }
#gGrain .g3 { stop-color: var(--accent-dim); }
#tint feFlood { flood-color: var(--deep); }   /* recolours the seal on the mill tower */

.silo-body { fill: url(#gSteel); }
.silo-tex { fill: url(#gCorr); }
.silo-round { fill: url(#gRound); }
.silo-out { fill: none; stroke: var(--line-deep); stroke-width: 2; }
.silo-roof { fill: url(#gRoof); stroke: var(--line-deep); stroke-width: 2; }
.silo-cap, .silo-plinth { fill: var(--on-deep); opacity: 0.4; }
.silo-lbl { font-family: var(--sans); font-size: 15px; fill: var(--on-deep); opacity: 0.66; direction: rtl; }
.silo-val { font-family: var(--sans); direction: rtl; }
.silo-val .v { font-size: 26px; font-weight: 800; fill: var(--accent-lit); }
.silo-unit { font-family: var(--sans); font-size: 13px; fill: var(--on-deep); opacity: 0.5; direction: rtl; }
.tube { fill: var(--on-deep); fill-opacity: 0.12; stroke: var(--line-deep); stroke-width: 1.5; }
.pkt { fill: var(--accent); animation: pkt 4.6s linear infinite; }
@keyframes pkt {
  from { transform: translateX(0); opacity: 0; }
  8% { opacity: 1; } 92% { opacity: 1; }
  to { transform: translateX(1085px); opacity: 0; }
}
.tower-body { fill: var(--on-deep); fill-opacity: 0.07; stroke: var(--line-deep); stroke-width: 2; }
.tower-roof { fill: var(--accent-2); }
.tower-win { fill: var(--on-deep); opacity: 0.26; }
.ground { stroke: var(--line-deep); stroke-width: 2; }
.ground-hatch { stroke: var(--on-deep); stroke-opacity: 0.12; stroke-width: 1; }
.fill {
  transform: scaleY(0); transform-box: fill-box; transform-origin: bottom;
  transition: transform 1.5s var(--e-out); transition-delay: calc(var(--i, 0) * 100ms);
}
.silos.on .fill { transform: scaleY(var(--f, 0.9)); }

.mill-foot {
  margin-top: 20px; display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between;
}
.mill-addr { font-size: 13px; line-height: 1.9; color: var(--on-deep-muted); text-align: left; }

/* ration mixer */
.mix {
  margin-top: clamp(38px, 4.6vw, 66px); padding-top: clamp(30px, 3.6vw, 48px);
  border-top: 1px solid var(--line-deep);
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 3.4vw, 56px); align-items: start;
}
.mix h3 { font-size: clamp(20px, 2.2vw, 30px); color: var(--on-deep); }
.mix .lede { margin-top: 12px; color: var(--on-deep-muted); font-size: 15px; }

.mix-pick { margin-top: 24px; }
.mix-pick > .lbl {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--lat); font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.mix-tabs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  padding: 6px; border: 1px solid var(--line-deep); background: var(--deep-2);
}
.mix-tabs button {
  padding: 14px 10px; font-size: 14px; font-weight: 700; text-align: center;
  color: var(--on-deep); border: 1px solid transparent; transition: 0.24s var(--e);
  display: grid; gap: 3px; line-height: 1.35;
}
.mix-tabs button small { font-family: var(--lat); font-size: 10px; letter-spacing: 0.14em; opacity: 0.55; font-weight: 500; }
.mix-tabs button:hover { border-color: var(--accent); color: var(--accent-lit); }
.mix-tabs button[aria-pressed="true"] {
  background: var(--accent); color: var(--on-accent); border-color: var(--accent);
}
.mix-tabs button[aria-pressed="true"] small { opacity: 0.7; }
.mix-tabs.nudge { animation: nudge 1.4s var(--e) 2; }
@keyframes nudge {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); }
  40% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 26%, transparent); }
}
.mix-read { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.mix-read span {
  font-size: 12.5px; padding: 6px 11px; color: var(--on-deep-muted); border: 1px solid var(--line-deep);
}

.mix-bar { display: flex; height: 78px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-deep); }
.mix-bar i { display: block; height: 100%; flex: 0 0 var(--w, 0%); background: var(--c); transition: flex-basis 0.55s var(--e); }
.mix-legend { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.mix-legend li {
  display: flex; align-items: center; gap: 9px; padding: 8px 0;
  border-bottom: 1px solid var(--line-deep); font-size: 14px; color: var(--on-deep-muted);
}
.mix-legend li u { width: 11px; height: 11px; flex: none; background: var(--c); text-decoration: none; }
.mix-legend li b { margin-inline-start: auto; font-weight: 700; color: var(--on-deep); }
.mix-legend li.zero { opacity: 0.32; }
.m1 { --c: var(--accent); }
.m2 { --c: color-mix(in srgb, var(--accent) 52%, var(--deep-2)); }
.m3 { --c: color-mix(in srgb, var(--accent-lit) 62%, var(--on-deep)); }
.m4 { --c: color-mix(in srgb, var(--on-deep) 62%, var(--muted)); }
.m5 { --c: color-mix(in srgb, var(--on-deep) 34%, var(--deep-2)); }
.m6 { --c: var(--accent-2); }
.m7 { --c: color-mix(in srgb, var(--accent-2) 46%, var(--deep-2)); }

/* =========================================================
   SEC 03 — DOORS
   ========================================================= */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.door { background: var(--surface); padding: clamp(22px, 2.6vw, 38px); display: flex; flex-direction: column; position: relative; transition: 0.35s var(--e); }
.door::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: var(--c);
  transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--e);
}
html[data-mode="member"] .door-m::before, html[data-mode="buyer"] .door-b::before { transform: scaleX(1); }
html[data-mode="member"] .door-m, html[data-mode="buyer"] .door-b { background: var(--bg-2); }
.door .who { font-family: var(--lat); font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c); margin-bottom: 10px; }
.door h3 { font-size: clamp(20px, 2.2vw, 30px); color: var(--brand); }
.door > p { margin-top: 10px; color: var(--muted); max-width: 40ch; font-size: 15px; }
.door ul { margin: 18px 0 22px; }
.door li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.door li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 9px; background: var(--c); }
.door .acts { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.door-m { --c: var(--accent-dim); }
.door-b { --c: var(--accent-2); }
.door-m .btn-fill { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.door-b .btn-fill { background: var(--accent-2); border-color: var(--accent-2); color: var(--on-accent-2); }

/* =========================================================
   SEC 04 — BRANDS (compact)
   ========================================================= */
.brand-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.8vw, 26px); }
.brand {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: clamp(14px, 1.8vw, 26px);
  padding: clamp(18px, 2vw, 28px); background: var(--surface); border: 1px solid var(--line);
  transition: 0.35s var(--e);
}
.brand:hover { border-color: var(--c); transform: translateY(-3px); }
.brand .since { font-family: var(--lat); font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c); }
.brand h3 { font-size: clamp(21px, 2.3vw, 32px); color: var(--brand); margin-top: 7px; }
.brand p { margin-top: 8px; font-size: 14px; color: var(--muted); max-width: 30ch; line-height: 1.65; }
.brand .tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 13px; }
.brand .tags span { font-size: 11.5px; padding: 4px 9px; border: 1px solid var(--line); color: var(--muted); }
.brand-pack { width: clamp(128px, 16vw, 220px); flex: none; }
.brand-pack img { width: 100%; mix-blend-mode: multiply; transition: transform 0.5s var(--e); }
html[data-palette="night"] .brand-pack { background: #fff; padding: 6px; }
html[data-palette="night"] .brand-pack img { mix-blend-mode: multiply; }
.brand:hover .brand-pack img { transform: scale(1.05) rotate(-1.5deg); }
.b1 { --c: var(--brand); }
.b2 { --c: var(--accent-2); }

/* =========================================================
   SEC 05 — BOARD
   ========================================================= */
.board-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(16px, 2.2vw, 34px); align-items: stretch; }
.lead-news { position: relative; overflow: hidden; background: var(--deep); min-height: 340px; display: flex; align-items: flex-end; }
.lead-news img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.5) contrast(1.05) brightness(0.8); transition: transform 1.2s var(--e);
}
.lead-news:hover img { transform: scale(1.06); }
.lead-news::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 8%, rgba(0, 0, 0, 0.3) 62%, transparent 100%);
}
.lead-news .txt { position: relative; z-index: 1; padding: clamp(20px, 2.4vw, 34px); color: #fff; }
.lead-news .tag { display: inline-block; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; padding: 5px 11px; }
.lead-news h3 { font-size: clamp(19px, 2.1vw, 28px); margin-top: 13px; line-height: 1.3; }
.lead-news p { margin-top: 9px; color: rgba(255, 255, 255, 0.76); font-size: 14px; }

.tickets { display: flex; flex-direction: column; gap: 9px; }
.ticket {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  padding: 15px 18px; padding-inline-start: 46px; transition: 0.28s var(--e); flex: 1;
}
.ticket::before {
  content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 27px;
  background-image: radial-gradient(circle 3px at 13.5px 12px, var(--bg) 98%, transparent 100%);
  background-size: 27px 24px; background-repeat: repeat-y;
  border-inline-end: 1px dashed var(--line);
}
.ticket:hover { border-color: var(--brand); transform: translateX(-3px); }
.ticket .when { font-size: 12px; font-weight: 600; color: var(--accent-2); }
.ticket h4 { font-size: 15.5px; font-weight: 700; margin-top: 5px; line-height: 1.5; letter-spacing: 0; }
.ticket p { margin-top: 4px; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.board-more { margin-top: 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* =========================================================
   SEC 06 — KNOWLEDGE
   ========================================================= */
.know-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(20px, 3.4vw, 52px); align-items: start; }
.mag-cover {
  position: relative; overflow: hidden; aspect-ratio: 3 / 4;
  background: var(--brand); color: var(--bg);
  padding: clamp(16px, 1.9vw, 26px); display: flex; flex-direction: column;
  box-shadow: -16px 16px 0 -5px var(--accent);
}
html[data-palette="night"] .mag-cover { color: var(--deep); }
.mag-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mag-top .seal { width: 42px; height: 42px; background: var(--bg); }
.mag-top .seal i { background: var(--brand); }
.mag-iss { font-family: var(--lat); font-size: 9.5px; font-weight: 600; letter-spacing: 0.2em; color: var(--accent-lit); }
.mag-cover h4 { margin-top: auto; font-size: clamp(23px, 2.9vw, 38px); font-weight: 900; line-height: 1.08; }
.mag-lines { margin-top: 16px; display: grid; }
.mag-lines span { font-size: 13px; line-height: 1.55; opacity: 0.78; border-top: 1px solid currentColor; padding: 7px 0; }
.mag-band { margin-top: 14px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; padding: 7px 11px; }
.mag .cap { margin-top: 16px; }
.mag .cap b { font-size: 18px; color: var(--brand); display: block; }
.mag .cap p { font-size: 13.5px; color: var(--muted); margin-top: 6px; }

.arts { border-top: 1px solid var(--line); }
.art { display: block; padding: clamp(14px, 1.9vw, 24px) 0; border-bottom: 1px solid var(--line); transition: 0.28s var(--e); }
.art:hover { padding-inline: 14px; background: var(--surface); }
.art .k { font-size: 12px; font-weight: 600; color: var(--accent-2); }
.art h3 { font-size: clamp(17px, 1.8vw, 24px); color: var(--brand); margin-top: 5px; }
.art p { color: var(--muted); font-size: 14.5px; margin-top: 6px; max-width: 54ch; }
.art .go { display: inline-flex; align-items: center; gap: 7px; margin-top: 9px; font-size: 13px; font-weight: 600; color: var(--brand); }
.art .go .ar { transition: transform 0.28s var(--e); }
.art:hover .go .ar { transform: translateX(-5px); }

.clients { margin-top: clamp(34px, 4vw, 56px); padding-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--line); }
.clients-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.clients-head h3 { font-size: 16px; font-weight: 700; letter-spacing: 0; }
.clients-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.8vw, 30px); align-items: center; }
.clients-row img {
  width: 100%; mix-blend-mode: multiply;
  filter: grayscale(1) brightness(1.14) contrast(1.2); opacity: 0.6; transition: 0.35s var(--e);
}
html[data-palette="night"] .clients-row div { background: #fff; padding: 10px 14px; }
html[data-palette="night"] .clients-row img { mix-blend-mode: multiply; opacity: 0.85; }
.clients-row div:hover img { opacity: 1; }

/* =========================================================
   JOIN
   ========================================================= */
.join { background: var(--deep); color: var(--on-deep); position: relative; overflow: hidden; }
.join-grid { display: grid; grid-template-columns: 176px 1fr; gap: clamp(22px, 3.4vw, 54px); align-items: center; }
.stamp { position: relative; width: 176px; height: 176px; }
.stamp .ring { position: absolute; inset: 0; animation: spin 36s linear infinite; }
.stamp .ring text { font-family: var(--lat); font-size: 10px; letter-spacing: 0.24em; fill: var(--on-deep); fill-opacity: 0.55; direction: ltr; }
@keyframes spin { to { transform: rotate(-360deg); } }
.stamp .seal { position: absolute; inset: 24px; }
.join h2 { font-size: clamp(25px, 3.6vw, 46px); line-height: 1.15; }
.join h2 em { font-style: normal; color: var(--accent); }
.join-tel {
  display: inline-block; margin-top: 18px; font-weight: 800;
  font-size: clamp(24px, 4vw, 46px); letter-spacing: 0.01em;
  border-bottom: 3px solid var(--accent); padding-bottom: 3px;
}
.join-cta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.join-sites { margin-top: clamp(30px, 3.8vw, 52px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-deep); border: 1px solid var(--line-deep); }
.join-sites div { background: var(--deep); padding: 18px; }
.join-sites .k { font-family: var(--lat); font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.join-sites b { display: block; margin-top: 8px; font-size: 16px; }
.join-sites p { margin-top: 5px; font-size: 13.5px; color: var(--on-deep-muted); line-height: 1.65; }

.ticker { background: var(--accent); color: var(--on-accent); overflow: hidden; }
.ticker-track { direction: ltr; display: flex; width: max-content; animation: conv 28s linear infinite; }
.ticker-track span { direction: rtl; padding: 11px 24px; font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.ticker-track span::after { content: "◆"; margin-inline-start: 24px; font-size: 8px; vertical-align: middle; opacity: 0.45; }

/* =========================================================
   PALETTE PICKER
   ========================================================= */
.pal-sec { background: var(--bg-2); }
.pal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.4vw, 18px); }
.pal {
  text-align: right; padding: 16px; background: var(--surface);
  border: 1px solid var(--line); transition: 0.28s var(--e); position: relative;
  display: block; width: 100%;
}
.pal:hover { transform: translateY(-3px); border-color: var(--brand); }
.pal[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.pal-chips { display: flex; height: 42px; overflow: hidden; }
.pal-chips i { flex: 1; display: block; }
.pal-name { display: block; margin-top: 12px; font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.pal-lat { display: block; margin-top: 2px; font-family: var(--lat); font-size: 9.5px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.pal-on {
  position: absolute; top: 16px; inset-inline-end: 16px;
  background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700;
  padding: 2px 8px; opacity: 0; transition: 0.24s var(--e);
}
.pal[aria-pressed="true"] .pal-on { opacity: 1; }

/* =========================================================
   FOOTER
   ========================================================= */
.foot { background: var(--deep-2); color: var(--on-deep-muted); padding-block: clamp(30px, 4vw, 52px); font-size: 13.5px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 26px; }
.foot h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 11px; }
.foot li { padding: 3px 0; }
.foot-legal { display: block; margin-top: 10px; font-size: 12.5px; opacity: 0.62; }
.foot-end {
  margin-top: clamp(24px, 3vw, 38px); padding-top: 18px; border-top: 1px solid var(--line-deep);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  font-family: var(--lat); font-size: 10.5px; letter-spacing: 0.12em; opacity: 0.65;
}

/* =========================================================
   TOAST (demo feedback in place of dead links)
   ========================================================= */
.toast {
  position: fixed; z-index: 250; bottom: 22px; inset-inline-start: 50%;
  transform: translate(50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); padding: 12px 20px;
  font-size: 14px; font-weight: 600; transition: 0.3s var(--e);
  max-width: calc(100vw - 32px); text-align: center;
}
.toast.on { opacity: 1; transform: translate(50%, 0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-height: 780px) and (min-width: 900px) {
  .hero-top { padding-top: 86px; }
  .hero h1 { font-size: clamp(42px, 7vw, 84px); margin-bottom: 14px; }
  .hero-lead { font-size: 15.5px; }
  .hero-cta { margin-top: 18px; }
  .hero-cue { display: none; }
  .chain-head { padding-top: 74px; }
  .chain-head h2 { font-size: clamp(20px, 2.4vw, 30px); }
}
@media (max-width: 1180px) {
  .rail { display: none; }
}
@media (max-width: 1000px) {
  .bar-nav { display: none; }
  .burger { display: block; margin-inline-start: auto; }
  .creed-grid { grid-template-columns: 1fr; }
  .mix { grid-template-columns: 1fr; }
  .know-grid { grid-template-columns: 1fr; }
  .mag-cover { max-width: 320px; }
  .board-grid { grid-template-columns: 1fr; }
  .join-grid { grid-template-columns: 1fr; }
  .stamp { width: 130px; height: 130px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .pal-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  /* the chain stops being pinned and becomes a native swipe rail */
  .chain-vp { position: static; height: auto; }
  .chain-track {
    width: auto; flex: none; transform: none !important;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .stop { width: min(80vw, 380px); scroll-snap-align: center; }
  .stop-fig { min-height: 190px; }
  .chain-head { padding-top: 0; }
  .chain { padding-top: var(--sec-y); }
  .chain-prog { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .doors { grid-template-columns: 1fr; }
  .brand-row { grid-template-columns: 1fr; }
  .brand { grid-template-columns: 1fr auto; }
  .join-sites { grid-template-columns: 1fr; }
  .mix-legend { grid-template-columns: 1fr; }
  .fact dd { max-width: 15ch; font-size: 13px; }
}
@media (max-width: 700px) {
  .bar { gap: 9px; padding-inline: 13px; }
  .bar-brand .hide-s { display: none; }
  .bar-brand b { font-size: 13px; }
  .bar-brand em { display: none; }
  .bar-brand .seal { width: 34px; height: 34px; }
  .mode button { padding: 6px 11px; font-size: 12px; }
  .mix-tabs { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .clients-row { grid-template-columns: 1fr 1fr; gap: 20px; }
  .foot-grid { grid-template-columns: 1fr; }
  .pal-grid { grid-template-columns: 1fr; }
  .brand-pack { width: 110px; }
}

/* =========================================================
   MOTION PREFERENCE
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .rv { opacity: 1; transform: none; }
  .mask > i { transform: none; }
  .silos .fill { transform: scaleY(var(--f, 0.9)); }
  .load { display: none; }
  .hero-spot, .hero-cue { display: none; }
  .chain-vp { position: static; height: auto; }
  .chain-track { width: auto; flex: none; transform: none !important; overflow-x: auto; }
  .stop { width: min(80vw, 380px); }
}
