/* ==========================================================================
   T3C Technologies — design system (dark/neon: near-black, teal accent, gradient text)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&family=Josefin+Sans:wght@200;300;400;500;600;700&display=swap');

:root {
  /* color */
  --ink: #F5F7FA;
  --ink-soft: #E2E7EE;
  --ink-faint: #6B7686;
  --paper: #04070F;
  --surface: #0B111F;
  --line: rgba(255,255,255,0.10);
  --line-dark: rgba(255,255,255,0.06);
  --navy: #030509;
  --navy-soft: #0F1626;
  --cream: #F5F7FA;
  --accent: #2DD4BF;
  --accent-dark: #14B8A6;
  --accent-tint: rgba(45, 212, 191, 0.12);
  --teal: #60A5FA;
  --teal-tint: rgba(96, 165, 250, 0.12);
  --violet: #A78BFA;
  --gradient-text: linear-gradient(90deg, #2DD4BF, #60A5FA, #A78BFA);

  /* type — Jost (a free, open Century Gothic alternative) + Josefin Sans,
     the same pairing mont-fort.com uses: geometric sans for UI/body,
     light Josefin Sans reserved for the big hero display type */
  --font-display: 'Jost', -apple-system, sans-serif;
  --font-hero: 'Josefin Sans', 'Jost', -apple-system, sans-serif;
  --font-body: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Jost', -apple-system, sans-serif;

  /* misc */
  --radius-sm: 0px;
  --radius: 0px;
  --radius-pill: 0px;
  --container: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
html.lenis.lenis-smooth { scroll-behavior: auto !important; }
html.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.1875rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; cursor: pointer; }

/* ---------- type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-hero);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 4.6vw + 1rem, 4.75rem); font-weight: 300; }
h2 { font-size: clamp(2rem, 2.6vw + 1rem, 3rem); font-weight: 300; }
h3 { font-size: clamp(1.35rem, 1.1vw + 1rem, 1.6rem); font-weight: 400; }
h4 { font-size: 1.1rem; font-weight: 500; letter-spacing: 0; }

.grad-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lede {
  font-size: clamp(1.25rem, 1vw + 1.05rem, 1.55rem);
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 46em;
}
p { color: var(--ink-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.02);
}
.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 8px 1px var(--accent);
}
.eyebrow.on-dark { color: var(--accent); }
.eyebrow.on-dark::before { background: var(--teal); box-shadow: 0 0 8px 1px var(--teal); }

/* section-level eyebrow (no pill, used above big headings) */
.eyebrow--line {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
  padding: 0; border: none; background: none;
}
.eyebrow--line::before {
  content: '';
  width: 28px; height: 1.5px;
  background: var(--accent);
  border-radius: 0;
  box-shadow: none;
}

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.75rem;
}
.section { padding: clamp(4rem, 8vw, 7.5rem) 0; }
.section--tight { padding: clamp(3rem, 5vw, 4.5rem) 0; }
.section--dark { background: var(--navy); color: var(--cream); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--cream); }
.section--dark p { color: var(--ink-soft); }
.section--surface { background: var(--surface); }
.hairline-top { border-top: 1px solid var(--line); }
.hairline-bottom { border-bottom: 1px solid var(--line); }

.grid { display: grid; gap: 2.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- buttons ---------- */
.btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.9rem 1.7rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), filter 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #04140F; }
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn-outline { border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-outline-light { border-color: var(--line); color: var(--cream); }
.btn-outline-light:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-text { padding: 0; font-weight: 500; border-bottom: 2px solid var(--accent); border-radius: 0; color: var(--accent); }
.btn-text:hover { color: var(--teal); border-color: var(--teal); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 7, 15, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.logo {
  font-family: var(--font-hero);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo-img { height: 44px; width: auto; display: block; }
.site-footer .logo-img { height: 40px; }
.logo-tagline {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.site-footer .logo-tagline { color: var(--ink-faint); }
.nav-links { display: flex; align-items: center; gap: 2.4rem; }
.nav-links > li { position: relative; }
.nav-links a.top-link { font-weight: 500; font-size: 1.1rem; padding: 0.5rem 0; color: var(--ink-soft); }
.nav-links a.top-link:hover { color: var(--ink); }
.has-dropdown > .top-link { display: inline-flex; align-items: center; gap: 0.35rem; }
.has-dropdown > .top-link::after {
  content: '';
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -4px;
}
.dropdown {
  position: absolute;
  top: 100%;
  left: -1.5rem;
  padding-top: 1rem;
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s var(--ease);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-inner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0,0,0,0.55);
  padding: 0.6rem;
}
.dropdown-inner a {
  display: block;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.dropdown-inner a:hover { background: var(--accent-tint); color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 1.5rem; }
.nav-toggle {
  display: none;
  background: none; border: none; padding: 0.5rem;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); display: block; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-cta .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    inset: 84px 0 0 0;
    background: var(--paper);
    padding: 1.5rem 1.75rem 2rem;
    gap: 0;
    overflow-y: auto;
    z-index: 99;
  }
  body.nav-open .nav-links > li { width: 100%; border-bottom: 1px solid var(--line); }
  body.nav-open .nav-links a.top-link { display: block; padding: 1.1rem 0; }
  body.nav-open .has-dropdown > .top-link::after { display: none; }
  body.nav-open .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    padding-top: 0; padding-bottom: 0.75rem;
  }
  body.nav-open .dropdown-inner { border: none; box-shadow: none; padding: 0; }
  body.nav-open .dropdown-inner a { padding: 0.6rem 0; }
  body.nav-open .nav-cta { margin-top: 1.5rem; width: 100%; }
  body.nav-open .nav-cta .btn-primary { display: inline-flex; width: 100%; justify-content: center; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}
.hero > .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: end;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { max-width: 16em; }
.hero-meta {
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.25rem; }

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  animation: marquee 32s linear infinite;
}
.marquee-track span {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.marquee-track .dot { color: var(--accent); font-size: 1.5rem; text-shadow: 0 0 10px var(--accent); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(0,0,0,0.5); border-color: var(--accent-tint); }
.card .num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-faint);
  font-weight: 500;
  margin-bottom: 1.25rem;
  display: block;
}
.card .num::before { content: '/'; }
.card h3 { margin-bottom: 0.85rem; }
.card p { margin-bottom: 1.25rem; }
.icon-tile {
  width: 3rem; height: 3rem;
  border-radius: var(--radius-sm);
  background: var(--accent-tint);
  border: 1px solid var(--line);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.icon-tile svg { width: 22px; height: 22px; }

/* ---------- stats ---------- */
.stat-row { display: flex; flex-wrap: wrap; gap: 3rem; }
.stat .num {
  font-family: var(--font-hero);
  font-size: clamp(2.5rem, 3.5vw, 3.5rem);
  font-weight: 300;
  color: var(--ink);
  display: block;
}
.stat .label { font-size: 0.9rem; color: var(--ink-faint); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; font-family: var(--font-mono); }
.section--dark .stat .num { color: var(--cream); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: var(--cream); border-top: 1px solid var(--line); }
.footer-top { padding: clamp(3.5rem, 6vw, 5.5rem) 0 3rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--ink-faint); font-family: var(--font-mono); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1.25rem; }
.footer-grid li { margin-bottom: 0.8rem; }
.footer-grid a { color: var(--ink-soft); font-size: 0.98rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.footer-bottom .footer-tagline { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.footer-ids { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.field label { font-weight: 600; font-size: 0.88rem; color: var(--ink); }
.field input, .field textarea, .field select {
  font: inherit;
  padding: 0.9rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); opacity: 1; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- misc ---------- */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--teal-tint);
  color: var(--teal);
}
.divider { height: 1px; background: var(--line); border: none; margin: 0; }
.pill-list { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.pill-list li {
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 500;
}
.logo-row { display: flex; flex-wrap: wrap; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.logo-row span { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink-faint); font-weight: 500; }

.cta-band {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--cream);
  border-radius: var(--radius);
  padding: clamp(2.5rem, 5vw, 4.5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--cream); max-width: 14em; }

.breadcrumb { font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-faint); font-weight: 500; margin-bottom: 1.5rem; }
.breadcrumb a:hover { color: var(--accent); }

.article-body h2 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.6rem; }
.article-body p { margin-bottom: 1.25rem; font-size: 1.2rem; }
.article-body ul { margin-bottom: 1.25rem; }
.article-body li { color: var(--ink-soft); padding-left: 1.4rem; position: relative; margin-bottom: 0.6rem; }
.article-body li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: #04140F; padding: 1rem;
  z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- motion: hero sizing for parallax room ---------- */
@media (min-width: 901px) {
  .hero { min-height: 86svh; display: flex; align-items: center; }
  .hero > .container { width: 100%; }
}

/* ---------- motion: parallax orbs ----------
   Clipped in their own absolute layer so the blurred glow (and the hero
   particle canvas, which moves during scroll) never bleed into neighboring
   sections — while .hero/.section--dark themselves stay overflow-visible
   so real text content is never cut off, however tall it gets. */
.parallax-bg-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.parallax-orb {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  pointer-events: none;
}
.parallax-orb--a {
  width: 26rem; height: 26rem;
  top: -8rem; right: -6rem;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}
.parallax-orb--b {
  width: 22rem; height: 22rem;
  bottom: -9rem; left: -4rem;
  background: radial-gradient(circle, var(--violet) 0%, transparent 70%);
}
.section--dark .parallax-orb { opacity: 0.35; }

/* ---------- motion: chapter navigation ---------- */
.chapter-nav {
  position: fixed;
  right: 1.75rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
}
.chapter-nav ul { display: flex; flex-direction: column; gap: 1.1rem; align-items: flex-end; }
.chapter-dot { display: flex; align-items: center; gap: 0.7rem; }
.chapter-dot-mark {
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-faint);
  background: transparent;
  transition: all 0.3s var(--ease);
}
.chapter-dot-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.85rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: all 0.25s var(--ease);
  pointer-events: none;
}
.chapter-dot:hover .chapter-dot-label { opacity: 1; transform: translateX(0); }
.chapter-dot:hover .chapter-dot-mark,
.chapter-dot.is-active .chapter-dot-mark {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 8px 1px var(--accent);
  transform: scale(1.3);
}
@media (max-width: 1080px) { .chapter-nav { display: none; } }

/* ---------- motion: page-leave transition ---------- */
body { transition: opacity 0.28s ease; }
body.page-leaving { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  body { transition: none; }
  .chapter-dot-mark, .chapter-dot-label { transition: none; }
}
