/* The monochrome palette applies to the landing page, including its existing embeds. */
:root:has(> body > .hedge-hero) {
  --landing-black: #080808;
  --landing-charcoal: #101010;
  --landing-panel: #161616;
  --landing-border: #282828;
  --landing-text: #f2f2f2;
  --landing-muted: #b0b4ba;
  --landing-soft: #d4d7d9;
  --landing-teal: #a5cdc0;
  --color-v2-primary-black: var(--landing-black);
  --color-v2-primary-neutral-0: #fafaf8;
  --color-v2-primary-neutral-100: var(--landing-text);
  --color-v2-primary-neutral-200: #e5e6e1;
  --color-v2-primary-neutral-300: #c9ceca;
  --color-v2-primary-neutral-400: #b2b6b3;
  --color-v2-primary-neutral-500: var(--landing-muted);
  --color-v2-primary-neutral-600: #898f8b;
  --color-v2-primary-neutral-700: #535956;
  --color-v2-primary-neutral-900: #1f2221;
  --color-v2-primary-neutral-950: var(--landing-panel);
  --color-v2-primary-neutral-1000: var(--landing-charcoal);
  --color-v2-primary-green-100: #e0e7e4;
  --color-v2-primary-green-200: var(--landing-teal);
  --color-v2-primary-green-300: #284d44;
  --color-v2-op-green-10: #a5cdc018;
  --color-v2-op-green-200-5: #a5cdc00c;
  --color-v2-op-green-300-10: #284d441a;
  --color-v2-op-green-400-70: #233632b3;
  --color-v2-op-nav-bg-dark: #0b0b0bf2;
  --color-marketing-muted-green: var(--landing-muted);
  --marketing-gradient: linear-gradient(25deg, #e5e9e6, #a6b6af 43%, #556c62 72%, #253732);
}

body:has(> .hedge-hero),
body:has(> .hedge-hero) .marketing-shell {
  color: var(--landing-text);
  background: var(--landing-black);
}

.hedge-topbar,
.hedge-hero {
  --hedge-night: var(--landing-black);
  --hedge-ivory: var(--landing-text);
  --hedge-muted: var(--landing-muted);
  --hedge-brass: var(--landing-soft);
}

.hedge-topbar {
  background: #090909f7;
  border-color: #ffffff17;
}

.hedge-topbar-nav a:hover { color: var(--landing-text); }

.hedge-topbar-cta,
.hedge-hero-button,
.hedge-hero-actions a,
.hedge-story-link,
.hedge-close a {
  color: #121414;
  background: #eeefed;
  border-color: #eeefed;
  border-radius: 2px;
  box-shadow: none;
}

.hedge-topbar-cta:hover,
.hedge-hero-actions a:hover,
.hedge-story-link:hover,
.hedge-close a:hover { background: #fff; }

.hedge-topbar a:focus-visible,
.hedge-hero a:focus-visible,
.hedge-topbar-skip:focus-visible,
.hedge-story-link:focus-visible,
.hedge-close a:focus-visible { outline-color: var(--landing-teal); }

.hedge-topbar-skip { background: #eeefed; color: #121414; }

.hedge-hero { --hedge-ink: var(--landing-black); }

.hedge-hero-stage {
  background: radial-gradient(ellipse at 50% 57%, #14201e44, transparent 69%), var(--landing-black);
}

/* The original Roman print extends across the viewport behind the chamber. */
.hedge-hero-stage::before {
  position: absolute;
  z-index: -3;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, #08080816 0%, #0808088c 49%, #080808ea 88%, #080808 100%),
    linear-gradient(90deg, #15252932, #101b1b26 48%, #172c2c39),
    url("/assets/hedge-desk-caracalla.jpg") center 44% / cover no-repeat;
  filter: saturate(.43) contrast(1.1) brightness(.52);
}

.hedge-hero-grid {
  background: repeating-linear-gradient(0deg, #cad6d50a 0 1px, transparent 1px 4px);
}

.hedge-hero-copy { text-shadow: 0 3px 24px #080a0a, 0 2px 5px #080a0a; }
.hedge-hero h1,
.hedge-hero h1 em { color: var(--landing-text); }
.hedge-hero-kicker { color: var(--landing-soft); }
.hedge-hero-copy > p:not(.hedge-hero-kicker) { color: #d0d1ce; }
.hedge-hero-caption { color: #c3c9c6; text-shadow: 0 1px 4px #080a0a, 0 1px 12px #080a0a; }

.hedge-story,
.hedge-close {
  --editorial-ink: var(--landing-text);
  --editorial-muted: var(--landing-muted);
  --editorial-brass: var(--landing-soft);
  --editorial-line: var(--landing-border);
  background: var(--landing-charcoal);
}

.hedge-story::before {
  background:
    linear-gradient(90deg, #101010 0%, #101010e5 40%, #101010bb 73%, #101010 100%),
    url("/assets/hedge-desk-collateral-print.jpg") 72% 62% / cover no-repeat;
  filter: grayscale(.86);
}

.hedge-story-text h2 em { color: var(--landing-text); }

.hedge-ledger {
  border-color: #676d6a70;
  background: linear-gradient(150deg, #1a1b1b, #121212 75%);
  box-shadow: inset 0 0 0 4px #0a0b0b90, inset 0 0 0 5px #a4b3ad19, 0 16px 50px #050606aa;
}

.hedge-ledger::before {
  background: repeating-linear-gradient(0deg, transparent 0 3px, #edf8ee07 3px 4px);
}

.hedge-ledger-item::before {
  background: #899c94;
  box-shadow: 0 0 8px #a5cdc037;
}

.hedge-ledger-total {
  color: #cfebe1;
  background: #778f8318;
  border-color: #a4beb148;
}

body:has(> .hedge-hero) .hs-scene {
  color: var(--landing-text);
  background: radial-gradient(ellipse at 100% 0%, #1c2927 0%, #141819 38%, #101111 77%);
}

body:has(> .hedge-hero) .hs-scene::before {
  background: repeating-linear-gradient(90deg, transparent 0 24px, #a1b7ae19 24px 25px, transparent 25px 36px);
}

body:has(> .hedge-hero) .hs-ticket {
  background: #121414f5;
  border-color: #565e5a;
  box-shadow: 0 14px 38px #0005, inset 0 0 0 4px #151818, inset 0 0 0 5px #aabbb52b;
}

body:has(> .hedge-hero) .hs-top { color: #d6e0dc; }
body:has(> .hedge-hero) .hs-top span:last-child,
body:has(> .hedge-hero) .hs-terms,
body:has(> .hedge-hero) .hs-ticket p { color: var(--landing-muted); }
body:has(> .hedge-hero) .hs-ticket li { color: var(--landing-soft); border-color: #596d65; }
body:has(> .hedge-hero) .hs-ticket li:last-child { color: #cae7dc; }
body:has(> .hedge-hero) .hs-plot { border-color: #849e94; }
body:has(> .hedge-hero) .hs-plot::after { background: linear-gradient(#8caf9f, #425f5670); }

[data-hedge-market-label] { color: var(--landing-muted); }

#workloads-inference > div:has(a[class~="group/model"]) { display: none; }

@media (min-width: 768px) {
  main .v2-grid-layout:has(> nav a[href="#workloads-inference"]) {
    grid-template-columns: clamp(10rem, 15vw, 14rem) minmax(0, 1fr);
    column-gap: clamp(1rem, 2.5vw, 2.5rem);
  }

  main nav:has(a[href="#workloads-inference"]) {
    grid-column: 1;
    min-width: 0;

    ul { align-items: stretch; }
    li { min-width: 0; }
    a {
      max-width: 100%;
      white-space: normal;
      overflow-wrap: anywhere;
    }
    a svg { flex-shrink: 0; }
  }

  main nav:has(a[href="#workloads-inference"]) + div {
    grid-column: 2;
    min-width: 0;
  }
}

#hedge-settlement .v2-dim-siblings > .group > .aspect-square {
  background: #1a1d1d;
  border-color: #a4b3ad44;
}

#hedge-settlement .v2-dim-siblings > .group > .aspect-square::before {
  filter: grayscale(.82) brightness(1.01) contrast(1.06);
}

#hedge-settlement .v2-dim-siblings > .group > .aspect-square::after {
  background: linear-gradient(180deg, #acc1bc0c, transparent 42%, #10181830);
  box-shadow: inset 0 0 0 5px #0a111124, inset 0 0 22px #0a111138;
}

#hedge-settlement .flex:has(> .v2-dim-siblings) { gap: clamp(28px, 4vw, 54px); }
.hedge-settlement-timeline {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 26px);
  align-self: end;
  padding: 0;
  margin: 0;
}
.hedge-settlement-timeline li {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding-block-start: 14px;
  border-top: 1px solid #a5cdc044;
}
.hedge-settlement-timeline li::before {
  position: absolute;
  inset: -3px auto auto 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--landing-teal);
  content: "";
}
.hedge-settlement-timeline strong { color: var(--landing-text); font: 550 .94rem/1.3 system-ui, sans-serif; }
.hedge-settlement-timeline span { color: var(--landing-muted); font: 400 .83rem/1.45 system-ui, sans-serif; }
@media (min-width: 1024px) {
  .hedge-settlement-timeline { grid-column: 13 / -1; }
}
@media (max-width: 480px) {
  .hedge-settlement-timeline { grid-template-columns: 1fr; }
  .hedge-settlement-timeline li { gap: 2px; padding-block-start: 8px; }
}

.hedge-footer {
  color: var(--landing-text);
  background: var(--landing-black);
  border-top: 1px solid #a4b3ad38;
}

.hedge-footer::after {
  background: repeating-conic-gradient(from 45deg, #a7b7b048 0 25%, transparent 0 50%) 0 0 / 12px 12px;
}

.hedge-footer-art { background: #151a19; }
.hedge-footer-art img { filter: saturate(.45) brightness(.75) contrast(1.07); }
.hedge-footer-art::after {
  background: linear-gradient(180deg, #16232116 0%, transparent 48%, #0b1010a0 78%, var(--landing-black) 100%), #1c3a351e;
}
.hedge-footer-art figcaption { color: var(--landing-soft); }

.hedge-footer a,
.hedge-footer nav h2 { color: var(--landing-soft); }
.hedge-footer a:hover,
.hedge-footer-brand > a { color: var(--landing-text); }
.hedge-footer-brand p,
.hedge-footer-end { color: var(--landing-muted); }
.hedge-footer-end { border-color: var(--landing-border); }

@media (max-width: 640px) {
  .hedge-hero-stage::before { background-position: center 48%; }
}
