/* Boot, whoami, contact card, scroll/parallax motion */

/* ── Boot loader ─────────────────────────────────────────── */
#boot-loader {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  background: #07090e;
  overflow: hidden;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.7s;
}
html.boot-done #boot-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.boot-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at 50% 45%, black, transparent 72%);
  animation: bootScan 2.2s linear infinite;
}
@keyframes bootScan {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 42px, 42px 0; }
}
.boot-scanline {
  position: absolute;
  left: 0; right: 0; height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(56, 189, 248, 0.12), transparent);
  animation: bootSweep 1.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes bootSweep {
  0% { top: -20%; }
  100% { top: 110%; }
}
.boot-core { position: relative; text-align: center; z-index: 1; }
.boot-ring {
  width: 108px; height: 108px; margin: 0 auto 18px;
  border-radius: 50%;
  border: 1px solid rgba(96, 165, 250, 0.35);
  box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.12), 0 0 42px rgba(56, 189, 248, 0.25);
  display: grid; place-items: center;
  position: relative;
}
.boot-ring::before {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: #60a5fa;
  animation: bootSpin 1.1s linear infinite;
}
@keyframes bootSpin { to { transform: rotate(360deg); } }
.boot-mark {
  width: 88px; height: 88px; border-radius: 22px;
  background: #05070b;
  color: #fff;
  display: grid; place-items: center;
  font-family: "Cabinet Grotesk", sans-serif;
  font-weight: 800; font-size: 22px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.2), 0 0 28px rgba(56, 189, 248, 0.28);
}
.boot-mark img {
  width: 100%; height: 100%; object-fit: cover;
  animation: bootPulse 1.8s ease-in-out infinite;
}
.boot-mark svg { width: 26px; height: 26px; }
@keyframes bootPulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.25)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.7)); transform: scale(1.035); }
}
.boot-status {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(147, 197, 253, 0.85);
  margin-bottom: 12px;
}
.boot-bar {
  width: 180px; height: 2px; margin: 0 auto;
  background: rgba(255,255,255,0.08);
  border-radius: 99px; overflow: hidden;
}
.boot-bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #1d4ed8, #7dd3fc);
  animation: bootBar 1.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes bootBar { to { width: 100%; } }
.boot-hex {
  margin-top: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: rgba(125, 211, 252, 0.45);
  letter-spacing: 0.16em;
}
@media (prefers-reduced-motion: reduce) {
  .boot-grid, .boot-scanline, .boot-ring::before, .boot-bar i, .boot-mark img { animation: none; }
  .boot-bar i { width: 100%; }
}

/* ── Who I am ────────────────────────────────────────────── */
.hero-trust-gone,
.fb-dup-gone,
[data-testid="link-mobile-cta"] { display: none !important; }
#whoami-block {
  display: block;
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  float: none !important;
  z-index: 1;
  isolation: isolate;
  margin: 8px auto 28px;
  width: min(1120px, calc(100% - 40px));
  padding: 22px 22px 20px;
  border-radius: 20px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(8, 10, 16, 0.88));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  max-width: 100%;
  grid-column: 1 / -1;
}
#whoami-block .who-top {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  margin-bottom: 12px; flex-wrap: wrap;
}
.who-kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(147, 197, 253, 0.8);
}
.who-langs { display: none !important; }
.who-langs button {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.08em;
  padding: 4px 8px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent; color: rgba(255,255,255,0.55); cursor: pointer;
}
.who-langs button.is-on {
  color: #fff; border-color: #3b82f6; background: rgba(59, 130, 246, 0.18);
}
.who-name {
  font-family: "Cabinet Grotesk", sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800; letter-spacing: -0.03em; margin: 0 0 8px;
}
.who-name em { font-style: normal; color: #93c5fd; font-weight: 600; }
.who-copy {
  color: rgba(255,255,255,0.68);
  font-size: 14.5px; line-height: 1.65;
  margin: 0 0 16px; max-width: 72ch;
}
.who-schools {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px;
}
.who-school {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  text-decoration: none; color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}
.who-school:hover { border-color: rgba(96,165,250,0.4); transform: translateY(-2px); }
.who-school img {
  width: 54px; height: 54px; object-fit: contain; border-radius: 10px;
  background: #fff; padding: 4px; flex-shrink: 0;
}
.who-school.site img { background: #07090e; padding: 6px; }
.who-school b { display: block; font-size: 13px; }
.who-school span { display: block; font-size: 11px; color: rgba(255,255,255,0.45); }
.who-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.who-chips i {
  font-style: normal;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.04em;
  padding: 5px 9px; border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  color: rgba(191, 219, 254, 0.9);
}
@media (max-width: 720px) {
  .who-schools { grid-template-columns: 1fr; }
}

/* ── Universal feedback dock ─────────────────────────────── */
footer { padding-bottom: 96px; }
#fb-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 280;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  width: auto;
  max-width: calc(100vw - 28px);
  pointer-events: none;
}
#fb-dock > * { pointer-events: auto; }
#vizit-fab {
  position: relative !important;
  right: auto !important;
  bottom: auto !important;
  z-index: auto;
  width: 56px !important;
  height: 56px !important;
  min-width: 56px;
  border-radius: 50% !important;
  padding: 0 !important;
  overflow: hidden;
}
#fb-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 198px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(10, 12, 16, 0.96);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 48px rgba(0,0,0,0.5);
  backdrop-filter: blur(16px);
}
#fb-menu[hidden] { display: none !important; }
#fb-menu a,
#fb-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #fff;
  text-decoration: none;
  font: 600 13px/1.2 "Satoshi", system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
}
#fb-menu a:hover,
#fb-menu button:hover { background: rgba(59, 130, 246, 0.18); }
#fb-menu i {
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center; flex-shrink: 0;
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  font-style: normal; font-size: 13px;
}
#fb-toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%) translateY(8px);
  z-index: 290;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(134, 239, 172, 0.35);
  color: #86efac;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
#fb-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
#fb-qr {
  position: fixed; inset: 0; z-index: 320;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(4, 6, 10, 0.78);
  backdrop-filter: blur(10px);
}
#fb-qr[hidden] { display: none !important; }
.fb-qr-panel {
  width: min(280px, calc(100vw - 32px));
  padding: 22px 18px 16px;
  border-radius: 20px;
  background: #0b0d12;
  border: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  position: relative;
}
#fb-qr-close {
  position: absolute; top: 8px; right: 10px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent; color: #fff; cursor: pointer; font-size: 18px;
}
#fb-qr-img {
  width: 220px; height: 220px; border-radius: 12px;
  background: #fff; padding: 8px;
}
#fb-qr-url {
  margin: 12px 0 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  word-break: break-all;
}
body.fb-qr-open { overflow: hidden; }

/* ── Contact card (vizit) ────────────────────────────────── */
#vizit-modal-panel {
  width: min(420px, calc(100vw - 24px)) !important;
  height: auto !important;
  max-height: min(92vh, 720px) !important;
  aspect-ratio: auto !important;
}
#vizit-modal-preview,
#vizit-modal-actions { display: none !important; }
.vc-hub {
  padding: 22px 18px 8px;
  overflow: auto;
}
.vc-head {
  display: flex; gap: 12px; align-items: center; margin-bottom: 16px;
}
.vc-head img {
  width: 64px; height: 64px; border-radius: 16px; object-fit: cover;
  border: 1px solid rgba(255,255,255,0.14);
}
.vc-head h3 { margin: 0; font-size: 18px; font-family: "Cabinet Grotesk", sans-serif; }
.vc-head p { margin: 3px 0 0; font-size: 12px; color: rgba(255,255,255,0.5); }
.vc-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.vc-btn {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 10px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: #fff; text-decoration: none; cursor: pointer;
  font-family: inherit; text-align: left;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.vc-btn:hover {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(96, 165, 250, 0.4);
  transform: translateY(-1px);
}
.vc-btn strong { font-size: 13px; }
.vc-btn span { font-size: 10px; color: rgba(255,255,255,0.45); font-family: "JetBrains Mono", monospace; }
.vc-toast {
  min-height: 18px; margin: 10px 2px 0;
  font-size: 12px; color: #86efac;
}
.vc-note {
  margin: 8px 2px 0; font-size: 11px; color: rgba(255,255,255,0.38);
}

/* ── Motion / parallax ───────────────────────────────────── */
.fx-in {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  filter: blur(6px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), filter 0.85s;
}
.fx-in.is-seen {
  opacity: 1;
  transform: none;
  filter: none;
}
#hero-photo-wrap {
  will-change: transform;
  transform: translate3d(0, var(--par-y, 0px), 0) scale(1.04);
}
main > section:first-child {
  --mx: 0px; --my: 0px;
}
.hero-orb {
  position: absolute;
  width: 280px; height: 280px; border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(59,130,246,0.18), transparent 68%);
  transform: translate(var(--mx), var(--my));
  z-index: 0;
}
@media (prefers-reduced-motion: reduce) {
  .fx-in { opacity: 1; transform: none; filter: none; transition: none; }
  #hero-photo-wrap { transform: none; }
}

body:not([data-route="home"]) #whoami-block,
body:not([data-route="home"]) #life-goals { display: none !important; }

/* ── Life goals / north star ─────────────────────────────── */
#life-goals {
  --lgx: 78%;
  --lgy: 12%;
  position: relative !important;
  inset: auto !important;
  z-index: 1;
  isolation: isolate;
  width: min(1120px, calc(100% - 40px));
  margin: -8px auto 48px;
  padding: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.2);
  background:
    radial-gradient(ellipse 70% 55% at var(--lgx) var(--lgy), rgba(56, 189, 248, 0.16), transparent 58%),
    linear-gradient(180deg, rgba(12, 16, 28, 0.92), rgba(6, 8, 14, 0.96));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
#life-goals::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(96, 165, 250, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at 70% 0%, black, transparent 78%);
  pointer-events: none;
  z-index: 0;
}
.lg-inner {
  position: relative;
  z-index: 1;
  padding: 26px 24px 22px;
}
.lg-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.lg-kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(147, 197, 253, 0.82);
}
.lg-title {
  font-family: "Cabinet Grotesk", sans-serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #f8fafc;
  margin: 0 0 8px;
}
.lg-lead {
  max-width: 640px;
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.62);
}
.lg-bento {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 10px;
}
.lg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 8px;
  min-height: 148px;
  padding: 16px 16px 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(8, 12, 22, 0.55);
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.lg-card.is-hero {
  min-height: 188px;
  background:
    linear-gradient(165deg, rgba(37, 99, 235, 0.22), rgba(8, 12, 22, 0.7));
  border-color: rgba(96, 165, 250, 0.35);
}
.lg-card:hover,
.lg-card:focus-visible {
  border-color: rgba(125, 211, 252, 0.5);
  transform: translateY(-2px);
  outline: none;
}
.lg-card.is-on {
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.2), 0 16px 40px rgba(37, 99, 235, 0.18);
  background:
    linear-gradient(165deg, rgba(37, 99, 235, 0.28), rgba(8, 12, 22, 0.78));
}
.lg-card-top {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}
.lg-idx {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(147, 197, 253, 0.7);
}
.lg-icon {
  width: 28px;
  height: 28px;
  color: #7dd3fc;
  opacity: 0.85;
}
.lg-icon svg { width: 100%; height: 100%; display: block; }
.lg-card strong {
  font-family: "Cabinet Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #f1f5f9;
  margin-top: auto;
}
.lg-card.is-hero strong { font-size: 26px; max-width: 12ch; }
.lg-card em {
  font-style: normal;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(125, 211, 252, 0.7);
}
.lg-status {
  font-size: 11px;
  color: rgba(226, 232, 240, 0.5);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.lg-detail {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(96, 165, 250, 0.16);
  background: rgba(2, 6, 16, 0.45);
  min-height: 92px;
}
.lg-detail-kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(125, 211, 252, 0.75);
  margin-bottom: 6px;
}
.lg-detail p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.78);
}
@media (max-width: 820px) {
  .lg-bento {
    grid-template-columns: 1fr 1fr;
  }
  .lg-card.is-hero strong { font-size: 20px; max-width: none; }
}
@media (max-width: 560px) {
  #life-goals { width: calc(100% - 24px); margin-bottom: 36px; }
  .lg-inner { padding: 20px 16px 16px; }
  .lg-bento { grid-template-columns: 1fr; }
  .lg-card { min-height: 124px; }
}

[data-testid="link-logo"] svg { display: none; }
[data-testid="link-logo"] img.brand-a {
  width: 28px; height: 28px; object-fit: cover; border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(96,165,250,0.25), 0 0 12px rgba(56,189,248,0.2);
}
