/* ============================================================
   Imanuel Piwko — personal site
   Continuous canvas + scroll-driven ERD morph
   Palette: warm near-black, soft warm off-white, single amber
   Type:    Geist + Geist Mono, 2 weights per family
   ============================================================ */

:root {
  --bg: #0b0b0d;
  --bg-soft: #101012;
  --ink: #e6e2d8;
  --ink-soft: #b3afa6;
  --mute: #7a7770;
  --mute-low: #4a4842;
  --rule: #1c1c1f;
  --rule-soft: #161618;
  --amber: #e8b86e;
  --amber-soft: rgba(232,184,110,0.55);
  --amber-faint: rgba(232,184,110,0.16);

  --col-narrative: 460px;
  --col-aside: 200px;
  --col-gap: 64px;

  --pad-x: clamp(28px, 4vw, 64px);
  --pad-y: clamp(24px, 3vw, 36px);

  --t-fast: 200ms;
  --t-base: 380ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.005em;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
em { font-style: normal; }

/* --------- chrome --------- */
.chrome {
  position: fixed; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--pad-y) var(--pad-x);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mute);
  text-transform: uppercase;
  pointer-events: none;
}
.chrome > * { pointer-events: auto; }
.chrome--top {
  top: 0;
  background: linear-gradient(to bottom, rgba(11,11,13,0.7) 0%, rgba(11,11,13,0.0) 100%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.chrome--bot {
  bottom: 0;
  font-size: 10.5px;
  background: linear-gradient(to top, rgba(11,11,13,0.7) 0%, rgba(11,11,13,0.0) 100%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.chrome--bot .chrome__center { color: var(--ink-soft); letter-spacing: 0.10em; }

.mark { display: inline-flex; align-items: center; gap: 14px; }
.mark__glyph {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  border: 0.5px solid var(--mute);
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0.06em;
}
.mark__glyph--photo {
  width: 32px; height: 32px;
  object-fit: cover;
  image-rendering: pixelated;
  border-color: var(--mute-low);
}
.mark__name { color: var(--ink); letter-spacing: 0.06em; }

.nav { display: inline-flex; align-items: center; gap: 28px; }
.nav a { color: var(--mute); }
.nav a:hover { color: var(--ink); }
.nav__cta {
  color: var(--ink) !important;
  border: 0.5px solid var(--mute-low);
  padding: 8px 14px;
  letter-spacing: 0.10em;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.nav__cta:hover { border-color: var(--amber); color: var(--amber) !important; }

.cadence { display: inline-flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cadence__line + .cadence__line { padding-left: 18px; border-left: 0.5px solid var(--rule); }
.cadence__line em { color: var(--amber); }
.cadence__dot {
  display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 8px rgba(232,184,110,0.6);
  animation: pulse 2.4s ease-in-out infinite; margin-right: 4px;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(0.78); }
}

/* --------- canvas --------- */
#field {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  z-index: 1;
  pointer-events: none;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(140% 110% at 50% 50%, transparent 72%, rgba(11,11,13,0.55) 100%),
    linear-gradient(to bottom,
      rgba(11,11,13,0.55) 0%,
      rgba(11,11,13,0.0) 10%,
      rgba(11,11,13,0.0) 90%,
      rgba(11,11,13,0.55) 100%);
}
@media (max-width: 1100px) {
  body::before {
    background:
      radial-gradient(140% 110% at 50% 50%, transparent 65%, rgba(11,11,13,0.55) 100%),
      linear-gradient(to bottom, rgba(11,11,13,0.7) 0%, rgba(11,11,13,0.0) 14%, rgba(11,11,13,0.0) 86%, rgba(11,11,13,0.7) 100%);
  }
}

/* --------- scroll --------- */
.scroll { position: relative; z-index: 10; padding: 0 var(--pad-x); }

.beat { min-height: 100vh; display: flex; align-items: center; position: relative; }
.beat__grid {
  width: 100%;
  display: grid;
  grid-template-columns: var(--col-narrative) 1fr var(--col-aside);
  gap: var(--col-gap);
  align-items: start;
  padding: 16vh 0 8vh;
}
.beat__grid--proof { grid-template-columns: var(--col-narrative) 1fr; padding-top: 18vh; gap: 80px; }
.beat__grid--track { grid-template-columns: var(--col-narrative) 1fr; padding-top: 18vh; gap: 80px; }
.beat__grid--end { grid-template-columns: 1fr; padding: 18vh 0 14vh; }

.beat__lede {
  position: sticky;
  top: 22vh;
  isolation: isolate;
  padding: 28px 32px 32px;
}
.beat__lede::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(11,11,13,0.86);
  border: 0.5px solid var(--rule);
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.beat__lede::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -28px;
  bottom: -28px;
  left: -48px;
  right: -64px;
  background: radial-gradient(ellipse 78% 68% at 30% 50%,
    rgba(11,11,13,0.55) 0%,
    rgba(11,11,13,0.0) 75%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 28px;
}
.eyebrow__num { color: var(--mute); letter-spacing: 0.08em; }
.lede {
  font-family: "Geist", sans-serif;
  font-weight: 400;
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  margin: 0 0 24px;
  color: var(--ink);
  text-wrap: balance;
}
.lede__sub {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 38ch;
  margin: 0 0 18px;
}
.lede__sub + .lede__sub { margin-top: 0; }
.lede__sub--quiet {
  color: var(--mute);
  font-size: 14px;
  margin-bottom: 28px;
}
.lede__sub--small { font-size: 13.5px; color: var(--mute); }
.cue {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

.beat__aside {
  position: sticky; top: 26vh;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--mute);
  border-left: 0.5px solid var(--rule);
  padding-left: 16px;
  display: flex; flex-direction: column; gap: 18px;
  isolation: isolate;
}
.beat__aside::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -28px;
  bottom: -28px;
  left: -16px;
  right: -64px;
  background:
    radial-gradient(ellipse 110% 90% at 70% 50%,
      rgba(11,11,13,0.96) 0%,
      rgba(11,11,13,0.88) 45%,
      rgba(11,11,13,0.45) 80%,
      rgba(11,11,13,0.0) 100%);
  pointer-events: none;
}
.beat__aside p { margin: 0; color: var(--ink-soft); }

/* --------- products --------- */
.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 0.5px solid var(--rule);
}
.product {
  position: relative;
  background: rgba(11,11,13,0.78);
  backdrop-filter: blur(2px);
  padding: 28px 28px 24px;
  min-height: 320px;
  display: flex; flex-direction: column;
  transition: background var(--t-base) var(--ease);
}
.product:hover { background: rgba(16,16,18,0.92); }
.product:hover .product__viz { opacity: 0.95; color: var(--amber); }
.product__head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10.5px; letter-spacing: 0.06em; color: var(--mute);
}
.product__tag { color: var(--amber); }
.product__name {
  margin: 24px 0 12px;
  font-size: 26px; font-weight: 500;
  letter-spacing: -0.02em; color: var(--ink);
}
.product__desc {
  margin: 0;
  font-size: 14px; line-height: 1.55;
  color: var(--ink-soft); max-width: 40ch;
}
.product__foot {
  margin-top: auto; padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.product__chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.product__chips > span {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.04em;
  color: var(--mute); border: 0.5px solid var(--rule);
  padding: 4px 8px;
}
.product__link {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--amber); white-space: nowrap;
  border-bottom: 0.5px solid transparent;
  transition: border-color var(--t-fast) var(--ease);
}
.product__link:hover { border-color: var(--amber); }
.product__link--muted { color: var(--mute); }

.product__viz {
  position: absolute; right: 18px; top: 18px;
  width: 130px; height: 70px;
  color: var(--mute);
  opacity: 0.7;
  transition: opacity var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
.product__viz .viz__core { stroke: var(--amber); }
.product__viz .viz__label {
  font-family: "Geist Mono", monospace;
  font-size: 6px;
  fill: currentColor;
  letter-spacing: 0.04em;
}

/* --------- career table (TRACK) --------- */
.career {
  position: relative;
  background: rgba(11,11,13,0.88);
  backdrop-filter: blur(2px);
  border: 0.5px solid var(--rule);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.5;
}
.career__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 0.5px solid var(--rule);
  background: var(--amber-faint);
  font-size: 10.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--mute);
}
.career__head-name { color: var(--amber); letter-spacing: 0.14em; text-align: left; }
.career__head-meta { color: var(--mute); }

.career__cols {
  display: grid;
  grid-template-columns: 132px 200px 1.1fr 1.4fr;
  gap: 22px;
  padding: 10px 18px;
  border-bottom: 0.5px solid var(--rule-soft);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

.career__rows { list-style: none; padding: 0; margin: 0; }
.career__row {
  display: grid;
  grid-template-columns: 132px 200px 1.1fr 1.4fr;
  gap: 22px;
  padding: 18px;
  border-bottom: 0.5px solid var(--rule-soft);
  align-items: start;
  transition: background var(--t-fast) var(--ease);
}
.career__row:hover { background: rgba(232,184,110,0.04); }
.career__row:last-child { border-bottom: 0; }

.career__when { color: var(--amber); white-space: nowrap; }
.career__org { color: var(--ink); font-weight: 500; }
.career__role { color: var(--ink-soft); }
.career__role em {
  color: var(--mute);
  font-style: normal;
  display: block;
  margin-top: 3px;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.career__note {
  color: var(--ink-soft);
  font-family: "Geist", sans-serif;
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: -0.005em;
}

.career__foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 18px;
  border-top: 0.5px solid var(--rule);
  font-size: 11px;
  color: var(--mute);
  background: rgba(0,0,0,0.22);
}
.career__foot strong { color: var(--ink-soft); font-weight: 500; }
.career__foot-tag { color: var(--amber-soft); margin-right: 8px; letter-spacing: 0.10em; }

/* --------- schema (07: ER-diagram CV) --------- */
.beat__grid--schema {
  grid-template-columns: var(--col-narrative) 1fr;
  padding-top: 18vh;
  gap: 80px;
  align-items: start;
}
.beat__lede--schema { top: 14vh; }

.id-card {
  margin: 0 0 28px;
  padding: 12px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  background: rgba(11,11,13,0.85);
  border: 0.5px solid var(--rule);
  position: relative;
}
.id-card::before {
  content: "// id";
  position: absolute;
  top: -7px;
  left: 12px;
  padding: 0 6px;
  font-family: "Geist Mono", monospace;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--bg);
}
.id-card__img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  display: block;
  border: 0.5px solid var(--mute-low);
  image-rendering: pixelated;
}
.id-card__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  line-height: 1.5;
}
.id-card__row { display: grid; grid-template-columns: 38px 1fr; gap: 8px; }
.id-card__k { color: var(--mute); }
.id-card__v { color: var(--ink-soft); }

.schema__hint {
  display: inline-block;
  margin-top: 18px;
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

.schema-stage {
  position: relative;
  background: rgba(11,11,13,0.88);
  backdrop-filter: blur(2px);
  border: 0.5px solid var(--rule);
}
.schema-stage__chrome {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 0.5px solid var(--rule);
  background: var(--amber-faint);
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--mute);
}
.schema-stage__name {
  color: var(--amber);
  letter-spacing: 0.14em;
}
.schema-stage__legend {
  display: inline-flex;
  gap: 8px;
}
.schema-stage__zoom {
  display: inline-flex;
  gap: 0;
  border: 0.5px solid var(--rule);
}
.schema-stage__zoom button {
  background: transparent;
  border: 0;
  color: var(--ink-soft);
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 6px 10px;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.schema-stage__zoom button + button {
  border-left: 0.5px solid var(--rule);
}
.schema-stage__zoom button:hover {
  background: rgba(232,184,110,0.06);
  color: var(--amber);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 0.5px solid var(--rule);
  font-size: 9.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mute);
}
.pill--current::before  { background: var(--amber); box-shadow: 0 0 6px rgba(232,184,110,0.5); }
.pill--building::before { background: var(--amber); }
.pill--shipped::before  { background: #6fbf73; }
.pill--past::before     { background: var(--mute); }

.schema-stage__grid {
  position: relative;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(122,119,112,0.18) 1px, transparent 1px);
  background-size: 22px 22px;
}
.schema-stage__viewport {
  height: clamp(520px, 78vh, 820px);
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}
.schema-stage__viewport.is-dragging { cursor: grabbing; }
.schema-stage__viewport svg {
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
}
.schema-stage__caption {
  font-family: "Geist Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--mute);
  margin: 0;
  padding: 14px 18px;
  border-top: 0.5px solid var(--rule);
  background: rgba(0,0,0,0.22);
}

/* --- Mermaid ER diagram overrides — re-skin to match site --- */
#schema-diagram svg {
  font-family: "Geist Mono", ui-monospace, monospace !important;
}
#schema-diagram .er.entityBox,
#schema-diagram rect.er.entityBox {
  fill: rgba(16,16,18,0.92) !important;
  stroke: rgba(122,119,112,0.55) !important;
  stroke-width: 0.7 !important;
}
#schema-diagram .er.entityLabel,
#schema-diagram text.er.entityLabel {
  fill: var(--ink) !important;
  font-weight: 500 !important;
  font-size: 12px !important;
  letter-spacing: 0.06em !important;
  text-transform: lowercase;
}
#schema-diagram .er.attributeBoxOdd,
#schema-diagram .er.attributeBoxEven {
  fill: rgba(11,11,13,0.85) !important;
  stroke: rgba(122,119,112,0.30) !important;
}
#schema-diagram .er.relationshipLine {
  stroke: var(--mute) !important;
  stroke-width: 0.9 !important;
  fill: none !important;
}
#schema-diagram .er.relationshipLabelBox {
  fill: var(--bg) !important;
  stroke: rgba(122,119,112,0.40) !important;
}
#schema-diagram .er.relationshipLabel {
  fill: var(--mute) !important;
  font-size: 10px !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase;
}
#schema-diagram text {
  fill: var(--ink-soft);
}

/* status accents — applied to top-level entity <g> */
#schema-diagram g.is-self      rect.er.entityBox { stroke: var(--amber) !important; stroke-width: 1.2 !important; }
#schema-diagram g.is-current   rect.er.entityBox:first-of-type { stroke: var(--amber) !important; stroke-width: 1 !important; }
#schema-diagram g.is-current   .er.entityLabel { fill: var(--amber) !important; }
#schema-diagram g.is-building  .er.entityLabel { fill: var(--amber) !important; }
#schema-diagram g.is-shipped   rect.er.entityBox:first-of-type { stroke: #6fbf73 !important; }
#schema-diagram g.is-shipped   .er.entityLabel { fill: #8ed592 !important; }
#schema-diagram g.is-past      .er.entityLabel { fill: var(--ink-soft) !important; }

/* hover dim/bright */
#schema-diagram svg.is-hovering g.is-far { opacity: 0.18; transition: opacity 180ms ease; }
#schema-diagram svg.is-hovering g.is-near { opacity: 1; transition: opacity 180ms ease; }
#schema-diagram svg.is-hovering g.is-hot rect.er.entityBox:first-of-type {
  stroke: var(--amber) !important;
  stroke-width: 1.4 !important;
  filter: drop-shadow(0 0 8px rgba(232,184,110,0.5));
}
#schema-diagram g[id^="entity-"] { transition: opacity 180ms ease; }
#schema-diagram .imanuel-avatar { image-rendering: pixelated; }

/* --------- longform (07.1) --------- */
.longform {
  margin-top: 96px;
  padding-top: 48px;
  border-top: 0.5px solid var(--rule);
}
.longform__grid {
  display: grid;
  grid-template-columns: var(--col-narrative) 1fr;
  gap: 80px;
  align-items: start;
}
.longform__rail { position: sticky; top: 18vh; }
.eyebrow--small { font-size: 10px; }
.longform__rail-note {
  font-family: "Geist Mono", monospace;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--mute);
  max-width: 28ch;
  margin: 14px 0 0;
}
.longform__body { max-width: 68ch; }
.longform__block { margin: 0 0 56px; }
.longform__block:last-child { margin-bottom: 0; }
.longform__h {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 18px;
}
.longform__block p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 16px;
  letter-spacing: -0.005em;
}
.longform__block p:last-child { margin-bottom: 0; }
.longform__block strong { color: var(--ink); font-weight: 500; }

.longform__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 0.5px solid var(--rule-soft);
}
.longform__row:first-of-type { border-top: 0; padding-top: 8px; }
.longform__when {
  font-family: "Geist Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--amber);
}
.longform__what h4 {
  font-family: "Geist", sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 10px;
}
.longform__what p { margin: 0; }

.longform__block--note {
  padding: 28px;
  border: 0.5px solid var(--rule);
  background: rgba(11,11,13,0.75);
}

/* --------- end --------- */
.end {
  max-width: 760px;
  /* Slide in from fully off-screen right as the user scrolls into beat 13 (closing section).
     --end-progress is driven by scroll.js, 0 = fully off-screen right, 1 = settled. */
  transform: translateX(calc((1 - var(--end-progress, 0)) * 110vw));
  opacity: var(--end-progress, 0);
  will-change: transform, opacity;
}
.beat--end {
  /* Hide horizontal overflow so the slide-in doesn't trigger a horizontal scrollbar. */
  overflow: hidden;
}
.end__line {
  font-family: "Geist", sans-serif;
  font-weight: 400;
  font-size: clamp(48px, 6.4vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.034em;
  margin: 0 0 32px;
  color: var(--ink); text-wrap: balance;
}
.end__sub {
  font-size: 18px; line-height: 1.55;
  color: var(--ink-soft); max-width: 54ch; margin: 0 0 56px;
}
.end__links {
  list-style: none; padding: 0;
  margin: 0 0 64px;
  border-top: 0.5px solid var(--rule);
  border-bottom: 0.5px solid var(--rule);
  max-width: 720px;
}
.end__links li {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  padding: 18px 4px;
  border-bottom: 0.5px solid var(--rule);
  transition: padding-left var(--t-base) var(--ease);
}
.end__links li:last-child { border-bottom: none; }
.end__links li:hover { padding-left: 16px; }
.end__links a {
  font-size: 18px; letter-spacing: -0.01em;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 14px;
}
.end__links a::before {
  content: "";
  width: 18px; height: 0.5px;
  background: var(--amber);
  display: inline-block;
  transition: width var(--t-base) var(--ease);
}
.end__links li:hover a::before { width: 28px; }
.end__caption {
  font-family: "Geist Mono", monospace;
  font-size: 10.5px; letter-spacing: 0.10em;
  color: var(--mute); text-transform: uppercase;
}
.end__fine {
  font-family: "Geist Mono", monospace;
  font-size: 11.5px; line-height: 1.75;
  color: var(--mute); max-width: 68ch; margin: 0;
}
.end__fine strong { color: var(--ink); font-weight: 500; }

/* --------- responsive --------- */
/* ============================================================
   MOBILE / TABLET: < 1100px
   Keep the canvas-driven immersive experience. Just collapse the
   layout to a single column, tighten typography, and ensure the
   lede card stays readable on top of the canvas.
   ============================================================ */
@media (max-width: 1100px) {
  :root { --col-narrative: 92%; --col-gap: 24px; --pad-x: 20px; }

  /* Canvas + vignette stay — this is the whole point of the site. */

  /* Single-column layout; lede takes full width, no aside. */
  .beat__grid,
  .beat__grid--proof,
  .beat__grid--track,
  .beat__grid--end {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .beat__aside { display: none; }

  /* Lede stays sticky so it reads while the canvas pans behind. Backing fully opaque on
     mobile so canvas tables cannot bleed through the text. */
  .beat__lede {
    position: sticky;
    top: 12vh;
    padding: 22px 22px 26px;
    max-width: 92%;
  }
  .beat__lede::before {
    display: block;
    inset: 0;
    background: var(--bg);
    backdrop-filter: blur(8px);
  }
  .beat__lede::after { display: none; }

  /* Product cards: solid backing on mobile so canvas tables don't bleed through. */
  .product { background: var(--bg-soft); }

  /* Canvas reads as ambient on mobile, not foreground. Dim the global brightness. */
  #field { opacity: 0.55; }

  /* Products grid: stack. */
  .products { grid-template-columns: 1fr; }

  /* ID-card photo: tighter. */
  .id-card { grid-template-columns: 60px 1fr; gap: 12px; padding: 10px; }
  .id-card__img { width: 60px; height: 60px; }

  /* Nav: hide secondary links, keep CTA. */
  .nav a:not(.nav__cta) { display: none; }

  /* Bottom chrome: hide the center text. */
  .chrome--bot .chrome__center { display: none; }
}

@media (max-width: 720px) {
  /* SMALL PHONES — tighten further. */
  .chrome { padding: 14px 16px; font-size: 10px; }
  .mark__name { display: none; }
  .nav__cta { padding: 6px 10px; font-size: 10px; }

  .lede { font-size: clamp(34px, 9.5vw, 48px); line-height: 1.04; }
  .end__line { font-size: clamp(36px, 10vw, 50px); line-height: 1.04; }
  .lede__sub { font-size: 14px; line-height: 1.55; max-width: 100%; }
  .lede__sub--quiet { font-size: 13.5px; }
  .lede__sub--small { font-size: 13px; }

  .eyebrow { font-size: 10.5px; margin-bottom: 16px; }
  .beat__lede { padding: 20px 18px 22px; max-width: 100%; }

  .product { padding: 20px 18px; min-height: 0; }
  .product__viz { display: none; }
  .product__name { font-size: 22px; }
  .product__desc { font-size: 13.5px; }

  .end__sub { font-size: 15px; max-width: 100%; }
  .end__links a { font-size: 15px; }
  .end__caption { font-size: 9.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .cadence__dot { animation: none; }
  * { transition-duration: 1ms !important; }
}
