/* The Hedging Company — Paper & Relics look.
   Warm paper, one regular-weight serif for headlines, mono pill buttons,
   hairline cards, cut-out photographs set straight onto the page. */

@font-face { font-family: "Crimson Text"; src: url("assets/fonts/crimson-text-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Crimson Text"; src: url("assets/fonts/crimson-text-italic-latin.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: Inter; src: url("assets/fonts/inter-latin.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("assets/fonts/geist-mono-latin.woff2") format("woff2"); font-weight: 300 500; font-style: normal; font-display: swap; }

:root {
  --paper: #fdfcfb;
  --surface-muted: #f6f5f4;
  --ink: #18191b;
  --ink-soft: rgba(24,25,27,.9);
  --muted: #5f646d;
  --border: #e4e5e7;
  --hairline: rgba(210,212,216,.7);
  --card-start: rgba(253,252,251,.94);
  --card-end: rgba(246,245,244,.62);
  --nav-glass: rgba(253,252,251,.9);
  --primary: #1c1e21;
  --primary-hover: #3b3e44;
  --on-primary: #fff;
  --footer: #000;
  --footer-muted: rgba(255,255,255,.64);
  --warm-line: rgba(251,146,60,.28);
  --signal: #1f5f8b;
  --danger: #b23434;

  --serif: "Crimson Text", "Iowan Old Style", Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
 --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-pill: 9999px;
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,.05);
  --shadow-card: inset 0 1px 0 0 rgba(253,252,251,.9), 0 16px 40px 0 rgba(24,25,27,.07);
  --ease: cubic-bezier(.4,0,.2,1);
  --measure: 620px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 8px 16px; background: var(--primary); color: var(--on-primary); border-radius: var(--r-pill); font-family: var(--mono); font-size: 14px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 40px; }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.2vw, 60px); line-height: 1.08; letter-spacing: -.02em; }
h2 { font-size: clamp(34px, 4.1vw, 46px); line-height: 1.1; letter-spacing: -.03em; }
h3 { font-size: 28px; line-height: 1.1; letter-spacing: -.01em; }
.lead { color: var(--muted); max-width: var(--measure); text-wrap: pretty; }

/* Buttons: always a pill, always mono */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px; border-radius: var(--r-pill); border: 1px solid transparent; font-family: var(--mono); font-size: 14px; line-height: 20px; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: var(--paper); color: var(--ink-soft); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-outline:hover { background: var(--surface-muted); }
.btn .arrow { font-family: var(--sans); font-size: 15px; line-height: 1; transition: transform .15s var(--ease); }
.btn:hover .arrow { transform: translate(1px, -1px); }

/* Nav: glass, no bottom border */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav-glass); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; gap: 32px; max-width: 1200px; margin-inline: auto; padding: 12px 40px; }
.brand { text-decoration: none; display: inline-block; }
.wm { display: block; font-family: var(--serif); font-size: 17px; line-height: 1; letter-spacing: .13em; white-space: nowrap; }
.wm i { display: block; font-size: 15px; letter-spacing: 0; line-height: .8; margin-bottom: 1px; color: var(--muted); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--ink); padding: 4px 0; text-underline-offset: 6px; }
.nav-links a:hover { text-decoration: underline; }
.nav-links .nav-contact, .menu-btn { display: none; }
.menu-btn { width: 40px; height: 40px; margin-right: -8px; border: 0; background: none; border-radius: var(--r-sm); cursor: pointer; place-items: center; }
.menu-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; }
.menu-btn .m-close, .nav[data-open] .m-open { display: none; }
.nav[data-open] .m-close { display: block; }

/* Hero: centred, collage directly beneath, fading into the page */
.hero { padding-top: 72px; overflow: hidden; }
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero h1 { max-width: 15em; }
.hero .lead { margin-top: 20px; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.collage { max-width: 980px; margin: 40px auto 0; padding-inline: 24px; -webkit-mask-image: linear-gradient(#000 80%, transparent 100%); mask-image: linear-gradient(#000 80%, transparent 100%); }
.collage img { width: 100%; }
.js .collage img { opacity: 0; transform: translateY(18px); animation: settle .9s .15s var(--ease) forwards; }
@keyframes settle { to { opacity: 1; transform: none; } }

/* Sections */
section { padding: 48px 0 64px; }
.risks { padding-top: 96px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin-bottom: 48px; }
.section-head h2 { max-width: 16em; }
.section-head .lead { margin-top: 14px; }
.head-relic { flex: none; width: 340px; margin-top: -20px; }

/* What we hedge: four plain feature cards */
.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feats-3 { grid-template-columns: repeat(3, 1fr); }
.feats-3 .feat { padding: 24px; }
.feats-3 .feat h3 { font-family: var(--serif); font-size: 26px; line-height: 1.2; font-weight: 400; margin-bottom: 6px; }
.feats-3 .feat p { font-size: 15px; line-height: 23px; }
.feat { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--hairline); border-radius: var(--r-lg); background: linear-gradient(to right bottom, var(--card-start), var(--card-end)); }
.feat svg { width: 20px; height: 20px; margin-bottom: 14px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font-family: var(--sans); font-size: 17px; line-height: 25.5px; font-weight: 500; letter-spacing: 0; margin-bottom: 4px; }
.feat p { font-size: 14px; line-height: 21px; color: var(--muted); }

/* Worked example: a note on the left, the contract taking shape on the right */
.no-js .panes { gap: 16px; }
.no-js .pane { grid-area: auto; opacity: 1; visibility: visible; transform: none; }

/* Insurance against event contract */
.fine { margin-top: 20px; font-size: 13px; line-height: 20px; color: var(--muted); }

/* Our view: a centred statement that inks in as it is read */
.view { padding: 88px 0 72px; }

/* Why hedge */
.view-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.say { font-family: var(--serif); font-size: clamp(22px, 2.5vw, 28px); line-height: 1.3; max-width: 30em; text-wrap: balance; }
.say-lg { font-size: clamp(34px, 4.1vw, 46px); line-height: 1.1; letter-spacing: -.03em; max-width: 17em; }
.say-lg:last-child { margin-top: 18px; }
.js .say .w { opacity: .22; transition: opacity .18s linear; }

/* Closing panel with the form */
.contact { padding: 150px 0 96px; }
.closing { position: relative; padding: 56px 40px 48px; border: 1px solid var(--hairline); border-radius: var(--r-xl); background: linear-gradient(145deg, var(--card-start), var(--card-end)); box-shadow: var(--shadow-card); }
.closing-relic { position: absolute; right: 44px; bottom: calc(100% - 26px); width: 200px; }
.closing-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.closing-copy .lead { margin-top: 14px; }
.closing hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 640px; margin-inline: auto; }
.field-wide { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; line-height: 19px; font-weight: 500; }
.opt { font-weight: 400; color: var(--muted); margin-left: 6px; }
.field input, .field textarea { display: block; width: 100%; padding: 9px 12px; border: 1px solid #b9bcc2; border-radius: var(--r-md); background: var(--paper); font-size: 16px; line-height: 24px; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.field textarea { resize: vertical; min-height: 96px; }
.field input:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.form-error { color: var(--danger); font-size: 14px; }
.form .btn { justify-self: start; margin-top: 4px; }
.form-done { max-width: 640px; margin-inline: auto; text-align: center; }
.form-done p { margin-top: 10px; color: var(--muted); }
[hidden] { display: none !important; }

/* Footer: black in every theme */
.footer { background: var(--footer); color: #fff; padding: 64px 0 40px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.lock { display: inline-flex; flex-direction: column; font-family: var(--serif); font-size: 24px; line-height: 1.05; letter-spacing: .13em; }
.lock i { font-size: 20px; letter-spacing: 0; line-height: .9; color: var(--footer-muted); }
.footer-brand p { margin-top: 20px; font-family: var(--serif); font-size: 24px; line-height: 1.35; max-width: 18em; }
.footer-brand .footer-sub { margin-top: 10px; font-family: var(--sans); font-size: 14px; line-height: 22px; color: var(--footer-muted); max-width: 34em; }
.footer-col h2 { font-family: var(--sans); font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: 0; margin-bottom: 14px; }
.footer-col a { display: block; width: fit-content; padding: 5px 0; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--footer-muted); text-decoration: none; transition: color .15s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer :focus-visible { outline-color: #fff; }
.footer-base { margin-top: 56px; display: grid; gap: 10px; }
.footer-base p:first-child { padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); max-width: none; }
.footer-base p { font-size: 12px; line-height: 18px; color: var(--footer-muted); max-width: 88ch; }

/* Rise and fade on first sight */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease) var(--d, 0s), transform .7s var(--ease) var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .wrap, .nav-inner { padding-inline: 20px; }
  .nav-inner { gap: 12px; }
  .nav-cta { display: none; }
  .menu-btn { display: grid; margin-left: auto; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 8px 20px 20px; background: var(--paper); box-shadow: 0 12px 24px -12px rgba(24,25,27,.18); }
  .nav[data-open] .nav-links { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-links .nav-contact { display: inline-flex; align-self: flex-start; margin-top: 16px; padding: 8px 16px; border: 0; border-radius: var(--r-pill); background: var(--primary); color: var(--on-primary); font-family: var(--mono); font-size: 14px; line-height: 20px; font-weight: 500; }
  .hero { padding-top: 48px; }
  .collage { padding-inline: 8px; margin-top: 32px; }
  .feats { grid-template-columns: 1fr 1fr; }
  .head-relic { width: 200px; margin-top: 0; }
  .risks { padding-top: 64px; }
  .section-head { margin-bottom: 32px; flex-direction: column-reverse; gap: 20px; }
  .view { padding: 64px 0 72px; }
  .closing { padding: 40px 20px 32px; }
  .closing-relic { width: 110px; right: 16px; }
  .contact { padding-top: 96px; }
  .form { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .collage img { opacity: 1; transform: none; }
  .js .say .w { opacity: 1; }
}

@media (max-width: 860px) {
  .feats-3 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .feats { grid-template-columns: 1fr; } }

/* ---- Full-screen sections: each one takes the whole window ---- */
@media (min-width: 861px) {
  .hero, .risks, .view, .contact { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
  .hero { padding-top: 40px; padding-bottom: 0; justify-content: flex-end; }
  .collage { max-width: none; margin-top: 32px; }
  .collage img { width: auto; height: clamp(300px, 100svh - 470px, 620px); margin-inline: auto; }
  .risks, .view { padding-block: 96px; }
  .contact { padding: 170px 0 80px; }
}

/* ---- How it works: the heading holds, each block slides up over the last ---- */
.deck { position: relative; padding: 0 0 56px; --signal: #b4510b; --signal-wash: rgba(249,115,22,.1); }
.panel { position: sticky; top: 0; height: 100svh; padding: 96px 32px 40px; display: flex; flex-direction: column; justify-content: center; justify-content: safe center; }
.deck-head { display: flex; justify-content: space-between; align-items: center; gap: 40px; width: min(100%, 1120px); margin-inline: auto; }
.deck-head h2, .deck-head .h2 { display: block; font-family: var(--serif); font-size: clamp(34px, 4.1vw, 46px); line-height: 1.1; letter-spacing: -.03em; max-width: 16em; text-wrap: balance; }
.deck-head .lead { margin-top: 12px; }
.deck-head.ghost { visibility: hidden; }
.deck-relic { display: none; flex: none; width: 150px; height: auto; }
.slab { width: min(100%, 1120px); margin: 32px auto 0; padding: 16px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; border: 1px solid var(--hairline); border-radius: var(--r-xl); background: linear-gradient(145deg, #fdfcfb, #f8f7f5); box-shadow: inset 0 1px 0 0 rgba(253,252,251,.9), 0 12px 32px 0 rgba(24,25,27,.035); }
.slab-flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.slab-flip .plate { order: 2; }
.plate { height: clamp(320px, 100svh - 400px, 440px); display: grid; place-items: center; padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--warm-line); background-color: #fdf3ea; background-image: linear-gradient(rgba(194,87,12,.09) 1px, transparent 1px); background-size: 100% 28px; background-position: 0 14px; }
/* The crystal ball rests on the corner of whichever block is showing */
.deck-layer { position: sticky; top: 0; z-index: 3; height: 100svh; margin-bottom: -100svh; padding: 96px 32px 40px; display: flex; flex-direction: column; justify-content: center; justify-content: safe center; pointer-events: none; }
.slab-ghost { position: relative; visibility: hidden; display: block; box-shadow: none; }
.slab-copy { padding: 0 28px 0 4px; }
.slab-flip .slab-copy { padding: 0 4px 0 28px; }
.slab-label { font-family: var(--mono); font-size: 12px; line-height: 18px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.slab-label .num { margin-right: 10px; color: var(--signal); }
.slab-copy h3 { margin-top: 10px; font-size: clamp(30px, 3.2vw, 38px); line-height: 1.12; letter-spacing: -.02em; }
.slab-copy h3 + p { margin-top: 12px; max-width: 44ch; color: var(--muted); }
.deck-fine { width: min(100% - 64px, 1120px); margin: 0 auto; text-align: center; position: relative; }
@media (max-width: 860px) {
  .deck { padding: 72px 0 48px; }
  .deck-layer { display: none; }
  .deck-relic { display: block; }
  .panel { position: static; height: auto; padding: 0 20px 16px; }
  .deck-head.ghost { display: none; }
  .deck-head { flex-direction: column-reverse; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
  .slab, .slab-flip { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 0; padding: 12px; }
  .slab-flip .plate { order: 0; }
  .plate { height: auto; padding: 16px; }
  .slab-copy, .slab-flip .slab-copy { padding: 0 8px 12px; }
  .deck-fine { margin-top: 12px; }
}

/* ---- One world at a time: a section only shows once it owns the screen ---- */
.js .world { opacity: var(--o, 1); }

/* ---- Statement: one size throughout; holds the screen while the words ink in with the scroll ---- */
.view .say, .view .say-lg { font-size: clamp(27px, 3.1vw, 40px); line-height: 1.3; letter-spacing: -.02em; max-width: 24em; }
.view .say-lg:last-child { margin-top: 0; }
.view-inner { gap: 30px; }
@media (min-width: 861px) {
  .view { display: block; min-height: 0; height: 260svh; padding: 0; }
  .view-inner { position: sticky; top: 0; height: 100svh; justify-content: center; }
}

/* ================= How it works: each step is a photograph and one figure ================= */
.deck .relic { display: none; }
.deck[class*="tiles-"] { --signal: var(--ink); --signal-wash: rgba(24,25,27,.06); }
.deck[class*="tiles-"] .plate { border: 0; background-image: none; }

/* D. An object and one number */
.tiles-d .plate { background: none; padding: 0; }
.tiles-d .relic { display: grid; justify-items: center; text-align: center; gap: 4px; }
.tiles-d .relic img { width: auto; max-width: 100%; height: clamp(170px, 100svh - 560px, 270px); object-fit: contain; }
.relic-big { font-family: var(--serif); font-size: clamp(44px, 5vw, 64px); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.relic-cap { font-family: var(--mono); font-size: 12px; line-height: 18px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* Section links sit in the middle of the bar; logo and contact button at the ends */
@media (min-width: 861px) {
  .nav-inner { position: relative; }
  .nav-links { position: absolute; left: 50%; translate: -50% 0; margin-left: 0; }
  .nav-cta { margin-left: auto; }
}

/* Floating nav (wide screens): a squared pane of clear glass that hovers over each section */
@media (min-width: 861px) {
  .nav { top: 20px; padding-inline: 32px; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; pointer-events: none; }
  .nav-inner { max-width: 1120px; padding: 14px 14px 14px 28px; border: 1px solid rgba(255,255,255,.7); border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(253,252,251,.3)); -webkit-backdrop-filter: blur(22px) saturate(1.7); backdrop-filter: blur(22px) saturate(1.7); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(24,25,27,.04), 0 0 0 1px rgba(24,25,27,.06), 0 14px 34px -16px rgba(24,25,27,.28); pointer-events: auto; }
}
