/* Investor room: the packet as a scrolling stack of layered sheets. */
.room { background: var(--sky); }
.room-hero {
  position: relative; overflow: hidden; color: #fff; isolation: isolate; perspective: 1200px;
  background: radial-gradient(100% 90% at 80% 10%, #2550d0 0%, var(--night-2) 40%, var(--night) 75%);
  padding: 140px 0 110px;
}
.room-hero .grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; position: relative; z-index: 3; }
.room-hero .crest img { width: 100%; max-width: 520px; margin-left: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); animation: bob 6s ease-in-out infinite; }
.room-hero h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); }
.room-hero .facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 30px; }
@media (max-width: 900px) { .room-hero .grid { grid-template-columns: 1fr; } .room-hero .crest { order: -1; } .room-hero .crest img { max-width: 360px; margin: 0 auto; } .room-hero .facts { grid-template-columns: 1fr 1fr; } }

/* chapter rail */
.room-body { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; padding-top: 60px; padding-bottom: 60px; }
.rail { position: sticky; top: 96px; }
.rail ol { list-style: none; margin: 0; padding: 0; counter-reset: ch; display: grid; gap: 2px; }
.rail a { display: grid; grid-template-columns: 28px 1fr; gap: 6px; align-items: baseline; padding: 7px 10px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.rail a::before { counter-increment: ch; content: counter(ch); font-family: var(--display); font-weight: 800; color: #9aa8cf; }
.rail a.on { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.rail a.on::before { color: var(--gold-lo); }
.rail .meter { height: 4px; border-radius: 4px; background: var(--sky-2); margin: 14px 10px 0; overflow: hidden; }
.rail .meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--turf-hi), var(--lime)); }
@media (max-width: 1000px) { .room-body { grid-template-columns: 1fr; } .rail { display: none; } }

/* sheets — each packet page is a layered paper card that tips into place as it scrolls in */
.sheet {
  position: relative; margin-bottom: 44px; padding: clamp(24px, 4vw, 48px); border-radius: var(--radius-l);
  background: #fff; transform-origin: 50% 0; scroll-margin-top: 96px;
  /* paper stack: two sheets peeking out underneath */
  box-shadow: 0 0 0 1px var(--line), 0 12px 0 -6px #f3f6ff, 0 12px 0 -5px var(--line), 0 24px 0 -12px #e6ecff, 0 24px 0 -11px var(--line), 0 60px 80px -60px rgba(7, 19, 56, .7);
}
.sheet.dark { background: var(--night); color: #fff; }
.sheet.dark p, .sheet.dark .lede { color: #c6d2f5; }
.sheet h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.sheet .num { font-family: var(--display); font-weight: 800; color: var(--gold-lo); font-size: 1rem; display: block; margin-bottom: 8px; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .room-body { perspective: 1600px; }
    .sheet { animation: tipIn linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    @keyframes tipIn { from { opacity: .25; transform: rotateX(16deg) translateZ(-140px) translateY(40px); } to { opacity: 1; transform: none; } }
  }
}

/* letter */
.letter { font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; line-height: 1.75; max-width: 68ch; }
.letter p { margin-bottom: 1.1em; }
.letter .sig { font-family: "Caveat", cursive; font-size: 2.4rem; color: var(--royal); line-height: 1; margin-top: 10px; }

/* timeline on mowed stripes */
.track { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin-top: 30px; }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 14px; border-radius: 8px; background: repeating-linear-gradient(115deg, var(--turf) 0 18px, var(--turf-hi) 18px 36px); }
.stop { position: relative; padding: 52px 10px 0 0; }
.stop::before { content: ""; position: absolute; top: 14px; left: 0; width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px var(--turf), 0 6px 12px rgba(0,0,0,.2); }
.stop.key::before { background: var(--gold); box-shadow: 0 0 0 4px var(--night), 0 0 18px var(--gold); }
.stop b { display: block; font-family: var(--display); font-size: 1.05rem; }
.stop span { display: block; font-size: .9rem; color: var(--ink-2); line-height: 1.4; }
@media (max-width: 820px) {
  .track { grid-template-columns: 1fr; padding-left: 46px; }
  .track::before { left: 8px; right: auto; top: 0; bottom: 0; width: 14px; height: auto; background: repeating-linear-gradient(25deg, var(--turf) 0 14px, var(--turf-hi) 14px 28px); }
  .stop { padding: 6px 0 18px; }
  .stop::before { left: -46px; top: 6px; }
}

/* stat tiles that float at different depths */
.depth-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; perspective: 900px; }
.depth { padding: 22px; border-radius: var(--radius-m); background: linear-gradient(180deg, #fff, #f4f7ff); box-shadow: 0 0 0 1px var(--line), 0 26px 40px -30px rgba(7,19,56,.6); }
.depth b { display: block; font-family: var(--display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--night); line-height: 1.05; }
.depth span { display: block; color: var(--ink-2); font-size: .92rem; margin-top: 6px; line-height: 1.4; }
.depth.lift { transform: translateZ(40px); background: var(--night); }
.depth.lift b { color: var(--gold-hi); }
.depth.lift span { color: #c6d2f5; }
@media (max-width: 760px) { .depth-row { grid-template-columns: 1fr; } .depth.lift { transform: none; } }

/* tables */
.tbl-wrap { overflow-x: auto; margin: 16px 0 6px; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; font-size: .94rem; font-variant-numeric: tabular-nums; min-width: 560px; }
.t th, .t td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.t thead th { background: var(--night); color: #fff; font-weight: 700; font-size: .86rem; position: sticky; top: 0; }
.t td.n, .t th.n { text-align: right; white-space: nowrap; }
.t td:first-child { white-space: nowrap; }
.t td:nth-child(4) { white-space: normal; }
.t tbody tr:nth-child(even) td { background: #f7f9ff; }
.t tfoot td { font-weight: 800; background: #fff8dc; }
.t .btn { min-height: 38px; padding: 0 14px; font-size: .88rem; }
.dark .tbl-wrap { box-shadow: 0 0 0 1px rgba(255,255,255,.14); }

/* scenarios */
.scen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0; perspective: 1000px; }
.scen > div { padding: 20px; border-radius: var(--radius-m); box-shadow: 0 0 0 1px var(--line); background: #fff; }
.scen > div:nth-child(3) { background: var(--night); color: #fff; transform: translateZ(30px); box-shadow: 0 0 0 2px var(--gold), 0 30px 40px -26px rgba(7,19,56,.8); }
.scen b { display: block; font-family: var(--display); font-size: 1.9rem; line-height: 1.1; }
.scen > div:nth-child(3) b { color: var(--gold-hi); }
.scen span { font-size: .92rem; color: var(--ink-2); }
.scen > div:nth-child(3) span { color: #c6d2f5; }
@media (max-width: 760px) { .scen { grid-template-columns: 1fr; } .scen > div:nth-child(3) { transform: none; } }

/* 3D bar chart */
.bars { display: grid; grid-template-columns: repeat(10, 1fr); gap: clamp(6px, 1.4vw, 16px); align-items: end; height: 300px; padding: 30px 6px 0; margin-top: 10px; border-bottom: 2px solid rgba(255,255,255,.25); perspective: 700px; }
.bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; }
.bar i {
  position: relative; display: block; height: 0; border-radius: 6px 6px 0 0;
  background: linear-gradient(90deg, #c98f00, var(--gold) 45%, var(--gold-hi) 70%, #d9a200);
  box-shadow: 0 0 22px rgba(242,183,5,.35); transition: height 1.2s var(--ease); transform: rotateX(8deg); transform-origin: 50% 100%;
}
.bar i::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; border-radius: 6px 6px 0 0; background: #ffeaa0; transform: skewX(-40deg) translateX(4px); }
[data-grow].grown .bar i { height: var(--h); }
.bar em { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--h) + 14px); font-style: normal; font-size: .74rem; font-weight: 700; color: var(--gold-hi); white-space: nowrap; opacity: 0; transition: opacity .4s 1s; }
[data-grow].grown .bar em { opacity: 1; }
.bar-x { display: grid; grid-template-columns: repeat(10, 1fr); gap: clamp(6px, 1.4vw, 16px); padding: 8px 6px 0; font-size: .8rem; color: #9fb0dd; text-align: center; }
@media (max-width: 600px) { .bar em { display: none; } .bars { height: 220px; } }

/* ownership donut */
.own { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; }
.donut { position: relative; width: 280px; aspect-ratio: 1; border-radius: 50%; transform: rotateX(28deg); box-shadow: 0 18px 0 -2px #0a1f5c, 0 40px 40px -10px rgba(7,19,56,.6);
  background: conic-gradient(var(--royal) 0 51%, var(--gold) 51% 88%, var(--turf-hi) 88% 98%, var(--arc) 98% 100%); }
.donut::after { content: ""; position: absolute; inset: 26%; border-radius: 50%; background: #fff; box-shadow: inset 0 6px 14px rgba(0,0,0,.18); }
.legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.legend li { display: grid; grid-template-columns: 16px 64px 1fr; gap: 12px; align-items: baseline; }
.legend i { width: 14px; height: 14px; border-radius: 4px; transform: translateY(1px); }
.legend b { font-family: var(--display); font-size: 1.3rem; }
@media (max-width: 760px) { .own { grid-template-columns: 1fr; } .donut { width: 220px; margin: 0 auto; } }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; line-height: 1.45; }
.ticks li::before { content: ""; width: 20px; height: 20px; margin-top: 2px; border-radius: 6px; background: var(--turf-hi) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.ticks b { display: block; }
@media (max-width: 760px) { .ticks { grid-template-columns: 1fr; } }

/* org chart */
.org { display: grid; gap: 12px; justify-items: center; }
.org .lvl { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.org .box { padding: 12px 18px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 12px 20px -16px rgba(7,19,56,.6); text-align: center; min-width: 200px; }
.org .box small { display: block; color: var(--ink-2); font-size: .82rem; }
.org .box.top { background: var(--night); color: #fff; }
.org .box.top small { color: #c6d2f5; }
.org .box.ceo { background: var(--gold); }
.org .box.later { background: transparent; box-shadow: 0 0 0 1.5px dashed #9aa8cf; }
.org .ln { width: 2px; height: 14px; background: #9aa8cf; }

/* modal */
dialog#reserve { width: min(560px, calc(100% - 24px)); border: 0; border-radius: var(--radius-l); padding: 0; box-shadow: 0 50px 100px -30px rgba(0,0,0,.6); }
dialog#reserve::backdrop { background: rgba(7,19,56,.6); backdrop-filter: blur(4px); }
dialog#reserve .form-card { box-shadow: none; }
dialog#reserve .x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--sky); cursor: pointer; font-size: 1.1rem; }

/* gate */
.gate { min-height: 100svh; display: grid; place-items: center; padding: 100px var(--gutter) 60px; color: #fff; background: radial-gradient(100% 90% at 50% 0%, #2550d0, var(--night-2) 45%, var(--night)); perspective: 1200px; position: relative; overflow: hidden; }
.gate .card { position: relative; z-index: 2; width: min(520px, 100%); }
.gate .crest { width: min(320px, 70vw); margin: 0 auto 10px; }
.gate .crest img { animation: bob 6s ease-in-out infinite; filter: drop-shadow(0 24px 30px rgba(0,0,0,.5)); }
.gate h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); text-align: center; }
.gate .lede { text-align: center; margin: 0 auto 22px; color: #c6d2f5; }
.gate .form-card { color: var(--ink); }
.sheets { min-width: 0; }
.bars, .bar-x { min-width: 0; }
.bar-x span { min-width: 0; overflow: hidden; }
@media (max-width: 600px) { .bar-x { font-size: .62rem; gap: 6px; } .bar-x span { letter-spacing: -.02em; } }
