/* ============================================================
   THE TRADE TRIBE — "The Sharp Edge"
   Production stylesheet, built from the Trade Tribe design system
   (claude.ai/design handoff, June 2026).
   Contents: 1 Tokens · 2 Base · 3 Utilities · 4 Components ·
             5 Layout & chrome · 6 Sections · 7 Responsive
   ============================================================ */

/* ============ 1. TOKENS ============ */
:root {
  /* Core brand (TTT_BrandGuide_Nov22) */
  --ttt-gunmetal:        #17232f;
  --ttt-deep-teal:       #004e65;
  --ttt-turquoise:       #3cbfc0;
  --ttt-turquoise-vivid: #09cdc8;
  --ttt-white:           #ffffff;

  /* Ink ramp */
  --ttt-ink-950: #0d161e;
  --ttt-ink-900: #17232f;
  --ttt-ink-800: #20303d;
  --ttt-ink-700: #2e404f;
  --ttt-ink-600: #455767;
  --ttt-ink-500: #61727f;
  --ttt-ink-400: #8593a0;
  --ttt-ink-300: #aab6c0;
  --ttt-ink-200: #ccd5dc;
  --ttt-ink-100: #e6ebef;
  --ttt-ink-50:  #f4f7f9;

  /* Turquoise ramp */
  --ttt-turq-900: #00343f;
  --ttt-turq-800: #004e65;
  --ttt-turq-700: #066f73;
  --ttt-turq-600: #0a9b99;
  --ttt-turq-500: #09cdc8;
  --ttt-turq-400: #3cbfc0;
  --ttt-turq-300: #6fd6d4;
  --ttt-turq-200: #a6e6e4;
  --ttt-turq-100: #d3f4f3;
  --ttt-turq-50:  #ecfbfa;

  /* Market / semantic */
  --ttt-profit:      #1faa6e;
  --ttt-profit-soft: #e2f5ec;
  --ttt-loss:        #e0584e;
  --ttt-loss-soft:   #fcebe9;
  --ttt-gold:        #e8b04b;
  --ttt-gold-soft:   #fbf1da;

  /* Cookie banner - the brand's own two blues (turquoise + gunmetal),
     used at full strength here (not the muted tones used elsewhere) so it
     never blends into the dark hero it sits over. 7.1:1 contrast. */
  --ttt-cookie-blue:      var(--ttt-turquoise);
  --ttt-cookie-blue-dark: var(--ttt-gunmetal);

  /* Semantic aliases */
  --surface-page:       var(--ttt-white);
  --surface-sunken:     var(--ttt-ink-50);
  --surface-inverse:    var(--ttt-gunmetal);
  --text-primary:   var(--ttt-gunmetal);
  --text-secondary: var(--ttt-ink-600);
  --text-muted:     var(--ttt-ink-400);
  --text-inverse:   var(--ttt-white);
  --text-brand:     var(--ttt-turq-700);
  --text-link:      var(--ttt-turq-600);
  --border-default: var(--ttt-ink-200);
  --accent:         var(--ttt-turquoise);
  --focus-ring: rgba(9, 205, 200, 0.45);

  /* Type */
  --font-display: 'Merriweather', 'Merriweather Fallback', Georgia, 'Times New Roman', serif;
  --font-body:    'Lato', 'Lato Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --fw-light: 300; --fw-regular: 400; --fw-bold: 700; --fw-black: 900;
  --fs-display: clamp(3rem, 1.5rem + 5vw, 5.25rem);
  --fs-h1:      clamp(2.5rem, 1.5rem + 4vw, 4.25rem);
  --fs-h2:      clamp(2rem, 1.3rem + 2.8vw, 3.25rem);
  --fs-h3:      1.5rem;
  --fs-quote:   clamp(1.75rem, 1.1rem + 2.6vw, 3rem);
  --fs-eyebrow: 0.75rem;
  --fs-lead:    1.1875rem;
  --fs-body:    1.0625rem;
  --lh-display: 0.96; --lh-tight: 1.04; --lh-snug: 1.18; --lh-normal: 1.5; --lh-relaxed: 1.65;
  --ls-display: -0.02em; --ls-eyebrow: 0.22em; --ls-caps: 0.02em; --ls-button: 0.08em;

  /* Spacing & layout */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4rem;
  --space-9: 6rem; --space-10: 8rem;
  --container-max: 1240px;
  --container-narrow: 760px;
  --section-pad-y: clamp(4rem, 2.5rem + 7vw, 8.5rem);
  --gutter: clamp(1.25rem, 0.5rem + 2.5vw, 2.5rem);

  /* Geometry — near-square; the blade does the talking */
  --radius-xs: 0px; --radius-sm: 2px; --radius-md: 3px; --radius-lg: 4px;
  --chamfer: 16px; --chamfer-sm: 10px;
  --hairline-dark: rgba(255, 255, 255, 0.10);
  --hairline-dark-strong: rgba(255, 255, 255, 0.18);

  /* Light, not shadow */
  --shadow-md: 0 10px 30px rgba(13, 22, 30, 0.12);
  --shadow-brand: 0 0 0 1px rgba(9, 205, 200, 0.55), 0 0 28px rgba(9, 205, 200, 0.28);
  --glow-line: 0 0 12px rgba(9, 205, 200, 0.55);

  /* Motion — fast and decisive */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 120ms; --dur-base: 240ms;
}

/* ============ 2. BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background: var(--ttt-ink-950);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
}
img { max-width: 100%; display: block; }
a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: var(--ttt-turquoise-vivid); color: var(--ttt-gunmetal); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

h1, h2, h3 { margin: 0; }
.ttt-display, .ttt-h1, .ttt-h2, .ttt-h3 {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  text-transform: uppercase;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  font-optical-sizing: auto;
  /* kerning/ligature work is only worth paying for at display sizes */
  text-rendering: optimizeLegibility;
}
.ttt-display { font-size: var(--fs-display); line-height: var(--lh-display); }
.ttt-h1 { font-size: var(--fs-h1); line-height: var(--lh-display); }
.ttt-h2 { font-size: var(--fs-h2); line-height: var(--lh-tight); }
.ttt-h3 { font-size: var(--fs-h3); font-weight: var(--fw-bold); line-height: var(--lh-snug); letter-spacing: var(--ls-caps); }

.ttt-lead { font-size: var(--fs-lead); line-height: var(--lh-relaxed); color: var(--text-secondary); margin: 0; text-wrap: pretty; }
.ttt-num { font-variant-numeric: tabular-nums lining-nums; }
.accent { color: var(--ttt-turquoise-vivid); }

/* ============ 3. SIGNATURE UTILITIES ============ */
.ttt-cut    { clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%); }
.ttt-cut-lg { clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%); }
.ttt-cut-sm { clip-path: polygon(0 0, calc(100% - var(--chamfer-sm)) 0, 100% var(--chamfer-sm), 100% 100%, 0 100%); }

.ttt-grain { position: relative; }
.ttt-grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
.ttt-grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 72px 72px;
}
.ttt-duotone { position: relative; overflow: hidden; }
.ttt-duotone > img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.92);
}
.ttt-duotone::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(160deg, rgba(9,205,200,0.32), rgba(23,35,47,0.55) 70%);
  mix-blend-mode: color;
}
.ttt-duotone::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(to top, rgba(13,22,30,0.55), transparent 45%);
}

/* ============ 4. COMPONENTS ============ */

/* ---- Eyebrow: tracked caps with a leading blade dash ---- */
.eyebrow {
  display: inline-flex; align-items: flex-start; gap: 12px; margin: 0;
  font-family: var(--font-body); font-weight: var(--fw-black);
  font-size: var(--fs-eyebrow); letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase; color: var(--text-brand); line-height: 1.5;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; flex: 0 0 auto; margin-top: 8px;
  background: linear-gradient(90deg, currentColor 0%, currentColor 55%, transparent 100%);
}
.eyebrow--light { color: var(--ttt-turquoise-vivid); }
.eyebrow--muted { color: var(--text-muted); }

/* ---- Button: blade-chamfered, tracked caps ---- */
.btn-glow { display: inline-block; transition: filter var(--dur-base) var(--ease-out); }
.btn-glow--block { display: block; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px;
  font-family: var(--font-body); font-weight: var(--fw-black); font-size: 12px;
  text-transform: uppercase; letter-spacing: var(--ls-button); line-height: 1;
  border: 1px solid transparent; border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 0 100%);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.985); }
.btn--sm { padding: 10px 18px; font-size: 11px; gap: 8px; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); }
.btn--lg { padding: 19px 34px; font-size: 13px; gap: 11px; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
.btn--full { display: flex; width: 100%; }

.btn--primary { background: var(--accent); color: var(--ttt-gunmetal); }
.btn--primary:hover { background: var(--ttt-turquoise-vivid); }
.btn--on-dark { background: var(--ttt-turquoise-vivid); color: var(--ttt-gunmetal); }
.btn--on-dark:hover { background: var(--ttt-turq-300); }
.btn--secondary { background: transparent; color: var(--text-primary); border-color: var(--ttt-ink-900); }
.btn--secondary:hover { border-color: var(--ttt-turq-600); color: var(--ttt-turq-700); }
.btn--outline-dark { background: transparent; color: var(--ttt-white); border-color: var(--hairline-dark-strong); }
.btn--outline-dark:hover { border-color: var(--ttt-turquoise-vivid); color: var(--ttt-turquoise-vivid); }
/* glow lives on the wrapper: clip-path eats box-shadow */
.btn-glow:has(.btn--primary:hover),
.btn-glow:has(.btn--on-dark:hover) { filter: drop-shadow(0 0 14px rgba(9,205,200,0.55)); }
.btn .lucide { width: 16px; height: 16px; }

/* ---- Badge ---- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-body); font-weight: var(--fw-black);
  letter-spacing: 0.14em; text-transform: uppercase;
  font-variant-numeric: tabular-nums; border-radius: var(--radius-xs);
  white-space: nowrap; padding: 4px 8px; font-size: 10px;
}
.badge--outline-dark { background: transparent; color: var(--ttt-turquoise); box-shadow: inset 0 0 0 1px var(--hairline-dark-strong); }

/* ---- Blade rule: tapering hairline ---- */
.blade-rule {
  display: block; height: 2px; width: 100%; color: var(--ttt-turquoise); flex: 0 0 auto;
  background: linear-gradient(90deg, currentColor 0%, currentColor 55%, transparent 100%);
}
.blade-rule--v { display: inline-block; width: 2px; height: 96px; background: linear-gradient(180deg, currentColor 0%, currentColor 55%, transparent 100%); }
.blade-rule--glow { box-shadow: var(--glow-line); }
.blade-rule--thin { height: 1px; }

/* ---- Stat: enormous counting figure ---- */
.stat-value {
  font-family: var(--font-display); font-weight: var(--fw-black);
  font-optical-sizing: auto; font-variant-numeric: tabular-nums lining-nums;
  font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.25rem); line-height: 0.95;
  letter-spacing: -0.02em; color: var(--text-primary);
}
.stat--dark .stat-value { color: var(--ttt-turquoise-vivid); }
.stat-label {
  margin-top: 10px; font-size: 12px; font-weight: var(--fw-bold);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-secondary); max-width: 26ch;
}
.stat--dark .stat-label { color: rgba(255,255,255,0.62); }

/* ---- Accordion ---- */
.acc { border-top: 1px solid var(--border-default); }
.acc-item { border-bottom: 1px solid var(--border-default); }
.acc-q {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  width: 100%; text-align: left; background: transparent; border: none;
  padding: 20px 2px; cursor: pointer;
  font-family: var(--font-body); font-weight: var(--fw-bold); font-size: 16px;
  color: var(--text-primary);
  transition: color var(--dur-fast) var(--ease-out);
}
.acc-q .acc-x {
  font-weight: var(--fw-regular); font-size: 22px; line-height: 1;
  color: var(--ttt-turquoise-vivid); flex: 0 0 auto;
  transition: transform var(--dur-base) var(--ease-out);
}
.acc-q[aria-expanded="true"] { color: var(--ttt-turq-700); }
.acc-q[aria-expanded="true"] .acc-x { transform: rotate(45deg); }
.acc-a { padding: 0 36px 22px 2px; font-size: 15px; line-height: 1.7; color: var(--text-secondary); }
.acc-a[hidden] { display: none; }
.acc--dark { border-top-color: var(--hairline-dark); }
.acc--dark .acc-item { border-bottom-color: var(--hairline-dark); }
.acc--dark .acc-q { color: #fff; }
.acc--dark .acc-q[aria-expanded="true"] { color: var(--ttt-turquoise-vivid); }
.acc--dark .acc-a { color: rgba(255,255,255,0.72); }

/* ---- Rating ---- */
.rating { display: inline-flex; gap: 2px; color: var(--ttt-gold); font-size: 16px; line-height: 1; letter-spacing: 2px; }

/* ---- Avatar ---- */
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%; overflow: hidden;
  background: var(--ttt-deep-teal); color: var(--ttt-turquoise);
  font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 17px;
  flex: 0 0 auto;
}
.avatar--ring { box-shadow: 0 0 0 2px var(--ttt-ink-950), 0 0 0 4px var(--ttt-turquoise); }

/* ---- Input ---- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field-label {
  font-family: var(--font-body); font-weight: var(--fw-black); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-secondary);
}
.field-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-page); border: 1px solid var(--ttt-ink-300);
  border-radius: var(--radius-sm); padding: 0 14px;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field-box:focus-within { border-color: var(--ttt-turquoise); box-shadow: 0 0 0 1px var(--ttt-turquoise), var(--glow-line); }
.field-box .lucide { width: 17px; height: 17px; color: var(--text-muted); flex: 0 0 auto; }
.field-box input {
  flex: 1; border: none; outline: none; background: transparent;
  padding: 13px 0; font-family: var(--font-body); font-size: 15px; color: var(--text-primary);
  min-width: 0;
}

/* ============ 5. LAYOUT & CHROME ============ */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 880px; }

/* ---- Sticky frosted header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,22,30,0.35);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.site-header.scrolled { background: rgba(13,22,30,0.9); border-bottom-color: rgba(255,255,255,0.12); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.site-header .logo img { height: 34px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a.nav-link {
  position: relative; display: inline-block; padding: 10px 14px;
  font-weight: var(--fw-black); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.75); text-decoration: none;
}
.site-nav a.nav-link:hover { color: #fff; }
.site-nav a.nav-link[aria-current="page"] { color: var(--ttt-turquoise-vivid); }
.site-nav a.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: linear-gradient(90deg, var(--ttt-turquoise-vivid) 0%, var(--ttt-turquoise-vivid) 55%, transparent 100%);
  box-shadow: var(--glow-line);
}
.site-nav .btn-glow { margin-left: 12px; }
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--hairline-dark-strong);
  color: #fff; width: 44px; height: 44px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle .lucide { width: 22px; height: 22px; }

/* ---- Footer ---- */
.site-footer { background: var(--ttt-ink-950); color: #fff; padding-top: var(--space-8); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-6); padding-bottom: var(--space-7); }
.site-footer .footer-blurb { color: rgba(255,255,255,0.65); font-size: 14px; line-height: 1.6; max-width: 34ch; margin: 0; }
.footer-h {
  font-family: var(--font-body); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ttt-turquoise); margin: 0 0 10px; font-weight: var(--fw-bold);
}
.site-footer a.f-link { color: rgba(255,255,255,0.7); font-size: 14px; text-decoration: none; display: block; padding: 5px 0; }
.site-footer a.f-link:hover { color: #fff; text-decoration: underline; }
.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.08); margin: 0;
  padding: var(--space-5) 0 0; color: rgba(255,255,255,0.45);
  font-size: 12px; line-height: 1.7; max-width: 100ch;
}
.footer-legal {
  padding: var(--space-4) 0 var(--space-5); display: flex;
  justify-content: space-between; gap: 20px; flex-wrap: wrap;
  color: rgba(255,255,255,0.4); font-size: 12px;
}
.footer-legal a { color: rgba(255,255,255,0.55); }

/* ---- Cookie banner ----
   Bright blue background with dark blue text/buttons - a distinct
   two-blue treatment (not the site's turquoise accent) so it reads
   clearly against the dark homepage hero it usually sits over. The pair
   is checked at 5.7:1 contrast (WCAG AA needs 4.5:1). */
.cookie-banner {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: 20px; z-index: 1100;
  margin: 0 auto; max-width: 660px;
  background: var(--ttt-cookie-blue); color: var(--ttt-cookie-blue-dark);
  border: 1px solid rgba(7, 18, 51, 0.25);
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
  padding: 18px 22px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  font-size: 14px; line-height: 1.5;
  box-shadow: 0 14px 34px rgba(20, 55, 180, 0.4);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner .cookie-actions { display: flex; gap: 10px; margin-left: auto; align-items: center; }
.cookie-banner a { color: var(--ttt-cookie-blue-dark); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner .btn--on-dark { background: var(--ttt-cookie-blue-dark); color: #fff; }
.cookie-banner .btn--on-dark:hover { background: #0d1d5c; }
.cookie-banner .btn--outline-dark { background: transparent; border-color: var(--ttt-cookie-blue-dark); color: var(--ttt-cookie-blue-dark); }
.cookie-banner .btn--outline-dark:hover { border-color: #0d1d5c; color: #0d1d5c; }

/* ============ 6. SECTIONS ============ */
.section { padding: var(--section-pad-y) 0; }
.section--ink { background: var(--ttt-ink-950); color: #fff; }
.section--gunmetal { background: var(--ttt-gunmetal); color: #fff; }
.section--bone { background: var(--ttt-ink-50); }
.section--white { background: var(--surface-page); }
.section--bt-light { border-top: 1px solid var(--ttt-ink-200); }
.section--bt-dark { border-top: 1px solid var(--hairline-dark); }
.section--ink .ttt-h1, .section--ink .ttt-h2,
.section--gunmetal .ttt-h1, .section--gunmetal .ttt-h2 { color: #fff; }
.on-dark-body { color: rgba(255,255,255,0.74); }

/* Split editorial grids */
.split { display: grid; gap: var(--space-7); align-items: start; }
.split--sidebar  { grid-template-columns: 1fr 1.6fr; }
.split--copy     { grid-template-columns: 1fr 1.4fr; gap: var(--space-8); }
.split--even     { grid-template-columns: 1fr 1fr; }
.split--story    { grid-template-columns: 0.9fr 1.1fr; gap: var(--space-8); }
.split--center   { align-items: center; }
.prose { font-size: 17px; line-height: 1.75; color: var(--text-secondary); }
.prose p { margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text-primary); }
.section--ink .prose, .section--gunmetal .prose { color: rgba(255,255,255,0.74); }
.section--ink .prose strong, .section--gunmetal .prose strong { color: #fff; }

/* ---- Hero (home) ---- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ttt-ink-950); color: #fff;
  padding-top: clamp(36px, 4.2vw, 60px);
}
.hero-photo {
  position: absolute; top: 0; right: 0; bottom: 0; width: 42%;
  /* Feather the photo's LEFT edge by masking (dissolving) it into the section
     background, grid lines and all. No covering layer means no hard seam. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.45) 24%, #000 56%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.45) 24%, #000 56%);
}
.hero-photo > img { object-position: 60% 20%; }
.hero-photo .hero-fade { display: none; } /* desktop: mask handles the blend */
.hero .container { position: relative; z-index: 3; padding-bottom: clamp(52px, 6vw, 90px); }
.hero h1 { color: #fff; margin: 18px 0 0; max-width: 15ch; }
.hero-lead { display: flex; gap: 24px; align-items: flex-start; margin-top: 22px; }
.hero-lead p { font-size: var(--fs-lead); line-height: 1.6; color: rgba(255,255,255,0.74); max-width: 42ch; margin: 0; }
.hero-cta { margin-top: 26px; }
.cta-micro {
  margin-top: 14px; font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: var(--fw-bold); color: rgba(255,255,255,0.5);
}
.hero-trust {
  position: absolute; right: var(--gutter); bottom: 44px; z-index: 4;
  background: rgba(13,22,30,0.82); backdrop-filter: blur(6px);
  border: 1px solid var(--hairline-dark-strong);
  padding: 16px 20px; display: flex; gap: 14px; align-items: center;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
.hero-trust p { font-size: 12px; font-weight: var(--fw-bold); letter-spacing: 0.04em; color: rgba(255,255,255,0.85); max-width: 21ch; line-height: 1.45; margin: 0; }

/* ---- Stats bar ---- */
.stats-bar { background: var(--ttt-ink-950); color: #fff; border-top: 1px solid var(--hairline-dark); }
.stats-bar .grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stats-bar .cell { padding: var(--space-7) var(--space-5); }
.stats-bar .cell + .cell { border-left: 1px solid var(--hairline-dark); }
.stats-bar .cell--spark { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.spark-label { font-size: 12px; font-weight: var(--fw-bold); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.62); }

/* ---- Page hero (inner pages) ---- */
.page-hero { position: relative; overflow: hidden; background: var(--ttt-ink-950); color: #fff; padding-top: var(--space-8); padding-bottom: var(--space-8); }
.page-hero h1 { color: #fff; margin: 22px 0 0; }
.page-hero .hero-lead { margin-top: 26px; }
.page-hero .hero-lead .blade-rule--v { height: 64px; }
.page-hero .hero-lead p { max-width: 50ch; }
.page-hero .hero-cta { margin-top: 30px; }
/* Subtle duotone atmosphere behind the headline on inner-page heroes */
.page-hero--media .page-hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.page-hero--media .page-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; filter: grayscale(1) contrast(1.05) brightness(0.5); }
.page-hero--media .page-hero-media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(150deg, rgba(9,205,200,0.30), rgba(13,22,30,0.45) 65%); mix-blend-mode: color; }
.page-hero--media .page-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ttt-ink-950) 0%, rgba(13,22,30,0.82) 46%, rgba(13,22,30,0.5) 100%); }
.page-hero--media > .container { position: relative; z-index: 2; }

/* ---- Numbered editorial rows ---- */
.num-row {
  display: grid; grid-template-columns: 110px 1fr; gap: var(--space-6);
  padding: var(--space-7) 0; border-top: 1px solid var(--ttt-ink-200);
}
.num-row .num {
  font-family: var(--font-display); font-weight: var(--fw-black); font-optical-sizing: auto;
  font-size: clamp(3.5rem, 3rem + 2vw, 5rem); line-height: 0.9;
  color: transparent; -webkit-text-stroke: 1.5px var(--ttt-turq-600);
}
.num-row .row-head { display: flex; align-items: center; gap: 12px; }
.num-row .row-head .lucide { width: 20px; height: 20px; color: var(--ttt-turq-700); flex: 0 0 auto; }
.num-row p { margin: 14px 0 0; color: var(--text-secondary); font-size: 16px; line-height: 1.65; max-width: 54ch; }

.num-row--dark { grid-template-columns: 90px 1fr; padding: var(--space-6) 0; border-top-color: var(--hairline-dark); }
.num-row--dark .num { font-size: 44px; -webkit-text-stroke: 1.5px var(--ttt-turquoise-vivid); }
.num-row--dark h3 { color: #fff; }
.num-row--dark p { color: rgba(255,255,255,0.7); max-width: 62ch; margin-top: 10px; font-size: 15px; }

/* ---- Quote section ---- */
.quote-mark {
  position: absolute; top: -60px; left: 2%;
  font-family: var(--font-display); font-weight: var(--fw-black);
  font-size: 440px; line-height: 1; color: rgba(9,205,200,0.07);
  pointer-events: none; user-select: none;
}
blockquote.big-quote { margin: 40px 0 0; max-width: 920px; }
blockquote.big-quote p {
  font-family: var(--font-display); font-weight: var(--fw-bold); font-style: italic;
  font-optical-sizing: auto; font-size: var(--fs-quote); line-height: 1.28;
  letter-spacing: -0.01em; margin: 0; color: #fff; max-width: 28ch;
}
.quote-attr { display: flex; align-items: center; gap: 18px; margin-top: 36px; flex-wrap: wrap; }
.quote-attr .q-name { font-weight: var(--fw-black); font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.quote-attr .q-role { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 3px; }
.quote-nav { margin-left: auto; display: flex; gap: 10px; }
.quote-nav button {
  width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--hairline-dark-strong); color: #fff; cursor: pointer;
  border-radius: var(--radius-xs);
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.quote-nav button:hover { border-color: var(--ttt-turquoise-vivid); color: var(--ttt-turquoise-vivid); }
.quote-nav .lucide { width: 18px; height: 18px; }
.quote-disclaimer {
  margin-top: 32px; font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: var(--fw-bold); color: rgba(255,255,255,0.4);
}
.quote-disclaimer--light { color: var(--text-muted); }

/* Light-surface quote (Tribe page) */
blockquote.mid-quote { margin: 32px 0 0; }
blockquote.mid-quote p {
  font-family: var(--font-display); font-weight: var(--fw-bold); font-style: italic;
  font-optical-sizing: auto; font-size: 26px; line-height: 1.35; margin: 0;
  color: var(--text-primary); max-width: 30ch;
}
.mid-quote-attr { display: flex; align-items: center; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.mid-quote-attr .q-name { font-weight: var(--fw-black); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-primary); }
.mid-quote-attr .q-role { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ---- Checklists (for you / not for you) ---- */
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.6; color: var(--text-secondary); }
.check-list .lucide { width: 17px; height: 17px; margin-top: 2px; flex: 0 0 auto; }
.check-list--yes .lucide { color: var(--ttt-profit); }
.check-list--no .lucide { color: var(--ttt-loss); }
.check-list--dark li { color: rgba(255,255,255,0.9); align-items: center; }
.check-list--dark .lucide { width: 20px; height: 20px; color: var(--ttt-turquoise-vivid); margin-top: 0; }

/* ---- Learn grid (Tribe) ---- */
.learn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); margin-top: var(--space-7); }
.learn-item { display: flex; gap: 20px; align-items: flex-start; padding-top: var(--space-5); border-top: 1px solid var(--ttt-ink-200); }
.learn-item .lucide { width: 22px; height: 22px; color: var(--ttt-turq-700); margin-top: 4px; flex: 0 0 auto; }
.learn-item h3 { font-size: 19px; }
.learn-item p { margin: 12px 0 0; color: var(--text-secondary); font-size: 15px; line-height: 1.65; }

/* ---- Final CTA with sword watermark ---- */
.cta-watermark {
  position: absolute; right: 4%; top: 50%;
  transform: translateY(-50%) rotate(14deg);
  height: 160%; width: auto; opacity: 0.14; pointer-events: none;
  filter: drop-shadow(0 0 30px rgba(9,205,200,0.35));
}
.final-cta h2 { max-width: 17ch; }
.final-cta .lead { font-size: var(--fs-lead); line-height: 1.6; color: rgba(255,255,255,0.72); margin: 22px 0 36px; max-width: 46ch; }

/* ---- Photo frames ---- */
.photo-frame { border: 1px solid var(--ttt-ink-200); }
.photo-frame--dark { border-color: var(--hairline-dark); }

/* ---- Chamfered content card (light) — stands a widget/embed off a bone or white section ---- */
.card-cut {
  position: relative; background: var(--surface-page);
  border: 1px solid var(--ttt-ink-200);
  padding: var(--space-6);
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
}

/* ---- Masterclass sign-up ---- */
.signup-card {
  position: relative; background: #fff; padding: var(--space-6);
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
  border: 1px solid var(--ttt-turquoise); color: var(--text-primary);
}
.signup-card h3 { color: var(--text-primary); }
.signup-success { text-align: center; padding: var(--space-6) var(--space-4); }
.signup-success .tick {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--ttt-profit-soft); color: var(--ttt-profit);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.signup-success .tick .lucide { width: 32px; height: 32px; }

/* ============ 7. RESPONSIVE ============ */
@media (max-width: 1020px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .split--sidebar, .split--copy, .split--even, .split--story { grid-template-columns: 1fr; gap: var(--space-6); }
  .split--story > .ttt-duotone, .split--story > .photo-frame { height: 420px !important; }
  /* Sidebar/copy column images: cap height once stacked so portraits don't tower */
  .split--copy > div > .photo-frame, .split--sidebar > div > .photo-frame { height: clamp(300px, 56vw, 420px) !important; }
  .learn-grid { grid-template-columns: 1fr; }
  .stats-bar .grid { grid-template-columns: 1fr 1fr; }
  .stats-bar .cell { border-top: 1px solid var(--hairline-dark); }
  .stats-bar .cell:nth-child(-n+2) { border-top: none; }
  .stats-bar .cell:nth-child(3) { border-left: none; }
  .quote-mark { font-size: 260px; top: -30px; }

  /* Hero: copy first, photo becomes a band below it */
  .hero { display: flex; flex-direction: column; padding-bottom: 0; }
  .hero .container { order: 1; padding-bottom: 0; }
  .hero-trust { order: 2; position: relative; right: auto; bottom: auto; margin: var(--space-6) var(--gutter) 0; display: inline-flex; align-self: flex-start; }
  .hero-photo { order: 3; position: relative; width: 100%; height: 320px; inset: auto; margin-top: var(--space-6); -webkit-mask-image: none; mask-image: none; }
  .hero-photo .hero-fade { display: block; position: absolute; inset: 0; z-index: 2; background: linear-gradient(to bottom, var(--ttt-ink-950) 0%, rgba(13,22,30,0.15) 40%, transparent 70%); }

  /* Mobile nav */
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    /* solid: page text must never ghost through behind the nav links */
    background: var(--ttt-ink-950);
    border-bottom: 1px solid var(--hairline-dark-strong);
    padding: 10px var(--gutter) 24px;
  }
  .site-nav.open { display: flex; }
  .site-nav a.nav-link { padding: 16px 0; font-size: 13px; border-bottom: 1px solid var(--hairline-dark); }
  .site-nav a.nav-link[aria-current="page"]::after { left: 0; right: auto; width: 44px; bottom: 10px; }
  .site-nav .btn-glow { margin: 18px 0 0; }
  .site-nav .btn { width: 100%; }
}

@media (max-width: 560px) {
  /* Tighter display scale: at 390px the full-size H1 pushes the hero CTA
     below the fold on every page */
  :root {
    --fs-display: clamp(2.4rem, 1.4rem + 4.6vw, 3rem);
    --fs-h1: clamp(2.1rem, 1.3rem + 3.6vw, 2.6rem);
  }
  .hero h1 { margin-top: 20px; }
  .hero-lead { margin-top: 24px; }
  .hero-cta { margin-top: 28px; }
  .stats-bar .grid { grid-template-columns: 1fr; }
  .stats-bar .cell { border-left: none !important; border-top: 1px solid var(--hairline-dark); }
  .stats-bar .cell:first-child { border-top: none; }
  .num-row { grid-template-columns: 64px 1fr; gap: var(--space-4); }
  .num-row .num { font-size: 2.6rem; }
  .num-row--dark { grid-template-columns: 56px 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .quote-nav { margin-left: 0; }
  .hero-lead { gap: 16px; }
  .cookie-banner { left: 12px; right: 12px; }
}

/* ============ 8. MOTION / MICRO-INTERACTIONS ============ */
/* All transform/opacity only (compositor-friendly). Reduced-motion neutralises
   everything via the block below. JS only adds .reveal-pending to elements that
   load BELOW the fold, so nothing is hidden if JS is unavailable and nothing
   above the fold ever flashes. */

/* Scroll reveal */
.reveal-pending { opacity: 0; transform: translateY(20px); }
.reveal-pending.reveal-in {
  opacity: 1; transform: none;
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

/* Testimonial crossfade */
.big-quote, .quote-attr { transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out); }
[data-quotes].is-fading .big-quote,
[data-quotes].is-fading .quote-attr { opacity: 0; transform: translateY(6px); }

/* CTA arrow eases forward on hover */
.btn .lucide { transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .lucide { transform: translateX(3px); }

/* Colour photo frames: gentle zoom within the blade frame on hover */
.photo-frame img { transition: transform 0.5s var(--ease-out); }
.photo-frame:hover img { transform: scale(1.04); }

/* Accordion answers ease open */
.acc-a:not([hidden]) { animation: ttt-acc-in 0.28s var(--ease-out); }
@keyframes ttt-acc-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal-pending { opacity: 1 !important; transform: none !important; }
}
