/* ============================================================
   timegarden.ai — light garden landing (test page)
   ============================================================ */

:root {
  --tg-bg: #f5f4eb;
  --tg-bg-2: #eeeee0;
  --tg-panel: #ffffff;
  --tg-panel-2: #f9f9f0;
  --tg-ink: #232a18;
  --tg-ink-dim: rgba(35, 42, 24, 0.66);
  --tg-ink-faint: rgba(35, 42, 24, 0.44);
  --tg-line: rgba(35, 42, 24, 0.12);
  --tg-line-strong: rgba(35, 42, 24, 0.24);
  --tg-lime: #6f8d1c;             /* accent for text, dots, refs */
  --tg-lime-bright: #d3ec6d;      /* accent for fills: buttons, bars */
  --tg-lime-soft: rgba(140, 170, 40, 0.14);
  --tg-green: #3f9a68;
  --tg-violet: #7a63c9;
  --tg-blue: #4e7fbb;

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "Space Mono", ui-monospace, Menlo, monospace;

  /* legacy aliases so the ported product vizzes read the new palette */
  --ink: var(--tg-ink);
  --ink-dim: var(--tg-ink-dim);
  --ink-faint: var(--tg-ink-faint);
  --hairline: var(--tg-line);
  --hairline-strong: var(--tg-line-strong);
  --bg-panel: var(--tg-panel);
  --life-a: var(--tg-lime);

  --grain: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.garden,
.garden-below {
  background: var(--tg-bg);
  color: var(--tg-ink);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* overflow-x must stay visible or sticky scrub pins won't lock */
}

body.garden::before,
.garden-below::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grain);
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
}

body.garden ::selection,
.garden-below ::selection { background: rgba(211, 236, 109, 0.5); }

body.garden {
  overflow-x: hidden;
}

.garden-below {
  position: relative;
}

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

.g-wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }

/* small pill kicker */
.g-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--tg-ink-dim);
  border: 1px solid var(--tg-line-strong);
  border-radius: 999px;
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.55);
}

.g-chip::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--tg-lime);
  box-shadow: 0 0 6px rgba(111, 141, 28, 0.5);
}

/* ---------- nav ---------- */

.g-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 26px;
  background: rgba(245, 244, 235, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s;
}

.g-nav.scrolled { border-bottom-color: var(--tg-line); }

.g-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.g-brand img {
  width: 28px;
  height: 28px;
  display: block;
  filter: drop-shadow(0 1px 4px rgba(35, 42, 24, 0.2));
}

.g-brand .ai { color: var(--tg-lime); }

.g-nav-links { display: flex; align-items: center; gap: 28px; }

.g-nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--tg-ink-dim);
  transition: color 0.25s;
}

.g-nav-links a:hover { color: var(--tg-ink); }

.g-pill {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  color: #232a18 !important;
  background: var(--tg-lime-bright);
  border-radius: 999px;
  padding: 10px 22px;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
  box-shadow: 0 2px 10px -4px rgba(35, 42, 24, 0.25);
}

.g-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 26px -8px rgba(111, 141, 28, 0.55);
}

.g-pill.big { font-size: 15px; padding: 15px 32px; }

.g-pill.ghost {
  background: transparent;
  color: var(--tg-ink) !important;
  border: 1px solid var(--tg-line-strong);
}

.g-pill.ghost:hover {
  border-color: rgba(111, 141, 28, 0.5);
  box-shadow: none;
}

@media (max-width: 720px) {
  .g-nav-links a:not(.g-pill) { display: none; }
}

/* ---------- floating garden bits ---------- */

.g-float {
  position: absolute;
  pointer-events: none;
  user-select: none;
  will-change: transform;
  animation: g-drift 10s ease-in-out infinite;
  filter: drop-shadow(0 10px 22px rgba(35, 42, 24, 0.14));
  z-index: 1;
}

.g-float img { width: 100%; height: auto; display: block; }

@keyframes g-drift {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -18px; rotate: 2.5deg; }
}

/* ---------- hero (copy left, live app right) ---------- */

.g-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(1100px 620px at 50% -10%, rgba(126, 208, 154, 0.18), transparent 65%),
    radial-gradient(800px 500px at 12% 78%, rgba(122, 99, 201, 0.08), transparent 60%),
    radial-gradient(820px 480px at 90% 30%, rgba(211, 236, 109, 0.16), transparent 60%),
    var(--tg-bg);
}

.g-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  width: 100%;
}

.g-hero .g-chip { margin-bottom: 26px; }

.g-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 5.8vw, 88px);
  line-height: 0.99;
  letter-spacing: -0.015em;
  max-width: 13ch;
  position: relative;
  z-index: 2;
}

.g-hero h1 em {
  font-style: italic;
  color: var(--tg-lime);
}

.g-hero .sub {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.6;
  color: var(--tg-ink-dim);
  max-width: 44ch;
  margin: 26px 0 36px;
  position: relative;
  z-index: 2;
}

.g-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  z-index: 2;
}

.g-hero .note {
  font-size: 12px;
  color: var(--tg-ink-faint);
  letter-spacing: 0.04em;
}

/* rating row under the hero CTA */
.g-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  font-size: 13px;
  color: var(--tg-ink-dim);
  position: relative;
  z-index: 2;
}

.g-rating .stars {
  color: #e2a93b;
  font-size: 13px;
  letter-spacing: 2px;
}

.g-avatars { display: flex; }

.g-avatars i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--tg-bg);
  margin-right: -9px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  color: #1c2314;
}

.g-avatars i:last-child { margin-right: 0; }
.g-avatars i:nth-child(1) { background: linear-gradient(135deg, #d6f178, #9ac96f); }
.g-avatars i:nth-child(2) { background: linear-gradient(135deg, #b9a7f0, #8a76c9); color: #201a33; }
.g-avatars i:nth-child(3) { background: linear-gradient(135deg, #8fb7e8, #6b93c4); color: #16222f; }
.g-avatars i:nth-child(4) { background: linear-gradient(135deg, #7ed09a, #57a97a); }

/* logo strip: where early users work */
.g-oauth-intro {
  padding: 40px 0 36px;
  border-bottom: 1px solid var(--tg-line);
  background: var(--tg-panel);
}
.g-oauth-intro h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  color: var(--tg-ink);
  margin-bottom: 14px;
}
.g-oauth-intro p {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--tg-ink-dim);
  max-width: 720px;
  margin-bottom: 12px;
}
.g-oauth-intro p strong { color: var(--tg-ink); font-weight: 600; }
.g-oauth-intro code {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--tg-lime-soft);
  padding: 1px 6px;
  border-radius: 4px;
}
.g-oauth-intro a {
  color: var(--tg-lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.g-logos {
  padding: 44px 24px 52px;
  border-top: 1px solid var(--tg-line);
  text-align: center;
  position: relative;
  z-index: 2;
}

.g-logos .lbl {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tg-ink-faint);
  margin-bottom: 26px;
}

.g-logos .row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(30px, 6vw, 74px);
  flex-wrap: wrap;
}

.g-logos .row span {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.01em;
  color: var(--tg-ink);
  opacity: 0.45;
}

/* live app preview in a 3d-tilted phone frame */
.g-phone {
  justify-self: center;
  width: min(320px, 82vw);
  aspect-ratio: 380 / 780;
  border: 1px solid rgba(35, 42, 24, 0.5);
  border-radius: 44px;
  padding: 10px;
  background: #232a18;
  box-shadow:
    0 60px 120px -34px rgba(35, 42, 24, 0.5),
    0 24px 60px rgba(35, 42, 24, 0.22),
    0 0 0 6px rgba(35, 42, 24, 0.05);
  position: relative;
  z-index: 2;
  transform: perspective(1400px) rotateY(-17deg) rotateX(5deg) rotateZ(2deg);
  transform-style: preserve-3d;
}

.g-phone iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 34px;
  background: #050505;
  pointer-events: none; /* preview only — the demo data is not interactive */
}

.g-phone::after {
  /* screen glare so the tilt reads as glass */
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 34px;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.09) 0%, transparent 34%);
}

@media (max-width: 880px) {
  .g-hero { padding: 120px 0 70px; }
  .g-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .g-phone { display: none; }
}

.g-scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--tg-ink-faint);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  z-index: 2;
}

.g-scroll-cue i {
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--tg-lime), transparent);
  animation: g-cue 2s ease-in-out infinite;
}

/* logo strip already themed via tokens */

@keyframes g-cue {
  0%, 100% { transform: scaleY(0.45); transform-origin: top; opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- scroll-scrub sections (text beside video) ---------- */

.g-scrub { position: relative; height: var(--len, 300vh); }

.g-scrub-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 28px 40px;
  overflow: hidden;
}

.g-scrub-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  width: min(1180px, 100%);
  position: relative;
  z-index: 2;
}

.g-scrub.flip .g-scrub-grid > .g-scrub-copy { order: 2; }
.g-scrub.flip .g-scrub-grid > .g-scrub-side { order: 1; }

/* one headline that swaps as you scroll */
.g-swaps { display: grid; }

.g-swap {
  grid-area: 1 / 1;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 3.9vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s, transform 0.5s;
}

.g-swap.on { opacity: 1; transform: none; }

.g-swap em { font-style: italic; color: var(--tg-lime); }
.g-scrub.wilt .g-swap em { color: var(--tg-blue); }

.g-scrub-media {
  position: relative;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--tg-line-strong);
  box-shadow:
    0 0 0 1px rgba(35, 42, 24, 0.06),
    0 40px 90px -40px rgba(35, 42, 24, 0.4),
    0 8px 30px rgba(35, 42, 24, 0.12);
  background: var(--tg-panel);
}

.g-scrub-media video,
.g-scrub-media img.poster {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1284 / 716;
  object-fit: cover;
}

.g-scrub-media img.poster { position: absolute; inset: 0; }
.g-scrub-media video.ready + img.poster { display: none; }

.g-scrub-bar {
  margin-top: 14px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--tg-line);
  overflow: hidden;
}

.g-scrub-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--tg-lime);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}

/* per-section ambient glows */
.g-scrub .g-scrub-pin::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(1000px 620px at 62% 50%, rgba(126, 208, 154, 0.14), transparent 68%);
}

.g-scrub.wilt .g-scrub-pin::before {
  background: radial-gradient(1000px 620px at 38% 50%, rgba(78, 127, 187, 0.1), transparent 68%);
}

.g-scrub.wilt .g-scrub-bar i { background: var(--tg-blue); }

@media (max-width: 880px) {
  .g-scrub-grid { grid-template-columns: 1fr; gap: 26px; }
  .g-scrub.flip .g-scrub-grid > .g-scrub-copy { order: 1; }
  .g-scrub.flip .g-scrub-grid > .g-scrub-side { order: 2; }
  .g-scrub-copy h2 { margin-bottom: 18px; }
}

/* ---------- product features with live vizzes ---------- */

.g-features {
  border-top: 1px solid var(--tg-line);
  background: linear-gradient(var(--tg-bg), var(--tg-bg-2));
  padding: 120px 0 40px;
}

.g-features .head { text-align: center; margin-bottom: 30px; }

.g-features .head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-top: 20px;
}

.g-features .head h2 em { font-style: italic; color: var(--tg-lime); }

.g-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  align-items: center;
  gap: clamp(48px, 7vw, 100px);
  padding: clamp(90px, 10vw, 130px) 0;
  border-bottom: 1px solid var(--tg-line);
}

.g-feature:last-of-type { border-bottom: none; }

/* .head is the wrap's first child, so odd children are rows 2 & 4 */
.g-feature:nth-child(odd) > div:first-child { order: 2; }
.g-feature:nth-child(odd) .viz { order: 1; justify-self: start; }

.g-feature .ref {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tg-lime);
  margin-bottom: 18px;
}

.g-feature h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.08;
  margin-bottom: 18px;
}

.g-feature p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--tg-ink-dim);
  max-width: 58ch;
}

.g-feature p b { color: var(--tg-ink); font-weight: 500; }

/* mid-page repeated CTA */
.g-midcta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: clamp(48px, 7vw, 90px) 0 clamp(20px, 3vw, 40px);
  text-align: center;
}

.g-midcta .note {
  font-size: 12px;
  color: var(--tg-ink-faint);
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .g-feature { grid-template-columns: 1fr; gap: 28px; padding: 60px 0; }
  .g-feature:nth-child(odd) > div:first-child { order: 1; }
  .g-feature:nth-child(odd) .viz { order: 2; }
  .g-feature .viz { justify-self: start; }
}

/* inline keyboard key */
.key {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1;
  padding: 4px 9px 5px;
  border: 1px solid var(--tg-line-strong);
  border-radius: 6px;
  color: var(--tg-ink);
  background: var(--tg-panel);
  box-shadow: 0 2px 0 rgba(35, 42, 24, 0.12);
  vertical-align: baseline;
}

/* coming-soon chip */
.soon {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tg-lime);
  border: 1px solid rgba(111, 141, 28, 0.4);
  border-radius: 999px;
  padding: 5px 12px;
  margin-left: 6px;
  white-space: nowrap;
}

/* ============================================================
   feature visuals — looping product animations ported from the
   original landing page, recolored for the dark-lime theme.
   JS re-adds .run every loop; elements sequence themselves with
   animation-delays (--d) and `both` fill.
   ============================================================ */

.viz {
  position: relative;
  width: 100%;
  max-width: 430px;
  aspect-ratio: 5 / 4;
  border: 1px solid var(--tg-line);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f7f7ec);
  overflow: hidden;
  font-family: var(--mono);
  justify-self: end;
  box-shadow: 0 26px 60px -34px rgba(35, 42, 24, 0.3);
}
.viz.run { animation: vizEnd var(--loop, 9s) linear both; }
@keyframes vizEnd { 0%, 96% { opacity: 1; } 100% { opacity: 0; } }

.vz-label {
  position: absolute;
  top: 12px; left: 14px;
  font-size: 8.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tg-ink-faint);
}

@keyframes vzPop { from { opacity: 0; transform: scaleY(0.25); } 60% { opacity: 1; transform: scaleY(1.05); } to { opacity: 1; transform: scaleY(1); } }
@keyframes vzUp { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@keyframes vzIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes vzOut { from { opacity: 1; } to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .viz.run, .viz.run * { animation-duration: 0.01s !important; animation-delay: 0s !important; }
}

/* ---------- 001 auto-log: phone plays YouTube → calendar logs it ---------- */

.viz-autolog { display: flex; }

.al2-left {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 14px 18px;
}

.al2-phone {
  width: min(128px, 78%);
  aspect-ratio: 10 / 19;
  border: 2px solid var(--tg-ink);
  border-radius: 20px;
  background: #ffffff;
  padding: 8px 7px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 14px 30px -14px rgba(35, 42, 24, 0.35);
}

.al2-app {
  border: 1px solid var(--tg-line);
  border-radius: 10px;
  padding: 9px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 9.5px;
  color: var(--tg-ink);
  opacity: 0;
}
.viz.run .al2-app { animation: vzUp 0.5s 0.4s both; }

.al2-play {
  width: 26px;
  height: 18px;
  border-radius: 5px;
  background: #e0463a;
  position: relative;
}
.al2-play::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-40%, -50%);
  border: 4px solid transparent;
  border-left: 6px solid #fff;
}
.viz.run .al2-play { animation: ytPulse 1.4s 0.9s 3; }
@keyframes ytPulse { 50% { box-shadow: 0 0 0 5px rgba(224, 70, 58, 0.18); } }

.al2-watch {
  font-weight: 400;
  font-size: 7.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tg-ink-faint);
}

/* timer that counts up while watching */
.al2-timer {
  position: relative;
  height: 22px;
  border: 1px solid var(--tg-line);
  border-radius: 8px;
  font-size: 10px;
  color: var(--tg-ink-dim);
}
.al2-timer span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0;
}
.al2-timer span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #e0463a;
}
.viz.run .al2-timer .t1 { animation: vzIn 0.3s 0.9s both, vzOut 0.3s 2.2s both; }
.viz.run .al2-timer .t2 { animation: vzIn 0.3s 2.5s both, vzOut 0.3s 3.8s both; }
.viz.run .al2-timer .t3 { animation: vzIn 0.3s 4.1s both; }

.al2-arrow {
  align-self: center;
  font-size: 15px;
  color: var(--tg-lime);
  padding: 0 4px;
  opacity: 0;
}
.viz.run .al2-arrow { animation: vzIn 0.4s 4.9s both; }

.al-day {
  width: 46%;
  position: relative;
  border-left: 1px solid var(--tg-line);
}
.al-day::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(35, 42, 24, 0.06) 0 1px, transparent 1px 25%);
  background-position: 0 11%;
}
.al-h { position: absolute; left: 8px; font-size: 7.5px; color: var(--tg-ink-faint); }
.al-b {
  position: absolute;
  left: 17%; right: 7%;
  border: 1px dashed;
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 9px;
  line-height: 1.2;
  color: var(--tg-ink);
  opacity: 0;
  transform-origin: top;
  overflow: hidden;
}
.al-b b { display: block; font-weight: 400; font-size: 8px; color: var(--tg-ink-dim); margin-top: 2px; }
.al-b.work { background: rgba(122, 99, 201, 0.14); border-color: rgba(122, 99, 201, 0.55); }
.al-b.life { background: rgba(224, 70, 58, 0.1); border-color: rgba(224, 70, 58, 0.5); }
.al-b.health { background: rgba(63, 154, 104, 0.14); border-color: rgba(63, 154, 104, 0.55); }
.viz.run .al-b { animation: vzPop 0.5s var(--d) both; }

/* ---------- 002 transcripts: meeting writes its own notes ---------- */

.tr-card {
  position: absolute;
  inset: 18px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(122, 99, 201, 0.35);
  border-radius: 12px;
  background: rgba(122, 99, 201, 0.05);
}
.tr-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--tg-line);
  font-size: 10.5px;
}
.tr-head b { font-weight: 700; }
.tr-head .tr-time { margin-left: auto; font-size: 8.5px; color: var(--tg-ink-faint); }
.tr-rec {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #e0685e;
  animation: recPulse 1.6s infinite;
}
@keyframes recPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(224, 104, 94, 0.5); } 50% { box-shadow: 0 0 0 5px rgba(224, 104, 94, 0); } }

.tr-body {
  flex: 1;
  padding: 14px 13px 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.tr-l {
  display: flex;
  gap: 9px;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 11px;
  line-height: 1.45;
  color: var(--tg-ink-dim);
  opacity: 0;
}
.tr-l b {
  flex: none;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tg-ink-faint);
  padding-top: 2px;
  width: 38px;
}
.tr-l.tr-action {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--tg-lime);
  border: 1px solid rgba(111, 141, 28, 0.4);
  border-radius: 7px;
  padding: 8px 10px;
}
.tr-foot {
  padding: 10px 13px;
  border-top: 1px solid var(--tg-line);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tg-ink-faint);
  opacity: 0;
}
.viz.run .tr-l, .viz.run .tr-foot { animation: vzUp 0.5s var(--d) both; }

/* ---------- 003 availability: press A, drag, message drafts itself ---------- */

.av-key {
  position: absolute;
  top: 12px; right: 14px;
  z-index: 2;
  font-size: 12px;
  padding: 5px 10px 6px;
  border: 1px solid var(--tg-line-strong);
  border-radius: 6px;
  background: var(--tg-panel);
  box-shadow: 0 2px 0 rgba(35, 42, 24, 0.12);
}
.viz.run .av-key { animation: keyPress 1.1s 0.3s both; }
@keyframes keyPress {
  0%, 100% { transform: none; background: var(--tg-panel); color: var(--tg-ink); box-shadow: 0 2px 0 rgba(35, 42, 24, 0.12); }
  35%, 55% { transform: translateY(2px); background: var(--tg-lime-bright); color: #232a18; box-shadow: none; }
}

.av-grid {
  position: absolute;
  inset: 38px 16px 84px;
  border: 1px solid var(--tg-line);
  border-radius: 8px;
  background-image:
    linear-gradient(90deg, var(--tg-line) 1px, transparent 1px),
    repeating-linear-gradient(to bottom, rgba(35, 42, 24, 0.05) 0 1px, transparent 1px 20%);
  background-size: 20% 100%, 100% 100%;
}
.av-days { display: flex; }
.av-days span {
  flex: 1;
  text-align: center;
  padding: 6px 0;
  font-size: 7.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tg-ink-faint);
}
.av-b {
  position: absolute;
  width: 15%;
  border: 1px solid rgba(111, 141, 28, 0.6);
  border-radius: 5px;
  background: rgba(140, 170, 40, 0.16);
  opacity: 0;
  transform-origin: top;
}
.av-b1 { left: 22.5%; top: 30%; height: 42%; }
.av-b2 { left: 62.5%; top: 22%; height: 42%; }
.viz.run .av-b1 { animation: vzPop 1s 1.6s both; }
.viz.run .av-b2 { animation: vzPop 1s 3.6s both; }

.av-cursor {
  position: absolute;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(35, 42, 24, 0.85);
  box-shadow: 0 0 10px rgba(35, 42, 24, 0.3);
  opacity: 0;
}
.viz.run .av-cursor { animation: avCursor 4s 1.2s both; }
@keyframes avCursor {
  0% { opacity: 0; left: 28%; top: 26%; }
  8%, 10% { opacity: 1; left: 28%; top: 26%; }
  35% { left: 30%; top: 70%; }
  45% { opacity: 1; left: 30%; top: 70%; }
  55%, 60% { opacity: 1; left: 68%; top: 20%; }
  85% { opacity: 1; left: 69%; top: 62%; }
  95%, 100% { opacity: 0; left: 69%; top: 62%; }
}

.av-msg {
  position: absolute;
  left: 16px; right: 16px; bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--tg-line);
  border-radius: 9px;
  padding: 10px 12px;
  background: #ffffff;
  font-size: 9px;
  opacity: 0;
}
.viz.run .av-msg { animation: vzUp 0.55s 5.6s both; }
.av-msg p { flex: 1; color: var(--tg-ink-dim); line-height: 1.5; }
.av-link { display: block; color: var(--tg-lime); }
.av-copy {
  position: relative;
  flex: none;
  border: 1px solid var(--tg-line-strong);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.av-copy .c2 {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tg-green);
  opacity: 0;
}
.viz.run .av-copy .c1 { animation: vzOut 0.25s 7.4s both; }
.viz.run .av-copy .c2 { animation: vzIn 0.25s 7.4s both; }

/* ---------- 004 todos: drag a task onto the grid ---------- */

.td-list {
  position: absolute;
  left: 16px; top: 16px; bottom: 16px;
  width: 43%;
  border: 1px solid var(--tg-line);
  border-radius: 10px;
  padding: 36px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.td-list .vz-label { top: 13px; left: 12px; }
.td-i {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--tg-line);
  border-radius: 8px;
  padding: 9px 9px;
  font-size: 9px;
  color: var(--tg-ink-dim);
  white-space: nowrap;
  overflow: hidden;
}
.td-i i {
  flex: none;
  width: 9px; height: 9px;
  border: 1px solid var(--tg-line-strong);
  border-radius: 3px;
}
.viz.run .td-i1 { animation: tdDone 0.4s 2.3s both; }
@keyframes tdDone {
  to { color: var(--tg-ink-faint); text-decoration: line-through; border-color: var(--tg-line); }
}
.viz.run .td-i1 i { animation: tdTick 0.4s 2.3s both; }
@keyframes tdTick { to { background: rgba(140, 170, 40, 0.7); border-color: rgba(140, 170, 40, 0.7); } }

.td-cal {
  position: absolute;
  right: 16px; top: 16px; bottom: 16px;
  left: calc(43% + 28px);
  border: 1px solid var(--tg-line);
  border-radius: 10px;
  overflow: hidden;
}
.td-cal::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(35, 42, 24, 0.05) 0 1px, transparent 1px 20%);
  background-position: 0 30px;
}
.td-cal .vz-label { top: 13px; left: 12px; }
.td-static, .td-block {
  position: absolute;
  left: 8%; right: 8%;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 9px;
  line-height: 1.2;
}
.td-static, .td-block { border: 1px solid rgba(122, 99, 201, 0.55); background: rgba(122, 99, 201, 0.13); }
.td-static { top: 15%; height: 15%; }
.td-static b, .td-block b { display: block; font-weight: 400; font-size: 8px; color: var(--tg-ink-dim); margin-top: 2px; }
.td-block { top: 46%; height: 22%; opacity: 0; transform-origin: top; }
.viz.run .td-block { animation: vzPop 0.45s var(--d) both; }

.td-ghost {
  position: absolute;
  left: 26px; top: 56px;
  width: 38%;
  border: 1px solid rgba(122, 99, 201, 0.7);
  border-radius: 8px;
  background: rgba(122, 99, 201, 0.2);
  padding: 9px 9px;
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(35, 42, 24, 0.25);
  opacity: 0;
}
.viz.run .td-ghost { animation: tdFly 1.4s 0.9s both; }
@keyframes tdFly {
  0% { opacity: 0; transform: none; }
  15% { opacity: 1; transform: translate(6px, 2px) rotate(1deg); }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate(215px, 108px) rotate(2deg); }
}

/* ---------- closing ---------- */

.g-closing {
  position: relative;
  min-height: 96vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 130px 24px;
  overflow: hidden;
  border-top: 1px solid var(--tg-line);
}

.g-closing .bgframe {
  position: absolute;
  inset: 0;
  background: url("../assets/garden/bloom-last.jpg") center / cover no-repeat;
  opacity: 0.85;
}

.g-closing .bgwash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(245, 244, 235, 0.9), rgba(245, 244, 235, 0.4) 46%, rgba(245, 244, 235, 0.92)),
    radial-gradient(900px 540px at 50% 60%, rgba(211, 236, 109, 0.1), transparent 65%);
}

.g-closing .inner { position: relative; z-index: 2; }

.g-closing img.mark {
  width: 68px;
  height: 68px;
  margin-bottom: 28px;
  filter: drop-shadow(0 6px 18px rgba(35, 42, 24, 0.25));
}

.g-closing h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 94px);
  line-height: 1.0;
  letter-spacing: -0.015em;
  margin-bottom: 38px;
}

.g-closing h2 em {
  font-style: italic;
  color: var(--tg-lime);
}

.g-closing .note {
  display: block;
  margin-top: 22px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--tg-ink-faint);
}

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

.g-foot {
  border-top: 1px solid var(--tg-line);
  padding: 32px 0 40px;
  font-size: 12.5px;
  color: var(--tg-ink-faint);
  background: var(--tg-bg);
}

.g-foot .row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.g-foot a { transition: color 0.2s; }
.g-foot a:hover { color: var(--tg-ink); }

/* ---------- reveal on scroll ---------- */

.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
.rv.in { opacity: 1; transform: none; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .g-float, .g-scroll-cue i { animation: none; }
  .g-scrub { height: auto; }
  .g-scrub-pin { position: static; height: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
}
