/* Homepage. Layers on brand, scene and site styles. See DESIGN.md. */
html, body { height: auto; overflow: visible; }
body { overflow-x: clip; }
.nav { position: fixed; top: 0; left: 0; right: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 60; padding: 10px 16px; background: var(--paper); color: #1b1c1b; border-radius: 999px; font-size: 15px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
canvas.orb { width: min(78vh, 46vw); height: min(78vh, 46vw); left: 77%; top: 53%; transform: translate(-50%, -50%); }

/* ---------- hero ---------- */
.h-hero { position: relative; z-index: 4; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 104px 0 72px; }
.h-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(27,28,27,.97) 0%, rgba(27,28,27,.92) 40%, rgba(27,28,27,0) 60%), linear-gradient(0deg, var(--charcoal) 0%, rgba(27,28,27,0) 22%); }
.h-hero > .wrap { width: 100%; }
.h-copy { max-width: min(640px, 50vw); }
.h-copy h1 { font-size: clamp(42px, 5.3vw, 78px); line-height: 1.02; letter-spacing: -.035em; font-weight: 400; color: var(--paper); }
.h-copy h1 span { display: block; }
.h-copy h1 i { display: block; font-family: var(--serif); font-size: 1.1em; letter-spacing: -.015em; line-height: 1; color: var(--accent); }
:lang(de) .h-copy h1 { font-size: clamp(36px, 4.5vw, 66px); }
.h-sub { margin-top: 26px; max-width: 34em; font-size: clamp(17px, 1.45vw, 21px); font-weight: 300; line-height: 1.45; color: rgba(241,241,236,.8); }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 44px; max-width: 620px; }
.door { display: block; padding-top: 14px; border-top: 1px solid rgba(241,241,236,.34); text-decoration: none; color: inherit; transition: border-color .2s; }
.door b { display: flex; justify-content: space-between; font-weight: 500; font-size: 19px; color: var(--paper); }
.door b span { color: var(--accent); transition: transform .2s; }
.door small { display: block; margin-top: 5px; font-size: 15px; line-height: 1.35; color: rgba(241,241,236,.68); }
.door:hover { border-color: var(--accent); }
.door:hover b span { transform: translateX(4px); }
.h-loc { position: absolute; right: 28px; bottom: 22px; font: 400 12px var(--mono); color: rgba(241,241,236,.5); }

/* ---------- everything after the hero slides over the scene ---------- */
.h-after { position: relative; z-index: 5; background: var(--charcoal); }
.h-sec { padding: clamp(84px, 11vw, 148px) 0; }
.h-sec + .h-sec { border-top: 1px solid var(--line); }
.h-sec h2 { font-size: clamp(34px, 4vw, 56px); line-height: 1.06; letter-spacing: -.03em; font-weight: 400; color: var(--paper); }

/* facts: a statement in running text, numbers in the accent */
.h-facts { display: grid; grid-template-columns: 4fr 7fr; gap: 56px; align-items: start; }
.h-facts h2 { font-family: var(--serif); font-style: italic; letter-spacing: -.015em; font-size: clamp(38px, 4.6vw, 64px); line-height: 1.02; }
.h-facts p { font-size: clamp(21px, 2.1vw, 30px); line-height: 1.32; letter-spacing: -.015em; font-weight: 300; color: rgba(241,241,236,.82); }
.h-facts p + p { margin-top: 22px; }
.h-facts a { color: inherit; text-decoration: underline; text-decoration-color: rgba(241,241,236,.3); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.h-facts a:hover { text-decoration-color: var(--accent); }
.h-facts b { font-weight: 400; color: var(--accent); }

/* network: the part you can click */
.h-net { background: radial-gradient(70% 90% at 80% 50%, rgba(23,73,61,.5), transparent 70%), var(--charcoal); }
.h-net-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 48px; align-items: center; }
.h-net-intro { margin-top: 16px; font-size: 17px; font-weight: 300; color: rgba(241,241,236,.75); max-width: 30em; }
.traces { margin-top: 26px; display: grid; gap: 4px; }
.trace { display: block; width: 100%; padding: 13px 14px; text-align: left; font: inherit; color: inherit; background: none; border: 1px solid transparent; border-radius: 12px; cursor: pointer; transition: background .2s, border-color .2s; }
.trace:hover { background: rgba(241,241,236,.05); }
.trace[aria-pressed="true"] { background: rgba(168,212,106,.09); border-color: rgba(168,212,106,.42); }
.trace .t1 { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 17px; font-weight: 500; color: var(--paper); }
.trace .t1 em { font-style: normal; font-size: 13.5px; font-weight: 400; color: rgba(241,241,236,.62); white-space: nowrap; }
.trace .t2 { display: block; margin-top: 3px; font-size: 15px; line-height: 1.38; color: rgba(241,241,236,.68); }
.trace .str { color: var(--accent); }
.h-net figure { margin: 0; }
.h-net svg { display: block; width: 100%; height: auto; }
.h-net figcaption { margin-top: 12px; font-size: 13.5px; color: rgba(241,241,236,.55); }
.h-net .more { display: inline-block; margin-top: 20px; font-size: 16px; color: var(--accent); text-underline-offset: 3px; }
.net .l { stroke: rgba(241,241,236,.2); stroke-width: 1; transition: opacity .3s, stroke .3s; }
.net .s { fill: #2a2c2a; stroke: rgba(241,241,236,.55); stroke-width: 1.2; transition: opacity .3s, fill .3s, stroke .3s; }
.net .s.me { fill: var(--accent); stroke: var(--paper); stroke-width: 1.6; }
.net .hb { fill: var(--accent); transition: opacity .3s; }
.net .hg { fill: var(--accent); opacity: .2; transition: opacity .3s; }
.net text { font: 500 10.5px var(--sans); fill: rgba(241,241,236,.85); transition: opacity .3s; }
.net[data-sel] .l, .net[data-sel] .s:not(.me), .net[data-sel] .hb, .net[data-sel] .hg, .net[data-sel] text { opacity: .13; }
.net[data-sel="0"] .h0, .net[data-sel="1"] .h1, .net[data-sel="2"] .h2 { opacity: 1 !important; }
.net[data-sel="0"] .hg.h0, .net[data-sel="1"] .hg.h1, .net[data-sel="2"] .hg.h2 { opacity: .3 !important; }
.net[data-sel="0"] .l.h0, .net[data-sel="1"] .l.h1, .net[data-sel="2"] .l.h2 { stroke: rgba(168,212,106,.75); }
.net[data-sel="0"] .s.h0:not(.me), .net[data-sel="1"] .s.h1:not(.me), .net[data-sel="2"] .s.h2:not(.me) { fill: #33401f; stroke: var(--accent); }

/* who it is for: two rows with the preview on alternating sides */
.h-for { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 7vw, 96px); align-items: center; }
.h-for + .h-for { margin-top: clamp(72px, 9vw, 120px); }
.h-for.flip > :first-child { order: 2; }
.h-for p { margin-top: 14px; font-size: 19px; font-weight: 300; line-height: 1.45; color: rgba(241,241,236,.78); max-width: 27em; }
.h-for .go { display: inline-block; margin-top: 20px; font-size: 17px; color: var(--accent); text-underline-offset: 3px; }
.h-for .mock .ex { color: rgba(241,241,236,.55); }
.h-for .mock .row { font-size: 14.5px; }

/* guides: a plain list */
.h-guides-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.h-guides-head a { color: var(--accent); font-size: 16px; text-underline-offset: 3px; }
.h-guide { display: grid; grid-template-columns: 5fr 6fr auto; gap: 24px; align-items: baseline; padding: 24px 0; border-top: 1px solid rgba(241,241,236,.16); text-decoration: none; color: inherit; }
.h-guide:last-child { border-bottom: 1px solid rgba(241,241,236,.16); }
.h-guide b { font-weight: 400; font-size: clamp(21px, 2vw, 28px); letter-spacing: -.02em; color: var(--paper); line-height: 1.15; transition: color .2s; }
.h-guide span { font-size: 16px; line-height: 1.4; color: rgba(241,241,236,.68); }
.h-guide em { font-style: normal; font-size: 14px; color: rgba(241,241,236,.55); white-space: nowrap; }
.h-guide:hover b { color: var(--accent); }

/* close: the one big logo on the page */
.h-close { position: relative; overflow: hidden; background: radial-gradient(60% 120% at 12% 100%, rgba(127,156,59,.3), transparent 70%), radial-gradient(60% 120% at 92% 0%, rgba(23,73,61,.65), transparent 70%), var(--charcoal); }
.h-close .wordmark { font-size: clamp(56px, 10.5vw, 150px); }
.h-close .tl { margin-top: 18px; font-family: var(--serif); font-style: italic; font-size: clamp(23px, 2.7vw, 36px); color: rgba(241,241,236,.85); line-height: 1.15; }
.h-close .act { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 36px; font-size: 15.5px; color: rgba(241,241,236,.68); }
.h-close .act a:not(.btn) { color: inherit; text-underline-offset: 3px; }
footer.site { background: var(--charcoal); position: relative; z-index: 5; }

/* ---------- smaller screens ---------- */
@media (max-width: 960px) {
  .h-facts, .h-net-grid, .h-for { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .h-for.flip > :first-child { order: 0; }
  .h-guide { grid-template-columns: minmax(0, 1fr) auto; }
  .h-guide span { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 760px) {
  canvas.orb { width: 74vw; height: 74vw; left: 50%; top: 27vh; }
  .h-hero { align-items: flex-end; padding: 44vh 0 40px; }
  .h-hero::before { background: linear-gradient(0deg, var(--charcoal) 0%, rgba(27,28,27,.96) 46%, rgba(27,28,27,0) 57%); }
  .h-copy { max-width: none; }
  .h-copy h1 { font-size: clamp(36px, 10.6vw, 56px); }
  :lang(de) .h-copy h1 { font-size: clamp(30px, 8.6vw, 48px); }
  .h-sub { margin-top: 18px; }
  .doors { margin-top: 28px; gap: 18px; }
  .door { min-height: 44px; }
  .door b { font-size: 16.5px; }
  .door small { font-size: 13.5px; }
  .h-loc { display: none; }
  .net text { font-size: 15px; }
}
@media (max-width: 400px) { .doors { grid-template-columns: minmax(0, 1fr); gap: 14px; } }
@media (prefers-reduced-motion: reduce) { .door, .trace, .net * { transition: none; } }

/* comfortable tap targets for text links */
.h-for .go, .h-net .more { padding: 11px 0; margin-top: 9px; }
