@import url("./tokens.css?v=feature-tags-1");
@import url("./theme-picker.css");

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  line-height: 1.6;
}

.app {
  position: relative;
}

.page-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #061018;
}

.app > main,
.app > footer {
  position: relative;
  z-index: 1;
}

.app--continuous-hero {
  --surface-text: 210 40% 97%;
  --surface-muted: 210 30% 72%;
  --surface-label: 205 68% 62%;
  --surface-border: 205 68% 42% / 0.22;
  --surface-card: 215 58% 12% / 0.45;
  color: hsl(var(--surface-text));
}

.app--continuous-hero .mono-label {
  color: hsl(var(--surface-label) / 0.85);
}

.app--continuous-hero .text-muted {
  color: hsl(var(--surface-muted));
}

.app--continuous-hero .datum-line {
  background: hsl(var(--surface-border));
}

.app--continuous-hero .site-header.scrolled .nav-pill {
  background: hsl(215 58% 8% / 0.82);
  border-color: hsl(var(--accent) / 0.28);
  box-shadow: 0 14px 44px hsl(215 58% 4% / 0.38);
}

.app--continuous-hero .section,
.app--continuous-hero .site-footer {
  background: transparent;
}

.app--continuous-hero .section-intro,
.app--continuous-hero .numbered-item p,
.app--continuous-hero .experience-panel p,
.app--continuous-hero .experience-panel li {
  color: hsl(var(--surface-muted));
}

.app--continuous-hero .current-title [data-field="currentRole.company"] {
  color: hsl(var(--surface-muted));
}

.app--continuous-hero .experience-list {
  border-top-color: transparent;
}

.app--continuous-hero .experience-item {
  border-bottom-color: transparent;
}

.app--continuous-hero .experience-item.open {
  background: transparent;
  box-shadow: none;
}

.app--continuous-hero .exp-timeline-card {
  background: hsl(var(--surface-card) / 0.42);
  border-color: hsl(var(--surface-border));
}

.app--continuous-hero .experience-item.open .exp-timeline-card {
  background: hsl(var(--surface-card) / 0.62);
  border-color: hsl(var(--accent) / 0.35);
  box-shadow: 0 12px 40px hsl(215 58% 6% / 0.28);
}

.app--continuous-hero .experience-list::before {
  background: linear-gradient(
    to bottom,
    hsl(var(--accent) / 0.55),
    hsl(var(--surface-border) / 0.45)
  );
}

.app--continuous-hero .exp-timeline-line {
  display: none;
}

.app--continuous-hero .exp-timeline-node::before {
  border-color: hsl(var(--accent) / 0.45);
  background: hsl(215 58% 10% / 0.72);
}

.app--continuous-hero .exp-timeline-date {
  color: hsl(var(--surface-label) / 0.9);
}

.app--continuous-hero .exp-icon {
  background: hsl(215 58% 10% / 0.55);
  border-color: hsl(var(--surface-border) / 0.8);
  box-shadow: none;
}

.app--continuous-hero .tag:not(.tag--link) {
  border-color: hsl(var(--surface-border));
}

.app--continuous-hero .education-item {
  border-top-color: hsl(var(--surface-border));
}

.app--continuous-hero .site-footer {
  border-top-color: hsl(var(--surface-border));
}

.app--continuous-hero .sync-status {
  color: hsl(var(--surface-muted));
}

.app--continuous-hero .section-grid {
  opacity: 0.06;
  background-image:
    linear-gradient(hsl(205 68% 62% / 0.35) 1px, transparent 1px),
    linear-gradient(90deg, hsl(205 68% 62% / 0.35) 1px, transparent 1px);
}

.app--continuous-hero .experience::before {
  background: radial-gradient(ellipse 60% 40% at 100% 0%, hsl(var(--accent) / 0.12), transparent 60%);
}

.app--continuous-hero .floating-link {
  background: hsl(215 58% 12% / 0.92);
  color: hsl(var(--surface-text));
  border: 1px solid hsl(var(--surface-border));
}

.app--continuous-hero .floating-trigger {
  background: hsl(215 58% 10% / 0.92);
  border-color: hsl(var(--surface-border));
  box-shadow: 0 12px 32px hsl(215 58% 6% / 0.45);
}

.app--continuous-hero .portrait-frame {
  background: hsl(215 58% 10% / 0.5);
  border-color: hsl(var(--accent) / 0.4);
  box-shadow: 0 10px 32px hsl(215 58% 6% / 0.45);
}

.app--continuous-hero .experience-toggle:hover .exp-chevron {
  color: hsl(var(--surface-text));
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

.container {
  width: min(1600px, calc(100% - 3rem));
  margin-inline: auto;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: hsl(var(--muted));
}

.display-heading {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.accent { color: hsl(var(--accent)); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding:
    calc(clamp(0.85rem, 2.5vw, 1.35rem) + var(--safe-top))
    calc(clamp(1rem, 3vw, 1.75rem) + var(--safe-right))
    clamp(0.85rem, 2.5vw, 1.35rem)
    calc(clamp(1rem, 3vw, 1.75rem) + var(--safe-left));
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 2.65rem;
  padding: 0.35rem 0.45rem;
  border-radius: 999px;
  border: 1px solid hsl(210 40% 97% / 0.12);
  background: hsl(215 58% 8% / 0.52);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  box-shadow:
    0 10px 36px hsl(215 58% 4% / 0.3),
    inset 0 1px 0 hsl(210 40% 97% / 0.07);
  color: hsl(210 40% 97%);
  transition:
    background 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header.scrolled .nav-pill {
  background: hsl(var(--background) / 0.82);
  border-color: hsl(var(--border));
  box-shadow: 0 12px 40px hsl(var(--foreground) / 0.1);
  color: hsl(var(--foreground));
}

.nav-pill--brand {
  padding-inline: 1rem 0.95rem;
}

.nav-pill--brand:hover {
  transform: translateY(-1px);
  border-color: hsl(var(--accent, 205 68% 42%) / 0.32);
}

.nav-pill--controls {
  padding-inline: 0.4rem 0.35rem;
  gap: 0.1rem;
}

.brand {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.menu-toggle:hover {
  background: hsl(var(--accent, 205 68% 42%) / 0.14);
}

.menu-toggle:focus-visible {
  outline: 2px solid hsl(var(--accent, 205 68% 42%));
  outline-offset: 2px;
}

.menu-toggle-bars {
  position: relative;
  display: block;
  width: 1.125rem;
  height: 0.875rem;
}

.menu-toggle-bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    bottom 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease;
}

.menu-toggle-bars span:nth-child(1) { top: 0; }
.menu-toggle-bars span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle-bars span:nth-child(3) { bottom: 0; }

.menu-toggle.is-open .menu-toggle-bars span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.menu-toggle.is-open .menu-toggle-bars span:nth-child(2) {
  opacity: 0;
  transform: translateY(-50%) scaleX(0.4);
}

.menu-toggle.is-open .menu-toggle-bars span:nth-child(3) {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%) rotate(-45deg);
}

.nav-pill--controls .appearance-toggle-btn {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  border-radius: 999px;
}

.nav-pill--controls .menu-toggle {
  border-radius: 999px;
}

.nav-pill--controls .appearance-toggle-btn:hover {
  border-color: transparent;
  background: hsl(var(--accent, 205 68% 42%) / 0.14);
}

.nav-pill--controls .owner-tools:not(:empty) {
  padding-inline: 0.15rem 0.25rem;
  border-inline-end: 1px solid hsl(210 40% 97% / 0.1);
  margin-inline-end: 0.1rem;
}

.site-header.scrolled .nav-pill--controls .owner-tools:not(:empty) {
  border-inline-end-color: hsl(var(--border));
}

.site-nav-cta {
  position: relative;
  pointer-events: auto;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
}

.nav-menu-links {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  z-index: 2;
  transition:
    opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav-cta.open .nav-menu-links {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-menu-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-width: 11rem;
  padding: 0.65rem 0.85rem 0.65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid hsl(210 40% 97% / 0.12);
  background: hsl(215 58% 8% / 0.88);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 8px 24px hsl(215 58% 4% / 0.28);
  color: hsl(210 40% 97%);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-menu-link:hover {
  background: hsl(var(--accent, 205 68% 42%));
  border-color: hsl(var(--accent, 205 68% 42%) / 0.55);
  color: hsl(210 40% 97%);
  transform: translateX(-4px);
}

.nav-menu-link .mono-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  background: hsl(210 40% 97% / 0.08);
  border: 1px solid hsl(210 40% 97% / 0.14);
}

.nav-menu-link:hover .mono-label {
  background: hsl(210 40% 97% / 0.16);
  border-color: hsl(210 40% 97% / 0.22);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: transparent;
  color: hsl(210 40% 97%);
  isolation: isolate;
}
.hero--tech .hero-image,
.page-backdrop .hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 1;
  filter: saturate(1.15) contrast(1.05);
}
/* Must beat `.page-backdrop .hero-image { opacity: 1 }` or bright→dark
   animates editorial toward opacity 1 while visibility slowly hides it. */
.page-backdrop .hero-image--editorial,
.hero-image--editorial {
  opacity: 0;
  visibility: hidden;
}
.page-backdrop .hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.9;
}
.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    hsl(205 68% 42% / 0.03) 2px,
    hsl(205 68% 42% / 0.03) 4px
  );
  opacity: 0.5;
}
.hero-gradient {
  background:
    linear-gradient(105deg, hsl(215 58% 8% / 0.92) 0%, hsl(215 58% 8% / 0.55) 42%, transparent 68%),
    linear-gradient(to top, hsl(215 58% 6% / 0.95) 0%, transparent 45%),
    radial-gradient(ellipse 80% 60% at 70% 40%, hsl(205 68% 42% / 0.18), transparent 60%);
}
.hero-grid {
  opacity: 0.14;
  background-image:
    linear-gradient(hsl(205 68% 62% / 0.35) 1px, transparent 1px),
    linear-gradient(90deg, hsl(205 68% 62% / 0.35) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 20%, transparent 75%);
}
.page-backdrop .hero-grid {
  mask-image: radial-gradient(ellipse 140% 120% at 50% 20%, black 12%, transparent 88%);
}
.hero-frame {
  position: absolute;
  inset: calc(var(--header-height) + 4.75rem) clamp(1rem, 3vw, 3rem) clamp(5rem, 12vh, 7rem);
  pointer-events: none;
  z-index: 2;
}
.hero-chrome {
  position: absolute;
  top: calc(var(--header-height) + 0.65rem);
  left: 0;
  right: 0;
  z-index: 3;
  pointer-events: none;
}
.hero-chrome-inner {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.hero-chrome-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.hero-chrome-row--meta {
  color: hsl(205 68% 62% / 0.7);
}
.hero-chrome-row--meta .hero-meta {
  margin: 0;
  max-width: min(18rem, 46vw);
}
.hero-chrome-row--meta .hero-meta:last-child {
  text-align: right;
}
.hero-corner {
  position: absolute;
  width: 2.5rem;
  height: 2.5rem;
  border-color: hsl(205 68% 52% / 0.55);
  border-style: solid;
}
.hero-corner--tl { top: 0; left: 0; border-width: 1px 0 0 1px; }
.hero-corner--tr { top: 0; right: 0; border-width: 1px 1px 0 0; }
.hero-corner--bl { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.hero-corner--br { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.hero-hud {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.65rem;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: hsl(205 68% 72% / 0.85);
  background: hsl(215 58% 10% / 0.55);
  border: 1px solid hsl(205 68% 42% / 0.25);
  backdrop-filter: blur(8px);
}
.hero-chrome .hero-hud {
  position: relative;
  flex-shrink: 0;
}
.hero-hud--bl { bottom: 5.5rem; left: clamp(1rem, 3vw, 3rem); display: none; }
.hero-hud-dot,
.hero-badge-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: hsl(152 70% 48%);
  box-shadow: 0 0 12px hsl(152 70% 48% / 0.8);
  animation: hud-pulse 2s ease-in-out infinite;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  margin-bottom: 1.25rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid hsl(205 68% 42% / 0.35);
  background: hsl(215 58% 12% / 0.5);
  color: hsl(205 68% 78%);
  backdrop-filter: blur(10px);
}
.hero-title-line--accent {
  background: linear-gradient(120deg, hsl(210 40% 98%) 0%, hsl(205 68% 72%) 55%, hsl(205 68% 42%) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
.hero-facts {
  display: grid;
  gap: 0;
  max-width: 32rem;
  margin-top: 2.25rem;
}

.hero-fact-label {
  display: block;
  margin-bottom: 0.65rem;
  color: hsl(205 68% 62% / 0.75);
  letter-spacing: 0.14em;
}

.hero-fact-lines {
  display: grid;
  gap: 0.2rem;
}

.hero-fact-line,
.hero-fact-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: hsl(210 40% 96%);
}

.hero-fact-title [data-hero-company] {
  color: hsl(210 30% 72%);
}

.hero-company-link,
.exp-company-link {
  color: inherit;
  text-decoration: none;
}

.hero-company-link:hover,
.exp-company-link:hover {
  color: hsl(var(--accent));
  text-decoration: underline;
}
.hero-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  overflow: hidden;
  border-top: 1px solid hsl(205 68% 42% / 0.2);
  background: hsl(215 58% 8% / 0.75);
  backdrop-filter: blur(12px);
  padding-bottom: var(--safe-bottom);
}
.hero-rail-track {
  --rail-set-gap: 4rem;
  display: flex;
  width: max-content;
  padding: 0.75rem 0;
  color: hsl(205 68% 62% / 0.7);
  animation: rail-scroll var(--rail-duration, 28s) linear infinite;
  will-change: transform;
}
.hero-rail-set {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}
.hero-rail-set::after {
  content: '';
  flex-shrink: 0;
  width: var(--rail-set-gap);
}
.hero-rail-track span { flex-shrink: 0; }
.hero-rail-sep { opacity: 0.55; }
.hero-meta {
  margin: 0;
  color: inherit;
}
.hero-content {
  position: relative;
  z-index: 3;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(7rem, 14vh, 9rem);
}
.page-backdrop .hero-media {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.hero-media, .page-backdrop .hero-image, .hero-gradient, .page-backdrop .hero-grid, .page-backdrop .hero-noise, .page-backdrop .hero-scanlines {
  position: absolute;
  inset: 0;
}
.hero-kicker { margin-bottom: 1rem; color: hsl(205 68% 62%); }
.hero-title {
  font-size: clamp(3.5rem, 13vw, 8.5rem);
  line-height: 0.88;
  margin: 0;
  text-shadow: 0 0 80px hsl(205 68% 42% / 0.25);
}
.hero-title-line { display: block; }
.hero-lead {
  margin-top: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  max-width: 40rem;
}
.hero-line {
  width: clamp(80px, 20vw, 200px);
  height: 1px;
  margin-top: 0.65rem;
  background: linear-gradient(90deg, hsl(205 68% 42%), transparent);
  flex-shrink: 0;
  transform-origin: left center;
}
.hero-lead p {
  margin: 0;
  color: hsl(210 30% 82%);
  font-size: 1rem;
  line-height: 1.65;
  opacity: 0;
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 3.25rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(205 68% 62% / 0.75);
  z-index: 3;
}
.scroll-cue svg { display: block; }

.text-muted { color: hsl(var(--muted)); }

.datum-line {
  display: block;
  width: min(120px, 100%);
  height: 1px;
  margin-top: 1rem;
  background: hsl(var(--border));
}
.datum-line--wide { width: 100%; max-width: none; margin: 2rem 0; }
.datum-line--inverted { background: hsl(var(--background) / 0.2); }

.section {
  position: relative;
  padding: clamp(5rem, 10vw, 7rem) 0;
}
.section-inverted {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
}
.section-inverted .mono-label,
.section-inverted .text-muted,
.section-inverted .section-intro {
  color: hsl(var(--background) / 0.6);
}
.section-grid {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(hsl(var(--foreground)) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--foreground)) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.section-index { margin: 0; }
.section-header-grid {
  display: grid;
  gap: 1.5rem 2.5rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.section-heading {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.section-intro {
  max-width: 36rem;
  color: hsl(var(--muted));
  margin: 1.5rem 0 0;
  line-height: 1.65;
}

.about-container { position: relative; }
.about { background: transparent; }
.experience { position: relative; }
.experience::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 100% 0%, hsl(var(--accent) / 0.06), transparent 60%);
  pointer-events: none;
}
.about-header-grid,
.about-body-grid,
.section-header-grid {
  display: grid;
  gap: 1.5rem 2.5rem;
}
.about-headline {
  font-size: clamp(1.75rem, 4vw, 3.75rem);
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}
.about-body-grid {
  margin-top: clamp(3rem, 6vw, 5rem);
}
.about-detail-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}
.numbered-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.numbered-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.numbered-index {
  width: 2rem;
  flex-shrink: 0;
  padding-top: 0.2rem;
}
.numbered-item p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: hsl(var(--foreground) / 0.8);
}
.about-footer-grid { margin-top: 1rem; }
.about-footer-cols {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}
.about-edu {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.about-edu span,
.current-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin: 0;
}
.current-position { margin: 0; }
.current-title [data-field="currentRole.company"] {
  color: hsl(var(--muted));
}

.portrait-wrap {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  max-width: 100%;
}
.portrait-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  max-width: 12rem;
  margin-top: 1rem;
}
.portrait-caption { margin: 0; }
.portrait-frame {
  position: relative;
  width: min(10.5rem, 38vw);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: hsl(var(--muted) / 0.15);
  border: 2px solid hsl(var(--accent) / 0.35);
  box-shadow: 0 10px 32px hsl(var(--foreground) / 0.12);
}
.portrait-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.portrait-wrap:hover .portrait-image {
  transform: scale(1.03);
}
.portrait-mark {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  display: block;
}

.experience-list {
  --timeline-spine-x: calc(var(--exp-icon-col, 2.75rem) / 2);
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: none;
  position: relative;
}

.experience-list::before {
  content: "";
  position: absolute;
  left: calc(var(--timeline-spine-x) - 1px);
  top: calc(var(--exp-icon-col, 2.75rem) / 2);
  bottom: calc(var(--exp-icon-col, 2.75rem) / 2);
  width: 2px;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    to bottom,
    hsl(var(--accent) / 0.5),
    hsl(var(--border) / 0.35)
  );
}
.experience-item {
  --exp-icon-col: 2.75rem;
  --exp-gap: 1rem;
  display: grid;
  grid-template-columns: var(--exp-icon-col) minmax(0, 1fr);
  column-gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: stretch;
  border-bottom: none;
  padding-bottom: clamp(1.75rem, 3vw, 2.5rem);
  transition: none;
}
.experience-item:last-child {
  padding-bottom: 0;
}

.exp-timeline-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  position: relative;
  z-index: 1;
}
.exp-timeline-node {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--exp-icon-col);
  height: var(--exp-icon-col);
  flex-shrink: 0;
}
.exp-timeline-node::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid hsl(var(--accent) / 0.4);
  background: hsl(var(--background) / 0.72);
  box-shadow: 0 0 0 4px hsl(var(--accent) / 0.06);
}
.exp-timeline-node .exp-icon-link,
.exp-timeline-node .exp-icon,
.exp-timeline-node .exp-letter {
  position: relative;
  z-index: 1;
}
.exp-timeline-line {
  display: none;
}
.exp-timeline-main {
  min-width: 0;
  padding-top: 0.1rem;
}
.exp-timeline-date {
  display: block;
  margin: 0 0 0.65rem;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: hsl(var(--accent));
}
.exp-timeline-card {
  border: 1px solid hsl(var(--border) / 0.55);
  background: hsl(var(--card) / 0.2);
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}
.experience-item.open .exp-timeline-card {
  border-color: hsl(var(--accent) / 0.32);
  background: hsl(var(--card) / 0.34);
  box-shadow: 0 10px 36px hsl(var(--foreground) / 0.07);
}
.experience-item.open {
  background: transparent;
}
.experience-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 1rem 1rem 1rem 1.15rem;
  text-align: left;
  transition: color 0.25s ease;
}
.exp-header {
  min-width: 0;
}
.exp-header-main {
  min-width: 0;
}
.experience-toggle:hover .exp-title { color: hsl(var(--accent)); }
.exp-title {
  font-family: var(--font-heading);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  font-weight: 600;
  margin: 0;
  line-height: 1.25;
  transition: color 0.25s ease;
}
.exp-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.4rem;
  margin: 0.15rem 0 0;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  color: hsl(var(--muted));
}
.exp-company {
  color: hsl(var(--foreground) / 0.62);
}
.exp-meta-sep {
  opacity: 0.4;
  font-size: 0.75em;
}
.exp-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--exp-icon-col);
  height: var(--exp-icon-col);
  flex-shrink: 0;
}

.exp-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  text-decoration: none;
  color: inherit;
  line-height: 0;
}

.exp-icon-link:hover .exp-icon {
  border-color: hsl(var(--accent) / 0.55);
  box-shadow: 0 0 0 3px hsl(var(--accent) / 0.12);
}

.exp-icon-link:focus-visible {
  outline: 2px solid hsl(var(--accent));
  outline-offset: 3px;
}
.exp-icon {
  width: var(--exp-icon-col);
  height: var(--exp-icon-col);
  display: block;
  box-sizing: border-box;
  background: hsl(var(--background));
  box-shadow: none;
  border: 1px solid hsl(var(--border) / 0.65);
  padding: 0.18rem;
  object-fit: cover;
  border-radius: 50%;
}
.exp-icon--contain {
  object-fit: contain;
  padding: 0.35rem;
}

.exp-icon--logo-yavo {
  padding: 0.55rem;
  object-fit: contain;
  object-position: center;
  background: hsl(0 0% 100% / 0.96);
  border-color: hsl(var(--border) / 0.5);
}

[data-appearance="light"] .app--continuous-hero .exp-icon--logo-yavo,
[data-appearance="light"] .exp-icon--logo-yavo {
  background: hsl(var(--card));
}

.exp-icon--logo-colman {
  padding: 0.45rem;
}
.exp-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--exp-icon-col);
  height: var(--exp-icon-col);
  border-radius: 50%;
  border: 1px solid hsl(var(--border) / 0.65);
  font-size: 0.72rem;
}
.exp-chevron {
  width: 1rem;
  height: 1rem;
  justify-self: end;
  align-self: center;
  color: hsl(var(--muted));
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
}
.experience-item.open .exp-chevron {
  transform: rotate(180deg);
  color: hsl(var(--accent));
}
.experience-toggle:hover .exp-chevron {
  color: hsl(var(--foreground));
}
.experience-panel-wrap {
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}
.experience-item.open .experience-panel-wrap {
  grid-template-rows: 1fr;
  opacity: 1;
}
.experience-panel {
  overflow: hidden;
}
.experience-panel-inner {
  display: grid;
  gap: 1.15rem;
  padding: 0 1.15rem 1.15rem;
}
.exp-panel-copy {
  display: grid;
  gap: 0.85rem;
}
.exp-summary {
  margin: 0;
  color: hsl(var(--foreground) / 0.82);
  line-height: 1.65;
  font-size: 0.98rem;
}
.exp-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
.exp-bullets li {
  position: relative;
  padding-left: 1rem;
  color: hsl(var(--foreground) / 0.72);
  line-height: 1.55;
  font-size: 0.95rem;
}
.exp-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: hsl(var(--accent) / 0.75);
}
.exp-panel-tags {
  display: grid;
  gap: 1rem;
}
.exp-panel-group + .exp-panel-group {
  padding-top: 0.25rem;
}
.panel-label {
  margin: 0 0 0.55rem;
  color: hsl(var(--muted));
  font-size: 0.62rem;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid hsl(var(--border));
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  color: hsl(var(--foreground) / 0.78);
  background: hsl(var(--background) / 0.35);
  transition: border-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
}
.experience-item.open .tag:not(.tag--link) {
  border-color: hsl(var(--foreground) / 0.12);
}

/* Clickable feature tags — signal interactivity and animate on hover */
.tag--link {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  cursor: pointer;
  color: hsl(var(--accent));
  border-color: hsl(var(--accent) / 0.5);
  background: hsl(var(--accent) / 0.1);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease,
    color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease;
}
.tag--link .tag-link-icon {
  display: inline-flex;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.tag--link .tag-link-icon svg {
  display: block;
  width: 0.72em;
  height: 0.72em;
}
.tag--link:hover,
.tag--link:focus-visible {
  color: hsl(0 0% 100%);
  background: hsl(var(--accent));
  border-color: hsl(var(--accent));
  transform: translateY(-2px);
  box-shadow: 0 8px 20px hsl(var(--accent) / 0.35);
}
.tag--link:hover .tag-link-icon,
.tag--link:focus-visible .tag-link-icon {
  transform: translate(2px, -2px);
}
.tag--link:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px hsl(var(--accent) / 0.3);
}
@media (prefers-reduced-motion: reduce) {
  .tag--link,
  .tag--link .tag-link-icon {
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  }
  .tag--link:hover,
  .tag--link:focus-visible,
  .tag--link:active {
    transform: none;
  }
  .tag--link:hover .tag-link-icon,
  .tag--link:focus-visible .tag-link-icon {
    transform: none;
  }
}

.education-list {
  display: grid;
  gap: 2rem;
}
.education-item {
  border-top: 1px solid hsl(var(--background) / 0.15);
  padding-top: 2rem;
}
.education-item h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  margin: 0.75rem 0 0.5rem;
  line-height: 1.2;
}
.education-item p { margin: 0.25rem 0; }
.education-school {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.education-school-logo {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  flex-shrink: 0;
  padding: 0.35rem;
  border-radius: 50%;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  box-shadow: 0 4px 14px hsl(var(--foreground) / 0.06);
}

.app--continuous-hero .education-school-logo {
  background: hsl(215 58% 10% / 0.65);
  border-color: hsl(var(--surface-border));
  box-shadow: 0 4px 14px hsl(215 58% 6% / 0.35);
}

[data-appearance="light"] .app--continuous-hero .education-school-logo {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
  box-shadow: 0 4px 14px hsl(var(--foreground) / 0.05);
}

.education-school-logo.exp-icon--logo-colman {
  padding: 0.5rem;
}
.education-item-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.site-footer {
  padding: 3rem 0 6rem;
  border-top: 1px solid hsl(var(--border));
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}
.sync-status { color: hsl(var(--muted)); }

.floating-cta {
  position: fixed;
  right: calc(2.75rem + var(--safe-right));
  bottom: calc(1.25rem + var(--safe-bottom));
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}
.floating-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.floating-cta.open .floating-links {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.floating-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: 12rem;
  min-height: 2.5rem;
  padding: 0.65rem 1rem;
  box-sizing: border-box;
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Typography only — do not restyle background/color here or theme rules lose. */
.floating-link.mono-label,
.app--continuous-hero .floating-link.mono-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}

.floating-link:hover {
  background: hsl(var(--accent));
  color: hsl(var(--background));
  transform: translateX(-4px);
}

button.floating-link,
a.floating-link[role="button"] {
  margin: 0;
  cursor: pointer;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  line-height: inherit;
  color: inherit;
  background: inherit;
  border: inherit;
  box-shadow: inherit;
}

.app--continuous-hero button.floating-link,
.app--continuous-hero a.floating-link[role="button"] {
  border: 1px solid hsl(var(--surface-border));
  background: hsl(215 58% 12% / 0.92);
  color: hsl(var(--surface-text));
}

/* Independent right-click menu — not nested inside the corner CTA. */
.context-menu {
  position: fixed;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.context-menu.open,
.context-menu:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.context-menu[hidden] {
  display: none !important;
}
.context-menu .floating-link {
  width: 12rem;
}
.context-menu.open .stagger-item,
.context-menu:not([hidden]) .stagger-item {
  opacity: 1;
  transform: translateY(0);
}
.floating-link-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  display: inline-block;
}
.floating-link-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.floating-link-icon img,
.brand-logo {
  width: 100%;
  height: 100%;
  display: block;
}
.brand-logo--sm {
  width: 1rem;
  height: 1rem;
}
.floating-trigger {
  position: relative;
  width: 4rem;
  height: 4rem;
  padding: 0.2rem;
  border-radius: 50%;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  box-shadow: 0 12px 32px hsl(var(--foreground) / 0.12);
  overflow: hidden;
  transition:
    transform var(--duration-spin, 0.85s) cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
}
.floating-trigger:hover {
  box-shadow: 0 16px 40px hsl(var(--foreground) / 0.16);
}
.floating-trigger-logo {
  width: 100%;
  height: 100%;
  display: block;
}
.floating-cta.open .floating-trigger {
  transform: scale(0.95) rotate(360deg);
}

@media (min-width: 768px) {
  .about-header-grid,
  .about-body-grid,
  .section-header-grid {
    grid-template-columns: 3fr 9fr;
    gap: 2.5rem;
  }
  .about-body-grid {
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: clamp(2rem, 4vw, 3.5rem);
  }
  .experience-toggle {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .experience-panel-inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: start;
    gap: 2rem 2.5rem;
  }
  .education-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
  }
  .hero-hud--bl { display: inline-flex; }
  .hero-facts {
    max-width: 36rem;
  }
  .container { width: min(1600px, calc(100% - 6rem)); }
  .floating-cta {
    right: calc(3.5rem + var(--safe-right));
    bottom: calc(1.5rem + var(--safe-bottom));
  }
}

@media (max-width: 767px) {
  .experience-item {
    --exp-icon-col: 2.35rem;
    column-gap: 0.85rem;
  }

  .exp-timeline-date {
    font-size: 0.62rem;
  }

  .experience-toggle {
    padding: 0.85rem 0.85rem 0.85rem 1rem;
  }

  .floating-cta {
    right: calc(1.25rem + var(--safe-right));
    bottom: calc(1rem + var(--safe-bottom));
  }
  .hero-chrome-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-chrome-row--meta .hero-meta:last-child {
    text-align: left;
  }
  .hero-chrome-row--meta .hero-meta {
    max-width: none;
  }
}
