/* ============================================================
   Johnnie Kenneybrew — AI Toolkit  ·  v2 "living editorial"
   Libre Baskerville + Plus Jakarta Sans
   ============================================================ */

:root {
  --paper:  #faf8f4;
  --paper-2:#f3efe7;
  --ink:    #17140f;
  --muted:  #6b6358;
  --faint:  #a39a8c;
  --line:   rgba(23, 20, 15, 0.12);
  --line-2: rgba(23, 20, 15, 0.07);
  --dark:   #0c0a08;
  --card:   #ffffff;

  --grad-a: #2f6df6;
  --grad-b: #c026d3;
  --accent: #7c3aed;

  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans:  "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  --read: 46rem;   /* reading column */
  --wide: 70rem;   /* gallery column */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

/* fine film grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: multiply;
  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.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}

h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; line-height: 1.18; }
p { text-wrap: pretty; }
a { color: inherit; }

.read { width: 100%; max-width: var(--read); margin: 0 auto; padding: 0 1.5rem; }
.wide { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; }

.section { padding: 6rem 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.6;
}

/* ============================================================
   HERO  — cursor-lit
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--dark);
  color: #f5f1ea;
  overflow: hidden;
  isolation: isolate;
  --mx: 50%; --my: 40%;
}
.hero__inner { position: relative; z-index: 5; max-width: 100%; margin: 0; padding: 7rem clamp(1.5rem, 7vw, 8rem); width: 100%; }
.hero__copy { min-width: 0; max-width: 42rem; }
/* top-right LinkedIn CTA */
.hero__linkedin {
  position: absolute; top: 1.6rem; right: 1.8rem; z-index: 6;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.62rem 1.15rem; border-radius: 999px;
  font-family: var(--sans); font-size: 0.86rem; font-weight: 600; white-space: nowrap;
  text-decoration: none; color: #fff;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.24);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.hero__linkedin:hover { transform: translateY(-2px); background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.45); }
.hero__linkedin svg { width: 15px; height: 15px; }

.timeline-section { position: relative; padding: 3.5rem 0 1rem; }

/* desk + scroll prompt pinned to the viewport until the story section */
.hero-pin { position: fixed; inset: 0; z-index: 4; pointer-events: none; will-change: opacity, transform; }
.deck { position: absolute; right: 6%; bottom: 5vh; width: 320px; pointer-events: auto; filter: drop-shadow(0 24px 48px rgba(0,0,0,0.55)); animation: floatArt 7s ease-in-out infinite; }
.scroll-prompt {
  position: absolute; left: 50%; bottom: 4.5rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
  text-align: center; max-width: 26rem; padding: 0 1rem;
  color: rgba(245,241,234,0.74); font-size: 1.02rem; line-height: 1.55;
}
.scroll-prompt__line { width: 1px; height: 36px; background: linear-gradient(rgba(245,241,234,0.7), transparent); animation: cue 2s ease-in-out infinite; transform-origin: top; }

/* desk pill + FAQ tooltip (own top layer so the bubble is never clipped) */
.desk-pill { position: fixed; right: 6%; bottom: 5vh; width: 320px; height: 374px; z-index: 7; pointer-events: none; animation: floatArt 7s ease-in-out infinite; }
.desk-pill__btn {
  position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%);
  pointer-events: auto; cursor: help; white-space: nowrap; outline: none;
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.42rem 0.85rem; border-radius: 999px;
  font-family: var(--sans); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.01em;
  color: rgba(245,241,234,0.96);
  background: rgba(30,28,34,0.6); border: 1px solid rgba(255,255,255,0.24);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.4);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.desk-pill__btn:hover, .desk-pill__btn:focus-visible { background: rgba(124,58,237,0.55); border-color: rgba(183,148,255,0.6); transform: translate(-50%, -50%) translateY(-2px); }
.desk-pill__dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,0.6); animation: pulse 2.4s ease-out infinite; }

.desk-pill__bubble {
  position: absolute; left: 50%; bottom: 56%; transform: translateX(-50%) translateY(8px);
  width: 300px; pointer-events: none;
  background: rgba(30,28,34,0.85); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.16); border-radius: 14px;
  padding: 1rem 1.1rem; box-shadow: 0 22px 55px rgba(0,0,0,0.55);
  color: rgba(245,241,234,0.86); font-size: 0.8rem; line-height: 1.5;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.desk-pill__bubble p { margin: 0 0 0.6rem; }
.desk-pill__bubble p:last-child { margin-bottom: 0; }
.desk-pill__bubble strong { color: #fff; font-weight: 700; }
.desk-pill__h { font-weight: 700; color: #fff; margin-top: 0.2rem; }
.desk-pill__fine { font-size: 0.7rem; color: rgba(245,241,234,0.55); font-style: italic; }
.desk-pill__bubble::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 8px solid transparent; border-top-color: rgba(30,28,34,0.85); }
.desk-pill__btn:hover ~ .desk-pill__bubble,
.desk-pill__btn:focus ~ .desk-pill__bubble,
.desk-pill__bubble:hover { opacity: 1; visibility: visible; transform: translateX(-50%); pointer-events: auto; }
@media (max-width: 920px) {
  .desk-pill { right: 4%; bottom: 4vh; width: 230px; height: 270px; }
  .desk-pill__bubble { width: 270px; }
}
@media (max-width: 600px) {
  .desk-pill { width: 150px; right: 3%; bottom: 3vh; height: 176px; }
  .desk-pill__btn { font-size: 0.62rem; padding: 0.32rem 0.6rem; }
  .desk-pill__bubble { width: min(280px, 80vw); }
}
.deck__img { width: 100%; height: auto; display: block; user-select: none; -webkit-user-drag: none; }
.deck__glow {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.35s ease;
  background: radial-gradient(150px circle at var(--dx,50%) var(--dy,50%), rgba(255,255,255,0.55), rgba(255,255,255,0.12) 38%, transparent 64%);
  -webkit-mask: url("assets/desk-setup.png") 0 0 / 100% 100% no-repeat;
          mask: url("assets/desk-setup.png") 0 0 / 100% 100% no-repeat;
  mix-blend-mode: screen;
}
.deck:hover .deck__glow { opacity: 1; }
@keyframes floatArt { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

@media (max-width: 920px) {
  .hero__inner { padding: 6rem 1.5rem 5rem; }
  .deck { width: 230px; right: 4%; bottom: 4vh; }
  .hero__linkedin { top: 1.1rem; right: 1.1rem; padding: 0.5rem 0.95rem; font-size: 0.8rem; }
}
@media (max-width: 600px) {
  .deck { width: 150px; right: 3%; bottom: 3vh; }
  .scroll-prompt { font-size: 0.92rem; bottom: 3rem; max-width: 18rem; }
}

.aurora { position: absolute; inset: -20%; z-index: 0; filter: blur(64px); pointer-events: none; will-change: transform; }
.blob { position: absolute; width: 44vw; height: 44vw; max-width: 580px; max-height: 580px; border-radius: 50%; opacity: 0.5; mix-blend-mode: screen; }
.blob--1 { background: radial-gradient(circle at 30% 30%, #2dd4bf, #2563eb 70%); top: -6%; left: -4%; animation: drift1 19s ease-in-out infinite; }
.blob--2 { background: radial-gradient(circle at 60% 40%, #c026d3, #7c3aed 72%); top: 2%; right: -6%; animation: drift2 23s ease-in-out infinite; }
.blob--3 { background: radial-gradient(circle at 50% 60%, #fb923c, #ec4899 72%); bottom: -24%; left: 26%; animation: drift3 27s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(8%,10%) scale(1.12); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1.05); } 50% { transform: translate(-10%,6%) scale(0.92); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(6%,-10%) scale(1.15); } }

/* subtle vignette + cursor light wash */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255,255,255,0.10), transparent 60%);
  transition: background 0.1s linear;
}

.hero__hi {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 500;
  color: rgba(245,241,234,0.7);
  margin-bottom: 1.4rem;
}
.hero__hi .wave { display: inline-block; transform-origin: 70% 70%; animation: wave 2.6s ease-in-out infinite; font-size: 1.15rem; }
@keyframes wave { 0%,60%,100% { transform: rotate(0); } 10% { transform: rotate(16deg); } 20% { transform: rotate(-8deg); } 30% { transform: rotate(16deg); } 40% { transform: rotate(-4deg); } 50% { transform: rotate(10deg); } }

/* spotlight name: base + gradient overlay revealed by cursor mask */
.name { position: relative; display: block; margin: 0 0 1.6rem; }
.name .fn { position: relative; }
.name__layer { font-family: var(--serif); font-weight: 700; font-size: clamp(2.8rem, 9vw, 6rem); line-height: 0.98; letter-spacing: -0.02em; margin: 0; }
.name__layer .it { font-style: italic; font-weight: 400; }
.name__base { color: rgba(245,241,234,0.16); }
.name__glow {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, #6ea8ff, #c026d3 55%, #fb923c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-mask-image: radial-gradient(260px circle at var(--mx) var(--my), #000 0%, rgba(0,0,0,0.35) 45%, transparent 70%);
          mask-image: radial-gradient(260px circle at var(--mx) var(--my), #000 0%, rgba(0,0,0,0.35) 45%, transparent 70%);
  pointer-events: none;
}

.hero p.lede { max-width: 40ch; font-size: 1.08rem; line-height: 1.7; color: rgba(245,241,234,0.74); margin: 0 0 2.2rem; }

.hero__row { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }

.cta {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.82rem 1.5rem; border-radius: 999px;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600;
  text-decoration: none; color: #fff;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.cta:hover { transform: translateY(-2px); background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.42); }
.cta svg { width: 17px; height: 17px; }

/* live clock */
.clock { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.9rem; color: rgba(245,241,234,0.62); }
.clock__dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,0.6); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,0.5); } 70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.clock b { font-weight: 600; color: rgba(245,241,234,0.9); font-variant-numeric: tabular-nums; }

/* scroll cue */
.scrollcue { position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%); z-index: 3; display: grid; place-items: center; gap: 0.5rem; color: rgba(245,241,234,0.5); font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; }
.scrollcue .line { width: 1px; height: 34px; background: linear-gradient(rgba(245,241,234,0.6), transparent); animation: cue 2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%,100% { transform: scaleY(0.4); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ============================================================
   TIMELINE — cinematic
   ============================================================ */
.story-head { text-align: center; margin-bottom: 1rem; }
.story-head .eyebrow { justify-content: center; }
.story-head .eyebrow::before, .story-head .eyebrow::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.6; }
.story-head h2 { font-size: clamp(2rem, 5.5vw, 3rem); margin: 0; }
.story-hint { margin: 0.1rem 0 0; font-family: var(--sans); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }

/* sticky chapter pill */
.chapter {
  position: sticky; top: 1.4rem; z-index: 6;
  width: fit-content; margin: 0 auto 1rem;
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.4rem 0.5rem 0.4rem 0.55rem;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 22px rgba(23,20,15,0.08);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
  opacity: 0; transform: translateY(-6px); transition: opacity 0.4s ease, transform 0.4s ease;
}
.chapter.show { opacity: 1; transform: none; }
.chapter__emoji { font-size: 1.1rem; line-height: 1; }
.chapter__date { color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }

.timeline { position: relative; margin-top: 2.5rem; padding: 0.5rem 0; }
.track { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); background: var(--line); border-radius: 2px; }
.track__fill { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: linear-gradient(180deg, var(--grad-a), var(--grad-b)); border-radius: 2px; box-shadow: 0 0 16px rgba(124,58,237,0.4); }

.entry {
  position: relative; width: 50%; padding: 0.9rem 0; margin-bottom: 1.4rem;
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.entry.in { opacity: 0.5; transform: none; }
.entry.in.focus { opacity: 1; }
.entry.left  { left: 0;   padding-right: 3.2rem; text-align: right; }
.entry.right { left: 50%; padding-left: 3.2rem;  text-align: left; }

.entry__inner { transition: transform 0.45s cubic-bezier(.2,.8,.2,1); }
.entry.focus .entry__inner { transform: scale(1.035); }
.entry.left.focus  .entry__inner { transform-origin: right center; }
.entry.right.focus .entry__inner { transform-origin: left center; }

.entry__date { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.35rem; }
.entry__title { font-family: var(--serif); font-size: 1.05rem; line-height: 1.4; margin: 0; }
.entry__sub { margin: 0.3rem 0 0; font-size: 0.9rem; color: var(--muted); }

.node {
  position: absolute; top: 0.9rem; width: 48px; height: 48px;
  display: grid; place-items: center; font-size: 1.3rem; line-height: 1;
  background: var(--card); border: 1px solid var(--line); border-radius: 50%;
  box-shadow: 0 4px 14px rgba(23,20,15,0.08); z-index: 2;
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1), box-shadow 0.45s ease, border-color 0.45s ease;
}
.entry.left  .node { right: -24px; }
.entry.right .node { left: -24px; }
.entry.in .node { animation: pop 0.6s cubic-bezier(.2,.8,.2,1) 0.1s both; }
@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 45% { transform: scale(1.3) rotate(-8deg); opacity: 1; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
.entry .node.lit {
  transform: scale(1.16) translateY(-2px); border-color: transparent;
  box-shadow: 0 10px 22px rgba(124,58,237,0.28), 0 0 0 4px rgba(124,58,237,0.10);
  animation: float 3.4s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: scale(1.16) translateY(-2px); } 50% { transform: scale(1.16) translateY(-7px); } }

/* ============================================================
   WHAT I'VE BUILT — gallery
   ============================================================ */
.built-head { margin-bottom: 1.8rem; }
.built-head h2 { font-size: clamp(2rem, 5.5vw, 3rem); margin: 0 0 0.6rem; }
.built-head p { color: var(--muted); margin: 0; max-width: 48ch; }
.built-lead { font-weight: 600; color: var(--ink) !important; margin-bottom: 0.4rem !important; }
.built-when { margin: 0 0 0.9rem; padding-left: 1.1rem; color: var(--muted); max-width: 52ch; line-height: 1.7; }
.built-when li { padding-left: 0.15rem; }
.built-note { color: var(--accent) !important; font-size: 0.86rem; font-style: italic; }

.filters { display: flex; gap: 0.5rem; margin: 0 0 2rem; }
.chip {
  font-family: var(--sans); font-size: 0.85rem; font-weight: 600;
  padding: 0.45rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  cursor: pointer; transition: all 0.18s ease;
}
.chip:hover { color: var(--ink); border-color: rgba(23,20,15,0.22); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 1rem; }

.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(23,20,15,0.04), 0 10px 26px rgba(23,20,15,0.05);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  transform-style: preserve-3d;
}
.card.has-img { cursor: pointer; }
/* cursor glow */
.card::before {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  border-radius: inherit; opacity: 0; transition: opacity 0.3s ease;
  background: radial-gradient(360px circle at var(--cx, 50%) var(--cy, 50%), rgba(124,58,237,0.10), transparent 60%);
}
.card.has-img:hover::before { opacity: 1; }
.card.has-img:hover { box-shadow: 0 2px 6px rgba(23,20,15,0.06), 0 24px 50px rgba(23,20,15,0.13); }

.card--feature { grid-column: auto; }
.feature-tag {
  align-self: flex-start;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); background: rgba(124,58,237,0.10);
  padding: 0.25rem 0.6rem; border-radius: 999px; margin-bottom: 0.2rem;
}

.card__cover { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--paper-2); border-bottom: 1px solid var(--line-2); }
.card__cover img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transition: transform 0.4s ease; }
.card.has-img:hover .card__cover img { transform: scale(1.05); }
.card__count { position: absolute; bottom: 0.7rem; right: 0.7rem; display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.7rem; font-weight: 600; color: #fff; background: rgba(12,10,8,0.7); backdrop-filter: blur(6px); padding: 0.24rem 0.6rem; border-radius: 999px; z-index: 3; }
.card__count svg { width: 12px; height: 12px; }

.card__body { padding: 1.05rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.card__emoji { font-size: 1.3rem; line-height: 1; }
.card__title { font-family: var(--serif); font-size: 1.02rem; margin: 0; }
.card__desc { font-size: 0.84rem; color: var(--muted); margin: 0; line-height: 1.5; flex: 1; }
.card__metrics { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.35rem; }
.metric { font-size: 0.67rem; font-weight: 600; color: #5b5246; background: var(--paper-2); padding: 0.24rem 0.56rem; border-radius: 999px; white-space: nowrap; }

.card__sections { display: flex; flex-direction: column; gap: 0.9rem; flex: 1; }
.card__section { display: flex; flex-direction: column; gap: 0.45rem; }
.card__section + .card__section { padding-top: 0.9rem; border-top: 1px solid var(--line-2); }
.card__subtitle { font-family: var(--serif); font-size: 0.95rem; margin: 0; }
.card__section .card__desc { flex: 0 1 auto; }

/* ============================================================
   TOOLS
   ============================================================ */
.tools-head h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin: 0 0 1.4rem; }
.tools { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tool { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; font-weight: 600; padding: 0.6rem 1.1rem; background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; box-shadow: 0 4px 14px rgba(23,20,15,0.05); transition: all 0.18s ease; }
.tool:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(23,20,15,0.10); }
.tool span:first-child { font-size: 1.05rem; line-height: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: 3rem 0 3.6rem; color: var(--muted); font-size: 0.88rem; }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.footer__row .dot { color: var(--faint); }
.footer strong { color: var(--ink); font-family: var(--serif); font-size: 1rem; }
.footer a { text-decoration: none; font-weight: 600; color: var(--ink); }
.footer a:hover { color: var(--accent); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lb { position: fixed; inset: 0; z-index: 150; display: none; align-items: center; justify-content: center; padding: 1.5rem; background: rgba(8,7,5,0.66); backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.25s ease; }
.lb.open { display: flex; opacity: 1; }
.lb__panel { position: relative; width: 100%; max-width: 380px; background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 90px rgba(0,0,0,0.45); transform: translateY(14px) scale(0.97); transition: transform 0.3s cubic-bezier(.2,.8,.2,1); }
.lb.open .lb__panel { transform: none; }
.lb__stage { position: relative; height: min(56vh, 440px); background: var(--dark); overflow: hidden; }
.lb__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: translateX(var(--from, 0)); transition: opacity 0.4s ease, transform 0.4s ease; }
.lb__img.show { opacity: 1; transform: none; }
.lb__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; background: rgba(255,255,255,0.94); border: none; border-radius: 50%; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,0.25); transition: transform 0.18s ease, background 0.18s ease; z-index: 3; }
.lb__arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.lb__arrow svg { width: 18px; height: 18px; }
.lb__arrow.prev { left: 0.9rem; } .lb__arrow.next { right: 0.9rem; }
.lb__close { position: absolute; top: 0.8rem; right: 0.8rem; width: 36px; height: 36px; display: grid; place-items: center; background: rgba(12,10,8,0.55); color: #fff; border: none; border-radius: 50%; cursor: pointer; z-index: 4; backdrop-filter: blur(4px); transition: background 0.18s ease; }
.lb__close:hover { background: rgba(12,10,8,0.82); }
.lb__close svg { width: 16px; height: 16px; }
.lb__dots { position: absolute; bottom: 0.9rem; left: 50%; transform: translateX(-50%); z-index: 3; }
.lb__dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.45); border: none; padding: 0; cursor: pointer; transition: all 0.2s ease; }
.lb__dot.active { background: #fff; width: 20px; border-radius: 999px; }
.lb__meta { padding: 1.3rem 1.5rem 1.5rem; }
.lb__meta h3 { font-size: 1.2rem; margin: 0 0 0.35rem; display: flex; align-items: center; gap: 0.5rem; }
.lb__meta p { font-size: 0.9rem; color: var(--muted); margin: 0; line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
  .blob, .wave, .scrollcue .line, .clock__dot, .entry .node.lit, .deck { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   NAME TOOLTIP
   ============================================================ */
.tip { position: absolute; left: 100%; top: 0.12em; margin-left: 0.5rem; z-index: 60; display: inline-block; cursor: help; outline: none; }
.tip__mark {
  display: inline-grid; place-items: center;
  width: 1.55rem; height: 1.55rem;
  font-family: var(--sans); font-size: 0.86rem; font-weight: 700;
  color: rgba(245,241,234,0.85);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.tip:hover .tip__mark,
.tip:focus-visible .tip__mark {
  background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.6); transform: translateY(-1px);
}
.tip__bubble {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translate(-50%, 6px);
  width: 270px;
  font-family: var(--sans); font-size: 0.82rem; font-weight: 500; line-height: 1.5; letter-spacing: 0;
  color: rgba(245,241,234,0.92); background: rgba(30,28,34,0.72);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px; padding: 0.85rem 1rem;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 70;
}
.tip__bubble::before {
  content: ""; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  border: 7px solid transparent; border-bottom-color: rgba(30,28,34,0.72);
}
.tip:hover .tip__bubble,
.tip:focus-within .tip__bubble {
  opacity: 1; visibility: visible; transform: translate(-50%, 0); pointer-events: auto;
}
.tip__s { color: var(--accent); font-style: italic; font-weight: 600; }

/* inline tooltip (lede asterisk) */
.tipi { position: relative; display: inline-block; cursor: help; outline: none; }
.tipi__mark { color: var(--accent); font-weight: 700; padding: 0 0.06em; transition: color 0.2s ease; }
.tipi:hover .tipi__mark, .tipi:focus-visible .tipi__mark { color: #b794ff; }
.tipi__bubble {
  position: absolute; top: calc(100% + 12px); left: -0.5rem; width: 290px;
  font-family: var(--sans); font-size: 0.82rem; font-weight: 500; line-height: 1.55; letter-spacing: 0;
  color: rgba(245,241,234,0.92); background: rgba(30,28,34,0.72);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px; padding: 0.85rem 1rem;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  opacity: 0; visibility: hidden; transform: translateY(6px); pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 20;
}
.tipi__bubble::before { content: ""; position: absolute; bottom: 100%; left: 1.1rem; border: 7px solid transparent; border-bottom-color: rgba(30,28,34,0.72); }
.tipi:hover .tipi__bubble,
.tipi:focus-within .tipi__bubble { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
@media (max-width: 600px) {
  .tipi__bubble { width: min(290px, 78vw); }
}
@media (max-width: 640px) {
  .tip__bubble { left: 0; transform: translate(0, 6px); width: min(270px, 72vw); }
  .tip__bubble::before { left: 1.2rem; }
  .tip:hover .tip__bubble, .tip:focus-within .tip__bubble { transform: translate(0,0); }
}

/* ============================================================
   HORIZONTAL TIMELINE
   ============================================================ */
.htl { margin-top: 1.6rem; opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.htl.in { opacity: 1; transform: none; }

.htl__viewport {
  position: relative; overflow: hidden; height: 380px;
  cursor: grab; outline: none;
  touch-action: pan-y;
  -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.htl__viewport.grabbing { cursor: grabbing; }
.htl__viewport:focus-visible { box-shadow: inset 0 0 0 2px rgba(124,58,237,0.4); border-radius: 12px; }

/* center focus guide */
.htl__center { position: absolute; left: 50%; top: 14%; bottom: 14%; width: 0; z-index: 1; pointer-events: none; border-left: 1px dashed rgba(124,58,237,0.22); }
.htl__center::before {
  content: ""; position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: rgba(124,58,237,0.5);
}

.htl__track { position: relative; display: flex; align-items: stretch; height: 100%; will-change: transform; }

.htl__axis { position: absolute; left: 0; right: 0; top: 50%; height: 2px; transform: translateY(-50%); background: var(--line); }
.htl__axisfill { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: linear-gradient(90deg, var(--grad-a), var(--grad-b)); box-shadow: 0 0 14px rgba(124,58,237,0.4); }

.htl__spacer { flex: 0 0 0; height: 100%; }

.hentry { position: relative; flex: 0 0 190px; height: 100%; }

/* seam separator between the end and the beginning of the loop */
.htl__loopmark { position: relative; flex: 0 0 120px; height: 100%; display: grid; place-items: center; }
.htl__loopmark::before {
  content: ""; position: absolute; left: 50%; top: 16%; bottom: 16%;
  border-left: 2px dashed var(--line); transform: translateX(-50%);
}
.htl__loopmark-badge {
  position: relative; z-index: 3; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: var(--accent);
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(23,20,15,0.08);
}
.htl__loopmark-badge svg { width: 17px; height: 17px; }
.htl__loopmark-cap {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-family: var(--sans); font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint);
  white-space: nowrap;
}
.htl__loopmark-cap--end   { top: 19%; }
.htl__loopmark-cap--start { bottom: 19%; }
.hentry__node {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; display: grid; place-items: center;
  font-size: 1.18rem; line-height: 1;
  background: var(--card); border: 1px solid var(--line); border-radius: 50%;
  box-shadow: 0 4px 14px rgba(23,20,15,0.10); z-index: 3;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.hentry__node.lit {
  border-color: transparent;
  box-shadow: 0 10px 26px rgba(124,58,237,0.30), 0 0 0 5px rgba(124,58,237,0.10);
  transform: translate(-50%, -50%) scale(1.14);
}
.hentry__stem { position: absolute; left: 50%; transform: translateX(-50%); width: 2px; background: var(--line); z-index: 2; transition: background 0.4s ease; }
.hentry.up .hentry__stem   { bottom: 50%; height: 28px; }
.hentry.down .hentry__stem { top: 50%; height: 28px; }
.hentry.focus .hentry__stem { background: linear-gradient(var(--grad-a), var(--grad-b)); }

.hentry__card {
  position: absolute; left: 50%; transform: translateX(-50%) scale(0.97);
  width: 166px; text-align: center;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 0.72rem 0.8rem;
  box-shadow: 0 1px 2px rgba(23,20,15,0.04), 0 8px 22px rgba(23,20,15,0.05);
  opacity: 0.62;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease;
}
.hentry.up .hentry__card   { bottom: calc(50% + 32px); }
.hentry.down .hentry__card { top: calc(50% + 32px); }
.hentry.focus .hentry__card {
  opacity: 1; transform: translateX(-50%) scale(1);
  box-shadow: 0 2px 6px rgba(23,20,15,0.06), 0 18px 40px rgba(23,20,15,0.12);
}
.hentry__card .entry__date { margin-bottom: 0.25rem; font-size: 0.68rem; }
.hentry__card .entry__title { font-size: 0.85rem; line-height: 1.3; }
.hentry__card .entry__sub { font-size: 0.75rem; margin-top: 0.2rem; }

/* controls */
.htl__controls { display: flex; align-items: center; justify-content: center; gap: 0.7rem; margin: 1rem auto 0; padding: 0 1rem; }
.htl__btn {
  flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 50%;
  color: var(--ink); cursor: pointer;
  box-shadow: 0 4px 12px rgba(23,20,15,0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.htl__btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(23,20,15,0.12); }
.htl__btn:active { transform: translateY(0); }
.htl__btn svg { width: 18px; height: 18px; }
.htl__btn--play { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.htl__btn--play .i-pause { display: none; }
.htl__btn--play.is-playing .i-play { display: none; }
.htl__btn--play.is-playing .i-pause { display: block; }

.htl__scrub { flex: 1; height: 5px; border-radius: 999px; background: var(--line); cursor: pointer; position: relative; overflow: hidden; }
.htl__scrubfill { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: linear-gradient(90deg, var(--grad-a), var(--grad-b)); border-radius: 999px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
  .card--feature { flex-direction: column; }
  .card--feature .card__cover { width: 100%; aspect-ratio: 16/10; border-right: none; border-bottom: 1px solid var(--line-2); }
  .card--feature .card__body { padding: 1.4rem; }
}

@media (max-width: 540px) {
  body { font-size: 16px; }
  .htl__viewport { height: 340px; }
  .hentry { flex: 0 0 158px; }
  .hentry__card { width: 144px; padding: 0.6rem 0.7rem; }
  .timeline { padding-left: 0; }
  .track { left: 16px; transform: none; }
  .entry, .entry.left, .entry.right { width: 100%; left: 0; text-align: left; padding: 0.5rem 0 0.5rem 3.6rem; }
  .entry.left .node, .entry.right .node { left: -8px; right: auto; }
  .entry.left.focus .entry__inner, .entry.right.focus .entry__inner { transform-origin: left center; }
}
