@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/JetBrainsMono.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0b0b0d;
  --bg-2: #101013;
  --panel: #141418;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --ink: #f2efe9;
  --ink-2: #b9b4ab;
  --ink-3: #7d7871;
  --amber: #ffb454;
  --amber-2: #ffcd85;
  --amber-ink: #2b1a00;
  --amber-soft: rgba(255, 180, 84, 0.12);
  --mint: #7fe0b0;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1180px;
  --gutter: 32px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* faint drafting grid + grain, fixed behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(1200px 700px at 50% 0%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(1200px 700px at 50% 0%, #000 30%, transparent 100%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main,
.site-header,
.site-footer,
.ticker {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

.wrap {
  width: min(100% - var(--gutter) * 2, var(--wrap));
  margin-inline: auto;
}

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}

.sep {
  color: var(--ink-3);
  padding: 0 0.35em;
}

em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--amber-2);
  letter-spacing: 0;
  font-size: 1.06em;
}

.icon {
  width: 16px;
  height: 16px;
  flex: none;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 14px;
  background: var(--amber);
  color: var(--amber-ink);
  border-radius: 6px;
  font-weight: 600;
  z-index: 100;
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* ---------- type ---------- */
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.kicker .num {
  color: var(--amber);
}

.display {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(44px, 6vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-top: 22px;
  max-width: 12ch;
}

.display-2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-top: 16px;
  max-width: 18ch;
}

.display-3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-top: 14px;
}

.display-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 3.6vw, 46px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 56ch;
}

.intro {
  margin-top: 16px;
  font-size: 17px;
  color: var(--ink-2);
  max-width: 60ch;
}

/* word mask reveal */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.wi {
  display: inline-block;
}

.js .reveal-words .wi {
  transform: translateY(112%);
  transition: transform 900ms var(--ease-out);
  transition-delay: calc(var(--w, 0) * 60ms);
}

.js .reveal-words.in .wi {
  transform: none;
}

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  background: transparent;
  transition: background 200ms var(--ease), border-color 200ms var(--ease), transform 200ms var(--ease), color 200ms var(--ease);
}

.btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn-solid {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--amber-ink);
}

.btn-solid:hover {
  background: var(--amber-2);
  border-color: var(--amber-2);
}

.btn-sm {
  padding: 9px 14px;
  font-size: 13px;
  white-space: nowrap;
}

.btn .icon-arrow {
  transition: transform 200ms var(--ease);
}

.btn:hover .icon-arrow {
  transform: translate(2px, -2px);
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  border-bottom: 1px solid transparent;
  transition: color 160ms var(--ease);
}

.textlink:hover {
  color: var(--ink);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 34px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 13, 0.6);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(11, 11, 13, 0.82);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand-last {
  font-weight: 500;
  color: var(--ink-2);
}

.site-nav {
  display: none;
  gap: 2px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 160ms var(--ease), background 160ms var(--ease);
}

.site-nav .num {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  transition: color 160ms var(--ease);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.site-nav a.active .num {
  color: var(--amber);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
}

.pulse,
.live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(127, 224, 176, 0.6);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(127, 224, 176, 0.55);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(127, 224, 176, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(127, 224, 176, 0);
  }
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 220ms var(--ease);
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* ---------- hero ---------- */
.hero {
  padding: 84px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(400px, 6fr);
  gap: 56px;
  align-items: center;
}

.hero .kicker {
  display: block;
  line-height: 1.9;
}

.hero .kicker .accent {
  color: var(--mint);
}

.hero .lead {
  margin-top: 30px;
}

/* screenshot collage */
.hero-grid {
  align-items: center;
}

.collage {
  position: relative;
  perspective: 1400px;
  perspective-origin: 60% 40%;
}

.collage-scene {
  position: relative;
  height: clamp(300px, 30vw, 420px);
  transform-style: preserve-3d;
  transition: transform 500ms var(--ease-out);
  will-change: transform;
}

.shot {
  position: absolute;
  display: block;
  transform-style: preserve-3d;
  will-change: transform;
}

/* The link keeps a stable hit area; only the card inside moves on hover, so the
   pointer can never slide off the element it is hovering. */
.shot-card {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(242, 239, 233, 0.16);
  background: #141418;
  box-shadow:
    0 30px 60px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(0, 0, 0, 0.6);
  transform: translateZ(0);
  transition: transform 600ms var(--ease-out), box-shadow 600ms var(--ease-out), filter 400ms var(--ease);
  will-change: transform;
}

.shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}

.shot-loop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 0 0);
  transform: scale(var(--zoom, 1));
  opacity: 0;
  transition: opacity 360ms var(--ease);
  pointer-events: none;
}

.shot.playing .shot-loop {
  opacity: 1;
}

.shot-cap {
  z-index: 1;
  position: absolute;
  white-space: nowrap;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  gap: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(11, 11, 13, 0.78);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.shot-cap .mono {
  font-size: 11px;
  color: var(--ink);
}

.shot-cap .dim {
  color: var(--ink-3);
}

/* Four slots, front to back: 1 is the lead product (left, largest); the right side is a
   column with 3 on top, 2 below, and 4 tucked behind in the gap between them.
   Every card stays in front of the scene plane (z > 0): anything behind it is
   hit-tested as the scene itself and can never receive hover. */
.shot-1 {
  left: 0;
  top: 18%;
  width: 67%;
  transform: translate3d(0, var(--py, 0px), 150px) rotateY(4deg);
}

.shot-2 {
  right: 4%;
  bottom: -8%;
  width: 46%;
  transform: translate3d(0, var(--py, 0px), 100px) rotateY(-4deg);
}

.shot-3 {
  right: 6%;
  top: 0;
  width: 46%;
  transform: translate3d(0, var(--py, 0px), 60px) rotateY(-6deg);
}

.shot-3 .shot-card {
  filter: brightness(0.9);
}

.shot-4 {
  right: -2%;
  top: 31%;
  width: 44%;
  transform: translate3d(0, var(--py, 0px), 12px) rotateY(-8deg);
}

.shot-4 .shot-card {
  filter: brightness(0.72);
}

/* Between the stacked tablet layout and wide desktops the cards are too narrow for a status. */
@media (min-width: 861px) and (max-width: 1239px) {
  .shot-cap .dim {
    display: none;
  }
}

/* The lead card is a light product among dark ones: take the edge off its glare until hovered. */
.shot-1 .shot-card {
  filter: brightness(0.94);
}

/* The lead card is a tall dashboard: show its top, and scroll it on hover. */
.shot-pan img {
  object-position: 50% 0;
  transition: object-position 5s cubic-bezier(0.45, 0, 0.25, 1);
}

.shot-pan:hover img {
  object-position: 50% 100%;
}

@media (min-width: 861px) {
  .shot-3 .shot-cap {
    bottom: auto;
    top: 10px;
  }
  /* Only the middle band of the tucked-in card shows, so its label sits there. */
  .shot-4 .shot-cap {
    left: auto;
    right: 10px;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
  }
}

.collage:hover .shot-card {
  filter: brightness(0.82);
}

.collage .shot:hover .shot-card {
  filter: brightness(1);
  box-shadow:
    0 50px 80px -30px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 180, 84, 0.35);
}

/* Each card straightens and comes forward past its neighbours from wherever it sits in depth. */
.collage .shot-1:hover .shot-card {
  transform: translate3d(0, -6px, 60px) rotateY(-4deg);
}

.collage .shot-2:hover .shot-card {
  transform: translate3d(0, -6px, 130px) rotateY(4deg);
}

.collage .shot-3:hover .shot-card {
  transform: translate3d(0, -6px, 200px) rotateY(6deg);
}

.collage .shot-4:hover .shot-card {
  transform: translate3d(0, -6px, 240px) rotateY(-5deg);
}

@keyframes float-a {
  0%,
  100% {
    --py: 0px;
  }
  50% {
    --py: -8px;
  }
}

/* ---------- sections ---------- */
.section {
  padding: 120px 0 40px;
}

.section-head {
  margin-bottom: 56px;
}

/* ---------- work spreads ---------- */
.spread {
  border-top: 1px solid var(--line);
  padding: 64px 0;
}

.spread:last-of-type {
  border-bottom: 1px solid var(--line);
}

.spread-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}

.spread-sticky {
  position: sticky;
  top: 100px;
}

.spread-index {
  font-size: 13px;
  color: var(--amber);
}

.spread-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  width: fit-content;
}

.spread-brand .app-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.spread-brand > span:first-of-type {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.spread-brand .dim {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--ink-3);
  transition: color 160ms var(--ease);
}

.spread-brand .icon-arrow {
  width: 13px;
  height: 13px;
}

.spread-brand:hover .dim {
  color: var(--amber-2);
}

.tag {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.spread-title {
  margin-top: 18px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.spread-summary {
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 16px;
}

.stack {
  margin-top: 18px;
  line-height: 1.7;
}

.diagram-frame {
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(400px 200px at 20% 0%, rgba(255, 180, 84, 0.08), transparent 60%),
    var(--panel);
  padding: 22px 20px 14px;
}

.diagram {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 600px) {
  .spread-main {
    min-width: 0;
  }
  .diagram-frame {
    min-width: 0;
    max-width: 100%;
  }
  .diagram-scroll {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  .diagram {
    min-width: 520px;
  }
}

.diagram-frame figcaption {
  margin-top: 8px;
  text-align: right;
}

.dg-edge {
  fill: none;
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1.2;
  stroke-dasharray: 3 4;
}

.dg-dot {
  fill: var(--amber);
  filter: drop-shadow(0 0 6px rgba(255, 180, 84, 0.9));
}

.dg-node rect {
  fill: #1a1a1f;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1;
}

.dg-label {
  fill: var(--ink);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
}

.dg-sub {
  fill: var(--ink-3);
  font-family: var(--mono);
  font-size: 10px;
}

.outcomes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.outcomes > div {
  padding: 20px 18px 20px 0;
  border-right: 1px solid var(--line);
}

.outcomes > div:not(:first-child) {
  padding-left: 18px;
}

.outcomes > div:last-child {
  border-right: 0;
}

.outcomes span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.45;
}

.list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
}

.list .result {
  display: block;
  color: var(--ink);
  font-weight: 500;
}

.list .how {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-3);
}

.list li.has-how + li {
  margin-top: 4px;
}

.dash {
  width: 14px;
  height: 2px;
  margin-top: 10px;
  border-radius: 2px;
  background: var(--amber);
}

/* ---------- products shelf ---------- */
.shelf {
  display: grid;
  gap: 72px;
}

.shelf-item {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: center;
}

.shelf-item:nth-child(even) .shelf-media {
  order: 2;
}

.shelf-media {
  position: relative;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: #0e0e11;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
}

.shelf-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 300ms var(--ease);
  pointer-events: none;
}

.shelf-media:hover::after {
  opacity: 1;
}

.shelf-media img,
.shelf-media video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}

/* Looping product clips: framed like the still, cropped by --zoom when the video has padding baked in. */
.shelf-media video {
  object-position: var(--pos, 0 0);
  transform: scale(var(--zoom, 1));
  transform-origin: 50% 50%;
}

.shelf-media.contain {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(320px 220px at 50% 55%, rgba(127, 224, 176, 0.14), transparent 70%),
    #0e0e11;
}

.shelf-media.contain img {
  width: 42%;
  max-width: 240px;
  aspect-ratio: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.6));
}


.shelf-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-mark {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 11px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 10px 24px -12px rgba(0, 0, 0, 0.9);
}

.shelf-status {
  margin-top: 6px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--amber-2);
}

.shelf-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 24px;
}

.shelf-links .textlink {
  padding: 9px 4px;
  font-size: 13px;
}

.btn .dim {
  margin-left: 2px;
  font-weight: 500;
  color: var(--ink-3);
}

.play {
  width: 0;
  height: 0;
  border-left: 8px solid var(--amber);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.shelf-copy h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 2.8vw, 36px);
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.shelf-copy h3 a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.shelf-copy h3 a:hover {
  color: var(--amber-2);
}

.shelf-copy h3 .icon-arrow {
  width: 20px;
  height: 20px;
  color: var(--ink-3);
}

.shelf-copy > p {
  margin-top: 16px;
  color: var(--ink-2);
}

.shelf-copy .list {
  margin-top: 18px;
}

.minis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 72px;
  border-top: 1px solid var(--line);
}

.mini {
  display: grid;
  gap: 8px;
  padding: 22px 20px 22px 0;
  border-bottom: 1px solid var(--line);
  transition: background 200ms var(--ease);
}

.mini + .mini {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.mini:hover .mini-name {
  color: var(--amber-2);
}

.mini-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  transition: color 160ms var(--ease);
}

.mini-sum {
  font-size: 14px;
  color: var(--ink-2);
}

/* ---------- experience ledger ---------- */
.ledger {
  position: relative;
  display: grid;
  gap: 0;
}

.ledger-line {
  position: absolute;
  left: 139px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.ledger-progress {
  display: block;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, var(--amber), rgba(255, 180, 84, 0.2));
  transition: height 120ms linear;
}

.ledger-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 48px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.ledger-row:first-of-type {
  border-top: 1px solid var(--line);
}

.ledger-year {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.ledger-year .mono {
  font-size: 13px;
  color: var(--ink-2);
  padding-top: 6px;
}

.ledger-dot {
  position: absolute;
  right: -24.5px;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--ink-3);
}

.ledger-row.current .ledger-dot {
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(255, 180, 84, 0.18);
}

.ledger-body h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.ledger-meta {
  margin-top: 8px;
  font-size: 12.5px;
}

.ledger-summary {
  margin-top: 14px;
  color: var(--ink-2);
  max-width: 64ch;
}

.ledger-body .list {
  margin-top: 16px;
  max-width: 64ch;
}

.earlier {
  margin-top: 26px;
  padding-left: 0;
  color: var(--ink-3);
  font-size: 14px;
  max-width: 80ch;
}

/* ---------- operating loop ---------- */
.loop-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px;
  align-items: center;
  margin-top: 120px;
  padding-top: 96px;
  border-top: 1px solid var(--line);
}

.loop-steps {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.loop-steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
}

.loop-steps .num {
  padding-top: 3px;
  color: var(--amber);
}

.loop-steps h4 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.loop-steps p {
  margin-top: 2px;
  font-size: 14.5px;
  color: var(--ink-2);
}

.loop-ring {
  display: grid;
  place-items: center;
}

.ring {
  width: min(100%, 380px);
  height: auto;
  overflow: visible;
}

.ring-track {
  fill: none;
  stroke: var(--line-2);
  stroke-width: 1;
}

.ring-flow {
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.5;
  stroke-dasharray: 40 700;
  stroke-linecap: round;
  animation: ringflow 6s linear infinite;
}

@keyframes ringflow {
  to {
    stroke-dashoffset: -740;
  }
}

.ring-center {
  fill: var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  text-anchor: middle;
}

.ring-center-sub {
  fill: var(--ink-3);
  font-family: var(--mono);
  font-size: 11px;
  text-anchor: middle;
  letter-spacing: 0.08em;
}

.ring-node circle {
  fill: var(--bg);
  stroke: var(--line-2);
}

.ring-node text {
  fill: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
}

/* ---------- skill tiers ---------- */
.tiers {
  margin-top: 120px;
}

.tiers .section-head {
  margin-bottom: 28px;
}

.tier {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 48px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.tier:last-child {
  border-bottom: 1px solid var(--line);
}

.tier-head h4 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.015em;
}

.tier-head p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-3);
}

.tier-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Each skill is its own chip, so items read as separate units on every row. */
.skill {
  display: inline-flex;
  align-items: center;
  gap: 0.42em;
  padding: 0.38em 0.85em 0.38em 0.7em;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--panel);
  transition: border-color 180ms var(--ease), background 180ms var(--ease), transform 220ms var(--ease-out);
}

.skill[data-plain] {
  padding-left: 0.85em;
}

.skill:hover {
  border-color: rgba(255, 180, 84, 0.55);
  background: var(--panel-2, #191920);
  transform: translateY(-1px);
}

svg.brand {
  width: 0.78em;
  height: 0.78em;
  flex: none;
  color: var(--ink-3);
  transition: color 200ms var(--ease), transform 260ms var(--ease-out);
}

.skill:hover .brand {
  color: var(--brand, var(--amber));
  transform: translateY(-1px) scale(1.08);
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.stack-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stack-item .brand {
  width: 12px;
  height: 12px;
}

.stack-item:hover .brand {
  color: var(--brand, var(--amber));
}

.tier-items {
  font-family: var(--display);
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink);
}


/* ---------- about ---------- */
.section-about {
  padding-top: 140px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px;
  margin-top: 40px;
}

.about-copy p + p {
  margin-top: 16px;
  color: var(--ink-2);
}

.facts {
  border-top: 1px solid var(--line);
}

.facts div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.facts dt {
  padding-top: 3px;
}

.facts dd {
  margin: 0;
}

/* ---------- contact ---------- */
.section-contact {
  padding-top: 140px;
  padding-bottom: 96px;
}

.big-email {
  display: block;
  margin-top: 44px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: border-color 200ms var(--ease);
}

.big-email:hover {
  border-color: var(--amber);
}

.big-email-text {
  display: block;
  padding: 0.06em 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 4.4vw, 60px);
  letter-spacing: -0.03em;
  line-height: 1.15;
  word-break: break-all;
  color: var(--ink);
  transition: color 300ms var(--ease);
}

.big-email:hover .big-email-text {
  color: var(--amber-2);
}

.big-email-hint {
  display: block;
  margin-top: 12px;
}

.contact-row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  margin-top: 36px;
  align-items: start;
}

.contact-row .actions {
  margin-top: 0;
}

.fit .list {
  margin-top: 12px;
  gap: 8px;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  font-size: 14px;
  color: var(--ink-2);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-inner .textlink .icon-arrow {
  transform: rotate(-90deg);
}

/* ---------- reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}


/* ---------- side dot navigation ---------- */
.dotnav {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: grid;
  gap: 28px;
}

.dotnav a {
  z-index: 2;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 4px;
  width: 44px;
  height: 44px;
  justify-content: center;
}

.dotnav .dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #f2ece0 0%, #c2b7a4 46%, #817766 100%);
  box-shadow: inset -2px -3px 5px #645b5730, 0 3px 6px #2c22131a;
  transition: transform 200ms var(--ease), background 200ms var(--ease);
}

.dotnav a.active .dot {
  background: radial-gradient(circle at 32% 26%, #ffe8a3 0%, #e6b752 44%, #aa7027 100%);
  transform: scale(1.12);
}

.dotnav .dot-label {
  position: absolute;
  right: 80px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 160ms var(--ease), transform 160ms var(--ease);
  pointer-events: none;
}

.dotnav a:hover .dot-label,
.dotnav a.active .dot-label {
  opacity: 1;
  transform: none;
}

.dotnav a.active .dot-label {
  color: var(--ink);
}

.dotnav a:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 50%; }
.dotnav a:focus-visible .dot-label { opacity: 1; transform: none; }
.orb-companion { position: absolute; z-index: 3; top: 0; right: 22px; width: 0; height: 0; pointer-events: none; opacity: 0; }
.orb-companion[data-depth="behind"] { z-index: 1; }
.orb-companion.ready { opacity: 1; }
.companion-sprite { position: absolute; width: 112px; height: 96px; left: -56px; bottom: 11px; transform-origin: 50% 100%; will-change: transform; }
.companion-sprite img { width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; }
.companion-sprite .companion-attention { position: absolute; inset: 0; clip-path: inset(0 0 44% 0); pointer-events: none; opacity: 0; transform-origin: 50% 55%; transition: transform 220ms var(--ease-out); }
.companion-looking .companion-sprite > img:first-child { clip-path: inset(55% 0 0); }
.companion-looking .companion-attention { opacity: 1; }
.orb-companion[data-action="rest"] .companion-sprite { transition: transform 160ms var(--ease-out); }
.companion-ring { position: absolute; left: 0; top: 0; width: 25px; height: 25px; border: 1px solid #c99b51; border-radius: 50%; opacity: 0; }
.companion-props { position: absolute; overflow: visible; pointer-events: none; }
.companion-tether { fill: none; stroke: #ddbd7c; stroke-width: 1.1; stroke-linecap: round; opacity: 0; }
.companion-rope-hook { fill: #27231d; stroke: #ddbd7c; stroke-width: 1; opacity: 0; }
.companion-portals, .companion-stars { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.companion-portal { position: absolute; right: 60px; width: 30px; height: 82px; transform: translate(50%,-50%) scaleX(var(--portal-open,1)); }
.companion-portal:first-child { right: 76px; }
.portal-back, .portal-front { position: absolute; inset: 0; border: 3px solid #dfbb79; border-radius: 50%; }
.portal-back { z-index: 1; background: radial-gradient(ellipse, #15151c 35%, #504464 75%, #dbb477 100%); }
.portal-front { z-index: 4; border-color: #f2d99e; clip-path: inset(0 0 0 50%); }
.companion-portal:first-child .portal-back { border-color: #cbb8df; }
.companion-portal:first-child .portal-front { border-color: #e2d4f8; }
.companion-plane { position: absolute; width: 52px; height: 20px; left: -26px; top: -13px; opacity: 0; pointer-events: none; transform-origin: 50% 2px; }
.companion-plane svg { width: 100%; height: 100%; }
.companion-stars i { position: absolute; width: 12px; height: 12px; background: linear-gradient(135deg,#fff0be,#d7a95f); clip-path: polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 94%,50% 72%,21% 94%,32% 57%,2% 35%,39% 35%); }
.companion-click-impact { position: fixed; width: 0; height: 0; z-index: 50; pointer-events: none; }
.click-impact-ring { position: absolute; width: 15px; height: 15px; left: -7px; top: -7px; border: 2px solid #edc17b; border-radius: 50%; }
.click-impact-pointer { position: absolute; width: 16px; height: 21px; left: 0; top: 0; fill: #f3d48f; stroke: #5e4224; stroke-width: 1.2; }
.companion-edge { position: absolute; left: 37px; top: -66px; width: 10px; height: 28px; border-right: 2px solid #d1c8b0; border-top: 2px solid #d1c8b0; border-radius: 0 3px 0 0; opacity: 0; }
.companion-balloon { position: absolute; width: 13px; height: 17px; left: 7px; bottom: 83px; border-radius: 50% 50% 46% 46%; background: radial-gradient(circle at 30% 25%, #fff4c7, #e9b44e 50%, #b37c2b); opacity: 0; }
.companion-balloon::after { content: ''; position: absolute; top: 17px; left: 6px; width: 1px; height: 12px; background: #d4ac64; }
.companion-hit { position: absolute; left: -14px; bottom: 14px; width: 28px; height: 56px; padding: 0; border: 0; background: transparent; border-radius: 45% 45% 30% 30%; pointer-events: auto; cursor: grab; touch-action: none; transform-origin: 50% 100%; }
.companion-hit:focus-visible { outline: 2px dashed #e7bf73; outline-offset: 4px; }
.companion-status { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dotnav:has(.orb-companion[data-action="media-hop"]) .dot-label { opacity: 0; }
@media (min-width: 861px) {
  main .wrap, footer .wrap { width: min(1180px, calc(100% - 176px)); margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .companion-sprite { will-change: auto; }
  .companion-sprite .companion-attention { transition: none; }
  .orb-companion[data-action="rest"] .companion-sprite { transition: none; }
  .dotnav .dot { transition: none; }
}
@media (min-width: 861px) and (max-height: 650px) {
  .dotnav { gap: 12px; top: calc(50% + 24px); }
}
@media (max-height: 460px) {
  .orb-companion { display: none; }
  .dotnav { gap: 4px; }
}

/* subtle canvas link in the header */
.canvas-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-3);
  transition: color 160ms var(--ease), background 160ms var(--ease);
}

.canvas-link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.canvas-link .icon {
  width: 14px;
  height: 14px;
}

/* ---------- horizontal chronology ---------- */
.chrono {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-2);
  overflow: hidden;
}

.chrono-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.chrono-controls {
  display: flex;
  gap: 8px;
}

.ctl {
  height: 34px;
  min-width: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms var(--ease);
}

.ctl:hover {
  background: rgba(255, 255, 255, 0.06);
}

.ctl-now {
  color: var(--amber);
  border-color: rgba(255, 180, 84, 0.45);
}

.chrono-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: opacity 600ms var(--ease);
}

.chrono-hint.seen,
.chrono.touched .chrono-hint {
  opacity: 0.5;
}

.drag-hint {
  position: relative;
  width: 34px;
  height: 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}

.drag-hint::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 4px;
  border-radius: 999px;
  background: var(--amber);
  animation: drag-hint 2.4s var(--ease) infinite;
}

@keyframes drag-hint {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(18px);
  }
}

.chrono.touched .drag-hint::after {
  animation: none;
}

.rail-wrap {
  position: relative;
}

.rail {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-x pan-y;
}

.rail::-webkit-scrollbar {
  display: none;
}

.rail.dragging {
  cursor: grabbing;
}

.rail:focus-visible {
  outline-offset: -2px;
}

.rail-edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 56px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 34px;
  color: var(--ink-3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms var(--ease);
}

.rail-edge-l {
  left: 0;
  background: linear-gradient(to right, var(--bg-2) 20%, transparent);
}

.rail-edge-r {
  right: 0;
  background: linear-gradient(to left, var(--bg-2) 20%, transparent);
}

.rail-edge.on {
  opacity: 1;
}

.track {
  position: relative;
  height: 552px;
  padding-left: 40px;
}

.years {
  position: absolute;
  inset: 0;
}

.year {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 1px solid var(--line);
}

.year.quiet .year-label {
  opacity: 0.45;
}

.year-label {
  position: absolute;
  top: 12px;
  left: 8px;
  color: var(--ink-2);
}

.lanes {
  position: absolute;
  left: 0;
  right: 0;
  top: 44px;
  height: 268px;
}

.lane-name {
  position: absolute;
  left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  color: var(--ink-3);
  pointer-events: none;
}

.bar {
  position: absolute;
  height: 60px;
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: clip;
  transition: background 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease);
}

.bar:hover,
.bar.selected {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.bar.current {
  background: rgba(255, 180, 84, 0.1);
  border-color: rgba(255, 180, 84, 0.45);
}

.bar.current.selected,
.bar.current:hover {
  border-color: var(--amber);
}

.bar.lane-0 {
  top: 22px;
}

.bar.lane-1 {
  top: 110px;
}

.bar.lane-2 {
  top: 198px;
}

.bar-inner {
  position: sticky;
  left: 64px;
  display: inline-block;
  max-width: 100%;
}

.bar-title {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-sub {
  display: block;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pills {
  position: absolute;
  left: 0;
  right: 0;
  top: 322px;
  height: 130px;
  z-index: 3;
  border-top: 1px dashed var(--line-2);
}

.pills .lane-name {
  top: 6px;
}

.pill {
  position: absolute;
  top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 36px;
  padding: 0 12px 0 5px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 160ms var(--ease), background 160ms var(--ease), transform 200ms var(--ease-out);
}

.pill:hover {
  z-index: 6;
  transform: translateY(-1px);
}

.pill-icon {
  width: 24px;
  height: 24px;
  flex: none;
  margin-left: 1px;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.pill-thumb {
  width: 44px;
  height: 26px;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  flex: none;
}

.pill-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

/* Leader lines from the true month on the lane line to the card. */
.pill-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.pill-links path {
  fill: none;
  stroke: var(--line-2);
  stroke-width: 1;
}

.pill-links circle {
  fill: var(--ink-3);
  stroke: var(--bg-2);
  stroke-width: 2;
}

.pill-links circle.proj-clipvault {
  fill: var(--mint);
}

.pill-links circle.proj-showtracker {
  fill: #ff7b72;
}

.pill-links circle.proj-nestor {
  fill: #9bb4dc;
}

.pill-links circle.proj-arcane {
  fill: var(--amber);
}

/* Hover preview: the product screenshot above the card. */
.pill-pop {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: 236px;
  padding: 7px;
  border-radius: 13px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  box-shadow: 0 34px 70px -24px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transform-origin: bottom left;
  transition: opacity 180ms var(--ease), transform 260ms var(--ease-out);
  pointer-events: none;
  text-align: left;
  white-space: normal;
  line-height: 1.4;
}

.pill-pop.pop-right {
  left: auto;
  right: 0;
  transform-origin: bottom right;
}

.pill-pop img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border-radius: 8px;
  background: #000;
}

.pop-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin: 8px 2px 0;
  font-size: 12.5px;
}

.pop-meta .mono {
  color: var(--ink-3);
  font-size: 10.5px;
}

.pop-detail {
  display: block;
  margin: 2px 2px 1px;
  font-size: 11.5px;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pill:hover .pill-pop,
.pill:focus-visible .pill-pop {
  opacity: 1;
  transform: none;
}

.pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-3);
}

.pill.proj-clipvault i {
  background: var(--mint);
}

.pill.proj-showtracker i {
  background: #ff7b72;
}

.pill.proj-nestor i {
  background: #9bb4dc;
}

.pill.proj-arcane i {
  background: var(--amber);
}

.pill-date {
  color: var(--ink-3);
}

.pill:hover,
.pill.selected {
  border-color: rgba(255, 255, 255, 0.4);
  background: var(--panel-2, #191920);
}

.marks {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 78px;
  border-top: 1px dashed var(--line-2);
}

.mark {
  position: absolute;
  top: -1px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.mark-dot {
  width: 9px;
  height: 9px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--ink-3);
  border: 2px solid var(--bg-2);
  box-shadow: 0 0 0 1px var(--line-2);
  transition: transform 160ms var(--ease);
}

.mark.kind-career .mark-dot {
  background: var(--amber);
}

.mark.kind-now .mark-dot {
  background: var(--mint);
}

.mark-label {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-2);
  white-space: nowrap;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mark.row-1 .mark-label {
  margin-top: 16px;
}

.mark.row-2 .mark-label {
  margin-top: 32px;
}

.mark:hover .mark-dot,
.mark.selected .mark-dot {
  transform: scale(1.4);
}

.mark:hover .mark-label,
.mark.selected .mark-label {
  color: var(--ink);
}

.now {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 1px solid var(--mint);
  pointer-events: none;
}

.now .mono {
  position: absolute;
  top: 10px;
  left: -14px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--mint);
  color: #062a1a;
  font-weight: 600;
}

.scrub {
  position: relative;
  height: 3px;
  margin: 0 18px;
  background: var(--line);
}

.scrub-thumb {
  position: absolute;
  top: -1px;
  height: 5px;
  width: 20%;
  border-radius: 3px;
  background: var(--amber);
  transition: left 80ms linear;
}

.detail {
  padding: 24px 18px 26px;
  min-height: 190px;
}

/* ---------- detail stepper ---------- */
.detail-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}

.dnav {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  max-width: 100%;
  transition: background 160ms var(--ease), opacity 160ms var(--ease);
}

.dnav-next {
  justify-self: end;
  text-align: right;
}

.dnav:hover:not(:disabled) {
  background: var(--panel);
}

.dnav:disabled {
  opacity: 0.3;
  cursor: default;
}

.dnav-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  transition: border-color 160ms var(--ease), transform 220ms var(--ease-out), background 160ms var(--ease);
}

.dnav-prev .dnav-arrow {
  transform: scaleX(-1);
}

.dnav:hover:not(:disabled) .dnav-arrow {
  border-color: var(--amber);
  background: var(--amber-soft);
}

.dnav-next:hover:not(:disabled) .dnav-arrow {
  transform: translateX(3px);
}

.dnav-prev:hover:not(:disabled) .dnav-arrow {
  transform: scaleX(-1) translateX(3px);
}

.dnav-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.dnav-kicker {
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dnav-name {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dnav-mid {
  display: grid;
  justify-items: center;
  gap: 3px;
  text-align: center;
}

.dnav-count {
  font-size: 12px;
  color: var(--ink-2);
}

.dnav-hint {
  font-size: 10.5px;
  color: var(--ink-3);
}

.detail-card {
  transition: opacity 280ms var(--ease), transform 360ms var(--ease-out);
}

.detail-card.enter {
  opacity: 0;
  transform: translateY(12px);
}

@keyframes flash-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 180, 84, 0.55);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(255, 180, 84, 0);
  }
}

.bar.flash,
.pill.flash {
  animation: flash-ring 720ms var(--ease-out);
}

.detail-card h3 {
  margin-top: 6px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.detail-card .summary {
  margin-top: 10px;
  color: var(--ink-2);
  max-width: 68ch;
}

.detail-card .list {
  margin-top: 14px;
  max-width: 68ch;
}

@media (max-width: 860px) {
  .dotnav {
    display: none;
  }
}

@media (max-width: 860px) {
  .canvas-link span {
    display: none;
  }
  .chrono-tools {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .track {
    height: 530px;
  }
  .hint-range,
  .pill-pop,
  .dnav-hint,
  .dnav-name {
    display: none;
  }
  .detail-nav {
    gap: 8px;
  }
  .dnav {
    padding: 6px;
  }
  .rail-edge {
    width: 40px;
    font-size: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal,
  .js .reveal-words .wi {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .ring-flow,
  .pulse,
  .live,
  .drag-hint::after {
    animation: none;
  }
  .dg-dot {
    display: none;
  }
  .btn,
  .shelf-media,
  .shot,
  .shot-card,
  .shot-pan img,
  .big-email-text {
    transition: none;
  }
  .shot-pan:hover img {
    object-position: 50% 0;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-demo {
    max-width: 720px;
  }
  /* Stacked hero: keep the desktop scene's proportions so the four cards keep their layout. */
  .collage-scene {
    height: auto;
    aspect-ratio: 3 / 2;
  }
  .spread-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .spread-sticky {
    position: static;
  }
  .loop-grid,
  .about-grid,
  .contact-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .loop-ring {
    order: -1;
  }
  .tier {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 860px) {
  :root {
    --gutter: 20px;
  }
  .site-nav {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 10px 20px 18px;
    background: #0b0b0d;
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 180ms;
  }
  .nav-open .site-nav {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .site-nav a {
    padding: 12px 10px;
    font-size: 16px;
  }
  .nav-toggle {
    display: flex;
  }
  .avail {
    display: none;
  }
  .hero {
    padding: 48px 0 40px;
  }
  .section {
    padding: 88px 0 24px;
  }
  .section-head {
    margin-bottom: 36px;
  }
  .spread {
    padding: 44px 0;
  }
  .collage-scene {
    height: auto;
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    transform: none !important;
  }
  .shot,
  .shot:hover {
    position: static;
    width: auto;
    transform: none !important;
  }
  .shot-card,
  .shot:hover .shot-card {
    transform: none !important;
    filter: none;
  }
  .shot-1 {
    grid-column: 1 / -1;
  }
  .shot-4 {
    display: none;
  }
  .shelf {
    gap: 48px;
  }
  .shelf-item,
  .shelf-item:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .shelf-item:nth-child(even) .shelf-media {
    order: 0;
  }
  .minis {
    grid-template-columns: 1fr;
  }
  .mini + .mini {
    padding-left: 0;
    border-left: 0;
  }
  .ledger-line {
    left: 0;
  }
  .ledger-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-left: 22px;
  }
  .ledger-dot {
    left: -26px;
    right: auto;
  }
  .earlier {
    padding-left: 0;
  }
  .loop-grid {
    margin-top: 72px;
    padding-top: 64px;
  }
  .tiers {
    margin-top: 72px;
  }
  .section-about,
  .section-contact {
    padding-top: 96px;
  }
  .outcomes {
    grid-template-columns: 1fr;
  }
  .outcomes > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
  }
  .outcomes > div:not(:first-child) {
    padding-left: 0;
  }
  .outcomes > div:last-child {
    border-bottom: 0;
  }
  .display-num {
    font-size: 30px;
  }
  .facts div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .display {
    font-size: clamp(38px, 12vw, 52px);
    max-width: none;
  }
  .header-actions .btn span {
    display: none;
  }
  .collage-scene {
    grid-template-columns: 1fr;
  }
  .tier-items {
    font-size: 18px;
  }
}

/* ---------- 404 ---------- */
.not-found {
  min-height: calc(100vh - 220px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  width: min(100% - var(--gutter) * 2, var(--wrap));
  padding: 96px 0 64px;
  margin: 0 auto;
}

.not-found .display {
  max-width: 12ch;
}

.not-found .lead {
  max-width: 48ch;
}

/* ---------- product film dialog ---------- */
.film {
  width: min(1120px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}

.film::backdrop {
  background: rgba(6, 6, 8, 0.84);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.film-frame {
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: #0c0c0f;
  overflow: hidden;
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.95);
}

.film[open] .film-frame {
  animation: film-in 320ms var(--ease-out);
}

@keyframes film-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
}

.film-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 10px 10px 18px;
  border-bottom: 1px solid var(--line);
}

.film-bar .mono {
  font-size: 12px;
  color: var(--ink-2);
}

.film-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.film-close:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.35);
}

.film-close .icon {
  width: 16px;
  height: 16px;
}

.film-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 110px);
  background: #000;
}

html.film-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .film[open] .film-frame {
    animation: none;
  }
  .shot-loop {
    display: none;
  }
}

/* Readable career history; the timeline is an optional enhancement. */
.role-list { margin-top: 48px; }
.role-entry { padding: 30px 0; border-top: 1px solid var(--line); max-width: 900px; }
.role-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.role-heading h3 { font-family: var(--display); font-size: 24px; letter-spacing: -.02em; }
.role-company { color: var(--amber); margin-bottom: 6px; }
.role-dates { white-space: nowrap; color: var(--ink-2); }
.role-mode { margin: 8px 0 14px; color: var(--ink-3); }
.role-summary, .role-entry .list { max-width: 75ch; }
.role-entry .list { margin-top: 12px; gap: 10px; }
.timeline-disclosure { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 22px; }
.timeline-disclosure summary { cursor: pointer; color: var(--ink-2); padding: 12px 0; }
.work-method, .skills-block { margin-top: 64px; }
.method-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; list-style: none; padding: 0; margin-top: 26px; }
.method-steps h4 { font-size: 17px; margin-bottom: 8px; }
.method-steps p { color: var(--ink-2); }
.skills-list { margin-top: 24px; max-width: 900px; }
.skills-list > div { display: grid; grid-template-columns: 180px 1fr; gap: 24px; border-top: 1px solid var(--line); padding: 16px 0; }
.skills-list dt { font-weight: 600; }
.skills-list dd { margin: 0; color: var(--ink-2); }
.spread-compact { padding: 48px 0; }
.spread-compact .intro { margin-top: 18px; max-width: 76ch; }
.spread-compact .stack { margin-top: 20px; }
@media (max-width: 860px) {
  .method-steps { grid-template-columns: 1fr; gap: 20px; }
  .role-heading { display: block; }
  .role-dates { margin-top: 8px; }
  .skills-list > div { grid-template-columns: 1fr; gap: 8px; }
  .header-inner { gap: 12px; }
  .header-actions { gap: 10px; }
  .site-header .brand { flex-shrink: 0; font-size: 15px; }
  .header-actions .canvas-link { display: none; }
  .site-nav::after { content: none; }
  .site-nav .mobile-canvas { display: block; }
}
@media (min-width: 861px) { .site-nav .mobile-canvas { display: none; } }
html:not(.js) .nav-toggle { display: none; }
@media (max-width: 860px) {
  html:not(.js) .site-header { position: relative; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding: 16px 0; }
  html:not(.js) .site-nav { position: static; display: flex; flex-wrap: wrap; transition: none; opacity: 1; visibility: visible; pointer-events: auto; transform: none; width: 100%; order: 3; padding: 0; }
  html:not(.js) .site-nav a { padding: 10px; border: 0; }
}
html:not(.js) .timeline-disclosure { display: none; }

/* Keep the deepest hero preview quiet and mobile workflow controls visible. */
.shot-4 .shot-cap { display: none; }
.diagram-help { display: none; }
@media (max-width: 600px) {
  .diagram-caption-label { display: none; }
  .diagram-help { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; font-size: 11px; }
  .diagram-help .ctl { flex: none; width: 40px; height: 40px; }
}
@media (max-width: 860px) {
  .site-nav .mobile-canvas { padding-left: 32px; }
}

html:not(.js) .diagram-help .ctl { display: none; }

.diagram-help .ctl:disabled { opacity: .35; cursor: default; }
