/* ============ IPR — Momentum is a decision ============ */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../assets/fonts/BricolageGrotesque-Variable.ttf") format("truetype-variations");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --onyx: #131711;
  --onyx-deep: #0c0f0b;
  --snow: #f7f2f3;
  --iron: #a61c01;
  --evergreen: #23331f;
  --chartreuse: #eeff41;
  --snow-40: rgba(247, 242, 243, 0.4);
  --snow-12: rgba(247, 242, 243, 0.12);
  --pad: clamp(1.25rem, 4vw, 4rem);
  --font: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font);
  background: var(--onyx);
  color: var(--snow);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--iron); color: var(--snow); }

.dot { color: var(--iron); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--onyx-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.5rem;
}
.loader__mark {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.loader__bar {
  width: min(240px, 50vw); height: 1px;
  background: var(--snow-12);
  overflow: hidden;
}
.loader__bar span {
  display: block; width: 100%; height: 100%;
  background: var(--iron);
  transform: scaleX(0); transform-origin: left;
}

/* ---------- Cursor ---------- */
.cursor, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 99;
  border-radius: 50%; pointer-events: none;
}
.cursor {
  width: 6px; height: 6px;
  background: var(--iron);
  transform: translate(-50%, -50%);
}
/* A soft water lens: no outline, just sunlight pooling on the surface. */
.cursor-ring {
  width: 52px; height: 52px;
  background: radial-gradient(circle, rgba(110, 195, 218, 0.20) 0%, rgba(90, 180, 205, 0.08) 50%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
}
.cursor-ring.is-hover {
  width: 88px; height: 88px;
  background: radial-gradient(circle, rgba(130, 215, 235, 0.26) 0%, rgba(110, 200, 222, 0.10) 50%, transparent 70%);
}
/* Gentle rings when you touch the water. */
.ripple {
  position: fixed; z-index: 98;
  border: 1px solid rgba(190, 235, 245, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-ring { display: none; }
}

/* ---------- WebGL field, vignette, grain ---------- */
#field {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  display: block;
}
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 50%, rgba(12, 15, 11, 0.7) 100%);
}
.grain {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(1rem, 2.5vw, 1.75rem) var(--pad);
  mix-blend-mode: normal;
}
.nav__logo {
  font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em;
  color: var(--snow); text-decoration: none;
}
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.25rem); }
.nav__links a {
  color: var(--snow-40); text-decoration: none;
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  transition: color 0.25s ease;
}
.nav__links a:hover { color: var(--snow); }
.nav__cta {
  border: 1px solid var(--snow-12);
  padding: 0.6em 1.2em; border-radius: 2em;
  color: var(--snow) !important;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.nav__cta:hover { background: var(--iron); border-color: var(--iron); }

main { position: relative; z-index: 10; }
section { position: relative; }

.section-label {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--iron);
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--pad) clamp(2rem, 5vh, 4rem);
}
.hero__kicker {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--snow-40);
  margin-bottom: 1.25rem;
}
.hero__title {
  font-size: clamp(3rem, 11.5vw, 11rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-transform: uppercase;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__foot {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(2rem, 5vh, 3.5rem);
}
.hero__sub {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  font-weight: 400; line-height: 1.55;
  color: var(--snow-40);
  max-width: 34ch;
}
.hero__scroll {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--snow-40);
  flex-shrink: 0;
}
.hero__scroll i {
  display: block; width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--iron), transparent);
}

/* ---------- Manifesto ---------- */
.manifesto {
  padding: clamp(8rem, 20vh, 14rem) var(--pad);
  max-width: 1200px;
}
.manifesto__text {
  font-size: clamp(1.6rem, 4.2vw, 3.4rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.manifesto__text .word { opacity: 0.12; }

/* ---------- Trusted by: client logo marquee ---------- */
.trusted { padding: clamp(4rem, 9vh, 7rem) 0 clamp(4rem, 10vh, 7rem); }
.trusted .section-label { padding-left: var(--pad); padding-right: var(--pad); }
.logos {
  overflow: hidden; white-space: nowrap;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.logos__track {
  display: inline-flex; align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.logo { flex-shrink: 0; opacity: 0.4; transition: opacity 0.3s ease; cursor: default; }
.logo:hover { opacity: 1; }
/* Real logo images flatten to one monochrome-white voice on the dark field.
   Height sets the rhythm; max-width + object-fit reins in ultra-wide wordmarks. */
img.logo {
  height: clamp(26px, 3.2vw, 38px);
  width: auto; max-width: clamp(150px, 20vw, 240px);
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* ---------- Member of: credentials seal (highlighted) ---------- */
.creds { padding: 0 var(--pad) clamp(3rem, 7vh, 5rem); }
.creds__lead {
  max-width: 46ch;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.55; color: var(--snow);
  margin-bottom: clamp(2rem, 5vh, 3rem);
}
.creds__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  border-top: 1px solid var(--snow-12);
  border-bottom: 1px solid var(--snow-12);
}
.cred {
  display: flex; align-items: center; justify-content: center;
  padding: clamp(2.25rem, 5vh, 3.5rem) 1rem;
  position: relative;
}
.cred + .cred::before {
  content: ""; position: absolute; left: 0; top: 0;
  height: 100%; width: 1px; background: var(--snow-12);
}
.cred img {
  height: clamp(34px, 4.5vw, 54px); width: auto;
  max-width: 100%; object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85; transition: opacity 0.3s ease;
}
.cred:hover img { opacity: 1; }

/* ---------- Pillars ---------- */
.pillars { padding: clamp(4rem, 10vh, 8rem) var(--pad); }
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}
.pillar {
  border-top: 1px solid var(--snow-12);
  padding-top: 1.5rem;
  position: relative;
}
.pillar::before {
  content: ""; position: absolute; top: -1px; left: 0;
  width: 0%; height: 1px; background: var(--iron);
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.pillar:hover::before { width: 100%; }
.pillar__num {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em;
  color: var(--iron);
}
.pillar h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  font-weight: 700; letter-spacing: -0.02em;
  margin: 0.9rem 0 1rem;
}
.pillar p {
  font-size: 0.95rem; line-height: 1.65;
  color: var(--snow-40);
  max-width: 36ch;
}

/* ---------- Red band — energetic divider strip ---------- */
.band {
  background: var(--iron);
  color: var(--snow);
  padding: clamp(2rem, 5vh, 3.25rem) 0;
  overflow: hidden;
}
.band__marquee { overflow: hidden; white-space: nowrap; }
.band__track {
  display: inline-flex;
  font-size: clamp(2.6rem, 7vw, 6.5rem);
  font-weight: 800; letter-spacing: -0.03em;
  text-transform: uppercase;
}
.band-dot { color: var(--chartreuse); font-style: normal; }

/* ---------- Footer ---------- */
.footer {
  padding: clamp(5rem, 11vh, 8rem) var(--pad) clamp(1.5rem, 4vh, 3rem);
}
.footer__title {
  font-size: clamp(3.4rem, 12vw, 12rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-transform: uppercase;
}
.footer__cta {
  display: inline-block;
  margin-top: clamp(2.5rem, 6vh, 4rem);
  color: var(--snow); text-decoration: none;
  font-size: clamp(1.1rem, 2.2vw, 1.8rem);
  font-weight: 600;
}
.footer__cta em {
  display: block; height: 2px; margin-top: 0.35rem;
  background: var(--chartreuse);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.footer__cta:hover em { transform: scaleX(1); }
/* Terminal CTA: a dominant primary action (opens the intake form),
   with email demoted to a quiet fallback below it. */
.footer__cta-group {
  margin-top: clamp(2.5rem, 6vh, 4rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}
.footer__start {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  background: var(--iron);
  color: var(--snow);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  letter-spacing: -0.01em;
  padding: 0.85em 1.7em;
  border-radius: 2em;
  transition: background 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 10px 30px rgba(166, 28, 1, 0.25);
}
.footer__start:hover { background: #c5421f; transform: translateY(-2px); box-shadow: 0 16px 40px rgba(166, 28, 1, 0.35); }
.footer__start-arrow { transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.footer__start:hover .footer__start-arrow { transform: translateX(5px); }
.footer__cta--alt {
  margin-top: 0;
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  font-weight: 500;
  color: var(--snow-40);
}
.footer__cta--alt:hover { color: var(--snow); }
.footer__cta--alt em { background: var(--snow-40); }
.footer__base {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: clamp(5rem, 12vh, 9rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--snow-12);
  font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--snow-40);
}

/* ---------- Mobile (375px-first) ---------- */
@media (max-width: 760px) {
  /* Keep the Team link (and CTA) reachable on mobile; hide the rest. */
  .nav__links a:not(.nav__cta):not(.nav__team) { display: none; }
  .nav__links { gap: 0.9rem; }
  .nav__team { font-size: 0.72rem; }
  .hero__title { font-size: clamp(2.6rem, 13.5vw, 4rem); }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .hero__scroll { flex-direction: row; gap: 0.6rem; }
  .hero__scroll i { width: 36px; height: 1px; background: linear-gradient(to right, var(--iron), transparent); }
  .pillars__grid { grid-template-columns: 1fr; }
  /* Member-of seal stays on one line (3 across), like desktop. */
  .cred { padding: 1.75rem 0.4rem; }
  .footer__cta { font-size: 1.05rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
  .cursor, .cursor-ring { display: none; }
  .manifesto__text .word { opacity: 1; }
}
