/* Stylesheet for /equity-hedge (equity-hedge.html).
   Same design tokens and components as the homepage: black / charcoal / white, orange accent,
   Cormorant Garamond + DM Sans + monospace labels, square corners. */
:root {
  --black: #080808; --charcoal: #111111; --charcoal-mid: #1a1a1a; --charcoal-lt: #242424; --charcoal-bd: #2e2e2e;
  --orange: #ff6a00; --orange-lt: #ff8c33;
  --white: #ffffff; --off-white: #f0f0f0; --grey: #909090; --grey-lt: #c0c0c0;
  --mono: 'Courier New', 'Lucida Console', monospace;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', sans-serif;
  --max: 1160px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black); color: var(--off-white);
  font-family: var(--sans); font-weight: 300; line-height: 1.7; overflow-x: hidden;
  padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.tag { display: inline-block; font-family: var(--mono); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--orange); margin-bottom: .75rem; }
.tag::before { content: '// '; opacity: .45; }
.accent-line { width: 48px; height: 1px; background: var(--orange); margin-bottom: 1rem; box-shadow: 0 0 8px rgba(255,106,0,.45); }

/* Top bar */
.eh-bar { position: sticky; top: 0; z-index: 50; background: rgba(8,8,8,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--charcoal-bd); padding: calc(1.25rem - 5px) 0; }
.eh-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-logo { font-family: var(--mono); font-size: .95rem; letter-spacing: .06em; color: var(--white); white-space: nowrap; }
.nav-logo::before { content: '> '; color: var(--orange); opacity: .55; }
.nav-logo span { color: var(--orange); }
.eh-links { list-style: none; display: flex; align-items: center; gap: clamp(.8rem, 1.6vw, 2rem); }
.eh-links a { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-lt); white-space: nowrap; transition: color .25s; }
.eh-links a:hover { color: var(--orange); }
.eh-links svg { width: 12px; height: 12px; margin-left: .4rem; vertical-align: -1px; color: var(--orange); }
.nav-cta { padding: .45rem 1.3rem; border: 1px solid var(--orange); color: var(--orange) !important; transition: background .25s, color .25s, box-shadow .25s; }
.nav-cta:hover { background: var(--orange); color: var(--black) !important; box-shadow: 0 0 20px rgba(255,106,0,.25); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 2rem; font-family: var(--mono); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; border-radius: 0; cursor: pointer; transition: all .3s; }
.btn svg { width: 13px; height: 13px; flex: none; }
.btn-outline { border: 1px solid rgba(255,106,0,.35); color: var(--off-white); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange); box-shadow: 0 0 14px rgba(255,106,0,.12); }
.btn-glow {
  width: fit-content; padding: calc(.45rem + 5px) 1.3rem; background: transparent; color: var(--orange);
  font-weight: 300; border: 1px solid var(--orange);
  box-shadow: 0 0 6px 1px rgba(255,255,255,.7), 0 0 16px 2px rgba(255,176,96,.55), 0 0 28px 4px rgba(255,106,0,.4);
}
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 0 8px 1px rgba(255,255,255,.85), 0 0 20px 3px rgba(255,176,96,.7), 0 0 34px 6px rgba(255,106,0,.5); }
.btn-primary { background: var(--orange); color: var(--black); }
.btn-primary:hover { background: var(--orange-lt); transform: translateY(-2px); box-shadow: 0 0 28px rgba(255,106,0,.4), 0 8px 20px rgba(0,0,0,.4); }

/* Sections */
section { padding: 3.5rem 0; }
.eh-hero { padding: 4.5rem 0 3rem; background: linear-gradient(160deg, #080808 0%, #111111 55%, #0a0a0a 100%); position: relative; overflow: hidden; }
.eh-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,106,0,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,106,0,.04) 1px, transparent 1px); background-size: 60px 60px; pointer-events: none; }
.eh-hero .container { position: relative; }
.eh-hero h1 { font-family: var(--serif); font-size: clamp(2.1rem, 4.2vw, 3.6rem); font-weight: 300; line-height: 1.1; color: var(--white); max-width: 820px; }
.eh-hero h1 em, .eh-h2 em, .eh-h3 em { font-style: italic; color: var(--orange); }
.eh-hero .lede { margin-top: 1.1rem; max-width: 640px; color: var(--grey-lt); font-size: 1rem; line-height: 1.85; }
.eh-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.alt { background: var(--charcoal); }
.eh-h2 { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 300; line-height: 1.15; color: var(--white); margin-bottom: 1rem; }
.eh-h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; color: var(--white); }

/* Value proposition + formulas */
.hedge-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: start; }
.hedge-pitch > p { color: var(--grey-lt); font-size: .92rem; line-height: 1.85; margin-bottom: .5rem; }
.process-list { margin-top: 1.5rem; }
.process-item { display: flex; gap: 1.25rem; padding: 1.2rem 0; border-bottom: 1px solid var(--charcoal-bd); }
.process-item:last-child { border-bottom: none; }
.process-num { flex-shrink: 0; width: 34px; height: 34px; border: 1px solid var(--charcoal-bd); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: .66rem; color: var(--orange); background: var(--charcoal); }
.process-item h4 { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--off-white); margin-bottom: .28rem; }
.process-item p { font-size: .82rem; color: var(--grey); }
.formula-panel { background: var(--charcoal-mid); border: 1px solid var(--charcoal-bd); padding: 2.5rem 2rem 2rem; position: relative; min-width: 0; }
.formula-panel::before { content: attr(data-label); position: absolute; top: -1px; left: 2rem; font-family: var(--mono); font-size: .58rem; letter-spacing: .2em; background: var(--orange); color: var(--black); padding: .22rem .7rem; }
.formula-panel h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--white); margin: .6rem 0 .35rem; }
.formula-panel > p { font-size: .82rem; color: var(--grey-lt); line-height: 1.75; margin-bottom: 1.1rem; }
.formula { padding: .8rem 0; border-top: 1px solid var(--charcoal-bd); }
.formula-label { display: block; font-family: var(--mono); font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); margin-bottom: .3rem; }
.formula code { display: block; font-family: var(--mono); font-size: .8rem; line-height: 1.6; color: var(--off-white); overflow-wrap: anywhere; }
.formula code sub { font-size: .7em; line-height: 0; }
.formula-key { font-size: .72rem; color: var(--grey); line-height: 1.6; margin-top: .4rem; border-top: 1px solid var(--charcoal-bd); padding-top: .8rem; }
.rho-table { width: 100%; border-collapse: collapse; margin-top: 1.1rem; font-size: .78rem; }
.rho-table caption { text-align: left; font-family: var(--mono); font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); padding-bottom: .5rem; }
.rho-table th, .rho-table td { padding: .5rem .6rem; text-align: right; border-top: 1px solid var(--charcoal-bd); font-variant-numeric: tabular-nums; }
.rho-table th:first-child, .rho-table td:first-child { text-align: left; padding-left: 0; }
.rho-table thead th { font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; color: var(--orange); font-weight: 600; }
.rho-table tbody th { font-weight: 400; color: var(--grey-lt); }
.rho-table td { color: var(--off-white); }
.formula-foot { margin-top: .9rem; font-size: .72rem; color: var(--grey); line-height: 1.6; }

/* Costs */
.hedge-costs-head { margin-bottom: 1.25rem; }
.hedge-costs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--charcoal-bd); border: 1px solid var(--charcoal-bd); }
.hedge-cost { background: var(--charcoal); padding: 1.6rem 1.5rem; position: relative; transition: background .3s; }
.hedge-cost:hover { background: var(--charcoal-mid); }
.hedge-cost::before { content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 2px; background: var(--charcoal-bd); transition: background .3s, box-shadow .3s; }
.hedge-cost:hover::before { background: var(--orange); box-shadow: 0 0 10px rgba(255,106,0,.3); }
.hedge-cost h4 { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--off-white); margin-bottom: .5rem; }
.hedge-cost p { font-size: .8rem; color: var(--grey-lt); line-height: 1.7; }

/* Worksheets */
.ws-intro { max-width: 620px; color: var(--grey-lt); font-size: .95rem; }
.ws-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--charcoal-bd); border: 1px solid var(--charcoal-bd); margin-top: 1.5rem; }
.ws-card { background: var(--charcoal); display: flex; flex-direction: column; transition: background .3s; }
.ws-card:hover { background: var(--charcoal-mid); }
.ws-shot { display: block; background: #0b0b0b; padding: 1.5rem 1.5rem 0; border-bottom: 1px solid var(--charcoal-bd); }
.ws-shot img { width: 100%; max-width: 520px; margin: 0 auto; border: 1px solid var(--charcoal-bd); border-bottom: 0; aspect-ratio: 900 / 1165; object-fit: cover; object-position: top; max-height: 520px; }
.ws-body { padding: 1.5rem 1.75rem 1.75rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.ws-kicker { font-family: var(--mono); font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--orange); }
.ws-body h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--white); line-height: 1.2; }
.ws-body p { font-size: .82rem; color: var(--grey-lt); line-height: 1.7; }
.ws-btns { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: auto; padding-top: 1rem; }
.ws-btns .btn { padding: .6rem 1.1rem; font-size: .64rem; }
.eh-note { margin: 2rem auto 0; max-width: 860px; text-align: center; font-family: var(--mono); font-size: .62rem; letter-spacing: .04em; line-height: 1.75; color: var(--grey); }
.eh-cta { text-align: center; margin-top: 2.5rem; }

/* Footer */
.eh-foot { background: #040404; border-top: 1px solid var(--charcoal-bd); padding: 1.25rem 0; padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); }
.eh-foot-in { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; font-family: var(--mono); font-size: .65rem; color: var(--grey); }
.eh-foot a:hover { color: var(--orange); }

@media (max-width: 1024px) {
  .hedge-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hedge-costs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .eh-links li.opt { display: none; }
  .hedge-costs, .ws-grid { grid-template-columns: minmax(0, 1fr); }
  section { padding: 3rem 0; }
  .container { padding: 0 1.25rem; }
  .eh-foot-in { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
