/* ============================================================
   SOLMOOR — Private Internet Holdings
   "Sun over the long moorland"
   ============================================================ */

:root {
  /* ink / dark */
  --ink: #0e0f12;
  --ink-1: #121419;
  --ink-2: #181b22;
  --ink-3: #21252e;

  /* light break */
  --cream: #f3eee3;
  --cream-2: #ece5d6;

  /* text */
  --text: #ece9e2;
  --text-dim: #989488;
  --text-faint: #65625b;
  --on-cream: #1a1814;
  --on-cream-dim: #6b6557;

  /* gold / sun */
  --gold: #e8a33d;
  --gold-soft: #f4c77b;
  --gold-deep: #c07f26;

  /* lines */
  --line: rgba(236, 233, 226, 0.1);
  --line-strong: rgba(236, 233, 226, 0.18);
  --line-cream: rgba(26, 24, 20, 0.12);

  --maxw: 1120px;
  --pad: clamp(22px, 5vw, 64px);

  --serif: "Fraunces", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
    "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
}

/* ---------- shared type ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.eyebrow-gold {
  color: var(--gold);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head .eyebrow {
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.section-note {
  margin-top: 18px;
  color: var(--text-faint);
  font-size: 14px;
  letter-spacing: 0.02em;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad);
  transition:
    padding 0.4s var(--ease),
    background 0.4s var(--ease),
    border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding-block: 14px;
  background: rgba(14, 15, 18, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
}
.brand-mark {
  width: 26px;
  height: 26px;
  color: var(--gold);
  flex: none;
}
.brand-word {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.16em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
}
.nav-link {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.25s var(--ease);
}
.nav-link:hover {
  color: var(--text);
}

.lang-toggle {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  width: 38px;
  height: 32px;
  cursor: pointer;
  transition:
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    background 0.25s var(--ease);
}
.lang-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--pad) 0;
  overflow: hidden;
  isolation: isolate;
}

.hero-sky {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(
      120% 80% at 50% 118%,
      rgba(232, 163, 61, 0) 40%,
      rgba(14, 15, 18, 0) 100%
    ),
    linear-gradient(
      180deg,
      #0b0c0f 0%,
      #0e0f13 34%,
      #1a130e 60%,
      #36230f 82%,
      #5a3a14 100%
    );
}

.hero-sun {
  position: absolute;
  z-index: -2;
  left: 50%;
  bottom: -2%;
  width: min(120vw, 1500px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 228, 168, 0.95) 0%,
    rgba(244, 199, 123, 0.75) 7%,
    rgba(232, 163, 61, 0.42) 14%,
    rgba(214, 128, 40, 0.18) 26%,
    rgba(180, 96, 28, 0.06) 42%,
    rgba(14, 15, 18, 0) 62%
  );
  filter: blur(2px);
  animation: sunbreath 12s ease-in-out infinite;
}
@keyframes sunbreath {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) scale(1.035);
    opacity: 0.93;
  }
}

.hero-hills {
  position: absolute;
  inset: auto 0 0 0;
  z-index: -1;
  width: 100%;
  height: 56%;
  display: block;
}
.hero-hills .hill {
  mix-blend-mode: normal;
}
.hill-3 {
  fill: #2a1c10;
  opacity: 0.92;
}
.hill-2 {
  fill: #160f0a;
}
.hill-1 {
  fill: #08070a;
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  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.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin-bottom: auto;
  padding-top: 8vh;
}
.hero .eyebrow {
  margin-bottom: 26px;
  color: rgba(244, 199, 123, 0.85);
}

.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 8.5vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: #fbf4e6;
  text-wrap: balance;
}
.hero-sub {
  margin-top: 30px;
  max-width: 560px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.65;
  color: rgba(236, 233, 226, 0.78);
}

.scroll-cue {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  margin: 0 0 46px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.scroll-line {
  width: 54px;
  height: 1px;
  background: var(--text-faint);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: var(--gold);
  animation: scrollslide 2.4s var(--ease) infinite;
}
@keyframes scrollslide {
  0% {
    transform: translateX(-100%);
  }
  60%,
  100% {
    transform: translateX(260%);
  }
}

/* ============================================================
   SECTIONS (base rhythm)
   ============================================================ */
.section {
  padding-block: clamp(82px, 12vw, 168px);
  position: relative;
}

.section.light {
  background: var(--cream);
  color: var(--on-cream);
}
.section.light .eyebrow {
  color: var(--gold-deep);
}
.section.light .section-title {
  color: var(--on-cream);
}

/* ---------- THESIS ---------- */
.thesis {
  padding-block: clamp(90px, 14vw, 200px);
}
.thesis .eyebrow {
  margin-bottom: 34px;
}
.statement {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(24px, 3.4vw, 42px);
  line-height: 1.28;
  letter-spacing: -0.01em;
  max-width: 16ch * 3;
  max-width: 900px;
  color: #ede7db;
  text-wrap: pretty;
}
.statement::first-letter {
  color: var(--gold);
}

/* ---------- STEPS ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 44px);
  counter-reset: step;
}
.step {
  padding-top: 26px;
  border-top: 1px solid var(--line-strong);
}
.step-num {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 22px;
}
.step-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(21px, 2.2vw, 26px);
  margin-bottom: 12px;
}
.step-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
}

/* ---------- SECTOR CARDS ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.card {
  position: relative;
  padding: clamp(30px, 3.4vw, 46px) clamp(26px, 3vw, 38px)
    clamp(34px, 4vw, 52px);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0)
  );
  border: 1px solid var(--line-cream);
  border-radius: 4px;
  transition:
    transform 0.5s var(--ease),
    border-color 0.5s var(--ease),
    background 0.5s var(--ease);
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(192, 127, 38, 0.4);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.7),
    rgba(255, 255, 255, 0)
  );
}
.card:hover::after {
  transform: scaleX(1);
}
.card-index {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 60px;
}
.card-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.card-body {
  font-size: 15px;
  color: var(--on-cream-dim);
}

/* ---------- HOLDINGS / LEDGER ---------- */
.ledger {
  list-style: none;
  border-top: 1px solid var(--line);
}
.ledger-row {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 0.5fr 0.7fr;
  align-items: baseline;
  gap: 16px;
  padding: clamp(20px, 2.6vw, 30px) 4px;
  border-bottom: 1px solid var(--line);
  transition:
    padding-left 0.4s var(--ease),
    background 0.4s var(--ease);
}
.ledger-row:hover {
  padding-left: 16px;
  background: linear-gradient(90deg, rgba(232, 163, 61, 0.05), transparent 60%);
}
.ledger-name {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 24px);
  color: var(--text);
}
.ledger-sector {
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.ledger-year {
  font-size: 14px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}
.ledger-status {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ledger-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.status-on {
  color: var(--gold-soft);
}
.status-on::before {
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}
.status-inc {
  color: var(--text-dim);
}
.status-inc::before {
  background: var(--text-faint);
}

/* ---------- METRICS ---------- */
.metrics {
  background: var(--ink-1);
  border-block: 1px solid var(--line);
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 48px);
}
.metric {
  text-align: left;
}
.metric-num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(46px, 7vw, 88px);
  line-height: 1;
  color: var(--gold-soft);
  display: block;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.metric-label {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------- PRINCIPLES ---------- */
.tenets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.tenet {
  padding-top: 28px;
  border-top: 1px solid var(--line-cream);
}
.tenet-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.8vw, 34px);
  margin-bottom: 14px;
}
.tenet-body {
  font-size: 16px;
  color: var(--on-cream-dim);
  max-width: 30ch;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  padding-block: clamp(70px, 10vw, 130px);
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -60%;
  transform: translateX(-50%);
  width: 140vw;
  aspect-ratio: 2 / 1;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(232, 163, 61, 0.1),
    transparent 55%
  );
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
  position: relative;
}
.footer-lead .eyebrow {
  margin-bottom: 20px;
}
.footer-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.footer-mail {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--gold-soft);
  border-bottom: 1px solid rgba(244, 199, 123, 0.3);
  padding-bottom: 4px;
  transition:
    border-color 0.3s var(--ease),
    color 0.3s var(--ease);
}
.footer-mail:hover {
  color: #fbf4e6;
  border-color: var(--gold);
}

.footer-meta {
  justify-self: start;
}
.brand-footer {
  margin-bottom: 22px;
}
.footer-tag {
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-dim);
  margin-bottom: 30px;
  font-size: 17px;
}
.footer-legal {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.footer-copy {
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.steps .step.in,
.cards .card.in,
.ledger-row.in,
.metric.in,
.tenet.in {
  transition-delay: var(--d, 0ms);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .tenets {
    grid-template-columns: 1fr;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .nav {
    padding-inline: var(--pad);
  }
  .nav-link {
    display: none;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .ledger-row {
    grid-template-columns: 1fr auto;
    row-gap: 6px;
  }
  .ledger-sector {
    grid-column: 1;
    color: var(--text-faint);
    font-size: 13px;
  }
  .ledger-year {
    display: none;
  }
  .ledger-status {
    grid-row: 1;
    grid-column: 2;
  }
  .hero-sub {
    max-width: 100%;
  }
}

/* ============================================================
   MOTION SAFETY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::after,
  *::before {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}
