/* =========================================================
   Hadal Finance
   GLOBAL MACRO RESEARCH WEBSITE
========================================================= */


/* =========================================================
   RESET
========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  background: #efeee9;
  color: #111;
  font-family: "DM Sans", sans-serif;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  font-family: inherit;
}


/* =========================================================
   VARIABLES
========================================================= */

:root {

  --paper: #efeee9;
  --paper-dark: #e5e3dc;

  --ink: #101010;
  --muted: #77756e;
  --line: #cbc8bf;

  --dark: #11110f;
  --dark-line: #34332f;
  --dark-muted: #8d8b84;

  --serif: "Instrument Serif", Georgia, serif;
  --mono: "DM Mono", monospace;

  --page-padding: clamp(24px, 5vw, 80px);

}


/* =========================================================
   GLOBAL
========================================================= */

.section {
  padding: 150px var(--page-padding);
  position: relative;
}

.section-number {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--muted);
}

.section-number.light {
  color: var(--dark-muted);
}

.serif {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
}

.large-heading {
  font-size: clamp(52px, 7vw, 110px);
  font-weight: 500;
  line-height: .92;
  letter-spacing: -.055em;
}


/* =========================================================
   LOADER
========================================================= */

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;

  background: var(--dark);
  color: white;

  display: flex;
  align-items: center;
  justify-content: center;

  transition:
    opacity .8s ease,
    visibility .8s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  width: min(400px, 80vw);
}

.loader-name {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: .2em;
  margin-bottom: 22px;
}

.loader-line {
  height: 1px;
  background: #3a3935;
  overflow: hidden;
}

.loader-line span {
  display: block;
  height: 100%;
  width: 0;
  background: white;
  animation: loaderProgress 1.4s ease forwards;
}

.loader-status {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .14em;
  color: #777;
  margin-top: 12px;
}

@keyframes loaderProgress {
  to {
    width: 100%;
  }
}


/* =========================================================
   NAV
========================================================= */

.nav {
  height: 78px;
  width: 100%;

  position: fixed;
  top: 0;
  left: 0;

  z-index: 100;

  padding:
    0 var(--page-padding);

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid transparent;

  transition:
    background .3s ease,
    border .3s ease;
}

.nav.scrolled {
  background: rgba(239, 238, 233, .88);
  backdrop-filter: blur(15px);
  border-color: var(--line);
}

.brand {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: .15em;
  font-size: 14px;

  display: flex;
  flex-direction: column;
}

.brand span {
  font-size: 7px;
  letter-spacing: .31em;
  margin-top: 2px;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 35px;

  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .04em;
}

.nav-links a {
  transition: opacity .2s ease;
}

.nav-links a:hover {
  opacity: .45;
}

.nav-button {
  border: 1px solid #aaa79f;
  padding: 11px 16px;

  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .06em;

  transition:
    background .2s ease,
    color .2s ease;
}

.nav-button:hover {
  background: var(--ink);
  color: white;
}

.mobile-menu-button {
  display: none;

  width: 34px;
  height: 34px;

  border: 0;
  background: transparent;

  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  margin: 6px auto;
}

.mobile-menu {
  display: none;
}


/* =========================================================
   HERO
========================================================= */

.hero {
  min-height: 100vh;

  position: relative;

  padding:
    150px var(--page-padding) 100px;

  display: flex;
  align-items: center;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 75% 40%,
      rgba(0,0,0,.035),
      transparent 35%
    );
}

.hero-grid {
  position: absolute;
  inset: 0;

  background-image:
    linear-gradient(
      rgba(0,0,0,.035) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(0,0,0,.035) 1px,
      transparent 1px
    );

  background-size: 80px 80px;

  mask-image:
    linear-gradient(
      to right,
      black,
      transparent 75%
    );
}

.hero-content {
  position: relative;
  z-index: 2;

  width: 65%;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .15em;
  color: var(--muted);
  margin-bottom: 40px;
}

.hero-title {
  font-size: clamp(65px, 9.2vw, 145px);
  line-height: .83;

  font-weight: 500;
  letter-spacing: -.07em;

  max-width: 950px;
}

.hero-title .line {
  display: block;
}

.hero-title .serif {
  font-size: 1.08em;
}

.hero-bottom {
  margin-top: 75px;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  max-width: 850px;
}

.hero-description {
  width: 410px;

  font-size: 15px;
  line-height: 1.6;
  color: #67655f;
}

.scroll-indicator {
  display: flex;
  align-items: center;
  gap: 12px;

  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.scroll-circle {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  border: 1px solid #aaa79f;
  border-radius: 50%;

  transition:
    transform .3s ease,
    background .3s ease;
}

.scroll-indicator:hover .scroll-circle {
  transform: translateY(5px);
  background: #111;
  color: white;
}


/* =========================================================
   HERO MARKET
========================================================= */

.hero-market {
  position: absolute;

  width: 58vw;
  height: 330px;

  right: -6vw;
  bottom: 18%;

  opacity: .9;

  pointer-events: none;
}

.market-label {
  position: absolute;
  top: 0;
  left: 0;

  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .12em;
  color: #96938a;
}

.hero-chart {
  position: absolute;

  left: 0;
  bottom: 0;

  width: 100%;
  height: 280px;

  overflow: visible;
}

.chart-line {
  fill: none;
  stroke: #77746c;
  stroke-width: 1.3;

  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;

  animation:
    chartDraw 2.8s
    1.2s
    cubic-bezier(.65,0,.35,1)
    forwards;
}

.chart-area {
  fill: url(#chartFade);
}

@keyframes chartDraw {
  to {
    stroke-dashoffset: 0;
  }
}

.chart-axis {
  position: absolute;

  font-family: var(--mono);
  font-size: 7px;
  color: #aaa79f;
}

.x-axis {
  bottom: -20px;
  left: 0;
  right: 0;

  display: flex;
  justify-content: space-between;
}

.y-axis {
  top: 35px;
  right: 0;

  height: 220px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


/* =========================================================
   TICKER
========================================================= */

.ticker {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  height: 58px;

  overflow: hidden;

  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);

  background: rgba(239,238,233,.7);
}

.ticker-track {
  height: 100%;

  width: max-content;

  display: flex;
  align-items: center;
  gap: 32px;

  animation:
    tickerMove
    32s
    linear
    infinite;
}

.ticker-track span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .07em;
  white-space: nowrap;
}

.ticker-track b {
  font-weight: 500;
  margin-left: 9px;
  font-size: 12px;
}

.ticker-track i {
  width: 4px;
  height: 4px;
  background: #999;
  border-radius: 50%;
}

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


/* =========================================================
   REVEAL
========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(35px);

  transition:
    opacity .9s cubic-bezier(.2,.7,.2,1),
    transform .9s cubic-bezier(.2,.7,.2,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: .12s;
}

.delay-2 {
  transition-delay: .24s;
}

.delay-3 {
  transition-delay: .36s;
}


/* =========================================================
   INTRO
========================================================= */

.intro {
  min-height: 850px;

  display: grid;
  grid-template-columns: 20% 80%;
}

.intro-content {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 100px;

  align-items: end;

  padding-top: 80px;
}

.intro .large-heading {
  max-width: 850px;
}

.intro-copy {
  max-width: 400px;

  font-size: 16px;
  line-height: 1.7;
  color: #68665f;
}

.intro-copy p + p {
  margin-top: 25px;
}


/* =========================================================
   DARK SECTION
========================================================= */

.dark-section {
  background: var(--dark);
  color: white;
}


/* =========================================================
   BRIEFING
========================================================= */

.briefing-layout {
  display: grid;

  grid-template-columns:
    minmax(300px, .8fr)
    minmax(400px, 1.2fr);

  gap: 100px;

  margin-top: 100px;
}

.briefing-sticky {
  position: sticky;
  top: 150px;

  align-self: start;
}

.issue-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .13em;

  color: #85837c;

  margin-bottom: 35px;
}

.briefing-sticky h2 {
  font-size: clamp(52px, 6vw, 90px);
  line-height: .9;
  letter-spacing: -.055em;

  font-weight: 500;
}

.briefing-sticky h2 .serif {
  display: block;
  font-size: 1.05em;
}

.briefing-sticky > p {
  margin-top: 35px;

  max-width: 370px;

  font-size: 14px;
  line-height: 1.65;

  color: #96938c;
}

.outline-button {
  display: inline-flex;
  align-items: center;
  gap: 25px;

  margin-top: 40px;

  padding: 14px 18px;

  border: 1px solid #44423d;

  font-family: var(--mono);
  font-size: 9px;

  transition:
    background .25s ease,
    border .25s ease;
}

.outline-button:hover {
  background: #22221f;
  border-color: #777;
}

.briefing-panels {
  display: flex;
  flex-direction: column;
}

.brief-panel {
  min-height: 600px;

  padding: 45px 0;

  border-top: 1px solid var(--dark-line);

  display: grid;

  grid-template-columns: 60px 1fr;

  position: relative;
}

.panel-number {
  font-family: var(--mono);
  font-size: 9px;
  color: #65635d;
}

.panel-tag {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .12em;
  color: #77746c;

  margin-bottom: 30px;
}

.brief-panel h3 {
  max-width: 500px;

  font-size: clamp(32px, 4vw, 57px);
  line-height: .97;

  font-weight: 400;

  letter-spacing: -.045em;
}

.brief-panel p {
  max-width: 430px;

  margin-top: 25px;

  color: #8e8b84;

  font-size: 14px;
  line-height: 1.65;
}


/* MINI CHART */

.mini-chart {
  position: absolute;

  left: 60px;
  right: 0;
  bottom: 50px;

  opacity: .75;
}

.mini-chart svg {
  width: 100%;
}

.mini-chart path {
  fill: none;

  stroke: #85827b;

  stroke-width: 1.2;

  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;

  transition:
    stroke-dashoffset 2s ease;
}

.brief-panel:hover .mini-chart path {
  stroke-dashoffset: 0;
}


/* LIQUIDITY */

.liquidity-bars {
  position: absolute;

  left: 60px;
  right: 0;
  bottom: 50px;

  height: 170px;

  display: flex;
  align-items: end;
  gap: 10px;
}

.liquidity-bars span {
  flex: 1;

  max-width: 55px;

  border-top: 1px solid #777;

  background:
    linear-gradient(
      to top,
      rgba(255,255,255,.03),
      transparent
    );

  transform-origin: bottom;

  transition:
    transform .5s ease;
}

.brief-panel:hover
.liquidity-bars span {
  transform: scaleY(1.08);
}


/* ALLOCATION */

.allocation-map {
  position: absolute;

  left: 60px;
  right: 0;
  bottom: 50px;

  border-top: 1px solid #3a3935;
}

.allocation-map div {
  display: flex;
  justify-content: space-between;

  padding: 16px 0;

  border-bottom: 1px solid #3a3935;

  font-family: var(--mono);
  font-size: 9px;

  color: #8b8981;
}

.allocation-map b {
  color: #d0cec7;
}


/* =========================================================
   RESEARCH
========================================================= */

.research-header {
  display: grid;

  grid-template-columns: 1fr 350px;

  gap: 80px;

  margin-top: 90px;
  margin-bottom: 100px;
}

.research-intro {
  align-self: end;

  color: #6c6961;

  line-height: 1.65;
  font-size: 15px;
}

.lens-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  border-top: 1px solid var(--line);
}

.lens-card {
  min-height: 650px;

  padding: 25px 30px 35px;

  border-right: 1px solid var(--line);

  display: flex;
  flex-direction: column;

  transition:
    background .4s ease;
}

.lens-card:first-child {
  padding-left: 0;
}

.lens-card:last-child {
  border-right: none;
}

.lens-card:hover {
  background: #e9e7e0;
}

.lens-top {
  display: flex;
  justify-content: space-between;

  font-family: var(--mono);
  font-size: 8px;
  color: #85827a;

  letter-spacing: .08em;
}


/* =========================================================
   LENS VISUALS
========================================================= */

.lens-visual {
  height: 270px;

  margin: 45px 0;

  position: relative;

  overflow: hidden;
}


/* Yield curve */

.yield-curve {
  position: absolute;

  left: 10%;
  right: 10%;
  bottom: 25%;

  height: 130px;

  display: flex;
  align-items: end;
  justify-content: space-between;

  border-bottom: 1px solid #aaa79f;
}

.yield-curve::before {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  top: 50%;

  border-top: 1px dashed #ccc;
}

.yield-curve span {
  width: 1px;

  background: #333;

  transform-origin: bottom;

  transition:
    height .8s cubic-bezier(.2,.7,.2,1),
    transform .4s ease;
}

.yield-curve span:nth-child(1) {
  height: 35%;
}

.yield-curve span:nth-child(2) {
  height: 45%;
}

.yield-curve span:nth-child(3) {
  height: 62%;
}

.yield-curve span:nth-child(4) {
  height: 77%;
}

.yield-curve span:nth-child(5) {
  height: 90%;
}

.yield-curve span:nth-child(6) {
  height: 84%;
}

.yield-curve span:nth-child(7) {
  height: 72%;
}

.lens-card:hover .yield-curve span {
  transform: scaleY(1.15);
}


/* Liquidity */

.liquidity-visual {
  background:
    radial-gradient(
      circle at center,
      rgba(0,0,0,.05),
      transparent 55%
    );
}

.flow-line {
  position: absolute;

  left: 10%;
  right: 10%;
  top: 50%;

  height: 1px;

  background: #999;

  transform: rotate(-12deg);
}

.flow-dot {
  position: absolute;

  width: 10px;
  height: 10px;

  border: 1px solid #333;

  border-radius: 50%;

  background: var(--paper);

  transition:
    transform .8s cubic-bezier(.2,.7,.2,1);
}

.dot-one {
  left: 15%;
  top: 58%;
}

.dot-two {
  left: 37%;
  top: 52%;
}

.dot-three {
  left: 60%;
  top: 42%;
}

.dot-four {
  left: 83%;
  top: 34%;
}

.lens-card:hover .dot-one {
  transform: translate(15px,-10px);
}

.lens-card:hover .dot-two {
  transform: translate(20px,-14px);
}

.lens-card:hover .dot-three {
  transform: translate(15px,-12px);
}

.lens-card:hover .dot-four {
  transform: translate(10px,-7px);
}


/* Allocation */

.allocation-visual {
  display: grid;
  place-items: center;
}

.allocation-circle {
  width: 100px;
  height: 100px;

  border: 1px solid #333;

  border-radius: 50%;

  display: grid;
  place-items: center;

  font-family: var(--mono);
  font-size: 8px;

  position: relative;
  z-index: 2;

  background: var(--paper);

  transition:
    transform .7s ease;
}

.lens-card:hover .allocation-circle {
  transform: scale(1.12);
}

.allocation-ring {
  position: absolute;

  width: 180px;
  height: 180px;

  border: 1px dashed #aaa;

  border-radius: 50%;
}

.ring-two {
  width: 260px;
  height: 260px;

  border-color: #ccc;
}

.lens-card h3 {
  font-size: 36px;

  font-weight: 500;

  letter-spacing: -.04em;
}

.lens-card h3 .serif {
  font-size: 1.08em;
}

.lens-card > p {
  max-width: 360px;

  margin-top: 18px;

  color: #716e67;

  font-size: 14px;
  line-height: 1.6;
}

.lens-button {
  margin-top: auto;

  align-self: flex-start;

  border: 0;

  background: transparent;

  font-family: var(--mono);

  font-size: 9px;

  cursor: pointer;

  padding: 15px 0;

  display: flex;
  gap: 15px;
}

.lens-button span {
  transition:
    transform .25s ease;
}

.lens-button:hover span {
  transform: translate(4px,-4px);
}


/* =========================================================
   PROCESS
========================================================= */

.process {
  border-top: 1px solid var(--line);
}

.process-layout {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 100px;

  margin-top: 100px;
}

.process-title {
  position: sticky;
  top: 150px;

  align-self: start;
}

.process-list {
  border-top: 1px solid var(--line);
}

.process-item {
  display: grid;

  grid-template-columns: 70px 1fr;

  gap: 20px;

  padding: 35px 0;

  border-bottom: 1px solid var(--line);

  opacity: .42;

  transition:
    opacity .4s ease,
    padding .4s ease;
}

.process-item.active,
.process-item:hover {
  opacity: 1;
  padding-left: 10px;
}

.process-index {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
}

.process-item h3 {
  font-size: 30px;

  font-weight: 400;

  letter-spacing: -.03em;
}

.process-item p {
  max-width: 420px;

  margin-top: 12px;

  color: #77746d;

  font-size: 14px;

  line-height: 1.65;
}


/* =========================================================
   ARCHIVE
========================================================= */

.archive-header {
  margin-top: 90px;
  margin-bottom: 100px;
}

.archive-list {
  border-top: 1px solid var(--line);
}

.archive-item {
  min-height: 110px;

  display: grid;

  grid-template-columns: 120px 1fr 50px;

  align-items: center;

  border-bottom: 1px solid var(--line);

  transition:
    padding .35s ease,
    background .35s ease;
}

.archive-item:hover {
  padding-left: 20px;
  background: #e8e6df;
}

.archive-date {
  font-family: var(--mono);
  font-size: 8px;
  color: #85827b;
}

.archive-title {
  font-size: clamp(20px, 2vw, 28px);

  letter-spacing: -.025em;
}

.archive-arrow {
  font-size: 20px;

  transition:
    transform .3s ease;
}

.archive-item:hover .archive-arrow {
  transform: translate(5px,-5px);
}


/* =========================================================
   CTA
========================================================= */

.cta {
  min-height: 750px;

  position: relative;

  display: grid;
  place-items: center;

  overflow: hidden;

  background: var(--dark);

  color: white;
}

.cta-grid {
  position: absolute;
  inset: 0;

  background-image:
    linear-gradient(
      rgba(255,255,255,.035) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255,255,255,.035) 1px,
      transparent 1px
    );

  background-size: 90px 90px;
}

.cta-content {
  position: relative;

  width: min(1100px, 90vw);

  text-align: center;
}

.cta .section-number {
  margin-bottom: 70px;
}

.cta h2 {
  font-size: clamp(65px, 9vw, 135px);

  line-height: .83;

  letter-spacing: -.065em;

  font-weight: 500;
}

.cta h2 .serif {
  font-size: 1.05em;
}

.cta-content > p {
  max-width: 470px;

  margin: 45px auto 0;

  color: #929088;

  font-size: 15px;

  line-height: 1.65;
}

.cta-button {
  display: inline-flex;

  align-items: center;

  gap: 35px;

  margin-top: 45px;

  padding: 17px 22px;

  background: white;
  color: black;

  font-family: var(--mono);

  font-size: 9px;

  transition:
    transform .25s ease;
}

.cta-button:hover {
  transform: translateY(-4px);
}


/* =========================================================
   FOOTER
========================================================= */

footer {
  background: var(--dark);

  color: white;

  padding:
    55px var(--page-padding) 30px;
}

.footer-top {
  display: flex;

  justify-content: space-between;

  padding-bottom: 70px;
}

.footer-brand span {
  color: #6e6c66;
}

.footer-links {
  display: flex;
  gap: 35px;

  font-family: var(--mono);

  font-size: 9px;

  color: #88857d;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 20px;

  border-top: 1px solid var(--dark-line);

  display: flex;

  justify-content: space-between;

  font-family: var(--mono);

  font-size: 8px;

  color: #66635d;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width: 1000px) {

  .hero-content {
    width: 85%;
  }

  .hero-market {
    opacity: .35;
    width: 80vw;
  }

  .intro {
    display: block;
  }

  .intro-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .briefing-layout {
    grid-template-columns: 1fr;
  }

  .briefing-sticky {
    position: relative;
    top: 0;
  }

  .research-header {
    grid-template-columns: 1fr;
  }

  .lens-grid {
    grid-template-columns: 1fr;
  }

  .lens-card,
  .lens-card:first-child {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 35px 0;
  }

  .lens-card:last-child {
    border-bottom: none;
  }

  .process-layout {
    grid-template-columns: 1fr;
  }

  .process-title {
    position: relative;
    top: 0;
  }


  .archive-item {
    grid-template-columns: 80px 1fr 30px;
  }

  .archive-title {
    font-size: 18px;
  }

  .footer-top {
    flex-direction: column;
    gap: 50px;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }

}

[data-market-price]{min-width:2.5em;display:inline-block;transition:opacity .2s ease}.market-loading{opacity:.45}.market-updated{animation:marketPulse .35s ease}@keyframes marketPulse{0%{opacity:.45}100%{opacity:1}}

/* Newsletter */

.newsletter-form {
  margin-top: 28px;
  max-width: 650px;
}

.newsletter-fields {
  display: flex;
  gap: 10px;
}

.newsletter-fields input[type="email"] {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 1px solid #4a4944;
  color: white;
  padding: 16px 17px;
  outline: none;
  font-family: var(--mono);
  font-size: 10px;
}

.newsletter-fields input[type="email"]::placeholder {
  color: #77756e;
}

.newsletter-fields input[type="email"]:focus {
  border-color: #aaa79f;
}

.newsletter-fields .cta-button {
  cursor: pointer;
  white-space: nowrap;
}

.newsletter-fields .cta-button:disabled {
  opacity: .55;
  cursor: wait;
}

.newsletter-fields .cta-button.loading span {
  animation: newsletterSpin .8s linear infinite;
  display: inline-block;
}

@keyframes newsletterSpin {
  to { transform: rotate(360deg); }
}

.newsletter-consent {
  margin-top: 13px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #8d8b84;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.5;
}

.newsletter-consent input {
  margin-top: 1px;
  accent-color: white;
}

.newsletter-message {
  min-height: 18px;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 9px;
  color: #8d8b84;
}

.newsletter-message.success { color: #82b792; }
.newsletter-message.error { color: #d48d83; }

@media (max-width: 900px) {
  .market-cards-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .live-markets-header { align-items: flex-start; flex-direction: column; }
  .live-status { padding-bottom: 0; }
  .market-grid { grid-template-columns: 1fr; gap: 50px; }
  .market-group-wide { grid-column: auto; }
  .market-cards, .market-cards-wide { grid-template-columns: 1fr 1fr; }
  .newsletter-fields { flex-direction: column; }
  .newsletter-fields .cta-button { width: 100%; justify-content: center; }
}

/* Hadal ticker — single sequence, 8 unique markets */
.ticker { height: 74px; }
.ticker-track { gap: 46px; animation: tickerMove 38s linear infinite; }
.ticker-track .ticker-item { display: inline-flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.ticker-track .ticker-name { font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.ticker-track .ticker-symbol { font-size: 10px; opacity: .55; }
.ticker-track .ticker-price { font-family: var(--mono); font-size: 15px; font-weight: 600; }
.ticker-track .ticker-change { font-family: var(--mono); font-size: 11px; opacity: .7; }
.ticker-track .ticker-sequence-repeat { display: inline-flex; align-items: baseline; gap: 46px; }
@media (max-width: 700px) {
  .ticker { height: 66px; }
  .ticker-track { gap: 30px; animation-duration: 32s; }
  .ticker-track .ticker-name { font-size: 12px; }
  .ticker-track .ticker-price { font-size: 13px; }
}


/* =========================================================
   INTERACTIVE HADAL LAYERS
========================================================= */

.hero-strategy-link {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 190px;
  padding-left: 22px;
  border-left: 1px solid #aaa79f;
  transition: transform .25s ease, opacity .25s ease;
}
.hero-strategy-link:hover {
  transform: translateX(6px);
  opacity: .72;
}
.strategy-link-kicker {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .12em;
  color: var(--muted);
}
.strategy-link-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .04em;
}

.lens-button {
  cursor: pointer;
}
.lens-button:focus-visible,
.lens-modal-close:focus-visible,
.signal-node:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

.signal-lab {
  border-top: 1px solid var(--line);
  background: #e8e7e2;
}
.signal-lab-head {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 100px;
  margin-top: 85px;
  align-items: end;
}
.signal-lab-copy {
  max-width: 420px;
  color: #68665f;
  line-height: 1.7;
  font-size: 15px;
}
.signal-console {
  margin-top: 70px;
  border: 1px solid #aaa79f;
  background: #efeee9;
  min-height: 330px;
  overflow: hidden;
}
.signal-console-top {
  display:flex;
  justify-content:space-between;
  padding: 16px 20px;
  border-bottom:1px solid var(--line);
  font-family:var(--mono);
  font-size:8px;
  letter-spacing:.12em;
  color:var(--muted);
}
.signal-console-status {
  display:flex;
  gap:8px;
  align-items:center;
}
.signal-console-status i {
  display:block;
  width:5px;
  height:5px;
  border-radius:50%;
  background:#5e8c62;
  animation: signalPulse 1.6s ease-in-out infinite;
}
.signal-console-body {
  min-height: 280px;
  padding: 55px 6%;
  display:flex;
  align-items:center;
  gap: 22px;
  position:relative;
}
.signal-node {
  width: 125px;
  height:125px;
  border:1px solid #aaa79f;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-family:var(--mono);
  font-size:9px;
  letter-spacing:.1em;
  cursor:pointer;
  transition:background .25s ease,color .25s ease,transform .25s ease;
}
.signal-node:hover {
  transform:translateY(-5px);
}
.signal-node.active {
  background:#171714;
  color:white;
  border-color:#171714;
}
.signal-connector {
  width:80px;
  height:1px;
  background:#aaa79f;
  position:relative;
}
.signal-connector::after {
  content:"→";
  position:absolute;
  right:-3px;
  top:-8px;
  font-family:var(--mono);
  font-size:12px;
  color:#77746c;
}
.signal-output {
  margin-left:auto;
  max-width:310px;
  padding:24px;
  border-left:1px solid #aaa79f;
  transition:transform .3s ease, opacity .3s ease;
}
.signal-output.pulse {
  animation: outputPulse .45s ease;
}
.signal-output-label {
  display:block;
  font-family:var(--mono);
  font-size:8px;
  letter-spacing:.12em;
  color:var(--muted);
  margin-bottom:13px;
}
.signal-output strong {
  font-size:20px;
  line-height:1.1;
  font-weight:500;
  letter-spacing:-.025em;
}

.lens-modal {
  position:fixed;
  inset:0;
  z-index:1000;
  display:grid;
  place-items:center;
  padding:30px;
  visibility:hidden;
  opacity:0;
  transition:opacity .25s ease, visibility .25s ease;
}
.lens-modal.open {
  visibility:visible;
  opacity:1;
}
.lens-modal-backdrop {
  position:absolute;
  inset:0;
  background:rgba(17,17,14,.72);
  backdrop-filter:blur(7px);
}
.lens-modal-card {
  position:relative;
  z-index:2;
  width:min(760px, 94vw);
  background:#efeee9;
  color:#171714;
  padding:52px;
  border:1px solid #aaa79f;
  transform:translateY(20px);
  transition:transform .3s ease;
}
.lens-modal.open .lens-modal-card {
  transform:translateY(0);
}
.lens-modal-close {
  position:absolute;
  top:18px;
  right:20px;
  border:0;
  background:transparent;
  font-size:25px;
  cursor:pointer;
  color:#171714;
}
.lens-modal-kicker {
  font-family:var(--mono);
  font-size:9px;
  letter-spacing:.13em;
  margin-top:25px;
  color:var(--muted);
}
.lens-modal-card h2 {
  margin-top:18px;
  font-size:clamp(42px,6vw,76px);
  line-height:.9;
  letter-spacing:-.055em;
  font-weight:500;
}
.lens-modal-card > p {
  max-width:590px;
  margin-top:25px;
  color:#68665f;
  line-height:1.7;
}
.lens-modal-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1px;
  margin-top:38px;
  background:#aaa79f;
  border:1px solid #aaa79f;
}
.lens-modal-grid > div {
  background:#efeee9;
  padding:18px;
  min-height:105px;
}
.lens-modal-grid span {
  display:block;
  font-family:var(--mono);
  font-size:7px;
  letter-spacing:.12em;
  color:var(--muted);
  margin-bottom:12px;
}
.lens-modal-grid strong {
  font-size:12px;
  line-height:1.35;
  font-weight:500;
}
.modal-open {
  overflow:hidden;
}
@keyframes signalPulse {
  50% { opacity:.25; transform:scale(.7); }
}
@keyframes outputPulse {
  50% { transform:translateX(8px); opacity:.55; }
}

@media (max-width: 800px) {
  .hero-bottom { flex-wrap:wrap; gap:35px; }
  .hero-strategy-link { min-width:0; }
  .signal-lab-head { grid-template-columns:1fr; gap:35px; }
  .signal-console-body { flex-wrap:wrap; justify-content:center; }
  .signal-node { width:90px; height:90px; font-size:8px; }
  .signal-connector { width:30px; }
  .signal-output { width:100%; max-width:none; margin-left:0; border-left:0; border-top:1px solid #aaa79f; }
  .lens-modal-card { padding:38px 24px; }
  .lens-modal-grid { grid-template-columns:1fr; }
}


/* =========================================================
   FINAL RESPONSIVE / INTERACTION POLISH
========================================================= */

:root {
  --mobile-gutter: 20px;
  --touch-target: 46px;
}

button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.nav-links a { position:relative; }
.nav-links a::after {
  content:"";
  position:absolute;
  left:0; right:0; bottom:-7px;
  height:1px;
  background:currentColor;
  transform:scaleX(0);
  transform-origin:right;
  transition:transform .25s ease;
}
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform:scaleX(1); transform-origin:left; }

.nav-button, .dark-button, .light-button, .cta-button, .sizing-option {
  min-height:var(--touch-target);
}

.mobile-menu-button {
  position:relative;
  z-index:110;
  min-width:46px;
  min-height:46px;
  display:none;
  border:1px solid transparent;
  border-radius:2px;
}
.mobile-menu-button span { transition:transform .25s ease, opacity .2s ease; }
.mobile-menu.open ~ main, .mobile-menu.open + main { pointer-events:none; }
.mobile-menu.open { display:flex; }
body.menu-open .mobile-menu-button span:first-child { transform:translateY(3.5px) rotate(45deg); }
body.menu-open .mobile-menu-button span:last-child { transform:translateY(-3.5px) rotate(-45deg); }

.page-mobile-menu {
  position:fixed;
  inset:68px 0 0;
  z-index:99;
  padding:22px var(--mobile-gutter) 40px;
  flex-direction:column;
  gap:0;
  background:rgba(239,238,233,.98);
  border-top:1px solid var(--line);
  overflow:auto;
}
.page-mobile-menu a {
  display:flex;
  align-items:center;
  min-height:58px;
  padding:0 4px;
  border-bottom:1px solid var(--line);
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:.05em;
}

@media (max-width: 700px) {
  :root { --page-padding:var(--mobile-gutter); }
  body { overflow-x:clip; }
  .nav { height:68px; padding:0 var(--mobile-gutter); }
  .nav-links, .nav > .nav-button { display:none; }
  .nav .mobile-menu-button { display:block; }
  .mobile-menu:not(.page-mobile-menu) {
    position:fixed;
    inset:68px 0 0;
    z-index:99;
    padding:22px var(--mobile-gutter) 40px;
    flex-direction:column;
    background:rgba(239,238,233,.98);
    border-top:1px solid var(--line);
    overflow:auto;
  }
  .mobile-menu:not(.page-mobile-menu) a {
    display:flex; align-items:center; min-height:58px;
    border-bottom:1px solid var(--line);
    font-family:var(--mono); font-size:11px; letter-spacing:.05em;
  }

  .hero {
    min-height:auto;
    padding:128px var(--mobile-gutter) 68px;
    align-items:flex-start;
  }
  .hero-content { width:100%; padding-bottom:0; }
  .hero-title { font-size:clamp(52px, 16vw, 76px); line-height:.9; }
  .hero-description { max-width:34rem; font-size:14px; line-height:1.7; }
  .hero-bottom { display:grid; grid-template-columns:1fr; gap:28px; padding-top:34px; }
  .scroll-indicator, .hero-strategy-link { min-height:46px; }
  .hero-strategy-link { padding:14px 0 0 16px; }
  .hero-market { width:145vw; max-width:none; right:-58vw; opacity:.18; }
  .hero-grid { background-size:55px 55px; mask-image:linear-gradient(to bottom,black,transparent 82%); }

  .section { padding:88px var(--mobile-gutter); }
  .large-heading { font-size:clamp(46px, 13vw, 64px); }
  .section-number { font-size:9px; }

  .ticker { height:60px; }
  .ticker-track { animation-duration:34s; }

  .lens-card, .insight-card, .plan-card { -webkit-transform:none; transform:none; }
  .lens-card:hover, .insight-card:hover, .plan-card:hover { transform:none; }
  .lens-card { padding:30px 0; }
  .lens-card h3 { font-size:27px; }

  .signal-console { margin-top:42px; }
  .signal-console-body { padding:28px 18px; gap:12px; }
  .signal-node { width:82px; height:82px; flex:0 0 82px; }
  .signal-connector { width:18px; flex:0 0 18px; }
  .signal-output { padding:20px 4px 0; }

  .lens-modal { padding:12px; align-items:flex-end; }
  .lens-modal-card {
    width:100%; max-height:88vh; overflow:auto;
    padding:44px 20px 24px;
    border-radius:2px;
  }
  .lens-modal-card h2 { font-size:clamp(40px,12vw,58px); }
  .lens-modal-card > p { font-size:14px; }

  .newsletter-form { width:100%; }
  .newsletter-fields input[type=email], .newsletter-fields .cta-button { min-height:50px; }
  .newsletter-consent { font-size:8px; }

  footer { padding-left:var(--mobile-gutter); padding-right:var(--mobile-gutter); }
  .footer-links { gap:16px 22px; }
  .footer-bottom { gap:8px; }
}

@media (min-width:701px) and (max-width:1000px) {
  .nav-links { gap:18px; }
  .nav-button { padding:10px 12px; }
  .hero-content { width:100%; }
}

@media (max-width:380px) {
  .hero-title { font-size:51px; }
  .hero { padding-top:116px; }
  .signal-node { width:74px; height:74px; flex-basis:74px; font-size:7px; }
  .signal-connector { width:10px; flex-basis:10px; }
}

@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}
