:root {
  --bg-deep: #050508;
  --bg: #0a0b10;
  --bg-elevated: #101218;
  --surface: #161922;
  --surface-hover: #1c212c;
  --text: #f4f6fa;
  --text-soft: #c4cad6;
  --muted: #8892a6;
  --muted-deep: #5c6578;
  --accent: #34d399;
  --accent-bright: #6ee7b7;
  --accent-dim: #059669;
  --violet: #a78bfa;
  --border: rgba(255, 255, 255, 0.06);
  --border-bright: rgba(255, 255, 255, 0.12);
  --glow: rgba(52, 211, 153, 0.35);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --font: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-soft);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -40%, rgba(52, 211, 153, 0.08), transparent 50%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(167, 139, 250, 0.05), transparent 45%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(52, 211, 153, 0.04), transparent 40%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

.skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--bg-deep);
  z-index: 100;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.wrap {
  width: min(1140px, 100% - 2rem);
  margin-inline: auto;
  min-width: 0;
}

code {
  font-family: var(--mono);
  font-size: 0.84em;
  font-weight: 500;
  background: rgba(22, 25, 34, 0.95);
  padding: 0.2em 0.5em;
  border-radius: 8px;
  border: 1px solid var(--border-bright);
  color: var(--text-soft);
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 5, 8, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.35rem 1rem;
  gap: 0.65rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(16, 18, 24, 0.65);
  box-shadow: var(--shadow-sm);
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s var(--ease-out);
}

.icon-link:hover {
  color: var(--accent-bright);
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.22);
  transform: translateY(-1px);
}

.icon-link svg {
  display: block;
}

.logo {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
  padding-inline: 0.25rem;
}

.logo-accent {
  background: linear-gradient(135deg, var(--accent-bright), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}

@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav {
    flex-wrap: nowrap;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.2rem;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
  }
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 100px;
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

/* —— Hero —— */
.hero {
  position: relative;
  padding: clamp(3.5rem, 10vw, 6.5rem) 0 clamp(4rem, 12vw, 7rem);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 44rem;
}

.hero-glow {
  position: absolute;
  width: min(90vw, 640px);
  height: min(90vw, 640px);
  top: -25%;
  right: -15%;
  background: radial-gradient(circle closest-side, rgba(52, 211, 153, 0.14), transparent 100%);
  pointer-events: none;
  filter: blur(2px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.9;
  pointer-events: none;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 1.25rem;
}

.hero h1 {
  font-size: clamp(2.35rem, 5.2vw, 3.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 1.35rem;
  color: var(--text);
  max-width: 34rem;
}

.lead {
  color: var(--muted);
  max-width: 48ch;
  margin: 0 0 2.25rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
  color: #04120c;
  box-shadow: 0 4px 24px rgba(52, 211, 153, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(52, 211, 153, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border-bright);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(52, 211, 153, 0.35);
  color: var(--accent-bright);
}

/* —— Sections —— */
.section {
  position: relative;
  padding: clamp(3.25rem, 7vw, 5rem) 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(16, 18, 24, 0.92) 0%, rgba(10, 11, 16, 0.98) 100%);
  border-block: 1px solid var(--border);
}

.section-title {
  font-size: clamp(1.5rem, 2.8vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.65rem;
  color: var(--text);
}

.section-intro {
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 58ch;
  font-size: 0.98rem;
  line-height: 1.7;
}

#content .section-intro a:any-link,
#content .section-intro a:any-link:visited {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--border-bright);
  transition: border-color 0.2s, color 0.2s;
}

#content .section-intro a:any-link:hover {
  color: var(--text);
  border-bottom-color: rgba(255, 255, 255, 0.28);
}

/* —— Chips —— */
.chip-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip {
  padding: 0.5rem 1rem;
  background: rgba(22, 25, 34, 0.85);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0.01em;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease-out);
}

.chip:hover {
  border-color: rgba(52, 211, 153, 0.25);
  background: var(--surface-hover);
  transform: translateY(-1px);
}

/* —— Project cards —— */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}

a.card {
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.25s;
}

a.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(52, 211, 153, 0.25), transparent 40%, rgba(167, 139, 250, 0.12));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
  pointer-events: none;
  z-index: 2;
}

a.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.2);
}

a.card:hover::before {
  opacity: 1;
}

.section-alt .card {
  background: linear-gradient(165deg, #1a1d28 0%, #14161d 100%);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(160deg, #1e2433 0%, #0d0f14 100%);
  overflow: hidden;
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 5, 8, 0.5) 100%);
  pointer-events: none;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease-out);
}

a.card:hover .card-media img {
  transform: scale(1.04);
}

.card-body {
  position: relative;
  padding: 1.35rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-body h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.card-body p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

.card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  border: 1px dashed var(--border);
}

/* —— Live / GitHub cards —— */
.gh-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.gh-card {
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.25s;
}

.gh-card:hover {
  transform: translateY(-5px);
  border-color: rgba(52, 211, 153, 0.22);
  box-shadow: var(--shadow-lg);
}

.gh-shot {
  aspect-ratio: 16 / 10;
  background: linear-gradient(160deg, #1e2433, #0d0f14);
  overflow: hidden;
}

.gh-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease-out);
}

.gh-card:hover .gh-shot img {
  transform: scale(1.03);
}

.gh-label {
  display: block;
  padding: 1rem 1.2rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-soft);
  line-height: 1.45;
}

.gh-label code {
  display: inline;
  font-size: 0.78em;
  font-weight: 500;
  word-break: break-all;
  color: var(--muted);
  border-color: var(--border);
}

.live-footnote {
  margin: 1.5rem 0 0;
  max-width: 62ch;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted-deep);
}

.live-footnote strong {
  color: var(--muted);
  font-weight: 700;
}

/* —— Legacy grid utility (unused on current homepage) —— */
.wp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 152px), 1fr));
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .wp-grid {
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  }
}

.wp-tile {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.25s;
}

.wp-tile:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(167, 139, 250, 0.25);
  box-shadow: var(--shadow-md), 0 0 24px rgba(167, 139, 250, 0.08);
}

.wp-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--bg);
  transition: transform 0.45s var(--ease-out);
}

.wp-tile:hover img {
  transform: scale(1.06);
}

.wp-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.75rem 0.55rem 0.45rem;
  font-size: 0.65rem;
  font-family: var(--mono);
  font-weight: 500;
  color: rgba(244, 246, 250, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(transparent, rgba(5, 5, 8, 0.92));
  pointer-events: none;
}

/* —— Contact —— */
.section-cta {
  text-align: center;
}

.section-cta .wrap {
  padding: clamp(2rem, 5vw, 3rem) 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(22, 25, 34, 0.6) 0%, rgba(10, 11, 16, 0.9) 100%);
  box-shadow: var(--shadow-md);
}

.cta-inner .section-title {
  margin-bottom: 0.5rem;
}

.cta-inner p {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  font-size: 0.8125rem;
  color: var(--muted-deep);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-inner span:last-child {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

/* —— Anchor offset (sticky header) —— */
#summary,
#skills,
#live,
#power-bi,
#tableau,
#qlik,
#excel,
#others,
#contact {
  scroll-margin-top: 5.75rem;
}

/* —— Summary (top) —— */
.summary-top {
  padding-top: clamp(2rem, 5vw, 3rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.summary-title {
  font-size: clamp(1.65rem, 3.8vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--text);
  margin: 0 0 0.5rem;
  max-width: 100%;
}

.summary-tagline {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.summary-lead--follow {
  margin-top: 1rem;
}

.btn-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-with-icon svg {
  flex-shrink: 0;
  opacity: 0.92;
}

.summary-panel {
  display: grid;
  grid-template-columns: clamp(170px, 21vw, 240px) minmax(0, 1fr);
  gap: 0.9rem 1.05rem;
  align-items: start;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(22, 25, 34, 0.75) 0%, rgba(10, 11, 16, 0.95) 100%);
  padding: clamp(1.35rem, 3vw, 2rem);
  box-shadow: var(--shadow-md);
}

.summary-photo {
  grid-column: 1;
  grid-row: 1 / span 8;
  width: 100%;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-bright);
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.03);
}

.summary-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.summary-panel > .summary-lead,
.summary-panel > .summary-pills,
.summary-panel > .summary-actions {
  grid-column: 2;
}

.summary-lead {
  margin: 0 0 1.25rem;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 52rem;
}

.summary-lead strong {
  color: var(--text-soft);
  font-weight: 700;
}

.summary-pills {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.summary-pills li {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-soft);
  background: rgba(0, 0, 0, 0.2);
}

.summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

@media (max-width: 760px) {
  .summary-panel {
    grid-template-columns: 1fr;
  }

  .summary-photo {
    grid-column: 1;
    grid-row: auto;
    width: min(100%, 290px);
    margin: 0 auto 1rem;
  }

  .summary-panel > .summary-lead,
  .summary-panel > .summary-pills,
  .summary-panel > .summary-actions {
    grid-column: 1;
  }
}

/* —— Software section header + tag —— */
.software-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.35rem;
}

.software-head .section-title {
  margin-bottom: 0;
}

.section-title--with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.tool-dot {
  width: 1.62rem;
  height: 1.62rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #04120c;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.tool-dot--brand {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.tool-dot--brand img {
  width: 1rem;
  height: 1rem;
  display: block;
  object-fit: contain;
}

.tool-dot--live { background: linear-gradient(135deg, #6ee7b7, #34d399); }
.tool-dot--powerbi {
  width: 1.9rem;
  height: 1.9rem;
  background: #facc15;
  border-color: rgba(146, 101, 0, 0.25);
  box-shadow: 0 4px 16px rgba(234, 179, 8, 0.4);
}

.tool-dot--powerbi img {
  width: 1.22rem;
  height: 1.22rem;
}

.tool-dot--tableau { box-shadow: 0 4px 14px rgba(37, 99, 235, 0.22); }
.tool-dot--qlik { box-shadow: 0 4px 14px rgba(6, 182, 212, 0.22); }
.tool-dot--excel { box-shadow: 0 4px 14px rgba(16, 185, 129, 0.24); }
.tool-dot--others { background: linear-gradient(135deg, #94a3b8, #64748b); color: #f8fafc; font-size: 0.95rem; }

.tool-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-bright);
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.08);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
}

.skills-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(16, 18, 24, 0.72);
  padding: 0.95rem 1rem;
}

.skills-card h3 {
  margin: 0 0 0.7rem;
  font-size: 0.98rem;
  color: var(--text);
}

/* —— Nav active (scroll) —— */
.nav a.is-active {
  color: var(--text);
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.28);
}

/* —— Horizontal strips + crossing beams —— */
.strip-wrap {
  position: relative;
  min-width: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(10, 11, 16, 0.6);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* Copy tied to the gallery box (always ships with the strip; beams stay on the rail only). */
.strip-wrap__lede {
  margin: 0;
  padding: 0.85rem 1.15rem 0.35rem;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--text-soft);
  position: relative;
  z-index: 6;
}

.strip-wrap__viewport {
  position: relative;
  min-width: 0;
}

.strip-cross {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.strip-cross__beam {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 160%;
  height: 2px;
  margin-left: -80%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 20%,
    rgba(255, 255, 255, 0.75) 50%,
    rgba(110, 231, 183, 0.85) 55%,
    rgba(255, 255, 255, 0.08) 80%,
    transparent 100%
  );
  box-shadow: 0 0 20px rgba(110, 231, 183, 0.35);
}

.strip-cross__beam--a {
  animation: sweepBeamA 4.8s ease-in-out infinite;
}

.strip-cross__beam--b {
  animation: sweepBeamB 4.8s ease-in-out infinite;
}

@keyframes sweepBeamA {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translateX(-48%) rotate(21deg);
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translateX(48%) rotate(21deg);
  }
}

@keyframes sweepBeamB {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translateX(-48%) rotate(-21deg);
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translateX(48%) rotate(-21deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .strip-cross__beam--a,
  .strip-cross__beam--b {
    animation: none !important;
    opacity: 0.12;
    transform: translate(-50%, -50%) rotate(21deg);
  }

  .strip-cross__beam--b {
    transform: translate(-50%, -50%) rotate(-21deg);
  }
}

.strip-scroll {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.85rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: rgba(52, 211, 153, 0.35) transparent;
}

/* Fixed flex-basis (px): row wider than strip ⇒ native overflow-x scroll on .strip-scroll.
   Strips with few tiles may fit with no bar — normal. */
.strip-scroll--carousel > .strip-tile {
  flex: 0 0 292px;
  min-width: 0;
  width: auto;
  height: auto;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  scroll-snap-align: start;
  transition: transform 0.3s var(--ease-out), border-color 0.25s, box-shadow 0.25s;
}

.strip-scroll--carousel > .live-card {
  flex: 0 0 min(320px, calc(100vw - 2.75rem));
  min-width: 0;
  scroll-snap-align: start;
}

@media (max-width: 520px) {
  .strip-scroll--carousel > .strip-tile {
    flex: 0 0 min(268px, calc(100vw - 3rem));
  }
}

@media (min-width: 900px) {
  .strip-scroll--carousel.strip-scroll--live > .live-card {
    flex: 0 0 min(440px, calc(50vw - 2.75rem));
  }
}

.strip-tile {
  flex: 0 0 auto;
  width: 236px;
  height: 150px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  scroll-snap-align: start;
  transition: transform 0.3s var(--ease-out), border-color 0.25s, box-shadow 0.25s;
}

.strip-tile--brand {
  background: var(--surface);
  border-color: var(--border-bright);
}

.strip-tile--brand img {
  object-fit: contain;
  padding: 0.65rem 0.85rem;
}

.strip-tile--white-bg {
  background: #ffffff;
}

.strip-tile--white-bg img {
  object-fit: contain;
  padding: 0.35rem;
}

.strip-tile:hover {
  transform: scale(1.03);
  border-color: rgba(110, 231, 183, 0.35);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.strip-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.strip-scroll--carousel .strip-tile img {
  -webkit-user-drag: none;
  user-select: none;
}

/* —— Live row (shares carousel sizing on .strip-scroll--carousel) —— */
.strip-scroll--live.strip-scroll--carousel {
  align-items: stretch;
  padding: 1.15rem 1.1rem;
}

.live-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  min-height: 0;
  transition: transform 0.35s var(--ease-out), border-color 0.25s, box-shadow 0.35s;
}

/* Full-card click target; body copy stays outside the anchor (no UA link styling). */
.live-card__hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  text-decoration: none;
}

.live-card__hit:focus {
  outline: none;
}

.live-card__hit:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(52, 211, 153, 0.65);
}

.live-card:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.25);
  box-shadow: var(--shadow-lg);
}

.live-card__media {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 10;
  background: linear-gradient(160deg, #1e2433, #0d0f14);
  overflow: hidden;
}

.live-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}

.live-card:hover .live-card__media img {
  transform: scale(1.04);
}

.live-card__body {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  padding: 1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 0;
}

.live-card__copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: auto;
}

.live-card__title {
  flex-shrink: 0;
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.live-card__text {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.55;
}

.live-card__text strong {
  font-size: inherit;
  color: var(--text-soft);
  font-weight: 600;
}

.live-card__path {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted-deep);
  word-break: break-all;
  opacity: 0.85;
}

/* —— Links: override UA blue / purple on dark UI —— */
.site-header a.logo:any-link,
.site-header a.logo:any-link:visited {
  color: var(--text);
}

.site-header a.icon-link:any-link,
.site-header a.icon-link:any-link:visited {
  color: var(--muted);
}

.site-header .nav a:any-link,
.site-header .nav a:any-link:visited {
  color: var(--muted);
  text-decoration: none;
}

.site-header .nav a:any-link:hover {
  color: var(--text);
}

#content a:any-link {
  color: var(--text-soft);
  text-decoration: none;
}

#content a:any-link:hover {
  color: var(--text);
}

#content a.btn-primary:any-link,
#content a.btn-primary:any-link:visited {
  color: #04120c;
}

#content a.btn-primary:any-link:hover {
  color: #04120c;
}

#content a.btn-ghost:any-link,
#content a.btn-ghost:any-link:visited {
  color: var(--text);
}

#content a.btn-ghost:any-link:hover {
  color: var(--accent-bright);
}

#content a.live-card__hit:any-link,
#content a.live-card__hit:any-link:visited,
#content a.live-card__hit:any-link:hover {
  color: transparent;
  text-decoration: none;
}

#content a.strip-tile--brand:any-link,
#content a.strip-tile--brand:any-link:visited,
#content a.strip-tile--brand:any-link:hover {
  color: transparent;
  text-decoration: none;
}

body.no-scroll {
  overflow: hidden;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(2px);
}

.image-lightbox__frame {
  position: relative;
  z-index: 1;
  width: min(1600px, calc(100vw - 0.9rem));
  margin: 0.45rem auto;
  padding: 0;
}

.image-lightbox__img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 2.1rem);
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border-bright);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.image-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  font-size: 1.55rem;
  line-height: 1;
  color: #0a0b10;
  background: rgba(243, 244, 246, 0.93);
  cursor: pointer;
}

.image-lightbox__nav--prev {
  left: 0.65rem;
}

.image-lightbox__nav--next {
  right: 0.65rem;
}

.image-lightbox__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 999px;
  font-size: 1.5rem;
  line-height: 1;
  color: #0a0b10;
  background: #f3f4f6;
  cursor: pointer;
}

.image-lightbox__caption {
  margin: 0.45rem 0 0;
  color: #d1d5db;
  font-size: 0.88rem;
  text-align: center;
}

