/* Solofounders
   Layout: one blue field. Words sit in a narrow left column; each figure takes the rest.
   Grammar: white square = organizational weight. White line = machine intelligence.
            Yellow dot = a human. Yellow appears nowhere else. */

:root {
  --field: #1b2bd0;
  --deep: #1423a8;
  --line: #ffffff;
  --mist: rgba(255, 255, 255, .66);
  --hair: rgba(255, 255, 255, .3);
  --sun: #ffd426;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --voice: "Newsreader", "Iowan Old Style", Georgia, serif;

  --gut: max(20px, 5vw);
  --ease: cubic-bezier(.6, 0, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--field);
  color: var(--line);
  font-family: var(--voice);
  font-size: 1.125rem;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, p, ul, ol, dl, dd, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: var(--sun); color: var(--field); }

:focus-visible { outline: 2px solid var(--sun); outline-offset: 4px; }

/* ── type ── */

h1, h2 {
  font-family: var(--display);
  font-weight: 200;
  letter-spacing: -.03em;
  line-height: 1;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 5.25rem); }
h2 { font-size: clamp(2.25rem, 4.3vw, 4.25rem); }

.heavy { font-weight: 900; font-stretch: 122%; letter-spacing: -.02em; }

.tag {
  font-family: var(--display);
  font-size: .72rem;
  font-weight: 600;
  font-stretch: 88%;
  letter-spacing: .16em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--mist);
}
.tag b { color: var(--line); font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; }

.voice { font-size: clamp(1.1rem, 1.35vw, 1.3rem); line-height: 1.45; max-width: 30em; }
.aside { font-size: .98rem; font-style: italic; color: var(--mist); max-width: 28em; }
.cap { font-style: italic; font-size: 1.1rem; line-height: 1.4; color: var(--line); max-width: 34em; min-height: 3.1em; }

.text-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--display); font-size: .78rem; font-weight: 600; font-stretch: 88%;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--mist); text-decoration: underline; text-underline-offset: .35em; text-decoration-thickness: 1px;
}
.text-btn:hover { color: var(--line); }

/* ── masthead ── */

.mast {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .9rem var(--gut) 1.5rem;
  padding-top: calc(.9rem + env(safe-area-inset-top, 0px));
  background: linear-gradient(var(--field) 68%, rgba(27, 43, 208, 0));
  pointer-events: none;
}
.mast a { pointer-events: auto; text-decoration: none; }
/* same proportions as the lockup files in brand/: mark 2.1em, gap .42em */
.mark { display: inline-flex; align-items: center; gap: .42em; font-family: var(--display); font-weight: 700; font-stretch: 112%; font-size: 1.4rem; letter-spacing: -.02em; line-height: 1; }
.mark-sign { width: 2.1em; height: 2.1em; flex: none; overflow: visible; }
@media (max-width: 620px) { .mark { font-size: 1.2rem; } }
.mark-o { display: inline-block; width: .66em; height: .66em; vertical-align: -.045em; margin: 0 .03em 0 .025em; overflow: visible; }
.mark .sun { fill: var(--sun); }
.mast nav { display: flex; gap: 1.6rem; }
.mast nav a {
  font-family: var(--display); font-size: .72rem; font-weight: 600; font-stretch: 88%;
  letter-spacing: .16em; text-transform: uppercase; color: var(--mist);
}
.mast nav a:hover { color: var(--line); }
@media (max-width: 620px) { .mast nav { display: none; } }

/* ── hero: the transfer ── */

.hero {
  position: relative;
  min-height: max(100svh, 680px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: 7rem var(--gut) 2rem;
  touch-action: pan-y;
  overflow: hidden;
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-copy { position: relative; pointer-events: none; display: grid; gap: 1.4rem; max-width: min(36rem, 40vw); }
.hero-copy .voice { max-width: 24em; }

.tally { position: relative; pointer-events: none; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 3rem; }
.tally p { display: grid; gap: .3rem; }
.tally b {
  font-family: var(--display); font-weight: 200; font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.tally .tally-end { display: none; align-self: center; gap: .5rem; }
.tally .tally-end .text-btn { pointer-events: auto; justify-self: start; }
.hero.is-full .tally-end { display: grid; }

@media (max-width: 760px) {
  .hero { min-height: max(100svh, 780px); padding-top: 5.5rem; }
  .hero-copy { max-width: none; gap: 1rem; }
  .tally { gap: .8rem 2rem; }
}

/* ── plates ── */

.plate {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  padding: clamp(5rem, 11vw, 10rem) var(--gut) 0;
  scroll-margin-top: 1rem;
}
.plate-text { display: grid; gap: 1.5rem; position: sticky; top: 6.5rem; }
.plate-fig { display: grid; gap: 1.5rem; min-width: 0; }

@media (max-width: 900px) {
  .plate { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .plate-text { position: static; gap: 1.1rem; }
}

.fig { display: block; width: 100%; height: clamp(340px, 42vw, 520px); }
.fig-low { height: clamp(250px, 26vw, 330px); }

/* ── controls ── */

.control { display: grid; gap: .9rem; }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 44px; margin: 0; background: transparent; cursor: ew-resize;
}
input[type="range"]::-webkit-slider-runnable-track { height: 1px; background: var(--line); }
input[type="range"]::-moz-range-track { height: 1px; background: var(--line); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; margin-top: -13px;
  background: var(--line); border: 0; border-radius: 0;
  box-shadow: 0 0 0 7px var(--field);
  transition: transform .2s var(--ease);
}
input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px; background: var(--line); border: 0; border-radius: 0;
  box-shadow: 0 0 0 7px var(--field);
}
input[type="range"]:hover::-webkit-slider-thumb,
input[type="range"]:active::-webkit-slider-thumb { transform: rotate(45deg); }

.btn {
  font-family: var(--display); font-size: .8rem; font-weight: 700; font-stretch: 92%;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .95rem 1.4rem; min-height: 44px;
  background: transparent; color: var(--line); border: 1px solid var(--line); border-radius: 0; cursor: pointer;
  transition: background .2s, color .2s, opacity .2s;
}
.btn.solid { background: var(--line); color: var(--field); }
.btn:hover:not(:disabled) { background: var(--sun); border-color: var(--sun); color: var(--field); }
.btn:disabled { opacity: .35; cursor: default; }

.counts { display: flex; flex-wrap: wrap; gap: 1rem 3rem; }
.counts div { display: grid; gap: .3rem; }
.counts dd {
  font-family: var(--display); font-weight: 200; font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}

/* ── the wall ── */

.wall-words {
  display: grid;
  font-family: var(--display); font-weight: 100; letter-spacing: -.04em; line-height: .95;
  font-size: clamp(3rem, 9vw, 8.5rem);
}
.wall-words span { grid-area: 1 / 1; }
#word-opp { opacity: 0; }

/* ── the company ── */

#company { grid-template-columns: minmax(0, 4fr) minmax(0, 9fr); }
.sys { grid-template-columns: minmax(0, 1fr) 12.5rem; align-items: center; gap: 2rem; }
#sys-svg { width: 100%; height: auto; display: block; max-width: 620px; overflow: visible; }
.sys-side { display: grid; gap: 1.5rem; min-width: 0; }
@media (max-width: 1100px) { .sys { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { #company { grid-template-columns: minmax(0, 1fr); } }

.sq {
  fill: var(--line);
  transform: rotate(var(--a)) translate(var(--r));
  transition: transform .75s var(--ease) var(--d), opacity .5s ease var(--d);
}
.sector.on .sq { transform: rotate(var(--a)) translate(100px) scale(.2); opacity: 0; }
.sector.core.on .sq { transform: rotate(var(--a)) translate(0px) scale(.2); }
.sector .hit { fill: transparent; cursor: pointer; }
.sector:not(.on).hot .sq, .sector:not(.on):hover .sq { fill: var(--sun); transition-delay: 0s; }
.sector.core:not(.on).hot .sq, .sector.core:not(.on):hover .sq { fill: var(--line); }

.arc {
  fill: none; stroke: var(--line); stroke-width: 1.5;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset .8s var(--ease) .25s, stroke-width .2s;
}
.sector.on .arc { stroke-dashoffset: 0; }
.sector.on.hot .arc, .sector.on:hover .arc { stroke-width: 4; }
.sector.core .arc { stroke: var(--sun); }

.agent { opacity: 0; transition: opacity .4s; animation: sweep var(--dur) ease-in-out infinite alternate; }
.agent circle { fill: var(--line); }
.sector.on .agent { opacity: 1; transition-delay: .9s; }
@keyframes sweep { from { transform: rotate(var(--a0)); } to { transform: rotate(var(--a1)); } }

.spec { opacity: 0; transition: opacity .5s; }
.spec line { stroke: var(--line); stroke-width: 1; }
.spec circle { fill: var(--field); stroke: var(--sun); stroke-width: 1.5; }
.sector.on .spec { opacity: 1; transition-delay: .9s; }

.me { fill: var(--sun); }
.me-ring { fill: none; stroke: var(--sun); stroke-width: 1.5; opacity: 0; transform: scale(.4); transition: opacity .5s .5s, transform .7s var(--ease) .5s; }
.has-core .me-ring { opacity: 1; transform: scale(1); }
.guide { fill: none; stroke: var(--hair); stroke-width: 1; stroke-dasharray: 1 7; }

.sys-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: 0 1.5rem; }
.sys-list button {
  display: grid; grid-template-columns: 1.4rem 1fr; align-items: center; column-gap: .3rem;
  width: 100%; min-height: 44px; padding: .35rem 0;
  background: none; border: 0; text-align: left; cursor: pointer;
}
.sys-list .nm { font-family: var(--display); font-weight: 500; font-size: 1rem; line-height: 1.15; }
.sys-list .ct { grid-column: 2; font-size: .9rem; font-style: italic; color: var(--mist); line-height: 1.2; }
.sys-list .glyph { width: 11px; height: 11px; background: var(--line); grid-row: 1 / span 2; transition: height .4s var(--ease), width .4s var(--ease), background .3s; }
.sys-list button[aria-pressed="true"] .glyph { height: 1.5px; width: 16px; }
.sys-list button.core[aria-pressed="true"] .glyph { height: 9px; width: 9px; border-radius: 50%; background: var(--sun); }
.sys-list button:hover .nm, .sys-list button:focus-visible .nm { text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }

/* ── the layer ── */

.stack { position: relative; height: 390px; --base: 92px; }
.fn {
  position: absolute; bottom: var(--base);
  left: calc(var(--i) * 20.5%); width: 18%; height: var(--h);
  border: 1px solid var(--hair);
  transform: translateY(var(--o));
  transition: transform .8s var(--ease), border-color .6s;
  overflow: hidden;
}
.fn::before {                 /* each island's own little footing */
  content: ""; position: absolute; left: -1px; right: -1px; bottom: -1px; height: 1px; background: var(--mist);
}
.fn::after {                  /* current rising from the layer */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(to top, transparent 0 17px, rgba(255, 255, 255, .5) 17px 18px);
  opacity: 0; transition: opacity .6s .5s;
  animation: rise 1.4s linear infinite;
}
@keyframes rise { to { background-position: 0 -18px; } }
.fn span {
  position: absolute; left: .55rem; top: .5rem; z-index: 1;
  font-family: var(--display); font-size: .72rem; font-weight: 600; font-stretch: 88%;
  letter-spacing: .14em; text-transform: uppercase; color: var(--mist);
  transition: color .5s;
}
@media (max-width: 620px) { .fn span { writing-mode: vertical-rl; left: .35rem; } }

.stack[data-state="layer"] .fn { transform: none; border-color: var(--line); }
.stack[data-state="layer"] .fn::after { opacity: 1; }
.stack[data-state="layer"] .fn span { color: var(--line); }

.ai {
  position: absolute; z-index: 2;
  left: calc(20.5% + 18% - 2.4rem); bottom: calc(var(--base) + 210px + 12px - 6px);
  width: 4.6rem; height: 2.5rem;
  transform: rotate(-9deg);
  background: var(--line); color: var(--field); border: 0; border-radius: 0; padding: 0;
  font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: 1rem; letter-spacing: .02em;
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  transition: left .8s var(--ease), bottom .8s var(--ease), width .8s var(--ease), height .8s var(--ease), transform .8s var(--ease);
  overflow: hidden; white-space: nowrap;
}
.ai.drag { cursor: grabbing; transition: none; }
.ai-long { display: none; font-size: .78rem; font-weight: 700; font-stretch: 92%; letter-spacing: .16em; text-transform: uppercase; }
.stack[data-state="layer"] .ai { left: 0; bottom: calc(var(--base) - 3.2rem); width: 100%; height: 3.2rem; transform: none; }
.stack[data-state="layer"] .ai-short { display: none; }
.stack[data-state="layer"] .ai-long { display: inline; }

.hint {
  position: absolute; left: calc(20.5% + 18% + 2.8rem); bottom: calc(var(--base) + 210px + 18px);
  transition: opacity .3s; white-space: nowrap;
}
.hint::before { content: "↓ "; }
.stack[data-state="layer"] .hint { opacity: 0; }
@media (max-width: 620px) { .hint { left: auto; right: 0; } }

/* ── the loop ── */

.lever { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.lever legend { float: left; margin-right: .6rem; padding: 0; }
.lever label { position: relative; cursor: pointer; }
.lever input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.lever span {
  display: grid; place-items: center; min-width: 3.6rem; min-height: 44px; padding: 0 .8rem;
  border: 1px solid var(--hair);
  font-family: var(--display); font-weight: 300; font-size: 1.15rem; font-variant-numeric: tabular-nums;
  transition: background .2s, color .2s, border-color .2s;
}
.lever input:checked + span { background: var(--line); color: var(--field); border-color: var(--line); font-weight: 700; }
.lever input:focus-visible + span { outline: 2px solid var(--sun); outline-offset: 3px; }

.decide { display: grid; gap: .9rem; }
.question {
  font-family: var(--display); font-weight: 300; font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  line-height: 1.12; letter-spacing: -.015em; min-height: 2.3em; max-width: 22em; text-wrap: balance;
}
.decide-btns { display: flex; flex-wrap: wrap; gap: .7rem; }
.counts.wide { gap: 1rem 4rem; }

/* ── scale ── */

.scale { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 4vw, 4rem); --t: .6; }
.scale .cap { grid-column: 1 / -1; }
@media (max-width: 620px) { .scale { grid-template-columns: minmax(0, 1fr); } }

.scale-col { display: grid; gap: .4rem; container-type: inline-size; min-width: 0; }
.word-box { height: 26cqi; display: flex; align-items: flex-end; }
.word {
  display: block; font-family: var(--display); line-height: .74; letter-spacing: -.04em;
  font-weight: 100; font-stretch: 100%;
  font-size: calc(1.4rem + var(--t) * (30cqi - 1.4rem));
  transform-origin: left bottom; white-space: nowrap;
  will-change: font-size;
}
.floor { display: block; width: 100%; height: 80px; overflow: visible; }
.floor.flat { height: 28px; }
.floor path { fill: none; stroke: var(--line); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.people { font-family: var(--display); font-weight: 200; font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.people span { font-family: var(--voice); font-style: italic; font-size: 1.05rem; letter-spacing: 0; color: var(--mist); }

/* ── proof ── */

.ones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.5rem; }
.ones li { display: grid; gap: 1.1rem; justify-items: start; }
.ones i { display: block; width: clamp(64px, 9vw, 120px); aspect-ratio: 1; border: 1.5px dashed var(--line); border-radius: 50%; }
.ones span { font-family: var(--display); font-weight: 300; font-size: clamp(1.1rem, 1.6vw, 1.4rem); line-height: 1.15; }
@media (max-width: 620px) { .ones { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── statement ── */

.close { padding: clamp(7rem, 16vw, 14rem) var(--gut) clamp(4rem, 8vw, 7rem); display: grid; gap: clamp(3rem, 7vw, 6rem); }
.statement {
  font-family: var(--display); font-weight: 200; letter-spacing: -.03em; line-height: 1.02;
  font-size: clamp(2.1rem, 5.6vw, 5.6rem); max-width: 17em; text-wrap: balance;
}
.define { display: grid; gap: 1rem; max-width: 36rem; margin-left: auto; }
.define p:not(.tag) { font-size: 1.1rem; }

/* ── colophon: who stands behind it ── */

.foot {
  display: grid; gap: clamp(3rem, 6vw, 4.5rem);
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--gut) calc(2rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--hair);
  scroll-margin-top: 4rem;
}
.foot a { text-decoration: none; }

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1.1fr) auto;
  gap: 2.5rem clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.foot-item { display: grid; gap: .7rem; align-content: start; min-width: 0; }
.foot-item > p:not(.tag) { font-size: 1rem; line-height: 1.45; }
.foot-big {
  font-family: var(--display); font-weight: 300; letter-spacing: -.015em; line-height: 1.1;
  font-size: clamp(1.25rem, 1.9vw, 1.65rem); overflow-wrap: anywhere;
  justify-self: start;
  background: linear-gradient(var(--line), var(--line)) 0 100% / 0 1px no-repeat;
  transition: background-size .45s var(--ease);
}
.foot-big:hover, .foot-big:focus-visible { background-size: 100% 1px; }
.foot-note { font-size: .95rem; font-style: italic; color: var(--mist); }
.foot-link {
  justify-self: start;
  font-family: var(--display); font-size: .74rem; font-weight: 600; font-stretch: 88%;
  letter-spacing: .14em; text-transform: uppercase; color: var(--line);
  border-bottom: 1px solid var(--hair); padding-bottom: .2em;
  transition: border-color .2s;
}
.foot-link::after { content: " ↗"; }
a.foot-link:hover, .seal:hover .foot-link { border-color: var(--line); }

.seal { display: grid; justify-items: start; gap: 1rem; max-width: 15rem; }
.seal svg { width: 120px; height: 120px; display: block; overflow: visible; }
.seal-rim { fill: none; stroke: var(--hair); stroke-width: 1; }
.seal-ring { fill: none; stroke: var(--sun); stroke-width: 1.25; }
.seal-dot { fill: var(--sun); }
.seal text {
  fill: var(--line); font-family: var(--display); font-size: 8.4px; font-weight: 600; font-stretch: 90%;
}
.seal-turn { transform-origin: 60px 60px; transition: transform 1.6s var(--ease); }
.seal:hover .seal-turn, .seal:focus-visible .seal-turn { transform: rotate(-120deg); }
.seal-text { display: grid; gap: .5rem; font-size: .95rem; line-height: 1.4; color: var(--mist); }
.seal-text b { color: var(--line); font-family: var(--display); font-weight: 600; }

.foot-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem;
  font-family: var(--display); font-size: .72rem; font-weight: 600; font-stretch: 88%;
  letter-spacing: .16em; text-transform: uppercase; color: var(--mist);
}

@media (max-width: 1100px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}

.noscript { padding: 1rem var(--gut); font-style: italic; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
