/* Tushar Gatkal — locked design system
   Palette: white / grey / navy ONLY.
   Type: Fraunces (display) + DM Sans (body)            */

:root {
  --bg:           #ffffff;
  --surface:      #f5f5f5;
  --border:       #e0e0e0;
  --text:         #2a2a2a;
  --text-muted:   #6b6b6b;
  --accent:       #1a3a5c;
  --accent-soft:  rgba(26, 58, 92, 0.08);
  --accent-line:  rgba(26, 58, 92, 0.2);

  --serif: 'Fraunces', Georgia, serif;
  --sans:  'DM Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 36px;
  --space-5: 56px;
  --space-6: 80px;
  --space-7: 120px;

  --easing: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { scroll-behavior: auto; }
body {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  cursor: none; /* hidden — we draw our own */
  font-feature-settings: 'ss01';
}
@media (max-width: 768px) {
  body { cursor: auto; }   /* keep system cursor on touch / mobile */
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: none; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }

::selection { background: var(--accent); color: #fff; }

/* ── reveal-on-scroll primitive ────────────────────────────── */
.js-anim .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.9s var(--easing), transform 0.9s var(--easing); will-change: opacity, transform; }
.js-anim .reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-stagger="1"] { transition-delay: 0.08s; }
.reveal[data-stagger="2"] { transition-delay: 0.16s; }
.reveal[data-stagger="3"] { transition-delay: 0.24s; }
.reveal[data-stagger="4"] { transition-delay: 0.32s; }
.reveal[data-stagger="5"] { transition-delay: 0.40s; }
.reveal[data-stagger="6"] { transition-delay: 0.48s; }

/* ── magnetic cursor ──────────────────────────────────────── */
.tg-cursor {
  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--easing), height 0.25s var(--easing), background 0.25s var(--easing);
  mix-blend-mode: normal;
}
.tg-cursor.is-hover {
  width: 36px; height: 36px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
}
@media (max-width: 768px) { .tg-cursor { display: none; } }

/* ── nav ──────────────────────────────────────────────────── */
.tg-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; padding: 22px 56px;
  background: transparent;
  transition: background 0.4s var(--easing), border-color 0.4s var(--easing);
  border-bottom: 1px solid transparent;
}
.tg-nav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.tg-nav-logo {
  font-family: var(--serif); font-size: 19px; font-weight: 500; letter-spacing: -0.01em;
}
.tg-nav-logo i { font-style: italic; color: var(--accent); font-weight: 400; }
.tg-nav-links { display: flex; gap: 36px; justify-self: center; }
.tg-nav-links a {
  font-size: 13px; color: var(--text); position: relative; padding: 4px 0;
  font-weight: 400;
}
.tg-nav-links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 1px; background: var(--accent);
  transition: right 0.4s var(--easing);
}
.tg-nav-links a:hover::after { right: 0; }
.tg-nav-cta {
  justify-self: end;
  background: var(--accent); color: #fff;
  padding: 10px 20px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  transition: transform 0.25s var(--easing), background 0.25s;
}
.tg-nav-cta:hover { transform: translateY(-1px); background: #122a45; }
@media (max-width: 768px) {
  .tg-nav { padding: 16px 20px; }
  .tg-nav-links { display: none; }
}

/* ── hero ─────────────────────────────────────────────────── */
.tg-hero {
  padding: 140px 56px 80px;
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: 56px; align-items: end;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.tg-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 32px;
  font-weight: 500;
}
.tg-hero-eyebrow .rule { width: 32px; height: 1px; background: var(--accent); }

.tg-headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-style: normal;
  font-size: clamp(52px, 8.5vw, 108px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}
/* Emphasis treatment — sitewide. Weight + colour + scale, NEVER italic.
   Nav logo italic is the single exception. */
.tg-headline em,
.tg-sec-title em,
.tg-foot-big em,
.tg-build-name em,
.tg-lede em,
.tg-about-headline em,
.tg-about-body em,
em.acc {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 500;
  color: var(--accent);
  font-size: 1.05em;
  letter-spacing: -0.01em;
}
.tg-foot-big em { color: rgba(255,255,255,0.92); }
/* hero word-by-word entrance — visible by default, animates if JS hooks in */
.tg-word { display: inline-block; opacity: 1; transform: none; }
.js-anim .tg-word { opacity: 0; transform: translateY(0.4em); animation: tgWordIn 0.7s var(--easing) forwards; }
@keyframes tgWordIn { to { opacity: 1; transform: translateY(0); } }

.tg-lede {
  font-family: var(--sans);
  font-size: 17px; line-height: 1.6;
  color: var(--text-muted); max-width: 520px;
  margin-bottom: 36px;
}
.js-anim .tg-lede { opacity: 0; transition: opacity 0.8s var(--easing) 0.7s; }
.js-anim .tg-lede.in { opacity: 1; }
.tg-lede strong { color: var(--text); font-weight: 500; }

.tg-actions {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}
.js-anim .tg-actions { opacity: 0; transition: opacity 0.6s var(--easing) 0.9s; }
.js-anim .tg-actions.in { opacity: 1; }
.tg-btn-primary {
  background: var(--accent); color: #fff;
  padding: 14px 26px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform 0.25s var(--easing), background 0.25s;
}
.tg-btn-primary:hover { transform: translateY(-2px); background: #122a45; }
.tg-btn-secondary {
  font-size: 13px; color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 3px;
  display: inline-flex; align-items: center; gap: 6px;
}

.tg-portrait-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--surface);
  overflow: hidden;
  will-change: transform;
}
.js-anim .tg-portrait-wrap { opacity: 0; transition: opacity 1s var(--easing) 0.5s; }
.js-anim .tg-portrait-wrap.in { opacity: 1; }
.tg-portrait-wrap img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%;
  filter: contrast(0.98) saturate(0.9);
  transform: translateY(0);  /* parallax target */
  will-change: transform;
}
.tg-portrait-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(26,58,92,0.18));
  pointer-events: none;
}
.tg-portrait-cap {
  position: absolute; left: 16px; right: 16px; bottom: 14px;
  z-index: 2;
  display: flex; justify-content: space-between;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: #fff;
}

@media (max-width: 900px) {
  .tg-hero { grid-template-columns: 1fr; padding: 120px 20px 60px; gap: 40px; }
}

/* ── stat strip ───────────────────────────────────────────── */
.tg-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border);
}
.tg-stat {
  padding: 40px 32px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
  transition: background 0.3s var(--easing);
}
.tg-stat:last-child { border-right: none; }
.tg-stat:hover { background: var(--surface); }
.tg-stat-num {
  font-family: var(--serif);
  font-size: 56px; line-height: 1; letter-spacing: -0.03em;
  font-style: italic; color: var(--accent);
  font-weight: 400;
  font-feature-settings: 'tnum';
}
.tg-stat-lbl {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.06em;
  color: var(--text-muted); font-weight: 500;
}
@media (max-width: 700px) {
  .tg-stats { grid-template-columns: 1fr; }
  .tg-stat { border-right: none; border-bottom: 1px solid var(--border); padding: 28px 20px; }
  .tg-stat:last-child { border-bottom: none; }
  .tg-stat-num { font-size: 44px; }
}

/* ── credential ticker ────────────────────────────────────── */
.tg-creds {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden; position: relative;
  padding: 18px 0;
}
.tg-creds-track {
  display: flex; gap: 64px;
  animation: tgScroll 50s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.tg-creds:hover .tg-creds-track { animation-play-state: paused; }
@keyframes tgScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.tg-cred-item {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 500;
  display: inline-flex; align-items: center; gap: 14px;
}
.tg-cred-item .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

/* ── section header ──────────────────────────────────────── */
.tg-sec { padding: var(--space-7) 56px; border-bottom: 1px solid var(--border); }
.tg-sec-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 56px;
  padding-bottom: 22px;
  position: relative;
}
.tg-sec-head::after {
  /* horizontal rule that "draws" on scroll */
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: var(--border);
  transform-origin: left; transform: scaleX(0);
  transition: transform 0.6s var(--easing);
}
.tg-sec-head.in::after { transform: scaleX(1); }
.tg-sec-num {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 500;
}
.tg-sec-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 52px);
  letter-spacing: -0.025em; line-height: 1.05;
  font-weight: 400;
  flex: 1; text-align: center;
}
/* sec-title em handled in unified emphasis block above */
.tg-sec-link {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text); font-weight: 500;
}
@media (max-width: 768px) {
  .tg-sec { padding: 64px 20px; }
  .tg-sec-head { flex-direction: column; gap: 16px; align-items: flex-start; }
  .tg-sec-title { text-align: left; }
}

/* ── work rows ───────────────────────────────────────────── */
.tg-work-list { display: flex; flex-direction: column; gap: 0; }
.tg-work-row {
  display: grid;
  grid-template-columns: 60px 1.7fr 1.5fr 1fr;
  gap: 32px; align-items: baseline;
  padding: 28px 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  cursor: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  margin: 0 -24px;
}
.tg-work-row:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  background: var(--surface);
  border-radius: 8px;
}
.tg-work-row:hover .tg-work-metric-num { transform: scale(1.05); }
.tg-work-idx {
  font-size: 12px; color: var(--text-muted);
  letter-spacing: 0.08em; font-weight: 500;
  font-family: var(--serif); font-style: italic;
}
.tg-work-co {
  font-family: var(--serif);
  font-size: 30px; letter-spacing: -0.02em; line-height: 1.05;
  font-weight: 400;
}
.tg-work-role { font-size: 12px; color: var(--text-muted); margin-top: 6px; letter-spacing: 0.02em; }
.tg-work-summary { font-size: 14px; line-height: 1.55; color: var(--text-muted); }
.tg-work-points {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.tg-work-point {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);
  padding-left: 14px;
  border-left: 1px solid var(--accent-line);
  transition: border-color 0.25s var(--easing), color 0.25s var(--easing);
}
.tg-work-row:hover .tg-work-point {
  border-left-color: var(--accent);
  color: var(--text);
}
.tg-work-point strong {
  color: var(--text);
  font-weight: 500;
}
.tg-work-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.tg-work-chip {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 3px 10px;
  font-weight: 500;
  background: var(--accent-soft);
}

/* deck trigger */
.tg-deck-trigger {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 10px;
  gap: 2px;
  cursor: none;
}
[data-deck] .tg-deck-trigger { display: flex; }
.tg-deck-trigger-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  font-family: var(--sans);
}
.tg-deck-trigger-icon {
  font-size: 14px;
  color: var(--accent);
  transition: transform 0.3s var(--easing);
  display: inline-block;
}
[data-deck].deck-open .tg-deck-trigger-icon { transform: rotate(180deg); }

[data-deck] { cursor: none; position: relative; }
[data-deck]::after {
  content: 'View deck';
  position: absolute;
  bottom: 16px;
  right: 24px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.25s var(--easing);
  font-weight: 500;
  font-family: var(--sans);
}
[data-deck]:hover::after { opacity: 1; }

/* deck viewer */
.tg-deck-viewer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  margin: 0 -24px;
}
.tg-deck-viewer.is-open {
  max-height: 700px;
}
.tg-deck-inner {
  padding: 40px 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.tg-deck-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0d1929;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}
.tg-deck-stage img,
.tg-deck-stage iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border: 0;
  background: #0d1929;
}
.tg-deck-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.tg-deck-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  cursor: none;
  font-size: 18px;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--easing);
}
.tg-deck-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.08);
}
.tg-deck-btn:disabled { opacity: 0.3; pointer-events: none; }
.tg-deck-counter {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  font-feature-settings: 'tnum';
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.tg-deck-close {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.tg-deck-close:hover { color: var(--text); border-color: var(--text); }

@media (max-width: 900px) {
  .tg-deck-inner { grid-template-columns: 1fr; padding: 24px 20px; }
  .tg-deck-controls { flex-direction: row; }
  .tg-deck-counter { writing-mode: horizontal-tb; }
  .tg-deck-viewer.is-open { max-height: 500px; }
}
.tg-work-metric { text-align: right; }
.tg-work-metric-num {
  font-family: var(--serif);
  font-size: 36px; letter-spacing: -0.025em;
  font-style: italic; color: var(--accent);
  font-weight: 400; line-height: 1;
  display: inline-block;
  transform-origin: right center;
  transition: transform 0.25s var(--easing);
}
.tg-work-metric-lbl {
  font-size: 11px; color: var(--text-muted);
  margin-top: 6px; letter-spacing: 0.04em;
}
@media (max-width: 900px) {
  .tg-work-row { grid-template-columns: 1fr; gap: 14px; padding: 24px 0; margin: 0; }
  .tg-work-row:hover { border-radius: 0; transform: none; background: transparent; }
  .tg-work-metric { text-align: left; }
}

/* ── about / timeline ────────────────────────────────────── */
.tg-about {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px;
  align-items: start;
}
.tg-about-headline {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.025em; line-height: 1.05;
  font-weight: 400; margin-bottom: 28px;
}

.tg-about-body p {
  font-size: 16px; line-height: 1.7; color: var(--text-muted);
  margin-bottom: 14px;
}
.js-anim .tg-about-body p { opacity: 0; transform: translateY(12px); transition: opacity 0.7s var(--easing), transform 0.7s var(--easing); }
.js-anim .tg-about-body p.in { opacity: 1; transform: translateY(0); }
.tg-about-body p strong { color: var(--text); font-weight: 500; }

/* ── horizontal journey timeline (full-width) ────────────────── */
.tg-about-full { width: 100%; }
.tg-journey {
  position: relative;
  margin-top: 8px;
  padding: 24px 0 24px;
  user-select: none;
}
.tg-journey-detail {
  min-height: 200px;
  margin-bottom: 64px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.tg-journey-meta {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--sans);
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 24px;
}
.tg-journey-counter { font-feature-settings: 'tnum'; color: var(--accent); }
.tg-journey-divider { width: 24px; height: 1px; background: var(--accent-line); }
.tg-journey-tag { color: var(--text-muted); }

.tg-journey-row {
  display: grid; grid-template-columns: minmax(280px, 0.85fr) 1.15fr;
  gap: 64px; align-items: end;
}
.tg-journey-year {
  font-family: var(--serif);
  font-size: clamp(80px, 12vw, 168px);
  font-weight: 500;
  letter-spacing: -0.04em; line-height: 0.88;
  color: var(--accent);
  font-feature-settings: 'tnum';
  position: relative;
}
.tg-journey-year .yr-char {
  display: inline-block;
}
.tg-journey-text { padding-bottom: 18px; max-width: 600px; }
.tg-journey-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.15;
  color: var(--text);
  margin-bottom: 10px;
}
.tg-journey-sub {
  font-size: 14px; line-height: 1.55;
  color: var(--text-muted);
}

/* per-character flip animation when journey state changes */
.yr-char, .tg-journey-title, .tg-journey-sub, .tg-journey-counter, .tg-journey-tag {
  transition: opacity 0.35s var(--easing), transform 0.35s var(--easing), filter 0.35s var(--easing);
}
.tg-journey-detail.is-changing .yr-char,
.tg-journey-detail.is-changing .tg-journey-title,
.tg-journey-detail.is-changing .tg-journey-sub,
.tg-journey-detail.is-changing .tg-journey-counter,
.tg-journey-detail.is-changing .tg-journey-tag {
  opacity: 0; transform: translateY(8px); filter: blur(2px);
}

/* the rail */
.tg-rail {
  position: relative;
  height: 64px;
  margin: 0 12px;
  cursor: none;
}
.tg-rail-line {
  position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; background: var(--border);
  transform: translateY(-0.5px);
}
.tg-rail-progress {
  position: absolute; left: 0; top: 50%;
  height: 2px; background: var(--accent);
  transform: translateY(-1px);
  transform-origin: left center;
  transition: width 0.6s var(--easing);
}
.tg-rail-playhead {
  position: absolute; top: 50%; left: 0;
  width: 0; height: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: left 0.6s var(--easing);
}
.tg-rail-playhead .ph-dot {
  position: absolute; left: 50%; top: 50%;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
}
.tg-rail-playhead .ph-ring {
  position: absolute; left: 50%; top: 50%;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--accent);
  transform: translate(-50%, -50%);
  animation: tgPing 2.2s var(--easing) infinite;
}
@keyframes tgPing {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

.tg-rail-nodes {
  position: relative; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.tg-node {
  position: relative;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  cursor: none; background: none; border: none; padding: 0;
  font: inherit; color: inherit;
  flex-shrink: 0;
}
.tg-node-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--text-muted);
  transition: transform 0.35s var(--easing),
              background 0.3s var(--easing),
              border-color 0.3s var(--easing);
  z-index: 2; position: relative;
}
.tg-node:hover .tg-node-dot {
  transform: scale(1.4);
  border-color: var(--accent);
}
.tg-node.is-passed .tg-node-dot {
  background: var(--accent);
  border-color: var(--accent);
}
.tg-node.is-active .tg-node-dot {
  background: var(--accent); border-color: var(--accent);
  transform: scale(1.6);
}
.tg-node-label {
  position: absolute; top: calc(100% + 6px); left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif); font-weight: 500;
  font-size: 12px; letter-spacing: 0.02em;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.25s var(--easing), transform 0.3s var(--easing);
}
.tg-node:hover .tg-node-label {
  color: var(--text);
  transform: translateX(-50%) translateY(2px);
}
.tg-node.is-active .tg-node-label {
  color: var(--accent);
}
/* connector tick from node up to detail row */
.tg-node-tick {
  position: absolute; bottom: calc(50% + 12px); left: 50%;
  width: 1px; height: 0;
  background: var(--accent);
  transform: translateX(-0.5px);
  transition: height 0.4s var(--easing);
  opacity: 0.6;
}
.tg-node.is-active .tg-node-tick { height: 18px; }

.tg-journey-hint {
  margin-top: 56px;
  font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--text-muted);
  font-weight: 500; opacity: 0.55;
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
}
.tg-journey-hint .arrows { display: inline-flex; gap: 4px; font-family: var(--serif); }
.tg-journey-hint .kbd {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
  letter-spacing: 0.16em;
  font-size: 9px;
}
.tg-journey-hint.is-playing .kbd {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

@media (max-width: 900px) {
  .tg-journey { padding: 16px 0; }
  .tg-journey-detail { min-height: auto; margin-bottom: 32px; padding-bottom: 16px; }
  .tg-journey-meta { margin-bottom: 16px; }
  .tg-journey-row { grid-template-columns: 1fr; gap: 12px; }
  .tg-journey-year { font-size: 64px; }
  .tg-rail { margin: 0; height: 44px; }
  .tg-node { width: 38px; height: 38px; }
  .tg-node-label { font-size: 10px; }
  .tg-journey-hint { margin-top: 32px; gap: 10px; }
  .tg-journey-hint .kbd { display: none; }
}
@media (max-width: 900px) {
  .tg-about { grid-template-columns: 1fr; gap: 48px; }
}

/* ── building cards ─────────────────────────────────────── */
.tg-build {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.tg-build-card {
  border: 1px solid var(--border); border-radius: 8px;
  padding: 36px; background: var(--bg);
  display: flex; flex-direction: column; gap: 14px;
  min-height: 280px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.tg-build-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  background: var(--surface);
}
.tg-build-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 500;
  width: fit-content;
}
.tg-build-status .pip {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.tg-build-status.live .pip {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: tgPulse 2s var(--easing) infinite;
}
@keyframes tgPulse {
  0%,100% { box-shadow: 0 0 0 4px var(--accent-soft); }
  50%     { box-shadow: 0 0 0 8px rgba(26,58,92,0.04); }
}
.tg-build-name {
  font-family: var(--serif);
  font-size: 44px; letter-spacing: -0.025em; line-height: 1;
  font-weight: 400;
}
.tg-build-kind {
  font-size: 12px; letter-spacing: 0.06em;
  color: var(--text-muted);
}
.tg-build-desc {
  font-size: 14px; line-height: 1.65; color: var(--text-muted);
  flex: 1;
}
.tg-build-link {
  font-size: 13px; color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
  margin-top: 4px;
}
.tg-build-link.muted { color: var(--text-muted); border-color: transparent; cursor: default; }
@media (max-width: 768px) {
  .tg-build { grid-template-columns: 1fr; gap: 16px; }
  .tg-build-card { padding: 28px 24px; }
  .tg-build-name { font-size: 36px; }
}

/* ── footer ──────────────────────────────────────────────── */
.tg-foot {
  background: var(--accent);
  color: #fff;
  padding: 80px 56px 40px;
}
.tg-foot-big {
  font-family: var(--serif);
  font-size: clamp(56px, 9vw, 120px);
  line-height: 0.98; letter-spacing: -0.035em;
  font-weight: 400;
  margin-bottom: 56px;
  max-width: 900px;
}

.tg-foot-grid {
  display: grid; grid-template-columns: 1fr auto; gap: 36px;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.18);
  align-items: center;
}
.tg-foot-meta {
  font-size: 12px; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
}
.tg-foot-links { display: flex; gap: 28px; }
.tg-foot-links a {
  font-size: 13px; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 3px;
}
.tg-foot-links a:hover { border-color: #fff; }
@media (max-width: 700px) {
  .tg-foot { padding: 56px 20px 32px; }
  .tg-foot-grid { grid-template-columns: 1fr; gap: 20px; align-items: flex-start; }
  .tg-foot-links { flex-wrap: wrap; gap: 16px; }
}
