/* TRB — teeaarbee.com */

/* Fonts are self-hosted (latin subset): Bricolage Grotesque and JetBrains Mono, both SIL OFL */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --bg: #111111;
  --ink: #0d0d0d;
  --paper: #f3eee4;
  --dark: #1b1b1b;
  --line: #2c2c2c;
  --muted: #a3a09a;
  --lime: #c6f432;
  --violet: #8f7cff;
  --orange: #ff6a3d;
  --pink: #ff9fd0;
  --cream: #f3eee4;

  --radius: 26px;
  --gap: 14px;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --out: cubic-bezier(.22, 1, .36, 1);

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 100;
  opacity: .07;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

a { color: inherit; }

h1, h2, p { margin: 0; }

.mono { font-family: var(--mono); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

/* ---------- scroll scrubber ---------- */

.scrubber {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 50;
}

.scrubber span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--lime);
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
}

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 20px;
  background: linear-gradient(var(--bg) 60%, transparent);
}

.logo {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}

.logo-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lime);
}

.rec {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.rec i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #ff3b3b;
  animation: blink 1.2s steps(2, jump-none) infinite;
}

@keyframes blink { 50% { opacity: .15; } }

.topbar-link {
  font-weight: 600;
  text-decoration: none;
  padding: 8px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  transition: background .3s var(--out), color .3s var(--out), border-color .3s;
}

.topbar-link:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }

/* ---------- bento grid ---------- */

.bento {
  max-width: 1240px;
  margin: 0 auto;
  padding: 6px 20px 20px;
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "hero hero hero avatar"
    "now  now  now  now"
    "marq marq marq marq"
    "time time time ease"
    "time time time links"
    "do   do   before before"
    "blog blog hi   hi";
}

.t-hero { grid-area: hero; }
.t-avatar { grid-area: avatar; }
.t-now { grid-area: now; }
.t-marquee { grid-area: marq; }
.t-timeline { grid-area: time; }
.t-ease { grid-area: ease; }
.t-links { grid-area: links; }
.t-do { grid-area: do; }
.t-before { grid-area: before; }
.t-blog { grid-area: blog; }
.t-hi { grid-area: hi; }

.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 28px;
  min-height: 200px;
  transform-style: preserve-3d;
  transition: transform .5s var(--out);
}

.tone-cream { background: var(--cream); color: var(--ink); }
.tone-violet { background: var(--violet); color: var(--ink); }
.tone-lime { background: var(--lime); color: var(--ink); }
.tone-orange { background: var(--orange); color: var(--ink); }
.tone-pink { background: var(--pink); color: var(--ink); }
.tone-dark { background: var(--dark); color: var(--paper); border: 1px solid var(--line); }

/* reveal on scroll (only when JS is on) */
.js .tile { opacity: 0; transform: translateY(40px) scale(.97); }
.js .tile.in {
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--out), transform .9s var(--spring);
  transition-delay: var(--d, 0s);
}
.js .tile.in.tilting { transition: transform .15s linear; }

.small-title {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ---------- hero ---------- */

.t-hero {
  padding: clamp(28px, 4vw, 48px);
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 22px;
}

.eyebrow {
  align-self: flex-start;
  margin-bottom: auto;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
}

.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(198, 244, 50, .7);
  animation: pulse 1.8s var(--out) infinite;
}

@keyframes pulse { to { box-shadow: 0 0 0 10px rgba(198, 244, 50, 0); } }

.kinetic {
  font-size: clamp(54px, 9vw, 128px);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.045em;
}

.kinetic .word { display: inline-block; white-space: nowrap; }

.kinetic .char {
  display: inline-block;
  transform-origin: 50% 100%;
}

.js .kinetic .char {
  opacity: 0;
  transform: translateY(70%) rotate(8deg) scaleY(1.3);
  animation: char-in .8s var(--spring) forwards;
  animation-delay: calc(var(--i) * 45ms + 150ms);
}

@keyframes char-in { to { opacity: 1; transform: none; } }

.kinetic .char:hover { animation: char-bounce .6s var(--spring); }

@keyframes char-bounce {
  0% { transform: none; }
  30% { transform: translateY(-18%) scaleY(1.15) scaleX(.9); }
  60% { transform: translateY(4%) scaleY(.9) scaleX(1.08); }
  100% { transform: none; }
}

.lede {
  max-width: 34em;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.45;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .4s var(--spring), background .3s, color .3s;
}

.btn:hover { transform: translateY(-3px) rotate(-1.5deg); }
.btn:active { transform: scale(.96); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--violet); color: var(--ink); }
.btn-ghost { border: 2px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }

.arrow { display: inline-block; transition: transform .4s var(--spring); }
.btn:hover .arrow, .tile-link:hover .arrow { transform: translate(4px, -2px) rotate(-8deg); }

/* ---------- monogram ---------- */

.t-avatar {
  display: grid;
  place-items: center;
  min-height: 300px;
}

.badge {
  position: absolute;
  width: min(92%, 300px);
  aspect-ratio: 1;
  animation: spin 18s linear infinite;
}

.badge text {
  font-family: var(--mono);
  font-size: 12.6px;
  font-weight: 600;
  letter-spacing: .1em;
  fill: var(--ink);
}

@keyframes spin { to { transform: rotate(360deg); } }

.pfp {
  position: relative;
  z-index: 1;
  width: clamp(132px, 12vw, 164px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--ink);
  background: var(--ink);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .3);
  animation: float 6s ease-in-out infinite;
}

.pfp.pop { animation: float 6s ease-in-out infinite, pfp-pop .7s var(--spring); }

@keyframes pfp-pop {
  0% { transform: scale(.9); }
  100% { transform: none; }
}

.pfp img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.pfp img:first-child, .pfp img.prev, .pfp img.on { opacity: 1; }
.pfp img.prev { z-index: 1; }
.pfp img.on { z-index: 2; }
.pfp img.on.wipe { animation: iris .9s var(--out) both; }

/* iris-wipe transition between pfps */
@keyframes iris {
  from { clip-path: circle(0% at 50% 50%); transform: scale(1.3) rotate(-10deg); }
  to { clip-path: circle(72% at 50% 50%); transform: none; }
}

.pfp-name {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--cream);
}


.shape { position: absolute; z-index: 0; }

.s-circle {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--lime);
  top: 16%; left: 14%;
  animation: float 6s ease-in-out infinite;
}

.s-square {
  width: 34px; height: 34px;
  background: var(--orange);
  border-radius: 8px;
  bottom: 16%; right: 15%;
  animation: float 7s ease-in-out infinite reverse, spin 9s linear infinite;
}

.s-tri {
  width: 0; height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 34px solid var(--pink);
  bottom: 18%; left: 18%;
  animation: float 5s ease-in-out infinite;
  animation-delay: -2s;
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 6px -16px; }
}

/* ---------- now ---------- */

.t-now {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.t-now .small-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--lime);
}

.now-text {
  margin-top: 12px;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  max-width: 22em;
}

.now-text strong { color: var(--lime); font-weight: 800; }
.now-text strong:first-child { color: #4fa3ff; }

.now-link {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.logo-card {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 10px;
  width: 132px;
  text-align: center;
}

.logo-card img {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  animation: logo-bob 3.2s ease-in-out infinite;
}

.logo-card:last-child img { border-radius: 50%; animation-delay: -1.6s; }

@keyframes logo-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

.logo-card figcaption {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
}

.logo-card figcaption span {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}

.connector {
  position: relative;
  width: 70px;
  height: 96px;
  display: grid;
  place-items: center;
}

.connector::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  border-top: 2px dashed #3a3a3a;
}

.connector-dot {
  position: absolute;
  top: calc(50% - 5px);
  left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
  animation: travel 1.8s cubic-bezier(.65, 0, .35, 1) infinite;
}

@keyframes travel {
  0% { left: 0; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: calc(100% - 10px); opacity: 0; }
}

.connector-x {
  position: relative;
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--dark);
  border: 1px solid var(--line);
  font-weight: 800;
  color: var(--paper);
  animation: spin 6s linear infinite;
}

/* ---------- marquee ---------- */

.t-marquee {
  min-height: 0;
  padding: 22px 0;
  display: grid;
  gap: 6px;
}

.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  animation: marquee 32s linear infinite;
}

.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 40s; }
.t-marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee { to { transform: translateX(-100%); } }

.marquee span {
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -.03em;
  white-space: nowrap;
  transition: color .3s;
}

.marquee span:hover { color: var(--lime); }
.marquee i { font-style: normal; color: var(--lime); font-size: 24px; }

.marquee.outline span {
  font-size: clamp(22px, 3vw, 36px);
  color: transparent;
  -webkit-text-stroke: 1.2px var(--muted);
}

.marquee.outline i { color: var(--violet); font-size: 12px; }

/* ---------- timeline ---------- */

.t-timeline {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.tile-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tile-head h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  letter-spacing: -.03em;
}

.readout {
  font-size: 13px;
  color: var(--lime);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 15ch;
  text-align: center;
}

/* program monitor */
.viewer {
  position: relative;
  flex: 1;
  min-height: 170px;
  border-radius: 14px;
  background: #0c0c0c;
  border: 1px solid var(--line);
  overflow: hidden;
}

/* title-safe guides */
.viewer::before {
  content: "";
  position: absolute;
  inset: 12% 8%;
  border: 1px dashed rgba(243, 238, 228, .12);
  border-radius: 6px;
}

.viewer-tag, .viewer-tc {
  position: absolute;
  top: 12px;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.viewer-tag { left: 14px; }
.viewer-tc { right: 14px; font-variant-numeric: tabular-nums; }

.viewer-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.v-name {
  grid-area: 1 / 1;
  font-size: clamp(36px, 6vw, 86px);
  font-weight: 800;
  letter-spacing: -.045em;
  white-space: nowrap;
  color: var(--v-color, var(--lime));
}

.v-name.v-in { animation: v-in .7s var(--spring) both; }
.v-name.v-out { animation: v-out .45s var(--out) both; }

@keyframes v-in {
  from { opacity: 0; transform: translateY(45%) scale(.85) rotate(-3deg); filter: blur(10px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes v-out {
  to { opacity: 0; transform: translateY(-45%) scale(1.08); filter: blur(10px); }
}

.timeline-scroll {
  margin-top: 4px;
  scrollbar-width: none;
}

.timeline-scroll::-webkit-scrollbar { display: none; }

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding-left: 44px;
}

.ruler {
  height: 26px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 0 28px;
  background:
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 10%) bottom / 100% 12px no-repeat,
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 2%) bottom / 100% 6px no-repeat;
}

.track { position: relative; }

.track-label {
  position: absolute;
  left: -44px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--muted);
}

.clips { display: flex; gap: 4px; }

.clip {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  justify-content: center;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: clamp(12px, 1.3vw, 16px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform .4s var(--spring), filter .3s;
  filter: saturate(.55) brightness(.75);
}

/* keyframe diamonds on clip edges */
.clip::before, .clip::after {
  content: "";
  position: absolute;
  top: 7px;
  width: 7px; height: 7px;
  background: var(--ink);
  transform: rotate(45deg);
  opacity: .55;
}
.clip::before { left: 7px; }
.clip::after { right: 7px; }

.clip.active {
  filter: none;
  transform: translateY(-5px) scale(1.03);
}

.clip em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--lime);
}

.c-lime { background: var(--lime); }
.c-blue { background: #4fa3ff; }
.c-yellow { background: #ffd23f; }
.c-cream { background: var(--cream); }
.c-orange { background: var(--orange); }
.c-pink { background: var(--pink); }
.c-violet { background: var(--violet); }

.wave {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 8px;
  border-radius: 10px;
  background: #232323;
}

.wave span {
  flex: 1;
  height: var(--h);
  min-height: 3px;
  border-radius: 2px;
  background: #3d6b4a;
  transform-origin: center;
  animation: wave 1.1s ease-in-out infinite alternate;
  animation-delay: var(--dl);
}

@keyframes wave { from { transform: scaleY(.25); } to { transform: scaleY(1); } }

.playhead {
  position: absolute;
  top: 0; bottom: -6px;
  left: 44px;
  width: 2px;
  background: var(--lime);
  pointer-events: none;
  will-change: transform;
}

.playhead span {
  position: absolute;
  top: 0;
  left: 50%;
  width: 14px; height: 18px;
  margin-left: -7px;
  background: var(--lime);
  clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%);
}

.tile-intro { color: var(--muted); max-width: 36em; margin-top: -12px; }

.also {
  color: var(--muted);
  font-size: 15px;
}

.also strong { color: var(--paper); }

/* ---------- easing ---------- */

.t-ease {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.curve { width: 100%; max-width: 220px; overflow: visible; }

.curve-grid { stroke: var(--ink); stroke-opacity: .25; stroke-width: 1; fill: none; }

.curve-line {
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: draw 2.4s var(--out) infinite;
}

@keyframes draw {
  0% { stroke-dashoffset: 1; }
  55%, 100% { stroke-dashoffset: 0; }
}

.race {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px 10px;
}

.race em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  opacity: .75;
}

.lane {
  position: relative;
  height: 22px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .14);
}


.dot {
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--ink);
  animation: race 2.4s infinite alternate;
}

.dot-linear { animation-timing-function: linear; }
.dot-eased { animation-timing-function: cubic-bezier(.65, 0, .35, 1); background: var(--cream); }

@keyframes race { to { left: calc(100% - 19px); } }

.t-ease p { font-weight: 600; line-height: 1.3; }

/* ---------- link tiles ---------- */

.tile-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
}

.big-link {
  margin-top: auto;
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.t-hi .big-link { font-size: clamp(26px, 3vw, 40px); }
.t-links .big-link { font-size: clamp(30px, 2.6vw, 38px); }

.sub { font-size: 15px; opacity: .75; }

.tile-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform .5s var(--out);
  z-index: 0;
}

.tile-link > * { position: relative; z-index: 1; transition: color .35s var(--out); }
.tile-link:hover::after { transform: translateY(0); }
.tile-link:hover > * { color: var(--cream); }
.tone-lime.tile-link:hover > .big-link { color: var(--lime); }

/* ---------- writing ---------- */

.t-blog {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.write-text {
  margin-top: auto;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.025em;
}

.write-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.write-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  text-decoration: none;
  transition: background .3s var(--out), color .3s var(--out), transform .45s var(--spring), opacity .3s;
}

.write-list a:hover {
  background: var(--ink);
  color: var(--cream);
  transform: translateX(6px);
}

.write-list a:hover .arrow { transform: translate(4px, -2px) rotate(-8deg); }

.w-name {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.w-name small {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  opacity: .65;
}

.w-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--lime);
  color: var(--ink);
}

.is-archived a { opacity: .6; border-style: dashed; }
.is-archived a:hover { opacity: 1; }
.is-archived .w-tag { background: transparent; color: inherit; border: 1px dashed currentColor; }

/* ---------- say hi ---------- */

.t-hi {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.socials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.social {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  text-decoration: none;
  transition: background .3s var(--out), color .3s var(--out), transform .45s var(--spring);
}

.social svg { width: 26px; height: 26px; flex: none; transition: transform .45s var(--spring); }

.social-name {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.social-name small {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  opacity: .7;
}

.social .arrow { margin-left: auto; }

.social:hover {
  background: var(--ink);
  color: var(--violet);
  transform: translateY(-3px) rotate(-1deg);
}

.social:hover svg { transform: rotate(-12deg) scale(1.12); }
.social:hover .arrow { transform: translate(4px, -2px) rotate(-8deg); }

.hi-email {
  align-self: flex-start;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat;
  padding-bottom: 4px;
  transition: background-size .5s var(--out);
}

.hi-email:hover { background-size: 100% 3px; }

/* ---------- what I do ---------- */

.t-do { display: flex; flex-direction: column; gap: 22px; }

.rotator-title {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
}

.rotator {
  display: inline-grid;
  height: 1.1em;
  overflow: hidden;
  vertical-align: bottom;
  color: var(--lime);
}

.rotator span {
  grid-area: 1 / 1;
  display: block;
  transform: translateY(110%);
}

.rotator span.on { animation: word-in .7s var(--spring) forwards; }
.rotator span.off { animation: word-out .5s var(--out) forwards; }

@keyframes word-in { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes word-out { from { transform: translateY(0); } to { transform: translateY(-110%); } }

.do-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.do-list li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.do-list strong { color: var(--paper); font-weight: 800; }
.do-list span { color: #cfcac1; }

.do-list b {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--lime);
  padding-top: 3px;
}

/* ---------- before ---------- */

.t-before {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 150px;
}

.before-text {
  margin-top: auto;
  font-size: clamp(20px, 1.9vw, 25px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.02em;
}

.bounce {
  position: absolute;
  right: 40px;
  top: 28px;
  bottom: 28px;
  width: 70px;
}

.ball {
  position: absolute;
  left: 50%;
  top: 0;
  width: 44px; height: 44px;
  margin-left: -22px;
  border-radius: 50%;
  background: var(--ink);
  transform-origin: 50% 100%;
  animation: bounce 1.2s infinite;
}

.shadow {
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 50px; height: 8px;
  margin-left: -25px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .25);
  animation: shadow 1.2s infinite;
}

/* squash & stretch */
@keyframes bounce {
  0%, 100% { top: 0; transform: scale(1, 1); animation-timing-function: cubic-bezier(.5, 0, .9, .5); }
  45% { transform: scale(.9, 1.12); }
  50% { top: calc(100% - 44px); transform: scale(1.3, .7); animation-timing-function: cubic-bezier(.1, .5, .5, 1); }
  58% { transform: scale(.92, 1.1); }
  70% { transform: scale(1, 1); }
}

@keyframes shadow {
  0%, 100% { transform: scale(.45); opacity: .4; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* ---------- footer ---------- */

.footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 20px 40px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.footer .mono { font-size: 12px; }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .socials { grid-template-columns: minmax(0, 1fr); }
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "hero hero"
      "now now"
      "avatar ease"
      "marq marq"
      "time time"
      "links links"
      "do do"
      "before before"
      "blog hi";
  }
}

@media (max-width: 640px) {
  :root { --radius: 22px; --gap: 12px; }
  body { font-size: 16px; }
  .topbar { padding: 14px 16px; }
  .rec { font-size: 11px; }
  .bento {
    padding: 4px 16px 16px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "hero" "now" "avatar" "marq" "time" "ease" "links" "do" "before" "blog" "hi";
  }
  .tile { padding: 22px; min-height: 0; }
  .t-hero { min-height: 0; padding: 24px; gap: 18px; }
  .t-hero .eyebrow { margin-bottom: 28px; }
  .eyebrow { font-size: 11px; gap: 8px; padding: 6px 12px; }
  .t-avatar { min-height: 360px; }
  .badge { width: min(86%, 280px); }
  .s-circle { top: 7%; left: 7%; width: 38px; height: 38px; }
  .s-tri { bottom: 7%; left: 7%; }
  .s-square { bottom: 8%; right: 8%; }
  .viewer { min-height: 130px; }
  .t-now { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .now-link { justify-content: center; }
  .logo-card { width: 112px; }
  .logo-card img { width: 80px; height: 80px; border-radius: 20px; }
  .connector { width: 50px; height: 80px; }
  .t-links, .t-blog, .t-hi { min-height: 190px; }
  .timeline { padding-left: 30px; }
  .track-label { left: -30px; font-size: 10px; }
  .playhead { left: 30px; }
  /* the timeline scrolls sideways on phones and follows the playhead */
  .timeline-scroll { overflow-x: auto; margin: 0 -22px; padding: 4px 22px 0; }
  .timeline { min-width: 640px; }
  .clips { gap: 3px; }
  .clip { height: 54px; padding: 0 10px; font-size: 13px; }
  .clip::before, .clip::after { display: none; }
  .t-before { padding-right: 22px; padding-bottom: 130px; }
  .write-list a { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
  .write-list .w-tag { grid-row: 2; justify-self: start; }
  .write-list .arrow { grid-row: 1 / 3; grid-column: 2; }
  .bounce { right: auto; left: 22px; top: auto; bottom: 18px; height: 110px; width: 60px; transform: none; }
  .t-before .bounce { left: auto; right: 30px; }
  .footer { padding: 14px 16px 32px; }
}

@media (max-width: 400px) {
  .rec { display: none; }
  .pill-extra { display: none; }
  .t-timeline { padding-left: 18px; padding-right: 18px; }
  .timeline-scroll { margin: 0 -18px; padding: 4px 18px 0; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html { scroll-behavior: auto; }
  body::after { animation: none; }
  .js .tile, .js .kinetic .char { opacity: 1; transform: none; }
  .marquee { flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { flex-wrap: wrap; padding: 0 28px; }
  .marquee-track[aria-hidden="true"], .marquee.reverse { display: none; }
  .rotator span:first-child { transform: none; }
}

/* ---------- simple pages (404, privacy) ---------- */

.page-wrap {
  max-width: 860px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.js .page-tile, .page-tile { opacity: 1; transform: none; }

.page-tile {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(28px, 5vw, 56px);
}

.page-title {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.045em;
}

.prose { padding-top: clamp(28px, 5vw, 56px); gap: 16px; }
.prose .page-title { font-size: clamp(36px, 5vw, 56px); margin-bottom: 8px; }
.prose p { color: #d8d4cc; max-width: 42em; }
.prose a { color: var(--lime); }

.back-link {
  align-self: flex-start;
  font-weight: 700;
  text-decoration: none;
  color: var(--muted);
}

.back-link:hover { color: var(--lime); }
