/* ============================================================================
   HALO MATERIALS — styles.css
   Dark, industrial, premium. Monochrome graphite palette + soft "halo" glow.
   Color, type, and spacing tokens live at the top — tweak there to re-skin.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800;900&family=Hanken+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ---------- TOKENS ---------- */
:root {
  --bg:          #0a0a0b;
  --bg-pure:     #050506;
  --surface:     #121214;
  --surface-2:   #17171b;
  --line:        rgba(255,255,255,0.10);
  --line-strong: rgba(255,255,255,0.20);

  --text:        #f3f3f0;
  --text-dim:    #9b9ba1;
  --text-faint:  #66666c;

  --glow:        rgba(176, 200, 255, 0.55);   /* the "halo" cool-white glow */
  --glow-soft:   rgba(176, 200, 255, 0.10);

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body:    "Hanken Grotesk", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --container: 1240px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --radius: 14px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }

/* ---------- LAYOUT ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(4.5rem, 10vw, 9rem); border-top: 1px solid var(--line); position: relative; }
.section--flush { border-top: none; }
.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }

/* ---------- TYPE ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; }
.display {
  font-size: clamp(2.9rem, 7.5vw, 6.6rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.035em;
}
h2.h-section { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 700; letter-spacing: -0.03em; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
p { color: var(--text-dim); }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.45rem); color: var(--text); line-height: 1.5; font-weight: 400; }
.measure { max-width: 60ch; }
.measure-sm { max-width: 46ch; }

/* eyebrow / section label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px; background: var(--line-strong);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.95rem 1.6rem; border-radius: 999px;
  border: 1px solid var(--line-strong);
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}
.btn .arr { transition: transform 0.35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--solid { background: var(--text); color: #0a0a0b; border-color: var(--text); }
.btn--solid:hover { background: #fff; box-shadow: 0 0 40px var(--glow-soft); }
.btn--ghost:hover { border-color: var(--text); background: rgba(255,255,255,0.04); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.4rem; }

/* ---------- NAV ---------- */
[data-site-header] {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
[data-site-header].nav--scrolled {
  background: rgba(10,10,11,0.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.nav__brand img { height: 30px; width: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.2rem); }
.nav__link {
  font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.04em;
  color: var(--text-dim); position: relative; padding-block: 0.4rem;
  transition: color 0.25s;
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px;
  background: var(--text);
}
.nav__cta {
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.04em;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 0.55rem 1.1rem; color: var(--text);
  transition: all 0.3s var(--ease);
}
.nav__cta:hover { background: var(--text); color: #0a0a0b; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); transition: 0.3s var(--ease); }
.nav__mobile { display: none; }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__mobile {
    display: flex; flex-direction: column; gap: 0.4rem;
    padding: 1rem var(--pad) 2rem;
    background: rgba(10,10,11,0.96); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
  }
  .nav__mobile .nav__link { font-size: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .nav--open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav--open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav--open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  [data-site-header].nav--open { background: rgba(10,10,11,0.96); backdrop-filter: blur(14px); }
}

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding-top: 78px; overflow: hidden;
}
.hero__inner { position: relative; z-index: 2; padding-block: clamp(3rem, 8vw, 6rem); }
.hero .display { max-width: 16ch; }
.hero .lead { max-width: 44ch; margin-top: 1.8rem; }

/* the halo glow + ring backdrop */
.halo-bg { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.halo-bg::before {
  content: ""; position: absolute; top: 50%; right: -8%; transform: translateY(-50%);
  width: min(70vw, 720px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--glow-soft) 0%, transparent 62%);
  filter: blur(8px); animation: pulse 9s ease-in-out infinite;
}
.halo-ring {
  position: absolute; top: 50%; right: clamp(-180px, -6vw, -40px); transform: translateY(-50%);
  width: min(64vw, 640px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--line); opacity: 0.5;
}
.halo-ring::after {
  content: ""; position: absolute; inset: 14%; border-radius: 50%;
  border: 1px solid var(--line);
}
.halo-ring img { position: absolute; inset: 28%; opacity: 0.16; }
@keyframes pulse { 0%,100% { opacity: 0.7; } 50% { opacity: 1; } }

/* faint dotted grid texture overlay for whole page */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 38px 38px; mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
}
main, [data-site-header], [data-site-footer] { position: relative; z-index: 1; }

/* scroll cue */
.scroll-cue {
  position: absolute; bottom: 2.2rem; left: var(--pad); z-index: 2;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-faint);
  display: flex; align-items: center; gap: 0.6rem;
}
.scroll-cue::after { content: ""; width: 36px; height: 1px; background: var(--line-strong); animation: slide 2.2s var(--ease) infinite; }
@keyframes slide { 0%{transform:scaleX(0);transform-origin:left;} 50%{transform:scaleX(1);transform-origin:left;} 51%{transform-origin:right;} 100%{transform:scaleX(0);transform-origin:right;} }

/* ---------- STAT BANDS ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat { padding: clamp(1.6rem,3vw,2.6rem) 0; border-top: 1px solid var(--line); }
.stat + .stat { border-left: 1px solid var(--line); padding-left: clamp(1.4rem,3vw,2.4rem); }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -0.03em; line-height: 1; }
.stat__label { color: var(--text-dim); margin-top: 0.7rem; font-size: 0.95rem; max-width: 26ch; }
@media (max-width: 620px) {
  .stat + .stat { border-left: none; padding-left: 0; }
}

/* ---------- CARDS ---------- */
.cards { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.8rem, 3vw, 2.6rem); position: relative; overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), background 0.4s var(--ease);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-4px); background: var(--surface-2); }
.card__index { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-faint); letter-spacing: 0.1em; }
.card h3 { margin-top: 0.8rem; }
.card p { margin-top: 0.8rem; }
.card__glow { position: absolute; top: -40%; right: -30%; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--glow-soft), transparent 70%); opacity: 0; transition: opacity 0.5s; }
.card:hover .card__glow { opacity: 1; }

/* market card variant */
.market { display: grid; gap: 1.2rem; }
.market__row { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); margin-top: 0.6rem; }
.market__metric { }
.market__metric .v { font-family: var(--font-mono); font-size: 1.5rem; color: var(--text); display: block; }
.market__metric .k { font-size: 0.82rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- PROCESS STEPS ---------- */
.steps { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; position: relative; background: var(--surface); }
.step__n { font-family: var(--font-mono); color: var(--text-faint); font-size: 0.8rem; letter-spacing: 0.1em; }
.step h3 { font-size: 1.25rem; margin: 0.8rem 0; }
.step__arrow { display:none; }

/* ---------- SPLIT (text + visual / two-col text) ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (min-width: 880px) { .split { grid-template-columns: 0.9fr 1.1fr; } .split--rev { grid-template-columns: 1.1fr 0.9fr; } }

/* big quote / statement */
.statement { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3.4vw, 2.9rem); line-height: 1.12; letter-spacing: -0.025em; color: var(--text); max-width: 18ch; }
.statement em { font-style: normal; color: var(--text-dim); }

/* ---------- TEAM ---------- */
.team-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.member { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; transition: border-color .4s var(--ease), transform .4s var(--ease); }
.member:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.member__avatar {
  width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700;
  font-size: 1.3rem; color: var(--text); margin-bottom: 1.4rem; position: relative;
}
.member__avatar::after { content:""; position:absolute; inset:-5px; border-radius:50%; border:1px solid var(--line); opacity:.6; }
.member__name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; }
.member__role { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin: 0.4rem 0 1.1rem; }
.member__bio { font-size: 0.96rem; color: var(--text-dim); }

/* ---------- NEWS ---------- */
.posts { display: grid; gap: 1.2rem; }
.post-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.4rem); transition: border-color .4s var(--ease), transform .4s var(--ease), background .4s; }
.post-card:hover { border-color: var(--line-strong); transform: translateY(-3px); background: var(--surface-2); }
.post-card__meta { display: flex; align-items: center; gap: 1rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.post-card__tag { border: 1px solid var(--line); border-radius: 999px; padding: 0.25rem 0.7rem; }
.post-card__title { margin: 1rem 0 0.7rem; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.post-card__excerpt { color: var(--text-dim); max-width: 70ch; }
.post-card__more { display: inline-block; margin-top: 1.2rem; font-family: var(--font-mono); font-size: 0.82rem; color: var(--text); letter-spacing: 0.04em; }

/* ---------- ARTICLE (single post) ---------- */
.article { padding-top: calc(78px + clamp(2.5rem, 7vw, 5rem)); }
.article__head { border-bottom: 1px solid var(--line); padding-bottom: 2.4rem; margin-bottom: 2.8rem; }
.article__meta { display: flex; gap: 1rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.4rem; }
.article__title { font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -0.03em; max-width: 18ch; }
.prose { max-width: 70ch; }
.prose p { margin-bottom: 1.3rem; color: var(--text-dim); }
.prose h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--text); margin: 2.4rem 0 1rem; letter-spacing: -0.02em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose .kicker { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }
.prose blockquote { border-left: 2px solid var(--line-strong); padding-left: 1.4rem; margin: 1.8rem 0; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.35; color: var(--text); font-weight: 500; }
.prose a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.prose a:hover { text-decoration-color: var(--text); }
.back-link { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; color: var(--text-dim); display: inline-block; margin-bottom: 2rem; }
.back-link:hover { color: var(--text); }
.article__nav { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 2rem; font-family: var(--font-mono); font-size: 0.82rem; }
.article__nav a:hover { color: var(--text); } .article__nav a { color: var(--text-dim); }

/* ---------- PAGE HEADER (interior pages) ---------- */
.page-head { padding-top: calc(78px + clamp(3rem, 9vw, 7rem)); padding-bottom: clamp(2rem, 5vw, 4rem); }
.page-head .display { font-size: clamp(2.6rem, 6.5vw, 5.4rem); }

/* ---------- CONTACT ---------- */
.contact-grid { display: grid; gap: clamp(2rem,5vw,4rem); }
@media (min-width:880px){ .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-block h3 { font-size: 1.1rem; font-family: var(--font-mono); font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); margin-bottom: 0.8rem; }
.contact-block a.big { font-family: var(--font-display); font-size: clamp(1.5rem,3.5vw,2.4rem); letter-spacing: -0.02em; color: var(--text); display: inline-block; }
.contact-block a.big:hover { color: #fff; }
.field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.2rem; }
.field label { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.field input, .field textarea {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 0.9rem 1rem; color: var(--text); font-family: var(--font-body); font-size: 1rem;
  transition: border-color .3s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--line-strong); }
.field textarea { resize: vertical; min-height: 130px; }

/* ---------- FOOTER ---------- */
[data-site-footer] { border-top: 1px solid var(--line); background: var(--bg-pure); margin-top: 0; }
.foot__top { display: grid; gap: clamp(2.5rem, 5vw, 4rem); padding-block: clamp(3.5rem, 7vw, 6rem); }
@media (min-width: 760px) { .foot__top { grid-template-columns: 1.2fr 2fr; } }
.foot__brand img { width: 120px; opacity: 0.95; }
.foot__tag { margin-top: 1.2rem; font-family: var(--font-display); font-size: 1.2rem; color: var(--text-dim); max-width: 22ch; letter-spacing: -0.01em; }
.foot__cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.foot__col h4 { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); font-weight: 500; margin-bottom: 1.1rem; }
.foot__col li { margin-bottom: 0.7rem; }
.foot__col a, .foot__col li { color: var(--text-dim); font-size: 0.95rem; transition: color .25s; }
.foot__col a:hover { color: var(--text); }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem; padding-block: 1.8rem; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-faint); letter-spacing: 0.04em; }

/* ---------- REVEAL ANIMATION ---------- */
/* Reveal-on-scroll. Hiding is gated behind .js so that if JavaScript is
   disabled or fails, all content remains fully visible (progressive enhancement). */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-d="1"] { transition-delay: 0.08s; }
.js .reveal[data-d="2"] { transition-delay: 0.16s; }
.js .reveal[data-d="3"] { transition-delay: 0.24s; }
.js .reveal[data-d="4"] { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; scroll-behavior: auto; }
}

/* hero load stagger */
.hero .hero__inner > * { opacity: 0; transform: translateY(20px); animation: rise 0.9s var(--ease) forwards; }
.hero .eyebrow { animation-delay: 0.1s; }
.hero .display { animation-delay: 0.22s; }
.hero .lead { animation-delay: 0.36s; }
.hero .btn-row { animation-delay: 0.5s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero .hero__inner > * { opacity: 1; transform: none; animation: none; } }

/* utility */
.text-dim { color: var(--text-dim); }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.divider-label { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); }
