/* winzker.org */

@font-face {
  font-family: "Michroma";
  src: url("../fonts/michroma-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Host Grotesk";
  src: url("../fonts/host-grotesk-var.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #232323;
  --dark: #232323;
  --ink: #ffffff;
  --ink-2: #b6b4b0;
  --ink-3: #7d7b78;
  --rule: rgba(255, 255, 255, 0.13);
  --accent: #d96c2c;
  --accent-soft: #ff9e66;
  --pad: 35px;
  --gutter: 7vw;
  --f-logo: "Michroma", "Eurostile", sans-serif;
  --f-text: "Host Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  /* theme roles */
  --hud: #ffffff;               /* header, tagline, caret on the film */
  --hud-alt: #232323;           /* the same on the bright pattern phase */
  --chapter-ink: #ffffff;
  --ascii-ink: #f3f1ec;
  --ascii-digit: #d96c2c;
  --pill-bg: transparent; --pill-ink: #ffffff; --pill-border: #ffffff;
  --pill-hover-bg: #ffffff; --pill-hover-ink: #232323;
  --row-hover: linear-gradient(90deg, rgba(217, 108, 44, 0.13), rgba(217, 108, 44, 0) 70%);
  --veil-rgb: 35, 35, 35;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
  overflow-x: clip;
}
::selection { background: var(--accent); color: #fff; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* smooth scrolling (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- field canvas ---------- */
#field { display: none; }
.motion #field {
  display: block;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100lvh;
  z-index: 0;
}

/* ---------- HUD ---------- */
.hud { position: fixed; left: 0; width: 100%; z-index: 6; pointer-events: none; font-size: 18px; }
.hud a { pointer-events: auto; }
.hud-top { top: 0; display: flex; justify-content: space-between; align-items: center; }

.logo {
  display: block;
  padding: var(--pad);
  font-family: var(--f-logo);
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--hud);
  text-decoration: none;
  white-space: nowrap;
}
.logo-dark { position: relative; color: var(--hud-alt); opacity: 0; }
.logo-white { position: absolute; top: 0; left: 0; opacity: 0; }

.hud-right { position: relative; padding-right: var(--pad); text-align: right; }
.scroll-message { display: inline-block; opacity: 0; white-space: nowrap; }
.skip {
  position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%);
  white-space: nowrap; text-decoration: none; opacity: 0; visibility: hidden;
  font-size: 15px; color: var(--hud);
  transition: opacity 0.4s, color 0.3s;
}
.skip::after { content: ""; display: block; height: 1px; background: currentColor; transform-origin: left; transform: scaleX(0.35); transition: transform 0.45s var(--ease); }
.skip:hover::after { transform: scaleX(1); }
.skip.on { opacity: 0.85; visibility: visible; }
.skip.on.on-light { color: var(--hud-alt); }

.hud-bottom { bottom: 0; }
.tagline { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.tagline > span { padding: var(--pad); white-space: nowrap; }
.tagline .line {
  display: block;
  border-top: 2px solid currentColor;
  padding-left: 100px;
  margin-right: auto;
  margin-left: -28px;
}
.tagline-dark { color: var(--hud-alt); opacity: 0; }
.tagline-white { position: absolute; top: 0; left: 0; color: var(--hud); display: none; }

@media (max-width: 800px) {
  .hud, .hud .tagline { font-size: 16px; }
  .logo { font-size: 18px; }
}
@media (max-width: 600px) {
  :root { --pad: 22px; --gutter: 22px; }
  .logo { font-size: 15px; }
  .tagline { justify-content: center; }
  .tagline > span:first-child { padding-right: 0.3em; }
  .tagline > span:last-child { padding-left: 0; }
  .tagline .line { display: none; }
  .skip { font-size: 14px; }
}

/* ---------- cinematic stage ---------- */
.motion .static-hero { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:root:not(.motion) #stage { display: none; }

.portrait { margin: 0; }
.portrait-box { display: flex; align-items: center; justify-content: center; min-height: 0; }
.portrait canvas { display: block; }
.caption {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: center;
  margin-top: 18px;
  white-space: nowrap;
}
.kicker {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 26px;
}
.chapter-text { margin: 0; font-size: clamp(22px, 1.75vw, 30px); line-height: 1.4; color: var(--chapter-ink); font-weight: 400; }
/* the film splits lines into single letters; measuring without kerning keeps line widths identical afterwards */
.motion .chapter-text { font-kerning: none; font-variant-ligatures: none; }
.chapter-text .cl { white-space: nowrap; }
.chapter-text .caret { padding: 0.014em 0.2em; margin-left: 0.3em; background: var(--hud); }

.pill {
  display: inline-block;
  padding: 7px 20px 7px 27px;
  border: 1px solid var(--pill-border);
  border-radius: 150px;
  background: var(--pill-bg);
  color: var(--pill-ink);
  font-size: 12px;
  letter-spacing: 7.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.pill:hover { background: var(--pill-hover-bg); border-color: var(--pill-hover-bg); color: var(--pill-hover-ink); }

.motion .chapters { position: fixed; inset: 0; z-index: 3; pointer-events: none; visibility: hidden; overflow: hidden; }
.motion .chapter { position: absolute; inset: 0; }
.motion .chapter[data-chapter="2"] .portrait-box { visibility: hidden; }
.motion .chapter-text { opacity: 0; }
.motion .kicker, .motion .caption { opacity: 0; }
.motion .pill { position: absolute; pointer-events: auto; opacity: 0; transform: translateY(20px); }

@media (min-width: 900px) {
  .motion .portrait {
    position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%);
    width: 40vw; height: 70vh; display: flex; flex-direction: column;
  }
  .motion .portrait-box { flex: 1; }
  .motion .chapter-copy {
    position: absolute; left: 54vw; width: min(39vw, 600px); top: 50%; transform: translateY(-50%);
  }
  .motion .pill { left: 54vw; bottom: 13vh; }
}
@media (max-width: 899px) {
  .motion .portrait {
    position: absolute; left: var(--gutter); right: var(--gutter); top: 11svh; height: 36svh;
    display: flex; flex-direction: column;
  }
  .motion .portrait-box { flex: 1; }
  .motion .caption { margin-top: 10px; font-size: 10px; }
  .motion .chapter-copy { position: absolute; left: var(--gutter); right: var(--gutter); top: 52svh; }
  .motion .kicker { font-size: 10px; margin-bottom: 14px; }
  .motion .chapter-text { font-size: 17px; line-height: 1.42; }
  .motion .pill { left: 0; right: 0; margin-inline: auto; width: max-content; bottom: 9svh; font-size: 10px; letter-spacing: 5px; }
}

/* short phones (iPhone SE and similar) */
@media (max-width: 899px) and (max-height: 720px) {
  .motion .portrait { top: 10svh; height: 30svh; }
  .motion .chapter-copy { top: 45svh; }
  .motion .chapter-text, .motion[data-theme="mono"] .chapter-text { font-size: 16px; line-height: 1.32; }
  .motion .pill { bottom: 8svh; }
}

/* ---------- static document (reduced motion, no WebGL) ---------- */
:root:not(.motion) .hud-top { display: none; }
:root:not(.motion) .logo-white { opacity: 1; position: relative; }
:root:not(.motion) .logo-dark, :root:not(.motion) .scroll-message, :root:not(.motion) .skip, :root:not(.motion) .hud-bottom { display: none; }
:root:not(.motion) .static-hero {
  min-height: 92vh; display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--gutter);
}
.static-hero h1 { margin: 0; font-weight: 400; }
.wordmark { font-family: var(--f-logo); font-size: clamp(38px, 8.5vw, 140px); letter-spacing: -0.02em; line-height: 1; }
.static-tagline { margin: 3vh 0 0; font-size: clamp(18px, 1.6vw, 24px); color: var(--ink-2); }
:root:not(.motion) .chapters { padding: 6vh var(--gutter) 4vh; display: grid; gap: 14vh; }
:root:not(.motion) .chapter { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 6vw; align-items: center; }
:root:not(.motion) .portrait-box { aspect-ratio: 0.81; }
:root:not(.motion) .pill { display: none; }
@media (max-width: 899px) {
  :root:not(.motion) .chapter { grid-template-columns: 1fr; gap: 28px; }
  :root:not(.motion) .chapter-text { font-size: 19px; }
}

/* ---------- content ---------- */
.section, .site-footer { position: relative; z-index: 2; }
.section { padding: 26vh var(--gutter) 6vh; }
@media (min-width: 1100px) {
  .section, .site-footer { max-width: calc(58vw + var(--gutter)); }
}

.initiatives .rail { margin-bottom: 0; }
.rail {
  display: flex; gap: 18px; align-items: baseline;
  font-family: var(--f-mono); font-size: 12px; line-height: 1; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: 16px; margin-bottom: 7vh;
  border-bottom: 1px solid var(--rule);
}
.rail .no { color: var(--accent); }

.statement {
  margin: 0 0 7vh;
  font-weight: 360;
  font-size: clamp(34px, 4.3vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.028em;
  max-width: 14.5em;
  text-wrap: balance;
}
.prose p {
  margin: 0 0 1.15em;
  max-width: 36em;
  font-size: clamp(17px, 1.22vw, 20px);
  line-height: 1.62;
  color: var(--ink-2);
}
.prose .sign {
  display: flex; align-items: center; gap: 14px; margin-top: 2em;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink);
}
.prose .sign::before { content: ""; width: 36px; border-top: 1px solid var(--accent); }

.forms { list-style: none; margin: 13vh 0 0; padding: 0; border-top: 1px solid var(--rule); }
.forms li {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 20px;
  padding: 30px 0 32px; border-bottom: 1px solid var(--rule);
}
.forms .num { grid-row: span 3; font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.08em; color: var(--accent); padding-top: 0.75em; }
.forms h3 { margin: 0 0 6px; font-size: clamp(23px, 2vw, 32px); font-weight: 400; letter-spacing: -0.015em; line-height: 1.15; }
.forms p { margin: 0 0 16px; font-size: 17px; color: var(--ink-2); }
.forms .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.forms .tags a {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.04em; text-decoration: none;
  padding: 5px 12px 6px; border: 1px solid var(--rule); border-radius: 100px;
  transition: border-color 0.3s, color 0.3s;
}
.forms .tags a:hover { border-color: var(--accent); color: var(--accent-soft); }
.forms-source { margin: 18px 0 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-3); }

.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { scroll-margin-top: 20vh; }
.ledger a {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 40px;
  grid-template-areas: "idx name arrow" ". meta ." ". desc .";
  column-gap: 20px;
  padding: 36px 0 38px;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.ledger a::before {
  content: ""; position: absolute; inset: -1px 0 -1px calc(-1 * var(--gutter));
  background: var(--row-hover);
  opacity: 0; transition: opacity 0.45s var(--ease); pointer-events: none; z-index: -1;
}
.ledger a:hover::before, .ledger a:focus-visible::before { opacity: 1; }
.ledger .idx { grid-area: idx; font-family: var(--f-mono); font-size: 13px; color: var(--ink-3); padding-top: 0.95em; transition: color 0.3s; }
.ledger .name { grid-area: name; font-size: clamp(31px, 3.5vw, 56px); font-weight: 380; letter-spacing: -0.022em; line-height: 1.05; }
.ledger .meta {
  grid-area: meta; display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 16px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
}
.ledger .domain { color: var(--accent-soft); text-transform: none; letter-spacing: 0.02em; }
.ledger .desc { grid-area: desc; margin-top: 14px; max-width: 36em; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.ledger .arrow {
  grid-area: arrow; justify-self: end; width: 30px; height: 30px; margin-top: 0.55em;
  fill: none; stroke: currentColor; stroke-width: 1.3;
  transition: transform 0.4s var(--ease), color 0.3s;
}
.ledger a:hover .idx, .ledger a:focus-visible .idx { color: var(--accent); }
.ledger a:hover .arrow, .ledger a:focus-visible .arrow { transform: translate(4px, -4px); color: var(--accent); }

.site-footer { padding: 24vh var(--gutter) 40px; }
.closing {
  margin: 0 0 18vh;
  font-size: clamp(26px, 2.6vw, 42px);
  font-weight: 360;
  letter-spacing: -0.018em;
  line-height: 1.2;
  max-width: 20em;
}
.closing a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.18em; transition: color 0.3s; }
.closing a:hover { color: var(--accent-soft); }
.fine {
  display: flex; flex-wrap: wrap; gap: 10px 48px; padding-top: 22px; border-top: 1px solid var(--rule);
  font-family: var(--f-mono); font-size: 11px; line-height: 1.7; letter-spacing: 0.02em; color: var(--ink-3);
}
.fine span:last-child { max-width: 72em; }
.fine a { color: var(--ink-2); text-underline-offset: 0.2em; }

@media (max-width: 899px) {
  .section { padding: 18vh var(--gutter) 4vh; }
  .forms li { grid-template-columns: 34px minmax(0, 1fr); column-gap: 10px; }
  .ledger a {
    grid-template-columns: 34px minmax(0, 1fr) 22px; column-gap: 10px;
    grid-template-areas: "idx name name" ". meta arrow" ". desc desc";
    padding: 28px 0 30px;
  }
  .ledger .name { font-size: clamp(27px, 8vw, 40px); hyphens: manual; }
  .ledger .arrow { width: 22px; height: 22px; margin-top: 12px; align-self: start; }
  .ledger .desc, .forms p { font-size: 16px; }
}

/* veil that keeps text readable where the helix runs behind it (narrow screens) */
.motion .section::before, .motion .site-footer::before {
  /* full viewport width, so the dimmed field has no edge beside the text column */
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 100vw; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(var(--veil-rgb), 0) 0, rgba(var(--veil-rgb), 0.72) 22vh, rgba(var(--veil-rgb), 0.72) 100%);
  opacity: var(--veil, 0);
}
/* only the first section fades in from clear; later ones continue the same even veil */
.motion .section:not(.why)::before, .motion .site-footer::before { background: rgba(var(--veil-rgb), 0.72); }

/* header backdrop once the content scrolls beneath it */
.hud-top::before {
  content: ""; position: absolute; inset: 0 0 -48px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(var(--veil-rgb), 0.94) 35%, rgba(var(--veil-rgb), 0));
  opacity: 0; transition: opacity 0.5s;
}
.hud-top.in-content::before { opacity: 1; }

/* social card capture (?og) */
.og .hud-right { display: none; }

/* ---------- version 4 (default): the original animation in gold ---------- */
[data-theme="original"] {
  --accent: #cc9644;
  --accent-soft: #ebbb76;
  --ascii-digit: #cc9644;
  --row-hover: linear-gradient(90deg, rgba(204, 150, 68, 0.14), rgba(204, 150, 68, 0) 70%);
}

/* ---------- version 3: strictly black and white, with an Apple touch ---------- */
[data-theme="mono"] {
  --bg: #ffffff;
  --dark: #ffffff;
  --ink: #000000;
  --ink-2: #000000;
  --ink-3: #000000;
  --rule: #000000;
  --accent: #000000;
  --accent-soft: #000000;
  --hud: #000000;
  --hud-alt: #ffffff;
  --chapter-ink: #000000;
  --ascii-ink: #000000;
  --ascii-digit: #000000;
  --pill-bg: #000000; --pill-ink: #ffffff; --pill-border: #000000;
  --pill-hover-bg: #ffffff; --pill-hover-ink: #000000;
  --row-hover: #000000;
  --veil-rgb: 255, 255, 255;
  --f-text: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
/* the film renders light on black, reduced to pure black and white in the shader; inverting the canvas makes it ink on paper */
[data-theme="mono"] #field { filter: invert(1); }
[data-theme="mono"] ::selection { background: #000; color: #fff; }
[data-theme="mono"] :focus-visible { outline-color: #000; }
[data-theme="mono"] .scroll-message, [data-theme="mono"] .tagline { letter-spacing: -0.01em; }
[data-theme="mono"] .kicker, [data-theme="mono"] .caption {
  font-family: var(--f-text); text-transform: none; letter-spacing: -0.01em; color: #000;
}
[data-theme="mono"] .kicker { font-size: 17px; font-weight: 600; margin-bottom: 18px; }
[data-theme="mono"] .caption { font-size: 13px; }
[data-theme="mono"] .chapter-text { font-weight: 600; letter-spacing: -0.022em; line-height: 1.24; font-size: clamp(24px, 2.05vw, 34px); }
[data-theme="mono"] .chapter-text .caret { padding: 0.02em 0.06em; margin-left: 0.25em; }
[data-theme="mono"] .pill { text-transform: none; letter-spacing: -0.01em; font-size: 15px; font-weight: 500; padding: 11px 22px 12px; }
[data-theme="mono"] .pill:hover { border-color: #000; }
[data-theme="mono"] .rail {
  font-family: var(--f-text); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; text-transform: none; color: #000;
}
[data-theme="mono"] .statement { font-weight: 600; letter-spacing: -0.04em; line-height: 1.04; font-size: clamp(38px, 5.2vw, 84px); }
[data-theme="mono"] .prose p { color: #000; font-size: clamp(17px, 1.3vw, 21px); line-height: 1.52; letter-spacing: -0.01em; }
[data-theme="mono"] .prose .sign { font-family: var(--f-text); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; text-transform: none; }
[data-theme="mono"] .forms .num, [data-theme="mono"] .ledger .idx { font-family: var(--f-text); font-weight: 500; }
[data-theme="mono"] .forms h3 { font-weight: 600; letter-spacing: -0.025em; }
[data-theme="mono"] .forms p, [data-theme="mono"] .ledger .desc { color: #000; }
[data-theme="mono"] .forms .tags a { font-family: var(--f-text); font-size: 13px; font-weight: 500; letter-spacing: -0.01em; background: #fff; border-color: #000; color: #000; }
[data-theme="mono"] .forms .tags a:hover { background: #000; color: #fff; }
[data-theme="mono"] .forms-source, [data-theme="mono"] .fine { font-family: var(--f-text); letter-spacing: 0; font-size: 12px; color: #000; }
[data-theme="mono"] .fine a { color: #000; }
/* rows invert on hover: white on black */
[data-theme="mono"] .ledger a::before { inset: 0 -20px; border-radius: 22px; }
[data-theme="mono"] .ledger a:hover, [data-theme="mono"] .ledger a:focus-visible { color: #fff; border-bottom-color: transparent; }
[data-theme="mono"] .ledger a:hover *, [data-theme="mono"] .ledger a:focus-visible * { color: #fff; }
[data-theme="mono"] .ledger .name { font-weight: 600; letter-spacing: -0.035em; }
[data-theme="mono"] .ledger .meta { font-family: var(--f-text); font-size: 14px; letter-spacing: -0.01em; text-transform: none; font-weight: 500; }
[data-theme="mono"] .ledger .domain { font-weight: 600; }
[data-theme="mono"] .closing { font-weight: 600; letter-spacing: -0.03em; }
[data-theme="mono"] .closing a { text-decoration-color: #000; }
[data-theme="mono"] .closing a:hover { color: #000; text-decoration-thickness: 4px; }
[data-theme="mono"] .wordmark { color: #000; }
/* solid white header with a black hairline once the content runs beneath it */
[data-theme="mono"] .hud-top::before { inset: 0; background: #fff; border-bottom: 1px solid #000; }
[data-theme="mono"] .section::before, [data-theme="mono"] .site-footer::before { display: none; }

@media (max-width: 899px) {
  [data-theme="mono"] .motion .chapter-text, .motion[data-theme="mono"] .chapter-text { font-size: 19px; line-height: 1.3; }
  [data-theme="mono"] .kicker { font-size: 15px; margin-bottom: 12px; }
  [data-theme="mono"] .motion .pill, .motion[data-theme="mono"] .pill { font-size: 14px; letter-spacing: -0.01em; padding: 9px 20px 10px; }
}
@media (max-width: 899px) and (max-height: 720px) {
  .motion[data-theme="mono"] .chapter-text { font-size: 16px; line-height: 1.3; }
  .motion[data-theme="mono"] .kicker { font-size: 14px; margin-bottom: 10px; }
}
