/* ======================================================================
   Glide Market — Holding homepage prototype
   Visual direction: dark + luxury gold + classic serif (blend of the old
   Glide site × BeTheme "Whiskey2"). Built mobile-first with CSS logical
   properties so the Persian RTL mirror needs minimal overrides (rtl.css).
   ====================================================================== */

:root {
  /* ---- palette (dark base as before; gold + serif carry the luxury feel) ---- */
  --bg:        #0E0F10;
  --bg-2:      #16181A;
  --surface:   #1E2123;
  --surface-2: #262A2E;
  --line:      rgba(255, 255, 255, .10);
  --line-2:    rgba(255, 255, 255, .18);

  --text:      #F5F3EE;
  --muted:     #ABA59B;
  --muted-2:   #7C766D;

  --gold:      #C9A227;
  --gold-soft: #E6C868;
  --gold-deep: #9A7B16;
  --gold-grad: linear-gradient(135deg, #E6C868 0%, #C9A227 55%, #9A7B16 100%);

  /* ---- type (EN: BeTheme "Whiskey2" · FA: Gofteh + IRANYekanX self-hosted) ---- */
  --serif:   "Big Shoulders Display", "Barlow Condensed", Georgia, serif; /* EN display headings */
  --sans:    "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;  /* EN body */
  --cond:    "Barlow Condensed", sans-serif;                               /* EN condensed accent (quotes) */
  --fa:      "IRANYekanX", "Vazirmatn", system-ui, sans-serif;             /* FA body */
  --fa-head: "Gofteh", "IRANYekanX", "Vazirmatn", sans-serif;             /* FA headings */

  /* ---- spacing / shape ---- */
  --container: 1240px;
  --gutter: clamp(22px, 5vw, 64px);
  --section-y: clamp(54px, 8vh, 104px);
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---- self-hosted Persian faces (Gofteh = headings, IRANYekanX = body) ---- */
@font-face{ font-family:"Gofteh"; src:url("../fonts/gofteh-heavy.woff2") format("woff2"),url("../fonts/gofteh-heavy.woff") format("woff"); font-weight:700 900; font-style:normal; font-display:swap; }
@font-face{ font-family:"IRANYekanX"; src:url("../fonts/iranyekanx-vf.woff2") format("woff2"),url("../fonts/iranyekanx-vf.woff") format("woff"); font-weight:100 900; font-style:normal; font-display:swap; }

/* EN quotes/blockquotes use the condensed accent face (rtl.css keeps FA on --fa) */
blockquote, .intro-quote { font-family: var(--cond); }

/* ----------------------------- reset -------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: clamp(15px, 1.05vw, 17px);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul { list-style: none; padding: 0; }

/* --------------------------- helpers -------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  font-family: var(--sans);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold-soft);
  display: inline-flex; align-items: center; gap: .8em;
}
.eyebrow::before { content: ""; inline-size: 34px; block-size: 1px; background: var(--gold); display: inline-block; }
/* centered eyebrows (section-heads + CTAs) get a flanking line on both sides, matching hero/brands/products */
.section-head.center .eyebrow::after,
.eyebrow[style*="justify-content:center"]::after { content: ""; inline-size: 34px; block-size: 1px; background: var(--gold); display: inline-block; }
/* founder achievements: extensible two-column lists (name + gold meta) */
.ach-grid { display: grid; gap: clamp(.9rem, 2vw, 1.4rem); grid-template-columns: 1fr; max-inline-size: 920px; margin-inline: auto; margin-block-start: clamp(1.6rem, 4vw, 2.6rem); }
@media (min-width: 760px){ .ach-grid { grid-template-columns: 1fr 1fr; } }
.ach-list { display: grid; margin-block-start: .9rem; }
.ach-list li { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding-block: .6rem; border-block-end: 1px solid var(--line); }
.ach-list li:last-child { border-block-end: 0; }
.ach-list .name { color: var(--text); }
.ach-list .meta { color: var(--gold-soft); font-size: .78rem; font-weight: 600; white-space: nowrap; letter-spacing: .04em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: .01em; }
.section-title { font-size: clamp(2rem, 4.2vw, 3.4rem); margin-block: .35em .5em; }
.lede { color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.18rem); max-inline-size: 60ch; }
.gold-text { color: var(--gold-soft); }
.divider { inline-size: 64px; block-size: 2px; background: var(--gold-grad); border: 0; margin-block: 26px; }

/* buttons */
.btn {
  --pad: .95em 1.9em;
  display: inline-flex; align-items: center; gap: .6em;
  padding: var(--pad);
  font-family: var(--sans); font-weight: 600; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase;
  border-radius: 100px; transition: .35s var(--ease);
  will-change: transform;
}
.btn-gold { background: var(--gold-grad); color: #1A1407; box-shadow: 0 10px 30px -12px rgba(201,162,39,.7); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -12px rgba(201,162,39,.85); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.link-gold {
  display: inline-flex; align-items: center; gap: .5em;
  color: var(--gold-soft); font-weight: 600; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase;
}
.link-gold .arr { transition: transform .35s var(--ease); }
.link-gold:hover .arr { transform: translateX(.35em); }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ============================== HEADER ============================== */
.site-header { /* always-on dark glassy bar so the white nav never blends into the bright sky */
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 50;
  background: rgba(14,15,16,.55);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-block-end: 1px solid var(--line);
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.site-header.scrolled { background: rgba(14,15,16,.85); }
/* whiskey-style header: menu on the start side, logo centered, actions on the end */
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; block-size: 80px; }
/* logo locked dead-center of the bar (physical left/top so it works in LTR & RTL) */
.brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; }
.nav-menu { /* left side (flex defined below) */ }
.nav-right { /* right side (flex defined below) */ }
/* full-colour Glide Market mark (gold ensō + gold GLIDE + white MARKET), crisp SVG */
.brand-logo {
  display: block; inline-size: clamp(138px, 16vw, 178px); block-size: 44px;
  background: url(../img/brands/glide-market.svg) no-repeat center / contain;
}
.nav-menu { display: flex; align-items: center; gap: clamp(.7rem, 1.35vw, 1.35rem); }
.nav-menu a { font-size: .72rem; font-weight: 500; letter-spacing: .085em; text-transform: uppercase; color: var(--muted); position: relative; padding-block: .4em; transition: color .3s; white-space: nowrap; }
.nav-menu a::after { content: ""; position: absolute; inset-block-end: 0; inset-inline-start: 0; inline-size: 0; block-size: 1.5px; background: var(--gold-grad); transition: inline-size .35s var(--ease); }
.nav-menu a:hover { color: var(--text); }
.nav-menu a:hover::after { inline-size: 100%; }
/* ---- Brands dropdown (desktop hover / mobile accordion) ---- */
.nav-has-dd { position: relative; }
.nav-brands-toggle { display: inline-flex; align-items: center; gap: .45em; }
.dd-caret { inline-size: 9px; block-size: 6px; flex: none; transition: transform .3s var(--ease); }
.nav-dd { position: absolute; inset-block-start: 100%; inset-inline-start: 50%; transform: translateX(-50%) translateY(10px);
  display: grid; min-inline-size: 190px; padding: .45rem;
  background: rgba(20,22,24,.98); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: 0 24px 48px -22px rgba(0,0,0,.85);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; z-index: 60; }
.nav-dd a { padding: .72em 1em; font-size: .72rem; border-radius: 9px; white-space: nowrap; color: var(--muted); }
.nav-dd a::after { display: none; }
.nav-dd a:hover { color: var(--gold-soft); background: rgba(255,255,255,.05); }
@media (hover: hover) and (min-width: 901px) {
  .nav-has-dd::after { content: ""; position: absolute; inset-block-start: 100%; inset-inline: -12px; block-size: 14px; } /* hover bridge */
  .nav-has-dd:hover .nav-dd { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(4px); }
  .nav-has-dd:hover .dd-caret { transform: rotate(180deg); }
}
.nav-right { display: flex; align-items: center; gap: 1.2rem; }
.lang-switch { display: flex; align-items: center; gap: .1rem; font-size: .78rem; font-weight: 600; letter-spacing: .08em; }
.lang-switch a { color: var(--muted-2); padding: .2em .45em; transition: color .3s; }
.lang-switch a.active, .lang-switch a:hover { color: var(--gold-soft); }
.lang-switch span { color: var(--line-2); }
.nav-toggle { display: none; inline-size: 30px; block-size: 22px; position: relative; }
.nav-toggle span { position: absolute; inline-size: 100%; block-size: 2px; background: var(--text); inset-inline-start: 0; transition: .3s var(--ease); }
.nav-toggle span:nth-child(1){ inset-block-start: 0; } .nav-toggle span:nth-child(2){ inset-block-start: 10px; } .nav-toggle span:nth-child(3){ inset-block-start: 20px; }
body.nav-open .nav-toggle span:nth-child(1){ transform: translateY(10px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2){ opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3){ transform: translateY(-10px) rotate(-45deg); }

/* =============================== HERO ============================== */
.hero { position: relative; min-block-size: 100svh; display: grid; place-items: start center; text-align: center; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { inline-size: 100%; block-size: 100%; object-fit: cover; object-position: center; }
.hero::after { /* NO heavy filter over the photo — the forest & fog stay fully visible.
                  Only three light, local scrims: header legibility, text legibility,
                  and a soft bottom fade so the forest blends into the next section. */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    /* 1) top: keeps the white nav readable over the bright foggy sky */
    linear-gradient(180deg, rgba(14,15,16,.55) 0%, rgba(14,15,16,.10) 12%, rgba(14,15,16,0) 24%),
    /* 2) gentle scrim behind the centered hero text only */
    radial-gradient(60% 46% at 50% 50%, rgba(14,15,16,.48), rgba(14,15,16,0) 70%),
    /* 3) soft, even bottom fade into the dark next section — starts low so forest stays visible */
    linear-gradient(180deg, rgba(14,15,16,0) 74%, rgba(14,15,16,.5) 88%, rgba(14,15,16,1) 100%);
}
.hero-inner { padding-block: clamp(120px, 15vh, 170px) 90px; padding-inline: var(--gutter); max-inline-size: 1000px; }
/* hero kicker sits BELOW the title over the bright fog → dark text, with a gold line on
   BOTH sides (the global ::before gives the left line; ::after adds the matching right one) */
.hero .eyebrow { color: #15161A; font-size: .85rem; justify-content: center; margin-block-start: .9rem; }
.hero .eyebrow::after { content: ""; inline-size: 38px; block-size: 1px; display: inline-block; }
.hero .eyebrow::before { inline-size: 38px; }
.hero .eyebrow::before, .hero .eyebrow::after { background: #15161A; } /* black lines on both sides */
.hero h1 { font-size: clamp(3rem, 9vw, 7rem); font-weight: 600; letter-spacing: .04em; margin-block: .28em .12em;
           color: #A6811A; /* deep gold — same gold family but dark enough to read on the white fog */
           text-shadow: 0 2px 24px rgba(0,0,0,.30), 0 1px 2px rgba(0,0,0,.25); }
.hero h1 .gold-text { display: block; font-style: italic; font-weight: 500; }
.hero-tagline { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.5rem, 3.6vw, 2.6rem); color: var(--gold-soft); margin-block-start: clamp(5rem, 26vh, 14rem); }
.hero-sub { color: var(--muted); margin-block: 1.1em 2.2em; max-inline-size: 54ch; margin-inline: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.scroll-cue { position: absolute; inset-block-end: 26px; inset-inline-start: 50%; transform: translateX(-50%); display: grid; gap: .6rem; justify-items: center; color: var(--muted-2); font-size: .65rem; letter-spacing: .3em; text-transform: uppercase; }
.scroll-cue .mouse { inline-size: 22px; block-size: 36px; border: 1.5px solid var(--line-2); border-radius: 14px; position: relative; }
.scroll-cue .mouse::after { content: ""; position: absolute; inset-block-start: 7px; inset-inline-start: 50%; transform: translateX(-50%); inline-size: 3px; block-size: 7px; border-radius: 3px; background: var(--gold-soft); animation: wheel 1.7s var(--ease) infinite; }
@keyframes wheel { 0%{ opacity:0; transform: translate(-50%,0); } 40%{ opacity:1; } 100%{ opacity:0; transform: translate(-50%,12px); } }

/* ============================= SECTIONS ============================ */
section { position: relative; }
.section { padding-block: var(--section-y); }
.section-head { max-inline-size: 760px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .divider { margin-inline: auto; }

/* intro / manifesto */
.intro { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  /* thinner section, pulled up (less top padding) */
  padding-block: clamp(32px, 4.5vh, 60px) clamp(16px, 2.4vh, 28px); }
/* faint diagonal hairlines in the background, like the Whiskey "tradition" section */
.intro::before, .intro::after { content: ""; position: absolute; inset-inline: -12%; block-size: 1px; background: var(--line-2); opacity: .55; pointer-events: none; }
.intro::before { inset-block-start: 32%; transform: rotate(-4deg); }
.intro::after  { inset-block-start: 66%; transform: rotate(3deg); }
/* centered heritage composition: emblem · heading · ornament · text · signature */
.intro-center { position: relative; max-inline-size: 720px; margin-inline: auto; text-align: center; display: grid; justify-items: center; gap: clamp(1.1rem, 2.6vw, 1.8rem); }
.intro .emblem { inline-size: clamp(56px, 7vw, 76px); block-size: clamp(56px, 7vw, 76px); display: block;
  background: var(--gold-grad);
  -webkit-mask: url(../img/favicon-192.png) center / contain no-repeat;
          mask: url(../img/favicon-192.png) center / contain no-repeat; }
.intro-heading { font-family: var(--serif); font-weight: 700; font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.06;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0; }
.intro .ornament { color: var(--gold); display: block; }
.intro .signature { color: var(--gold-deep); opacity: .85; display: block; margin-block-start: .3rem; }
.intro-text { color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.95; max-inline-size: 58ch; }
.intro-grid { display: grid; gap: clamp(2rem, 5vw, 5rem); grid-template-columns: 1fr; align-items: center; }
.intro-quote { font-family: var(--serif); font-size: clamp(1.6rem, 3.6vw, 2.9rem); line-height: 1.25; font-style: italic; }
.intro-quote em { color: var(--gold-soft); font-style: italic; }
@media (min-width: 900px){ .intro-grid { grid-template-columns: 1.1fr .9fr; } }

/* ===== platforms — real, colored platform logos sitting inline (no framed band) ===== */
.platforms { background: var(--bg-2); padding-block: clamp(12px, 1.8vh, 20px) clamp(22px, 3.6vh, 40px); }
.platforms-label { text-align: center; font-size: .68rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--muted-2); margin-block-end: clamp(.8rem, 1.8vw, 1.3rem); }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.6rem, 4vw, 3.2rem); }
/* transparent white-on-dark partner logos sit directly on the --bg-2 band (no light chip) */
.logo { display: inline-flex; align-items: center; justify-content: center; transition: transform .35s var(--ease); }
.logo:hover { transform: translateY(-2px); }
/* trimmed to their tight alpha box, so one shared height renders them at a consistent optical size;
   max-inline-size reins in the extra-wide wordmarks (tradingview / ninjatrader) */
.logo img { block-size: clamp(22px, 2.6vw, 30px); inline-size: auto; width: auto; max-inline-size: clamp(120px, 15vw, 155px); display: block; }

/* ---- partners marquee (animated upgrade of the platforms strip) ---- */
.marquee { position: relative; overflow: hidden; direction: ltr; background: #0B0C0E; border-radius: 16px; /* subtle near-black band: the dark-bg logos blend into it; direction:ltr keeps the marquee identical in RTL */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 11%, #000 89%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 11%, #000 89%, transparent 100%); }
.marquee-track { display: flex; align-items: center; gap: clamp(2.4rem, 6vw, 5rem);
  width: max-content; padding-block: clamp(14px, 2vw, 22px); direction: ltr; /* keep marquee math consistent in RTL too */
  animation: partners-scroll 34s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { block-size: clamp(24px, 3vw, 32px); inline-size: auto; width: auto; display: block;
  opacity: .92; transition: opacity .3s var(--ease); }
.marquee-track img:hover { opacity: 1; }
@keyframes partners-scroll { from { transform: translateX(0); } to { transform: translateX(-33.333%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
}

/* brand cards */
/* a touch more top space so "The Holding" (and everything below) sits a little lower */
.brands { background: var(--bg-2); padding-block: clamp(60px, 8vh, 110px) var(--section-y); }
/* "The Holding" kicker flanked by a gold hairline on BOTH sides (global ::before gives the
   start-side line; this adds the matching end-side line) */
.brands .section-head .eyebrow::after { content: ""; inline-size: 34px; block-size: 1px; background: var(--gold); display: inline-block; }
.brand-grid { display: grid; gap: clamp(1rem, 2.2vw, 1.6rem); grid-template-columns: 1fr; margin-block-start: clamp(2rem,5vw,3.5rem); }
@media (min-width: 720px){ .brand-grid { grid-template-columns: repeat(3, 1fr); } }
.brand-card {
  position: relative; display: flex; flex-direction: column; gap: 1rem;
  padding: clamp(1.7rem, 3vw, 2.4rem);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.brand-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% -10%, rgba(201,162,39,.13), transparent 60%); opacity: 0; transition: opacity .5s; pointer-events: none; }
.brand-card:hover { transform: translateY(-8px); border-color: var(--gold-deep); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.brand-card:hover::before { opacity: 1; }
.brand-card .logo-wrap { block-size: auto; display: flex; align-items: center;
  margin-block-start: clamp(-2.2rem, -2.8vw, -1.5rem);   /* lift up toward the top edge */
  margin-inline-start: clamp(-1.6rem, -2.2vw, -1.1rem); } /* nudge toward the start wall (left in LTR / right in RTL) */
.brand-card .logo-wrap img { max-block-size: 64px; width: auto; }
.brand-card .monogram { inline-size: 52px; block-size: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-grad); color: #1A1407; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; font-size: 1.7rem; }
.brand-card h3 { font-size: 1.65rem; }
.brand-card p { color: var(--muted); font-size: .96rem; flex: 1; }
.brand-card .kicker { font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted-2); }

/* founder */
.founder { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.founder-grid { display: grid; gap: clamp(2rem,5vw,4rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 880px){ .founder-grid { grid-template-columns: .8fr 1.2fr; } }
.founder-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; background: var(--surface-2); border: 1px solid var(--line); }
.founder-photo::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -90px 80px -50px rgba(14,15,16,.95); }
.founder-photo .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted-2); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; }
.founder blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem,2.6vw,2rem); line-height: 1.35; margin-block: .4em .7em; }
.founder .sign { font-family: var(--serif); font-size: 1.5rem; color: var(--gold-soft); }
.founder .role { color: var(--muted-2); font-size: .85rem; letter-spacing: .15em; text-transform: uppercase; }

/* glide algo products — compact showcase cards: image · title · short line.
   Kept deliberately small so the showcase section stays light. */
/* brand showcases — three compact, full-width bands (Algo · Learn · Traders), each
   with its OWN background + a top hairline, so it's obvious where one brand ends */
.products { background: var(--bg); padding-block: clamp(100px, 14.5vh, 210px) 0; }
.showcase { padding-block: clamp(28px, 4vh, 52px); border-block-start: 1px solid var(--line); }
.showcase:nth-child(odd)  { background: var(--bg-2); }
.showcase:nth-child(even) { background: var(--bg); }
/* bigger brand kicker, flanked by a gold hairline on BOTH sides */
.products .section-head .eyebrow { font-size: .9rem; }
.products .section-head .eyebrow::before { inline-size: 42px; }
.products .section-head .eyebrow::after { content: ""; inline-size: 42px; block-size: 1px; background: var(--gold); display: inline-block; }
/* compact heads + smaller cards so each band stays short */
.products .section-title { font-size: clamp(1.45rem, 2.7vw, 2rem); margin-block: .25em .3em; }
.products .lede { font-size: clamp(.88rem, 1.2vw, 1rem); }
.product-grid { display: grid; gap: clamp(.8rem,2vw,1.3rem); grid-template-columns: 1fr; margin-block-start: clamp(1rem,2.4vw,1.6rem); }
@media (min-width: 760px){ .product-grid { grid-template-columns: repeat(3,1fr); } }
.product-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .5s, transform .5s var(--ease); }
.product-card:hover { transform: translateY(-5px); border-color: var(--gold-deep); }
.product-card .thumb { position: relative; aspect-ratio: 2 / 1; overflow: hidden;
  background: radial-gradient(85% 120% at 50% 0%, rgba(201,162,39,.10), transparent 62%), linear-gradient(160deg, var(--surface-2), var(--surface)); }
.product-card .thumb img { inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.product-card:hover .thumb img { transform: scale(1.06); }
/* square brand logos (homepage Algo showcase): show whole mark, don't crop */
.product-card .thumb.logo { background: #0B0C0E; }
.product-card .thumb.logo img { object-fit: contain; padding: 8%; }
.product-card:hover .thumb.logo img { transform: scale(1.04); }
/* image placeholder (gold enso emblem + label) until each shot is added */
.product-card .thumb .ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .4rem;
  color: var(--muted-2); font-size: .56rem; letter-spacing: .2em; text-transform: uppercase; }
.product-card .thumb .ph::before { content: ""; inline-size: 26px; block-size: 26px; opacity: .55; background: var(--gold-grad);
  -webkit-mask: url(../img/favicon-192.png) center/contain no-repeat; mask: url(../img/favicon-192.png) center/contain no-repeat; }
.product-card .body { padding: .8rem .95rem .95rem; display: flex; flex-direction: column; gap: .28rem; }
.product-card h3 { font-size: 1.02rem; line-height: 1.25; }
.product-card h3 a { transition: color .3s var(--ease); }
.product-card h3 a:hover { color: var(--gold-soft); }
.product-card p { color: var(--muted); font-size: .8rem; line-height: 1.5; }

/* stats */
.stats { background: var(--bg); border-block: 1px solid var(--line); }
.stat-grid { display: grid; gap: 2rem clamp(1rem,3vw,2rem); grid-template-columns: repeat(2,1fr); text-align: center; }
@media (min-width: 820px){ .stat-grid { grid-template-columns: repeat(4,1fr); } }
@media (min-width: 820px){ .stat-grid.cols-6, .stat-grid.cols-3 { grid-template-columns: repeat(3,1fr); } }
.stat .num { font-family: var(--serif); font-weight: 600; font-size: clamp(2.6rem,6vw,4.4rem); line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .label { color: var(--muted); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-block-start: .7em; }

/* articles */
.articles { background: var(--bg-2); }
.article-grid { display: grid; gap: clamp(1rem,2.5vw,1.8rem); grid-template-columns: 1fr; margin-block-start: clamp(2rem,5vw,3.5rem); }
@media (min-width: 760px){ .article-grid { grid-template-columns: repeat(3,1fr); } }
.article-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .5s, transform .5s var(--ease); }
.article-card:hover { transform: translateY(-6px); border-color: var(--gold-deep); }
.article-card .thumb { aspect-ratio: 16/10; overflow: hidden; }
.article-card .thumb img { inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.article-card:hover .thumb img { transform: scale(1.06); }
.article-card .body { padding: 1.3rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.article-card .date { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); }
.article-card h3 { font-size: 1.3rem; line-height: 1.25; }
.article-card .link-gold { margin-block-start: auto; }

/* cta over night eagle */
.cta { position: relative; text-align: center; isolation: isolate; padding-block: clamp(64px,11vh,128px); }
.cta-bg { position: absolute; inset: 0; z-index: -2; }
.cta-bg img { inline-size: 100%; block-size: 100%; object-fit: cover; object-position: center 30%; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,15,16,.8), rgba(14,15,16,.6) 45%, var(--bg) 100%); }
.cta h2 { font-size: clamp(2rem,5vw,3.6rem); }
.newsletter { display: flex; gap: .6rem; max-inline-size: 480px; margin-inline: auto; margin-block-start: 2rem; flex-wrap: wrap; justify-content: center; }
.newsletter input { flex: 1; min-inline-size: 220px; padding: .95em 1.3em; border-radius: 100px; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); color: var(--text); }
.newsletter input::placeholder { color: var(--muted-2); }
.newsletter input:focus { outline: none; border-color: var(--gold); }

/* ============================== FOOTER ============================= */
.site-footer { background: var(--bg); border-block-start: 1px solid var(--line); padding-block: clamp(3rem,6vw,5rem) 2rem; }
.footer-grid { display: grid; gap: 2.5rem clamp(1.5rem,4vw,3rem); grid-template-columns: 1fr; }
@media (min-width: 680px){ .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
@media (min-width: 1000px){ .footer-grid { grid-template-columns: 1.8fr 1fr 1fr 1.2fr; } }
.footer-brand img { block-size: 34px; width: auto; margin-block-end: 1.1rem; }
.footer-brand p { color: var(--muted); font-size: .92rem; max-inline-size: 38ch; }
.footer-col h4 { font-family: var(--sans); font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-2); margin-block-end: 1.1rem; }
.footer-col ul { display: grid; gap: .7rem; }
.footer-col a { color: var(--muted); font-size: .92rem; transition: color .3s; }
.footer-col a:hover { color: var(--gold-soft); }
.socials { display: flex; gap: .7rem; margin-block-start: 1.3rem; }
.socials a { inline-size: 38px; block-size: 38px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: .35s var(--ease); }
.socials a:hover { color: var(--gold-soft); border-color: var(--gold-deep); transform: translateY(-3px); }
.socials svg { inline-size: 17px; block-size: 17px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-block-start: clamp(2.5rem,5vw,4rem); padding-block-start: 1.6rem; border-block-start: 1px solid var(--line); color: var(--muted-2); font-size: .8rem; }

/* ---------------------- responsive / mobile nav -------------------- */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; inset-block-start: 78px; inset-inline: 0; z-index: 49;
    flex-direction: column; gap: 0; align-items: stretch;
    background: rgba(32,32,32,.97); backdrop-filter: blur(14px);
    border-block-end: 1px solid var(--line);
    max-block-size: 0; overflow: hidden; transition: max-block-size .45s var(--ease);
  }
  body.nav-open .nav-menu { max-block-size: 70vh; }
  .nav-menu a { padding: 1.05em var(--gutter); border-block-start: 1px solid var(--line); font-size: .95rem; }
  .nav-menu a::after { display: none; }
  .nav-has-dd { display: block; }
  .nav-brands-toggle { justify-content: space-between; }
  .nav-dd { position: static; transform: none; opacity: 1; visibility: visible; display: none;
    min-inline-size: 0; padding: 0; background: rgba(255,255,255,.03); border: 0; border-radius: 0; box-shadow: none; }
  .nav-item.dd-open .nav-dd { display: block; }
  .nav-item.dd-open .dd-caret { transform: rotate(180deg); }
  .nav-dd a { padding: .95em calc(var(--gutter) + 1.1rem); font-size: .88rem; }
}

/* phones: tighter vertical rhythm + comfortable content width */
@media (max-width: 600px) {
  :root { --section-y: clamp(44px, 7vh, 72px); }
  .hero-inner { padding-block: clamp(104px, 16vh, 140px) 60px; }
  .hero-tagline { margin-block-start: clamp(3rem, 14vh, 7rem); }
  .section-head { max-inline-size: 100%; }
  .stat-grid { gap: 1.7rem 1rem; }
  .founder-photo { aspect-ratio: 3 / 2; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: .6rem; }
  /* keep hard-broken manifest lines (e.g. "Execution becomes machine.") inside the viewport */
  .intro-heading { font-size: clamp(1.5rem, 6.6vw, 2.2rem); overflow-wrap: break-word; }
}
