/* =====================================================================
   Intrinsic League Trading LLC — Design System
   Single stylesheet. No framework dependency.
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root{
  /* Brand */
  --brand:        #00A34A;
  --brand-600:    #008C3F;
  --brand-400:    #23C46B;
  --brand-soft:   rgba(0,163,74,.10);
  --brand-line:   rgba(0,163,74,.28);

  /* Accent (warm sand) */
  --sand:         #C8A24B;
  --sand-soft:    rgba(200,162,75,.14);

  /* Neutrals — dark */
  --ink:          #0A0E0D;
  --ink-2:        #101614;
  --ink-3:        #17201D;
  --ink-4:        #1F2A26;

  /* Neutrals — light */
  --paper:        #FFFFFF;
  --paper-2:      #F6F8F6;
  --paper-3:      #EDF1EE;

  /* Text */
  --text:         #0D1412;
  --text-2:       #46514D;
  --text-3:       #6B7671;
  --on-dark:      #FFFFFF;
  --on-dark-2:    rgba(255,255,255,.68);
  --on-dark-3:    rgba(255,255,255,.46);

  /* Lines */
  --line:         #E2E8E4;
  --line-dark:    rgba(255,255,255,.10);
  --line-dark-2:  rgba(255,255,255,.16);

  /* Radii */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadows */
  --sh-1: 0 1px 2px rgba(11,20,17,.05), 0 4px 14px rgba(11,20,17,.05);
  --sh-2: 0 2px 6px rgba(11,20,17,.06), 0 18px 40px rgba(11,20,17,.09);
  --sh-3: 0 30px 70px rgba(11,20,17,.18);

  /* Type */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Sora", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Rhythm */
  --sect:    clamp(64px, 8vw, 118px);
  --sect-sm: clamp(48px, 6vw, 84px);
  --gut:     24px;
  --maxw:    1240px;

  --header-h: 76px;
}

/* ---------- 2. Reset ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; scroll-padding-top:calc(var(--header-h) + 20px); }
body{
  margin:0;
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.7;
  color:var(--text);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}
img,svg,video{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
button,input,select,textarea{ font:inherit; color:inherit; }
button{ cursor:pointer; background:none; border:0; }
ul,ol{ margin:0; padding:0; list-style:none; }
table{ border-collapse:collapse; width:100%; }
hr{ border:0; border-top:1px solid var(--line); margin:0; }
::selection{ background:var(--brand); color:#fff; }

h1,h2,h3,h4,h5{
  font-family:var(--font-head);
  font-weight:600;
  line-height:1.14;
  letter-spacing:-.022em;
  margin:0 0 .55em;
  color:inherit;
}
p{ margin:0 0 1.05em; }
p:last-child{ margin-bottom:0; }

.h-xxl{ font-size:clamp(2.5rem, 1.4rem + 4.4vw, 4.6rem); }
.h-xl { font-size:clamp(2.05rem, 1.4rem + 2.6vw, 3.35rem); }
.h-lg { font-size:clamp(1.65rem, 1.25rem + 1.6vw, 2.4rem); }
.h-md { font-size:clamp(1.3rem, 1.1rem + .8vw, 1.6rem); }
.h-sm { font-size:1.1rem; }

.lead{ font-size:clamp(1.02rem,.97rem + .28vw,1.16rem); color:var(--text-2); line-height:1.75; }
.muted{ color:var(--text-3); }
.small{ font-size:.875rem; }
.mono{ font-family:var(--font-mono); font-size:.8rem; letter-spacing:.02em; }

/* ---------- 3. Layout ---------- */
.container{ width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:var(--gut); }
.container-wide{ max-width:1440px; }
.section{ padding-block:var(--sect); position:relative; }
.section-sm{ padding-block:var(--sect-sm); }
.section-tight{ padding-block:clamp(36px,4vw,60px); }

.grid{ display:grid; gap:clamp(20px,2.4vw,34px); }
.g-2{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.g-3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.g-4{ grid-template-columns:repeat(4,minmax(0,1fr)); }
.split{ display:grid; grid-template-columns:1.05fr .95fr; gap:clamp(30px,4.4vw,72px); align-items:center; }
.split-wide{ grid-template-columns:1fr 1.15fr; }
.stack{ display:flex; flex-direction:column; }
.flex{ display:flex; }
.wrap{ flex-wrap:wrap; }
.items-center{ align-items:center; }
.between{ justify-content:space-between; }
.gap-8{ gap:8px } .gap-12{ gap:12px } .gap-16{ gap:16px } .gap-24{ gap:24px }
.mt-8{margin-top:8px} .mt-16{margin-top:16px} .mt-24{margin-top:24px} .mt-32{margin-top:32px} .mt-40{margin-top:40px} .mt-56{margin-top:56px}
.mb-0{margin-bottom:0}
.text-center{ text-align:center; }
.mx-auto{ margin-inline:auto; }
.maxw-64{ max-width:64ch; } .maxw-52{ max-width:52ch; } .maxw-44{ max-width:44ch; }

.bg-soft{ background:var(--paper-2); }
.bg-dark{ background:var(--ink); color:var(--on-dark); }
.bg-dark .lead,.bg-dark p{ color:var(--on-dark-2); }
.bg-dark .muted{ color:var(--on-dark-3); }

.skip-link{
  position:absolute; left:-9999px; top:0; z-index:200;
  background:var(--brand); color:#fff; padding:12px 20px; border-radius:0 0 var(--r-sm) 0;
}
.skip-link:focus{ left:0; }

:focus-visible{ outline:2px solid var(--brand-400); outline-offset:3px; border-radius:4px; }

/* ---------- 4. Eyebrow / section heads ---------- */
.eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--font-mono); font-size:.72rem; font-weight:500;
  letter-spacing:.16em; text-transform:uppercase;
  color:var(--brand); margin-bottom:18px;
}
.eyebrow::before{
  content:""; width:26px; height:1px; background:var(--brand); flex:none;
}
.bg-dark .eyebrow{ color:var(--brand-400); }
.bg-dark .eyebrow::before{ background:var(--brand-400); }

.sect-head{ max-width:760px; margin-bottom:clamp(34px,4vw,60px); }
.sect-head.center{ margin-inline:auto; text-align:center; }
.sect-head.center .eyebrow::before{ display:none; }
.sect-head p{ color:var(--text-2); }
.bg-dark .sect-head p{ color:var(--on-dark-2); }

.head-row{ display:flex; align-items:flex-end; justify-content:space-between; gap:32px; flex-wrap:wrap; margin-bottom:clamp(30px,3.6vw,52px); }
.head-row .sect-head{ margin-bottom:0; }

/* ---------- 5. Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font-family:var(--font-head); font-weight:600; font-size:.9rem; letter-spacing:-.005em;
  padding:14px 26px; border-radius:var(--r-pill);
  border:1px solid transparent; white-space:nowrap;
  transition:transform .2s cubic-bezier(.4,0,.2,1), background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn svg{ width:16px; height:16px; flex:none; transition:transform .25s; }
.btn:hover{ transform:translateY(-2px); }
.btn:hover svg.arr{ transform:translateX(3px); }
.btn:active{ transform:translateY(0); }

.btn-primary{ background:var(--brand); color:#fff; box-shadow:0 8px 22px rgba(0,163,74,.26); }
.btn-primary:hover{ background:var(--brand-600); box-shadow:0 12px 28px rgba(0,163,74,.32); }

.btn-dark{ background:var(--ink); color:#fff; }
.btn-dark:hover{ background:var(--ink-3); }

.btn-ghost{ border-color:var(--line); color:var(--text); background:#fff; }
.btn-ghost:hover{ border-color:var(--ink); }

.btn-outline-light{ border-color:var(--line-dark-2); color:#fff; }
.btn-outline-light:hover{ background:#fff; color:var(--ink); border-color:#fff; }

.btn-sm{ padding:10px 18px; font-size:.82rem; }
.btn-lg{ padding:17px 34px; font-size:.95rem; }
.btn-block{ width:100%; }

.link-arrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-head); font-weight:600; font-size:.88rem; color:var(--brand);
}
.link-arrow svg{ width:15px; height:15px; transition:transform .25s; }
.link-arrow:hover svg{ transform:translateX(4px); }

/* ---------- 6. Chips / badges ---------- */
.chip{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 13px; border-radius:var(--r-pill);
  font-size:.76rem; font-weight:500; letter-spacing:.01em;
  background:var(--paper-3); color:var(--text-2); border:1px solid var(--line);
}
.chip-brand{ background:var(--brand-soft); color:var(--brand-600); border-color:var(--brand-line); }
.chip-dark{ background:rgba(255,255,255,.07); color:var(--on-dark-2); border-color:var(--line-dark); }
.chip-dot::before{ content:""; width:6px; height:6px; border-radius:50%; background:currentColor; }

/* ---------- 7. Topbar ---------- */
.topbar{
  background:var(--ink); color:var(--on-dark-2);
  font-size:.8rem; border-bottom:1px solid var(--line-dark);
  position:relative; z-index:60;
}
.topbar-inner{ display:flex; align-items:center; justify-content:space-between; gap:24px; min-height:42px; flex-wrap:wrap; }
.topbar-list{ display:flex; align-items:center; gap:26px; flex-wrap:wrap; }
.topbar-item{ display:inline-flex; align-items:center; gap:8px; }
.topbar-item svg{ width:14px; height:14px; color:var(--brand-400); flex:none; }
.topbar a:hover{ color:#fff; }
.topbar-social{ display:flex; align-items:center; gap:6px; }
.topbar-social a{
  width:28px; height:28px; border-radius:50%;
  display:grid; place-items:center;
  border:1px solid var(--line-dark); transition:.2s;
}
.topbar-social a:hover{ background:var(--brand); border-color:var(--brand); color:#fff; }
.topbar-social svg{ width:13px; height:13px; }

/* ---------- 8. Header ---------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(10,14,13,.86);
  backdrop-filter:saturate(160%) blur(14px);
  -webkit-backdrop-filter:saturate(160%) blur(14px);
  border-bottom:1px solid var(--line-dark);
  color:#fff;
  transition:background .3s, box-shadow .3s;
}
.site-header.is-stuck{ background:rgba(10,14,13,.96); box-shadow:0 10px 34px rgba(0,0,0,.28); }
.nav{ display:flex; align-items:center; gap:28px; min-height:var(--header-h); }
.brand{ display:flex; align-items:center; flex:none; min-width:0; }
/* The wordmark is a very wide lock-up (≈12.6:1), so its height is clamped
   against the viewport to stop it colliding with the burger on phones. */
.brand img{ height:clamp(19px, 2.1vw, 30px); width:auto; max-width:none; }

.nav-menu{ display:flex; align-items:center; gap:4px; margin-left:auto; }
.nav-item{ position:relative; }
.nav-link{
  display:inline-flex; align-items:center; gap:6px;
  padding:10px 15px; border-radius:var(--r-pill);
  font-family:var(--font-head); font-size:.875rem; font-weight:500;
  color:rgba(255,255,255,.82); transition:.2s;
}
.nav-link:hover,.nav-item.is-open>.nav-link{ color:#fff; background:rgba(255,255,255,.08); }
.nav-link.active{ color:#fff; }
.nav-link.active::after{
  content:""; position:absolute; left:15px; right:15px; bottom:2px; height:2px;
  background:var(--brand-400); border-radius:2px;
}
.nav-link .caret{ width:11px; height:11px; opacity:.65; transition:transform .25s; }
.nav-item.is-open .caret{ transform:rotate(180deg); }

.nav-actions{ display:flex; align-items:center; gap:12px; flex:none; }

/* dropdown */
.dropdown{
  position:absolute; top:calc(100% + 12px); left:50%; transform:translateX(-50%) translateY(-8px);
  width:min(560px, 88vw);
  background:var(--paper); color:var(--text);
  border:1px solid var(--line); border-radius:var(--r-lg);
  box-shadow:var(--sh-3);
  padding:12px;
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .22s, transform .22s, visibility .22s;
}
/* Invisible bridge across the gap between the nav link and the panel, so
   moving the pointer down onto the menu never counts as leaving the item. */
.dropdown::before{
  content:""; position:absolute;
  left:-16px; right:-16px; top:-16px; height:18px;
}
.nav-item.is-open .dropdown{ opacity:1; visibility:visible; pointer-events:auto; transform:translateX(-50%) translateY(0); }
.dropdown-grid{ display:grid; grid-template-columns:1fr 1fr; gap:4px; }
.dd-link{
  display:flex; gap:13px; align-items:flex-start;
  padding:13px 14px; border-radius:var(--r); transition:background .18s;
}
.dd-link:hover{ background:var(--paper-2); }
.dd-ico{
  width:38px; height:38px; flex:none; border-radius:10px;
  display:grid; place-items:center;
  background:var(--brand-soft); color:var(--brand-600);
}
.dd-ico svg{ width:18px; height:18px; }
.dd-t{ font-family:var(--font-head); font-weight:600; font-size:.88rem; line-height:1.3; }
.dd-d{ font-size:.78rem; color:var(--text-3); line-height:1.5; margin-top:2px; }
.dropdown-foot{
  margin-top:8px; padding:14px; border-radius:var(--r);
  background:var(--ink); color:#fff;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.dropdown-foot .t{ font-family:var(--font-head); font-weight:600; font-size:.86rem; }
.dropdown-foot .d{ font-size:.76rem; color:var(--on-dark-3); }

/* burger */
.burger{
  display:none; width:44px; height:44px; border-radius:12px;
  border:1px solid var(--line-dark); place-items:center; flex:none;
}
.burger span{ display:block; width:18px; height:1.6px; background:#fff; border-radius:2px; transition:.28s; }
.burger span+span{ margin-top:5px; }
.burger.is-active span:nth-child(1){ transform:translateY(6.6px) rotate(45deg); }
.burger.is-active span:nth-child(2){ opacity:0; }
.burger.is-active span:nth-child(3){ transform:translateY(-6.6px) rotate(-45deg); }

/* mobile drawer */
.drawer{
  position:fixed; inset:0; z-index:120;
  background:rgba(6,10,9,.6); backdrop-filter:blur(4px);
  opacity:0; visibility:hidden; transition:.28s;
}
.drawer.is-open{ opacity:1; visibility:visible; }
.drawer-panel{
  position:absolute; right:0; top:0; bottom:0; width:min(400px,88vw);
  background:var(--ink); color:#fff; padding:22px;
  overflow-y:auto; transform:translateX(102%); transition:transform .34s cubic-bezier(.4,0,.2,1);
  display:flex; flex-direction:column;
}
.drawer.is-open .drawer-panel{ transform:none; }
.drawer-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:26px; }
.drawer-head img{ height:20px; width:auto; }
.drawer-close{ width:40px; height:40px; border-radius:12px; border:1px solid var(--line-dark); display:grid; place-items:center; }
.drawer-close svg{ width:18px; height:18px; }
.m-nav{ display:flex; flex-direction:column; }
.m-nav>li{ border-bottom:1px solid var(--line-dark); }
.m-link{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:15px 2px; font-family:var(--font-head); font-weight:500; font-size:1rem;
  width:100%; text-align:left;
}
.m-link svg{ width:14px; height:14px; opacity:.6; transition:transform .25s; }
.m-sub{ max-height:0; overflow:hidden; transition:max-height .32s ease; }
.m-sub a{ display:block; padding:11px 2px 11px 16px; font-size:.9rem; color:var(--on-dark-2); border-left:2px solid var(--line-dark); margin-left:2px; }
.m-sub a:hover{ color:#fff; border-color:var(--brand); }
li.is-open .m-link svg{ transform:rotate(180deg); }
.drawer-foot{ margin-top:auto; padding-top:28px; }
.drawer-foot .contact-line{ display:flex; align-items:center; gap:10px; font-size:.86rem; color:var(--on-dark-2); margin-bottom:10px; }
.drawer-foot svg{ width:15px; height:15px; color:var(--brand-400); flex:none; }

/* ---------- 9. Hero ---------- */
.hero{ position:relative; background:var(--ink); color:#fff; overflow:hidden; isolation:isolate; }
.hero-bg{ position:absolute; inset:0; z-index:-2; }
.hero-bg img{ width:100%; height:100%; object-fit:cover; animation:heroZoom 22s ease-out forwards; }
@keyframes heroZoom{ from{ transform:scale(1.12) } to{ transform:scale(1) } }
.hero-bg::after{
  content:""; position:absolute; inset:0;
  background:
    linear-gradient(100deg, rgba(10,14,13,.94) 0%, rgba(10,14,13,.82) 42%, rgba(10,14,13,.42) 72%, rgba(10,14,13,.62) 100%),
    radial-gradient(120% 90% at 12% 100%, rgba(0,163,74,.24) 0%, transparent 60%);
}
.hero-grid-lines{
  position:absolute; inset:0; z-index:-1; pointer-events:none;
  background-image:linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size:calc(100% / 6) 100%;
  mask-image:linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image:linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}
.hero-inner{ padding-block:clamp(84px,11vw,150px) clamp(56px,6vw,84px); position:relative; }
.hero-eyebrow{
  display:inline-flex; align-items:center; gap:10px; margin-bottom:26px;
  padding:8px 16px 8px 10px; border-radius:var(--r-pill);
  background:rgba(255,255,255,.07); border:1px solid var(--line-dark-2);
  font-size:.78rem; letter-spacing:.01em; color:rgba(255,255,255,.86);
}
.hero-eyebrow .pulse{
  width:7px; height:7px; border-radius:50%; background:var(--brand-400); flex:none;
  box-shadow:0 0 0 0 rgba(35,196,107,.7); animation:pulse 2.4s infinite;
}
@keyframes pulse{ 70%{ box-shadow:0 0 0 9px rgba(35,196,107,0) } 100%{ box-shadow:0 0 0 0 rgba(35,196,107,0) } }
.hero h1{ max-width:16ch; margin-bottom:24px; font-weight:600; }
.hero h1 .accent{ color:var(--brand-400); }
.hero-sub{ max-width:56ch; font-size:clamp(1rem,.96rem + .3vw,1.15rem); color:rgba(255,255,255,.74); margin-bottom:36px; }
.hero-cta{ display:flex; gap:14px; flex-wrap:wrap; }
.hero-meta{ display:flex; gap:28px; flex-wrap:wrap; margin-top:44px; }
.hero-meta-item{ display:flex; align-items:center; gap:10px; font-size:.84rem; color:rgba(255,255,255,.66); }
.hero-meta-item svg{ width:17px; height:17px; color:var(--brand-400); flex:none; }

.hero-stats{
  position:relative; z-index:2;
  display:grid; grid-template-columns:repeat(4,1fr);
  border-top:1px solid var(--line-dark);
}
.hero-stat{ padding:26px 30px; border-right:1px solid var(--line-dark); }
.hero-stat:last-child{ border-right:0; }
.hero-stat .n{ font-family:var(--font-head); font-size:clamp(1.7rem,1.3rem + 1.3vw,2.35rem); font-weight:600; line-height:1; letter-spacing:-.03em; }
.hero-stat .n .suf{ color:var(--brand-400); }
.hero-stat .l{ font-size:.8rem; color:rgba(255,255,255,.55); margin-top:8px; }

/* ---------- 10. Marquee ---------- */
.marquee{ overflow:hidden; border-block:1px solid var(--line); background:var(--paper); padding-block:18px; }
.marquee-track{ display:flex; gap:0; width:max-content; animation:scrollX 38s linear infinite; }
.marquee:hover .marquee-track{ animation-play-state:paused; }
@keyframes scrollX{ to{ transform:translateX(-50%) } }
.marquee-item{
  display:inline-flex; align-items:center; gap:14px; padding-inline:28px;
  font-family:var(--font-head); font-size:.9rem; font-weight:500; color:var(--text-2); white-space:nowrap;
}
.marquee-item::after{ content:""; width:5px; height:5px; border-radius:50%; background:var(--brand); opacity:.55; }

.logo-marquee{ overflow:hidden; }
.logo-track{ display:flex; align-items:center; gap:64px; width:max-content; animation:scrollX 34s linear infinite; }
.logo-track img{
  height:44px; width:auto; object-fit:contain;
  filter:grayscale(1) opacity(.55); transition:.3s;
}
.logo-track img:hover{ filter:none; }

/* ---------- 11. Cards ---------- */
.card{
  background:var(--paper); border:1px solid var(--line); border-radius:var(--r-lg);
  overflow:hidden; transition:transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s, border-color .3s;
  display:flex; flex-direction:column;
}
.card:hover{ transform:translateY(-5px); box-shadow:var(--sh-2); border-color:transparent; }

.pcard{ position:relative; }
.pcard-media{ position:relative; aspect-ratio:16/10; overflow:hidden; background:var(--paper-3); }
.pcard-media img{ width:100%; height:100%; object-fit:cover; transition:transform .6s cubic-bezier(.4,0,.2,1); }
.pcard:hover .pcard-media img{ transform:scale(1.07); }
.pcard-media::after{ content:""; position:absolute; inset:0; background:linear-gradient(to top, rgba(10,14,13,.55), transparent 55%); }
.pcard-tag{
  position:absolute; top:14px; left:14px; z-index:2;
  padding:6px 12px; border-radius:var(--r-pill);
  background:rgba(255,255,255,.94); color:var(--ink);
  font-family:var(--font-mono); font-size:.68rem; letter-spacing:.1em; text-transform:uppercase;
}
.pcard-body{ padding:24px 24px 26px; display:flex; flex-direction:column; flex:1; }
.pcard-body h3{ font-size:1.22rem; margin-bottom:10px; }
.pcard-body p{ font-size:.92rem; color:var(--text-2); margin-bottom:18px; }
.pcard-list{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:22px; }
.pcard-list span{ font-size:.73rem; padding:4px 10px; border-radius:var(--r-pill); background:var(--paper-2); border:1px solid var(--line); color:var(--text-3); }
.pcard-body .link-arrow{ margin-top:auto; }

/* icon feature card */
.fcard{ padding:30px 28px; border-radius:var(--r-lg); border:1px solid var(--line); background:var(--paper); transition:.3s; height:100%; }
.fcard:hover{ border-color:transparent; box-shadow:var(--sh-2); transform:translateY(-4px); }
.fcard .ico{
  width:52px; height:52px; border-radius:14px; display:grid; place-items:center;
  background:var(--brand-soft); color:var(--brand-600); margin-bottom:20px;
}
.fcard .ico svg{ width:23px; height:23px; }
.fcard h3{ font-size:1.08rem; margin-bottom:10px; }
.fcard p{ font-size:.9rem; color:var(--text-2); margin:0; }

.bg-dark .fcard{ background:var(--ink-2); border-color:var(--line-dark); }
.bg-dark .fcard:hover{ background:var(--ink-3); box-shadow:none; border-color:var(--line-dark-2); }
.bg-dark .fcard .ico{ background:rgba(0,163,74,.16); color:var(--brand-400); }
.bg-dark .fcard p{ color:var(--on-dark-2); }

/* ---------- 12. Stats ---------- */
.stat-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden; }
.stat{ background:var(--paper); padding:34px 28px; }
.stat .n{ font-family:var(--font-head); font-weight:600; font-size:clamp(2rem,1.5rem + 1.7vw,2.9rem); line-height:1; letter-spacing:-.035em; color:var(--ink); }
.stat .n .suf{ color:var(--brand); }
.stat .l{ font-family:var(--font-head); font-weight:600; font-size:.95rem; margin-top:14px; }
.stat .d{ font-size:.84rem; color:var(--text-3); margin-top:6px; }

.bg-dark .stat-grid{ background:var(--line-dark); border-color:var(--line-dark); }
.bg-dark .stat{ background:var(--ink); }
.bg-dark .stat .n{ color:#fff; }
.bg-dark .stat .n .suf{ color:var(--brand-400); }
.bg-dark .stat .d{ color:var(--on-dark-3); }

/* ---------- 13. Process timeline ---------- */
.process{ display:grid; grid-template-columns:repeat(5,1fr); gap:0; counter-reset:step; }
.process-step{ position:relative; padding:0 22px 0 0; }
.process-step::before{
  content:""; position:absolute; left:0; right:0; top:21px; height:1px; background:var(--line);
}
.bg-dark .process-step::before{ background:var(--line-dark); }
.process-step:last-child::before{ right:auto; width:44px; }
.process-num{
  position:relative; z-index:2;
  width:44px; height:44px; border-radius:50%;
  display:grid; place-items:center;
  background:var(--paper); border:1px solid var(--line);
  font-family:var(--font-mono); font-size:.8rem; color:var(--brand); font-weight:500;
  margin-bottom:20px;
}
.bg-dark .process-num{ background:var(--ink); border-color:var(--line-dark); color:var(--brand-400); }
.process-step.is-active .process-num{ background:var(--brand); border-color:var(--brand); color:#fff; }
.process-step h3{ font-size:1rem; margin-bottom:8px; }
.process-step p{ font-size:.86rem; color:var(--text-2); margin:0; padding-right:14px; }
.bg-dark .process-step p{ color:var(--on-dark-2); }

/* ---------- 14. Split media ---------- */
.media-frame{ position:relative; border-radius:var(--r-xl); overflow:hidden; }
.media-frame img{ width:100%; height:100%; object-fit:cover; }
.media-frame.tall{ aspect-ratio:4/5; }
.media-frame.wide{ aspect-ratio:16/11; }
.media-badge{
  position:absolute; left:22px; bottom:22px; right:22px;
  background:rgba(255,255,255,.94); backdrop-filter:blur(8px);
  border-radius:var(--r); padding:18px 20px;
  display:flex; align-items:center; gap:16px;
}
.media-badge .n{ font-family:var(--font-head); font-size:1.9rem; font-weight:600; line-height:1; color:var(--brand-600); letter-spacing:-.03em; }
.media-badge .t{ font-size:.83rem; color:var(--text-2); line-height:1.45; }

.quote-card{
  border-left:3px solid var(--brand);
  background:var(--paper-2); border-radius:0 var(--r) var(--r) 0;
  padding:24px 26px; margin-bottom:26px;
}
.quote-card p{ font-family:var(--font-head); font-size:1.02rem; line-height:1.6; font-weight:500; color:var(--text); margin:0; }

.check-list{ display:grid; gap:14px; }
.check-list li{ display:flex; gap:13px; align-items:flex-start; font-size:.94rem; color:var(--text-2); }
.check-list .tick{
  width:22px; height:22px; border-radius:50%; flex:none; margin-top:2px;
  display:grid; place-items:center; background:var(--brand-soft); color:var(--brand-600);
}
.check-list .tick svg{ width:12px; height:12px; }
.bg-dark .check-list li{ color:var(--on-dark-2); }
.bg-dark .check-list .tick{ background:rgba(0,163,74,.18); color:var(--brand-400); }

/* value pills */
.values{ display:flex; flex-wrap:wrap; gap:10px; }
.value-pill{
  padding:9px 18px; border-radius:var(--r-pill);
  border:1px solid var(--line); background:var(--paper);
  font-family:var(--font-head); font-size:.85rem; font-weight:500;
}
.bg-dark .value-pill{ background:var(--ink-2); border-color:var(--line-dark); }

/* ---------- 15. Page hero (inner pages) ---------- */
.page-hero{ position:relative; background:var(--ink); color:#fff; overflow:hidden; isolation:isolate; }
.page-hero-bg{ position:absolute; inset:0; z-index:-1; }
.page-hero-bg img{ width:100%; height:100%; object-fit:cover; opacity:.42; }
.page-hero-bg::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(95deg, rgba(10,14,13,.94), rgba(10,14,13,.66) 60%, rgba(10,14,13,.9));
}
.page-hero-inner{ padding-block:clamp(56px,7vw,96px) clamp(48px,6vw,80px); }
.breadcrumb{ display:flex; align-items:center; gap:9px; font-size:.8rem; color:var(--on-dark-3); margin-bottom:20px; flex-wrap:wrap; }
.breadcrumb a:hover{ color:#fff; }
.breadcrumb svg{ width:12px; height:12px; opacity:.5; }
.breadcrumb .cur{ color:var(--brand-400); }
.page-hero h1{ max-width:20ch; margin-bottom:16px; }
.page-hero p{ max-width:60ch; color:rgba(255,255,255,.7); }

/* ---------- 16. Product layout ---------- */
.prod-layout{ display:grid; grid-template-columns:300px 1fr; gap:clamp(28px,4vw,60px); align-items:start; }
.prod-aside{ position:sticky; top:calc(var(--header-h) + 22px); display:grid; gap:18px; }
.aside-card{ border:1px solid var(--line); border-radius:var(--r-lg); background:var(--paper); overflow:hidden; }
.aside-card h3{ font-size:.78rem; letter-spacing:.13em; text-transform:uppercase; font-family:var(--font-mono); font-weight:500; color:var(--text-3); padding:20px 22px 12px; margin:0; }
.aside-nav a{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:13px 22px; font-size:.9rem; font-weight:500; border-top:1px solid var(--line);
  transition:.2s;
}
.aside-nav a:hover{ background:var(--paper-2); padding-left:26px; }
.aside-nav a.active{ background:var(--brand-soft); color:var(--brand-600); box-shadow:inset 3px 0 0 var(--brand); }
.aside-nav svg{ width:13px; height:13px; opacity:.45; }

.aside-cta{ background:var(--ink); color:#fff; border-radius:var(--r-lg); padding:26px 24px; }
.aside-cta h3{ font-size:1.08rem; color:#fff; margin-bottom:10px; padding:0; text-transform:none; letter-spacing:-.02em; font-family:var(--font-head); font-weight:600; }
.aside-cta p{ font-size:.86rem; color:var(--on-dark-2); margin-bottom:20px; }
.aside-contact{ margin-top:20px; padding-top:18px; border-top:1px solid var(--line-dark); display:grid; gap:10px; }
.aside-contact a{ display:flex; align-items:center; gap:10px; font-size:.85rem; color:var(--on-dark-2); }
.aside-contact a:hover{ color:#fff; }
.aside-contact svg{ width:15px; height:15px; color:var(--brand-400); flex:none; }

.prose h2{ font-size:clamp(1.5rem,1.2rem + 1.1vw,1.95rem); margin-top:0; }
.prose h3{ font-size:1.18rem; margin-top:2.2em; }
.prose h3:first-child{ margin-top:0; }
.prose p{ color:var(--text-2); }
.prose>*+h2{ margin-top:2.4em; }
.prose ul.bullets{ display:grid; gap:10px; margin:0 0 1.2em; }
.prose ul.bullets li{ position:relative; padding-left:22px; color:var(--text-2); font-size:.95rem; }
.prose ul.bullets li::before{ content:""; position:absolute; left:0; top:11px; width:7px; height:7px; border-radius:2px; background:var(--brand); }
.prose strong{ color:var(--text); font-weight:600; }

.block{ padding-block:clamp(34px,4vw,54px); border-top:1px solid var(--line); }
.block:first-child{ border-top:0; padding-top:0; }

/* ---------- 17. Spec table ---------- */
.table-wrap{ border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden; background:var(--paper); }
.table-scroll{ overflow-x:auto; }
.spec-table{ min-width:520px; font-size:.9rem; }
.spec-table thead th{
  background:var(--paper-2); text-align:left; padding:14px 18px;
  font-family:var(--font-mono); font-size:.7rem; letter-spacing:.11em; text-transform:uppercase;
  color:var(--text-3); font-weight:500; border-bottom:1px solid var(--line); white-space:nowrap;
}
.spec-table td{ padding:13px 18px; border-bottom:1px solid var(--line); color:var(--text-2); }
.spec-table tbody tr:last-child td{ border-bottom:0; }
.spec-table tbody tr:hover{ background:var(--paper-2); }
.spec-table td:first-child{ font-weight:600; color:var(--text); white-space:nowrap; }
.spec-table td.num{ font-family:var(--font-mono); font-size:.84rem; }
.table-note{ padding:14px 18px; background:var(--paper-2); border-top:1px solid var(--line); font-size:.8rem; color:var(--text-3); display:flex; gap:10px; align-items:flex-start; }
.table-note svg{ width:15px; height:15px; flex:none; margin-top:2px; color:var(--brand); }

/* ---------- 18. Tabs ---------- */
.tabs{ display:flex; gap:6px; flex-wrap:wrap; margin-bottom:22px; padding:5px; background:var(--paper-2); border:1px solid var(--line); border-radius:var(--r-pill); width:fit-content; max-width:100%; }
.tab{
  padding:10px 20px; border-radius:var(--r-pill);
  font-family:var(--font-head); font-size:.85rem; font-weight:500; color:var(--text-2);
  transition:.22s; white-space:nowrap;
}
.tab:hover{ color:var(--text); }
.tab.active{ background:var(--ink); color:#fff; }
.tab-panel{ display:none; animation:fadeIn .3s ease; }
.tab-panel.active{ display:block; }
@keyframes fadeIn{ from{ opacity:0; transform:translateY(6px) } to{ opacity:1; transform:none } }

/* ---------- 19. Accordion ---------- */
.acc{ border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden; background:var(--paper); }
.acc-item+.acc-item{ border-top:1px solid var(--line); }
.acc-head{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:20px;
  padding:20px 24px; text-align:left;
  font-family:var(--font-head); font-weight:600; font-size:.98rem; transition:.2s;
}
.acc-head:hover{ background:var(--paper-2); }
.acc-icon{ width:26px; height:26px; border-radius:50%; border:1px solid var(--line); display:grid; place-items:center; flex:none; transition:.28s; }
.acc-icon svg{ width:12px; height:12px; transition:transform .28s; }
.acc-item.is-open .acc-icon{ background:var(--brand); border-color:var(--brand); color:#fff; }
.acc-item.is-open .acc-icon svg{ transform:rotate(180deg); }
.acc-body{ max-height:0; overflow:hidden; transition:max-height .34s cubic-bezier(.4,0,.2,1); }
.acc-body-inner{ padding:0 24px 22px; color:var(--text-2); font-size:.93rem; }

/* ---------- 20. Forms ---------- */
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.field{ display:flex; flex-direction:column; gap:7px; }
.field.full{ grid-column:1/-1; }
.field label{ font-size:.8rem; font-weight:600; font-family:var(--font-head); color:var(--text-2); }
.field label .req{ color:var(--brand); }
.input,.select,.textarea{
  width:100%; padding:13px 16px;
  background:var(--paper); border:1px solid var(--line); border-radius:var(--r);
  font-size:.92rem; transition:border-color .2s, box-shadow .2s, background .2s;
}
.input:focus,.select:focus,.textarea:focus{
  outline:none; border-color:var(--brand); box-shadow:0 0 0 3px var(--brand-soft);
}
.input::placeholder,.textarea::placeholder{ color:var(--text-3); }
.textarea{ resize:vertical; min-height:130px; }
.select{
  appearance:none; -webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7671' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 15px center; background-size:15px;
  padding-right:42px;
}
.form-note{ font-size:.79rem; color:var(--text-3); }

.alert{ display:flex; gap:12px; align-items:flex-start; padding:15px 18px; border-radius:var(--r); font-size:.9rem; margin-bottom:20px; }
.alert svg{ width:18px; height:18px; flex:none; margin-top:1px; }
.alert-ok{ background:var(--brand-soft); border:1px solid var(--brand-line); color:var(--brand-600); }
.alert-err{ background:#FEF2F2; border:1px solid #FCA5A5; color:#B91C1C; }

/* dark form */
.form-dark .input,.form-dark .select,.form-dark .textarea{
  background:rgba(255,255,255,.05); border-color:var(--line-dark); color:#fff;
}
.form-dark .input::placeholder,.form-dark .textarea::placeholder{ color:rgba(255,255,255,.4); }
.form-dark .field label{ color:var(--on-dark-2); }
.form-dark .select{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2.2' stroke-linecap='round' opacity='.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.form-dark .select option{ background:var(--ink-3); color:#fff; }

/* ---------- 21. Contact ---------- */
.contact-card{
  border:1px solid var(--line); border-radius:var(--r-lg); background:var(--paper);
  padding:26px 24px; display:flex; gap:16px; align-items:flex-start; transition:.3s; height:100%;
}
.contact-card:hover{ box-shadow:var(--sh-2); border-color:transparent; transform:translateY(-4px); }
.contact-card .ico{ width:46px; height:46px; border-radius:13px; display:grid; place-items:center; background:var(--brand-soft); color:var(--brand-600); flex:none; }
.contact-card .ico svg{ width:20px; height:20px; }
.contact-card h3{ font-size:.95rem; margin-bottom:6px; }
.contact-card p,.contact-card a{ font-size:.9rem; color:var(--text-2); margin:0; display:block; }
.contact-card a:hover{ color:var(--brand-600); }

.map-frame{ border-radius:var(--r-lg); overflow:hidden; border:1px solid var(--line); line-height:0; }
.map-frame iframe{ width:100%; height:420px; border:0; display:block; filter:grayscale(.35); }

/* ---------- 22. CTA band ---------- */
.cta-band{
  position:relative; overflow:hidden; isolation:isolate;
  background:var(--ink); color:#fff; border-radius:var(--r-xl);
  padding:clamp(38px,5vw,66px);
  display:flex; align-items:center; justify-content:space-between; gap:36px; flex-wrap:wrap;
}
.cta-band::before{
  content:""; position:absolute; inset:0; z-index:-1;
  background:radial-gradient(90% 130% at 88% 0%, rgba(0,163,74,.32) 0%, transparent 62%);
}
.cta-band h2{ max-width:20ch; margin-bottom:12px; }
.cta-band p{ max-width:52ch; color:var(--on-dark-2); margin:0; }

/* ---------- 23. Footer ---------- */
.site-footer{ background:var(--ink); color:var(--on-dark-2); padding-top:clamp(54px,6vw,84px); }
.footer-grid{ display:grid; grid-template-columns:1.5fr 1fr 1fr 1.5fr; gap:clamp(28px,3.4vw,54px); padding-bottom:clamp(40px,4.4vw,60px); }
.footer-brand img{ width:min(300px, 100%); height:auto; margin-bottom:22px; }
.footer-grid p{ font-size:.9rem; line-height:1.72; }
.footer-title{ font-family:var(--font-head); font-size:.98rem; font-weight:600; color:#fff; margin-bottom:20px; }
.footer-links{ display:grid; gap:12px; }
.footer-links a{ font-size:.9rem; transition:.2s; display:inline-flex; align-items:center; gap:8px; }
.footer-links a::before{ content:""; width:0; height:1px; background:var(--brand-400); transition:width .25s; }
.footer-links a:hover{ color:#fff; }
.footer-links a:hover::before{ width:12px; }

.newsletter{ display:flex; gap:8px; margin-bottom:18px; }
.newsletter input{
  flex:1; min-width:0; padding:13px 16px; border-radius:var(--r-pill);
  background:rgba(255,255,255,.06); border:1px solid var(--line-dark); color:#fff; font-size:.88rem;
}
.newsletter input::placeholder{ color:rgba(255,255,255,.4); }
.newsletter input:focus{ outline:none; border-color:var(--brand); background:rgba(255,255,255,.09); }
.newsletter button{
  width:48px; height:48px; flex:none; border-radius:50%; background:var(--brand); color:#fff;
  display:grid; place-items:center; transition:.24s;
}
.newsletter button:hover{ background:var(--brand-600); transform:translateY(-2px); }
.newsletter button svg{ width:17px; height:17px; }

.footer-contact{ display:grid; gap:12px; margin-top:22px; padding-top:22px; border-top:1px solid var(--line-dark); }
.footer-contact a,.footer-contact span{ display:flex; align-items:flex-start; gap:11px; font-size:.88rem; }
.footer-contact a:hover{ color:#fff; }
.footer-contact svg{ width:16px; height:16px; color:var(--brand-400); flex:none; margin-top:3px; }

.social{ display:flex; gap:9px; margin-top:22px; }
.social a{
  width:38px; height:38px; border-radius:50%; border:1px solid var(--line-dark);
  display:grid; place-items:center; transition:.24s;
}
.social a:hover{ background:var(--brand); border-color:var(--brand); color:#fff; transform:translateY(-2px); }
.social svg{ width:16px; height:16px; }

.footer-bottom{ border-top:1px solid var(--line-dark); padding-block:24px; }
.footer-bottom-inner{ display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; font-size:.83rem; color:var(--on-dark-3); }
.footer-bottom a:hover{ color:#fff; }
.footer-legal{ display:flex; gap:22px; flex-wrap:wrap; }

/* ---------- 24. Floating actions ---------- */
.float-stack{ position:fixed; right:20px; bottom:22px; z-index:90; display:grid; gap:10px; }
.fab{
  width:50px; height:50px; border-radius:50%; display:grid; place-items:center;
  box-shadow:var(--sh-2); transition:.26s; color:#fff;
}
.fab:hover{ transform:translateY(-3px) scale(1.04); }
.fab svg{ width:22px; height:22px; }
.fab-wa{ background:#25D366; }
.fab-top{ background:var(--ink); opacity:0; visibility:hidden; transform:translateY(10px); }
.fab-top.show{ opacity:1; visibility:visible; transform:none; }
.fab-top svg{ width:18px; height:18px; }

/* ---------- 25. Reveal ---------- */
[data-reveal]{ opacity:0; transform:translateY(22px); transition:opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1); }
[data-reveal].in{ opacity:1; transform:none; }
[data-reveal][data-delay="1"]{ transition-delay:.08s }
[data-reveal][data-delay="2"]{ transition-delay:.16s }
[data-reveal][data-delay="3"]{ transition-delay:.24s }
[data-reveal][data-delay="4"]{ transition-delay:.32s }

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
  [data-reveal]{ opacity:1; transform:none; }
}

/* ---------- 26. Responsive ---------- */
@media (max-width:1100px){
  .g-4{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .process{ grid-template-columns:repeat(3,1fr); row-gap:36px; }
  .process-step:nth-child(3)::before{ right:auto; width:44px; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .prod-layout{ grid-template-columns:260px 1fr; }
}
@media (max-width:980px){
  :root{ --header-h:68px; }
  .nav-menu,.nav-actions .btn{ display:none; }
  .burger{ display:grid; margin-left:auto; }
  .split,.split-wide{ grid-template-columns:1fr; }
  .g-3{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hero-stats{ grid-template-columns:repeat(2,1fr); }
  .hero-stat:nth-child(2){ border-right:0; }
  .hero-stat:nth-child(-n+2){ border-bottom:1px solid var(--line-dark); }
  .stat-grid{ grid-template-columns:repeat(2,1fr); }
  .prod-layout{ grid-template-columns:1fr; }
  .prod-aside{ position:static; grid-template-columns:1fr 1fr; }
  .topbar-list .topbar-address{ display:none; }
}
@media (max-width:760px){
  .g-2,.g-3,.g-4{ grid-template-columns:1fr; }
  .process{ grid-template-columns:1fr; row-gap:26px; }
  .process-step::before{ display:none; }
  .process-step{ display:grid; grid-template-columns:44px 1fr; gap:16px; align-items:start; padding:0; }
  .process-num{ margin-bottom:0; }
  .form-grid{ grid-template-columns:1fr; }
  .hero-stats{ grid-template-columns:1fr; }
  .hero-stat{ border-right:0; border-bottom:1px solid var(--line-dark); }
  .hero-stat:last-child{ border-bottom:0; }
  .stat-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; }
  .prod-aside{ grid-template-columns:1fr; }
  .cta-band{ flex-direction:column; align-items:flex-start; }
  .topbar-inner{ justify-content:center; min-height:auto; padding-block:9px; }
  .topbar-list{ gap:16px; justify-content:center; }
  .media-badge{ position:static; margin-top:-46px; margin-inline:16px; }
  /* On narrow screens the hero image crops to its lighter sky area, so the
     angled overlay is replaced with a vertical one to keep text legible. */
  .hero-bg::after{
    background:
      linear-gradient(to bottom, rgba(10,14,13,.88) 0%, rgba(10,14,13,.80) 45%, rgba(10,14,13,.94) 100%),
      radial-gradient(120% 70% at 10% 100%, rgba(0,163,74,.22) 0%, transparent 62%);
  }
  .page-hero-bg::after{
    background:linear-gradient(to bottom, rgba(10,14,13,.9), rgba(10,14,13,.78) 50%, rgba(10,14,13,.94));
  }
}
@media (max-width:480px){
  :root{ --gut:18px; }
  .btn{ width:100%; }
  .hero-cta .btn{ width:100%; }
  .tabs{ width:100%; }
  .tab{ flex:1; text-align:center; }
}

/* ---------- 27. Print ---------- */
@media print{
  .site-header,.topbar,.site-footer,.float-stack,.drawer{ display:none !important; }
  body{ color:#000; }
  .section{ padding-block:16px; }
}
