/* ============================================
   Entropy 256 — Family Office
   Black · warm ivory · champagne gold
   ============================================ */

:root {
  --band: #050506;        /* true black — header, hero, notice, footer */
  --bg: #0c0c0e;          /* body background */
  --bg-alt: #131316;      /* alternate sections */
  --text: #ece8dd;        /* warm ivory */
  --text-soft: #c7c3b8;
  --text-faint: #94918a;
  --gold: #c6a15b;        /* champagne gold */
  --gold-light: #ddc08a;
  --line: #232327;
  --line-soft: #1a1a1d;
  --serif: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;  /* display + body */
  --sans: "IBM Plex Mono", "Courier New", monospace;  /* technical labels */
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Layout ---------- */

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px;
}

.narrow { max-width: 720px; }

/* ---------- BTC ticker strip ---------- */

.ticker {
  background: #000;
  border-bottom: 1px solid var(--line-soft);
}

.ticker-inner {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 18px;
  padding: 9px 0;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ticker .pair { color: var(--text-faint); }

.ticker .price { color: var(--gold-light); font-weight: 500; }

.ticker .chg { color: var(--text-faint); }

.ticker .chg.up { color: #8fbf9a; }

.ticker .chg.down { color: #c98a7d; }

/* ---------- Header / Nav ---------- */

header {
  background: var(--band);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  flex-wrap: wrap;
  gap: 16px;
}

.brand { text-align: left; }

.wordmark {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  display: block;
}

.wordmark span { color: var(--gold); }

.brand .est {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 4px;
}

nav {
  display: flex;
  gap: 36px;
}

nav a {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

nav a:hover { color: var(--text); }

nav a.active {
  color: var(--text);
  border-bottom-color: var(--gold);
}

/* ---------- Video / motion hero (home) ---------- */

.hero {
  position: relative;
  background: var(--band);
  color: var(--text);
  overflow: hidden;
  text-align: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media canvas,
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-media video { z-index: 1; opacity: 0.45; }

.hero-media .scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse at center, rgba(5, 5, 6, 0.3) 0%, rgba(5, 5, 6, 0.65) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 150px 32px 140px;
  max-width: 900px;
  margin: 0 auto;
}

.hero .kicker {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 34px;
}

.hero h1 {
  font-size: clamp(34px, 5.5vw, 58px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: 0.01em;
  margin-bottom: 30px;
  color: var(--text);
}

.hero .lede {
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto;
}

.hero-rule {
  width: 64px;
  height: 1px;
  background: var(--gold);
  margin: 44px auto 0;
}

/* ---------- Marquee strip ---------- */

.marquee {
  background: #000;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
  position: relative;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-track span {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
  padding: 0 28px;
}

.marquee-track span i {
  font-style: normal;
  color: var(--gold);
  padding-right: 56px;
}

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

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  padding: 90px 0 70px;
  text-align: center;
  background: var(--band);
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.page-hero .kicker {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 22px;
}

.page-hero h1 {
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

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

section { padding: 90px 0; }

section.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 18px;
}

h2 {
  font-size: 32px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 46px;
  line-height: 1.25;
  color: var(--text);
}

h3 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}

p + p { margin-top: 1.2em; }

.prose { color: var(--text-soft); }

.prose strong { color: var(--text); font-weight: 600; }

blockquote {
  font-size: 21px;
  font-style: normal;
  font-weight: 500;
  text-align: center;
  color: var(--text);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.5;
}

blockquote footer {
  font-family: var(--sans);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: none;
  background: none;
  margin-top: 26px;
}

/* ---------- Pillars / cards ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.pillar {
  background: var(--bg);
  padding: 48px 36px;
  transition: background 0.3s;
}

.pillar:hover { background: var(--bg-alt); }

.pillar .numeral {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--gold);
  display: block;
  margin-bottom: 18px;
}

.pillar h3 { font-size: 19px; }

.pillar p { font-size: 15px; color: var(--text-soft); }

/* ---------- Stats band ---------- */

.stats {
  background: var(--band);
  color: var(--text);
  padding: 84px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  text-align: center;
}

.stat .label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.stat .value {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 500;
  color: var(--text);
  line-height: 1.1;
}

.stat .value em {
  font-style: normal;
  color: var(--gold-light);
}

/* ---------- Carousel ---------- */

.carousel-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 90px 0;
}

.carousel {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.slide {
  flex: 0 0 100%;
  padding: 12px 56px;
  text-align: center;
}

.slide .quote {
  font-size: 21px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
}

.slide .attribution {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 26px;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 44px;
}

.carousel-arrow {
  background: none;
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-family: var(--sans);
  font-size: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  line-height: 1;
}

.carousel-arrow:hover { border-color: var(--gold); color: var(--gold); }

.carousel-dots { display: flex; gap: 10px; }

.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--line);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dots button.active {
  background: var(--gold);
  transform: scale(1.3);
}

/* ---------- Notice band ---------- */

.notice {
  background: var(--band);
  color: var(--text);
  text-align: center;
  padding: 64px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.notice .kicker {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 18px;
}

.notice p {
  font-size: 19px;
  font-style: normal;
  font-weight: 500;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ---------- Principles list (about page) ---------- */

.principles { list-style: none; max-width: 760px; margin: 0 auto; }

.principles li {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 28px;
  align-items: baseline;
}

.principles li:first-child { border-top: 1px solid var(--line); }

.principles .numeral {
  font-family: var(--sans);
  font-size: 20px;
  color: var(--gold);
}

.principles h3 { font-size: 19px; margin-bottom: 8px; }

.principles p { font-size: 15px; color: var(--text-soft); }

/* ---------- Focus page strategies ---------- */

.strategy {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.strategy:last-of-type { border-bottom: none; }

.strategy .side .numeral {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}

.strategy .side h3 { font-size: 23px; line-height: 1.25; }

.strategy .side .tag {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 12px;
}

.strategy .body { color: var(--text-soft); }

/* ---------- Contact form ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
  align-items: start;
}

.contact-info h3 { font-size: 19px; margin-bottom: 12px; }

.contact-info p { font-size: 15px; color: var(--text-soft); }

.contact-info .block { margin-bottom: 36px; }

form label {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 8px;
}

form input,
form textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 14px 16px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 28px;
  border-radius: 0;
  transition: border-color 0.2s;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

form textarea { min-height: 160px; resize: vertical; }

button[type="submit"] {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gold);
  color: #0c0c0e;
  border: 1px solid var(--gold);
  padding: 18px 48px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

button[type="submit"]:hover {
  background: transparent;
  color: var(--gold);
}

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

footer.site-footer {
  background: var(--band);
  color: var(--text);
  padding: 56px 0 48px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-inner .wordmark { font-size: 18px; }

.footer-inner .meta {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.disclaimer {
  margin-top: 34px;
  font-size: 12.5px;
  color: var(--text-faint);
  line-height: 1.7;
  max-width: 880px;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .strategy { grid-template-columns: 1fr; gap: 24px; padding: 56px 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-content { padding: 100px 24px 90px; }
  .slide { padding: 8px 20px; }
  nav { gap: 22px; }
}

@media (max-width: 560px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .principles li { grid-template-columns: 1fr; gap: 8px; }
  .stats-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Acknowledgment gate ---------- */

.ack-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 5, 6, 0.92);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ack-box {
  max-width: 620px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 48px 44px;
}

.ack-box .kicker {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 18px;
}

.ack-box h2 {
  text-align: left;
  font-size: 24px;
  margin-bottom: 18px;
}

.ack-box p {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.7;
}

.ack-box button {
  margin-top: 30px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 14px 36px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.ack-box button:hover {
  background: var(--gold);
  color: #0c0c0e;
}

body.ack-locked { overflow: hidden; }
