/* ==========================================================================
   Bitcoin's Gym — bitcoinsgym.com
   Palette: Bitcoin orange on deep jungle green + warm sand.
   No frameworks, no webfonts, no render-blocking bloat.
   ========================================================================== */

:root {
  --orange: #f7931a;
  --orange-deep: #d97a06;
  --orange-soft: rgba(247, 147, 26, 0.14);

  --jungle-950: #0a140e;
  --jungle-900: #0e1b13;
  --jungle-800: #142519;
  --jungle-700: #1d3323;
  --leaf: #4c9a63;
  --leaf-bright: #6fbe86;

  --sand: #f2ead9;
  --sand-deep: #e7dcc4;
  --bone: #fbf7ee;
  --ink: #16211a;
  --ink-soft: #45523f;
  --mist: rgba(251, 247, 238, 0.72);

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 72rem;
  --radius: 0.9rem;
  --shadow: 0 20px 50px -18px rgba(4, 10, 6, 0.55);
}

/* ---------- Reset & base ---------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--mist);
  background: var(--jungle-950);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.08; margin: 0 0 1rem; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; }
ul, dl { margin: 0; padding: 0; }

a { color: var(--orange); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange-deep); }

::selection { background: rgba(247, 147, 26, 0.35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--orange);
  color: var(--jungle-950);
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Header / nav ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(10, 20, 14, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(251, 247, 238, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--bone);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.brand:hover { color: var(--bone); }
.brand-mark { color: var(--bone); flex: none; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  list-style: none;
}

.nav-menu a {
  color: var(--mist);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.nav-menu a:hover { color: var(--orange); }

.nav-cta {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: var(--orange);
  color: var(--jungle-950) !important;
  font-weight: 700;
}
.nav-cta:hover { background: var(--orange-deep); }

.nav-toggle {
  display: none;
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1.5rem;
  height: 2px;
  background: var(--bone);
  transform: translateX(-50%);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle-bar { top: calc(50% - 1px); }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateX(-50%) translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateX(-50%) translateY(-7px) rotate(-45deg); }

@media (max-width: 799px) {
  .nav-toggle { display: block; }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 20, 14, 0.97);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem 1.25rem;
    display: none;
    box-shadow: var(--shadow);
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { border-top: 1px solid rgba(251, 247, 238, 0.08); }
  .nav-menu li:first-child { border-top: 0; }
  .nav-menu a { display: block; padding: 0.9rem 0.25rem; font-size: 1.05rem; }
  .nav-menu .nav-cta { margin-top: 0.75rem; text-align: center; border-radius: 0.6rem; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom,
      rgba(10, 20, 14, 0.55) 0%,
      rgba(10, 20, 14, 0.25) 35%,
      rgba(10, 20, 14, 0.55) 68%,
      rgba(10, 20, 14, 0.94) 100%);
}

.hero-inner {
  width: 100%;
  padding-top: 7rem;
  padding-bottom: clamp(3rem, 8vh, 6rem);
}

.eyebrow {
  display: inline-block;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(247, 147, 26, 0.45);
  border-radius: 999px;
  background: rgba(10, 20, 14, 0.55);
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.9rem, 9vw, 6.5rem);
  font-weight: 800;
  color: var(--bone);
  text-wrap: balance;
  margin-bottom: 1.25rem;
}

.hero-title em {
  font-style: normal;
  color: var(--orange);
}

.hero-sub {
  max-width: 44rem;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: rgba(251, 247, 238, 0.88);
  margin-bottom: 2.25rem;
  text-wrap: pretty;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--orange);
  color: var(--jungle-950);
  box-shadow: 0 12px 32px -10px rgba(247, 147, 26, 0.55);
}
.btn-primary:hover { background: var(--orange-deep); color: var(--jungle-950); }

.btn-ghost {
  background: rgba(251, 247, 238, 0.08);
  color: var(--bone);
  border: 1px solid rgba(251, 247, 238, 0.28);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(251, 247, 238, 0.16); color: var(--bone); }

.btn-lg { padding: 1.15rem 2.4rem; font-size: 1.15rem; }

/* ---------- Ticker ---------- */

.ticker {
  overflow: hidden;
  border-top: 1px solid rgba(247, 147, 26, 0.35);
  border-bottom: 1px solid rgba(247, 147, 26, 0.35);
  background: rgba(10, 20, 14, 0.85);
  padding: 0.7rem 0;
}

.ticker-track {
  display: flex;
  gap: 2.25rem;
  width: max-content;
  animation: ticker 36s linear infinite;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(251, 247, 238, 0.75);
  white-space: nowrap;
}

.ticker .tick { color: var(--orange); letter-spacing: 0; }

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

/* ---------- Sections ---------- */

.section { padding-block: clamp(4rem, 10vw, 7.5rem); }

.section h2 {
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  font-weight: 800;
  text-wrap: balance;
}

.section-dark { background: var(--jungle-950); color: var(--mist); }
.section-dark h2, .section-dark h3 { color: var(--bone); }

.section-sand { background: var(--sand); color: var(--ink-soft); }
.section-sand h2, .section-sand h3 { color: var(--ink); }
.section-sand .lead { color: var(--ink-soft); }
.section-sand a { color: var(--orange-deep); }

.section-jungle {
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(76, 154, 99, 0.18), transparent 60%),
    radial-gradient(50rem 28rem at 0% 110%, rgba(247, 147, 26, 0.1), transparent 60%),
    var(--jungle-900);
  color: var(--mist);
}
.section-jungle h2 { color: var(--bone); }

.kicker {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.9rem;
}
.kicker-light { color: rgba(251, 247, 238, 0.85); }

.lead {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: rgba(251, 247, 238, 0.85);
  text-wrap: pretty;
}

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }

.grid-2 {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-2--media-right > .reveal:first-child { order: 0; }
}

/* ---------- Concept cards ---------- */

.card-list { list-style: none; display: grid; gap: 1.1rem; }

.card {
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius);
  background: rgba(251, 247, 238, 0.04);
  border: 1px solid rgba(251, 247, 238, 0.1);
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.card:hover {
  border-color: rgba(247, 147, 26, 0.45);
  background: rgba(247, 147, 26, 0.06);
  transform: translateY(-2px);
}

.card-icon {
  width: 2rem;
  height: 2rem;
  color: var(--orange);
  margin-bottom: 0.8rem;
}

.card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.card p { margin: 0; font-size: 0.97rem; color: rgba(251, 247, 238, 0.72); }

.pull-quote {
  margin: 2rem 0 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--orange);
  background: rgba(247, 147, 26, 0.07);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.pull-quote p {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 700;
  font-style: italic;
  color: var(--bone);
}
.pull-quote footer { font-size: 0.9rem; color: rgba(251, 247, 238, 0.6); }

/* ---------- Ethos grid (The Build) ---------- */

.ethos-grid {
  list-style: none;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.ethos {
  background: var(--bone);
  border: 1px solid rgba(22, 33, 26, 0.08);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem;
  box-shadow: 0 10px 30px -18px rgba(22, 33, 26, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ethos:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -18px rgba(22, 33, 26, 0.4);
}

.ethos-icon {
  width: 2.4rem;
  height: 2.4rem;
  color: var(--orange-deep);
  background: var(--orange-soft);
  border-radius: 0.65rem;
  padding: 0.45rem;
  margin-bottom: 1rem;
}

.ethos h3 { font-size: 1.15rem; color: var(--ink); margin-bottom: 0.4rem; }
.ethos p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

.build-note {
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  max-width: 40rem;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}

/* ---------- Media figures ---------- */

figure { margin: 0; }

.media-stack {
  position: relative;
  padding-bottom: 4.5rem;
}

.media-stack img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.media-stack-offset {
  position: absolute;
  right: -0.5rem;
  bottom: 0;
  width: 52%;
  border: 5px solid var(--jungle-950);
}

.media-single img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}

.media-single figcaption {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-style: italic;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.check-list li {
  position: relative;
  padding-left: 2rem;
  color: rgba(251, 247, 238, 0.85);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%230a140e" d="M9.6 16.2 5.4 12l1.4-1.4 2.8 2.8 7.6-7.6L18.6 7.2z"/></svg>')
    center / 0.9rem no-repeat,
    var(--orange);
}

/* ---------- Location facts ---------- */

.loc-facts {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.loc-fact {
  border: 1px solid rgba(251, 247, 238, 0.12);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  background: rgba(251, 247, 238, 0.03);
}

.loc-fact dt {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--leaf-bright);
  margin-bottom: 0.35rem;
}

.loc-fact dd { margin: 0; font-size: 1.08rem; font-weight: 600; color: var(--bone); }

/* ---------- CTA ---------- */

.section-cta {
  background:
    radial-gradient(50rem 26rem at 50% -20%, rgba(247, 147, 26, 0.22), transparent 65%),
    linear-gradient(180deg, var(--jungle-900), var(--jungle-950));
  text-align: center;
}

.cta-inner { max-width: 44rem; }
.cta-inner h2 { color: var(--bone); font-size: clamp(2.1rem, 5vw, 3.4rem); }
.cta-inner .lead { margin-bottom: 2rem; }

.cta-fineprint {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: rgba(251, 247, 238, 0.55);
}

/* ---------- Footer ---------- */

.site-footer {
  background: #071009;
  border-top: 1px solid rgba(251, 247, 238, 0.08);
  padding-top: 3.25rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.2fr 1.4fr 1fr; }
}

.footer-brand {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--bone);
  margin-bottom: 0.25rem;
}

.footer-tag { color: var(--orange); font-weight: 600; }

.footer-heading {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(251, 247, 238, 0.5);
  margin-bottom: 0.6rem;
}

.footer-text { color: rgba(251, 247, 238, 0.7); }

.footer-legal {
  border-top: 1px solid rgba(251, 247, 238, 0.08);
  padding-block: 1.4rem;
  color: rgba(251, 247, 238, 0.45);
  font-size: 0.85rem;
}
.footer-legal p { margin: 0; }

/* ---------- Reveal on scroll ---------- */
/* Hidden state only applies when JS is running (html.js added by main.js),
   so no-JS visitors always see full content. */

html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* No-JS and reduced motion: everything visible, nothing moves */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  .btn:hover, .card:hover, .ethos:hover { transform: none; }
}
