/* Private preview. Visual system adapted from the Sun artboard and the
   November 2026 brandbook: Onyx, Ivory, Amber, Solar. Text stays visible
   without JavaScript. The logo is the supplied artwork, not a retype. */

:root {
  --onyx: #020202;
  --ivory: #f2f2f2;
  --amber: #ffb703;
  --solar: #fb5607;
  --s1: #0b0b0b;
  --s2: #131313;
  --muted: #9c9c9c;
  --line: rgba(242, 242, 242, 0.1);
  --line-strong: rgba(242, 242, 242, 0.18);
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --soft: cubic-bezier(0.215, 0.61, 0.355, 1);
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --sans: "Geist", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--onyx);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, summary { font: inherit; }
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 16px;
  top: 8px;
  z-index: 40;
  transform: translateY(-140%);
  background: var(--amber);
  color: var(--onyx);
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}
.skip:focus { transform: none; }

.wrap {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}
@media (max-width: 720px) {
  .wrap { width: min(1280px, calc(100% - 32px)); }
}

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--amber);
  letter-spacing: -0.01em;
}

.banner {
  background: var(--s1);
  border-bottom: 1px solid var(--line);
  color: var(--ivory);
  font-size: 14px;
  line-height: 1.5;
}
.banner .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: baseline;
  padding: 10px 0;
}
.banner strong { font-weight: 600; color: var(--amber); }
.banner a { color: var(--ivory); }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(2, 2, 2, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: auto;
  text-decoration: none;
}
.logo-full { display: block; height: 28px; width: auto; }
.logo-mark { display: none; width: 40px; height: 40px; }
.lang {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.lang a {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.lang a[aria-current="true"] {
  color: var(--onyx);
  background: var(--amber);
  border-radius: 999px;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px 22px;
}
.nav-menu a {
  color: var(--muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 15px;
}
.nav-menu a:hover,
.nav-menu a[aria-current="page"] { color: var(--ivory); }
.nav-menu a.btn-amber,
.nav-menu a.btn-amber:hover {
  color: var(--onyx);
  background: var(--amber);
}
.nav-menu a.btn-amber:hover { background: #fff1b8; }
.soc {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.soc a {
  width: 40px;
  min-width: 40px;
  height: 44px;
  justify-content: center;
  color: var(--ivory);
  padding: 0;
}
.soc a:hover { color: var(--amber); }
.foot .soc { margin-top: 4px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
}
.btn-amber {
  background: var(--amber);
  color: var(--onyx);
}
.btn-amber:hover { background: #fff1b8; color: var(--onyx); }
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ivory);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ivory); }

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 10%, transparent 72%);
  opacity: 0.55;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 32px;
  align-items: center;
  padding: 72px 0 80px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}
.kicker i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  display: block;
}
h1, .h1 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(48px, 7vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  max-width: 100%;
}
h1 .serif { font-size: 1.05em; }
.lede {
  margin: 28px 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}
.lede strong { color: var(--ivory); font-weight: 500; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 48px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  max-width: 680px;
}
.proof strong {
  display: block;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.proof span { color: var(--muted); font-size: 14px; }

.orb {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}
.orb-glow {
  position: absolute;
  width: min(460px, 80%);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 40%, rgba(255, 183, 3, 0.55), transparent 46%),
    radial-gradient(circle at 70% 62%, rgba(251, 86, 7, 0.45), transparent 52%);
  filter: blur(8px);
}
.orb img {
  position: relative;
  width: min(240px, 70%);
  height: auto;
  filter: none;
}

.mq {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 20px 0 28px;
}
.mq-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: mq 46s linear infinite;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.35;
  letter-spacing: -0.03em;
  color: var(--muted);
}
.mq-track > span {
  display: inline-flex;
  align-items: center;
  gap: 42px;
  padding-right: 42px;
  flex: 0 0 auto;
}
.mq-track em { font-family: var(--serif); font-style: italic; color: var(--ivory); font-weight: 400; }
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  display: inline-block;
}
@keyframes mq { to { transform: translateX(-50%); } }
.mq-static {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  color: var(--muted);
}

.sec { padding: 112px 0; border-bottom: 1px solid var(--line); }
.sec-head { max-width: 18em; margin-bottom: 36px; }
.idx { color: var(--amber); letter-spacing: 0.12em; }
h2 {
  margin: 12px 0 0;
  font-size: clamp(36px, 5vw, 76px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
}
.body {
  max-width: 40rem;
  color: var(--muted);
  margin: 0;
}
.body + .body { margin-top: 16px; }

.story {
  display: grid;
  grid-template-columns: minmax(220px, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: start;
}
.portrait {
  margin: 0;
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--s1);
  aspect-ratio: 4 / 5;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portrait figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  margin: 0;
  padding: 8px 10px;
  background: rgba(2, 2, 2, 0.72);
  border-radius: 10px;
  font-size: 13px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.card {
  background: var(--s1);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.card h3 {
  margin: 0;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card a { color: var(--amber); }
.tag {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(255, 183, 3, 0.45);
  border-radius: 999px;
  padding: 6px 10px;
}

.path-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.path-list li {
  display: grid;
  grid-template-columns: minmax(140px, 280px) 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.path-list code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ivory);
  overflow-wrap: anywhere;
}
.path-list span { color: var(--muted); font-size: 15px; }

.steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}
.steps li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 18px;
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps span {
  font-family: var(--mono);
  color: var(--amber);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.foot {
  padding: 88px 0 36px;
}
.one-line {
  margin: 0 0 14px;
  max-width: 100%;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-align: left;
  text-transform: uppercase;
  color: var(--muted);
}
.foot-logo { display: block; width: min(720px, 100%); height: auto; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.foot h2 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.foot ul { list-style: none; margin: 14px 0 0; padding: 0; }
.foot li { margin: 0; }
.foot li a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--muted);
  text-decoration: none;
}
.foot li a:hover { color: var(--ivory); }
.mail {
  display: inline-flex;
  margin-top: 12px;
  min-height: 44px;
  align-items: center;
  color: var(--ivory);
  text-decoration: none;
  border-bottom: 1px solid var(--amber);
  font-size: 20px;
  letter-spacing: -0.02em;
}
.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 36px;
  color: var(--muted);
  font-size: 14px;
}
.gate {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 48px 0 72px;
}
.gate-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}
.gate-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
  text-decoration: none;
  background: var(--s1);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
}
.gate-card:hover { border-color: rgba(255, 183, 3, 0.6); }
.gate-card h2 { font-size: clamp(36px, 4vw, 64px); }
.gate-card p { margin: 0; color: var(--muted); }

.specimen {
  margin: 8px 0 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.35;
}
@media (max-width: 900px) {
  .hero-grid,
  .story,
  .gate-grid,
  .foot-grid,
  .cards,
  .proof,
  .path-list li { grid-template-columns: 1fr; }
  .orb { min-height: 240px; order: -1; }
  .sec { padding: 72px 0; }
  .logo-full { height: 22px; }
  .nav-bar { flex-wrap: nowrap; }
}
@media (max-width: 379px) {
  .logo-full { display: none; }
  .logo-mark { display: block; }
}
@media (min-width: 901px) {
  .nav-menu { margin-left: 8px; }
}

/* Motion ported from the Sun artboard runtime. Timings match that file. */
.roll { display: inline-flex; flex-direction: column; overflow: hidden; height: 1.25em; line-height: 1.25em; vertical-align: middle; }
.roll > span { display: block; transition: transform .7s var(--ease); }
a:hover .roll > span, button:hover .roll > span { transform: translateY(-100%); }
.arr { display: inline-block; transition: transform .7s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }
.h1 .ln { display: block; }
.h1 .wd { display: inline-block; white-space: nowrap; margin-right: .24em; }
.h1 .h1-sp { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.h1 .ch { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(12px) scale(.96); animation: chIn 1s var(--soft) forwards; }
.h1 .wd.ai { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.08em; color: var(--amber); letter-spacing: -.01em; }
@keyframes chIn { to { transform: none; filter: blur(0); opacity: 1; } }
.fade { opacity: 0; filter: blur(8px); transform: translateY(18px); animation: fadeup 1.4s var(--ease) forwards; animation-delay: var(--fd, 1s); }
@keyframes fadeup { to { opacity: 1; filter: blur(0); transform: none; } }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); display: inline-block; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 183, 3, .55); } 100% { box-shadow: 0 0 0 12px rgba(255, 183, 3, 0); } }
.js [data-rv] { opacity: 0; transform: translateY(36px); filter: blur(6px); transition: opacity 1.2s var(--ease), transform 1.4s var(--ease), filter 1.2s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.js [data-rv].in { opacity: 1; transform: none; filter: blur(0); }
.js [data-rv].bh { opacity: 1; transform: none; filter: none; }
.bw { display: inline-block; white-space: nowrap; margin-right: .24em; }
.bw:last-child { margin-right: 0; }
.c { display: inline-block; }
.bw.ser .c { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--amber); }
.js .bh .c { opacity: 0; filter: blur(10px); transform: translateY(12px) scale(.96); transition: opacity .9s var(--soft), filter .9s var(--soft), transform .9s var(--soft); transition-delay: calc(var(--i) * 30ms); }
.js .bh.in .c { opacity: 1; filter: blur(0); transform: none; }
.scr:empty::before { content: attr(data-scr); }
.prog { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, rgba(255, 183, 3, .2), var(--amber)); transform-origin: left; transform: scaleX(var(--sp, 0)); pointer-events: none; }
.mq-skew { transform: skewX(calc(var(--vel, 0) * -1deg)); transition: transform .5s var(--ease); }
.core { position: absolute; inset: 0 0 0 auto; width: 68%; height: 100%; z-index: 0; pointer-events: none; }
.core canvas { width: 100%; height: 100%; display: block; }
.hero-grid { z-index: 1; }
.card { position: relative; overflow: hidden; transition: transform .9s var(--ease), border-color .5s, background .5s; } /* contain the ::before glow and ::after sweep inside the card */
.card:hover { transform: translateY(-6px); border-color: rgba(255, 183, 3, .45); background: var(--s2); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.06) 50%, transparent 60%); transform: translateX(-100%); pointer-events: none; }
.card:hover::after { transform: translateX(100%); transition: transform 1.3s var(--ease); }
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(280px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 183, 3, .16), transparent 62%); opacity: 0; transition: opacity .5s; }
.card:hover::before { opacity: 1; }
.mail { transition: background-size .8s var(--ease); background-size: 100% 1px; }
.mail:hover { background-size: 0% 1px; background-position: right bottom; }
.portrait { position: relative; }
.portrait::after { content: ""; position: absolute; left: 0; right: 0; height: 140px; background: linear-gradient(to bottom, transparent, rgba(255, 183, 3, .14), transparent); animation: scan 6s cubic-bezier(.6, 0, .4, 1) infinite; pointer-events: none; }
@keyframes scan { 0% { top: -140px; } 100% { top: 100%; } }
.corner { position: absolute; width: 22px; height: 22px; border-color: var(--amber); border-style: solid; z-index: 2; }
.tl { top: 16px; left: 16px; border-top-width: 1px; border-left-width: 1px; }
.tr { top: 16px; right: 16px; border-top-width: 1px; border-right-width: 1px; }
.bl { bottom: 16px; left: 16px; border-bottom-width: 1px; border-left-width: 1px; }
.br { bottom: 16px; right: 16px; border-bottom-width: 1px; border-right-width: 1px; }
.cc {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 90;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 14px 18px;
  background: var(--onyx);
  color: var(--ivory);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.55);
  font-size: 0.9rem;
  line-height: 1.5;
}
.cc[hidden] { display: none; }
.cc p {
  margin: 0;
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cc-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: block;
}
.cc p span { min-width: 0; }
.cc a { color: var(--muted); }
.cc-b { display: flex; gap: 10px; }
.cc button {
  font: inherit;
  font-weight: 600;
  min-width: 104px;
  min-height: 44px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--amber);
  background: transparent;
  color: var(--ivory);
  cursor: pointer;
}
.cc button:hover { background: var(--amber); color: var(--onyx); }
.legal .cs-open { color: var(--muted); margin-left: 10px; }
.readbar {
  position: sticky;
  top: 72px;
  z-index: 15;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: min(820px, calc(100% - 32px));
  margin: 8px auto 0;
  padding: 8px 0;
  background: transparent;     /* 2026-11-12: no dark strip under Back/Top */
  pointer-events: none;        /* the gap between the buttons never blocks the page */
}
body.cs .readbar { width: min(1120px, calc(100% - 32px)); }
.readbar a {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--s1);
  color: var(--ivory);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.readbar a:hover { background: var(--amber); color: var(--onyx); border-color: var(--amber); }
.cs-hero#top { scroll-margin-top: 140px; }
.js .mega-logo { clip-path: inset(0 100% 0 0); transition: clip-path 2.7s var(--ease); }
.js .mega-logo.in { clip-path: inset(0 0 0 0); }
@media (max-width: 900px) {
  .core { right: -30%; width: 120%; opacity: .45; }
}

/* ==========================================================================
   Studio 2026-11-10 (draft): mobile menu button + panel, mobile footer,
   Notes = experiment log entries, Free = kit cards.
   Motion always runs (Viktor's rule): no prefers-reduced-motion branch here.
   ========================================================================== */

/* ---- Mobile menu: dot-built "steps" icon that folds into a dot-built x ---- */
.nav-btn { display: none; }
@media (max-width: 900px) {
  .nav-btn {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--ivory);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: border-color .8s var(--ease), background-color .8s var(--ease);
  }
  .nav-btn:hover { border-color: rgba(242, 242, 242, .34); }
  .nav.is-open .nav-btn { border-color: rgba(242, 242, 242, .28); background-color: var(--s1); }
  .nav-dots { position: relative; display: block; width: 22px; height: 22px; }
  .nav-dots i {
    position: absolute;
    left: 0;
    top: 0;
    width: 3.4px;
    height: 3.4px;
    border-radius: 50%;
    background: var(--ivory);
    transform: translate(calc(var(--x0) - 1.7px), calc(var(--y0) - 1.7px));
    transition: transform .85s var(--ease), background-color .85s var(--ease);
    transition-delay: calc(var(--k) * 28ms);
  }
  .nav.is-open .nav-dots i { transform: translate(calc(var(--x1) - 1.7px), calc(var(--y1) - 1.7px)); }
  /* Closed: three stepped rows (2 / 3 / 4 dots), one Amber sun on the top step.
     Open: the same nine dots settle into a dotted x. The sun cools to Ivory so the
     panel's Amber button stays the one focal point. */
  .nav-dots i:nth-child(1) { --k: 2; --x0: 12.47px; --y0: 4.77px;  --x1: 6.75px;  --y1: 6.75px; }
  .nav-dots i:nth-child(2) { --k: 0; --x0: 17.97px; --y0: 4.77px;  --x1: 19.5px;  --y1: 2.5px; background: var(--amber); }
  .nav-dots i:nth-child(3) { --k: 4; --x0: 6.97px;  --y0: 10.27px; --x1: 2.5px;   --y1: 2.5px; }
  .nav-dots i:nth-child(4) { --k: 3; --x0: 12.47px; --y0: 10.27px; --x1: 11px;    --y1: 11px; }
  .nav-dots i:nth-child(5) { --k: 1; --x0: 17.97px; --y0: 10.27px; --x1: 15.25px; --y1: 6.75px; }
  .nav-dots i:nth-child(6) { --k: 8; --x0: 1.47px;  --y0: 15.77px; --x1: 2.5px;   --y1: 19.5px; }
  .nav-dots i:nth-child(7) { --k: 7; --x0: 6.97px;  --y0: 15.77px; --x1: 6.75px;  --y1: 15.25px; }
  .nav-dots i:nth-child(8) { --k: 6; --x0: 12.47px; --y0: 15.77px; --x1: 15.25px; --y1: 15.25px; }
  .nav-dots i:nth-child(9) { --k: 5; --x0: 17.97px; --y0: 15.77px; --x1: 19.5px;  --y1: 19.5px; }
  .nav.is-open .nav-dots i:nth-child(2) { background: var(--ivory); }

  /* Panel: opaque Onyx sheet under the header, with the site field lined up 1:1. */
  .nav-menu {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 30;
    height: calc(100vh - var(--nav-b, 73px));
    height: calc(100dvh - var(--nav-b, 73px));
    overflow-y: auto;
    overscroll-behavior: contain;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 20px 40px;
    background:
      linear-gradient(rgba(2, 2, 2, .42), rgba(2, 2, 2, .42)),
      url("../field/field-2880x1800.webp") 50% calc(-1 * var(--nav-b, 73px)) / 2880px 1800px no-repeat,
      var(--onyx);
    border-bottom: 1px solid var(--line);
    visibility: hidden;
    pointer-events: none;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .9s var(--ease), visibility 0s linear .9s;
  }
  .nav.is-open .nav-menu {
    visibility: visible;
    pointer-events: auto;
    clip-path: inset(0 0 0 0);
    transition: clip-path .9s var(--ease), visibility 0s;
  }
  html:not(.js) .nav-btn { display: none; }   /* no JS: the footer carries every link */

  .nav-menu > * {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
  }
  .nav.is-open .nav-menu > * {
    opacity: 1;
    transform: none;
    transition: opacity .8s var(--ease), transform .9s var(--ease);
    transition-delay: calc(140ms + var(--k, 0) * 70ms);
  }
  .nav-menu > :nth-child(1) { --k: 0; }
  .nav-menu > :nth-child(2) { --k: 1; }
  .nav-menu > :nth-child(3) { --k: 2; }
  .nav-menu > :nth-child(4) { --k: 3; }
  .nav-menu > :nth-child(5) { --k: 4; }

  .nav-menu > a:not(.btn) {
    width: 100%;
    min-height: 72px;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    color: var(--ivory);
    font-size: 34px;
    font-weight: 600;
    letter-spacing: -0.035em;
    counter-increment: navi;
  }
  .nav-menu { counter-reset: navi; }
  .nav-menu > a:not(.btn)::after {
    content: "0" counter(navi);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--muted);
  }
  .nav-menu > a[aria-current="page"]::after { content: "0" counter(navi) " · HERE"; color: var(--ivory); }
  .nav-menu .soc { width: auto; margin: 24px 0 0 -13px; }
  .nav-menu .soc a { width: 44px; min-width: 44px; }
  .nav-menu .btn { width: 100%; min-height: 56px; margin-top: 24px; font-size: 16px; }
}
html.menu-open { overflow: hidden; }
html.menu-open body { padding-right: var(--sbw, 0px); }   /* desktop-width scrollbars only; 0 on phones */

/* ---- Mobile footer: label | content rows on one grid, one baseline bottom bar ---- */
.legal-privacy { display: none; }
.legal-links { display: contents; }   /* desktop: the link stays the flex item it was */
@media (max-width: 900px) {
  .foot { padding: 80px 0 32px; }
  .one-line { margin-bottom: 16px; }
  .foot-logo { width: 100%; max-width: 720px; }
  .foot-grid {
    display: block;
    margin-top: 40px;
    padding-top: 0;
    border-top: 1px solid var(--line);
  }
  .foot-grid > div {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    column-gap: 16px;
    align-items: start;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }
  .foot h2 { line-height: 44px; }
  .foot .mail { margin-top: 0; font-size: clamp(17px, 5vw, 20px); justify-self: start; }
  .foot-grid > div > p { margin: 0; min-width: 0; }
  .foot ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; margin: 0; }
  .foot li a { min-height: 44px; font-size: 17px; }
  .foot li.foot-privacy { display: none; }        /* moves to the bottom bar on mobile */
  .foot .soc { margin: 0 0 0 -13px; gap: 0; }
  .foot .soc a { display: inline-flex; align-items: center; width: 44px; min-width: 44px; height: 44px; }
  .legal {
    justify-content: flex-start;
    align-items: center;
    gap: 0 24px;
    margin-top: 16px;
    font-size: 13px;
  }
  .legal-c { margin-right: auto; min-height: 44px; display: inline-flex; align-items: center; }
  .legal-sep { display: none; }
  .legal-links { display: inline-flex; gap: 24px; }
  .legal-links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); }
  .legal-privacy { display: inline-flex; }
}

/* ---- Notes: experiment-log entries (home, notes index, article "Keep reading") ---- */
.log {
  position: relative;
  margin-top: 40px;
  padding-left: 32px;
  border-top: 1px solid var(--line);
}
.log::before {                       /* the timeline rule */
  content: "";
  position: absolute;
  left: 4px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(var(--line-strong), var(--line-strong) 85%, transparent);
}
.note {
  position: relative;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) auto;
  grid-template-areas: "meta title go" "meta x go";
  column-gap: 32px;
  row-gap: 8px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.note::before {                      /* the entry dot on the timeline */
  content: "";
  position: absolute;
  left: -31px;
  top: 38px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--onyx);
  border: 1px solid rgba(242, 242, 242, .45);
  transition: background-color .7s var(--ease), border-color .7s var(--ease), transform .7s var(--ease);
}
.note:hover::before, .note:focus-within::before { background: var(--amber); border-color: var(--amber); transform: scale(1.25); }
.note-meta {
  grid-area: meta;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.note-rule { flex: 1; height: 1px; background: var(--line-strong); transform-origin: left; transition: background-color .7s var(--ease); }
.note-t {
  grid-area: title;
  margin: 0;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.22;
  max-width: 34ch;
}
.note-t a { color: var(--ivory); text-decoration: none; }
.note-t a::after { content: ""; position: absolute; inset: 0; }     /* whole row is the link */
.note-x {
  grid-area: x;
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.note-go {
  grid-area: go;
  margin: 0;
  align-self: center;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .7s var(--ease);
}
.note-go .arr { color: var(--amber); }
.note:hover .note-go { color: var(--ivory); }
.note:hover .arr, .kit:hover .arr { transform: translateX(5px); }
.note:hover .note-rule { background: rgba(255, 183, 3, .5); }
.note:has(:focus-visible) { outline: 2px solid var(--amber); outline-offset: 6px; border-radius: 4px; }
.note-t a:focus-visible { outline: none; }

/* ---- Free: kit cards (home, Free page) ---- */
.kits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.kit {
  --fold: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 248px;
  padding: 20px 20px 22px;
  border: 1px solid transparent;
  background:
    radial-gradient(circle, rgba(242, 242, 242, .06) 0.7px, transparent 1.2px) 0 0 / 12px 12px padding-box,
    linear-gradient(var(--s1), var(--s1)) padding-box,
    linear-gradient(var(--line-strong), var(--line-strong)) border-box;
  clip-path: polygon(0 0, calc(100% - var(--fold)) 0, 100% var(--fold), 100% 100%, 0 100%);
  transition: clip-path .9s var(--ease), transform .9s var(--ease), background .7s var(--ease);
}
.kit::after {                        /* the folded corner */
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: var(--fold);
  height: var(--fold);
  background: linear-gradient(225deg, transparent 50%, #262626 50%, var(--s2) 70%);
  box-shadow: -1px 1px 0 rgba(242, 242, 242, .08);
  transition: width .9s var(--ease), height .9s var(--ease);
}
.kit:hover, .kit:focus-within { --fold: 40px; transform: translateY(-4px); }
@media (max-width: 600px) { .kit:hover, .kit:focus-within { --fold: 34px; } }
.kit:hover {
  background:
    radial-gradient(circle, rgba(242, 242, 242, .08) 0.7px, transparent 1.2px) 0 0 / 12px 12px padding-box,
    linear-gradient(var(--s2), var(--s2)) padding-box,
    linear-gradient(rgba(255, 183, 3, .45), rgba(255, 183, 3, .45)) border-box;
}
.kit-tab {
  align-self: flex-start;
  display: inline-flex;
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-strong);
}
.kit-tab span, .kit-tab time { padding: 5px 8px; }
.kit-tab .kit-kind { color: var(--ivory); border-left: 1px solid var(--line-strong); }
.kit-t { margin: 0; font-size: clamp(19px, 1.7vw, 22px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.22; }
.kit-t a { color: var(--ivory); text-decoration: none; }
.kit-t a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.kit-d { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.kit-go {
  margin: auto 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
}
.kit:has(:focus-visible) { outline: 2px solid var(--amber); outline-offset: 2px; }
.kit-t a:focus-visible { outline: none; }
@media (max-width: 1100px) { .kits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .log { padding-left: 24px; margin-top: 32px; }
  .log::before { left: 3px; }
  .note {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "meta" "title" "x" "go";
    row-gap: 8px;
    padding: 24px 0;
  }
  .note::before { left: -24px; top: 30px; }
  .note-go { align-self: start; margin-top: 4px; }
  .note-x { -webkit-line-clamp: 3; }
}
@media (max-width: 600px) {
  .kits { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 32px; }
  .kit { --fold: 24px; min-height: 0; gap: 8px; padding: 16px 18px 18px; }
  .kit-tab { margin-bottom: 4px; }
  .kit-go { padding-top: 12px; margin-top: 8px; }
  .kit:focus-within, .kit:hover { transform: none; }   /* no lift on touch; the fold still eases */
  .kit:has(:focus-visible) { outline-offset: 2px; }
}

/* ==========================================================================
   2026-11-12: Free guide pages use the same reading column as Notes articles
   (article.css .article-wrap: 820px, h1 clamp(36px,5vw,64px), h2 clamp(28px,3vw,40px)).
   ========================================================================== */
.guide-col { width: min(820px, calc(100% - 40px)); margin: 0 auto; padding: 48px 0 24px; }
.guide-col .h1 { font-size: clamp(36px, 5vw, 64px); max-width: 18ch; }
.guide-col h2 { font-size: clamp(28px, 3vw, 40px); margin: 1.4em 0 .4em; }
.guide-col h3 { font-size: 22px; margin: 1.2em 0 .3em; }
@media (max-width: 720px) { .guide-col { width: min(820px, calc(100% - 32px)); } }

/* 2026-11-12: dates on Free cards, and "see all" buttons under the homepage lists */
.kit-tab .kit-date { color: var(--muted); border-left: 1px solid var(--line-strong); }
.more { margin: 40px 0 0; }
@media (max-width: 600px) { .more { margin-top: 28px; } }
