/* OpenFunnels Group site styles.
   Black ground, off-white body, champagne gold #C9A96E.
   Type: Inter Tight for UI and the hero statement; Newsreader is kept on file but unused in the hero. */

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/inter-tight-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/inter-tight-latin-500.woff2") format("woff2");
}

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/fonts/inter-tight-latin-800.woff2") format("woff2");
}

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("assets/fonts/inter-tight-latin-900.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/newsreader-latin-400-opsz72.woff2") format("woff2");
}



:root {
  --bg: #0B0B0B;
  --bg-elevated: #111111;
  --text: #F3F1EA;
  --text-muted: #B0AAA0;
  --gold: #C9A96E;
  --gold-hover: #DCC08A;
  --gold-deep: #8A7040;
  --line: rgba(201, 169, 110, 0.22);
  --line-strong: rgba(201, 169, 110, 0.5);
  --font: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Newsreader", "Times New Roman", Times, serif;
  --page: 86rem;
  --pad: clamp(1.35rem, 5vw, 4rem);
  --header-h: 5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a {
  color: var(--gold);
  text-decoration: none;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--gold-hover);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

::selection {
  background: var(--gold);
  color: var(--bg);
}

.skip {
  position: absolute;
  left: var(--pad);
  top: -100px;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  background: var(--gold);
  color: var(--bg);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skip:focus { top: 0.75rem; outline: none; }

.wrap {
  width: min(100% - 2 * var(--pad), var(--page));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(11, 11, 11, 0.94);
  backdrop-filter: saturate(1.2) blur(18px);
  -webkit-backdrop-filter: saturate(1.2) blur(18px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gold);
  min-width: 0;
}

.brand:hover { color: var(--gold-hover); text-decoration: none; }

.brand-mark {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  color: var(--gold);
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.34em;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

.wordmark .open { font-weight: 800; }
.wordmark .group { font-weight: 400; letter-spacing: 0.01em; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2.4vw, 2rem);
}

.nav a {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav a:hover { color: var(--gold); text-decoration: none; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 5rem;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  text-align: center;
}

.hero .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1.35rem;
  width: min(100% - 2 * var(--pad), 74rem);
}

.hero-copy {
  width: 100%;
  max-width: 62rem;
  min-width: 0;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  container-type: inline-size;
  container-name: hero;
}

.hero h1 {
  --hero-em: 15.5;
  margin: 0 auto 1.5rem;
  width: 100%;
  max-width: none;
  color: var(--text);
  font-family: var(--font);
  font-weight: 500;
  font-style: normal;
  font-size: clamp(2rem, 8.8vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-transform: none;
  font-kerning: normal;
  text-wrap: balance;
  text-align: center;
}

.hero-s {
  display: block;
  text-wrap: balance;
}

.hero-line {
  text-wrap: balance;
}

.hero-glue,
.hero-keep {
  white-space: nowrap;
}

.xs-br { display: none; }

@media (max-width: 370px) {
  .xs-br { display: inline; }
}

.ico {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 0.94em;
  width: 2.08em;
  margin: 0 0.06em 0 0.1em;
  padding: 0;
  overflow: visible;
  vertical-align: -0.16em;
  background: none;
  border: 0;
  box-shadow: none;
  font: inherit;
  color: inherit;
  line-height: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
  transform-origin: center;
}

.ico-tight { margin-right: 0.02em; }

a.ico,
a.ico:hover,
a.ico:focus {
  color: inherit;
  text-decoration: none;
}

.ico:focus { outline: none; }

.ico:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 0.6em;
}

.ico-motion,
.ico-cluster {
  position: relative;
  display: block;
  width: 2.08em;
  height: 0.94em;
  overflow: visible;
}

.ico-people .ico-motion { animation: ico-in 0.55s var(--ease) both; }
.ico-market .ico-motion { animation: ico-in 0.55s var(--ease) 0.1s both; }
.ico-customer .ico-motion { animation: ico-in 0.55s var(--ease) 0.2s both; }

.ico-bit {
  position: absolute;
  top: 0.08em;
  width: 0.8em;
  height: 0.8em;
  padding: 0;
  border: 0;
  border-radius: 50%;
  object-fit: cover;
  background: #111;
  box-shadow:
    0 0 0 0.045em #0B0B0B,
    0 0 0 0.07em rgba(201, 169, 110, 0.9),
    0 0.05em 0.12em rgba(0, 0, 0, 0.55);
  transform-origin: center;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.ico-tile {
  border-radius: 0.2em;
  object-fit: contain;
  background: #0B0B0B;
}

.ico-bit.piece-a { left: 0; z-index: 1; }
.ico-bit.piece-b { left: 0.64em; top: 0.02em; z-index: 3; }
.ico-bit.piece-c { left: 1.28em; z-index: 2; }

.ico-people .piece-a,
.ico-market .piece-a,
.ico-customer .piece-a { animation: ico-wave 4s ease-in-out 0.7s infinite both; }
.ico-people .piece-b,
.ico-market .piece-b,
.ico-customer .piece-b { animation: ico-wave 4s ease-in-out 0.95s infinite both; }
.ico-people .piece-c,
.ico-market .piece-c,
.ico-customer .piece-c { animation: ico-wave 4s ease-in-out 1.2s infinite both; }

.ico:hover .ico-bit,
.ico:focus-visible .ico-bit,
.ico.is-play .ico-bit { animation: none; }

.ico:hover .piece-a,
.ico:focus-visible .piece-a,
.ico.is-play .piece-a { transform: translateX(-0.16em) rotate(-8deg); }

.ico:hover .piece-b,
.ico:focus-visible .piece-b,
.ico.is-play .piece-b { transform: translateY(-0.1em) scale(1.05); }

.ico:hover .piece-c,
.ico:focus-visible .piece-c,
.ico.is-play .piece-c { transform: translateX(0.16em) rotate(8deg); }

@keyframes ico-in {
  from { opacity: 0; transform: scale(0.84) translateY(0.1em); }
  to { opacity: 1; transform: none; }
}

@keyframes ico-wave {
  0%, 16%, 100% { transform: translateY(0); }
  6% { transform: translateY(-0.06em); }
  11% { transform: translateY(0.015em); }
}


/* Locked four-line hero: font scales so the longest nowrap line
   always fits in ~90% of the hero-copy container. */
@media (min-width: 768px) {
  .hero-copy {
    max-width: none;
  }

  .hero h1 {
    max-width: none;
    width: 100%;
    margin-inline: auto;
    margin-bottom: 1.7rem;
    font-size: clamp(2.5rem, min(5.35vw, calc(90cqi / var(--hero-em))), 4.5rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    text-wrap: wrap;
  }

  .hero-s {
    display: block;
    text-wrap: wrap;
  }

  .hero-line {
    display: block;
    white-space: nowrap;
    text-wrap: nowrap;
  }
}

.hero-copy .btn {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(201, 169, 110, 0.72);
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: none;
  padding: 0.88rem 1.55rem;
}

.hero-copy .btn:hover {
  background: var(--gold);
  color: var(--bg);
  text-decoration: none;
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1.15rem 1.9rem;
  background: var(--gold);
  color: var(--bg);
  font-family: inherit;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover {
  background: var(--gold-hover);
  color: var(--bg);
  text-decoration: none;
}

.btn:active { transform: translateY(1px); }

/* Hero coin: minted metal, open slot, float + mouse tilt */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: min(32vw, 8.35rem);
  aspect-ratio: 1;
  z-index: 1;
  flex: 0 0 auto;
}

.coin-halo {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 46%,
    rgba(201, 169, 110, 0.34) 0%,
    rgba(201, 169, 110, 0.12) 38%,
    rgba(201, 169, 110, 0.04) 56%,
    transparent 72%
  );
  filter: blur(12px);
  animation: halo-breathe 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.coin-shadow {
  grid-area: 1 / 1;
  width: 62%;
  height: 16%;
  align-self: end;
  justify-self: center;
  margin-bottom: 2%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.22) 48%, transparent 72%);
  filter: blur(7px);
  pointer-events: none;
  z-index: 2;
}

.coin-scene {
  grid-area: 1 / 1;
  width: 84%;
  aspect-ratio: 1;
  position: relative;
  z-index: 3;
  margin-top: -5%;
  perspective: 1100px;
}

.coin-float {
  width: 100%;
  height: 100%;
  transform: translateZ(0);
  will-change: transform;
  animation: coin-drift 6s ease-in-out infinite;
}

.coin-tilt {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}

.coin-mark {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.coin-sweep {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: coin-sweep 9s ease-in-out 1.8s infinite;
  pointer-events: none;
}

@keyframes coin-drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -5px, 0); }
}

@keyframes coin-sweep {
  0%, 64%, 100% { transform: translateX(-70px); }
  82% { transform: translateX(78px); }
}

@keyframes halo-breathe {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}

/* Ticker */
.ticker {
  overflow: hidden;
  background: var(--gold);
  color: var(--bg);
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  padding: 1.05rem 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: ticker-move 36s linear infinite;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 1.35rem;
  padding: 0 0.25rem 0 1.7rem;
  font-size: clamp(0.82rem, 1.5vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-track span::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  background: var(--bg);
  border-radius: 50%;
  flex: 0 0 auto;
}

@keyframes ticker-move {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */
.section {
  padding: clamp(5.5rem, 14vh, 10rem) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--header-h);
}

.section-head { margin-bottom: clamp(2.5rem, 6vw, 4.25rem); }

.section-kicker {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section h2 .h-line { display: block; }

.section h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.6rem, 7vw, 6.1rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  word-spacing: 0.16em;
  line-height: 0.9;
  text-transform: uppercase;
}

.section-intro {
  margin: 1.1rem 0 0;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 1.2rem;
}

/* Pillars */
.pillars {
  display: grid;
  gap: 2.25rem;
}

.pillar {
  padding-top: 1.6rem;
  border-top: 2px solid var(--gold);
}

.pillar-num {
  display: block;
  margin-bottom: 1rem;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.pillar h3 {
  margin: 0 0 0.75rem;
  color: var(--text);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  word-spacing: 0.14em;
  text-transform: uppercase;
}

.pillar p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.15rem;
  text-wrap: pretty;
}

/* Approach */
.approach-grid {
  display: grid;
  gap: 2.75rem;
}

.approach-lead {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.65rem, 3.2vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  word-spacing: 0.14em;
  line-height: 1.15;
  text-transform: uppercase;
  max-width: 22rem;
}

.approach-points {
  display: grid;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.approach-points h3 {
  margin: 0 0 0.45rem;
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.approach-points p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.15rem;
  text-wrap: pretty;
}

/* Principles */
.principles {
  display: grid;
  gap: 1.75rem 2rem;
}

.principle {
  padding-top: 1.45rem;
  border-top: 2px solid var(--line-strong);
}

.principle h3 {
  margin: 0 0 0.55rem;
  color: var(--gold);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  word-spacing: 0.14em;
  text-transform: uppercase;
}

.principle p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.15rem;
}

/* Contact */
.contact .email {
  display: inline-block;
  margin-top: 0.2rem;
  color: var(--gold);
  font-size: clamp(1.7rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  word-break: break-word;
}

.contact .email:hover { color: var(--gold-hover); }

.contact-note {
  margin: 1.15rem 0 0;
  color: var(--text-muted);
  font-size: 1.15rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.2rem 0 2.8rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--gold);
  font-size: 0.95rem;
}

.footer-brand:hover { text-decoration: none; color: var(--gold-hover); }
.footer-brand .brand-mark { width: 1.4rem; height: 1.4rem; }

.footer-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--gold); }

/* Legal pages stay sentence case and readable */
.legal {
  padding: clamp(3.5rem, 9vw, 6rem) 0 5.5rem;
}

.legal-wrap {
  width: min(100% - 2 * var(--pad), 44rem);
  margin-inline: auto;
}

.legal h1 {
  margin: 0 0 0.7rem;
  color: var(--text);
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-transform: none;
}

.legal .updated {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.legal-notice {
  margin: 0 0 2.5rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.legal h2 {
  margin: 2.4rem 0 0.75rem;
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
}

.legal p,
.legal li {
  color: var(--text-muted);
  font-size: 1.125rem;
}

.legal p { margin: 0 0 1rem; }
.legal ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.legal li { margin: 0 0 0.45rem; }
.legal li::marker { color: var(--gold); }

/* 404 */
.not-found {
  min-height: calc(100svh - var(--header-h) - 8rem);
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.not-found h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  word-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 0.92;
}

.not-found p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1.2rem;
}

/* Reveal */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js-reveal .reveal.is-in {
  opacity: 1;
  transform: none;
}

.js-reveal .reveal-d1 { transition-delay: 0.08s; }
.js-reveal .reveal-d2 { transition-delay: 0.16s; }
.js-reveal .reveal-d3 { transition-delay: 0.24s; }

/* Responsive */
@media (min-width: 760px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 2.75rem;
  }

  .principles {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 3rem;
  }

  .approach-grid {
    grid-template-columns: minmax(14rem, 0.9fr) 1.1fr;
    gap: 3.5rem 5rem;
    align-items: start;
  }
}

@media (min-width: 960px) {
  .hero-visual {
    width: min(12.2vw, 8.85rem);
  }

  .hero-copy {
    max-width: none;
  }
}

@media (max-width: 800px) {
  :root { --pad: clamp(1.15rem, 5.2vw, 2.75rem); }

  .nav a:not(.nav-contact) { display: none; }

  .hero {
    min-height: 0;
    text-align: center;
    padding: 2.5rem 0 3.25rem;
  }

  .hero .wrap { gap: 1rem; }

  .hero-copy {
    max-width: none;
    width: 100%;
  }

  .hero-copy .btn { margin-inline: auto; }

  .hero-visual {
    width: min(30vw, 7.6rem);
  }

  .contact .email {
    font-size: clamp(1.15rem, 5.6vw, 3.4rem);
    word-break: normal;
    overflow-wrap: normal;
  }

  .contact, .section-head { text-align: left; }
}

@media (max-width: 767px) {
  .hero h1 {
    margin-bottom: 1.45rem;
    width: calc(100% + 1.25rem);
    margin-inline: -0.625rem;
    font-size: clamp(2rem, 8.8vw, 2.5rem);
    line-height: 1.12;
    max-width: none;
    text-wrap: balance;
  }

  .hero-line {
    display: inline;
    white-space: normal;
    text-wrap: balance;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .site-header {
    backdrop-filter: none;
    background: var(--bg);
  }

  .coin-float,
  .coin-sweep,
  .coin-halo,
  .ticker-track,
  .ico,
  .ico-products,
  .ico-people,
  .ico-market,
  .ico-customer,
  .ico-motion,
  .ico-bit {
    animation: none !important;
  }

  .js-reveal .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .coin-halo { opacity: 0.75; animation: none; }
  .ticker-track { width: auto; }

  .ico,
  .ico-motion,
  .ico-bit {
    opacity: 1;
    transform: none !important;
    transition: none !important;
  }
}

@media print {
  .site-header, .nav, .skip, .ticker, .hero-visual { display: none; }
  body, html { background: #fff; color: #111; }
  .legal p, .legal li, .lead, .pillar p, .principle p { color: #333; }
  a { color: #000; text-decoration: underline; }
}
