:root {
  --bg: #07070c;
  --bg2: #0e0e16;
  --page-glow-gold: rgba(212, 175, 55, 0.12);
  --page-glow-rose: rgba(196, 92, 106, 0.08);
  --glass: rgba(18, 18, 28, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text: #f4f2ee;
  --muted: #8a8794;
  --accent: #d4af37;
  --accent-dim: rgba(212, 175, 55, 0.14);
  --rose: #c45c6a;
  --tab-h: 60px;
  --header-h: 72px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
  --pad-x: 16px;
  --gutter-left: max(var(--pad-x), env(safe-area-inset-left, 0px));
  --gutter-right: max(var(--pad-x), env(safe-area-inset-right, 0px));
}

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html {
  height: 100%;
  height: -webkit-fill-available;
}
html, body { overflow: hidden; }
body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  font-family: var(--font);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  user-select: none;
}
body.sheet-open { overflow: hidden; }

.app {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--app-h, 100dvh);
  max-height: var(--app-h, 100dvh);
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
  background: var(--bg);
}
@media (min-width: 481px) {
  .app { box-shadow: 0 0 80px rgba(0,0,0,.6); }
}

.app-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 50% at 50% -10%, var(--page-glow-gold), transparent),
    radial-gradient(ellipse 60% 40% at 100% 80%, var(--page-glow-rose), transparent),
    var(--bg);
  z-index: 0;
}

.app-header {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  padding-top: 0;
  padding-bottom: 0;
  padding-inline: var(--gutter-left) var(--gutter-right);
  overflow: hidden;
  touch-action: pan-y;
  transition: background 0.45s var(--ease), box-shadow 0.45s var(--ease), padding 0.45s var(--ease);
}
.app-header.has-header-tree {
  overflow: visible;
}
.header-aurora {
  position: absolute;
  inset: -40% -20% auto;
  height: 140px;
  background:
    radial-gradient(ellipse 70% 100% at 20% 0%, rgba(212, 175, 55, 0.22), transparent 65%),
    radial-gradient(ellipse 50% 80% at 85% 10%, rgba(196, 92, 106, 0.14), transparent 60%);
  filter: blur(18px);
  pointer-events: none;
  animation: aurora 8s ease-in-out infinite alternate;
}
@keyframes aurora {
  from { transform: translateX(-2%) scale(1); opacity: 0.85; }
  to { transform: translateX(3%) scale(1.05); opacity: 1; }
}
.header-grid {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 14px;
  transition: padding 0.45s var(--ease);
}
.app-header.has-header-tree .header-grid {
  transition: none;
}

.header-compact-brand,
.header-compact-pill {
  display: none;
  pointer-events: none;
}
.header-compact-brand {
  margin: 0;
  align-items: center;
  justify-content: center;
  min-width: 0;
  position: relative;
}
.brand-word {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 100%;
  font-size: clamp(15px, 4.2vw, 18px);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
}
.brand-word-text {
  display: inline-flex;
  align-items: center;
}
.brand-underline {
  display: none;
  position: relative;
  width: 100%;
  height: 2px;
  margin-top: 5px;
  border-radius: 2px;
  background: linear-gradient(90deg,
    rgba(212, 175, 55, 0.15),
    rgba(212, 175, 55, 0.35) 50%,
    rgba(196, 92, 106, 0.15));
}
.brand-underline-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f0d060;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.9), 0 0 16px rgba(196, 92, 106, 0.45);
  transform: translate(-50%, -50%);
  animation: brand-underline-dot 12s ease-in-out infinite;
}
@keyframes brand-underline-dot {
  0% { left: 0%; }
  16% { left: var(--brand-o-x, 18%); }
  22% { left: var(--brand-o-x, 18%); }
  44% { left: 100%; }
  50% { left: 100%; }
  70% { left: var(--brand-o-x, 18%); }
  76% { left: var(--brand-o-x, 18%); }
  100% { left: 0%; }
}
.app-header.is-compact.has-header-tree .brand-underline {
  display: block;
}
.brand-title-full {
  position: relative;
  z-index: 2;
  color: #d4af37;
  letter-spacing: 0.06em;
}
.brand-go {
  position: relative;
  z-index: 2;
  color: #d4af37;
}
.brand-sanskriti {
  position: relative;
  z-index: 2;
  letter-spacing: 0.06em;
  color: #e8a8b0;
}
.header-compact-pill {
  align-items: center;
  gap: 5px;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: #f0d4d8;
  border: 1px solid rgba(196, 92, 106, 0.45);
  background: linear-gradient(135deg, rgba(196, 92, 106, 0.22), rgba(196, 92, 106, 0.06));
  box-shadow: 0 0 18px rgba(196, 92, 106, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.header-compact-pill-ico {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  color: #e8a0a8;
  opacity: 0.95;
}

.app-header.is-compact.has-header-tree {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-bottom: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
.app-header.is-compact.has-header-tree::after {
  display: none;
}
.app-header.is-compact.has-header-tree .header-aurora,
.app-header.is-compact.has-header-tree .header-scan {
  opacity: 0;
  visibility: hidden;
}
.app-header.is-compact.has-header-tree .header-grid {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  grid-template-rows: 80px;
  align-items: center;
  column-gap: 4px;
  min-height: 80px;
  height: 80px;
  padding-bottom: 0;
  overflow: hidden;
}
.app-header.is-compact.has-header-tree .header-name-block {
  display: contents;
}
.app-header.is-compact.has-header-tree .header-identity {
  display: contents;
}
.app-header.is-compact.has-header-tree .header-monogram {
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  width: 44px;
  height: 44px;
  margin: 0;
  contain: layout style;
  transition: none;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.35));
}
.app-header.is-compact.compact-chrome-ready.has-header-tree .header-monogram {
  animation: compact-mono-in 0.35s var(--ease) both;
}
.app-header.is-compact.has-header-tree .header-monogram-lg {
  width: 44px;
  height: 44px;
}
.app-header.is-compact.has-header-tree .mono-core { inset: 20%; transition: none; }
.app-header.is-compact.has-header-tree .mono-orbit-2 { inset: 5px; }
.app-header.is-compact.has-header-tree .mono-orbit-3 { inset: 11px; }
.app-header.is-compact.has-header-tree .mono-pulse { inset: 8px; }
.app-header.is-compact.has-header-tree .mono-orbit::after { width: 5px; height: 5px; }
.app-header.is-compact.has-header-tree .mono-orbit-2::after { width: 4px; height: 4px; }
.app-header.is-compact.has-header-tree .mono-beam { display: none; }
.app-header.is-compact.has-header-tree .header-compact-brand {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  justify-content: flex-start;
  align-self: center;
  min-width: 0;
  overflow: visible;
  z-index: 2;
  pointer-events: auto;
}
.app-header.is-compact.compact-chrome-ready.has-header-tree .header-compact-brand {
  animation: compact-brand-in 0.35s var(--ease) 0.04s both;
}
.app-header.is-compact.has-header-tree .header-compact-brand::before {
  display: none;
}
.app-header.is-compact.has-header-tree .header-compact-pill {
  display: inline-flex;
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  pointer-events: auto;
}
.app-header.is-compact.compact-chrome-ready.has-header-tree .header-compact-pill {
  animation: compact-pill-in 0.35s var(--ease) 0.08s both;
}
.app-header.is-compact.has-header-tree .name-tree,
.app-header.is-compact.has-header-tree .header-pills,
.app-header.is-compact.has-header-tree .name-hero,
.app-header.is-compact.has-header-tree .header-sub-card,
.app-header.is-compact.has-header-tree .app-header-eyebrow,
.app-header.is-compact.has-header-tree .header-tree-branch-first,
.app-header.is-compact.has-header-tree .header-tree-descent {
  display: none !important;
}
@keyframes compact-mono-in {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: none; }
}
@keyframes compact-brand-in {
  from { opacity: 0; transform: translateY(10px) scale(0.88); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes compact-pill-in {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: none; }
}

.header-name-block {
  display: grid;
  grid-template-columns: 20px 1fr;
  column-gap: 14px;
  align-items: stretch;
}
.header-name-block:not(.has-tree) {
  grid-template-columns: 1fr;
}
.header-name-block:not(.has-tree) .name-tree {
  display: none;
}
.header-name-block .header-pills {
  grid-column: 2;
  grid-row: 1;
  margin-bottom: 10px;
  width: 100%;
  justify-content: space-between;
  flex-wrap: nowrap;
}
.header-name-block .header-identity {
  grid-column: 2;
  grid-row: 2;
}
.header-name-block:not(.has-tree) .header-pills,
.header-name-block:not(.has-tree) .header-identity {
  grid-column: 1;
}

/* Line tree */
.name-tree {
  grid-column: 1;
  grid-row: 1 / 3;
  position: relative;
  min-height: 100%;
  align-self: stretch;
  overflow: visible;
}
.name-tree-trunk {
  position: absolute;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(180deg,
    rgba(212,175,55,0.55),
    rgba(212,175,55,0.35) 100%,
    rgba(212,175,55,0.2));
  border-radius: 2px;
}
.header-tree-branch-first {
  display: none;
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, rgba(212,175,55,0.5), rgba(212,175,55,0.2));
  border-radius: 2px;
  pointer-events: none;
  z-index: 1;
}
.app-header.has-header-tree .header-tree-branch-first:not([hidden]) {
  display: block;
}
.name-tree-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid rgba(212,175,55,0.65);
  box-shadow: 0 0 10px rgba(212,175,55,0.35);
  pointer-events: none;
  z-index: 2;
}
.name-tree-dot-junction {
  z-index: 3;
}
.header-tree-descent {
  display: none;
  position: absolute;
  width: 2px;
  background: linear-gradient(180deg,
    rgba(212,175,55,0.35),
    rgba(212,175,55,0.55));
  border-radius: 2px;
  pointer-events: none;
  z-index: 1;
}
.header-tree-descent::before,
.header-tree-descent::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid rgba(212,175,55,0.65);
  box-shadow: 0 0 10px rgba(212,175,55,0.35);
}
.header-tree-descent::before {
  top: -3.5px;
}
.header-tree-descent::after {
  bottom: -3.5px;
}
.app-header.has-header-tree .header-tree-descent:not([hidden]) {
  display: block;
}

.header-identity {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
.header-identity-home {
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 8px;
  overflow: visible;
}
.header-identity-home .name-hero {
  justify-content: center;
  width: 100%;
}

/* Name hero + tree-linked stack */
.name-hero {
  display: flex;
  align-items: center;
  margin: 0;
  min-width: 0;
  min-height: 0;
  position: relative;
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease);
}

.name-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 4px 0;
  justify-self: start;
}
.name-stack-tree {
  padding: 2px 0 6px;
  gap: 2px;
  align-items: center;
  text-align: center;
  width: 100%;
}

.name-line {
  display: block;
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
  text-align: center;
}
.name-line-primary {
  font-size: clamp(24px, 6.5vw, 32px);
  background: linear-gradient(120deg, #f5efe6, #d4af37 45%, #f0d060 70%, #f5efe6);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 7s linear infinite;
}
.name-line-secondary {
  font-size: clamp(19px, 5.2vw, 24px);
  color: rgba(245,239,230,0.72);
  font-weight: 500;
  margin-top: 4px;
  padding-left: 0;
  letter-spacing: 0.02em;
}
.name-line-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 0;
}
.header-stat-num {
  display: block;
  font-size: clamp(40px, 11vw, 52px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
  background: linear-gradient(165deg, #fff8e8 0%, #f0d060 35%, #d4af37 60%, #fff5dc 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 20px rgba(212, 175, 55, 0.35));
}
.header-stat-label {
  display: block;
  font-size: clamp(11px, 3vw, 13px);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(232, 168, 176, 0.92);
}
.name-stack-portfolio .name-line-primary {
  font-size: clamp(20px, 5.2vw, 26px);
}
.header-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  min-height: 24px;
}
.app-header:not(.is-compact) .header-pills {
  transform: translateY(10px);
}
.header-pills:has(.header-pill:only-child) {
  justify-content: flex-start;
}
.header-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  animation: pill-in 0.45s var(--ease) both;
}
.header-pill svg { width: 12px; height: 12px; flex-shrink: 0; }
.pill-gold {
  color: var(--accent);
  border-color: rgba(212,175,55,0.35);
  background: linear-gradient(135deg, rgba(212,175,55,0.16), rgba(212,175,55,0.04));
  box-shadow: 0 0 20px rgba(212,175,55,0.12);
}
.pill-rose {
  color: #e8a0a8;
  border-color: rgba(196,92,106,0.35);
  background: rgba(196,92,106,0.1);
}
@keyframes pill-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.app-header-title {
  margin: 0;
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease);
}
.app-header-title.is-changing,
.name-hero.is-changing {
  opacity: 0;
  transform: translateY(6px);
}

.header-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(212,175,55,0.03) 50%, transparent 60%);
  background-size: 100% 200%;
  animation: scan 6s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.6;
}
@keyframes scan {
  0%, 100% { background-position: 0 -100%; }
  50% { background-position: 0 100%; }
}

.header-identity:not(.header-identity-home) .mono-beam { display: none; }

/* Portrait inside orb */
.mono-core {
  position: absolute;
  inset: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  padding: 0;
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 8px 28px rgba(0,0,0,0.4);
  z-index: 5;
  pointer-events: none;
}
.mono-core img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 50%;
  display: block;
}
.mono-fallback {
  display: none;
  font-size: 52px;
  font-weight: 300;
  color: var(--text);
}
.mono-core[data-fallback="1"] img { display: none; }
.mono-core[data-fallback="1"] .mono-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

@keyframes shine {
  to { background-position: 200% center; }
}

/* Large logo orb: right */
.header-monogram-lg {
  width: clamp(152px, 38vw, 200px);
  height: clamp(152px, 38vw, 200px);
  justify-self: end;
  flex-shrink: 0;
  margin-left: 0;
  overflow: visible;
}
.app-header.has-header-tree .header-monogram-lg {
  width: clamp(160px, 40vw, 208px);
  height: clamp(160px, 40vw, 208px);
}
.app-header.has-header-tree:not(.is-compact) .header-monogram-lg {
  width: clamp(148px, 36vw, 192px);
  height: clamp(148px, 36vw, 192px);
}
.app-header.has-header-tree:not(.is-compact) .header-monogram {
  margin-top: 6px;
  margin-bottom: 4px;
}
.app-header.has-header-tree:not(.is-compact) .header-sub-card {
  margin-top: 8px;
}
.mono-orbit,
.mono-orbit-2,
.mono-orbit-3,
.mono-pulse,
.mono-beam {
  z-index: 1;
  pointer-events: none;
}

/* Other tabs: compact title chip */
.title-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.title-chip-text {
  font-size: clamp(22px, 6vw, 28px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: linear-gradient(120deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.header-sub-card {
  margin: 12px 0 0;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  border: 1px solid var(--glass-border);
  transition: none;
  box-shadow:
    0 10px 32px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}
.app-header.has-header-tree .header-sub-card {
  margin-top: 4px;
}
.app-header.has-header-tree .header-sub-kicker {
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-bottom: 12px;
  overflow-x: visible;
}
.app-header.has-header-tree .header-sub-kicker .kicker-dot {
  display: none;
}
.header-sub-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), rgba(196,92,106,0.6), transparent);
  opacity: 0.85;
}
.header-sub-kicker {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  margin-bottom: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x;
}
.header-sub-kicker::-webkit-scrollbar {
  display: none;
}
.kicker-chip {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: clamp(7px, 2.15vw, 9px);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(245, 239, 230, 0.94);
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.2), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(212, 175, 55, 0.32);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.kicker-dot {
  flex-shrink: 0;
  margin: 0 5px;
  font-size: 9px;
  font-weight: 500;
  color: rgba(212, 175, 55, 0.4);
  user-select: none;
}
.app-header.has-header-tree .kicker-chip {
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.22), rgba(196, 92, 106, 0.08));
}
.header-sub-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.58;
  color: rgba(244, 242, 238, 0.88);
  letter-spacing: 0.01em;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  text-wrap: pretty;
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 6 3 2;
  hyphenate-limit-lines: 2;
  overflow-wrap: break-word;
  word-break: normal;
  word-spacing: -0.03em;
}
.tab-portfolio .kicker-chip { border-color: rgba(196, 92, 106, 0.35); color: #f0d4d8; }
.tab-insights .kicker-chip { border-color: rgba(168, 196, 232, 0.35); color: #d4e4f8; }
.tab-connect .kicker-chip { border-color: rgba(212, 175, 55, 0.4); }
.app-header-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 8px 0 0;
  margin-left: auto;
  align-self: flex-end;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(138,135,148,0.9);
  font-weight: 500;
}
.header-pin { width: 12px; height: 12px; color: var(--accent); opacity: 0.85; }

.header-monogram {
  position: relative;
  width: 144px;
  height: 144px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 32px rgba(212,175,55,0.18));
  isolation: isolate;
}
.mono-beam {
  position: absolute;
  top: 50%; right: 100%;
  width: 28px;
  height: 2px;
  margin-right: 4px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.5));
  transform: translateY(-50%);
  animation: beam 2.5s ease-in-out infinite;
}
@keyframes beam {
  0%, 100% { opacity: 0.3; width: 20px; }
  50% { opacity: 1; width: 36px; }
}
.mono-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.3);
  transform-origin: center center;
  animation: orbit 10s linear infinite;
}
.mono-orbit::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  box-sizing: border-box;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent);
}
.mono-orbit-2 {
  inset: 20px;
  border-color: rgba(196,92,106,0.25);
  animation-duration: 16s;
  animation-direction: reverse;
}
.mono-orbit-2::after {
  width: 8px;
  height: 8px;
  background: var(--rose);
  box-shadow: 0 0 16px var(--rose);
}
.mono-orbit-3 {
  inset: 40px;
  border-style: dashed;
  border-color: rgba(255,255,255,0.12);
  animation-duration: 22s;
}
.mono-orbit-3::after {
  width: 6px;
  height: 6px;
  background: #fff;
  opacity: 0.6;
  box-shadow: none;
}
@keyframes orbit { to { transform: rotate(360deg); } }
.mono-pulse {
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.2);
  animation: pulse 3s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.85); opacity: 0.6; }
  100% { transform: scale(1.35); opacity: 0; }
}

.header-rule {
  height: 1px;
  margin: 22px 6px 26px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.4), rgba(196,92,106,0.25), transparent);
  opacity: 0.85;
}
.app-header.tab-connect .header-aurora {
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(212, 175, 55, 0.28), transparent 70%);
}

.app-main {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.view {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0 var(--gutter-right) calc(var(--tab-h) + 16px) var(--gutter-left);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.view::-webkit-scrollbar { display: none; }
.view.view-in { opacity: 1; transform: none; }
.view.is-loading { pointer-events: none; }

.view-loader {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}
.loader-ring {
  width: 28px; height: 28px;
  border: 2px solid var(--glass-border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Tab bar: iOS segmented style */
.tab-bar {
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  display: flex;
  gap: 2px;
  margin: 0 10px 8px;
  padding: 4px;
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 2px 4px;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 12px;
  cursor: pointer;
  transition: color 0.2s, background 0.25s var(--ease), transform 0.15s;
}
.tab:active { transform: scale(0.94); }
.tab.is-active {
  color: var(--text);
  background: rgba(255,255,255,0.1);
  box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.12);
}
.tab-ico {
  width: 22px; height: 22px;
  display: block;
}

/* Cards */
.block { margin-bottom: 28px; }
.block-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.card-stack { display: flex; flex-direction: column; gap: 10px; }

.card {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 14px 40px 14px 14px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s;
  overflow: hidden;
}
.card:active { transform: scale(0.98); }
.card-glow {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--muted);
  opacity: 0.4;
}
.tier-a .card-glow { background: linear-gradient(90deg, var(--accent), #f0d060); opacity: 1; }
.tier-b .card-glow { background: var(--rose); opacity: 0.8; }

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.card-cat { color: var(--muted); min-width: 0; }
.card-labels { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.card-badge {
  color: var(--accent);
  border: 1px solid rgba(212,175,55,0.4);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 9px;
}
.card-score {
  background: var(--accent-dim);
  color: var(--accent);
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 600;
}
.card-date { font-size: 11px; color: var(--muted); display: block; margin-bottom: 4px; }
.card-title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.card-sum {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-chevron {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  opacity: 0.5;
}
.card-chevron svg { width: 18px; height: 18px; display: block; }

/* Hero */
.hero-block { padding: 8px 0 0; }
.hero-tag { font-size: 15px; color: var(--muted); margin: 0 0 10px; line-height: 1.5; }
.hero-bio { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0 0 20px; }
.stat-row {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.stat-row li {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
}
.stat-row strong {
  display: block;
  font-size: 15px;
  color: var(--accent);
  font-weight: 600;
}
.stat-row span {
  display: block;
  font-size: clamp(8px, 2.35vw, 10px);
  line-height: 1.2;
  color: var(--muted);
  white-space: nowrap;
}

/* Work tab filters */
.filter-pills {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin: 4px 0 18px;
  padding: 5px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 10px 28px rgba(0, 0, 0, 0.22);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.filter-pills::-webkit-scrollbar { display: none; }
.filter-pill {
  flex: 1 0 auto;
  min-width: max-content;
  padding: 9px 15px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(138, 135, 148, 0.95);
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  scroll-snap-align: start;
  transition:
    color 0.25s var(--ease),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    transform 0.15s var(--ease);
  animation: filter-pill-in 0.42s var(--ease) both;
}
.filter-pill:nth-child(1) { animation-delay: 0.02s; }
.filter-pill:nth-child(2) { animation-delay: 0.06s; }
.filter-pill:nth-child(3) { animation-delay: 0.1s; }
.filter-pill:nth-child(4) { animation-delay: 0.14s; }
.filter-pill:active:not(.is-on) { transform: scale(0.97); }
.filter-pill.is-on {
  color: #f5d0d6;
  background: linear-gradient(145deg, rgba(196, 92, 106, 0.32), rgba(196, 92, 106, 0.12));
  border-color: rgba(196, 92, 106, 0.48);
  box-shadow:
    0 0 22px rgba(196, 92, 106, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
@keyframes filter-pill-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Connect */
.connect-block { padding: 8px 4px; }
.connect-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(212,175,55,0.08), rgba(255,255,255,0.03));
  border: 1px solid var(--glass-border);
}
.connect-ico { width: 40px; height: 40px; color: var(--accent); margin-bottom: 12px; }
.connect-card h2 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.02em; }
.connect-lead { margin: 0 0 20px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.connect-intro {
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(244, 242, 238, 0.88);
}
.connect-offerings {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.connect-offer {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
}
.connect-offer-ico {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-dim);
  border: 1px solid rgba(212, 175, 55, 0.25);
}
.connect-offer-ico svg { width: 20px; height: 20px; color: var(--accent); }
.connect-offer-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.connect-offer-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.connect-note {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  background: rgba(196, 92, 106, 0.08);
  border: 1px solid rgba(196, 92, 106, 0.22);
}
.connect-facts a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.connect-facts a:active { opacity: 0.85; }
.cta-btn {
  display: inline-block;
  padding: 14px 24px;
  background: var(--accent);
  color: var(--bg);
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: 14px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(212,175,55,0.25);
}
.connect-facts {
  list-style: none;
  padding: 20px 0 0;
  margin: 0;
}
.connect-facts li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--glass-border);
  font-size: 14px;
  color: var(--muted);
}
.connect-facts svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }

/* Sheets */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.sheet-backdrop.is-open { opacity: 1; }

.sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 60;
  width: 100%;
  max-width: 480px;
  height: 94vh;
  max-height: 94vh;
  transform: translate(-50%, 100%);
  transition: transform 0.42s var(--ease);
  background: var(--bg2);
  border-radius: 20px 20px 0 0;
  border: 1px solid var(--glass-border);
  border-bottom: none;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -20px 60px rgba(0,0,0,0.5);
}
.sheet.is-open { transform: translate(-50%, 0); }

@media (hover: none) and (pointer: coarse), (max-width: 520px) {
  .sheet {
    left: max(1rem, env(safe-area-inset-left, 0px));
    right: max(1rem, env(safe-area-inset-right, 0px));
    width: auto;
    max-width: none;
    bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    height: min(94vh, calc(100% - max(0.75rem, env(safe-area-inset-bottom, 0px)) - env(safe-area-inset-top, 0px)));
    max-height: none;
    transform: translateY(100%);
    border-radius: 20px;
    border-bottom: 1px solid var(--glass-border);
  }
  .sheet.is-open { transform: translateY(0); }
}

.sheet-handle {
  width: 36px; height: 5px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  margin: 8px auto 0;
  flex-shrink: 0;
}
.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 12px;
  flex-shrink: 0;
}
.sheet-kind {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
}
.sheet-close {
  width: 32px; height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.sheet-close svg { width: 16px; height: 16px; }

.sheet-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px 16px;
}
.sheet-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 8px;
}
.sheet-date { font-size: 12px; color: var(--muted); display: block; margin-bottom: 12px; }
.sheet-lead { font-size: 16px; color: var(--muted); line-height: 1.5; margin: 0 0 20px; }
.sheet-content { font-size: 15px; line-height: 1.65; color: rgba(244,242,238,0.88); }
.sheet-content p { margin: 0 0 1em; }
.sheet-ext {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.sheet-ext svg { width: 16px; height: 16px; }

.sheet-nav {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
}
.nav-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 14px 12px;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.2s;
  min-height: 72px;
  position: relative;
}
.nav-card:active:not(:disabled) { transform: scale(0.97); }
.nav-card:disabled { opacity: 0.28; pointer-events: none; }
.nav-next { align-items: flex-end; text-align: right; }
.nav-card svg {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px;
  color: var(--accent);
}
.nav-prev svg { left: 10px; }
.nav-next svg { right: 10px; }
.nav-card-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding: 0 24px;
}
.nav-card-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 0 24px;
  width: 100%;
}

/* More sheet */
.sheet-more { height: auto; max-height: 70vh; z-index: 61; }
.sheet-more-title { margin: 0; font-size: 20px; font-weight: 600; }
.more-list { padding: 0 8px calc(16px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; }
.more-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 12px;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  border-bottom: 1px solid var(--glass-border);
  cursor: pointer;
  border-radius: 0;
  text-align: left;
}
.more-row:active { background: rgba(255,255,255,0.04); }
.more-row svg { width: 18px; height: 18px; color: var(--muted); }

.err { text-align: center; color: var(--muted); padding: 40px 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
