:root {
  --bg: #ffffff;
  --text: #0b0b0f;
  --muted: #5c6370;
  --line: #e8eaed;
  --card: #ffffff;
  --blue: #0071e3;
  --blue-soft: #e8f1fc;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 22px;
  --panel: #f5f5f7;
  --glass: rgba(255, 255, 255, 0.28);
  --glass-strong: rgba(255, 255, 255, 0.42);
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-inset: rgba(255, 255, 255, 0.6);
  --footer-fg: rgba(11, 11, 15, 0.55);
  --footer-strong: rgba(11, 11, 15, 0.65);
  --footer-sep: rgba(11, 11, 15, 0.35);
  --header-bg: rgba(255, 255, 255, 0.82);
  --header-border: rgba(0, 0, 0, 0.05);
  --hover-wash: rgba(0, 0, 0, 0.05);
  --file-fg: #1f2328;
  --code-bg: rgba(15, 23, 42, 0.06);
  --code-border: rgba(15, 23, 42, 0.08);
  --diag-frame-bg: #0d1117;
  --diag-fg: #e6edf3;
  --diag-ctrl-bg: rgba(22, 27, 34, 0.92);
  --diag-ctrl-border: rgba(240, 246, 252, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220;
    --text: #f5f5f7;
    --muted: #a1a8b3;
    --line: rgba(255, 255, 255, 0.12);
    --card: #121a2b;
    --blue: #0a84ff;
    --blue-soft: rgba(10, 132, 255, 0.18);
    --shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
    --panel: #10182a;
    --glass: rgba(255, 255, 255, 0.08);
    --glass-strong: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.16);
    --glass-inset: rgba(255, 255, 255, 0.14);
    --footer-fg: rgba(245, 245, 247, 0.55);
    --footer-strong: rgba(245, 245, 247, 0.72);
    --footer-sep: rgba(245, 245, 247, 0.28);
    --header-bg: rgba(11, 18, 32, 0.72);
    --header-border: rgba(255, 255, 255, 0.08);
    --hover-wash: rgba(255, 255, 255, 0.06);
    --file-fg: #e6edf3;
    --code-bg: rgba(255, 255, 255, 0.06);
    --code-border: rgba(255, 255, 255, 0.12);
    --diag-frame-bg: #0d1117;
    --diag-fg: #e6edf3;
    --diag-ctrl-bg: rgba(22, 27, 34, 0.92);
    --diag-ctrl-border: rgba(240, 246, 252, 0.12);
  }
}

html[data-theme="dark"] {
    --bg: #0b1220;
    --text: #f5f5f7;
    --muted: #a1a8b3;
    --line: rgba(255, 255, 255, 0.12);
    --card: #121a2b;
    --blue: #0a84ff;
    --blue-soft: rgba(10, 132, 255, 0.18);
    --shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
    --panel: #10182a;
    --glass: rgba(255, 255, 255, 0.08);
    --glass-strong: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.16);
    --glass-inset: rgba(255, 255, 255, 0.14);
    --footer-fg: rgba(245, 245, 247, 0.55);
    --footer-strong: rgba(245, 245, 247, 0.72);
    --footer-sep: rgba(245, 245, 247, 0.28);
    --header-bg: rgba(11, 18, 32, 0.72);
    --header-border: rgba(255, 255, 255, 0.08);
    --hover-wash: rgba(255, 255, 255, 0.06);
    --file-fg: #e6edf3;
    --code-bg: rgba(255, 255, 255, 0.06);
    --code-border: rgba(255, 255, 255, 0.12);
    --diag-frame-bg: #0d1117;
    --diag-fg: #e6edf3;
    --diag-ctrl-bg: rgba(22, 27, 34, 0.92);
    --diag-ctrl-border: rgba(240, 246, 252, 0.12);
  }

html[data-theme="light"] {
  --bg: #ffffff;
  --text: #0b0b0f;
  --muted: #5c6370;
  --line: #e8eaed;
  --card: #ffffff;
  --blue: #0071e3;
  --blue-soft: #e8f1fc;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 22px;
  --panel: #f5f5f7;
  --glass: rgba(255, 255, 255, 0.28);
  --glass-strong: rgba(255, 255, 255, 0.42);
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-inset: rgba(255, 255, 255, 0.6);
  --footer-fg: rgba(11, 11, 15, 0.55);
  --footer-strong: rgba(11, 11, 15, 0.65);
  --footer-sep: rgba(11, 11, 15, 0.35);
  --header-bg: rgba(255, 255, 255, 0.82);
  --header-border: rgba(0, 0, 0, 0.05);
  --hover-wash: rgba(0, 0, 0, 0.05);
  --file-fg: #1f2328;
  --code-bg: rgba(15, 23, 42, 0.06);
  --code-border: rgba(15, 23, 42, 0.08);
  --diag-frame-bg: #0d1117;
  --diag-fg: #e6edf3;
  --diag-ctrl-bg: rgba(22, 27, 34, 0.92);
  --diag-ctrl-border: rgba(240, 246, 252, 0.12);
}




* { box-sizing: border-box; }

html {
  color-scheme: light dark;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn, .page, .nav-links a { transition: none !important; }
  .page {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .page.is-leaving {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: min(1040px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.mock-banner {
  background: #111;
  color: #fff;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.45rem 0.75rem;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(180%) blur(14px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  line-height: 1.15;
}
a.brand-name {
  color: inherit;
  text-decoration: none;
}
a.brand-name:hover {
  color: var(--text);
}
.brand-name {
  display: block;
}
.brand-loc {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
  text-decoration: none;
  line-height: 1;
  width: fit-content;
}
.brand-loc-text {
  line-height: 1;
}
a.brand-loc:hover {
  color: var(--blue);
}
a.brand-loc:hover .brand-loc-text {
  border-bottom: 1px solid color-mix(in srgb, var(--blue) 55%, transparent);
}
a.brand-loc:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 3px;
}
.loc-pin {
  position: relative;
  width: 0.38rem;
  height: 0.38rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: #007aff;
  box-shadow: 0 0 0 1px rgba(0, 122, 255, 0.28);
}
.loc-pin::before,
.loc-pin::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.35);
  animation: locPing 2.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
.loc-pin::after {
  animation-delay: 1.1s;
}
@keyframes locPing {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .loc-pin::before,
  .loc-pin::after { animation: none; opacity: 0; }
}
html[data-theme="dark"] .loc-pin {
  background: #0a84ff;
  box-shadow: 0 0 0 1.5px rgba(10, 132, 255, 0.35);
}
html[data-theme="dark"] .loc-pin::before,
html[data-theme="dark"] .loc-pin::after {
  background: rgba(10, 132, 255, 0.4);
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .loc-pin {
    background: #0a84ff;
    box-shadow: 0 0 0 1.5px rgba(10, 132, 255, 0.35);
  }
  html:not([data-theme="light"]) .loc-pin::before,
  html:not([data-theme="light"]) .loc-pin::after {
    background: rgba(10, 132, 255, 0.4);
  }
}


.nav-links {
  display: flex;
  gap: 0.35rem 1.1rem;
  font-size: 0.95rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.nav-links a:hover { color: var(--text); }
.nav-links a.active {
  color: var(--text);
  border-bottom-color: var(--blue);
  font-weight: 600;
}

.page {
  opacity: 0;
  transform: translateY(8px);
  animation: pageIn 320ms ease forwards;
}

.page.is-leaving {
  animation: pageOut 180ms ease forwards;
}

@keyframes pageIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pageOut {
  to { opacity: 0; transform: translateY(-6px); }
}

.hero {
  padding: 6.5rem 0 4.5rem;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.4rem;
}

.dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.18);
}

h1 {
  margin: 0 auto;
  max-width: 16ch;
  font-size: clamp(2.4rem, 6.5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.subtitle {
  margin: 1.25rem auto 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 500;
}

.actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 113, 227, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #0077ed;
}

.btn-secondary {
  background: var(--panel);
  color: var(--text);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  filter: brightness(0.96);
}

section.block {
  padding: 1.5rem 0 4.5rem;
}

.section-head { margin-bottom: 1.75rem; }

.section-head h2,
.page-title {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  font-weight: 800;
}

.section-head p,
.lede {
  margin: 0.55rem 0 0;
  color: var(--muted);
  max-width: 40rem;
}

.note {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #8a6d00;
  background: #fff6d6;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
  .nav-links { gap: 0.75rem; font-size: 0.88rem; }
  .hero { padding-top: 4.5rem; }
  .explorer { grid-template-columns: 1fr !important; height: auto !important; }
  .tree-pane { max-height: 240px; }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.35rem 1.2rem;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  margin-bottom: 0.85rem;
}

.card h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  word-break: break-word;
}

.card p {
  margin: 0.55rem 0 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.card .meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.card a.card-link,
.card button.linkish {
  background: none;
  border: none;
  padding: 0;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}

.card a.card-link:hover,
.card button.linkish:hover { text-decoration: underline; }

.prose {
  max-width: 40rem;
  color: var(--text);
  font-size: 1.05rem;
}

.prose p { color: var(--muted); margin: 0 0 1rem; }
.prose strong { color: var(--text); }

.panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 2.4rem 1.5rem;
  background: var(--panel);
  box-shadow: var(--shadow);
  text-align: center;
}

.panel h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

.panel p {
  margin: 0.7rem auto 1.3rem;
  color: var(--muted);
  max-width: 28rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.chip {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  background: var(--panel);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
}

footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

/* Explorer */
.explorer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.explorer-head h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.lab-badge {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a6d00;
  background: #fff6d6;
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
}

.explorer {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: min(70vh, 640px);
  background: var(--card);
}

.tree-pane {
  background: var(--panel);
  border-right: 1px solid var(--line);
  overflow: auto;
  padding: 0.75rem 0.4rem;
  font-size: 0.86rem;
}

.tree-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  font: inherit;
  color: var(--text);
  padding: 0.28rem 0.55rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tree-item:hover { background: var(--hover-wash); }
.tree-item.active { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.tree-item.dir { color: var(--muted); cursor: default; font-weight: 600; }
.tree-item .ico { opacity: 0.7; flex-shrink: 0; }

.file-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--card);
}

.file-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--panel);
}

.file-bar strong {
  color: var(--text);
  font-weight: 600;
  word-break: break-all;
}

.file-body {
  flex: 1;
  overflow: auto;
  margin: 0;
  padding: 1rem 1.1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--file-fg);
  background: var(--card);
}

.file-body.empty {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.disclaimer {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.page-hero {
  padding: 3.5rem 0 1.5rem;
}

/* —— Links (Linktree-style) —— */
body.links-page {
  min-height: 100vh;
  background: transparent;
}

body.links-page .mock-banner {
  position: relative;
  z-index: 5;
  background: rgba(17, 17, 17, 0.72);
  backdrop-filter: blur(8px);
}

body.links-page header {
  background: var(--glass);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: saturate(160%) blur(16px);
}

body.links-page .brand,
body.links-page .nav-links a {
  color: var(--text);
  text-shadow: none;
}

body.links-page .nav-links a.active {
  border-bottom-color: var(--blue);
}

.anim-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe 0%, #f5f3ff 40%, #ecfeff 70%, #eff6ff 100%);
}

.anim-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.72;
  animation: blobFloat 14s ease-in-out infinite;
}

.anim-bg .b1 {
  width: 42vw;
  height: 42vw;
  min-width: 280px;
  min-height: 280px;
  background: #93c5fd;
  top: -10%;
  left: -8%;
}

.anim-bg .b2 {
  width: 38vw;
  height: 38vw;
  min-width: 240px;
  min-height: 240px;
  background: #c4b5fd;
  top: 35%;
  right: -12%;
  animation-delay: -4s;
}

.anim-bg .b3 {
  width: 34vw;
  height: 34vw;
  min-width: 220px;
  min-height: 220px;
  background: #67e8f9;
  bottom: -12%;
  left: 25%;
  animation-delay: -8s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(4%, 6%) scale(1.08); }
  66% { transform: translate(-5%, 3%) scale(0.94); }
}

@media (prefers-reduced-motion: reduce) {
  .anim-bg .blob { animation: none; }
}

.links-shell {
  width: min(420px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
  text-align: center;
}

.links-avatar {
  width: 88px;
  height: 88px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--glass-strong);
  border: 2px solid var(--glass-border);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
  color: var(--text);
  backdrop-filter: blur(10px);
}

.links-shell h1 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  max-width: none;
}

.links-shell .bio {
  margin: 0.55rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.links-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.glass-link {
  display: block;
  padding: 0.95rem 1.15rem;
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.98rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.glass-link:hover {
  transform: translateY(-2px);
  background: var(--glass-strong);
  box-shadow: var(--shadow);
}

.glass-link .sub {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.links-foot {
  margin-top: 1.75rem;
  font-size: 0.78rem;
  color: var(--footer-fg);
  font-weight: 600;
}

body.links-page footer {
  border-top: 1px solid var(--glass-border);
  background: transparent;
  color: var(--footer-fg);
}

/* —— Tech ticker (home bottom) —— */
.tech-ticker {
  margin-top: 2.5rem;
  padding: 1.75rem 0 2.25rem;
  border-top: 1px solid var(--line);
  overflow: hidden;
  background: var(--panel);
}

.tech-ticker .ticker-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8b93a7;
  margin-bottom: 1rem;
}

.ticker-viewport {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: tickerLoop 28s linear infinite;
  -webkit-animation: tickerLoop 28s linear infinite;
}

.ticker-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.45rem;
  padding-right: 0.45rem; /* equals gap so set A|B join with no jump */
}

.tech-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.2rem 0.52rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}
.tech-pill:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--blue) 35%, var(--line));
}
.tech-pill:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.tech-icon {
  width: 0.75rem;
  height: 0.75rem;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}
.tech-azure .tech-icon { color: #0078d4; }
.tech-entra .tech-icon { color: #0078d4; }
.tech-terraform .tech-icon { color: #7b42bc; }
.tech-powershell .tech-icon { color: #5391fe; }
.tech-python .tech-icon { color: #3776ab; }
.tech-windows .tech-icon { color: #0078d6; }
.tech-ad .tech-icon { color: #00a4ef; }
.tech-net .tech-icon { color: #88171a; }
.tech-hybrid .tech-icon { color: #f38020; }
.tech-github .tech-icon { color: #24292f; }
.tech-linux .tech-icon { color: #fcc624; }
html[data-theme="dark"] .tech-github .tech-icon { color: #f0f6fc; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .tech-github .tech-icon { color: #f0f6fc; }
}

.ticker-viewport:hover .ticker-track {
  animation-play-state: paused;
}
@keyframes tickerLoop {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@-webkit-keyframes tickerLoop {
  from { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
  to { -webkit-transform: translate3d(-50%, 0, 0); transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none !important;
    -webkit-animation: none !important;
    flex-wrap: wrap;
    width: auto;
    max-width: 1040px;
    margin: 0 auto;
    justify-content: center;
    padding: 0 1.25rem;
  }
  .ticker-group {
    flex-wrap: wrap;
    justify-content: center;
    padding-right: 0;
  }
  .ticker-group[aria-hidden="true"] {
    display: none;
  }
  .ticker-viewport {
    mask-image: none;
    -webkit-mask-image: none;
  }
}

/* —— Standalone Linktree (glassy + animated bg) —— */
body.links-standalone {
  min-height: 100vh;
  background: transparent;
}

body.links-standalone header,
body.links-standalone footer {
  display: none;
}

body.links-standalone .mock-banner {
  position: relative;
  z-index: 5;
  background: rgba(17, 17, 17, 0.65);
  backdrop-filter: blur(10px);
}

.anim-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(147, 197, 253, 0.55), transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(196, 181, 253, 0.5), transparent 45%),
    radial-gradient(ellipse at 50% 90%, rgba(103, 232, 249, 0.45), transparent 50%),
    linear-gradient(135deg, #dbeafe 0%, #f5f3ff 45%, #ecfeff 100%);
}

.anim-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(52px);
  opacity: 0.75;
  animation: blobFloat 16s ease-in-out infinite;
  will-change: transform;
}

.anim-bg .b1 {
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  background: #60a5fa;
  top: -12%;
  left: -10%;
}
.anim-bg .b2 {
  width: min(44vw, 380px);
  height: min(44vw, 380px);
  background: #a78bfa;
  top: 28%;
  right: -14%;
  animation-delay: -5s;
}
.anim-bg .b3 {
  width: min(40vw, 340px);
  height: min(40vw, 340px);
  background: #22d3ee;
  bottom: -14%;
  left: 22%;
  animation-delay: -9s;
}
.anim-bg .b4 {
  width: min(36vw, 300px);
  height: min(36vw, 300px);
  background: #f472b6;
  top: 55%;
  left: 55%;
  animation-delay: -12s;
  opacity: 0.45;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(5%, 7%) scale(1.1); }
  66% { transform: translate(-6%, 4%) scale(0.92); }
}

@media (prefers-reduced-motion: reduce) {
  .anim-bg .blob { animation: none; }
}

.links-main {
  padding: 1.5rem 0 3rem;
}

.links-shell {
  width: min(440px, calc(100% - 2rem));
  margin: 0 auto;
  text-align: center;
}

.links-avatar {
  width: 92px;
  height: 92px;
  margin: 0.5rem auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
  color: var(--text);
  background: var(--glass-strong);
  border: 2px solid var(--glass-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}

.links-shell h1 {
  margin: 0;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  max-width: none;
  color: var(--text);
  text-shadow: none;
}

.links-shell .bio {
  margin: 0.5rem 0 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.social-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 160ms ease, transform 160ms ease;
}

.social-chip:hover {
  background: var(--glass-strong);
  transform: translateY(-1px);
}

.links-stack {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.glass-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 1.15rem;
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  font-weight: 650;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  text-align: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 var(--glass-inset);
  backdrop-filter: blur(18px) saturate(165%);
  -webkit-backdrop-filter: blur(18px) saturate(165%);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.glass-btn:hover {
  transform: translateY(-2px) scale(1.01);
  background: var(--glass-strong);
  border-color: var(--glass-border);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 var(--glass-inset);
}

.glass-btn:active {
  transform: translateY(0) scale(0.99);
}

.links-foot {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--footer-fg);
}


/* —— PO glass (match LT) —— */
body.glass-po {
  background: transparent;
  min-height: 100vh;
}
body.glass-po .anim-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(147,197,253,0.55), transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(196,181,253,0.5), transparent 45%),
    radial-gradient(ellipse at 50% 90%, rgba(103,232,249,0.45), transparent 50%),
    linear-gradient(135deg, #dbeafe 0%, #f5f3ff 45%, #ecfeff 100%);
}
body.glass-po .anim-bg .blob {
  position: absolute;
  z-index: 0;
  position: absolute;
  border-radius: 50%;
  filter: blur(52px);
  opacity: 0.75;
  animation: blobFloat 16s ease-in-out infinite;
}
body.glass-po .anim-bg .b1 { width: min(48vw,420px); height: min(48vw,420px); background:#60a5fa; top:-12%; left:-10%; }
body.glass-po .anim-bg .b2 { width: min(44vw,380px); height: min(44vw,380px); background:#a78bfa; top:28%; right:-14%; animation-delay:-5s; }
body.glass-po .anim-bg .b3 { width: min(40vw,340px); height: min(40vw,340px); background:#22d3ee; bottom:-14%; left:22%; animation-delay:-9s; }
body.glass-po .anim-bg .b4 { width: min(36vw,300px); height: min(36vw,300px); background:#f472b6; top:55%; left:55%; animation-delay:-12s; opacity:0.45; }
@keyframes blobFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(5%,7%) scale(1.1); }
  66% { transform: translate(-6%,4%) scale(0.92); }
}
@media (prefers-reduced-motion: reduce) {
  body.glass-po .anim-bg .blob { animation: none; }
}

body.glass-po .mock-banner {
  background: rgba(17,17,17,0.62);
  backdrop-filter: blur(10px);
}
body.glass-po header {
  background: var(--glass);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
}
body.glass-po .card,
body.glass-po .panel,
body.glass-po .explorer,
body.glass-po .tech-ticker {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 var(--glass-inset);
  backdrop-filter: blur(18px) saturate(165%);
  -webkit-backdrop-filter: blur(18px) saturate(165%);
}
body.glass-po .tech-ticker {
  border-top: 1px solid var(--glass-border);
  margin-top: 2rem;
}
body.glass-po .btn-primary {
  background: rgba(0,113,227,0.88);
  backdrop-filter: blur(10px);
}
body.glass-po .btn-secondary,
body.glass-po .tech-pill,
body.glass-po .tag,
body.glass-po .eyebrow,
body.glass-po .note,
body.glass-po .chip {
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
body.glass-po .tree-pane,
body.glass-po .file-bar {
  background: var(--glass);
}
body.glass-po .file-body { background: transparent; color: var(--file-fg); }
body.glass-po footer {
  border-top: 1px solid var(--glass-border);
  background: transparent;
  color: var(--footer-fg);
}


/* Site footer */
.site-footer {
  border-top: 1px solid var(--glass-border);
  padding: 2rem 0 2.5rem;
  text-align: center;
  color: var(--footer-fg);
  font-size: 0.78rem;
  font-weight: 500;
  background: transparent;
}
.site-footer .copyright {
  margin: 0 0 0.55rem;
  color: var(--footer-strong);
  font-weight: 600;
}
.site-footer .footer-links,
.site-footer .footer-locale {
  margin: 0.35rem 0 0;
  line-height: 1.7;
}
.site-footer a {
  color: var(--footer-strong);
  text-decoration: none;
  font-weight: 500;
}
.site-footer a:hover { text-decoration: underline; color: var(--blue); }
.site-footer .sep {
  margin: 0 0.35rem;
  color: var(--footer-sep);
}
body.glass-po .site-footer {
  border-top-color: var(--glass-border);
}


/* Contact page */
.contact-panel { text-align: center; }
.contact-panel h2 { margin-bottom: 0.35rem; }
.contact-panel > p { max-width: 34rem; margin-left: auto; margin-right: auto; }
.contact-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin: 1.5rem 0 1rem;
}
.contact-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-width: 5.5rem;
  padding: 0.95rem 0.85rem 0.8rem;
  border-radius: 18px;
  text-decoration: none;
  color: var(--text);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.contact-icon:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  background: var(--glass);
}
.contact-icon-primary {
  background: var(--blue-soft);
  border-color: rgba(0,113,227,0.28);
  color: var(--blue);
}
.contact-icon-primary:hover { background: var(--blue-soft); filter: brightness(1.08); }
.ci-mark {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--glass-strong);
  color: var(--blue);
}
.contact-icon[aria-label="Email"] .ci-mark,
.contact-icon[aria-label="Call"] .ci-mark,
.contact-icon[aria-label="Schedule a call"] .ci-mark { color: var(--blue); }
.ci-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.contact-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0.5rem auto 0;
}
.contact-note a { color: var(--blue); text-decoration: none; font-weight: 600; }
.contact-note a:hover { text-decoration: underline; }
.contact-group-title {
  margin: 1.75rem 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.01em;
}
.contact-chips {
  justify-content: center;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}
.section-head { margin-bottom: 0.25rem; }
.section-head h2 { margin-bottom: 0.35rem; }
.section-head p { color: var(--muted); margin: 0; }


/* Project showcase */
.projects-hero { text-align: center; }
.projects-hero .lede { margin-left: auto; margin-right: auto; }
.project-showcase {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.project-card {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--glass-border);
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}
@media (max-width: 820px) {
  .project-card { grid-template-columns: 1fr; }
}
.project-shot {
  position: relative;
  min-height: 200px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}
.shot-chrome {
  display: flex;
  gap: 0.35rem;
}
.shot-chrome span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
}
.shot-body {
  flex: 1;
  margin: 0.85rem 0;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.25);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.05)),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 18px,
      rgba(255,255,255,0.08) 18px,
      rgba(255,255,255,0.08) 19px
    );
  position: relative;
  overflow: hidden;
}
.shot-body::before,
.shot-body::after {
  content: "";
  position: absolute;
  border-radius: 8px;
  background: rgba(255,255,255,0.22);
}
.shot-body::before {
  width: 42%;
  height: 28%;
  top: 14%;
  left: 10%;
}
.shot-body::after {
  width: 28%;
  height: 46%;
  top: 22%;
  right: 12%;
}
.shot-caption {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.9;
}
.shot-net { background: linear-gradient(145deg, #0ea5e9, #0369a1 55%, #0f172a); }
.shot-azure { background: linear-gradient(145deg, #38bdf8, #2563eb 50%, #1e3a8a); }
.shot-ad { background: linear-gradient(145deg, #a78bfa, #7c3aed 45%, #312e81); }
.shot-skills { background: linear-gradient(145deg, #34d399, #059669 50%, #064e3b); }
.shot-entra { background: linear-gradient(145deg, #60a5fa, #4f46e5 50%, #1e1b4b); }
.project-body {
  padding: 1.25rem 1.35rem 1.35rem;
  text-align: left;
}
.project-body h3 {
  margin: 0.45rem 0 0.65rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.project-does {
  margin: 0 0 0.55rem;
  color: var(--text);
  line-height: 1.5;
}
.project-explain {
  margin: 0 0 0.85rem;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.project-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.project-browser { margin-top: 2.5rem; }
.project-browser[hidden] { display: none !important; }
body.glass-po .project-card {
  background: var(--glass-strong);
  border-color: var(--glass-border);
}

/* Contact page centering */
.contact-page .page-hero,
.contact-page .section-head {
  text-align: center;
}
.contact-page .page-title,
.contact-page .lede {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.contact-page .chips,
.contact-page .contact-chips {
  justify-content: center;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

/* Full legal name in nav */
.brand {
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
}
.brand-name {
  white-space: nowrap;
}
@media (max-width: 720px) {
  .brand { font-size: 0.85rem; }
  .brand-loc { font-size: 0.66rem; }
  .nav-links { gap: 0.55rem; }
}


/* GitHub-style lab previews */
.project-shot {
  position: relative;
  min-height: 220px;
  padding: 0;
  display: block;
  overflow: hidden;
  background: #0d1117;
}
.project-shot img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  max-height: 280px;
  object-fit: cover;
  object-position: top left;
}
.shot-chrome {
  display: none;
}
.shot-body { display: none; }
.shot-caption {
  position: absolute;
  left: 0.75rem;
  bottom: 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(13,17,23,0.72);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
}
.gh-frame {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}


/* Creative animated icons */
.creative-card {
  position: relative;
  overflow: hidden;
}
.creative-icon {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  color: #0071e3;
  background: rgba(0, 113, 227, 0.12);
  border: 1px solid rgba(0, 113, 227, 0.18);
  box-shadow: 0 8px 20px rgba(0, 113, 227, 0.08);
}
.creative-icon svg {
  width: 1.85rem;
  height: 1.85rem;
  display: block;
}
.creative-card:hover .creative-icon {
  transform: translateY(-2px);
  background: rgba(0, 113, 227, 0.16);
}
.creative-icon,
.creative-card:hover .creative-icon {
  transition: transform 0.25s ease, background 0.25s ease;
}

.icon-video .ci-play {
  transform-origin: 22px 26px;
  animation: ci-pulse 2.4s ease-in-out infinite;
}
.icon-video .ci-reel {
  transform-origin: 36px 28px;
  animation: ci-wiggle 2.8s ease-in-out infinite;
}
.icon-photo .ci-lens {
  transform-origin: 24px 25px;
  animation: ci-focus 2.6s ease-in-out infinite;
}
.icon-photo .ci-dot {
  animation: ci-blink 2.2s ease-in-out infinite;
}
.icon-resume .ci-line.l1 { animation: ci-draw 2.4s ease-in-out infinite; }
.icon-resume .ci-line.l2 { animation: ci-draw 2.4s ease-in-out infinite 0.15s; }
.icon-resume .ci-line.l3 { animation: ci-draw 2.4s ease-in-out infinite 0.3s; }
.icon-resume .ci-avatar { animation: ci-pulse 2.6s ease-in-out infinite; }
.icon-docs .ci-line.l1 { animation: ci-draw 2.5s ease-in-out infinite; }
.icon-docs .ci-line.l2 { animation: ci-draw 2.5s ease-in-out infinite 0.12s; }
.icon-docs .ci-line.l3 { animation: ci-draw 2.5s ease-in-out infinite 0.24s; }
.icon-docs .ci-fold { animation: ci-pulse 2.8s ease-in-out infinite; }
.icon-content .ci-pen { animation: ci-write 2.8s ease-in-out infinite; transform-origin: 20px 34px; }
.icon-content .ci-spark.s1 { animation: ci-spark 2s ease-in-out infinite; }
.icon-content .ci-spark.s2 { animation: ci-spark 2s ease-in-out infinite 0.4s; }
.icon-ai .ci-orb { animation: ci-spin-slow 8s linear infinite; transform-origin: 24px 24px; }
.icon-ai .ci-core { animation: ci-pulse 2s ease-in-out infinite; transform-origin: 24px 24px; }
.icon-ai .ci-ray { animation: ci-ray 2.4s ease-in-out infinite; transform-origin: 24px 24px; }
.icon-ai .ci-ray.r2 { animation-delay: 0.15s; }
.icon-ai .ci-ray.r3 { animation-delay: 0.3s; }
.icon-ai .ci-ray.r4 { animation-delay: 0.45s; }
.icon-ai .ci-ray.r5 { animation-delay: 0.6s; }
.icon-ai .ci-ray.r6 { animation-delay: 0.75s; }

@keyframes ci-pulse {
  0%, 100% { opacity: 0.75; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.06); }
}
@keyframes ci-wiggle {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(8deg); }
}
@keyframes ci-focus {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.12); opacity: 1; }
}
@keyframes ci-blink {
  0%, 70%, 100% { opacity: 1; }
  80% { opacity: 0.25; }
}
@keyframes ci-draw {
  0%, 100% { stroke-dasharray: 16; stroke-dashoffset: 12; opacity: 0.55; }
  50% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes ci-write {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(1px, -1px) rotate(-6deg); }
}
@keyframes ci-spark {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}
@keyframes ci-spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes ci-ray {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .creative-icon *,
  .creative-card:hover .creative-icon {
    animation: none !important;
    transition: none !important;
  }
}

body.glass-po .creative-icon {
  background: var(--glass-strong);
  border-color: var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--blue);
}

/* —— Interactive Mermaid (GitHub-style pan/zoom) —— */
.diag-block { margin: 1.25rem 0 1.75rem; }
.diag-title {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.diag-host { width: 100%; }
.diag-frame {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: var(--diag-frame-bg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.diag-viewport {
  height: min(62vh, 520px);
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}
.diag-viewport.is-dragging { cursor: grabbing; }
.diag-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: 0 0;
  will-change: transform;
  padding: 1.25rem;
}
.diag-mermaid {
  color: var(--diag-fg);
  font-size: 0.9rem;
  width: 100%;
}
.diag-mermaid svg { display: block; margin: 0 auto; }

.diag-controls {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  z-index: 3;
}
.diag-dpad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem;
  border-radius: 12px;
  background: var(--diag-ctrl-bg);
  border: 1px solid var(--diag-ctrl-border);
  backdrop-filter: blur(10px);
}
.diag-dpad-mid { display: flex; gap: 0.2rem; }
.diag-zoom {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.35rem;
  border-radius: 12px;
  background: var(--diag-ctrl-bg);
  border: 1px solid var(--diag-ctrl-border);
  backdrop-filter: blur(10px);
}
.diag-ctrl {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--diag-fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.diag-ctrl:hover { background: rgba(177,186,196,0.16); }
.diag-ctrl:active { background: rgba(177,186,196,0.28); }

.labs-diagrams { margin-top: 2rem; }
.lab-diagram-card {
  margin-bottom: 1.75rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 18px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.lab-diagram-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.lab-diagram-card .lede-sm {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.lab-diagram-card .lab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}
.file-body .diag-host { margin-top: 0.85rem; }
.file-split {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.file-split pre.file-code {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  max-height: 280px;
  overflow: auto;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  color: var(--file-fg);
}
body.glass-po .file-split pre.file-code {
  background: var(--glass-strong);
  border-color: var(--glass-border);
  color: var(--file-fg);
}

@media (max-width: 720px) {
  .diag-viewport { height: min(55vh, 420px); }
  .diag-controls { right: 0.45rem; bottom: 0.45rem; transform: scale(0.92); transform-origin: bottom right; }
}


/* Creative card with photo background */
.creative-card--photo {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  color: #f5f5f7;
  background-color: #111;
  background-image: var(--creative-photo);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,0.22);
}
.creative-card--photo .creative-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.25) 0%, rgba(15,23,42,0.72) 55%, rgba(15,23,42,0.88) 100%);
  pointer-events: none;
}
.creative-card--photo .creative-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  min-height: 220px;
  justify-content: flex-start;
}
.creative-card--photo .creative-icon {
  position: relative;
  z-index: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.creative-card--photo:hover .creative-icon {
  background: rgba(255, 255, 255, 0.3);
}
.creative-card--photo .tag {
  align-self: flex-start;
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
}
.creative-card--photo h3 {
  color: #fff;
  margin: 0.15rem 0;
}
.creative-card--photo p {
  color: rgba(245,245,247,0.88);
  margin: 0;
}
body.glass-po .creative-card--photo {
  background-color: rgba(17,17,17,0.55);
}


/* —— System dark mode (glass PO) —— */


/* —— Dark mode extras (system + manual) —— */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) body.glass-po .anim-bg:not(.anim-bg--video) {
    background:
      radial-gradient(ellipse at 20% 10%, rgba(56, 189, 248, 0.22), transparent 52%),
      radial-gradient(ellipse at 80% 18%, rgba(129, 140, 248, 0.24), transparent 48%),
      radial-gradient(ellipse at 45% 92%, rgba(14, 165, 233, 0.16), transparent 52%),
      linear-gradient(145deg, #070b16 0%, #0b1224 38%, #121038 72%, #0a1628 100%);
  }
  html:not([data-theme="light"]) body.glass-po .anim-bg .b1 { background: #2563eb; opacity: 0.45; }
  html:not([data-theme="light"]) body.glass-po .anim-bg .b2 { background: #6366f1; opacity: 0.42; }
  html:not([data-theme="light"]) body.glass-po .anim-bg .b3 { background: #0891b2; opacity: 0.38; }
  html:not([data-theme="light"]) body.glass-po .anim-bg .b4 { background: #7c3aed; opacity: 0.28; }
  html:not([data-theme="light"]) body.glass-po .mock-banner { background: rgba(0, 0, 0, 0.55); }
  html:not([data-theme="light"]) body.glass-po .btn-primary {
    background: rgba(10, 132, 255, 0.92);
    box-shadow: 0 8px 22px rgba(10, 132, 255, 0.28);
  }
  html:not([data-theme="light"]) body.glass-po .note,
  html:not([data-theme="light"]) body.glass-po .lab-badge {
    color: #f5d565;
    background: rgba(245, 213, 101, 0.14);
    border-color: rgba(245, 213, 101, 0.28);
  }
  html:not([data-theme="light"]) .tech-pill {
    background: var(--glass-strong, var(--glass));
    border-color: var(--glass-border);
    color: var(--text);
  }
}

html[data-theme="dark"] body.glass-po .anim-bg:not(.anim-bg--video) {
  background:
    radial-gradient(ellipse at 20% 10%, rgba(56, 189, 248, 0.22), transparent 52%),
    radial-gradient(ellipse at 80% 18%, rgba(129, 140, 248, 0.24), transparent 48%),
    radial-gradient(ellipse at 45% 92%, rgba(14, 165, 233, 0.16), transparent 52%),
    linear-gradient(145deg, #070b16 0%, #0b1224 38%, #121038 72%, #0a1628 100%);
}
html[data-theme="dark"] body.glass-po .anim-bg .b1 { background: #2563eb; opacity: 0.45; }
html[data-theme="dark"] body.glass-po .anim-bg .b2 { background: #6366f1; opacity: 0.42; }
html[data-theme="dark"] body.glass-po .anim-bg .b3 { background: #0891b2; opacity: 0.38; }
html[data-theme="dark"] body.glass-po .anim-bg .b4 { background: #7c3aed; opacity: 0.28; }
html[data-theme="dark"] body.glass-po .mock-banner { background: rgba(0, 0, 0, 0.55); }
html[data-theme="dark"] body.glass-po .btn-primary {
  background: rgba(10, 132, 255, 0.92);
  box-shadow: 0 8px 22px rgba(10, 132, 255, 0.28);
}
html[data-theme="dark"] body.glass-po .note,
html[data-theme="dark"] body.glass-po .lab-badge {
  color: #f5d565;
  background: rgba(245, 213, 101, 0.14);
  border-color: rgba(245, 213, 101, 0.28);
}
html[data-theme="dark"] .tech-pill {
  background: var(--glass-strong, var(--glass));
  border-color: var(--glass-border);
  color: var(--text);
}

/* Theme toggle (sun / moon) — last after Contact */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  margin-left: 0.25rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--glass-border, var(--line));
  background: var(--glass, var(--panel));
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}
.theme-toggle:hover {
  background: var(--glass-strong, var(--hover-wash));
  transform: translateY(-1px);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.theme-toggle .theme-icon { display: none; line-height: 0; }
html[data-theme="light"] .theme-toggle .theme-icon-sun { display: inline-flex; }
html[data-theme="dark"] .theme-toggle .theme-icon-moon { display: inline-flex; }
.nav-links { align-items: center; }


/* —— Video page background (plexus) —— */
html.has-video-bg body.glass-po,
html:has(.anim-bg--video) body.glass-po {
  background: transparent !important;
}

body.glass-po .anim-bg.anim-bg--video {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 0 !important;
  overflow: hidden !important;
  background: #000 !important;
  pointer-events: none;
}

html[data-theme="dark"] body.glass-po .anim-bg.anim-bg--video,
html[data-theme="light"] body.glass-po .anim-bg.anim-bg--video {
  background: #000 !important;
}

body.glass-po .anim-bg--video .bg-video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  border: 0;
  z-index: 0;
  pointer-events: none;
  transform: scale(1.05);
  transform-origin: center center;
  transition: filter 220ms ease, opacity 220ms ease;
}

/* Dark mode: let the blue plexus show through */
html[data-theme="dark"] body.glass-po .anim-bg--video .bg-video,
html:not([data-theme="light"]) body.glass-po .anim-bg--video .bg-video {
  filter: none;
  opacity: 1;
}

/* Light mode: lift brightness so frost + dark text still read cleanly */
html[data-theme="light"] body.glass-po .anim-bg--video .bg-video {
  filter: brightness(1.25) saturate(1.05) contrast(0.95);
  opacity: 0.9;
}

body.glass-po .anim-bg--video .bg-video-shade {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1;
  pointer-events: none;
  transition: background 220ms ease;
}

/* Default / dark shade — keep video visible */
html[data-theme="dark"] body.glass-po .anim-bg--video .bg-video-shade,
html:not([data-theme="light"]) body.glass-po .anim-bg--video .bg-video-shade {
  background:
    linear-gradient(180deg, rgba(5,10,24,0.45) 0%, rgba(5,10,24,0.28) 42%, rgba(5,10,24,0.62) 100%);
}

/* Light shade — soft white frost so UI tokens stay light-theme */
html[data-theme="light"] body.glass-po .anim-bg--video .bg-video-shade {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.55) 40%, rgba(245,247,255,0.78) 100%),
    radial-gradient(ellipse at 50% 20%, rgba(255,255,255,0.35), transparent 55%);
}

body.glass-po .anim-bg--video .blob {
  display: none !important;
}

/* Content above video */
body.glass-po .mock-banner,
body.glass-po header,
body.glass-po main,
body.glass-po .tech-ticker,
body.glass-po footer,
body.glass-po .site-footer {
  position: relative;
  z-index: 1;
}

/* Light + video: stronger frosted surfaces so cards don't disappear into the clip */
html[data-theme="light"]:has(.anim-bg--video) body.glass-po header,
html.has-video-bg[data-theme="light"] body.glass-po header {
  background: rgba(255, 255, 255, 0.72) !important;
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}
html[data-theme="light"]:has(.anim-bg--video) body.glass-po .card,
html[data-theme="light"]:has(.anim-bg--video) body.glass-po .panel,
html[data-theme="light"]:has(.anim-bg--video) body.glass-po .explorer,
html[data-theme="light"]:has(.anim-bg--video) body.glass-po .tech-ticker,
html[data-theme="light"]:has(.anim-bg--video) body.glass-po .tech-pill,
html[data-theme="light"]:has(.anim-bg--video) body.glass-po .btn-secondary,
html.has-video-bg[data-theme="light"] body.glass-po .card,
html.has-video-bg[data-theme="light"] body.glass-po .panel,
html.has-video-bg[data-theme="light"] body.glass-po .explorer,
html.has-video-bg[data-theme="light"] body.glass-po .tech-ticker,
html.has-video-bg[data-theme="light"] body.glass-po .tech-pill,
html.has-video-bg[data-theme="light"] body.glass-po .btn-secondary {
  background: rgba(255, 255, 255, 0.78) !important;
  border-color: rgba(255, 255, 255, 0.9) !important;
  color: var(--text);
}

/* Dark + video: keep glass translucent so plexus stays visible behind UI */
html[data-theme="dark"]:has(.anim-bg--video) body.glass-po header,
html.has-video-bg[data-theme="dark"] body.glass-po header {
  background: rgba(11, 18, 32, 0.55) !important;
}
html[data-theme="dark"]:has(.anim-bg--video) body.glass-po .card,
html[data-theme="dark"]:has(.anim-bg--video) body.glass-po .panel,
html[data-theme="dark"]:has(.anim-bg--video) body.glass-po .explorer,
html[data-theme="dark"]:has(.anim-bg--video) body.glass-po .tech-ticker,
html.has-video-bg[data-theme="dark"] body.glass-po .card,
html.has-video-bg[data-theme="dark"] body.glass-po .panel,
html.has-video-bg[data-theme="dark"] body.glass-po .explorer,
html.has-video-bg[data-theme="dark"] body.glass-po .tech-ticker {
  background: rgba(17, 24, 39, 0.55) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

@media (prefers-reduced-motion: reduce) {
  body.glass-po .anim-bg--video .bg-video {
    display: none !important;
  }
  body.glass-po .anim-bg--video .blob {
    display: block !important;
  }
}


/* Creative tools — vertical list with correct logos */
.tool-list {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0.65rem 0 0;
  border-top: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.tool-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.tool-logo {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.28rem;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  padding: 0.12rem;
  box-sizing: content-box;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
html[data-theme="dark"] .tool-logo {
  background: rgba(255,255,255,0.95);
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .tool-logo {
    background: rgba(255,255,255,0.95);
  }
}
.creative-card {
  display: flex;
  flex-direction: column;
}
.creative-card .tool-list {
  margin-top: auto;
}


/* Clickable contact chips */
a.chip.chip-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}
a.chip.chip-link:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--blue) 40%, var(--line));
  color: var(--blue);
}
a.chip.chip-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.creative-card[id] {
  scroll-margin-top: 5.5rem;
}


/* —— App shell: fixed chrome + scroll middle —— */
html:has(body.glass-po) {
  height: 100%;
}
body.glass-po {
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: transparent;
}
body.glass-po > .anim-bg {
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none;
}
body.glass-po > script {
  display: none;
}

/* Top chrome */
body.glass-po > .mock-banner {
  position: relative;
  z-index: 40;
  flex: 0 0 auto;
  background: rgba(17, 17, 17, 0.5);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
body.glass-po > header {
  position: relative !important;
  top: auto !important;
  z-index: 40;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}
html[data-theme="dark"] body.glass-po > header,
html:not([data-theme="light"]) body.glass-po > header {
  background: rgba(11, 18, 32, 0.52) !important;
  border-bottom-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

/* Middle scrolls */
body.glass-po > main {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

/* Bottom chrome */
body.glass-po > .tech-ticker,
body.glass-po > footer.site-footer {
  position: relative;
  z-index: 40;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 -10px 28px rgba(15, 23, 42, 0.06);
}
html[data-theme="dark"] body.glass-po > .tech-ticker,
html[data-theme="dark"] body.glass-po > footer.site-footer,
html:not([data-theme="light"]) body.glass-po > .tech-ticker,
html:not([data-theme="light"]) body.glass-po > footer.site-footer {
  background: rgba(11, 18, 32, 0.52) !important;
  border-top-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.28);
}

/* Tech ticker sits above footer without growing forever */
body.glass-po > .tech-ticker {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  margin-top: 0 !important;
}
body.glass-po > footer.site-footer {
  padding-top: 1rem;
  padding-bottom: 1.1rem;
}

@media (prefers-reduced-transparency: reduce) {
  body.glass-po > header,
  body.glass-po > .tech-ticker,
  body.glass-po > footer.site-footer {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--panel) !important;
  }
}

/* Experience (LinkedIn-style) */
.experience-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.experience-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.9rem 1rem;
  align-items: start;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: inset 0 1px 0 var(--glass-inset);
}
.experience-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  padding: 4px;
  box-sizing: border-box;
}
.experience-title {
  margin: 0 0 0.2rem;
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
}
.experience-company {
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--text);
}
.experience-meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}
@media (max-width: 560px) {
  .experience-item {
    grid-template-columns: 40px 1fr;
    gap: 0.75rem;
    padding: 0.85rem 0.9rem;
  }
  .experience-logo { width: 40px; height: 40px; border-radius: 8px; }
}

/* Typedream-style rotating skill word */
.subtitle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.45;
}
.subtitle-static {
  color: var(--muted);
}
.subtitle-rotate-wrap {
  display: inline-flex;
  min-height: 1.45em;
  align-items: center;
  justify-content: center;
}
.subtitle-rotate {
  display: inline-block;
  color: #6b7cff;
  font-weight: 650;
  letter-spacing: -0.01em;
  transition: opacity 280ms ease, transform 280ms ease, filter 280ms ease;
  will-change: opacity, transform;
}
.subtitle-rotate.is-out {
  opacity: 0;
  transform: translateY(0.45em);
  filter: blur(2px);
}
.subtitle-rotate.is-in {
  animation: skill-rotate-in 420ms cubic-bezier(0.34, 1.3, 0.64, 1) both;
}
@keyframes skill-rotate-in {
  0% {
    opacity: 0;
    transform: translateY(-0.4em);
    filter: blur(2px);
  }
  55% {
    opacity: 1;
    transform: translateY(0.08em);
    filter: blur(0);
  }
  78% { transform: translateY(-0.04em); }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
html[data-theme="dark"] .subtitle-rotate,
html:not([data-theme="light"]) .subtitle-rotate {
  color: #8b9bff;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .subtitle-rotate {
    color: #8b9bff;
  }
}
@media (prefers-reduced-motion: reduce) {
  .subtitle-rotate,
  .subtitle-rotate.is-out,
  .subtitle-rotate.is-in {
    transition: none !important;
    animation: none !important;
    filter: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Creative: name beside animated logo only */
.creative-card--simple {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.15rem;
}
.creative-card--simple .creative-icon {
  flex: 0 0 auto;
  margin: 0;
}
.creative-card--simple h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.creative-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

/* —— Nav hover dropdowns —— */
.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-item > a::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.55;
  translate: 0 1px;
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 13.5rem;
  padding: 0.4rem;
  margin: 0;
  list-style: none;
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
  z-index: 60;
}
.nav-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.55rem;
  height: 0.55rem;
}
.nav-dropdown a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  white-space: nowrap;
  line-height: 1.25;
}
.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  color: var(--blue);
  outline: none;
}
.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 860px) {
  .nav-dropdown {
    left: auto;
    right: 0;
    transform: translateY(4px);
  }
  .nav-item:hover > .nav-dropdown,
  .nav-item:focus-within > .nav-dropdown {
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav-dropdown { transition: none; }
}

/* Creative explore (clickable cards + tools) */
details.creative-card {
  cursor: default;
}
.creative-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.creative-summary::-webkit-details-marker { display: none; }
.creative-summary::marker { content: ""; }
.creative-explore {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--blue);
  letter-spacing: -0.01em;
}
details.creative-card[open] .creative-explore span[aria-hidden="true"] {
  display: inline-block;
  transform: rotate(180deg);
}
details.creative-card[open] {
  border-color: color-mix(in srgb, var(--blue) 35%, var(--line));
  box-shadow: 0 14px 36px rgba(0, 113, 227, 0.12);
}
.creative-more {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
}
.creative-more h4 {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.creative-more h4 + .tool-list { margin-top: 0.35rem; }
.creative-more h4:not(:first-child) { margin-top: 1rem; }
.more-list {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.45;
}
a.tool-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  padding: 0.35rem 0.45rem;
  margin: 0 -0.45rem;
  transition: background 140ms ease, color 140ms ease;
}
a.tool-item:hover,
a.tool-item:focus-visible {
  background: color-mix(in srgb, var(--blue) 10%, transparent);
  color: var(--blue);
  outline: none;
}
a.tool-item:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.tool-open {
  margin-left: auto;
  opacity: 0.45;
  font-size: 0.8rem;
}
a.tool-item:hover .tool-open { opacity: 0.9; }

/* Cool perspective / fade grid overlay */
body.glass-po .anim-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--text) 10%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--text) 10%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 35%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 60% at 50% 35%, #000 20%, transparent 72%);
  opacity: 0.55;
}
html[data-theme="dark"] body.glass-po .anim-bg::after,
html:not([data-theme="light"]) body.glass-po .anim-bg::after {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  opacity: 0.7;
}
html[data-theme="light"] body.glass-po .anim-bg::after {
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.08) 1px, transparent 1px);
  opacity: 0.5;
}
/* Soft horizon glow line across the grid */
body.glass-po .anim-bg::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 32%;
  height: 1px;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--blue) 55%, transparent) 50%,
    transparent 100%
  );
  opacity: 0.45;
  -webkit-mask-image: radial-gradient(ellipse 60% 100% at 50% 50%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 100% at 50% 50%, #000 10%, transparent 75%);
}
@media (prefers-reduced-motion: reduce) {
  body.glass-po .anim-bg::before,
  body.glass-po .anim-bg::after {
    opacity: 0.35;
  }
}

/* Nav dropdown — open via hover, focus-within, or .is-open (click/tap) */
.nav-item.is-open > .nav-dropdown,
.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 860px) {
  .nav-item.is-open > .nav-dropdown,
  .nav-item:hover > .nav-dropdown,
  .nav-item:focus-within > .nav-dropdown {
    transform: translateY(0);
  }
}
.nav-item > a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}
.nav-dropdown a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

#labs-diagrams,
.creative-card[id],
details.creative-card[id] {
  scroll-margin-top: 1.25rem;
}

/* Creative cards — frosted mockup look (keep all info) */
.creative-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}
@media (max-width: 720px) {
  .creative-grid { grid-template-columns: 1fr; }
}
details.creative-card.card {
  margin: 0;
  padding: 1.35rem 1.4rem 1.25rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 18px 40px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
html[data-theme="dark"] details.creative-card.card {
  background: rgba(22, 28, 42, 0.62);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 18px 40px rgba(0, 0, 0, 0.35);
}
details.creative-card.card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 22px 48px rgba(15, 23, 42, 0.12);
}
details.creative-card[open].card {
  border-color: color-mix(in srgb, var(--blue) 28%, rgba(255,255,255,0.7));
}
.creative-summary {
  gap: 0.55rem;
}
.creative-badge.tag,
.creative-card .tag.creative-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin: 0 0 0.15rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.18);
}
html[data-theme="dark"] .creative-badge.tag {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(147, 197, 253, 0.22);
}
.creative-card .creative-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 14px;
  margin-bottom: 0.35rem;
}
.creative-card h3 {
  margin: 0.1rem 0 0;
  font-size: 1.55rem;
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--text);
}
.creative-card .creative-summary > p {
  margin: 0.35rem 0 0;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 34rem;
}
.creative-explore {
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 650;
  color: #2563eb;
  letter-spacing: -0.015em;
}
details.creative-card[open] .creative-explore span[aria-hidden="true"] {
  display: inline-block;
  transform: none;
}
details.creative-card[open] .creative-explore {
  color: #1d4ed8;
}
.creative-more {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) details.creative-card.card {
    background: rgba(22, 28, 42, 0.62);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.08) inset,
      0 18px 40px rgba(0, 0, 0, 0.35);
  }
  html:not([data-theme="light"]) .creative-badge.tag {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(147, 197, 253, 0.22);
  }
}

/* Creative cards stay clickable without “Go to …” CTA text */
.creative-summary {
  cursor: pointer;
}
details.creative-card.card:hover .creative-summary h3 {
  color: color-mix(in srgb, var(--blue) 55%, var(--text));
}
details.creative-card[open] .creative-summary h3 {
  color: var(--text);
}


.lede p {
  margin: 0 0 0.85rem;
  max-width: 42rem;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}
.lede p:last-child {
  margin-bottom: 0;
}


/* Clickable destination cards (Home “browse” grid) */
a.card.card-hit {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
a.card.card-hit:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}
a.card.card-hit p {
  margin-bottom: 0;
}
.section-head--solo {
  margin-bottom: 1.5rem;
}
.section-head .section-lead {
  margin: 0;
  max-width: 42rem;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--text);
}


/* AI-Assisted Workflows — interactive tool cards */
.ai-intro {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 44rem;
}
.ai-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.35rem;
}
@media (max-width: 900px) {
  .ai-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .ai-tool-grid { grid-template-columns: 1fr; }
}
a.ai-tool-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 88%, transparent);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  text-decoration: none;
  color: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}
a.ai-tool-card:hover,
a.ai-tool-card:focus-visible {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--blue) 45%, var(--line));
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  outline: none;
}
a.ai-tool-card:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 35%, transparent), 0 12px 28px rgba(15, 23, 42, 0.1);
}
.ai-tool-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.ai-tool-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: cover;
}
.ai-tool-name {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.ai-tool-badge {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #92400e;
  background: #fef3c7;
  border-radius: 999px;
  padding: 0.18rem 0.45rem;
}
html[data-theme="dark"] .ai-tool-badge {
  color: #fde68a;
  background: rgba(146, 64, 14, 0.35);
}
.ai-tool-desc {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted);
}
.ai-tool-examples {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: color-mix(in srgb, var(--muted) 85%, var(--text));
}
.ai-tool-examples span {
  font-weight: 700;
  color: var(--text);
  margin-right: 0.2rem;
}
a.ai-tool-card.is-exploring {
  border-style: dashed;
}
@media (prefers-reduced-motion: reduce) {
  a.ai-tool-card { transition: none; }
  a.ai-tool-card:hover,
  a.ai-tool-card:focus-visible { transform: none; }
}

/* Creative list view — single column, expand down */
.grid.creative-grid,
.creative-grid {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  gap: 1rem;
  max-width: 44rem;
  margin-inline: auto;
  width: 100%;
}
details.creative-card.card {
  width: 100%;
  display: block;
}
.creative-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}
.creative-more {
  display: block;
  width: 100%;
}
/* AI tool cards stay a nested responsive grid inside the expanded card */
.ai-tool-grid {
  max-width: 100%;
}


.prose h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.prose h2:first-child { margin-top: 0; }
/* Projects case-study redesign */

/* Projects case-study redesign */
.page-projects .lede-support {
  margin: 0.75rem auto 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}
.projects-vs-labs {
  margin: 1.1rem auto 0;
  max-width: 42rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}
.projects-vs-labs a { color: var(--blue); font-weight: 650; }
.project-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (max-width: 860px) {
  .project-showcase { grid-template-columns: 1fr; }
}
.project-card--case {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  padding: 0;
  opacity: 0;
  transform: translateY(12px);
  animation: projectEnter 480ms ease forwards;
  animation-delay: var(--enter-delay, 0ms);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
@keyframes projectEnter {
  60%  { opacity: 1; transform: translateY(-3px); }
  82%  { transform: translateY(1px); }
  to   { opacity: 1; transform: translateY(0); }
}
.project-card--case:hover {
  transform: translateY(-4px);
}
.project-card--case .project-shot {
  position: relative;
  aspect-ratio: 16 / 10;
  background: color-mix(in srgb, var(--blue) 8%, var(--panel));
  overflow: hidden;
}
.project-card--case .project-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shot-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
}
.project-card--case .project-body {
  padding: 1.15rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}
.project-card--case h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.project-short {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
.meta-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.project-label-row { margin: 0.35rem 0 0; }
.project-skills { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chip-skill {
  background: color-mix(in srgb, var(--text) 6%, transparent);
}
.project-card--case .project-actions {
  margin-top: auto;
  padding-top: 0.75rem;
}
.case-study-section[hidden],
.projects-cards-section[hidden] { display: none !important; }
.case-study-panel {
  border-radius: 28px;
  padding: 1.25rem 1.35rem 1.5rem;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.75);
  box-shadow: 0 18px 40px rgba(15,23,42,0.08);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}
html[data-theme="dark"] .case-study-panel {
  background: rgba(22, 28, 42, 0.62);
  border-color: rgba(255,255,255,0.12);
}
.case-study-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.case-study-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 860px) {
  .case-study-hero { grid-template-columns: 1fr; }
}
.case-study-shot {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}
.case-study-shot img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.case-study-intro h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  letter-spacing: -0.03em;
}
.case-study-summary {
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 0.75rem;
}
.case-study-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}
.case-study-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
@media (max-width: 720px) {
  .case-study-body { grid-template-columns: 1fr; }
}
.case-block {
  border-radius: 16px;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 70%, transparent);
}
.case-block h3 {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.case-block p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}
.files-repo-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}
.files-hint {
  color: var(--muted);
  font-size: 0.92rem;
}
#explorer[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  .project-card--case {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* === home-hub (local) === */
.home-hub .home-hero {
  padding: 4.5rem 0 3rem;
  text-align: center;
}
.home-hub .hero-name {
  margin: 0 0 0.35rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--muted);
}
.home-hub .home-hero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 3.4rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
  font-weight: 800;
}
.home-hub .home-focus {
  margin: 0.85rem auto 0;
  max-width: 40rem;
  font-weight: 650;
  color: var(--muted);
}
.home-hub .home-intro {
  margin: 1.1rem auto 0;
  max-width: 38rem;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}
.home-hub .home-hero .actions {
  margin-top: 1.6rem;
  justify-content: center;
}
.home-hub .section-head {
  text-align: left;
}
.home-hub .section-head p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  max-width: 36rem;
}
.home-do-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.home-do-card {
  height: 100%;
}
.home-do-card .home-do-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  color: var(--blue);
  background: var(--blue-soft);
}
.home-do-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.home-do-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.home-featured-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.home-feature-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.home-feature-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: color-mix(in srgb, var(--text) 6%, transparent);
}
.home-feature-body {
  padding: 1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
}
.home-feature-body h3 {
  margin: 0.35rem 0 0.25rem;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}
.home-feature-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.home-snapshot {
  text-align: left;
  padding: 1.5rem 1.5rem 1.35rem;
}
.home-snapshot p {
  margin: 0 0 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}
.home-snapshot p:last-of-type {
  margin-bottom: 0;
}
.home-snapshot .actions {
  margin-top: 1.2rem;
}
.home-beyond-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.home-beyond-card {
  height: 100%;
}
.home-beyond-card h3 {
  margin: 0.45rem 0 0.35rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.home-beyond-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.home-section-actions {
  margin-top: 1.35rem;
  justify-content: flex-start;
}
.home-connect {
  padding-bottom: 3.5rem;
}
.home-connect .section-head {
  text-align: center;
}
.home-connect .section-head p {
  margin-left: auto;
  margin-right: auto;
}
.home-connect-actions {
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
@media (max-width: 960px) {
  .home-do-grid,
  .home-featured-grid,
  .home-beyond-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .home-do-grid,
  .home-featured-grid,
  .home-beyond-grid {
    grid-template-columns: 1fr;
  }
  .home-hub .home-hero {
    padding-top: 3rem;
    padding-bottom: 2.25rem;
  }
  .home-section-actions,
  .home-snapshot .actions {
    justify-content: stretch;
  }
  .home-section-actions .btn,
  .home-snapshot .actions .btn {
    flex: 1 1 auto;
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-feature-card,
  .home-do-card,
  .home-beyond-card {
    transition: none;
  }
}

/* === about-split (local) === */
.about-page .page-hero {
  padding-bottom: 1.1rem;
}
.about-intro {
  padding-bottom: 0.35rem;
}
.about-intro .prose {
  max-width: none;
}
.about-intro .prose p {
  margin: 0;
  max-width: 42rem;
}
.about-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  column-gap: clamp(1.75rem, 4vw, 3rem);
  row-gap: 1.75rem;
  align-items: start;
  isolation: isolate;
}
.about-copy {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  padding-right: 0.25rem;
  z-index: 1;
}
.about-timeline {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  width: 100%;
  max-width: 280px;
  justify-self: end;
  position: relative;
  z-index: 1;
}
.about-copy .prose {
  max-width: 40rem; /* keep text from running into the timeline gutter */
}
.about-page h2.about-col-title {
  margin: 0 0 0.65rem;
  font-size: 1.18rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}
.about-copy .prose h2:not(.about-col-title) {
  margin-top: 1.5rem;
  font-size: 1.18rem;
}
.about-timeline-head {
  margin: 0 0 0.65rem;
}
.about-timeline-head p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}
.experience-body {
  min-width: 0;
}
.about-timeline .experience-list {
  gap: 0.45rem;
}
.about-timeline .experience-item {
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 0.45rem 0.55rem;
  padding: 0.55rem 0.6rem;
  border-radius: 12px;
}
.about-timeline .experience-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  padding: 2px;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--bg) 90%, transparent);
}
.about-timeline .experience-title {
  font-size: 0.8rem;
  line-height: 1.25;
  margin: 0 0 0.08rem;
}
.about-timeline .experience-company {
  font-size: 0.72rem;
  margin: 0 0 0.08rem;
}
.about-timeline .experience-meta {
  font-size: 0.68rem;
  line-height: 1.3;
}
.experience-timeline {
  position: relative;
}
.experience-timeline::before {
  content: "";
  position: absolute;
  left: calc(0.6rem + 14px);
  top: 0.7rem;
  bottom: 0.7rem;
  width: 2px;
  margin-left: -1px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--blue) 28%, var(--line));
  pointer-events: none;
  z-index: 0;
}
.experience-timeline .experience-item {
  position: relative;
  z-index: 1;
}
.about-beyond {
  padding-top: 0.5rem;
  clear: both;
}
.about-beyond .prose {
  max-width: 42rem;
}
.about-beyond .prose h2 {
  margin-top: 0;
}
.about-actions {
  justify-content: flex-start;
  margin-top: 1.75rem;
}
@media (max-width: 960px) {
  .about-split {
    grid-template-columns: 1fr;
    column-gap: 0;
  }
  .about-copy,
  .about-timeline {
    grid-column: 1;
    grid-row: auto;
    max-width: none;
    justify-self: stretch;
    padding-right: 0;
  }
  .about-timeline {
    max-width: 22rem;
  }
  .about-copy .prose {
    max-width: none;
  }
}

/* =========================================================
   Motion pass + Poppins (2026-09-26)
   Calm, one-time entrances; hover-only button pop; gentle
   float on a few Creative cards. All disabled for
   prefers-reduced-motion: reduce.
   ========================================================= */
:root {
  --font-sans: "Poppins", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --rv-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pop-ease: cubic-bezier(0.34, 1.56, 0.64, 1);
}
body,
button,
input,
select,
textarea {
  font-family: var(--font-sans);
}

/* 1. One-time bouncy entrance (js/motion.js adds html.rv-on + .rv) */
html.rv-on .rv:not(.rv-in):not(.rv-done) {
  opacity: 0;
  transform: translateY(16px);
}
html.rv-on .rv.rv-in {
  animation: rvRise 620ms var(--rv-ease) both;
  animation-delay: var(--rv-delay, 0ms);
}
@keyframes rvRise {
  0%   { opacity: 0; transform: translateY(16px); }
  60%  { opacity: 1; transform: translateY(-3px); }
  82%  { transform: translateY(1px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* 3. Wave emoji (auto-wrapped by js/motion.js if a 👋 is present) */
.wave-emoji {
  display: inline-block;
  transform-origin: 70% 75%;
}
.wave-emoji.is-waving {
  animation: waveHand 1.1s ease-in-out 2;
}
@keyframes waveHand {
  0%, 60%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
}

/* 4. Buttons: hover-only pop + soft glow (no idle motion) */
.btn,
.contact-icon {
  transition: transform 220ms var(--pop-ease), box-shadow 240ms ease, background 180ms ease, filter 180ms ease;
}
body.glass-po .btn:hover,
body.glass-po .btn:focus-visible {
  transform: translateY(-2px) scale(1.03);
}
body.glass-po .btn-primary:hover,
body.glass-po .btn-primary:focus-visible {
  box-shadow: 0 10px 26px rgba(0, 113, 227, 0.32), 0 0 0 4px rgba(0, 113, 227, 0.12);
}
body.glass-po .btn-secondary:hover,
body.glass-po .btn-secondary:focus-visible {
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10), 0 0 0 4px rgba(0, 113, 227, 0.10);
}
body.glass-po .contact-icon:hover,
body.glass-po .contact-icon:focus-visible {
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow), 0 0 0 4px rgba(0, 113, 227, 0.10), 0 10px 24px rgba(0, 113, 227, 0.14);
}
body.glass-po .btn:active,
body.glass-po .contact-icon:active {
  transform: translateY(0) scale(0.98);
}

/* 5. Creative: gentle slow float on a few cards (uses `translate`, so hover transform still works) */
.page-creative .creative-grid > details.creative-card:nth-child(1):not(.rv-in),
.page-creative .creative-grid > details.creative-card:nth-child(4):not(.rv-in),
.page-creative .creative-grid > details.creative-card:nth-child(5):not(.rv-in) {
  animation: creativeFloat 7s ease-in-out 1.2s infinite;
}
.page-creative .creative-grid > details.creative-card:nth-child(4):not(.rv-in) {
  animation-duration: 8s;
  animation-delay: 2.4s;
}
.page-creative .creative-grid > details.creative-card:nth-child(5):not(.rv-in) {
  animation-duration: 7.5s;
  animation-delay: 3.4s;
}
.page-creative .creative-grid > details.creative-card:not(.rv-in):hover,
.page-creative .creative-grid > details.creative-card:not(.rv-in):focus-within,
.page-creative .creative-grid > details.creative-card:not(.rv-in)[open] {
  animation-play-state: paused;
}
@keyframes creativeFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}

@media (prefers-reduced-motion: reduce) {
  html.rv-on .rv,
  html.rv-on .rv.rv-in {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .wave-emoji,
  .wave-emoji.is-waving,
  .subtitle-rotate.is-in,
  .page-creative .creative-grid > details.creative-card {
    animation: none !important;
    translate: none !important;
  }
  body.glass-po .btn:hover,
  body.glass-po .btn:focus-visible,
  body.glass-po .btn:active,
  body.glass-po .contact-icon:hover,
  body.glass-po .contact-icon:focus-visible,
  body.glass-po .contact-icon:active {
    transform: none !important;
  }
}

/* === Alignment fixes (2026-09-26 22:56) ===
   Home hero "IT Professional": the base h1 has max-width:16ch + margin:0 auto, but
   .home-hub .home-hero h1 reset margin to 0, leaving a 16ch box pinned to the left
   of the hero (text centered inside it, not on the page). Poppins' wider "ch"
   made the offset larger. Center the box and let it size to the hero. */
.home-hub .home-hero h1 {
  margin-left: auto;
  margin-right: auto;
  max-width: none;
  text-wrap: balance;
}
/* Focus line: wrap only between items (never inside "Technical Support" etc.), balanced rows */
.home-hub .home-focus {
  display: block;
  text-wrap: balance;
}
.home-hub .home-focus .focus-item {
  white-space: nowrap;
}
/* Last nav dropdown (Contact) was centered under its trigger and ran ~14px past
   the header's right edge; right-align it like the mobile layout does. */
@media (min-width: 861px) {
  .nav-links > .nav-item:last-of-type > .nav-dropdown {
    left: auto;
    right: 0;
    transform: translateY(4px);
  }
  .nav-links > .nav-item:last-of-type.is-open > .nav-dropdown,
  .nav-links > .nav-item:last-of-type:hover > .nav-dropdown,
  .nav-links > .nav-item:last-of-type:focus-within > .nav-dropdown {
    transform: translateY(0);
  }
}

/* === Creative header centered on the card column (2026-09-29) ===
   Same max-width + horizontal centering as .creative-grid (44rem, margin-inline:auto),
   so the intro's edges line up with the single-column cards at every width. */
.page-creative .page-hero {
  box-sizing: border-box;
  width: 100%;
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}
.page-creative .page-hero .page-title {
  max-width: none; /* base h1 16ch cap left the title box pinned left */
  margin-inline: auto;
}
.page-creative .page-hero .lede,
.page-creative .page-hero .lede p {
  max-width: none;
  margin-inline: auto;
  text-align: center;
}

/* === Experience cards link to LinkedIn (2026-09-29) === */
.experience-entry {
  margin: 0;
  padding: 0;
}
a.experience-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 220ms var(--pop-ease, ease), box-shadow 240ms ease, border-color 200ms ease;
}
a.experience-link:hover,
a.experience-link:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--blue) 35%, var(--glass-border));
  box-shadow:
    inset 0 1px 0 var(--glass-inset),
    0 10px 24px rgba(15, 23, 42, 0.10),
    0 0 0 3px rgba(0, 113, 227, 0.10),
    0 0 18px rgba(0, 113, 227, 0.16);
}
a.experience-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
a.experience-link:active {
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  a.experience-link,
  a.experience-link:hover,
  a.experience-link:focus-visible,
  a.experience-link:active {
    transition: none !important;
    transform: none !important;
  }
}
