/*
Theme Name: Jeffrey W. Williams
Theme URI: https://jeffreywwilliams.com
Author: Jeffrey W. Williams
Description: Cinematic galaxy personal brand and IP holdco theme for Jeffrey W. Williams LLC.
Version: 2.1.0
License: proprietary
Text Domain: jeffreywwilliams
*/

/* ============================================================
   Jeffrey W. Williams — cinematic dark-first design system
   ============================================================ */

@property --gradient-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
  /* Type */
  --font-display: 'Clash Display', 'Satoshi', sans-serif;
  --font-body: 'Satoshi', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, monospace;

  --text-xs: 0.8rem;
  --text-sm: 0.9rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.6rem;
  --text-2xl: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem);
  --text-hero: clamp(2.6rem, 1.6rem + 5vw, 5.4rem);

  /* Space */
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --gold: #2fc4ee;
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1180px;
}

/* ---------- Dark (default, cinematic) ---------- */
html[data-theme='dark'] {
  --color-bg: #060811;
  --color-surface: #0c1120;
  --color-surface-2: #121a30;
  --color-text: #e7ecf8;
  --color-text-muted: #94a1c0;
  --color-primary: #2fc4ee;
  --color-primary-strong: #74e2ff;
  --color-border: rgba(56, 189, 248, 0.16);
  --color-border-strong: rgba(56, 189, 248, 0.38);
  --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

/* ---------- Light (paper mode) ---------- */
html[data-theme='light'] {
  --color-bg: #f3f5fa;
  --color-surface: #ffffff;
  --color-surface-2: #e8edf7;
  --color-text: #101728;
  --color-text-muted: #59647e;
  --color-primary: #0369a1;
  --color-primary-strong: #075985;
  --color-border: rgba(16, 23, 40, 0.12);
  --color-border-strong: rgba(16, 23, 40, 0.28);
  --shadow-md: 0 10px 30px rgba(16, 23, 40, 0.1);
  color-scheme: light;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  overflow-x: hidden;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.container--wide {
  --container: 1240px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--color-primary);
  color: #071019;
  padding: 0.5rem 1rem;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 60;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #00f5ff, #8b5cf6, #ec4899);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(6, 8, 17, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.14);
  color: #e7ecf8;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: 0.8rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 1.6vw, 1.4rem);
}
.nav a {
  color: rgba(226, 233, 246, 0.78);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav a:hover {
  color: var(--gold);
}
.nav__cta {
  border: 1px solid rgba(56, 189, 248, 0.5);
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  color: var(--gold) !important;
  white-space: nowrap;
}
.nav__cta:hover {
  background: var(--gold);
  color: #071019 !important;
}
.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.4);
  position: relative;
  flex: none;
}
.theme-toggle::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: inset -3px -2px 0 rgba(6, 8, 17, 0.85);
  transition: box-shadow var(--transition-interactive);
}
html[data-theme='light'] .theme-toggle::before {
  box-shadow: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.03em;
  text-decoration: none;
  transition:
    background var(--transition-interactive),
    color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
}
.btn--primary {
  background: linear-gradient(135deg, #74e2ff, #38bdf8 45%, #8b5cf6);
  color: #061018;
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.35), 0 8px 30px rgba(56, 189, 248, 0.22);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.6), 0 12px 40px rgba(56, 189, 248, 0.35);
}
.btn--primary:active {
  transform: translateY(0);
}
.btn--ghost {
  border: 1px solid var(--color-border-strong);
  color: var(--color-text);
}
.btn--ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-strong);
  transform: translateY(-1px);
}
.btn--ghost:active {
  transform: translateY(0);
}

/* ---------- Reveal on scroll (opacity/blur only — no layout shift) ---------- */
html.js .reveal {
  opacity: 0;
  filter: blur(6px);
  transition:
    opacity 0.8s var(--ease-out),
    filter 0.8s var(--ease-out);
}
html.js .reveal.is-visible {
  opacity: 1;
  filter: blur(0);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #04060f;
  color: #ebf0fa;
  padding-block: 7.5rem 4rem;
}
.hero__stars,
.contact__stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url('./assets/galaxy-hero-blue.webp') 62% 38% / cover no-repeat;
  opacity: 0.5;
}
.hero__galaxy {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(120% 95% at 76% 42%, transparent 32%, rgba(4, 6, 15, 0.55) 82%),
    linear-gradient(
      92deg,
      rgba(4, 6, 15, 0.92) 0%,
      rgba(4, 6, 15, 0.62) 36%,
      rgba(4, 6, 15, 0.16) 62%,
      transparent 80%
    );
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(4, 6, 15, 0.95));
  pointer-events: none;
}
@media (max-width: 720px) {
  .hero__galaxy {
    opacity: 0.8;
  }
  .hero__vignette {
    background:
      linear-gradient(
        180deg,
        rgba(4, 6, 15, 0.72) 0%,
        rgba(4, 6, 15, 0.58) 45%,
        rgba(4, 6, 15, 0.78) 100%
      );
  }
}
.hero__content {
  position: relative;
  z-index: 3;
  max-width: 720px;
  margin-left: max(calc((100vw - 1240px) / 2), 1.25rem);
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-6);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-hero);
  line-height: 1.04;
  margin-bottom: var(--space-6);
}
.hero__title .line {
  display: block;
}
.hero__title .line--gold {
  color: transparent;
  background: linear-gradient(100deg, #eafeff 5%, #38d6f8 40%, #8b5cf6 78%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero__sub {
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(235, 240, 250, 0.82);
  max-width: 56ch;
  margin-bottom: var(--space-8);
}
.hero__sub strong {
  color: #fff;
  font-weight: 500;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  gap: clamp(0.9rem, 2vw, 1.8rem) clamp(1rem, 2.2vw, 2rem);
  list-style: none;
  border-top: 1px solid rgba(56, 189, 248, 0.2);
  padding-top: var(--space-6);
  max-width: 760px;
}
@media (max-width: 860px) {
  .hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.hero__stats li {
  display: grid;
  gap: 0.15rem;
}
.hero__stats .n {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--gold);
  line-height: 1;
}
.hero__stats .k {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(235, 240, 250, 0.55);
}

/* Hero load-in choreography */
html.js [data-load] {
  opacity: 0;
  transform: translateY(14px);
  animation: hero-in 0.9s var(--ease-out) forwards;
}
html.js [data-load='1'] { animation-delay: 0.1s; }
html.js [data-load='2'] { animation-delay: 0.25s; }
html.js [data-load='3'] { animation-delay: 0.4s; }
html.js [data-load='4'] { animation-delay: 0.6s; }
html.js [data-load='5'] { animation-delay: 0.75s; }
html.js [data-load='6'] { animation-delay: 0.9s; }
@keyframes hero-in {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  z-index: 3;
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  border-radius: 12px;
}
.hero__scroll span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--gold);
  animation: scroll-hint 1.8s ease-in-out infinite;
}
@keyframes scroll-hint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(10px); opacity: 0.2; }
  61% { transform: translateY(0); opacity: 0; }
}

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden;
  background: #04060f;
  border-block: 1px solid rgba(56, 189, 248, 0.18);
  padding-block: 0.9rem;
  color: rgba(226, 233, 246, 0.75);
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  width: max-content;
  animation: ticker-scroll 36s linear infinite;
}
.ticker__track span {
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.ticker__track i {
  font-style: normal;
  color: var(--gold);
  font-size: 0.55rem;
}
@keyframes ticker-scroll {
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section {
  padding-block: var(--space-32);
  position: relative;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-2xl);
  line-height: 1.12;
  margin-bottom: var(--space-6);
  max-width: 24ch;
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(280px, 5fr) 7fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about__figure {
  position: relative;
}
.about__figure img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}
.about__figure::before {
  content: '';
  position: absolute;
  inset: -14px auto auto -14px;
  width: 70px;
  height: 70px;
  border-left: 1.5px solid var(--color-border-strong);
  border-top: 1.5px solid var(--color-border-strong);
  border-radius: 14px 0 0 0;
}
.about__figure figcaption {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.about__body p + p {
  margin-top: var(--space-4);
}
.about__facts {
  margin-top: var(--space-8);
  list-style: none;
  border-top: 1px solid var(--color-border);
}
.about__facts li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: var(--space-4);
  padding-block: 0.65rem;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
}
.about__facts .k {
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: var(--text-xs);
  padding-top: 2px;
}
.about__facts a {
  color: var(--color-primary);
}

/* ---------- Glow border utility ---------- */
.glow-border {
  position: relative;
  border-radius: var(--radius-lg);
}
.glow-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--gradient-angle),
    rgba(56, 189, 248, 0.05),
    rgba(139, 92, 246, 0.7),
    rgba(56, 189, 248, 0.05) 40%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: glow-spin 7s linear infinite;
  pointer-events: none;
}
@keyframes glow-spin {
  to { --gradient-angle: 360deg; }
}

/* ---------- Ventures ---------- */
.venture-flag {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 3rem);
  margin-block: var(--space-8) var(--space-12);
}
.venture-flag .role {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.venture-flag h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}
.venture-flag__aside {
  display: grid;
  gap: var(--space-3);
  align-content: center;
  border-left: 1px solid var(--color-border);
  padding-left: clamp(1rem, 3vw, 2.5rem);
}
.venture-flag .stat {
  display: grid;
  gap: 0.1rem;
}
.venture-flag .stat .k {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.venture-flag .stat .v {
  font-weight: 500;
}
.link-inline {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  margin-top: var(--space-4);
}
.link-inline:hover {
  color: var(--color-primary-strong);
}

.builds h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}
.builds > p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}
.builds__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
}
.build-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  margin-bottom: var(--space-4);
}
.tag--pulse {
  animation: tag-pulse 2.4s ease-in-out infinite;
}
@keyframes tag-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(56, 189, 248, 0); }
}
.build-card h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: var(--space-2);
}
.build-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ---------- Book ---------- */
.book {
  background: #04060f;
  color: #e7ecf8;
  overflow: hidden;
}
.book .eyebrow { color: var(--gold); }
.book__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 420px at 18% 40%, rgba(56, 189, 248, 0.13), transparent 70%),
    radial-gradient(500px 300px at 85% 80%, rgba(56, 189, 248, 0.07), transparent 70%);
  pointer-events: none;
}
.book__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 4fr) 7fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.book__cover {
  perspective: 1000px;
}
.book__cover img {
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.65),
    0 0 60px rgba(56, 189, 248, 0.14);
  transform: rotateY(calc(var(--ry, 0) * 1deg)) rotateX(calc(var(--rx, 0) * 1deg));
  transition: transform 0.25s var(--ease-out);
  will-change: transform;
}
.book__subtitle {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--gold);
  margin-bottom: var(--space-4);
}
.book__body > p.reveal {
  color: rgba(226, 233, 246, 0.78);
}
.toc {
  margin-block: var(--space-8);
  border-top: 1px solid rgba(56, 189, 248, 0.22);
  max-width: 60ch;
}
.toc li {
  display: flex;
  gap: var(--space-4);
  align-items: baseline;
  padding-block: 0.55rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.13);
  font-size: var(--text-sm);
}
.toc .ch {
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: var(--text-xs);
  flex: none;
}
.book__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-6);
}
.book__status {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(226, 233, 246, 0.55);
}

/* ---------- Vault ---------- */
.vault__lead {
  color: var(--color-text-muted);
  margin-bottom: var(--space-12);
  max-width: 62ch;
}
.vault__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}
.repo-card {
  display: grid;
  align-content: start;
  gap: var(--space-2);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  text-decoration: none;
  color: inherit;
  transition:
    transform var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive);
}
.repo-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
}
.repo-card:active {
  transform: translateY(0);
}
.repo-card h3 {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--color-primary-strong);
}
.repo-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.repo-card__go {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.vault__cta {
  margin-top: var(--space-12);
  text-align: center;
}

/* ---------- Divider ---------- */
.divider {
  position: relative;
  background: #04060f;
  color: #ebf0fa;
  overflow: hidden;
  padding-block: var(--space-24);
}
.divider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.divider__inner {
  position: relative;
}
.divider blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1rem + 2vw, 2.2rem);
  line-height: 1.35;
  max-width: 26ch;
  margin-inline: auto;
  text-align: center;
}
.divider blockquote footer {
  margin-top: var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Giving ---------- */
.giving__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--space-6);
  margin-top: var(--space-8);
  align-items: stretch;
}
.giving__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
}
.giving__card--ftgu {
  grid-template-rows: auto 1fr;
}
.giving__figure img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}
.giving__body {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  align-content: start;
  display: grid;
}
.giving__card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}
.giving__card p {
  color: var(--color-text-muted);
}
.giving__card--jwf {
  align-content: center;
  background:
    radial-gradient(400px 260px at 80% 0%, rgba(56, 189, 248, 0.12), transparent 70%),
    var(--color-surface);
}

/* ---------- Holdings ---------- */
.holdings__lead {
  max-width: 62ch;
  color: var(--color-text-muted);
  margin-bottom: var(--space-12);
}
.structure {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}
.structure__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}
.structure__card--root {
  border-color: var(--color-border-strong);
  background: linear-gradient(160deg, rgba(56, 189, 248, 0.1), transparent 55%), var(--color-surface);
}
.structure__card .kind {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.structure__card .name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: var(--space-2);
}
.structure__card p:not(.name) {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.structure__note {
  grid-column: 1 / -1;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  border-left: 2px solid var(--color-border-strong);
  padding-left: var(--space-4);
}
.ip-domains {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6) var(--space-8);
}
.ip-domains li {
  display: grid;
  gap: 0.3rem;
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-4);
}
.ip-domains .name {
  font-weight: 700;
}
.ip-domains .desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ---------- Contact ---------- */
.contact {
  background: #04060f;
  color: #ebf0fa;
  overflow: hidden;
}
.contact .eyebrow { color: var(--gold); }
.contact__grid {
  position: relative;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  z-index: 1;
}
.contact h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}
.contact__lead {
  color: rgba(235, 240, 250, 0.75);
  margin-bottom: var(--space-8);
}
.contact__channels {
  display: grid;
  gap: var(--space-3);
}
.contact__channels a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-6);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: var(--radius-md);
  color: #ebf0fa;
  text-decoration: none;
  font-weight: 700;
}
.contact__channels a:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.contact__channels .hint {
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(235, 240, 250, 0.5);
}

/* ---------- Footer ---------- */
.footer {
  background: #03050c;
  color: rgba(226, 233, 246, 0.65);
  border-top: 1px solid rgba(56, 189, 248, 0.14);
  padding-block: var(--space-12);
}
.footer__inner {
  display: grid;
  gap: var(--space-6);
  justify-items: center;
  text-align: center;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  color: #e7ecf8;
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: center;
}
.footer nav a {
  color: rgba(226, 233, 246, 0.65);
  text-decoration: none;
  font-size: var(--text-sm);
}
.footer nav a:hover {
  color: var(--gold);
}
.footer p {
  font-size: var(--text-xs);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .about__grid,
  .book__grid,
  .contact__grid,
  .giving__grid,
  .venture-flag {
    grid-template-columns: 1fr;
  }
  .venture-flag__aside {
    border-left: none;
    border-top: 1px solid var(--color-border);
    padding-left: 0;
    padding-top: var(--space-6);
  }
  .book__cover {
    max-width: 360px;
  }
  .hero__art img {
    right: -30%;
    opacity: 0.45;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
  }
}
@media (max-width: 760px) {
  .nav a:not(.nav__cta) {
    display: none;
  }
  .section {
    padding-block: var(--space-24);
  }
  .about__facts li {
    grid-template-columns: 110px 1fr;
  }
  .hero__content {
    margin-left: auto;
  }
}

/* ---------- Inventions ---------- */
.inventions__lead {
  max-width: 62ch;
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}
.invention-flag {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 3rem);
  margin-block: var(--space-8) var(--space-12);
}
.invention-flag__media {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  align-self: stretch;
}
.invention-flag__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}
.invention-flag h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}
.invention-flag__alias {
  color: var(--color-text-muted);
  font-size: 0.74em;
  font-weight: 400;
  white-space: nowrap;
}
.invention-flag__body > p {
  color: var(--color-text-muted);
}
.invention-flag__body > p strong {
  color: var(--color-text);
}
.invention-flag__points {
  list-style: none;
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding: 0;
}
.invention-flag__points li {
  position: relative;
  padding-left: 1.4rem;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
}
.invention-flag__points li::before {
  content: '\25C6';
  position: absolute;
  left: 0;
  top: 0.28em;
  color: var(--color-primary);
  font-size: 0.55rem;
}
.invention-flag__points strong {
  color: var(--color-text);
}
.invention-flag__meta {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-6);
}
.invention-flag__meta .status {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.invention-flag__meta .link-inline {
  margin-top: 0;
}
.inventions__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
}
.invention-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  transition: border-color var(--transition-interactive);
}
.invention-card:hover {
  border-color: var(--color-border-strong);
}
.invention-card h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: var(--space-2);
}
.invention-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.invention-card .link-inline {
  font-size: var(--text-sm);
}
@media (max-width: 900px) {
  .invention-flag {
    grid-template-columns: 1fr;
  }
  .invention-flag__media img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .invention-flag__alias {
    white-space: normal;
    display: block;
    margin-top: 0.2rem;
  }
}

/* ---------- Investors ---------- */
.investors__lead {
  max-width: 62ch;
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}
.investors__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
@media (max-width: 800px) {
  .investors__grid {
    grid-template-columns: 1fr;
  }
}
.investor-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  transition: border-color var(--transition-interactive), transform var(--transition-interactive);
}
.investor-card:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-3px);
}
.investor-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}
.investor-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.investor-card p strong {
  color: var(--color-text);
}
.investors__cta {
  margin-top: var(--space-12);
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  text-align: center;
}
.investors__note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  max-width: 52ch;
}

/* ---------- 4everacy brand mark ---------- */
.venture-flag__title {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}
.venture-flag__title h3 { margin: 0; }
.brand-4e {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  animation: brand-spin 24s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .brand-4e { animation: none; }
}
@keyframes brand-spin {
  to { transform: rotate(360deg); }
}

/* ---------- Data room ---------- */
.dataroom {
  margin-top: var(--space-12);
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(56, 189, 248, 0.05), rgba(139, 92, 246, 0.06));
}
.dataroom h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}
.dataroom ul {
  display: grid;
  gap: var(--space-3);
  padding: 0;
  margin: 0;
  list-style: none;
}
.dataroom li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}
.dataroom li::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 0.1em;
  font-size: 0.7em;
  background: linear-gradient(120deg, #00f5ff, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dataroom li strong { color: var(--color-text); font-weight: 500; }

/* ---------- Marks wall ---------- */
.marks { margin-top: var(--space-12); }
.marks__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.marks__wall {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.marks__wall span {
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text-muted);
  background: var(--color-surface);
  transition: border-color var(--transition-interactive), color var(--transition-interactive);
}
.marks__wall span:hover {
  border-color: var(--color-border-strong);
  color: var(--color-text);
}
.marks__more {
  font-style: normal;
  opacity: 0.75;
  border-style: dashed !important;
}
