/* Layout glue for the Wollenberg site. All visual values come from the brand kit's
   --wb-* tokens (loaded via ../styles.css). Dark is the kit's default theme, so :root
   already carries the dark values — no theme wrapper needed. */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--wb-bg);
  color: var(--wb-text);
  font-family: var(--wb-font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection { background: var(--wb-accent); color: var(--wb-accent-ink); }

a { color: inherit; }

/* ---- stage ---- */
#root { position: relative; }

/* the integrated network sits in document flow space, pinned behind content */
.wb-net-layer {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}
.wb-content { position: relative; z-index: 1; }

.wb-net-svg { position: absolute; top: 0; left: 0; }
.wb-net-link__ring { transition: opacity 0.25s var(--wb-ease-out); }
.wb-net-link:hover .wb-net-link__ring, .wb-net-link:focus .wb-net-link__ring { opacity: 0.7; }
.wb-net-head { transition: transform 0.45s var(--wb-ease-out); }
@media (prefers-reduced-motion: no-preference) {
  .wb-net-head > circle:first-child { animation: wb-head-pulse 3.4s var(--wb-ease-out) infinite; transform-origin: center; }
}
@keyframes wb-head-pulse { 0%,100% { opacity: 0.10; r: 16px; } 50% { opacity: 0.04; r: 22px; } }

/* horizontal rhythm — content holds a left bias so the network breathes on the right */
.wb-shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 64px);
}

/* ---- nav ---- */
.wb-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: color-mix(in oklab, var(--wb-bg) 78%, transparent);
  border-bottom: 1px solid var(--wb-border);
}
.wb-nav-wrap .wb-shell { padding-block: 14px; }

/* ---- section scaffold ---- */
.wb-act {
  position: relative;
  padding-block: clamp(96px, 16vh, 200px);
}
.wb-act--tall { min-height: 100vh; display: flex; align-items: center; }
.wb-act--end { padding-bottom: 0; } /* footer is flush to the bottom of the site */

.wb-eyebrow {
  font-family: var(--wb-font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wb-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.wb-eyebrow__num { color: var(--wb-accent); }

/* the dot marker that anchors a section to the network */
.wb-anchor {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--wb-node);
  vertical-align: middle;
}

/* ---- display type ---- */
.wb-display {
  font-family: var(--wb-font-display);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--wb-text);
  text-wrap: balance;
  margin: 0;
}
.wb-display--xl { font-size: clamp(48px, 9vw, 132px); }
.wb-display--l  { font-size: clamp(36px, 6vw, 84px); }
.wb-display--m  { font-size: clamp(28px, 4vw, 52px); }

.wb-lede {
  font-size: clamp(19px, 2.1vw, 26px);
  line-height: 1.45;
  color: var(--wb-text);
  max-width: 22ch;
  text-wrap: pretty;
}
.wb-body { color: var(--wb-muted); line-height: 1.6; text-wrap: pretty; }

.wb-mono {
  font-family: var(--wb-font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--wb-muted);
}

/* ---- Act 1: boot ---- */
.wb-boot {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--wb-bg);
  display: grid;
  place-items: center;
  transition: opacity 0.7s var(--wb-ease-out), visibility 0.7s;
}
.wb-boot[data-done="true"] { opacity: 0; visibility: hidden; pointer-events: none; }
.wb-boot__inner {
  font-family: var(--wb-font-mono);
  font-size: clamp(12px, 1.4vw, 15px);
  line-height: 1.9;
  width: min(560px, 86vw);
  color: var(--wb-muted);
}
.wb-boot__line { display: flex; gap: 12px; opacity: 0; transform: translateY(4px); }
.wb-boot__line[data-in="true"] { opacity: 1; transform: none; transition: opacity .35s, transform .35s var(--wb-ease-out); }
.wb-boot__line:last-child { color: var(--wb-accent); }
.wb-boot__caret { color: var(--wb-accent); }
@media (prefers-reduced-motion: no-preference) {
  .wb-boot__line:last-child[data-in="true"] .wb-boot__caret { animation: wb-blink 1s steps(1) infinite; }
}
@keyframes wb-blink { 50% { opacity: 0.2; } }

/* ---- hero ---- */
.wb-hero { display: grid; grid-template-columns: 1.15fr 0.65fr; gap: clamp(24px, 6vw, 80px); align-items: center; }
.wb-hero__plate { position: relative; min-height: 320px; display: grid; place-items: center; }
.wb-hero__formation-anchor { display: block; width: 1px; height: 1px; }
.wb-hero__roles { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 26px; }
.wb-hero__role { font-family: var(--wb-font-mono); font-size: 12px; letter-spacing: 0.16em; color: var(--wb-muted); }
.wb-hero__role::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--wb-accent); margin-right: 8px; vertical-align: middle; }
.wb-hero__lede { margin-top: 40px; }
.wb-hero__subline { margin-top: 18px; font-family: var(--wb-font-mono); font-size: 13px; line-height: 1.6; letter-spacing: 0.01em; color: var(--wb-muted); max-width: 40ch; }
.wb-hero__cta { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-top: 44px; }
.wb-hero__scroll { font-family: var(--wb-font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--wb-muted); text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.wb-hero__scroll i { display: block; width: 1px; height: 34px; background: linear-gradient(var(--wb-accent), transparent); }

/* ---- Act 2: the node — live readouts ---- */
.wb-node__grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.wb-node__gutter-anchor { position: absolute; right: -30px; top: 7%; width: 1px; height: 1px; }
.wb-node__gutter-anchor--exit { top: auto; bottom: -5%; }
.wb-readouts { display: grid; gap: 0; border-top: 1px solid var(--wb-line); }
.wb-readout { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--wb-line); align-items: start; }
.wb-readout__k { font-family: var(--wb-font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--wb-muted); }
.wb-readout__v { font-size: 18px; color: var(--wb-text); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wb-chiprow { display: flex; flex-wrap: wrap; gap: 8px; }
.wb-stackgroups { display: grid; gap: 16px; width: 100%; }
.wb-stackgroup { display: grid; gap: 8px; }
.wb-stackgroup__area { font-family: var(--wb-font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wb-accent); }
.wb-chip { font-family: var(--wb-font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--wb-muted); background: var(--wb-bg2); border: 1px solid var(--wb-border); border-radius: var(--wb-radius-sm); padding: 6px 11px; }

/* credentials: two trainings as a stepped progression (bench → data) */
.wb-creds { display: grid; gap: 14px; width: 100%; }
.wb-cred { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; position: relative; }
.wb-cred:first-child::after { content: ''; position: absolute; left: 13px; top: 24px; bottom: -16px; width: 1px; background: var(--wb-line); }
.wb-cred__step { font-family: var(--wb-font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--wb-accent); border: 1px solid var(--wb-border); border-radius: 50%; width: 26px; height: 26px; display: grid; place-items: center; }
.wb-cred__body { display: flex; flex-direction: column; gap: 2px; }
.wb-cred__title { font-size: 15px; color: var(--wb-text); line-height: 1.25; }
.wb-cred__sub { font-family: var(--wb-font-mono); font-size: 11px; letter-spacing: 0.02em; color: var(--wb-muted); }

/* ---- Act 3: systems as ports/waypoints ---- */
.wb-systems { display: grid; gap: 0; border-top: 1px solid var(--wb-line); }
.wb-port {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: clamp(20px, 4vw, 64px);
  align-items: center;
  padding: clamp(34px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--wb-line);
  text-decoration: none;
  color: inherit;
  transition: padding-left .5s var(--wb-ease-out), background .4s;
}
.wb-port:hover, .wb-port[data-active="true"] { padding-left: 16px; }
.wb-port__index { font-family: var(--wb-font-mono); font-size: 13px; letter-spacing: 0.1em; color: var(--wb-muted); transition: color .3s; }
.wb-port[data-active="true"] .wb-port__index, .wb-port:hover .wb-port__index { color: var(--wb-accent); }
.wb-port__name { font-family: var(--wb-font-display); font-weight: 600; font-size: clamp(30px, 4.4vw, 58px); line-height: 1; letter-spacing: -0.01em; }
.wb-port__prop { margin-top: 12px; color: var(--wb-muted); max-width: 52ch; line-height: 1.55; }
.wb-port__go { font-family: var(--wb-font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wb-muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; transition: color .3s, transform .4s var(--wb-ease-out); }
.wb-port:hover .wb-port__go { color: var(--wb-accent); transform: translateX(6px); }
.wb-port__host { display: block; font-family: var(--wb-font-mono); font-size: 11px; color: var(--wb-muted); margin-top: 8px; opacity: 0.7; }

/* the seam where a port meets the network spine */
.wb-port__seam { position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--wb-accent); transform: scaleY(0); transform-origin: top; transition: transform .5s var(--wb-ease-out); }
.wb-port[data-active="true"] .wb-port__seam, .wb-port:hover .wb-port__seam { transform: scaleY(1); }

/* ---- Act 4: handoff ---- */
.wb-handoff__head { max-width: 16ch; }
.wb-handoff__io { margin-top: 56px; border-top: 1px solid var(--wb-line); }
.wb-handoff__invite { margin-top: 18px; font-family: var(--wb-font-mono); font-size: 13px; letter-spacing: 0.02em; color: var(--wb-accent); }
.wb-handoff__cta { margin-top: 56px; display: flex; justify-content: flex-end; }
.wb-handoff__buttons { position: relative; display: inline-flex; gap: 22px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.wb-handoff__btnwrap { position: relative; display: inline-flex; }
.wb-handoff__plug { position: absolute; top: -8px; left: 50%; width: 1px; height: 1px; }
.wb-btn-outline {
  display: inline-flex; align-items: center;
  font-family: var(--wb-font-body); font-size: 15px; font-weight: 500;
  color: var(--wb-text); text-decoration: none;
  padding: 14px 24px;
  border: 1px solid var(--wb-border);
  border-radius: var(--wb-radius-md);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.wb-btn-outline:hover { border-color: var(--wb-accent); color: var(--wb-accent); }
.wb-handoff__split { position: absolute; top: -34px; left: 50%; width: 1px; height: 1px; }
.wb-footer { margin-top: clamp(80px, 14vh, 160px); padding-block: 40px; border-top: 1px solid var(--wb-border); display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.wb-footer__sig { font-family: var(--wb-font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--wb-muted); text-transform: uppercase; }

/* ---- entrance: sections rise as they enter, but base state is visible (print/reduced-motion safe) ---- */
.wb-reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .wb-reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--wb-ease-out), transform .8s var(--wb-ease-out); }
  .wb-reveal[data-in="true"] { opacity: 1; transform: none; }
}

/* ---- responsive ---- */
@media (max-width: 860px) {
  .wb-node__grid { grid-template-columns: 1fr; }
  .wb-readout { grid-template-columns: 110px 1fr; }
  .wb-port { grid-template-columns: 56px 1fr; }
  .wb-port__go { grid-column: 2; justify-self: start; margin-top: 14px; }
  .wb-lede { max-width: none; }
  .wb-hero { grid-template-columns: 1fr; }
  .wb-hero__plate { min-height: 200px; order: 2; }
  .wb-node__gutter-anchor { right: 6px; }
  .wb-node__gutter-anchor--exit { right: 6px; }
  .wb-nav__links { flex-wrap: wrap; justify-content: flex-end; }
  .wb-footer { margin-top: 72px; padding-block: 32px; }
}

.wb-noscript { padding: 24px; font-family: var(--wb-font-body); color: var(--wb-text); }
