.site-header{
  position: sticky;
  top:0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background:rgba(11,12,16,.65);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
}
.brand{
  font-weight: 700;
  letter-spacing: .02em;
}
.nav{
  display:flex;
  gap: 14px;
}
.nav-link{
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
}
.nav-link:hover{ color: var(--text); background: rgba(255,255,255,.05); }
.nav-link.active{ color: var(--text); background: rgba(124,92,255,.18); border: 1px solid rgba(124,92,255,.25); }

.card{
  background: rgba(17,19,26,.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.card-actions{
  display:flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--text);
  color: #0b0c10;
  font-weight: 650;
  border: 1px solid rgba(255,255,255,.12);
}
.btn:hover{ transform: translateY(-1px); }

.btn-ghost{
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-sm{ padding: 8px 12px; border-radius: 12px; font-size: .95rem; }

.tag{
  font-size: .8rem;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}

.link{
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.list li{ margin: 6px 0; }

.site-footer{
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 22px 0;
}
.footer-links{
  display:flex;
  gap: 14px;
}
@media (max-width: 700px){
  .footer-inner{ flex-direction:column; align-items:flex-start; }
}

.case-head{
  margin: 10px 0 16px;
}
.chips{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  margin: 12px 0 12px;
}
.chip{
  font-size: .82rem;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}

.h3{ font-size: 1.25rem; }
.h4{ font-size: 1.05rem; margin-bottom: 6px; }

.media{
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: rgba(255,255,255,.02);
}

.media-img{
  width: 100%;
  height: auto;
  display: block;
}

/* Subtle hover for cards */
.card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  background: rgba(255,255,255,.035);
}

/* Keyboard-friendly focus (when tabbing into links/buttons inside the card) */
.card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  background: rgba(255,255,255,.04);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover, .card:focus-within { transform: none; }
}

.fig-grid{
  margin-top: 12px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fig{
  margin: 0;
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: rgba(255,255,255,.02);
}

.fig-img{
  width: 100%;
  height: auto;
  display: block;
}

.fig figcaption{
  padding: 10px 12px;
}

@media (max-width: 820px){
  .fig-grid{ grid-template-columns: 1fr; }
}

/* DSP spectrogram grid (3-up, responsive) */
.spec-grid{
  margin-top: 12px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.spec{
  margin: 0;
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: rgba(255,255,255,.02);
}

.spec-img{
  width: 100%;
  height: auto;
  display: block;
}

.spec figcaption{
  padding: 10px 12px;
}

@media (max-width: 980px){
  .spec-grid{ grid-template-columns: 1fr; }
}

/* Single screenshot look */
.spec {
  margin: 0;
}

.spec-img {
  border-bottom: 1px solid var(--line);
}

/* Notes: better readability */
.note {
  line-height: 1.75;
}

.note h2 {
  margin-top: 18px;
}

.note p, .note ul {
  max-width: 72ch;
}

/* Notes: callout highlight */
.note-callout{
  margin: 12px 0 16px;
  padding: 14px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.03)
}

.note .list li{
  margin: 6px 0;
}
/* Clickable card (works with buttons inside) */
.card-clickable{ position: relative; }

.card-hit{
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1;
}

/* Ensure real buttons/links stay clickable above overlay */
.card-clickable a.btn,
.card-clickable a.btn-ghost,
.card-clickable .card-actions a{
  position: relative;
  z-index: 2;
}

/* Hover + keyboard focus */
.card-clickable:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.14);
 background: rgba(255,255,255,.03);
}

.card-clickable:focus-within{
  outline: 2px solid rgba(255,255,255,.22);
  outline-offset: 4px; 
}

/* Meta line */
.meta{
  margin-top: 10px;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .card-clickable:hover{ transform: none; }
}

/* Empty state / Coming soon */
.empty-state{
  margin-top: 18px;
  padding: 18px;
  border: 1px dashed rgba(255,255,255,.14);
  border-radius: 16px;
  background: rgba(255,255,255,.02);
}

.empty-state .kicker{
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .8;
  margin-bottom: 6px;
}

.empty-state .title{
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.empty-state .muted{
  margin: 0;
  opacity: .85;
}

.empty-state .chips{
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.list{
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}
.list li{ line-height: 1.5; }

/* =========================
   Header / Nav (responsive)
========================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,14,.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand{
  font-weight: 700;
  letter-spacing: .2px;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
}

.site-nav{
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(255,255,255,.82);
  border: 1px solid transparent;
}

.nav-link:hover{
  background: rgba(255,255,255,.06);
  color: #fff;
}

.nav-link.is-active{
  background: rgba(99,102,241,.18);
  border-color: rgba(99,102,241,.35);
  color: #fff;
}

.nav-cta{
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
}

/* Mobile toggle button */
.nav-toggle{
  display: none; /* visible only on small screens */
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle:focus-visible,
.nav-link:focus-visible{
  outline: 2px solid rgba(255,255,255,.28);
  outline-offset: 3px;
}

/* Responsive */
@media (max-width: 860px){
  .nav-toggle{ display: inline-flex; align-items:center; justify-content:center; }

  /* hide nav by default on mobile */
  .site-nav{
    display: none;
    position: absolute;
    right: 16px;
    top: 64px;
    flex-direction: column;
    align-items: stretch;
    min-width: 220px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(10,10,14,.92);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 18px 50px rgba(0,0,0,.45);
  }

  /* when open */
  .site-nav.is-open{ display: flex; }

  .nav-link{ width: 100%; justify-content: flex-start; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .nav-link{ transition: none; }
}

/* =========================
   HERO (text + photo)
========================= */

.hero {
  padding: 46px 0 26px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: center;
}

.hero-left {
  max-width: 720px;
}

.kicker {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(2.2rem, 3.4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  max-width: 22ch; /* forces clean 2-line width */
}

.hero-sub {
  color: rgba(255, 255, 255, 0.75);
  max-width: 60ch;
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 6px;
}

.meta-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 6px;
}

.meta-value {
  color: rgba(255, 255, 255, 0.9);
}

/* Right photo block */
.hero-right {
  display: flex;
  justify-content: flex-end; /* pushes photo to the right */
}

.hero-photo {
  width: min(360px, 38vw);
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  overflow: hidden;
  border: 3px solid rgba(99, 102, 241, 0.35);
  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.55),
    0 0 0 10px rgba(255, 255, 255, 0.03);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* no stretching */
  display: block;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-right {
    justify-content: flex-start;
    margin-top: 18px;
  }

  .hero-photo {
    width: 240px;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .hero-title {
    max-width: 26ch;
  }
}


.profile-figure:hover{
  border-color: rgba(99,102,241,.35);
  background:
    radial-gradient(circle at 30% 30%, rgba(99,102,241,.45), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(168,85,247,.30), transparent 55%),
    rgba(255,255,255,.04);
}
