/* E · Monolith: landing */

/* ── hero ── */
.hero { --d: clamp(40px, 13.4vw, 156px); padding: clamp(28px, 3.4vw, 48px) 0 0; }
.hero-meta { padding-bottom: clamp(20px, 2.6vw, 36px); }
.hero-meta .meta:first-child { grid-column: 1 / span 6; }
.hero-count { grid-column: 9 / span 4; text-align: right; }
.hero-count b { margin-left: 2px; }
.display {
  grid-column: 1 / -1; font-size: var(--d); line-height: .88; letter-spacing: -.058em; font-weight: 500; font-stretch: 92%;
  margin-left: -.06em;
}
.display span { display: block; white-space: nowrap; }
.js .display span { opacity: 0; transform: translateY(.18em); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .display span.l2 { transition-delay: .08s; }
.js .display span.l3 { transition-delay: .16s; }
.js .hero.in .display span { opacity: 1; transform: none; }
.hero-aside { grid-column: 9 / span 4; margin-top: calc(var(--d) * -.86); padding-top: calc(var(--d) * .12); }
.hero-aside .lede { font-size: clamp(16px, 1.32vw, 19px); }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 26px; }
.js .hero-aside { opacity: 0; transition: opacity 1s .35s var(--ease); }
.js .hero.in .hero-aside { opacity: 1; }

/* At desktop the headline runs on two lines, so the stage reaches the fold. */
@media (min-width: 900px) {
  .hero { --d: min(9.4vw, 140px); }
  .display .l1, .display .l2 { display: inline; }
  .apps .dock-btn { padding: 22px 10px 10px 0; gap: 10px; }
}

/* ── apps: dock and stage ── */
.apps { position: relative; padding: clamp(32px, 3vw, 44px) 0 clamp(72px, 9vw, 128px); }
/* One spectral field: light through a prism, landing behind the dock. Static. */
.apps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 420px; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, #FF4D2E, #FFA51F 17%, #E8D60C 32%, #2FD38A 50%, #1BB2FF 67%, #5A5CFF 83%, #C94BFF);
  opacity: .16; filter: blur(70px);
  -webkit-mask: radial-gradient(70% 46% at 50% 52%, #000 30%, transparent 75%); mask: radial-gradient(70% 46% at 50% 52%, #000 30%, transparent 75%);
}
.apps > .wrap { position: relative; }
main { position: relative; z-index: 0; }
.apps-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.apps-head .label { color: var(--ink); }
#dock-cap { text-align: right; min-height: 1.4em; }

.stage { position: relative; margin-top: 28px; background: var(--white); outline-offset: 4px; }
.stage::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--line); pointer-events: none; }
.stage-edge { position: absolute; left: 0; right: 0; top: 0; z-index: 2; height: 1px; background: var(--spectrum); transform-origin: 0 50%; transform: scaleX(0); transition: transform .9s var(--ease); }
.stage.is-open .stage-edge { transform: scaleX(1); }
.stage-in {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 0; min-height: 520px;
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}
.stage-in.out { opacity: 0; transform: translateY(6px); transition-duration: .14s; }
.stage-view { padding: 28px; min-width: 0; border-right: 1px solid var(--line); }
.stage-view .sv-win { border-color: var(--line); }
.stage-info { display: flex; flex-direction: column; padding: 28px 28px 24px; min-width: 0; }
.stage-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stage-x { display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; border: 0; background: none; font: 400 11px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.stage-x:hover { color: var(--ink); }
.stage-x kbd { font: inherit; padding: 2px 5px; border: 1px solid var(--line-2); }
.stage-name { margin-top: 22px; font-size: 44px; line-height: .98; letter-spacing: -.045em; font-weight: 500; font-stretch: 94%; }
.stage-blurb { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.kv { margin-top: 22px; border-top: 1px solid var(--ink); }
.kv div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.kv dt { font-size: 13px; color: var(--muted); }
.kv dd { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.stage-sub { margin-top: 22px; }
.stage-items { margin-top: 8px; }
.stage-items a { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 14px; }
.stage-items a span:last-child { font: 400 11px/1.8 var(--mono); color: var(--faint); white-space: nowrap; }
.stage-items a:hover span:first-child { text-decoration: underline; text-underline-offset: 3px; }
.env-yn { margin-top: 8px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.env-yn b { font-weight: 600; }
.stage-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: auto; padding-top: 24px; }
.stage-note { width: 100%; font: 400 11.5px/1.4 var(--mono); color: var(--muted); min-height: 1.4em; }
.stage-note a { color: var(--ink); }
.stage-empty { padding: 56px 28px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); }
.stage-empty .meta { grid-column: 1 / span 3; }
.stage-empty-t { grid-column: 4 / span 6; font-size: 22px; line-height: 1.35; letter-spacing: -.02em; }

@media (max-width: 1100px) {
  .stage-in { grid-template-columns: minmax(0, 1fr); }
  .stage-view { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .stage-view { padding: 12px; }
  .stage-info { padding: 22px 18px; }
  .stage-name { font-size: 36px; }
  .stage-empty { display: block; padding: 32px 18px; }
  .stage-empty-t { font-size: 18px; margin-top: 8px; }
  #dock-cap { display: none; }
}

/* ── sections ── */
.sec { padding: clamp(72px, 9vw, 136px) 0; border-top: 1px solid var(--ink); }
.sec-side { grid-column: 1 / span 4; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.sec-side .h2 { margin-top: 4px; }
.domains .sec-side { position: sticky; top: calc(var(--head-h) + 32px); align-self: start; }
.sec-side-w5 { grid-column: 1 / span 5; }
.sec-side-w8 { grid-column: 1 / span 8; }
.sec-side .body { max-width: 26em; }

/* domains: an index, not cards */
.dom-list { grid-column: 6 / span 7; border-top: 1px solid var(--ink); counter-reset: d; }
.dom-list li { border-bottom: 1px solid var(--line); }
.dom-a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; column-gap: 16px; row-gap: 6px; padding: 22px 0 20px; text-decoration: none; }
.dom-n { font: 400 11.5px/2.4 var(--mono); color: var(--faint); }
.dom-t { font-size: clamp(24px, 2.3vw, 32px); line-height: 1.1; letter-spacing: -.03em; font-weight: 500; transition: transform .35s var(--ease); }
.dom-size { font-size: clamp(24px, 2.3vw, 32px); line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; text-align: right; }
.dom-b { grid-column: 2; font-size: 14.5px; color: var(--muted); max-width: 44em; }
.dom-c { grid-column: 3; grid-row: 2 / span 2; text-align: right; font: 400 11.5px/1.6 var(--mono); color: var(--muted); white-space: nowrap; }
.dom-ics { grid-column: 2; display: flex; gap: 6px; margin-top: 8px; color: var(--ink); }
.dom-ics svg { width: 22px; height: 22px; }
.dom-a:hover .dom-t { transform: translateX(6px); }
.dom-a:hover .dom-t::after { content: " →"; }

/* environments */
.env-top, .org-top { row-gap: 28px; }
.env-copy { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 16px; padding-top: 34px; }
.env-body { margin-top: clamp(40px, 5vw, 72px); row-gap: 32px; align-items: start; }
.env-table { grid-column: 1 / span 8; overflow-x: auto; }
.env-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.env-table th { text-align: left; font: 400 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 12px 12px 0; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.env-table td { padding: 13px 12px 13px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.env-table .r { text-align: right; font-variant-numeric: tabular-nums; }
.env-table td:first-child { font-weight: 500; }
.env-table td:first-child small { display: block; font: 400 11px/1.6 var(--mono); color: var(--faint); font-weight: 400; }
.env-ics { display: flex; gap: 4px; }
.env-ics svg { width: 22px; height: 22px; }
.st { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 13px; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--ink); }
.st-available::before { background: var(--ink); }
.st-sample::before { background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); }
.tree { grid-column: 10 / span 3; }
.tree pre { margin: 14px 0 0; padding: 18px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); font: 400 12.5px/1.75 var(--mono); color: var(--ink-2); overflow-x: auto; }
.tree .d { color: var(--ink); }
.tree-q { margin-top: 16px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }


/* companies: an index that opens into a stage */
.org-copy { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 16px; padding-top: 34px; }
.org-head, .org-row { display: grid; grid-template-columns: 44px minmax(0, 2.6fr) minmax(0, .9fr) minmax(0, .8fr) minmax(0, .9fr) 52px minmax(0, 1.7fr) 84px; column-gap: 16px; align-items: center; }
.org-head { margin-top: clamp(40px, 5vw, 72px); padding-bottom: 12px; border-bottom: 1px solid var(--ink); font: 400 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.org-head .r, .org-row .r { text-align: right; }
.org-head span:last-child { text-align: right; }
.org-li { border-bottom: 1px solid var(--line); }
.org-extra { display: none; }
.org-list.all .org-extra { display: block; }
.org-row { position: relative; width: 100%; padding: 16px 0; border: 0; background: none; text-align: left; transition: background-color .2s; }
.org-row::before { content: ""; position: absolute; left: -16px; top: 0; bottom: 0; width: 2px; background: var(--spectrum-v); transform: scaleY(0); transform-origin: top; transition: transform .45s var(--ease); }
.org-row[aria-expanded="true"]::before { transform: none; }
.org-row:hover { background: rgba(255, 255, 255, .55); }
.org-row:hover .o-t b { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.o-n { font: 400 11.5px/1 var(--mono); color: var(--faint); }
.o-t b { display: block; font-size: 18px; line-height: 1.2; letter-spacing: -.02em; font-weight: 500; }
.o-t small { display: block; margin-top: 3px; font: 400 11px/1.3 var(--mono); color: var(--muted); }
.o-c { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.o-ics { display: flex; flex-wrap: wrap; gap: 4px; }
.o-ics svg { width: 20px; height: 20px; }
.o-rec { font-size: 20px; letter-spacing: -.02em; text-align: right; font-variant-numeric: tabular-nums; }
.org-more { margin-top: 18px; }
.org-stage-li { padding: 12px 0 28px; border-bottom: 1px solid var(--line); }
.org-stage { margin-top: 0; }
.org-stage .stage-in { min-height: 0; }
.org-stage .tabs { margin-top: 0; }
.org-name { font-size: 34px; }
@media (max-width: 1100px) {
  .org-copy { grid-column: 1 / -1; padding-top: 0; }
  .org-head { display: none; }
  .org-head + .org-list { margin-top: 32px; border-top: 1px solid var(--ink); }
  .org-row { grid-template-columns: 32px minmax(0, 1fr) auto; row-gap: 6px; }
  .o-t { grid-column: 2; }
  .o-rec { grid-column: 3; grid-row: 1; }
  .o-c { display: none; }
  .o-ics { grid-column: 2 / -1; }
}

/* provenance */
.steps { margin-top: clamp(40px, 5vw, 72px); row-gap: 36px; }
.steps li { grid-column: span 3; border-top: 1px solid var(--ink); padding-top: 16px; }
.steps h3 { margin: 26px 0 10px; font-size: 24px; letter-spacing: -.025em; font-weight: 500; }
.steps p { font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 24em; }
.proof { margin-top: clamp(56px, 7vw, 104px); row-gap: 24px; align-items: start; }
.proof-l { grid-column: 1 / span 3; padding-top: 10px; }
.proof-q { grid-column: 4 / span 7; margin: 0; font-size: clamp(24px, 2.6vw, 38px); line-height: 1.28; letter-spacing: -.025em; }
.proof-q .pii, .proof-q .sv-pii { font-size: .62em; vertical-align: .18em; padding: .1em .45em; }
.proof-c { grid-column: 4 / span 5; }
.proof-m { grid-column: 9 / span 4; margin: 0; padding: 14px 0; border-top: 1px solid var(--line); font: 400 11.5px/1.8 var(--mono); color: var(--muted); overflow-x: auto; }
.proof-m span { color: var(--ink); }

/* sell: the one black cut */
.sell-top { row-gap: 24px; align-items: end; }
.sell-l { grid-column: 1 / -1; }
.sell-h { grid-column: 1 / span 9; font-size: clamp(52px, 9.6vw, 146px); line-height: .88; letter-spacing: -.058em; font-weight: 500; font-stretch: 92%; margin-left: -.05em; }
.sell-lede { grid-column: 9 / span 4; grid-row: 3; }
.sell-cols { margin-top: clamp(48px, 6vw, 96px); row-gap: 48px; }
.sell-card { grid-column: span 6; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 18px; border-top: 1px solid rgba(244, 244, 241, .28); position: relative; }
.sell-card::before { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 1px; background: var(--spectrum); transition: width .9s var(--ease); }
.sell-card:hover::before, .sell-card:focus-within::before { width: 100%; }
.sell-card h3 { margin-top: 12px; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.05; letter-spacing: -.035em; font-weight: 500; max-width: 14em; }
.sell-card > p:not(.meta) { font-size: 16px; line-height: 1.55; color: #C9C9C2; max-width: 34em; }
.sell-list { width: 100%; max-width: 34em; margin: 4px 0 12px; border-top: 1px solid rgba(244, 244, 241, .16); }
.sell-list li { padding: 10px 0; border-bottom: 1px solid rgba(244, 244, 241, .16); font-size: 15px; color: #E6E6E0; }

/* closing */
.close { padding: clamp(80px, 10vw, 160px) 0 clamp(64px, 7vw, 104px); }
.close-h { margin-top: 18px; font-size: clamp(52px, 10vw, 150px); line-height: .88; letter-spacing: -.058em; font-weight: 500; font-stretch: 92%; margin-left: -.05em; }
.close-row { margin-top: 36px; row-gap: 24px; align-items: end; }
.close-t { grid-column: 1 / span 5; }
.close-ctas { grid-column: 8 / span 5; justify-content: flex-end; margin: 0; }

/* ── responsive ── */
@media (max-width: 1100px) {
  .hero-aside { grid-column: 6 / span 7; margin-top: 36px; padding-top: 0; }
  .sec-side, .sec-side-w5, .sec-side-w8 { grid-column: 1 / -1; }
  .domains .sec-side { position: static; }
  .dom-list { grid-column: 1 / -1; margin-top: 40px; }
  .env-copy { grid-column: 1 / -1; padding-top: 0; }
  .env-table, .tree { grid-column: 1 / -1; }
  .steps li { grid-column: span 6; }
  .proof-l, .proof-q, .proof-c, .proof-m { grid-column: 1 / -1; }
  .sell-lede { grid-column: 1 / span 8; grid-row: auto; }
}
@media (max-width: 760px) {
  .hero-meta .meta:first-child { grid-column: 1 / -1; }
  .hero-count { grid-column: 1 / -1; text-align: left; margin-top: 6px; }
  .hero-aside { grid-column: 1 / -1; margin-top: 28px; padding-top: 0; }
  .sell-h, .sell-lede, .close-t, .close-ctas { grid-column: 1 / -1; }
  .close-ctas { justify-content: flex-start; }
  .sell-card { grid-column: 1 / -1; }
  .steps li { grid-column: 1 / -1; }
  .steps h3 { margin-top: 14px; }
  .dom-a { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .dom-c { grid-column: 2 / -1; grid-row: auto; text-align: left; }
  .dom-ics { display: none; }
}

@media (max-width: 760px) {
  .env-table thead { display: none; }
  .env-table table, .env-table tbody { display: block; }
  .env-table tr { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 8px 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .env-table td { display: block; padding: 0; border: 0; }
  .env-table td:first-child { grid-column: 1 / -1; font-size: 16px; }
  .env-table td.r::after { content: " tasks"; }
  .env-table td:nth-child(4) { grid-column: 1 / -1; grid-row: 3; color: var(--muted); font-size: 13.5px; }
  .env-table td:nth-child(5) { justify-self: end; }
}
